CN112911563A - Bluetooth connection method and system based on multiple terminals - Google Patents

Bluetooth connection method and system based on multiple terminals Download PDF

Info

Publication number
CN112911563A
CN112911563A CN202110113178.7A CN202110113178A CN112911563A CN 112911563 A CN112911563 A CN 112911563A CN 202110113178 A CN202110113178 A CN 202110113178A CN 112911563 A CN112911563 A CN 112911563A
Authority
CN
China
Prior art keywords
terminal
bluetooth
connection
vehicle
connection request
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.)
Granted
Application number
CN202110113178.7A
Other languages
Chinese (zh)
Other versions
CN112911563B (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.)
Guangzhou Xiaopeng Motors Technology Co Ltd
Guangzhou Chengxingzhidong Automotive Technology Co., Ltd
Original Assignee
Guangzhou Xiaopeng Motors Technology Co Ltd
Guangzhou Chengxingzhidong Automotive Technology 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 Guangzhou Xiaopeng Motors Technology Co Ltd, Guangzhou Chengxingzhidong Automotive Technology Co., Ltd filed Critical Guangzhou Xiaopeng Motors Technology Co Ltd
Priority to CN202110113178.7A priority Critical patent/CN112911563B/en
Publication of CN112911563A publication Critical patent/CN112911563A/en
Application granted granted Critical
Publication of CN112911563B publication Critical patent/CN112911563B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • G07C9/00309Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated with bidirectional data transmission between data carrier and locks
    • 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

Abstract

The embodiment of the invention provides a Bluetooth connection method and a system based on multiple terminals, a main Bluetooth of a vehicle-mounted terminal is currently in communication connection with a first terminal, when a second terminal wants to establish Bluetooth connection with the vehicle-mounted terminal, a first connection request is generated in response to Bluetooth connection operation, the vehicle-mounted terminal receives the first connection request from the Bluetooth and transmits the first connection request to the main Bluetooth, then the vehicle-mounted terminal disconnects the communication connection between the main Bluetooth and the first terminal according to a forced connection instruction in the first connection request so that the second terminal initiates a second connection request and establishes communication connection with the second terminal, thereby realizing the forced connection of a user terminal through the cooperation between the main Bluetooth and the auxiliary Bluetooth, establishing Bluetooth connection according to the connection request of the terminal, improving the flexibility of the vehicle-mounted Bluetooth connection and being suitable for the scene of the Bluetooth connection of the multiple terminals, the vehicle using experience of the user is improved.

Description

