CN112804672B - Bluetooth interface adaptation method and vehicle-mounted entertainment information system - Google Patents

Bluetooth interface adaptation method and vehicle-mounted entertainment information system Download PDF

Info

Publication number
CN112804672B
CN112804672B CN202110025367.9A CN202110025367A CN112804672B CN 112804672 B CN112804672 B CN 112804672B CN 202110025367 A CN202110025367 A CN 202110025367A CN 112804672 B CN112804672 B CN 112804672B
Authority
CN
China
Prior art keywords
bluetooth
interface
universal
function
chip
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110025367.9A
Other languages
Chinese (zh)
Other versions
CN112804672A (en
Inventor
王一江
贝学意
余宇航
雷淼森
于春波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ecarx Hubei Tech Co Ltd
Original Assignee
Ecarx Hubei Tech Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ecarx Hubei Tech Co Ltd filed Critical Ecarx Hubei Tech Co Ltd
Priority to CN202110025367.9A priority Critical patent/CN112804672B/en
Publication of CN112804672A publication Critical patent/CN112804672A/en
Application granted granted Critical
Publication of CN112804672B publication Critical patent/CN112804672B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • H04W4/40Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P]
    • H04W4/48Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P] for in-vehicle communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/02Details of telephonic subscriber devices including a Bluetooth interface

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a Bluetooth interface adaptation method and a vehicle-mounted entertainment information system. The method comprises the following steps: the Bluetooth application receives triggering operation of a user and generates a control instruction according to the triggering operation; the Bluetooth application calls a universal Bluetooth interface corresponding to the Bluetooth function in the universal interface definition layer according to the Bluetooth function to be realized by the control instruction, and sends the control instruction to the interface adaptation layer through the universal Bluetooth interface; the interface adaptation layer is matched with a Bluetooth chip interface of the same type as the universal Bluetooth interface, and calls the Bluetooth chip interface to send a control instruction to the bottom Bluetooth chip module for execution. The Bluetooth application only needs to call the universal Bluetooth interface corresponding to the Bluetooth function in the universal interface definition layer, the difference of the Bluetooth chip interfaces provided by all suppliers is not required to be considered, the problem that technicians independently develop all the Bluetooth applications carrying the Bluetooth chips of different suppliers is avoided, and the workload of development and the later maintenance cost are reduced.

Description

