[0045] In order to make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be described clearly and completely in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of the embodiments of the present invention, not all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present invention.
[0046] It should be noted that the user terminal equipment involved in the embodiments of the present invention may include, but is not limited to, mobile phones, personal digital assistants (Personal Digital Assistant, PDA), wireless handheld devices, tablet computers (Tablet Computer), personal computers (Personal Computer, PC), MP3 players, MP4 players, wearable devices (for example, smart glasses, smart watches, smart bracelets, etc.), etc. The vehicle-mounted terminal equipment involved in the embodiments of the present invention can also be called a car machine, which refers to the abbreviation of the in-vehicle infotainment product installed in the car. The car machine must be able to realize the functions of people and car, car and outside Car-to-car) information communication.
[0047] In addition, the term "and/or" in this article is only an association relationship describing associated objects, which means that there can be three relationships. For example, A and/or B can mean that there is A alone, and both A and B exist. There are three cases of B alone. In addition, the character "/" in this text generally indicates that the associated objects before and after are in an "or" relationship.
[0048] figure 1 It is a schematic flowchart of a method for connecting a Bluetooth device provided by an embodiment of the present invention, such as figure 1 Shown.
[0049] 101. Detect whether there is a communication connection other than the Bluetooth connection between the first Bluetooth device and the second Bluetooth device.
[0050] Wherein, the communication connection other than the Bluetooth connection may include, but is not limited to, a universal serial bus (Universal Serial Bus, USB) connection or a wireless compatibility authentication (Wireless Fidelity, WI-FI) connection, and this embodiment does not make any special mention about this. limited.
[0051] Optionally, in a possible implementation of this embodiment, the indication information used to indicate the successful establishment of the communication connection between the first Bluetooth device and the second Bluetooth device other than the Bluetooth connection may be specifically detected. If the instruction information is reached, it indicates that there is a communication connection other than the Bluetooth connection between the first Bluetooth device and the second Bluetooth device; if the instruction information is not detected, it indicates that there is no communication between the first Bluetooth device and the second Bluetooth device. There are communication connections other than Bluetooth connections.
[0052] 102. If the communication connection other than the Bluetooth connection exists between the first Bluetooth device and the second Bluetooth device, based on the communication connection other than the Bluetooth connection, connect the first Bluetooth device to The pairing information is sent to the second Bluetooth device, so that the second Bluetooth device uses the pairing information of the first Bluetooth device to establish a Bluetooth connection with the first Bluetooth device.
[0053] It should be noted that the execution subject of 101 to 102 may be an application located in the first Bluetooth device, or may also be a functional unit such as a plug-in or a software development kit (SDK) set in an application located in the first Bluetooth device This embodiment does not specifically limit this.
[0054] It is understandable that the application may be a native application (nativeApp) installed on the first Bluetooth device, or it may be a webpage application (webApp) of the browser on the first Bluetooth device, which is not the case in this embodiment. Specially limited.
[0055] In this way, by detecting whether there is a communication connection other than the Bluetooth connection between the first Bluetooth device and the second Bluetooth device, if there is a communication connection other than the Bluetooth connection between the first Bluetooth device and the second Bluetooth device, For the second Bluetooth device, the pairing information of the first Bluetooth device may be sent to the second Bluetooth device based on the communication connection other than the Bluetooth connection, so that the second Bluetooth device can use the second Bluetooth device. The pairing information of a Bluetooth device establishes a Bluetooth connection with the first Bluetooth device without obtaining the connection identification input by the user, thereby shortening the Bluetooth connection establishment time and improving the Bluetooth connection establishment efficiency.
[0056] In the embodiment of the present invention, a terminal device with a Bluetooth function may be referred to as a Bluetooth device, for example, a vehicle-mounted terminal device or a user terminal device.
[0057] Optionally, in a possible implementation of this embodiment, the first Bluetooth device is preferably a vehicle-mounted terminal device; the second Bluetooth device is preferably a user terminal device. In this way, with the technical solution provided by the present invention, the Bluetooth connection between the vehicle-mounted terminal device and the user terminal device can be established without user operation, which can effectively improve the user experience of the vehicle-machine interconnection system, and at the same time improve the safety.
[0058] Conversely, the first Bluetooth device may also be a user terminal device; the second Bluetooth device may also be a vehicle-mounted terminal device. However, in practical applications, some low-end vehicle-mounted terminal devices do not have the ability to initiate the establishment of a Bluetooth connection, and they can only respond as a slave device connected to the user terminal device.
[0059] Optionally, in a possible implementation of this embodiment, in 102, it may be specifically based on the communication connection other than the Bluetooth connection, through out-of-band data (Out-Of-Banddata, OOB), all The pairing information of the first Bluetooth device is sent to the second Bluetooth device.
[0060] At this time, the pairing information of the first Bluetooth device may be a media access control (Media Access Control, MAC) address of the first Bluetooth device.
[0061] Specifically, the transport layer protocol can use out-of-band data to send some important data. If a communication party has important data to notify the other party, the protocol can quickly send these data to the other party. In order to send these data, the protocol generally does not use the same channel as the ordinary data, but uses another channel. In this way, because the out-of-band data is used to send the pairing information of the first Bluetooth device using another channel different from the normal data, the security is high. Therefore, in the subsequent Bluetooth connection establishment process , The second Bluetooth device does not need to additionally use the connection identification of the first Bluetooth device, for example, the pairing code, for verification, but directly uses the MAC address of the first Bluetooth device to establish a connection with the first Bluetooth device Bluetooth connection.
[0062] Optionally, in a possible implementation of this embodiment, in 102, specifically based on the communication connection other than the Bluetooth connection, the pairing information of the first Bluetooth device may be directly sent to the The second Bluetooth device.
[0063] At this time, the pairing information of the first Bluetooth device may be the MAC address of the first Bluetooth device and the connection identification of the first Bluetooth device, for example, a pairing code. In this way, in the subsequent Bluetooth connection establishment process, the second Bluetooth device can use the MAC address of the first Bluetooth device and the connection identifier of the first Bluetooth device to establish a Bluetooth connection with the first Bluetooth device .
[0064] Before the second Bluetooth device uses the pairing information of the first Bluetooth device to establish a Bluetooth connection with the first Bluetooth device, it needs to turn on the Bluetooth function of the first Bluetooth device and turn on the second Bluetooth device. Bluetooth function, so that the functional module corresponding to the Bluetooth function participates in the process of establishing the Bluetooth connection between the first Bluetooth device and the second Bluetooth device.
[0065] In the present invention, the Bluetooth functions of the two can be turned on at different times.
[0066] In a specific implementation process, if the communication connection other than the Bluetooth connection exists between the first Bluetooth device and the second Bluetooth device, the Bluetooth function of the first Bluetooth device can be turned on, and Turn on the Bluetooth function of the second Bluetooth device
[0067] Specifically, if the communication connection other than the Bluetooth connection exists between the first Bluetooth device and the second Bluetooth device, in addition to enabling the Bluetooth function of the first Bluetooth device, the first Bluetooth device may be further notified. Two Bluetooth devices, so that the second Bluetooth device enables the Bluetooth function of the second Bluetooth device, or the second Bluetooth device can also detect whether there is a communication connection other than the Bluetooth connection between the first Bluetooth device and the second Bluetooth device If there is the communication connection other than the Bluetooth connection between the first Bluetooth device and the second Bluetooth device, then the second Bluetooth device can directly turn on the Bluetooth function of the second Bluetooth device. This example is not particularly limited.
[0068] In another specific implementation process, after 102, the Bluetooth function of the first Bluetooth device can be turned on, and the Bluetooth function of the second Bluetooth device can be turned on.
[0069] Specifically, after sending the pairing information of the first Bluetooth device to the second Bluetooth device based on the communication connection other than the Bluetooth connection, in addition to turning on the Bluetooth function of the first Bluetooth device , The second Bluetooth device may be further notified to enable the second Bluetooth device to turn on the Bluetooth function of the second Bluetooth device, or it may be sent to the second Bluetooth device based on the communication connection other than the Bluetooth connection After the pairing information of the first Bluetooth device, the second Bluetooth device can directly turn on the Bluetooth function of the second Bluetooth device, which is not particularly limited in this embodiment.
[0070] So far, two Bluetooth devices, namely the first Bluetooth device and the second Bluetooth device, have successfully established a Bluetooth connection, so that one Bluetooth device can use the application of another Bluetooth device. For example, the owner of the vehicle uses the vehicle terminal device during the driving process. User terminal equipment calls, listening to music, etc.
[0071] In this embodiment, by detecting whether there is a communication connection other than the Bluetooth connection between the first Bluetooth device and the second Bluetooth device, if the first Bluetooth device and the second Bluetooth device have the other than Bluetooth For a communication connection other than a connection, based on the communication connection other than the Bluetooth connection, the pairing information of the first Bluetooth device may be sent to the second Bluetooth device for use by the second Bluetooth device The pairing information of the first Bluetooth device establishes a Bluetooth connection with the first Bluetooth device without obtaining the connection identifier input by the user, thereby shortening the Bluetooth connection establishment time and improving the Bluetooth connection establishment efficiency.
[0072] In addition, with the technical solution provided by the present invention, there is no need to store the pairing information of the Bluetooth device, which can effectively save storage space.
[0073] It should be noted that for the foregoing method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described sequence of actions. Because according to the present invention, some steps can be performed in other order or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the involved actions and modules are not necessarily required by the present invention.
[0074] In the embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
[0075] figure 2 Is a schematic structural diagram of a Bluetooth device connection device provided by another embodiment of the present invention, such as figure 2 Shown. The connection apparatus of the Bluetooth device in this embodiment may include a detection unit 21 and a connection unit 22. Wherein, the detection unit 21 is used to detect whether there is a communication connection other than the Bluetooth connection between the first Bluetooth device and the second Bluetooth device; the connection unit 22 is used to detect whether the first Bluetooth device and the second Bluetooth device have a communication connection other than the Bluetooth connection. The communication connection other than the Bluetooth connection exists between the devices, and based on the communication connection other than the Bluetooth connection, the pairing information of the first Bluetooth device is sent to the second Bluetooth device for all The second Bluetooth device uses the pairing information of the first Bluetooth device to establish a Bluetooth connection with the first Bluetooth device.
[0076] It should be noted that the connection device of the Bluetooth device in this embodiment may be an application located in the first Bluetooth device, or may also be a plug-in or a software development kit (SDK) set in an application located in the first Bluetooth device. Such functional units are not particularly limited in this embodiment.
[0077] It is understandable that the application may be a native application (nativeApp) installed on the first Bluetooth device, or it may be a webpage application (webApp) of the browser on the first Bluetooth device, which is not the case in this embodiment. Specially limited.
[0078] Wherein, the communication connection other than the Bluetooth connection may include, but is not limited to, a universal serial bus (Universal Serial Bus, USB) connection or a wireless compatibility authentication (Wireless Fidelity, WI-FI) connection, and this embodiment does not make any special mention about this. limited.
[0079] Optionally, in a possible implementation of this embodiment, the first Bluetooth device is preferably a vehicle-mounted terminal device; the second Bluetooth device is preferably a user terminal device. In this way, with the technical solution provided by the present invention, the Bluetooth connection between the vehicle-mounted terminal device and the user terminal device can be established without user operation, which can effectively improve the user experience of the vehicle-machine interconnection system, and at the same time improve the safety.
[0080] Optionally, in a possible implementation of this embodiment, the connecting unit 22 may be specifically configured to connect the first Bluetooth device to the first Bluetooth device through out-of-band data based on the communication connection other than the Bluetooth connection The pairing information of is sent to the second Bluetooth device.
[0081] Optionally, in a possible implementation of this embodiment, the connecting unit 22 may be specifically configured to directly connect the pairing information of the first Bluetooth device based on the communication connection other than the Bluetooth connection, Sent to the second Bluetooth device.
[0082] Optionally, in a possible implementation of this embodiment, the pairing information of the first Bluetooth device may include but is not limited to:
[0083] The MAC address of the first Bluetooth device; or
[0084] The MAC address of the first Bluetooth device and the connection identifier of the first Bluetooth device.
[0085] Optionally, in a possible implementation of this embodiment, the connecting unit 22 may be further used for
[0086] If the communication connection other than the Bluetooth connection exists between the first Bluetooth device and the second Bluetooth device, turn on the Bluetooth function of the first Bluetooth device, and turn on the Bluetooth function of the second Bluetooth device.
[0087] Optionally, in a possible implementation of this embodiment, the connecting unit 22 may be further configured to combine the pairing information of the first Bluetooth device based on the communication connection other than the Bluetooth connection After sending to the second Bluetooth device, turn on the Bluetooth function of the first Bluetooth device, and turn on the Bluetooth function of the second Bluetooth device.
[0088] It should be noted, figure 1 The method in the corresponding embodiment can be implemented by the Bluetooth device connection device provided in this embodiment. Detailed description can be found figure 1 The relevant content in the corresponding embodiment will not be repeated here.
[0089] In this embodiment, the detection unit is used to detect whether there is a communication connection other than the Bluetooth connection between the first Bluetooth device and the second Bluetooth device. If the first Bluetooth device and the second Bluetooth device exist between the For communication connections other than the Bluetooth connection, the connection unit may send the pairing information of the first Bluetooth device to the second Bluetooth device based on the communication connection other than the Bluetooth connection for the second Bluetooth device. 2. The Bluetooth device uses the pairing information of the first Bluetooth device to establish a Bluetooth connection with the first Bluetooth device without obtaining the connection identification input by the user, thereby shortening the time for establishing the Bluetooth connection and improving the Bluetooth connection Build efficiency.
[0090] In addition, with the technical solution provided by the present invention, there is no need to store the pairing information of the Bluetooth device, which can effectively save storage space.
[0091] Those skilled in the art can clearly understand that, for the convenience and conciseness of the description, the specific working process of the described system, device, and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.
[0092] In the several embodiments provided by the present invention, it should be understood that the disclosed system, device, and method may be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the units is only a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components can be combined or It can be integrated into another system, or some features can be ignored or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
[0093] The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
[0094] In addition, the functional units in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit. The integrated unit can be implemented in the form of hardware, or in the form of hardware plus software functional units.
[0095] The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes a number of instructions to enable a computer device (which may be a personal computer, an audio processing engine, or a network device, etc.) or a processor to execute all of the various embodiments of the present invention. Some steps of the method described. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other media that can store program codes.
[0096] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: The technical solutions recorded in the foregoing embodiments are modified, or some of the technical features are equivalently replaced; these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.