Bluetooth connection method and system based on multiple terminals
Technical Field
The invention relates to the technical field of vehicle communication, in particular to a Bluetooth connection method based on multiple terminals and a Bluetooth connection system based on multiple terminals.
Background
With the development of vehicle technology and bluetooth communication technology, many vehicles are basically configured with bluetooth digital car keys and support the function of multiple bluetooth positioning. In the process, the user can control part of functions of the vehicle, such as unlocking, locking, controlling the functions of the vehicle and the like, through the mobile terminal. However, when the owner assigns the bluetooth digital key to family or friend, if a certain user wants to control the vehicle function through the bluetooth of the mobile terminal (i), but the current vehicle is already connected with other mobile terminals (ii), so that if the mobile terminal (ii) does not actively disconnect the bluetooth connection with the vehicle, the mobile terminal (i) cannot be connected with the vehicle-mounted bluetooth, and the user cannot realize corresponding vehicle function control.
Disclosure of Invention
The embodiment of the invention provides a Bluetooth connection method, a Bluetooth connection system, a vehicle and a computer-readable storage medium based on multiple terminals, and aims to solve or partially solve the problem that other user terminals cannot be connected with vehicle Bluetooth of the vehicle when the vehicle Bluetooth of the vehicle is in a connected state in the prior art.
The embodiment of the invention discloses a Bluetooth connection method based on multiple terminals, which at least relates to a vehicle-mounted terminal, a first terminal and a second terminal, wherein the vehicle-mounted terminal comprises a master Bluetooth and at least one slave Bluetooth, the vehicle-mounted terminal is in communication connection with the first terminal based on the master Bluetooth, and the method comprises the following steps:
the second terminal responds to the detection of Bluetooth connection operation, generates a first connection request and sends the first connection request to the vehicle-mounted terminal, wherein the first connection request comprises a forced connection instruction;
the vehicle-mounted terminal receives the first connection request based on the slave Bluetooth and transmits the first connection request to the master Bluetooth;
the vehicle-mounted terminal disconnects the communication connection between the main Bluetooth and the first terminal according to the forced connection instruction;
and the vehicle-mounted terminal receives a second connection request sent by the second terminal based on the main Bluetooth and establishes communication connection with the second terminal.
Optionally, the method further comprises:
the vehicle-mounted terminal acquires communication connection time with the second terminal;
and if the vehicle-mounted terminal detects that the communication connection time meets a preset threshold value, disconnecting the communication connection between the main Bluetooth and the second terminal.
Optionally, the first connection request further includes a second terminal address of the second terminal, and the vehicle-mounted terminal disconnects the communication connection between the main bluetooth and the first terminal according to the forced connection instruction, including:
the vehicle-mounted terminal executes the forced connection instruction and disconnects the communication connection between the main Bluetooth and the first terminal;
and the vehicle-mounted terminal establishes a time-limited communication channel aiming at the second terminal by adopting the second terminal address and a preset connection time threshold value.
Optionally, the receiving, by the vehicle-mounted terminal, a second connection request sent by the second terminal based on the master bluetooth, and establishing a communication connection with the second terminal includes:
the vehicle-mounted terminal receives a second connection request sent by the second terminal based on the main Bluetooth, wherein the second connection request comprises a Bluetooth connection instruction;
and the vehicle-mounted terminal establishes communication connection between the main Bluetooth and the second terminal by adopting the Bluetooth connection instruction and the time-limited communication channel.
Optionally, the content displayed on the graphical user interface of the second terminal at least includes an application interface, the application interface includes a bluetooth connection control, the second terminal generates a first connection request in response to detecting a bluetooth connection operation, and sends the first connection request to the vehicle-mounted terminal, including:
the second terminal responds to the selection operation acted on the Bluetooth connection control to obtain a second terminal address of the second terminal and generate a forced connection instruction corresponding to the second terminal address;
the second terminal generates a first connection request aiming at the vehicle-mounted terminal by adopting the second terminal address and the forced connection instruction;
and the second terminal sends the first connection request to the vehicle-mounted terminal.
Optionally, the receiving, by the vehicle-mounted terminal, the first connection request based on the slave bluetooth, and transmitting the first connection request to the master bluetooth includes:
the vehicle-mounted terminal receives the first connection request based on the slave Bluetooth and disconnects the communication connection between the slave Bluetooth and the second terminal;
and the vehicle-mounted terminal analyzes the first connection request, acquires the second terminal address and the forced connection instruction, and transmits the second terminal address and the forced connection instruction to the master Bluetooth.
Optionally, the content displayed on the graphical user interface of the second terminal at least includes an application interface, the application interface includes a mode selection control, and the method further includes:
the second terminal responds to the selection operation acted on the mode selection control to acquire the broadcast data sent by the vehicle-mounted terminal through the slave Bluetooth, wherein the broadcast data comprises a first terminal address of the first terminal;
and the second terminal acquires the terminal information of the first terminal from a preset server by adopting the first terminal address, and displays the terminal information so as to inform a first user to which the first terminal belongs of controlling the first terminal to disconnect the communication connection with the main Bluetooth based on the terminal information.
Optionally, the master bluetooth is used to establish vehicle control communication with the terminal.
Optionally, the slave bluetooth is used for positioning calculation of vehicle bluetooth.
Optionally, the slave bluetooth comprises a first slave bluetooth and at least one second slave bluetooth; the first slave Bluetooth has the authority of transmitting connectable non-directional broadcast and limited connection communication with the terminal, and the second slave Bluetooth has the authority of transmitting non-connectable non-directional broadcast.
The embodiment of the invention also discloses a Bluetooth connection system based on multiple terminals, the connection system at least comprises a vehicle-mounted terminal, a first terminal and a second terminal, the vehicle-mounted terminal comprises a master Bluetooth and at least one slave Bluetooth, the vehicle-mounted terminal is in communication connection with the first terminal based on the master Bluetooth, and the connection system comprises:
the first connection request sending module is located at the second terminal and used for responding to the detected Bluetooth connection operation, generating a first connection request and sending the first connection request to the vehicle-mounted terminal, wherein the first connection request comprises a forced connection instruction;
the first connection request transmission module is positioned at the vehicle-mounted terminal and used for receiving the first connection request based on the slave Bluetooth and transmitting the first connection request to the master Bluetooth;
the communication connection disconnection module is positioned at the vehicle-mounted terminal and used for disconnecting the communication connection between the main Bluetooth and the first terminal according to the forced connection instruction;
and the communication connection establishing module is positioned at the vehicle-mounted terminal and used for receiving a second connection request sent by the second terminal based on the main Bluetooth and establishing communication connection with the second terminal.
Optionally, the method further comprises:
the connection time acquisition module is positioned at the vehicle-mounted terminal and used for acquiring the communication connection time between the vehicle-mounted terminal and the second terminal;
and the connection disconnection module is positioned at the vehicle-mounted terminal and used for disconnecting the communication connection between the main Bluetooth and the second terminal if the communication connection time is detected to meet a preset threshold value.
Optionally, the first connection request further includes a second terminal address of the second terminal, and the communication disconnection module includes:
the communication connection disconnection submodule is used for executing the forced connection instruction and disconnecting the communication connection between the main Bluetooth and the first terminal;
and the communication channel establishing submodule is used for establishing a time-limited communication channel aiming at the second terminal by adopting the address of the second terminal and a preset connection time threshold value.
Optionally, the communication connection establishing module includes:
a connection request receiving submodule, configured to receive, based on the master bluetooth, a second connection request sent by the second terminal, where the second connection request includes a bluetooth connection instruction;
and the communication connection establishing submodule is used for establishing the communication connection between the main Bluetooth and the second terminal by adopting the Bluetooth connection instruction and the time-limited communication channel.
Optionally, the content displayed on the gui of the second terminal at least includes an application interface of an application program, the application interface includes a bluetooth connection control, and the first connection request sending module includes:
the operation response module is used for responding to the selection operation acted on the Bluetooth connection control, acquiring a second terminal address of the second terminal and generating a forced connection instruction corresponding to the second terminal address;
the connection request generation submodule is used for generating a first connection request aiming at the vehicle-mounted terminal by adopting the second terminal address and the forced connection instruction;
and the connection request sending module is used for sending the first connection request to the vehicle-mounted terminal.
Optionally, the first connection request transmission module includes:
the communication connection disconnection submodule is used for receiving the first connection request based on the slave Bluetooth and disconnecting the communication connection between the slave Bluetooth and the second terminal;
and the data sending submodule is used for analyzing the first connection request, obtaining the second terminal address and the forced connection instruction, and transmitting the second terminal address and the forced connection instruction to the main Bluetooth.
Optionally, the content displayed on the graphical user interface of the second terminal at least includes an application interface of an application program, the application interface includes a mode selection control, and the system further includes:
a broadcast data acquisition module located at the second terminal, configured to respond to a selection operation acting on the mode selection control, and acquire broadcast data sent by the vehicle-mounted terminal through the slave bluetooth, where the broadcast data includes a first terminal address of the first terminal;
and the terminal information display module is positioned at the second terminal and used for acquiring the terminal information of the first terminal from a preset server by adopting the first terminal address and displaying the terminal information so as to inform a first user to which the second terminal belongs to control the first terminal to be disconnected from the communication connection between the main Bluetooth by the second user to which the first terminal belongs based on the terminal information.
Optionally, the master bluetooth is used to establish vehicle control communication with the terminal.
Optionally, the slave bluetooth is used for positioning calculation of vehicle bluetooth.
Optionally, the slave bluetooth comprises a first slave bluetooth and at least one second slave bluetooth; the first slave Bluetooth has the authority of transmitting connectable non-directional broadcast and limited connection communication with the terminal, and the second slave Bluetooth has the authority of transmitting non-connectable non-directional broadcast.
The embodiment of the invention also discloses a vehicle, which comprises:
one or more processors; and
one or more machine readable media having instructions stored thereon that, when executed by the one or more processors, cause the vehicle to perform the method as described above.
Embodiments of the present invention also disclose a computer-readable storage medium having instructions stored thereon, which, when executed by one or more processors, cause the processors to perform the method as described above.
The embodiment of the invention has the following advantages:
in the embodiment of the present invention, the in-vehicle terminal includes a master bluetooth and a slave bluetooth, wherein the master bluetooth is currently connected with the first terminal, when the second terminal wants to establish a bluetooth connection with the in-vehicle terminal, a first connection request may be generated in response to a bluetooth connection operation of a user, the in-vehicle terminal receives the first connection request based on the slave bluetooth and transmits the first connection request to the master bluetooth, then the in-vehicle terminal disconnects the communication connection between the master bluetooth and the first terminal according to a forced connection instruction in the first connection request, by receiving a connection request transmitted from the second terminal from the bluetooth, the in-vehicle terminal may disconnect the first terminal connected with the current bluetooth so that the second terminal initiates a second connection request and establishes a communication connection with the second terminal, thereby implementing the forced connection of the user terminal through cooperation between the master and slave bluetooth and according to the connection request of the terminal, the Bluetooth connection is established, the flexibility of vehicle-mounted Bluetooth connection is improved, the method is suitable for a scene of multi-terminal Bluetooth connection, and the vehicle using experience of a user is improved.
Drawings
Fig. 1 is a flowchart illustrating steps of a multi-terminal based bluetooth connection method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a vehicle Bluetooth provided by an embodiment of the invention;
fig. 3 is a block diagram of a multi-terminal based bluetooth connection system according to an embodiment of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
As an example, the intelligent networked vehicle is basically configured with a Bluetooth digital vehicle key function and supports a multi-Bluetooth positioning function. Under the condition, the user does not need to take out the mobile terminal to unlock and lock the vehicle by clicking the button, and only needs to enter or leave the detection range of the vehicle by the mobile terminal to unlock and lock the vehicle, so that keyless entry is realized. The function of the digital key polling can be positioned through the area of the low-power Bluetooth, noninductive unlocking is carried out, and the vehicle using convenience of a user is effectively improved.
However, in the above process, the owner of the vehicle authorizes the corresponding bluetooth digital key to family or friends, and when the users are near the vehicle at the same time at a certain time, the owner cannot know who mobile terminal is connected to the vehicle-mounted bluetooth of the vehicle-mounted terminal at the current time, and cannot establish bluetooth communication connection between the own mobile terminal and the vehicle-mounted terminal, so that the control of the vehicle function cannot be realized. Moreover, the effective communication distance of the bluetooth can reach dozens of meters, which is more likely to cause the appearance of such scenes, so that the vehicle terminal can not effectively manage the bluetooth connection of different mobile terminals.
In view of the above, one of the core invention points of the embodiments of the present invention is that a main bluetooth and a slave bluetooth are set in a vehicle-mounted terminal, a mobile terminal can initiate a forced connection request of the bluetooth through the slave bluetooth, and the vehicle-mounted terminal disconnects a communication connection between the main bluetooth and a connected terminal according to the forced connection request, so as to create an exclusive and time-limited connection channel for a new mobile terminal, and only allow the mobile terminal initiating the forced connection request to establish a communication connection with the main bluetooth within a certain time, thereby implementing the forced connection of a user terminal through the cooperation between the main bluetooth and the slave bluetooth, and establishing a bluetooth connection according to the connection request of the terminal, thereby greatly improving the flexibility of the vehicle-mounted bluetooth connection, being applicable to a scenario of multi-bluetooth connection, and improving the vehicle experience of a user.
Specifically, referring to fig. 1, a flowchart of steps of a multi-terminal based bluetooth connection method provided in an embodiment of the present invention is shown, where the method at least relates to a vehicle-mounted terminal, a first terminal, and a second terminal, where the vehicle-mounted terminal includes a master bluetooth and at least one slave bluetooth, and the vehicle-mounted terminal is in communication connection with the first terminal based on the master bluetooth, and specifically includes the following steps:
step 101, the second terminal responds to the detection of Bluetooth connection operation, generates a first connection request and sends the first connection request to the vehicle-mounted terminal, wherein the first connection request comprises a forced connection instruction;
in the embodiment of the present invention, the vehicle-mounted terminal may include a master bluetooth and at least one slave bluetooth, where the master bluetooth may be a vehicle-mounted bluetooth in communication connection with the mobile terminal, and after the mobile terminal establishes communication connection with the master bluetooth, part of functions of the vehicle may be controlled, such as unlocking the vehicle, controlling a vehicle-mounted air conditioner, controlling a vehicle window, and the like; the slave bluetooth may include a first slave bluetooth capable of transmitting a connectable non-directional broadcast, for which it may establish a communication connection with the mobile terminal, and a second slave bluetooth capable of transmitting a non-connectable non-directional broadcast, for which the mobile terminal may not establish a communication connection with the second slave bluetooth although it may receive the broadcast it transmits, and may be used to request disconnection of the communication connection between the master bluetooth and the mobile terminal.
In an example, referring to fig. 2, a schematic diagram of a vehicle-mounted bluetooth provided in an embodiment of the present invention is shown, where a vehicle-mounted terminal may be configured with a vehicle owner bluetooth and a plurality of vehicle slave bluetooth, a mobile terminal may only perform vehicle control communication with the vehicle owner bluetooth through an application program, such as unlocking, turning on and off an air conditioner, flashing lights, and whistling of a vehicle, and the remaining slave bluetooth is mainly used for a positioning algorithm (i.e., bluetooth polling function), for example, the slave bluetooth may include slave bluetooth a, slave bluetooth B, and slave bluetooth C, where:
1. connectable non-directional broadcasts may be sent from bluetooth a. Before broadcasting from Bluetooth A, Bluetooth acquires a mobile phone Bluetooth MAC address currently connected with Bluetooth A from a main BLE through an LIN bus of a vehicle, and fills the MAC address in a specific field (6 bytes) of broadcasting data of the Bluetooth A;
2. the slave Bluetooth A supports a transient connection communication function and is connected with a timeout mechanism, and the holding time of each link is 20 seconds;
3. the broadcast types sent from bluetooth B and from bluetooth C are non-directional broadcasts that are not connectable.
And, the master bluetooth and the slave bluetooth communicate with each other through the LIN line, including the above-mentioned interactive communication therebetween.
It should be noted that, in the embodiment of the present invention, the slave bluetooth is the first slave bluetooth, and the mobile terminal performs data interaction with the first slave bluetooth to establish a bluetooth communication connection with the master bluetooth.
The first terminal and the second terminal can be mobile terminals used by different users, and are terminals that perform authentication in the vehicle-mounted terminal, that is, the first terminal and the second terminal are terminals that are authorized by the vehicle-mounted terminal and can control functions of the vehicle. For the first terminal, the terminal which establishes communication connection with the main Bluetooth of the vehicle-mounted terminal at present can be used; for the second terminal, it may be a terminal that does not currently establish a bluetooth connection with the in-vehicle terminal, but wants to establish a bluetooth connection, and the invention is not limited to this.
In a specific implementation, the second terminal may run a corresponding application program, the content displayed on the graphical user interface of the second terminal may at least include the application interface of the application program, the application interface may include a bluetooth connection control, the second terminal obtains a second terminal address of the second terminal in response to a selection operation acting on the bluetooth connection control, generates a forced connection instruction corresponding to the second terminal address, then generates a first connection request for the vehicle-mounted terminal by using the second terminal address and the forced connection instruction, and sends the first connection request to the vehicle-mounted terminal.
Optionally, the bluetooth connection control may be an interactive control of "forcibly connect to the vehicle-mounted bluetooth" in the application interface, and when the user clicks the control, the second terminal may actively establish a communication connection with the slave bluetooth of the vehicle-mounted terminal and send a first connection request to the second terminal, so as to establish a communication connection with the master bluetooth. Specifically, after the user clicks the bluetooth connection control, the bluetooth communication connection with the slave bluetooth of the vehicle-mounted terminal is established, the mac address of the user is obtained, the forced connection instruction corresponding to the mac address is generated, then the first connection request (such as the bluetooth forced connection request) is generated by the user and the slave bluetooth of the vehicle-mounted terminal, and the first connection request is sent to the slave bluetooth of the vehicle-mounted terminal, so that the vehicle-mounted terminal performs corresponding data processing.
102, the vehicle-mounted terminal receives the first connection request based on the slave Bluetooth and transmits the first connection request to the master Bluetooth;
in a specific implementation, the vehicle-mounted terminal may receive the first connection request from the slave bluetooth, disconnect the communication connection between the slave bluetooth and the second terminal, then parse the first connection request, obtain the second terminal address and the forced connection instruction, and transmit the second terminal address and the forced connection instruction to the master bluetooth.
In one example, the application program run by the second terminal may actively connect the slave bluetooth a of the in-vehicle terminal according to the operation of the user, and after the connection is successful, send the forced connection instruction and the mac address of the second terminal to the slave bluetooth a, and after the connection is successful, the second terminal disconnects the bluetooth communication connection with the slave bluetooth a. The vehicle-mounted terminal sends the forced connection instruction and the mac address of the second terminal to the master Bluetooth through the LIN line of the vehicle through the slave Bluetooth A, so that the vehicle-mounted terminal can perform corresponding data processing and establish Bluetooth communication connection with the second terminal.
103, the vehicle-mounted terminal disconnects the communication connection between the main Bluetooth and the first terminal according to the forced connection instruction;
in a specific implementation, the in-vehicle terminal may execute a forced connection instruction to disconnect the communication connection between the main bluetooth and the first terminal, and then establish a time-limited communication channel for the second terminal by using the address of the second terminal and a preset connection time threshold.
Alternatively, the connection time threshold may be a time threshold set for bluetooth forced connection, and the master bluetooth of the vehicle-mounted terminal may only perform establishment of bluetooth connection with the mobile terminal initiating the bluetooth forced connection within the time threshold, such as the second terminal in the embodiment of the present invention.
In an example, after receiving the forced connection instruction sent from bluetooth a, the master bluetooth may actively disconnect the current bluetooth communication connection with the first terminal, and establish a time-limited communication channel for the second terminal based on the mac address of the second terminal and a preset connection time threshold, for example, within 2 minutes, the master bluetooth of the vehicle-mounted terminal only establishes communication connection with the second terminal, and after 2 minutes, the master bluetooth of the vehicle-mounted terminal is in an idle state, and any mobile terminal may establish bluetooth communication connection therewith.
And 104, the vehicle-mounted terminal receives a second connection request sent by the second terminal based on the main Bluetooth and establishes communication connection with the second terminal.
In a specific implementation, the vehicle-mounted terminal receives a second connection request sent by the second terminal through the main bluetooth, where the second connection request may include a bluetooth connection instruction, and the vehicle-mounted terminal establishes a communication connection between the main bluetooth and the second terminal by using the bluetooth connection instruction and a previously established time-limited communication channel, so as to implement function control of the second terminal on the vehicle.
In one example, after the main bluetooth of the vehicle-mounted terminal disconnects the bluetooth communication connection with the first terminal, the vehicle-mounted terminal can be limited to establish the bluetooth communication connection only with the second terminal within a certain time. In the process, the user can refresh the application interface through the application interface of the second terminal, or wait for a period of time (if the second terminal starts the bluetooth polling function), the second terminal can initiate a bluetooth connection request to the main bluetooth, and after the main bluetooth of the vehicle-mounted terminal receives the bluetooth connection request, the bluetooth communication connection with the second terminal can be established, so that the second terminal can perform corresponding bluetooth vehicle control operations, such as unlocking and locking of a vehicle, window switching, cooling of a vehicle-mounted air conditioner and the like.
In addition, after the second terminal establishes the bluetooth communication connection with the main bluetooth, the vehicle-mounted terminal can acquire the communication connection time between the main bluetooth and the second terminal, and if the vehicle-mounted terminal detects that the communication connection time meets a preset threshold, the communication connection between the main bluetooth and the second terminal is disconnected. The preset threshold value can be a threshold value corresponding to the connection time threshold value, for example, assuming that the preset threshold value is 2 minutes, after the connection time between the second terminal and the main bluetooth reaches 2 minutes, the main bluetooth can actively disconnect the bluetooth communication connection with the second terminal, and the bluetooth forced connection is finished, so that the bluetooth communication connection is established with other mobile terminals, thereby greatly improving the flexibility of vehicle-mounted bluetooth connection, being applicable to a scene of multi-bluetooth connection, and improving the vehicle-using experience of a user.
In an optional embodiment of the present invention, the content displayed on the gui of the second terminal at least includes an application interface of an application program, and the application interface includes a mode selection control, so that the second terminal may further obtain broadcast data sent by the vehicle-mounted terminal from the bluetooth in response to a selection operation performed on the mode selection control, where the broadcast data includes a first terminal address of the first terminal, and then obtain terminal information of the first terminal from a preset server by using the first terminal address, and display the terminal information, so that a user to whom the second terminal belongs notifies the first terminal to disconnect a communication connection with the main bluetooth based on the terminal information.
In an example, the application interface displayed on the image user interface of the second terminal may include a mode selection control, for example, a "vehicle-mounted bluetooth connection preemption mode" control, so that when the user clicks the control, the application program may execute a bluetooth connection preemption function, and an information acquisition control is provided in the application interface, through which terminal information (for example, a mobile phone number, etc.) of the first terminal currently establishing communication connection with the main bluetooth of the vehicle-mounted terminal may be acquired. Specifically, the second terminal may respond to a selection operation applied to the information acquisition control, acquire broadcast data sent by the in-vehicle terminal through the bluetooth a, parse the broadcast data to obtain a target field expressed by 31 bytes, and extract the mac address of the first terminal currently connected to the main bluetooth of the in-vehicle terminal from the target field. Then the second terminal can inquire the mobile phone number corresponding to the mac address from the background server through the mobile internet, and obtain the last four digits of the mobile phone number corresponding to the first terminal returned by the background server, then the corresponding information is displayed in the application interface, so that the user of the second terminal can obtain the terminal of which the terminal connected with the vehicle-mounted terminal is by browsing the corresponding information, further, the user to which the terminal belongs can be directly contacted, so that the corresponding user can control the first terminal to actively disconnect the Bluetooth communication connection with the vehicle-mounted terminal, the second terminal can conveniently carry out the Bluetooth connection with the vehicle-mounted terminal, by acquiring the terminal information of the mobile terminal which is currently connected, the Bluetooth connection between the terminal and the vehicle-mounted terminal is controlled, the flexibility that on-vehicle bluetooth connects can be improved, the scene that can be applicable to many bluetooth and connect has improved user's experience with the car.
It should be noted that the embodiments of the present invention include, but are not limited to, the above examples, and it is understood that, under the guidance of the idea of the present invention, those skilled in the art may also set the embodiments according to actual needs, and the present invention is not limited to these.
In the embodiment of the present invention, the in-vehicle terminal includes a master bluetooth and a slave bluetooth, wherein the master bluetooth is currently connected with the first terminal, when the second terminal wants to establish a bluetooth connection with the in-vehicle terminal, a first connection request may be generated in response to a bluetooth connection operation of a user, the in-vehicle terminal receives the first connection request based on the slave bluetooth and transmits the first connection request to the master bluetooth, then the in-vehicle terminal disconnects the communication connection between the master bluetooth and the first terminal according to a forced connection instruction in the first connection request, by receiving a connection request transmitted from the second terminal from the bluetooth, the in-vehicle terminal may disconnect the first terminal connected with the current bluetooth so that the second terminal initiates a second connection request and establishes a communication connection with the second terminal, thereby implementing the forced connection of the user terminal through cooperation between the master and slave bluetooth and according to the connection request of the terminal, the Bluetooth connection is established, the flexibility of vehicle-mounted Bluetooth connection is improved, the method is suitable for a scene of multi-terminal Bluetooth connection, and the vehicle using experience of a user is improved.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Referring to fig. 3, a block diagram of a multi-terminal based bluetooth connection system according to an embodiment of the present invention is shown, where the connection system at least includes a vehicle-mounted terminal, a first terminal, and a second terminal, where the vehicle-mounted terminal includes a master bluetooth and at least one slave bluetooth, and the vehicle-mounted terminal is in communication connection with the first terminal based on the master bluetooth, and specifically may include the following modules:
a first connection request sending module 301, located at the second terminal, and configured to generate a first connection request in response to detecting a bluetooth connection operation, send the first connection request to the vehicle-mounted terminal, where the first connection request includes a forced connection instruction;
a first connection request transmission module 302 located at the vehicle-mounted terminal, configured to receive the first connection request based on the slave bluetooth, and transmit the first connection request to the master bluetooth;
a communication connection disconnection module 303 located at the vehicle-mounted terminal, configured to disconnect the communication connection between the main bluetooth and the first terminal according to the forced connection instruction;
and a communication connection establishing module 304 located at the vehicle-mounted terminal, configured to receive, based on the master bluetooth, a second connection request sent by the second terminal, and establish a communication connection with the second terminal.
In an optional embodiment of the present invention, further comprising:
the connection time acquisition module is positioned at the vehicle-mounted terminal and used for acquiring the communication connection time between the vehicle-mounted terminal and the second terminal;
and the connection disconnection module is positioned at the vehicle-mounted terminal and used for disconnecting the communication connection between the main Bluetooth and the second terminal if the communication connection time is detected to meet a preset threshold value.
In an optional embodiment of the present invention, the first connection request further includes a second terminal address of the second terminal, and the communication disconnection module 303 includes:
the communication connection disconnection submodule is used for executing the forced connection instruction and disconnecting the communication connection between the main Bluetooth and the first terminal;
and the communication channel establishing submodule is used for establishing a time-limited communication channel aiming at the second terminal by adopting the address of the second terminal and a preset connection time threshold value.
In an optional embodiment of the present invention, the communication connection establishing module 304 includes:
a connection request receiving submodule, configured to receive, based on the master bluetooth, a second connection request sent by the second terminal, where the second connection request includes a bluetooth connection instruction;
and the communication connection establishing submodule is used for establishing the communication connection between the main Bluetooth and the second terminal by adopting the Bluetooth connection instruction and the time-limited communication channel.
In an optional embodiment of the present invention, the content displayed on the gui of the second terminal at least includes an application interface of an application program, the application interface includes a bluetooth connection control, and the first connection request sending module 301 includes:
the operation response module is used for responding to the selection operation acted on the Bluetooth connection control, acquiring a second terminal address of the second terminal and generating a forced connection instruction corresponding to the second terminal address;
the connection request generation submodule is used for generating a first connection request aiming at the vehicle-mounted terminal by adopting the second terminal address and the forced connection instruction;
and the connection request sending module is used for sending the first connection request to the vehicle-mounted terminal.
In an optional embodiment of the present invention, the first connection request transmission module 302 includes:
the communication connection disconnection submodule is used for receiving the first connection request based on the slave Bluetooth and disconnecting the communication connection between the slave Bluetooth and the second terminal;
and the data sending submodule is used for analyzing the first connection request, obtaining the second terminal address and the forced connection instruction, and transmitting the second terminal address and the forced connection instruction to the main Bluetooth.
In an optional embodiment of the present invention, the content displayed on the gui of the second terminal at least includes an application interface of an application program, the application interface includes a mode selection control, and the system further includes:
a broadcast data acquisition module located at the second terminal, configured to respond to a selection operation acting on the mode selection control, and acquire broadcast data sent by the vehicle-mounted terminal through the slave bluetooth, where the broadcast data includes a first terminal address of the first terminal;
and the terminal information display module is positioned at the second terminal and used for acquiring the terminal information of the first terminal from a preset server by adopting the first terminal address and displaying the terminal information so as to inform a first user to which the second terminal belongs to control the first terminal to be disconnected from the communication connection between the main Bluetooth by the second user to which the first terminal belongs based on the terminal information.
In an alternative embodiment of the invention, the master bluetooth is used to establish vehicle control communication with the terminal.
In an alternative embodiment of the invention, the slave bluetooth is used for position calculation of the vehicle bluetooth.
In an optional embodiment of the invention, the slave bluetooth comprises a first slave bluetooth and at least one second slave bluetooth; the first slave Bluetooth has the authority of transmitting connectable non-directional broadcast and limited connection communication with the terminal, and the second slave Bluetooth has the authority of transmitting non-connectable non-directional broadcast.
For the system embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
An embodiment of the present invention further provides a vehicle, including:
one or more processors; and
one or more machine readable media having instructions stored thereon that, when executed by the one or more processors, cause the vehicle to perform a method as described in embodiments of the invention.
Embodiments of the present invention also provide a computer-readable storage medium having stored thereon instructions, which, when executed by one or more processors, cause the processors to perform a method according to embodiments of the present invention.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, EEPROM, Flash, eMMC, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The present invention provides a bluetooth connection method based on multiple terminals and a bluetooth connection system based on multiple terminals, which have been described in detail above, and the specific examples are applied in this document to explain the principle and implementation of the present invention, and the description of the above embodiments is only used to help understanding the method and its core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (13)