Bluetooth interface adaptation method and vehicle-mounted entertainment information system
Technical Field
The present invention relates to the field of bluetooth communication technologies, and in particular, to an adaptation method of a bluetooth interface, an in-vehicle entertainment information system, and a computer storage medium.
Background
Currently, bluetooth communication technology is widely used in vehicle-mounted entertainment information systems, for example, the vehicle-mounted entertainment information systems implement a function of dialing a phone, a function of playing music, and the like through bluetooth technology. However, the bluetooth chips used in the in-vehicle entertainment information system may be provided by different suppliers, and bluetooth function interfaces of the bluetooth chips provided by the different suppliers may be different. Therefore, the technician needs to develop each bluetooth application in the vehicle-mounted entertainment information system carrying bluetooth chips of different suppliers separately, which increases development cost and later maintenance cost.
Disclosure of Invention
The present invention has been made in view of the above problems, and it is an object of the present invention to provide a method of adapting a bluetooth interface, an in-vehicle entertainment information system and a computer storage medium that overcome or at least partially solve the above problems.
It is an object of the present invention to reduce development effort and later maintenance costs.
It is a further object of the invention to ensure the accuracy of the generic bluetooth interface invoked.
In particular, the invention provides a method for adapting a Bluetooth interface, which comprises the following steps:
the Bluetooth application receives triggering operation of a user and generates a control instruction according to the triggering operation;
the Bluetooth application calls a universal Bluetooth interface corresponding to the Bluetooth function in a universal interface definition layer according to the Bluetooth function to be realized by the control instruction, and sends the control instruction to an interface adaptation layer through the universal Bluetooth interface;
the interface adaptation layer is matched with a Bluetooth chip interface of the same type as the universal Bluetooth interface, and calls the Bluetooth chip interface to send the control instruction to a bottom Bluetooth chip module for execution.
Optionally, the generic interface definition layer includes a mapping relationship between each bluetooth function of the bluetooth application and a generic bluetooth interface;
the step of the Bluetooth application calling the universal Bluetooth interface corresponding to the Bluetooth function in the universal interface definition layer according to the Bluetooth function to be realized by the control instruction comprises the following steps:
and the Bluetooth application calls the universal Bluetooth interface corresponding to the Bluetooth function to be realized by the control instruction according to the preset mapping relation between each Bluetooth function and the universal Bluetooth interface.
Optionally, the interface adaptation layer includes a preset mapping relationship between each universal bluetooth interface and a bluetooth chip interface at a bottom layer;
the step of matching the interface adaptation layer to the Bluetooth chip interface of the same type as the universal Bluetooth interface comprises the following steps:
the interface adaptation layer matches the Bluetooth chip interfaces of the same type as the universal Bluetooth interfaces according to the preset mapping relation between the universal Bluetooth interfaces and the Bluetooth chip interfaces of the bottom layer.
Optionally, the bluetooth function includes at least one of:
telephone function, music playing function, call record obtaining function, phone book obtaining function, bluetooth connection state.
Optionally, the universal bluetooth interface corresponding to the bluetooth function is a method set corresponding to the bluetooth function.
According to another aspect of the present invention, there is also provided an in-vehicle entertainment information system including:
the Bluetooth application layer runs a Bluetooth application thereon, and the Bluetooth application is configured to receive a triggering operation of a user and generate a control instruction according to the triggering operation;
the universal interface definition layer is defined with a universal Bluetooth interface for the Bluetooth application to call the universal Bluetooth interface corresponding to the Bluetooth function according to the Bluetooth function to be realized by the control instruction, and the control instruction is sent to the interface adaptation layer through the universal Bluetooth interface;
the interface adaptation layer is configured to match a Bluetooth chip interface of the same type as the universal Bluetooth interface, and call the Bluetooth chip interface to send the control instruction to a bottom Bluetooth chip module; and
and the bottom Bluetooth chip module is configured to execute the control instruction.
Optionally, the generic interface definition layer includes a mapping relationship between each bluetooth function of the bluetooth application and a generic bluetooth interface;
the Bluetooth application running on the Bluetooth application layer is further configured to call the universal Bluetooth interface corresponding to the Bluetooth function according to the mapping relation between each Bluetooth function and the universal Bluetooth interface.
Optionally, the interface adaptation layer includes a preset mapping relationship between each universal bluetooth interface and a bluetooth chip interface at a bottom layer;
the interface adaptation layer is further configured to match a Bluetooth chip interface of the same type as the universal Bluetooth interface according to a preset mapping relation between each universal Bluetooth interface and the Bluetooth chip interface of the bottom layer.
Optionally, the universal bluetooth interface corresponding to the bluetooth function is a method set corresponding to the bluetooth function.
According to another aspect of the present invention there is also provided a computer storage medium storing computer program code which, when run on a computing device, causes the computing device to perform the method of adapting a bluetooth interface as described in any of the above.
In the adaptation method of the Bluetooth interface, the Bluetooth application calls the universal Bluetooth interface corresponding to the Bluetooth function in the universal interface definition layer according to the Bluetooth function to be realized by the control instruction, and sends the control instruction to the interface adaptation layer through the universal Bluetooth interface, then the interface adaptation layer is matched with the Bluetooth chip interface of the same type as the universal Bluetooth interface, and calls the Bluetooth chip interface to send the control instruction to the bottom Bluetooth chip module for execution, and the Bluetooth application only needs to call the universal Bluetooth interface corresponding to the Bluetooth function in the universal interface definition layer in the whole process, so that the difference of the Bluetooth chip interfaces provided by all suppliers is not needed to be considered, the independent development of each Bluetooth application of Bluetooth chips of technicians carrying different suppliers is avoided, the development workload and the later maintenance cost, such as the cost of code maintenance and android application program package maintenance, are reduced, and the development and release efficiency of the Bluetooth application is improved.
The above, as well as additional objectives, advantages, and features of the present invention will become apparent to those skilled in the art from the following detailed description of a specific embodiment of the present invention when read in conjunction with the accompanying drawings.
Drawings
Some specific embodiments of the invention will be described in detail hereinafter by way of example and not by way of limitation with reference to the accompanying drawings. The same reference numbers will be used throughout the drawings to refer to the same or like parts or portions. It will be appreciated by those skilled in the art that the drawings are not necessarily drawn to scale. In the accompanying drawings:
fig. 1 is a flowchart of a method of adapting a bluetooth interface according to an embodiment of the invention;
fig. 2 is an adaptation flow chart of a method of adapting a bluetooth interface according to another embodiment of the invention;
FIG. 3 is a schematic diagram of an in-vehicle entertainment information system according to one embodiment of the invention;
fig. 4 is a schematic structural view of an in-vehicle entertainment information system according to another embodiment of the present invention.
Detailed Description
Fig. 1 is a flowchart of a method of adapting a bluetooth interface according to an embodiment of the invention. Referring to fig. 1, the adaptation method of the bluetooth interface may include the following steps S102 to S106.
Step S102: the Bluetooth application receives the triggering operation of the user and generates a control instruction according to the triggering operation. In this step, the triggering operation may be a touch operation, such as a click operation, a gesture operation, or the like, and the triggering operation may also be a voice operation, which is not specifically limited in the embodiment of the present invention.
Step S104: the Bluetooth application calls a universal Bluetooth interface corresponding to the Bluetooth function in the universal interface definition layer according to the Bluetooth function to be realized by the control instruction, and sends the control instruction to the interface adaptation layer through the universal Bluetooth interface.
In this step, the bluetooth function may include at least one of: telephone function, music playing function, call record obtaining function, phone book obtaining function, bluetooth connection state. The universal Bluetooth interface corresponding to the Bluetooth function is a method set corresponding to the Bluetooth function. When the Bluetooth function to be realized by the control instruction is a telephone function, a telephone universal Bluetooth interface in a universal interface definition layer can be called; when the Bluetooth function to be realized by the control instruction is a music playing function, a general Bluetooth interface for playing music in the general interface definition layer can be called.
Step S106: the interface adaptation layer is matched with a Bluetooth chip interface of the same type as the universal Bluetooth interface, and calls the Bluetooth chip interface to send a control instruction to the bottom Bluetooth chip module for execution.
In the adaptation method of the bluetooth interface in this embodiment, the bluetooth application invokes the universal bluetooth interface corresponding to the bluetooth function in the universal interface definition layer according to the bluetooth function to be implemented by the control instruction, and sends the control instruction to the interface adaptation layer through the universal bluetooth interface, then the interface adaptation layer matches the bluetooth chip interface of the same type as the universal bluetooth interface, and invokes the bluetooth chip interface to send the control instruction to the bottom bluetooth chip module for execution, and the bluetooth application only needs to invoke the universal bluetooth interface corresponding to the bluetooth function in the universal interface definition layer in the whole process, so that the difference of the bluetooth chip interfaces provided by each provider is not needed to be considered, thus avoiding the independent development of technicians for each bluetooth application carrying bluetooth chips of different providers, reducing the workload of development and the later maintenance cost, such as the cost of code maintenance and android application package maintenance, and improving the development and release efficiency of the bluetooth application.
For example, in the prior art, bluetooth chip interfaces provided by different suppliers are different, and a technician needs to develop a set of codes for bluetooth applications with different bluetooth chip interfaces independently to achieve the purpose of adapting, i.e. a set of codes corresponds to only one bluetooth chip interface provided by one supplier. Thus, the adaptation workload of the prior art is the number of bluetooth applications and the number of bluetooth chip interface providers. According to the invention, the interface adaptation layer is only required to be independently developed aiming at projects carrying different Bluetooth chips, and one set of codes corresponds to one Bluetooth chip provider, so that the adaptation amount is reduced to 1 Bluetooth application by the number of Bluetooth chip interface providers, and the workload is greatly reduced.
Of course, as the requirements of bluetooth applications change, or as bluetooth chip interface providers increase, the generic interface definition layer may iterate accordingly.
In one embodiment of the present invention, the generic interface definition layer may include a mapping relationship between each bluetooth function of the preset bluetooth application and the generic bluetooth interface. The step of the bluetooth application in step S104 calling the universal bluetooth interface corresponding to the bluetooth function in the universal interface definition layer according to the bluetooth function to be implemented by the control instruction may include: the Bluetooth application calls the universal Bluetooth interface corresponding to the Bluetooth function to be realized by the control instruction according to the preset mapping relation between each Bluetooth function and the universal Bluetooth interface.
In this embodiment, the universal interface definition layer defines a corresponding universal bluetooth interface according to each bluetooth function of the bluetooth application in advance, for example, bluetooth phones in the bluetooth application need to implement functions related to phone calls, and defines functional interfaces such as call1, monitor phone state 1, etc.; bluetooth music requires implementation of music related functions, defining functional interfaces such as play (play 1), pause (pause 1), listening to music status (registermusiccall 1), etc. Then, the generic interface definition layer may establish a mapping relationship between each bluetooth function of the bluetooth application and the generic bluetooth interface. The Bluetooth application calls the universal Bluetooth interface corresponding to the Bluetooth function to be realized by the control instruction according to the preset mapping relation between each Bluetooth function and the universal Bluetooth interface, so that the accuracy of the called universal Bluetooth interface can be ensured.
In one embodiment of the present invention, the interface adaptation layer may include a preset mapping relationship between each universal bluetooth interface and a bluetooth chip interface of the bottom layer. The step of the interface adaptation layer in step S106 matching the bluetooth chip interface of the same type as the universal bluetooth interface may include: the interface adaptation layer matches the Bluetooth chip interfaces of the same type as the universal Bluetooth interfaces according to the preset mapping relation between the universal Bluetooth interfaces and the Bluetooth chip interfaces of the bottom layer.
In this embodiment, the interface adaptation layer may include a mapping relationship between each preset general bluetooth interface and a bluetooth chip interface of a bottom layer, for example, define a call bluetooth chip interface (call_1) of a call general bluetooth interface (call 1) corresponding to the bottom layer, a call bluetooth chip interface (answer_1) of a call general bluetooth interface (answer 1) corresponding to the bottom layer, and a listening mobile phone state bluetooth chip interface (registerPhone callback_1) of a listening mobile phone state general bluetooth interface (registerPhone callback 1) corresponding to the bottom layer; the definition play general Bluetooth interface (play 1) corresponds to the definition play Bluetooth chip interface (play_1) of the bottom layer, the pause general Bluetooth interface (pause 1) corresponds to the pause Bluetooth chip interface (pause_1) of the bottom layer, and the listening music state general Bluetooth interface (regiospecific music call back 1) corresponds to the listening music state Bluetooth chip interface (regiospecific music call back_1) of the bottom layer. The method can also define a call-making Bluetooth chip interface (call_2) corresponding to the bottom layer, a call-receiving Bluetooth chip interface (answer_2) corresponding to the bottom layer, a monitoring mobile phone state Bluetooth chip interface (register PhonCallback 2) corresponding to the bottom layer; the definition play general Bluetooth interface (play 2) corresponds to the definition play Bluetooth chip interface (play_2) of the bottom layer, the pause general Bluetooth interface (pause 2) corresponds to the pause Bluetooth chip interface (pause_2) of the bottom layer, and the listening music state general Bluetooth interface (regiospecific music call back 2) corresponds to the listening music state Bluetooth chip interface (regiospecific music call back_2) of the bottom layer.
When the call making function of the bluetooth application corresponds to the call making universal bluetooth interface (call 1), the call making bluetooth chip interface (call_1) of the bottom layer can be obtained according to the call making (call_1) corresponding to the bottom layer in the preset mapping relation between each universal bluetooth interface and the bluetooth chip interface of the bottom layer. Similarly, when the call making function of the bluetooth application corresponds to the call making universal bluetooth interface (call 2), the call making bluetooth chip interface (call_2) of the bottom layer can be obtained according to the preset call making (call 2) corresponding to the call making (call_2) of the bottom layer in the mapping relation between each universal bluetooth interface and the bluetooth chip interface of the bottom layer. The interface adaptation layer matches the Bluetooth chip interface with the same type as the universal Bluetooth interface according to the preset mapping relation between each universal Bluetooth interface and the Bluetooth chip interface of the bottom layer, so that the accuracy of matching the Bluetooth chip interface with the same type as the universal Bluetooth interface can be ensured.
The following describes the adaptation method of the bluetooth interface according to the invention in a specific embodiment, as shown in fig. 2. The Bluetooth application receives the operation of triggering the Bluetooth telephone by the user, and generates a control instruction for calling 666 according to the triggering operation. The Bluetooth application calls 666 according to the call required to call the universal Bluetooth interface in the universal interface definition layer to send a call instruction (the call instruction carries telephone communication number information, such as 666) to the interface adaptation layer.
Each bluetooth function corresponds to a universal bluetooth interface, and which bluetooth function is executed can call the universal bluetooth interface corresponding to the bluetooth function. For example, taking a phone call as an example, the corresponding universal bluetooth interface: boolean call (String callNumber), definition includes name, parameters and return value.
And after the interface adaptation layer receives the call of the universal Bluetooth interface corresponding to the call instruction, adapting the Bluetooth chip interface of the same type as the universal Bluetooth interface. Specifically, for example, the interface adaptation layer may match the bluetooth chip interface of the same type as the universal bluetooth interface according to a preset mapping relationship between each universal bluetooth interface and the bluetooth chip interface of the bottom layer. For example, a bluetooth chip 1 interface corresponds to a universal bluetooth interface call1 ("666"), a bluetooth chip 2 interface corresponds to a universal bluetooth interface call2 ("666"), a bluetooth chip N interface corresponds to a universal bluetooth interface call N ("666"), etc., where N is an integer greater than 2. The interface adaptation layer calls the adapted Bluetooth chip interface and sends a control instruction to the Bluetooth chip module at the bottom layer. The bottom bluetooth chip module may execute the phone with the calling number of 666, for example, the bottom bluetooth chip module executes the control instruction to control the phone with the calling number of 666 of the mobile phone connected with the car machine through bluetooth.
Based on the same concept, the present invention also provides an in-vehicle entertainment information system 300. Referring to fig. 3, the in-vehicle entertainment information system 300 may include a bluetooth application layer 301, a generic interface definition layer 302, an interface adaptation layer 303, and an underlying bluetooth chip module 304.
A bluetooth application layer 301 on which a bluetooth application is run. The Bluetooth application is suitable for receiving the triggering operation of the user and generating a control instruction according to the triggering operation. The universal interface definition layer 302 defines a universal bluetooth interface therein for the bluetooth application to call the universal bluetooth interface corresponding to the bluetooth function according to the bluetooth function to be implemented by the control instruction, and sends the control instruction to the interface adaptation layer 303 through the universal bluetooth interface. The interface adaptation layer 303 is adapted to match a bluetooth chip interface of the same type as the universal bluetooth interface, and call the bluetooth chip interface to send a control instruction to the bottom bluetooth chip module 304. The underlying bluetooth chip module 304 is adapted to execute control instructions.
In this embodiment, the bluetooth function may include at least one of: telephone function, music playing function, call record obtaining function, phone book obtaining function, bluetooth connection state. The Bluetooth application running on the Bluetooth application layer 301 calls the universal Bluetooth interface corresponding to the Bluetooth function in the universal interface definition layer 302 according to the Bluetooth function to be realized by the control command, the universal interface definition layer 302 sends the control command to the interface adaptation layer 303 through the universal Bluetooth interface, the interface adaptation layer 303 matches the Bluetooth chip interface of the same type as the universal Bluetooth interface and calls the Bluetooth chip interface to send the control command to the bottom Bluetooth chip module 304 for execution, the Bluetooth application running on the Bluetooth application layer 301 only needs to call the universal Bluetooth interface corresponding to the Bluetooth function in the universal interface definition layer 302 in the whole process, the difference of the Bluetooth chip interfaces provided by each provider is not needed to be considered, the independent development of each Bluetooth application of Bluetooth chips of different providers is avoided, the workload of development and the maintenance cost of later stages such as code maintenance and android application package maintenance are reduced, and the development and release efficiency of the Bluetooth application is improved.
Of course, as the requirements of bluetooth applications change, or as bluetooth chip interface providers increase, the generic interface definition layer may iterate accordingly.
In one embodiment of the present invention, the generic interface definition layer 302 includes a mapping relationship between each bluetooth function of the preset bluetooth application and the generic bluetooth interface. The bluetooth application running on the bluetooth application layer 301 is further adapted to invoke a generic bluetooth interface corresponding to the bluetooth function according to a mapping relationship between each bluetooth function and the generic bluetooth interface.
In this embodiment, the universal interface definition layer 302 defines a corresponding universal bluetooth interface according to each bluetooth function of the bluetooth application in advance, for example, bluetooth phones in the bluetooth application need to implement bluetooth functions related to phone calls, and defines universal bluetooth interfaces such as call1, answer1, monitor phone state 1, and the like; bluetooth music requires to implement music related functions, defining a universal bluetooth interface such as play (play 1), pause (pause 1), listening to music status (registermusiccall 1), etc. Thereafter, the generic interface definition layer 302 may establish a mapping relationship between each bluetooth function of the bluetooth application and the generic bluetooth interface. The Bluetooth application calls the universal Bluetooth interface corresponding to the Bluetooth function to be realized by the control instruction according to the preset mapping relation between each Bluetooth function and the universal Bluetooth interface, so that the accuracy of the called universal Bluetooth interface can be ensured.
In one embodiment of the present invention, the interface adaptation layer 303 includes a preset mapping relationship between each universal bluetooth interface and the bluetooth chip interface of the bottom layer. The interface adapting layer 303 is further adapted to match a bluetooth chip interface with the same type as the universal bluetooth interface according to a preset mapping relationship between each universal bluetooth interface and a bluetooth chip interface of a bottom layer. Examples of mapping relationships between each universal bluetooth interface and the bluetooth chip interface of the bottom layer are described in the foregoing, and are not repeated.
In one embodiment of the present invention, the universal bluetooth interface corresponding to the bluetooth function is a method set corresponding to the bluetooth function.
The in-vehicle entertainment information system 300 is described in one particular embodiment as shown in FIG. 4. In-vehicle entertainment information system 300 may include a bluetooth application layer 301, a generic interface definition layer 302, an interface adaptation layer 303, and an underlying bluetooth chip module 304. The bluetooth application running on the bluetooth application layer 301 may be referred to as an upper layer application, and the interface adaptation layer 303 may be referred to as a bluetooth service application layer. Bluetooth functions such as Bluetooth telephone function, bluetooth music playing function, bluetooth connection state, etc. may be included in the Bluetooth application layer 301. The interface adaptation layer 303 interacts with the underlying bluetooth chip module 304 via a bluetooth chip interface 305. The bluetooth chip interface 305 may include a bluetooth chip 1 interface, a bluetooth chip 2 interface, a bluetooth chip N interface, etc., where N is an integer greater than 2. The Bluetooth chip interface 305 may serve as a system layer of the in-vehicle entertainment information system 300. The bottom bluetooth chip module 304 may include a bluetooth chip driver 3041 and bluetooth chip hardware 3042. The bluetooth chip driver 3041 may include a bluetooth chip 1 driver, a bluetooth chip 2 driver. . . And the Bluetooth chip N is driven. Bluetooth chip hardware 3042 may include chip 1 hardware, chip 2 hardware. . . Chip N hardware. The Bluetooth chip 1 driver corresponds to the chip 1 hardware and the Bluetooth chip 1 interface, the Bluetooth chip 2 driver corresponds to the chip 2 hardware and the Bluetooth chip 2 interface, and the Bluetooth chip N driver corresponds to the chip N hardware and the Bluetooth chip N interface. In some cases, bluetooth chip interface 305 may also be included as part of the underlying bluetooth chip module 304.
Taking the bluetooth phone function of the bluetooth application layer 301 as an example, if the interface corresponding to the bluetooth phone function matched by the interface adaptation layer 303 is a bluetooth chip 1 interface, the bluetooth chip 1 driver and chip 1 hardware in the bottom bluetooth chip module 304 will execute the bluetooth phone function and upload data to the bluetooth application layer 301.
Based on the same conception, the invention also provides a computer storage medium. The computer storage medium stores computer program code which, when run on a computing device, causes the computing device to perform the method of adapting a bluetooth interface of any of the embodiments described above.
The above embodiments may be combined arbitrarily, and according to any one of the above preferred embodiments or a combination of a plurality of preferred embodiments, the following beneficial effects can be achieved according to the embodiments of the present invention:
the Bluetooth application calls the universal Bluetooth interface corresponding to the Bluetooth function in the universal interface definition layer according to the Bluetooth function to be realized by the control command, and sends the control command to the interface adaptation layer through the universal Bluetooth interface, then the interface adaptation layer is matched with the Bluetooth chip interface of the same type as the universal Bluetooth interface, and calls the Bluetooth chip interface to send the control command to the Bluetooth chip module at the bottom layer for execution, the Bluetooth application only needs to call the universal Bluetooth interface corresponding to the Bluetooth function in the universal interface definition layer in the whole process, the difference of the Bluetooth chip interfaces provided by all suppliers is not needed to be considered, the independent development of technicians for all Bluetooth applications carrying Bluetooth chips of different suppliers is avoided, the development workload and the later maintenance cost, such as the cost of code maintenance and android application program package maintenance, are reduced, and the development and release efficiency of the Bluetooth application is improved.
By now it should be appreciated by those skilled in the art that while a number of exemplary embodiments of the invention have been shown and described herein in detail, many other variations or modifications of the invention consistent with the principles of the invention may be directly ascertained or inferred from the present disclosure without departing from the spirit and scope of the invention. Accordingly, the scope of the present invention should be understood and deemed to cover all such other variations or modifications.

