Disclosure of Invention
The present application has been made to solve the above-mentioned technical problems. The embodiment of the application provides a method, a device and a vehicle-mounted device for establishing Bluetooth connection, which are applied to vehicle-mounted equipment with a single Bluetooth module, wherein the connection with first and second terminal equipment is respectively established through two Bluetooth channels of the single Bluetooth module, and data is transmitted from the first terminal equipment to the second terminal equipment, so that the vehicle-mounted equipment realizes simple and convenient Bluetooth connection and data transmission with a plurality of terminal equipment through the single module, and the cost of the vehicle-mounted equipment is reduced.
According to one aspect of the application, a Bluetooth connection establishment method is provided, and the Bluetooth connection establishment method is applied to vehicle-mounted equipment with a built-in single Bluetooth module, and comprises the steps of scanning terminal equipment capable of being connected through Bluetooth, establishing connection with first terminal equipment through a first Bluetooth channel of the single Bluetooth module and establishing connection with second terminal equipment through a second Bluetooth channel of the single Bluetooth module when two terminal equipment are scanned, wherein the vehicle-mounted equipment receives data of the first terminal equipment through the first Bluetooth channel and sends the data to the second terminal equipment through the second Bluetooth channel.
In the method for establishing Bluetooth connection, establishing connection with the first terminal device through the first Bluetooth channel of the single Bluetooth module comprises the steps of setting the first terminal device as a master device, setting the vehicle-mounted device as a slave device, and establishing connection from the first terminal device to the vehicle-mounted device through the first Bluetooth channel of the single Bluetooth module.
In the method for establishing the Bluetooth connection, the connection from the first terminal device to the vehicle-mounted device is established through the first Bluetooth channel of the single Bluetooth module.
In the method for establishing the Bluetooth connection, the connection with the second terminal equipment is established through the second Bluetooth channel of the single Bluetooth module, wherein the vehicle-mounted equipment is set as a master equipment, the second terminal equipment is set as a slave equipment, and the data transmission connection from the vehicle-mounted equipment to the second terminal equipment is established through the second Bluetooth channel of the single Bluetooth module.
In the method for establishing the Bluetooth connection, the data transmission connection from the vehicle-mounted device to the second terminal device is established through the second Bluetooth channel of the single Bluetooth module, and the data transmission connection from the vehicle-mounted device to the second terminal device is established through a protocol stack supported by the second Bluetooth channel of the single Bluetooth module.
In the method for establishing bluetooth connection, the first bluetooth channel and the second bluetooth channel adopt the same protocol stack when transmitting the same data.
In the method for establishing a bluetooth connection, the data includes music data or call data.
In the method for establishing bluetooth connection, the first terminal device is a handheld mobile device, and the second terminal device is a vehicle.
In the method for establishing Bluetooth connection, the vehicle-mounted device receives the data of the first terminal device through the first Bluetooth channel and sends the data to the second terminal device through the second Bluetooth channel, wherein the vehicle-mounted device uses a single baseband and link control unit and a single radio frequency unit, receives the data of the first terminal device through the first Bluetooth channel and sends the data to the second terminal device through the second Bluetooth channel.
According to another aspect of the application, there is provided an apparatus for establishing a bluetooth connection, applied to a vehicle-mounted device having a bluetooth module built therein, comprising a scanning unit for scanning terminal devices connectable through bluetooth, a connection unit for establishing a connection with a first terminal device through a first bluetooth channel of the bluetooth module and a connection with a second terminal device through a second bluetooth channel of the bluetooth module when two terminal devices are scanned, and a transceiving unit for controlling the vehicle-mounted device to receive data of the first terminal device through the first bluetooth channel and transmit the data to the second terminal device through the second bluetooth channel.
In the device for establishing Bluetooth connection, the connection unit establishes connection with the first terminal equipment through the first Bluetooth channel of the single Bluetooth module, wherein the first terminal equipment is set as a master equipment, the vehicle-mounted equipment is set as a slave equipment, and the connection from the first terminal equipment to the vehicle-mounted equipment is established through the first Bluetooth channel of the single Bluetooth module.
In the device for establishing Bluetooth connection, the connection unit establishes connection from the first terminal device to the vehicle-mounted device through the first Bluetooth channel of the single Bluetooth module, and specifically comprises the step of establishing connection from the first terminal device to the vehicle-mounted device through a protocol stack supported by the first Bluetooth channel of the single Bluetooth module.
In the device for establishing Bluetooth connection, the connection unit establishes connection with the second terminal device through the second Bluetooth channel of the single Bluetooth module, wherein the vehicle-mounted device is set as a master device, the second terminal device is set as a slave device, and data transmission connection from the vehicle-mounted device to the second terminal device is established through the second Bluetooth channel of the single Bluetooth module.
In the device for establishing Bluetooth connection, the connection unit establishes data transmission connection from the vehicle-mounted device to the second terminal device through the second Bluetooth channel of the single Bluetooth module.
In the device for establishing bluetooth connection, the transceiver unit adopts the same protocol stack when transmitting the same data through the first bluetooth channel and the second bluetooth channel.
In the above-described device for establishing a bluetooth connection, the data includes music data or call data.
In the device for establishing bluetooth connection, the first terminal device is a handheld mobile device, and the second terminal device is a vehicle.
In the device for establishing Bluetooth connection, the receiving and transmitting unit is used for receiving the data of the first terminal device through the first Bluetooth channel by using the single baseband and link control unit and the single radio frequency unit and transmitting the data to the second terminal device through the second Bluetooth channel.
According to a further aspect of the present application there is provided an in-vehicle apparatus comprising a processor and a memory in which computer program instructions are stored which, when executed by the processor, cause the processor to perform the method of establishing a bluetooth connection as described above.
According to a further aspect of the present application there is provided a computer readable medium having stored thereon computer program instructions which, when executed by a processor, cause the processor to perform a method of establishing a bluetooth connection as described above.
The method, the device and the vehicle-mounted device for establishing the Bluetooth connection, which are provided by the application, are applied to the vehicle-mounted device with the built-in single Bluetooth module, and respectively establish the connection with the first terminal device and the second terminal device through the two Bluetooth channels of the single Bluetooth module and transmit the data from the first terminal device to the second terminal device, so that the vehicle-mounted device realizes simple and convenient Bluetooth connection and data transmission with a plurality of terminal devices through the single module, and the cost of the vehicle-mounted device is reduced.
Detailed Description
Hereinafter, exemplary embodiments according to the present application will be described in detail with reference to the accompanying drawings. It should be apparent that the described embodiments are only some embodiments of the present application and not all embodiments of the present application, and it should be understood that the present application is not limited by the example embodiments described herein.
Summary of the application
As described above, in the in-vehicle scenario, there are a plurality of devices supporting the bluetooth connection mode, such as a smart phone (a mobile phone) used by a user, a rearview mirror, an in-vehicle device (e.g., a smart box), and the like. The intelligent car box is generally connected with a car machine (a car-mounted multimedia system) in a wired or wireless (Wi-Fi or Bluetooth) connection mode.
In order to enable the vehicle-mounted device to bring better experience to users, the design of the intelligent vehicle box only supports the connection of the vehicle and the vehicle to the direction of supporting the connection of multiple devices, under the Bluetooth connection scene, if the connection of multiple devices is supported by adding Bluetooth modules, for example, when the intelligent vehicle box needs to be connected with two terminal devices, the connection of the intelligent vehicle box can be realized by arranging two Bluetooth modules in the intelligent vehicle box, the first Bluetooth module is connected with a mobile phone, the second Bluetooth module is connected with the vehicle and the vehicle, so that the mobile phone and the vehicle realize data exchange through the two Bluetooth modules arranged in the intelligent vehicle box, the system design is complex, two sets of RF (radio frequency) and antenna (antenna) must be designed, the problem of antenna also exists, frequency hopping is frequent due to mutual interference easily, and the communication bandwidth is reduced.
Aiming at the technical problems, the basic idea of the application is to build a single Bluetooth module (single Bluetooth module) in the vehicle-mounted equipment, and establish connection with the first terminal equipment and the second terminal equipment through a first Bluetooth channel and a second Bluetooth channel of the single Bluetooth module respectively, so that data transmission between the first terminal equipment and the second terminal equipment is realized through the first Bluetooth channel and the second Bluetooth channel.
Specifically, the method and the device for establishing the Bluetooth connection are applied to the vehicle-mounted equipment with the built-in single Bluetooth module, firstly, terminal equipment capable of being connected through Bluetooth is scanned, then when two terminal equipment are scanned, connection with the first terminal equipment is established through a first Bluetooth channel of the single Bluetooth module, connection with the second terminal equipment is established through a second Bluetooth channel of the single Bluetooth module, and finally, the vehicle-mounted equipment receives data of the first terminal equipment through the first Bluetooth channel and sends the data to the second terminal equipment through the second Bluetooth channel.
Therefore, the Bluetooth connection establishment method, device and vehicle-mounted equipment provided by the application can solve the Bluetooth connection problem of a plurality of terminal equipment in a vehicle-mounted scene through the single Bluetooth module, thereby improving Bluetooth interaction experience in the vehicle-mounted scene, automatically realizing simple and convenient data transmission between the first terminal equipment and the second terminal equipment, avoiding manual switching equipment of a driver, reducing the operation of the driver and avoiding distraction of the driver.
In addition, the vehicle-mounted equipment provided by the application only needs to comprise a single Bluetooth module, and a scheme of using double Bluetooth modules is not needed, so that the system is simple in design and low in cost, and the design is reliable technically without an external data channel.
Having described the basic principles of the present application, various non-limiting embodiments of the present application will now be described in detail with reference to the accompanying drawings.
Exemplary application scenarios
Fig. 1 illustrates a schematic diagram of an application scenario of a method of establishing a bluetooth connection according to an embodiment of the application.
As shown in fig. 1, the method of establishing a bluetooth connection according to the embodiment of the application is applied to a vehicle-mounted device 100 having a bluetooth module 110 built therein. As described above, the vehicle-mounted device 100 is different from a conventional car machine, or a conventional car-mounted rear-mounted navigation device, an intelligent rear-view mirror, or the like, but is connected to the conventional car-mounted device through a USB interface or the like, thereby realizing intelligent service upgrade of the vehicle.
For example, the in-vehicle apparatus 100 may be implemented as various smart car box products currently on the market, so as to provide various services such as map navigation, vehicle interconnection, voice interaction, content consumption, etc. to a user through connection with a car machine of the vehicle itself.
Thus, as shown in fig. 1, the in-vehicle apparatus 100 may be connected to a terminal apparatus of a user, for example, a mobile phone 120 of the user P, on the one hand, and various in-vehicle apparatuses of a vehicle 130, for example, a car machine or the like (not shown in fig. 1), on the other hand.
In addition, by the method for establishing bluetooth connection according to the embodiment of the present application, the vehicle-mounted device 100 with the bluetooth module 110 can establish bluetooth connection with the mobile phone 120 and the vehicle-mounted device of the vehicle 130, for example, a vehicle machine, through the first bluetooth channel and the second bluetooth channel of the bluetooth module, respectively, so as to realize data interaction between the mobile phone 120 and the vehicle-mounted device. For example, audio is transmitted from the mobile phone 120 to the car body to play audio content through a speaker of the vehicle, or an image is transmitted from the mobile phone 120 to various in-vehicle devices to display an image or the like through a display screen of the in-vehicle device.
It should be noted that, in the embodiment of the present application, the vehicle-mounted device 100 with the bluetooth module 110 is not limited to transmitting data between the mobile phone 120 and the vehicle-mounted device of the vehicle 130, but may also be used to transmit data between various vehicle-mounted devices. For example, the vehicle-mounted device 100 with the single bluetooth module 110 can be connected with bluetooth of the vehicle and the vehicle-mounted post-mounted navigation device to realize data interaction between the vehicle and the vehicle-mounted post-mounted navigation device, for example, to transmit map data from the vehicle-mounted post-mounted navigation device to the vehicle.
Therefore, although the in-vehicle apparatus 100 having the bluetooth module 110 built therein is shown in fig. 1 as transmitting data between the cellular phone 120 and the in-vehicle apparatus of the vehicle 130, this is merely an example, and in the embodiment of the present application, each of the first terminal apparatus and the second terminal apparatus may be any user terminal apparatus or any in-vehicle apparatus. For example, the vehicle device 100 with the bluetooth module 110 may also be used to transmit data between two user terminal devices, such as a user's mobile phone and another user's mobile phone.
Exemplary method
Fig. 2 illustrates a schematic flow chart of a method of establishing a bluetooth connection according to an embodiment of the application.
As shown in FIG. 2, the method for establishing Bluetooth connection according to the embodiment of the application is applied to a vehicle-mounted device with a built-in Bluetooth module and comprises S110, S120, when two terminal devices are scanned, establishing connection with a first terminal device through a first Bluetooth channel of the Bluetooth module and establishing connection with a second terminal device through a second Bluetooth channel of the Bluetooth module, and S130, wherein the vehicle-mounted device receives data of the first terminal device through the first Bluetooth channel and sends the data to the second terminal device through the second Bluetooth channel.
In step S110, a terminal device connectable through bluetooth is scanned. As mentioned above, the terminal device capable of being connected through bluetooth may include any user terminal device, such as a smart phone, a tablet computer, etc. of a user, and may also include any vehicle-mounted device, such as a car machine, a vehicle-mounted post-mounted navigation device, an intelligent rearview mirror, etc.
In step S120, when two terminal devices are scanned, a connection with a first terminal device is established through a first bluetooth channel of the bluetooth module, and a connection with a second terminal device is established through a second bluetooth channel of the bluetooth module.
That is, in the embodiment of the present application, the single bluetooth module includes a first bluetooth channel and a second bluetooth channel. The first bluetooth channel is used for establishing connection with a first terminal device for transmitting data, namely a first bluetooth connection, and the second bluetooth channel is used for establishing connection with a second terminal device for receiving data, namely a second bluetooth connection. Here, the first bluetooth connection and the second bluetooth connection may be conventional bluetooth connections or BLE low energy bluetooth connections.
For example, in an audio playback scenario, a user may wish to play audio in a cell phone through a speaker of a vehicle, thereby requiring audio data to be transmitted from the cell phone to the car phone. Thus, the first terminal device is a cellular phone to which audio data is to be transmitted, and the second terminal device is a car phone to which audio data is to be received. Thus, the first Bluetooth channel is used for establishing a first Bluetooth connection with a mobile phone, and the second Bluetooth channel is used for establishing a second Bluetooth connection with a vehicle.
Specifically, when a connection is established with the first terminal device through the first bluetooth channel of the bluetooth single module, the first terminal device may be set as a master device, and the vehicle-mounted device may be set as a slave device, so that a connection from the first terminal device to the vehicle-mounted device is established through the first bluetooth channel of the bluetooth single module. That is, since the first terminal device is used to transmit data, by setting it as a master device and setting the in-vehicle device for receiving data as a slave device, a connection from the first terminal device to the in-vehicle device can be established through the first bluetooth channel of the bluetooth-only module.
Similarly, when a connection is established with the second terminal device through the second bluetooth channel of the bluetooth single module, the in-vehicle device may be set as a master device, and the second terminal device may be set as a slave device, so that a connection from the in-vehicle device to the second terminal device is established through the second bluetooth channel of the bluetooth single module. That is, since the in-vehicle apparatus is used to transmit data, by setting it as a master apparatus and setting the second terminal apparatus for receiving data as a slave apparatus, a connection from the in-vehicle apparatus to the second terminal apparatus can be established through the second bluetooth channel of the bluetooth-only module.
Thus, when the in-vehicle apparatus establishes a connection with the first terminal apparatus and the second terminal apparatus simultaneously, the in-vehicle apparatus functions as both a master apparatus and a slave apparatus, receives data from the first terminal apparatus through the first bluetooth channel, and transmits the data to the second terminal apparatus through the second bluetooth channel, respectively.
Specifically, in the process of establishing a connection through a bluetooth channel, the connection is established through a protocol stack supported by the bluetooth channel. That is, the connection from the first terminal device to the vehicle-mounted device is established through the protocol stack supported by the first bluetooth channel of the bluetooth module, and the connection from the vehicle-mounted device to the second terminal device is established through the protocol stack supported by the second bluetooth channel of the bluetooth module. In particular, the protocol stacks supported by the first bluetooth channel and the second bluetooth channel may correspond to a plurality of protocols, such as the A2DP, HFP, AVRCP protocol, etc. Where A2DP (Advanced Audio Distribution Profile: advanced Audio distribution Profile) is the Bluetooth audio transport protocol, HFP (Hands-free Profile: hands free Profile) is the protocol that implements hands free functionality, and AVRCP (Audio Video Remote Control Profile: audio/video remote control Profile) is the protocol that is used to allow a single remote control device (or other device) to control all audio/video devices that a user may access.
Thus, based on a specific data transmission scenario, a connection is established through protocol stacks supported by the first bluetooth channel and the second bluetooth channel to receive data from the first terminal device and to transmit the data to the second terminal device. For example, if the music of the cell phone needs to be played through the car machine, the A2DP protocol may be used, whereas if the call is to be answered with the hands-free function through the car machine, the HFP protocol may be used.
That is, the first bluetooth channel and the second bluetooth channel use the same protocol stack when transmitting the same data.
Thus, in the method for establishing Bluetooth connection according to the embodiment of the application, the connection with the first terminal device is established through the first Bluetooth channel of the single Bluetooth module, wherein the first terminal device is set as a master device, the vehicle-mounted device is set as a slave device, and the connection from the first terminal device to the vehicle-mounted device is established through the first Bluetooth channel of the single Bluetooth module.
In the method for establishing the Bluetooth connection, the connection from the first terminal device to the vehicle-mounted device is established through the first Bluetooth channel of the single Bluetooth module.
In addition, in the method for establishing Bluetooth connection, establishing connection with the second terminal device through the second Bluetooth channel of the single Bluetooth module comprises the steps of setting the vehicle-mounted device as a master device, setting the second terminal device as a slave device, and establishing data transmission connection from the vehicle-mounted device to the second terminal device through the second Bluetooth channel of the single Bluetooth module.
In addition, in the method for establishing the Bluetooth connection, the data transmission connection from the vehicle-mounted device to the second terminal device is established through the second Bluetooth channel of the single Bluetooth module, and the data transmission connection from the vehicle-mounted device to the second terminal device is established through a protocol stack supported by the second Bluetooth channel of the single Bluetooth module.
In step S130, the vehicle-mounted device receives data of the first terminal device through the first bluetooth channel, and sends the data to the second terminal device through the second bluetooth channel.
That is, after connection from a first terminal device to a vehicle-mounted device is established through a first bluetooth channel of the bluetooth-only module and connection from a vehicle-mounted device to a second terminal device is established through a second bluetooth channel of the bluetooth-only module, respectively, the vehicle-mounted device may receive data from the first terminal device and transmit the data to the second terminal device.
Specifically, the data transmission may be performed by a private protocol, that is, after bluetooth connections from the first terminal device to the in-vehicle device and from the in-vehicle device to the second terminal device are established, the data of the first terminal device may be received at the in-vehicle device by the private protocol and transmitted to the second terminal device.
Correspondingly, the vehicle-mounted device receives data from the first terminal device through a first Bluetooth channel. For example, in a mobile phone call scenario, when a bluetooth phone application of the vehicle-mounted device is started, the vehicle-mounted device establishes a connection with the mobile phone through a first bluetooth channel, so as to realize a bluetooth phone function of the vehicle-mounted device.
And the vehicle-mounted device transmits data to the second terminal device through a second Bluetooth channel. Also, taking a mobile phone call scenario as an example, when the bluetooth phone application of the vehicle-mounted device is started, the vehicle-mounted device establishes connection with the vehicle machine through the second bluetooth channel, so as to realize the bluetooth phone function of the vehicle-mounted device.
That is, in the mobile phone call scenario, the data received by the vehicle-mounted device from the first terminal device and the data sent to the second terminal device are both call data. In addition, in the scene of playing music in the mobile phone through the car machine, the data received by the car-mounted equipment from the first terminal equipment and the data sent to the second terminal equipment are music data.
It should be noted that, in the method for establishing a bluetooth connection according to the embodiment of the present application, there is a need for data switching at any time, and at this time, the established connection from the first terminal device to the vehicle-mounted device and the established connection from the vehicle-mounted device to the second terminal device also need to switch different data transmission protocols. And, depending on the real-time requirements of the data to be transmitted, the established connection from the first terminal device to the vehicle-mounted device and the connection from the vehicle-mounted device to the second terminal device may establish a synchronous link or an asynchronous link, e.g. the voice transmission requires the establishment of a synchronous link.
Therefore, in the method of establishing a bluetooth connection according to an embodiment of the present application, the data includes music data or call data.
In the method for establishing bluetooth connection, the first terminal device is a handheld mobile device, and the second terminal device is a vehicle.
In the method for establishing a bluetooth connection according to the embodiment of the present application, a bluetooth search may be further performed for searching for bluetooth signals of the first terminal device and the second terminal device. That is, the vehicle intelligent terminal may turn on the bluetooth function in response to a predetermined operation, such as a power-on operation or an operation of a user to turn on the bluetooth function, and find the first terminal device and the second terminal device by searching for the bluetooth device.
And, as described above, in the vehicle-mounted device with a built-in bluetooth module according to the embodiment of the application, a single baseband and link control unit and a single radio frequency unit are included for the first bluetooth channel and the second bluetooth channel. That is, the first bluetooth channel and the second bluetooth channel share a baseband and link control unit and a radio frequency unit, so as to establish connection with the first terminal device and the second terminal device, respectively, thereby implementing a single bluetooth module.
That is, in the method for establishing bluetooth connection according to the embodiment of the present application, the vehicle-mounted device receives data of the first terminal device through the first bluetooth channel and transmits the data to the second terminal device through the second bluetooth channel includes that the vehicle-mounted device receives data of the first terminal device through the first bluetooth channel using a single baseband and link control unit and a single radio frequency unit and transmits the data to the second terminal device through the second bluetooth channel.
Application example
Fig. 3 illustrates a schematic diagram of an application example of an in-vehicle apparatus in which a bluetooth module is built in accordance with an embodiment of the present application.
As shown in fig. 3, the in-vehicle apparatus includes a lane 1 and a lane 2, i.e., a first bluetooth lane and a second bluetooth lane as described above, and the lane 1 and the lane 2 use A2DP and HFP protocols, respectively.
The channel 1 and the channel 2 respectively establish Bluetooth connection with the mobile equipment and the car machine through the baseband and link control unit and the radio frequency unit. Wherein, in the bluetooth connection established with the mobile device, the mobile device is used as a bluetooth master device, and in the bluetooth connection established with the car machine, the car machine is used as a bluetooth slave device.
Further, the channel 1 and the channel 2 may be used to transmit call data and audio data of the in-vehicle apparatus. In the audio playing scene, the mobile device transmits the audio data to the vehicle-mounted device through the channel 1 established by the A2DP, and the vehicle-mounted device simultaneously transmits the audio data to the vehicle machine through the A2DP connection of the channel 2, so that audio playing is realized. In the call scene, after the mobile device is powered on, the channel 1 is switched to the HFP protocol, and synchronous link connection is established at the same time, call data are transmitted to the vehicle-mounted device through the channel 1, and after the vehicle-mounted device receives call content, the synchronous link connection established through the HFP of the Bluetooth channel 2 is transmitted to the vehicle, so that call interaction is realized.
Therefore, through improving Bluetooth interaction experience in the vehicle-mounted scene, hands of a driver are liberated, operation of the driver is reduced, and distraction of the driver is avoided. In addition, compared with the scheme of double Bluetooth modules, the scheme of single Bluetooth module can enable the cost to be optimal, and the external data channel is not needed in the technology, so that the design is simple and reliable.
After the mobile device, the vehicle-mounted device and the vehicle machine establish the Bluetooth connection, a user can control the vehicle-mounted device through the mobile device, can also control the vehicle-mounted device through the vehicle machine, or can also control the vehicle-mounted device through the mobile device by means of the vehicle machine, and vice versa.
It is to be clarified that, in the application, the vehicle-mounted device performs data transmission with other two devices through two channels of a single bluetooth module respectively, and the application does not limit that the vehicle-mounted device can only connect two devices through the single bluetooth module, and the vehicle-mounted device can establish connection with more than two devices through the single bluetooth module at the same time, but only supports data transmission between the two devices through the single bluetooth module of the vehicle-mounted device during data transmission.
Exemplary apparatus
Fig. 4 illustrates a schematic block diagram of an apparatus for establishing a bluetooth connection according to an embodiment of the application.
As shown in fig. 4, the apparatus 200 for establishing bluetooth connection is applied to a vehicle-mounted device with a built-in bluetooth module, and includes a scanning unit 210 for scanning terminal devices connectable through bluetooth, a connection unit 220 for establishing connection with a first terminal device through a first bluetooth channel of the bluetooth module and with a second terminal device through a second bluetooth channel of the bluetooth module when two terminal devices are scanned, and a transceiving unit 230 for controlling the vehicle-mounted device to receive data of the first terminal device through the first bluetooth channel and to transmit the data to the second terminal device through the second bluetooth channel.
In one example, in the apparatus 200 for establishing bluetooth connection, the connection unit 220 establishes a connection with a first terminal device through a first bluetooth channel of a bluetooth single module, including setting the first terminal device as a master device, setting the vehicle-mounted device as a slave device, and establishing a connection from the first terminal device to the vehicle-mounted device through the first bluetooth channel of the bluetooth single module.
In one example, in the apparatus 200 for establishing a bluetooth connection, the connection unit 220 establishes a connection from the first terminal device to the vehicle device through a first bluetooth channel of the bluetooth module, which specifically includes establishing a connection from the first terminal device to the vehicle device through a protocol stack supported by the first bluetooth channel of the bluetooth module.
In one example, in the apparatus 200 for establishing bluetooth connection, the connection unit 220 establishes a connection with a second terminal device through a second bluetooth channel of a bluetooth single module, and includes setting the vehicle-mounted device as a master device, setting the second terminal device as a slave device, and establishing a data transmission connection from the vehicle-mounted device to the second terminal device through the second bluetooth channel of the bluetooth single module.
In one example, in the apparatus 200 for establishing a bluetooth connection, the connection unit 220 establishes a data transmission connection from the vehicle device to the second terminal device through a second bluetooth channel of the bluetooth module, which specifically includes establishing a data transmission connection from the vehicle device to the second terminal device through a protocol stack supported by the second bluetooth channel of the bluetooth module.
In one example, in the above-mentioned device 200 for establishing a bluetooth connection, the transceiver unit 230 uses the same protocol stack when transmitting the same data through the first bluetooth channel and the second bluetooth channel.
In one example, in the above-described apparatus 200 for establishing a bluetooth connection, the data includes music data or call data.
In one example, in the apparatus 200 for establishing a bluetooth connection, the first terminal device is a handheld mobile device, and the second terminal device is a vehicle.
In one example, in the apparatus 200 for establishing a bluetooth connection, the transceiver unit 230 is configured to receive data of a first terminal device through a first bluetooth channel using a single baseband and link control unit and a single radio frequency unit, and send the data to a second terminal device through a second bluetooth channel.
Here, it will be understood by those skilled in the art that the specific functions and operations of the respective units and modules in the above-described apparatus 200 for establishing bluetooth connection have been described in detail in the above description of the method for establishing bluetooth connection with reference to fig. 1 to 3, and thus, repetitive descriptions thereof will be omitted.
As described above, the apparatus 200 for establishing bluetooth connection according to the embodiment of the present application may be implemented in a vehicle-mounted device such as an intelligent car box in which a bluetooth module is built. In one example, the apparatus 200 for establishing a bluetooth connection according to an embodiment of the present application may be integrated into an in-vehicle device as a software module and/or a hardware module. For example, the means for establishing a bluetooth connection 200 may be a software module in the operating system of the vehicle-mounted device or may be an application developed for the vehicle-mounted device, and of course, the means for establishing a bluetooth connection 200 may also be one of a plurality of hardware modules of the vehicle-mounted device.
Alternatively, in another example, the apparatus 200 for establishing a bluetooth connection and the in-vehicle device may be separate devices, and the apparatus 200 for establishing a bluetooth connection may be connected to the in-vehicle device through a wired and/or wireless network and transmit the interactive information in a agreed data format.
Exemplary in-vehicle apparatus
Next, a vehicle-mounted device according to an embodiment of the present application is described with reference to fig. 5.
Fig. 5 illustrates a block diagram of an in-vehicle apparatus according to an embodiment of the present application.
As shown in fig. 5, the in-vehicle apparatus 10 includes one or more processors 11 and a memory 12.
The processor 11 may be a Central Processing Unit (CPU) or other form of processing unit having data processing capabilities and/or instruction execution capabilities, and may control other components in the in-vehicle apparatus 10 to perform desired functions.
Memory 12 may include one or more computer program products that may include various forms of computer-readable storage media, such as volatile memory and/or non-volatile memory. The volatile memory may include, for example, random Access Memory (RAM) and/or cache memory (cache), and the like. The non-volatile memory may include, for example, read Only Memory (ROM), hard disk, flash memory, and the like. One or more computer program instructions may be stored on the computer readable storage medium that can be executed by the processor 11 to implement the method of establishing a bluetooth connection and/or other desired functions of the various embodiments of the application described above. Various contents such as a protocol stack supported by a bluetooth channel may also be stored in the computer readable storage medium.
In one example, the in-vehicle apparatus 10 may further include an input device 13 and an output device 14, which are interconnected by a bus system and/or other form of connection mechanism (not shown).
The input means 13 may comprise, for example, a keyboard, a mouse, etc.
The output device 14 may output various information including data received from the terminal device and the like to the outside. The output means 14 may include, for example, a display, speakers, a printer, and a communication network and remote output devices connected thereto, etc.
Of course, only some of the components of the in-vehicle apparatus 10 relevant to the present application are shown in fig. 5 for simplicity, and components such as buses, input/output interfaces, and the like are omitted. In addition, the in-vehicle apparatus 10 may include any other suitable components, depending on the particular application.
Exemplary computer program product and computer readable storage Medium
In addition to the methods and apparatus described above, embodiments of the application may also be a computer program product comprising computer program instructions which, when executed by a processor, cause the processor to perform the steps in a method of establishing a bluetooth connection according to the various embodiments of the application described in the "exemplary methods" section of this specification.
The computer program product may write program code for performing operations of embodiments of the present application in any combination of one or more programming languages, including an object oriented programming language such as Java, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the first user computing device, partly on the first user device, as a stand-alone software package, partly on the first user computing device, partly on a remote computing device, or entirely on a remote computing device or server.
Furthermore, embodiments of the present application may also be a computer-readable storage medium, having stored thereon computer program instructions, which when executed by a processor, cause the processor to perform the steps in a method of establishing a bluetooth connection according to the various embodiments of the present application described in the "exemplary method" section of the present specification.
The computer readable storage medium may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may include, for example, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of a readable storage medium include an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The basic principles of the present application have been described above in connection with specific embodiments, but it should be noted that the advantages, benefits, effects, etc. mentioned in the present application are merely examples and not intended to be limiting, and these advantages, benefits, effects, etc. are not to be construed as necessarily possessed by the various embodiments of the application. Furthermore, the specific details disclosed herein are for purposes of illustration and understanding only, and are not intended to be limiting, as the application is not necessarily limited to practice with the above described specific details.
The block diagrams of the devices, apparatuses, devices, systems referred to in the present application are only illustrative examples and are not intended to require or imply that the connections, arrangements, configurations must be made in the manner shown in the block diagrams. As will be appreciated by one of skill in the art, the devices, apparatuses, devices, systems may be connected, arranged, configured in any manner. Words such as "including," "comprising," "having," and the like are words of openness and mean "including but not limited to," and are used interchangeably therewith. The terms "or" and "as used herein refer to and are used interchangeably with the term" and/or "unless the context clearly indicates otherwise. The term "such as" as used herein refers to, and is used interchangeably with, the phrase "such as, but not limited to.
It is also noted that in the apparatus, devices and methods of the present application, the components or steps may be disassembled and/or assembled. Such decomposition and/or recombination should be considered as equivalent aspects of the present application.
The previous description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present application. Various modifications to these aspects will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other aspects without departing from the scope of the application. Thus, the present application is not intended to be limited to the aspects shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
The foregoing description has been presented for purposes of illustration and description. Furthermore, this description is not intended to limit embodiments of the application to the form disclosed herein. Although a number of example aspects and embodiments have been discussed above, a person of ordinary skill in the art will recognize certain variations, modifications, alterations, additions, and subcombinations thereof.