1. A Bluetooth connection method based on multiple terminals is characterized in that the method at least involves a vehicle-mounted terminal, a first terminal and a second terminal, the vehicle-mounted terminal comprises a master Bluetooth and at least one slave Bluetooth, and the vehicle-mounted terminal is in communication connection with the first terminal based on the master Bluetooth, and the method comprises the following steps:
the second terminal responds to the detection of Bluetooth connection operation, generates a first connection request and sends the first connection request to the vehicle-mounted terminal, wherein the first connection request comprises a forced connection instruction;
the vehicle-mounted terminal receives the first connection request based on the slave Bluetooth and transmits the first connection request to the master Bluetooth;
the vehicle-mounted terminal disconnects the communication connection between the main Bluetooth and the first terminal according to the forced connection instruction;
and the vehicle-mounted terminal receives a second connection request sent by the second terminal based on the main Bluetooth and establishes communication connection with the second terminal.
2. The method of claim 1, further comprising:
the vehicle-mounted terminal acquires communication connection time with the second terminal;
and if the vehicle-mounted terminal detects that the communication connection time meets a preset threshold value, disconnecting the communication connection between the main Bluetooth and the second terminal.
3. The method according to claim 1 or 2, wherein the first connection request further includes a second terminal address of the second terminal, and the vehicle-mounted terminal disconnects the communication connection between the main bluetooth and the first terminal according to the forced connection instruction, and the method comprises the following steps:
the vehicle-mounted terminal executes the forced connection instruction and disconnects the communication connection between the main Bluetooth and the first terminal;
and the vehicle-mounted terminal establishes a time-limited communication channel aiming at the second terminal by adopting the second terminal address and a preset connection time threshold value.
4. The method according to claim 3, wherein the vehicle-mounted terminal receives a second connection request sent by the second terminal based on the master Bluetooth and establishes a communication connection with the second terminal, and the method comprises the following steps:
the vehicle-mounted terminal receives a second connection request sent by the second terminal based on the main Bluetooth, wherein the second connection request comprises a Bluetooth connection instruction;
and the vehicle-mounted terminal establishes communication connection between the main Bluetooth and the second terminal by adopting the Bluetooth connection instruction and the time-limited communication channel.
5. The method according to claim 3, wherein the content displayed by the graphical user interface of the second terminal at least comprises an application interface, the application interface comprises a Bluetooth connection control, the second terminal generates a first connection request in response to detecting a Bluetooth connection operation, and sends the first connection request to the vehicle-mounted terminal, and the method comprises the following steps:
the second terminal responds to the selection operation acted on the Bluetooth connection control to obtain a second terminal address of the second terminal and generate a forced connection instruction corresponding to the second terminal address;
the second terminal generates a first connection request aiming at the vehicle-mounted terminal by adopting the second terminal address and the forced connection instruction;
and the second terminal sends the first connection request to the vehicle-mounted terminal.
6. The method of claim 5, wherein the vehicle-mounted terminal receives the first connection request based on the slave Bluetooth and transmits the first connection request to the master Bluetooth, and the method comprises the following steps:
the vehicle-mounted terminal receives the first connection request based on the slave Bluetooth and disconnects the communication connection between the slave Bluetooth and the second terminal;
and the vehicle-mounted terminal analyzes the first connection request, acquires the second terminal address and the forced connection instruction, and transmits the second terminal address and the forced connection instruction to the master Bluetooth.
7. The method of claim 1, wherein the content presented by the graphical user interface of the second terminal comprises at least an application interface including a mode selection control, the method further comprising:
the second terminal responds to the selection operation acted on the mode selection control to acquire the broadcast data sent by the vehicle-mounted terminal through the slave Bluetooth, wherein the broadcast data comprises a first terminal address of the first terminal;
and the second terminal acquires the terminal information of the first terminal from a preset server by adopting the first terminal address, and displays the terminal information so as to inform a first user to which the first terminal belongs of controlling the first terminal to disconnect the communication connection with the main Bluetooth based on the terminal information.
8. The method of claim 1, wherein the master bluetooth is used to establish vehicle control communications with a terminal.
9. The method of claim 1, wherein the slave bluetooth is used for position calculation of vehicle bluetooth.
10. The method according to claim 1 or 9, wherein the slave bluetooth comprises a first slave bluetooth and at least one second slave bluetooth; the first slave Bluetooth has the authority of transmitting connectable non-directional broadcast and limited connection communication with the terminal, and the second slave Bluetooth has the authority of transmitting non-connectable non-directional broadcast.
11. The utility model provides a bluetooth connected system based on many terminals, its characterized in that, connected system includes vehicle mounted terminal and first terminal, second terminal at least, vehicle mounted terminal includes main bluetooth and at least one from bluetooth, vehicle mounted terminal based on main bluetooth with first terminal communication connection, connected system includes:
the first connection request sending module is located at the second terminal and used for responding to the detected Bluetooth connection operation, generating a first connection request and sending the first connection request to the vehicle-mounted terminal, wherein the first connection request comprises a forced connection instruction;
the first connection request transmission module is positioned at the vehicle-mounted terminal and used for receiving the first connection request based on the slave Bluetooth and transmitting the first connection request to the master Bluetooth;
the communication connection disconnection module is positioned at the vehicle-mounted terminal and used for disconnecting the communication connection between the main Bluetooth and the first terminal according to the forced connection instruction;
and the communication connection establishing module is positioned at the vehicle-mounted terminal and used for receiving a second connection request sent by the second terminal based on the main Bluetooth and establishing communication connection with the second terminal.
12. A vehicle, characterized by comprising:
one or more processors; and
one or more machine readable media having instructions stored thereon that, when executed by the one or more processors, cause the vehicle to perform the method of any of claims 1-10.
13. A computer-readable storage medium having stored thereon instructions, which when executed by one or more processors, cause the processors to perform the method of any one of claims 1-10.
CN202110113178.7A 2021-01-27 2021-01-27 Bluetooth connection method and system based on multiple terminals Active CN112911563B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110113178.7A CN112911563B (en) 2021-01-27 2021-01-27 Bluetooth connection method and system based on multiple terminals

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110113178.7A CN112911563B (en) 2021-01-27 2021-01-27 Bluetooth connection method and system based on multiple terminals