Claims (8)

1. A method for adapting a bluetooth interface, comprising:
the Bluetooth application receives triggering operation of a user and generates a control instruction according to the triggering operation;
the Bluetooth application calls a universal Bluetooth interface corresponding to the Bluetooth function in a universal interface definition layer according to the Bluetooth function to be realized by the control instruction, and sends the control instruction to an interface adaptation layer through the universal Bluetooth interface;
the interface adaptation layer is matched with a Bluetooth chip interface of the same type as the universal Bluetooth interface, and calls the Bluetooth chip interface to send the control instruction to a bottom Bluetooth chip module for execution; wherein the method comprises the steps of
The general interface definition layer comprises a preset mapping relation between each Bluetooth function of the Bluetooth application and a general Bluetooth interface;
the step of the Bluetooth application calling the universal Bluetooth interface corresponding to the Bluetooth function in the universal interface definition layer according to the Bluetooth function to be realized by the control instruction comprises the following steps:
and the Bluetooth application calls the universal Bluetooth interface corresponding to the Bluetooth function to be realized by the control instruction according to the preset mapping relation between each Bluetooth function and the universal Bluetooth interface.
2. The method for adapting a bluetooth interface according to claim 1, wherein,
the interface adaptation layer comprises a preset mapping relation between each universal Bluetooth interface and a Bluetooth chip interface at the bottom layer;
the step of matching the interface adaptation layer to the Bluetooth chip interface of the same type as the universal Bluetooth interface comprises the following steps:
the interface adaptation layer matches the Bluetooth chip interfaces of the same type as the universal Bluetooth interfaces according to the preset mapping relation between the universal Bluetooth interfaces and the Bluetooth chip interfaces of the bottom layer.
3. The method for adapting a bluetooth interface according to claim 1, wherein,
the bluetooth function includes at least one of:
telephone function, music playing function, call record obtaining function, phone book obtaining function, bluetooth connection state.
4. The method for adapting a bluetooth interface according to claim 1, wherein,
the universal Bluetooth interface corresponding to the Bluetooth function is a method set corresponding to the Bluetooth function.
5. A vehicle-mounted entertainment information system, comprising:
the Bluetooth application layer runs a Bluetooth application thereon, and the Bluetooth application is configured to receive a triggering operation of a user and generate a control instruction according to the triggering operation;
the universal interface definition layer is defined with a universal Bluetooth interface for the Bluetooth application to call the universal Bluetooth interface corresponding to the Bluetooth function according to the Bluetooth function to be realized by the control instruction, and the control instruction is sent to the interface adaptation layer through the universal Bluetooth interface;
the interface adaptation layer is configured to match a Bluetooth chip interface of the same type as the universal Bluetooth interface, and call the Bluetooth chip interface to send the control instruction to a bottom Bluetooth chip module; and
the bottom Bluetooth chip module is configured to execute the control instruction; wherein the method comprises the steps of
The general interface definition layer comprises a preset mapping relation between each Bluetooth function of the Bluetooth application and a general Bluetooth interface;
the Bluetooth application running on the Bluetooth application layer is further configured to call the universal Bluetooth interface corresponding to the Bluetooth function according to the mapping relation between each Bluetooth function and the universal Bluetooth interface.
6. The vehicle entertainment information system according to claim 5, characterized in that,
the interface adaptation layer comprises a preset mapping relation between each universal Bluetooth interface and a Bluetooth chip interface at the bottom layer;
the interface adaptation layer is further configured to match a Bluetooth chip interface of the same type as the universal Bluetooth interface according to a preset mapping relation between each universal Bluetooth interface and the Bluetooth chip interface of the bottom layer.
7. The vehicle entertainment information system according to claim 5, characterized in that,
the universal Bluetooth interface corresponding to the Bluetooth function is a method set corresponding to the Bluetooth function.
8. A computer storage medium, characterized in that it stores computer program code which, when run on a computing device, causes the computing device to execute the adaptation method of a bluetooth interface according to any of claims 1-4.
CN202110025367.9A 2021-01-08 2021-01-08 Bluetooth interface adaptation method and vehicle-mounted entertainment information system Active CN112804672B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110025367.9A CN112804672B (en) 2021-01-08 2021-01-08 Bluetooth interface adaptation method and vehicle-mounted entertainment information system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110025367.9A CN112804672B (en) 2021-01-08 2021-01-08 Bluetooth interface adaptation method and vehicle-mounted entertainment information system