Publications (2)

Publication Number Publication Date
CN112911563A true CN112911563A (en) 2021-06-04
CN112911563B CN112911563B (en) 2023-02-03

Family

ID=76119022

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110113178.7A Active CN112911563B (en) 2021-01-27 2021-01-27 Bluetooth connection method and system based on multiple terminals

Country Status (1)

Country Link
CN (1) CN112911563B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1716987A (en) * 2004-06-28 2006-01-04 乐金电子(中国)研究开发中心有限公司 Receiving mode remote distance control method of mobile communication terminal
JP2011231567A (en) * 2010-04-30 2011-11-17 Tokai Rika Co Ltd Electronic key system
CN106454697A (en) * 2016-08-19 2017-02-22 深圳市元征科技股份有限公司 Bluetooth switching method and device
US20190028958A1 (en) * 2017-06-23 2019-01-24 Schlage Lock Company Llc Predictive rate limiting for reliable bluetooth low energy connections
CN111447602A (en) * 2020-06-17 2020-07-24 成都极米科技股份有限公司 Bluetooth device, Bluetooth preemption method and device thereof, and computer-readable storage medium
CN111741456A (en) * 2020-06-17 2020-10-02 成都极米科技股份有限公司 Bluetooth device, Bluetooth preemption method and device thereof, and computer-readable storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1716987A (en) * 2004-06-28 2006-01-04 乐金电子(中国)研究开发中心有限公司 Receiving mode remote distance control method of mobile communication terminal
JP2011231567A (en) * 2010-04-30 2011-11-17 Tokai Rika Co Ltd Electronic key system
CN106454697A (en) * 2016-08-19 2017-02-22 深圳市元征科技股份有限公司 Bluetooth switching method and device
US20190028958A1 (en) * 2017-06-23 2019-01-24 Schlage Lock Company Llc Predictive rate limiting for reliable bluetooth low energy connections
CN111447602A (en) * 2020-06-17 2020-07-24 成都极米科技股份有限公司 Bluetooth device, Bluetooth preemption method and device thereof, and computer-readable storage medium
CN111741456A (en) * 2020-06-17 2020-10-02 成都极米科技股份有限公司 Bluetooth device, Bluetooth preemption method and device thereof, and computer-readable storage medium