Publications (2)

Publication Number Publication Date
CN112804672A CN112804672A (en) 2021-05-14
CN112804672B true CN112804672B (en) 2024-03-15

Family

ID=75809462

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110025367.9A Active CN112804672B (en) 2021-01-08 2021-01-08 Bluetooth interface adaptation method and vehicle-mounted entertainment information system

Country Status (1)

Country Link
CN (1) CN112804672B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20080004097A (en) * 2006-07-04 2008-01-09 김형덕 Bluetooth system module
KR20080043988A (en) * 2006-11-15 2008-05-20 엘지전자 주식회사 Bluetooth interface apparatus and method
CN101415251A (en) * 2008-11-25 2009-04-22 中兴通讯股份有限公司 Apparatus for implementing data transmission based on Bluetooth
CN101634976A (en) * 2009-08-27 2010-01-27 中兴通讯股份有限公司 Method and terminal for providing Bluetooth function for computer
CN102316473A (en) * 2010-07-09 2012-01-11 大唐移动通信设备有限公司 Gateway equipment and data transmission method
CN103166684A (en) * 2013-04-09 2013-06-19 北京兴科迪科技有限公司 Vehicle-mounted Bluetooth device
KR20160032641A (en) * 2014-09-16 2016-03-24 주식회사 비즈모델라인 Method for Providing Location Based Service by using Bluetooth
CN107105358A (en) * 2017-06-02 2017-08-29 歌尔科技有限公司 A kind of bluetooth earphone and bluetooth earphone control method
CN107911871A (en) * 2017-12-12 2018-04-13 腾讯科技(深圳)有限公司 Control method, device and control device, the storage medium of bluetooth connection
CN111954039A (en) * 2020-07-02 2020-11-17 深圳市华曦达科技股份有限公司 Set top box Bluetooth configuration method and device, electronic equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070294710A1 (en) * 2006-06-19 2007-12-20 Alps Automotive Inc. Simple bluetooth software development kit

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20080004097A (en) * 2006-07-04 2008-01-09 김형덕 Bluetooth system module
KR20080043988A (en) * 2006-11-15 2008-05-20 엘지전자 주식회사 Bluetooth interface apparatus and method
CN101415251A (en) * 2008-11-25 2009-04-22 中兴通讯股份有限公司 Apparatus for implementing data transmission based on Bluetooth
CN101634976A (en) * 2009-08-27 2010-01-27 中兴通讯股份有限公司 Method and terminal for providing Bluetooth function for computer
WO2011022965A1 (en) * 2009-08-27 2011-03-03 中兴通讯股份有限公司 Bluetooth function providing method and terminal for computer
CN102316473A (en) * 2010-07-09 2012-01-11 大唐移动通信设备有限公司 Gateway equipment and data transmission method
CN103166684A (en) * 2013-04-09 2013-06-19 北京兴科迪科技有限公司 Vehicle-mounted Bluetooth device
KR20160032641A (en) * 2014-09-16 2016-03-24 주식회사 비즈모델라인 Method for Providing Location Based Service by using Bluetooth
CN107105358A (en) * 2017-06-02 2017-08-29 歌尔科技有限公司 A kind of bluetooth earphone and bluetooth earphone control method
CN107911871A (en) * 2017-12-12 2018-04-13 腾讯科技(深圳)有限公司 Control method, device and control device, the storage medium of bluetooth connection
CN111954039A (en) * 2020-07-02 2020-11-17 深圳市华曦达科技股份有限公司 Set top box Bluetooth configuration method and device, electronic equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
刘涛.《基于蓝牙协议的数据传输技术研究》.《中国优秀硕士学位论文全文数据库 信息科技辑》.2004,全文. *
吕成亮.《基于OBD专有协议芯片的汽车数据采集系统的设计》.《中国优秀硕士学位论文全文数据库 信息科技辑》.2018,全文. *