Also Published As

Publication number Publication date
CN112911563B (en) 2023-02-03

Similar Documents

Publication Publication Date Title
CN109842862B (en) Establishing a secure short-range wireless communication connection in a vehicle
US10538220B1 (en) User activated/deactivated short-range wireless communications (SRWC) auxiliary key fob
US20180326947A1 (en) Operating a key fob in a car sharing system
US10589717B2 (en) Vehicle remote start functionality
US10269246B2 (en) Vehicle locator and guide
US11285915B2 (en) Method and system for using a wireless mobile device as a smart key
US10377346B2 (en) Anticipatory vehicle state management
CN106846563B (en) Vehicle control method and system, vehicle key, vehicle and vehicle system
DE102015107505A1 (en) Method and system for starting an application
DE102015107503A1 (en) Method and system for starting an application
CN111277565A (en) Information processing method and device, and storage medium
CN110509887B (en) Vehicle configuration for a vehicle subscription network
CN111540082A (en) System and method for device discovery in noisy environments
WO2022078193A1 (en) Vehicle control method and apparatus, and storage medium
CN109152088B (en) Wireless device connection management method
CN111862399A (en) Unlocking request generation method and device and electronic equipment
CN111245922A (en) Vehicle-mounted terminal, vehicle-mounted service platform, information processing method and storage medium
CN112911563B (en) Bluetooth connection method and system based on multiple terminals
EP4184874A2 (en) Method and system for interaction between vehicle and smart device
CN111295908B (en) Method and device for establishing a wireless connection between a vehicle and a vehicle accessory
CN114220198B (en) Bluetooth key automatic activation method, system, computer and readable storage medium
CN113329369B (en) Vehicle unlocking and locking method, device and system
CN115136625B (en) Vehicle-mounted system login method and related device
CN110417907B (en) Management method and device of terminal equipment
DE102015119282A1 (en) Method and system for starting an application

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
GR01 Patent grant
GR01 Patent grant