Also Published As

Publication number Publication date
CN112804672A (en) 2021-05-14

Similar Documents

Publication Publication Date Title
CN109710340B (en) Software tool calling method and device and software tool packaging method and device
CN100383755C (en) Software interface testing method and apparatus
EP2608585B1 (en) Method, device and system for triggering terminal operation
CN109240697B (en) Call processing method and device and storage medium
CN114077462A (en) Method, device, equipment and medium for calling Android HIDL interface by software operating system
CN102946415B (en) A kind of implementation method of mobile terminal this locality application and device
CN109976787B (en) Application program upgrading method and device, terminal and computer readable storage medium
CN111258550A (en) Software architecture and software architecture development method
CN111506579B (en) Method, program and equipment for generating intelligent contract code
CN103176899A (en) Mobile phone emulator and method for emulating mobile phone functions on host machine
CN113407362A (en) SOMEIP communication intermediate layer implementation method and system based on SOA architecture of vehicle-mounted Android system
CN106919391B (en) Embedded system of customizable operating system component facing smart phone
CN102402455A (en) Method and device for calling dynamic link library (DLL)
CN103530165B (en) A kind of java solution that is applied to Internet of Things industry
JPH11175091A (en) Speech recognition device for telephone line
CN112804672B (en) Bluetooth interface adaptation method and vehicle-mounted entertainment information system
CN109597825B (en) Rule engine calling method, device, equipment and computer readable storage medium
US20120227057A1 (en) Driver Shimming
CN113835723A (en) System on chip, upgrading system and method for vehicle electronic control unit
CN116700552B (en) Application connection method and terminal equipment
CN101216804A (en) Testing device and method
CN110737428A (en) Hidl-based universal interface design method, device, terminal and readable storage medium
US7765559B2 (en) Apparatus and method for communicating between cellular modem software and application engine software of a communications device
CN113886731A (en) Method for routing page jump based on iOS platform and application
CN115437551A (en) Data cloning method, device, storage medium and computer program product

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20220322

Address after: 430051 No. b1336, chuanggu startup area, taizihu cultural Digital Creative Industry Park, No. 18, Shenlong Avenue, Wuhan Economic and Technological Development Zone, Wuhan, Hubei Province

Applicant after: Yikatong (Hubei) Technology Co.,Ltd.

Address before: No.c101, chuanggu start up area, taizihu cultural Digital Industrial Park, No.18 Shenlong Avenue, Wuhan Economic Development Zone, Hubei Province

Applicant before: HUBEI ECARX TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant