CN115471936A - Control method and device of Bluetooth key - Google Patents
Control method and device of Bluetooth key Download PDFInfo
- Publication number
- CN115471936A CN115471936A CN202211084321.5A CN202211084321A CN115471936A CN 115471936 A CN115471936 A CN 115471936A CN 202211084321 A CN202211084321 A CN 202211084321A CN 115471936 A CN115471936 A CN 115471936A
- Authority
- CN
- China
- Prior art keywords
- bluetooth
- mobile terminal
- node
- vehicle
- key
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 66
- 238000004891 communication Methods 0.000 claims abstract description 109
- 230000008569 process Effects 0.000 claims abstract description 21
- 238000012545 processing Methods 0.000 claims description 8
- 230000004927 fusion Effects 0.000 claims description 7
- 238000004458 analytical method Methods 0.000 claims description 5
- 238000013507 mapping Methods 0.000 claims description 4
- 238000005516 engineering process Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 230000003993 interaction Effects 0.000 description 3
- 238000012795 verification Methods 0.000 description 2
- 230000004075 alteration Effects 0.000 description 1
- 238000007405 data analysis Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07C—TIME 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/00—Individual registration on entry or exit
- G07C9/00174—Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
- G07C9/00309—Electronically 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
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07C—TIME 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/00—Individual registration on entry or exit
- G07C9/00174—Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
- G07C9/00571—Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated by interacting with a central unit
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B17/00—Monitoring; Testing
- H04B17/30—Monitoring; Testing of propagation channels
- H04B17/309—Measuring or estimating channel quality parameters
- H04B17/318—Received signal strength
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/02—Services making use of location information
- H04W4/023—Services making use of location information using mutual or relative location information between multiple location based services [LBS] targets or of distance thresholds
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/06—Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/30—Services specially adapted for particular environments, situations or purposes
- H04W4/40—Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W64/00—Locating users or terminals or network equipment for network management purposes, e.g. mobility management
- H04W64/006—Locating users or terminals or network equipment for network management purposes, e.g. mobility management with additional information processing, e.g. for direction or speed determination
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/14—Direct-mode setup
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Multimedia (AREA)
- Quality & Reliability (AREA)
- Electromagnetism (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The application discloses a control method and a device of a Bluetooth key, if a mobile terminal is in a preset distance range of a vehicle, the mobile terminal and a Bluetooth main node establish Bluetooth connection according to a preset secret key, according to a communication rule between the mobile terminal and the Bluetooth main node and an MAC address of the Bluetooth main node, communication link data are sent to the Bluetooth main node through the mobile terminal, so that the Bluetooth main node determines a first intensity of a Bluetooth radio-frequency signal broadcasted by the mobile terminal, in the process of channel following of a communication channel between the Bluetooth main node and the mobile terminal according to the MAC address and the communication rule of the Bluetooth main node through a Bluetooth slave node of the vehicle, the communication link data are obtained to determine a second intensity of the Bluetooth radio-frequency signal, and because the intensity of the Bluetooth radio-frequency signal can reflect the position condition of the mobile terminal from the vehicle, the position of the mobile terminal is determined according to the first intensity and the second intensity, so that whether the Bluetooth key of the vehicle can be controlled or not, the Bluetooth key can be quickly connected, and user experience is improved.
Description
Technical Field
The present application relates to the field of vehicle communication technologies, and in particular, to a method and an apparatus for controlling a bluetooth key.
Background
With the continuous development of vehicle technology, more and more vehicles are equipped with the function of bluetooth key, and based on the function of bluetooth key, the user need not the entity key and can realize functions such as starting the vehicle, closing the vehicle and unblock the vehicle, promptly the intelligent Entry and the Start function of PEPS (Passive Entry Passive Start) of vehicle.
The bluetooth key may be connected to a vehicle through bluetooth via a mobile terminal to complete functions of starting the vehicle, and the mobile terminal may be a smart phone, for example. In the related art, a bluetooth key system of a vehicle is configured with a bluetooth master node and a plurality of bluetooth slave nodes, the bluetooth master node performs bluetooth broadcasting, a mobile terminal scans to initiate connection to the mobile terminal, the mobile terminal performs bluetooth broadcasting to the outside after connection is successful, meanwhile, the bluetooth master node wakes up the bluetooth slave nodes, and when the bluetooth slave nodes scan and acquire an RSSI (Received Signal Strength Indication) of the bluetooth broadcasting Signal Strength of the mobile terminal, the position of the mobile terminal is determined based on RSSI positioning so as to execute a PEPS function. However, the methods in the related art have a problem that bluetooth connection is unreliable, for example, a user often has a problem that a bluetooth master node cannot be connected without picking up a mobile terminal to open a bluetooth key APP (Application) running on the mobile terminal to actively connect, which may result in poor experience of the user on the bluetooth key function.
HID (Human Interface Device) technology can realize fast connection during bluetooth connection, but the HID technology cannot be used for a vehicle Device having a plurality of bluetooth nodes. Therefore, the method has great significance in how to realize Bluetooth quick connection and improve the experience of a user on the Bluetooth key function aiming at the equipment with a plurality of Bluetooth nodes, such as a vehicle.
Disclosure of Invention
In order to solve the technical problem, the application provides a control method and device of a bluetooth key, which can improve the use experience of a user on the bluetooth key function of a vehicle.
The embodiment of the application discloses the following technical scheme:
in one aspect, an embodiment of the present application provides a method for controlling a bluetooth key, where the method includes:
when the mobile terminal is within a preset distance range of a vehicle, the mobile terminal and a Bluetooth main node of the vehicle establish Bluetooth connection according to a preset secret key;
according to the communication rule between the mobile terminal and the Bluetooth main node and the MAC address of the Bluetooth main node, sending communication link data to the Bluetooth main node through the mobile terminal;
acquiring the communication link data through the Bluetooth slave node in the process of performing channel following on a communication channel between the Bluetooth master node and the mobile terminal through the Bluetooth slave node of the vehicle according to the MAC address and the communication rule;
analyzing the communication link data through the Bluetooth master node to determine a first strength of a Bluetooth radio frequency signal broadcasted by the mobile terminal, and analyzing the communication link data through the Bluetooth slave node to determine a second strength of the Bluetooth radio frequency signal;
performing fusion positioning processing according to the first intensity and the second intensity through the Bluetooth main node, and determining the position of the mobile terminal;
and controlling whether a Bluetooth key of the vehicle is enabled or not according to the position.
On the other hand, the embodiment of the present application provides a control device of a bluetooth key, the device includes a connection unit, a sending unit, an obtaining unit, an analysis unit, a determination unit and a control unit:
the connection unit is used for establishing Bluetooth connection between the mobile terminal and a Bluetooth main node of the vehicle according to a preset secret key when the mobile terminal is within a preset distance range of the vehicle;
the transmitting unit transmits communication link data to the Bluetooth main node through the mobile terminal according to a communication rule between the mobile terminal and the Bluetooth main node and the MAC address of the Bluetooth main node;
the acquisition unit is used for acquiring the communication link data through the Bluetooth slave node in the process of carrying out channel following on a communication channel between the Bluetooth master node and the mobile terminal through the Bluetooth slave node of the vehicle according to the MAC address and the communication rule;
the analysis unit is used for analyzing the communication link data through the Bluetooth master node, determining a first strength of a Bluetooth radio-frequency signal broadcasted by the mobile terminal, and analyzing the communication link data through the Bluetooth slave node to determine a second strength of the Bluetooth radio-frequency signal;
the determining unit is configured to perform fusion positioning processing according to the first intensity and the second intensity by using the bluetooth master node, and determine a position of the mobile terminal;
and the control unit is used for controlling whether the Bluetooth key of the vehicle is enabled or not according to the position.
According to the technical scheme, when the mobile terminal is within the preset distance range of the vehicle, the mobile terminal is indicated to enter the range where the Bluetooth key function of the vehicle can be used through Bluetooth, and the Bluetooth connection can be automatically established between the mobile terminal and the Bluetooth master node of the vehicle according to the preset key; and then according to the communication rule between the mobile terminal and the Bluetooth main node and the MAC address of the Bluetooth main node, sending communication link data to the Bluetooth main node through the mobile terminal, wherein the communication link data comprise Bluetooth radio-frequency signals broadcasted by the mobile terminal, so that the Bluetooth main node can analyze the received communication link data to determine the first intensity of the Bluetooth radio-frequency signals broadcasted by the mobile terminal, and in the process of carrying out channel following on a communication channel between the Bluetooth main node and the mobile terminal according to the MAC address of the Bluetooth main node and the communication rule through the Bluetooth slave node of the vehicle, the communication link data can be actively obtained through the Bluetooth slave node, and then the obtained communication link data can be analyzed through the Bluetooth slave node to determine the second intensity of the Bluetooth radio-frequency signals broadcasted by the mobile terminal. Based on this, a mode of carrying out the channel through the bluetooth slave node and following is provided, realize the bluetooth slave node and carry out the acquireing of first intensity, can fuse the HID technique to the vehicle that disposes a plurality of bluetooth nodes well through this kind of mode, realize the bluetooth and connect soon, improve the user and experience the use of the bluetooth key function of vehicle.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a control method of a bluetooth key according to an embodiment of the present application;
fig. 2 is an interaction diagram of a control method of a bluetooth key according to an embodiment of the present application;
fig. 3 is a structural diagram of a control device of a bluetooth key according to an embodiment of the present application.
Detailed Description
In order to make those skilled in the art better understand the technical solutions of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making any creative effort belong to the protection scope of the present application.
The HID technology enables a quick connection during a bluetooth connection, but the HID technology cannot be used for a device having a plurality of bluetooth nodes such as a vehicle. Therefore, the method has great significance in how to realize Bluetooth quick connection and improve the experience of a user on the Bluetooth key function aiming at the equipment with a plurality of Bluetooth nodes, such as a vehicle.
Therefore, the control method and device for the Bluetooth key can well integrate the HID technology into a vehicle with a plurality of Bluetooth nodes, realize Bluetooth fast connection and improve the use experience of a user on the Bluetooth key function of the vehicle.
The control method of the bluetooth key provided by the embodiment of the application may be implemented by a computer device, which may be a terminal device or a server, wherein the server may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing cloud computing services. The terminal devices include, but are not limited to, mobile phones, computers, intelligent voice interaction devices, intelligent household appliances, vehicle-mounted terminals, and the like. The terminal device and the server may be directly or indirectly connected through wired or wireless communication, which is not limited in this application.
The description is made in detail by the following examples:
fig. 1 is a flowchart of a method for controlling a bluetooth key according to an embodiment of the present application, which is described by taking a terminal device as the foregoing computer device as an example, and the method includes S101 to S106:
s101: and when the mobile terminal is within the preset distance range of the vehicle, the mobile terminal establishes Bluetooth connection with a Bluetooth main node of the vehicle according to a preset secret key.
When the mobile terminal is within the preset distance range of the vehicle, the mobile terminal is indicated to enter the range where the Bluetooth key function of the vehicle can be used through Bluetooth, and at the moment, the mobile terminal and the Bluetooth main node of the vehicle can establish Bluetooth connection according to the preset key. The mobile terminal can be a smart phone, a smart tablet and the like. The preset key can be generated in advance, and during connection, verification can be performed based on the preset key, and after the verification is passed, the bluetooth connection is successfully established.
In one possible implementation, the preset key may be generated as follows:
when the mobile terminal is in first Bluetooth connection with the Bluetooth main node, after the Bluetooth main node is successfully paired with the mobile terminal, a preset key is generated through the Bluetooth main node.
Specifically, the bluetooth host node outwards broadcasts the bluetooth signal with certain broadcast cycle, open the bluetooth scanning through the bluetooth key APP of operation on mobile terminal, APP launches the bluetooth connection after scanning this bluetooth signal, the two pairs and verifies, generate the bluetooth binding relationship of the two after pairing successfully, it is corresponding, can generate the preset key in the bluetooth host node after binding, this preset key can be a long-term key, so that can carry out subsequent bluetooth connection based on this preset key after accomplishing first bluetooth connection.
In a possible implementation manner, when the mobile terminal establishes a bluetooth connection with the bluetooth master node, a connection instruction may be sent to the bluetooth master node through the mobile terminal according to an MAC address of the bluetooth master node, where the connection instruction is generated according to a bluetooth protocol of the mobile terminal and the bluetooth master node and is used to reflect a communication rule between the mobile terminal and the bluetooth master node, and specific contents of the connection instruction may include the following:
the parameters of the mobile terminal broadcasting the Bluetooth radio frequency signals during communication are reflected by various data parameters (AA: an access address; CRCInit: a check code initial value; winSize: the size of a sending window; winOffset: a sending window offset; interval: a connection Interval; latency: a slave Latency value; timEOUT: a TimeOut time; chM: a channel mapping table; hop: frequency hopping; SCA: sleep clock precision). For a specific explanation of the individual data parameters, see the following table:
s102: and sending communication link data to the Bluetooth main node through the mobile terminal according to the communication rule between the mobile terminal and the Bluetooth main node and the MAC address of the Bluetooth main node.
After the mobile terminal establishes the bluetooth connection with the bluetooth master node, communication link data can be sent to the bluetooth master node through the mobile terminal according to the communication rule between the mobile terminal and the bluetooth master node and the MAC address of the bluetooth master node. The MAC address of the bluetooth master node may be sent to the mobile terminal by the bluetooth master node when the bluetooth connection is established between the bluetooth master node and the mobile terminal for the first time.
Except the bluetooth master node, the vehicle still includes the bluetooth slave node, a control process for realizing the bluetooth key of vehicle with the bluetooth master node jointly, it is specific, the bluetooth master node passes through the whole car network of CAN bus access of vehicle, bluetooth master node and bluetooth slave node CAN form inside private network through the CAN bus of vehicle, and after forming inside private network for the first time, the bluetooth master node CAN transmit the MAC address of oneself for the bluetooth slave node through inside private network, so that the bluetooth slave node CAN carry out bluetooth scanning to the bluetooth master node and sniff, simultaneously, the bluetooth master node CAN also be based on inside private network, will predetermine the key and send to the bluetooth slave node, so that the bluetooth slave node is used for processes such as subsequent data link data analysis. Bluetooth master node and Bluetooth slave
It should be noted that, in the control method of the bluetooth key provided in the present application, after the bluetooth slave node receives the MAC address of the bluetooth master node, the bluetooth slave node may perform bluetooth scanning and sniffing according to the MAC address, specifically, after the bluetooth function of the vehicle is turned on, the bluetooth slave node may be controlled to perform bluetooth scanning and sniffing on the bluetooth master node according to the MAC address. The Bluetooth slave node can perform Bluetooth scanning and sniffing on the Bluetooth master node according to the MAC address of the Bluetooth master node.
Correspondingly, in the process of bluetooth scanning and sniffing, when the connection instruction is sniffed by the bluetooth slave node, the connection instruction can be analyzed by the bluetooth slave node, so that a communication rule between the mobile terminal and the bluetooth master node is determined, and channel following can be performed on a communication channel between the bluetooth master node and the mobile terminal according to the MAC address of the bluetooth master node and the communication rule, so that communication link data between the bluetooth master node and the mobile terminal can be captured actively.
Specifically, the connection instruction is analyzed by the bluetooth slave node, and the communication rule is determined by the following contents:
the method comprises the steps that firstly, a connection instruction is analyzed through a Bluetooth slave node, so that parameter values of a sending window size WinSize, a sending window offset WinOffset, a connection Interval Interval, a slave computer latency value Lateny, a Timeout time Timeout, a channel mapping table ChM and a frequency hopping Hop are obtained, then a sniffing opportunity of a Bluetooth radio-frequency signal is determined through the Bluetooth slave node according to the parameter values of WinSize, winOffset, interval, lateny and Timeout, a channel frequency hopping rule is determined through the Bluetooth slave node according to the parameter values of ChM and Hop and based on a frequency hopping algorithm, finally a communication rule can be determined according to the sniffing opportunity and the channel frequency hopping rule of the Bluetooth radio-frequency signal, and based on the sniffing opportunity and the channel frequency hopping rule, the Bluetooth slave node can follow a communication channel and communication frequency, so that communication link data between the Bluetooth slave node and the Bluetooth radio-frequency can be captured.
S103: and in the process of carrying out channel following on the communication channel between the Bluetooth master node and the mobile terminal through the Bluetooth slave node of the vehicle according to the MAC address and the communication rule, acquiring communication link data through the Bluetooth slave node.
S104: the communication link data is analyzed through the Bluetooth master node, the first strength of the Bluetooth radio-frequency signal broadcasted by the mobile terminal is determined, and the second strength of the Bluetooth radio-frequency signal is determined through the analysis of the communication link data through the Bluetooth slave node.
In the process of channel following from the node through the bluetooth, because the bluetooth has confirmed the sniffing opportunity and the channel frequency hopping law from the connection instruction that the node was sniffed, can initiatively grab communication link data from the node based on this bluetooth. Furthermore, the bluetooth master node and the bluetooth slave node can both obtain communication link data, the communication link data can include bluetooth radio frequency signals broadcasted by the mobile terminal, then the communication link data can be analyzed through the bluetooth master node, the first intensity of the bluetooth radio frequency signals broadcasted by the mobile terminal is determined, the communication link data is analyzed through the bluetooth slave node, the second intensity of the bluetooth radio frequency signals is determined, and thus the bluetooth master node and the bluetooth slave node can both obtain signal intensity values of the radio frequency signals broadcasted by the mobile terminal, and subsequent steps can be carried out conveniently. It should be noted that, when the bluetooth slave node determines the second strength, the chip hardware of the bluetooth slave node may also be used to perform measurement on the communication link data packet, so as to determine the second strength.
It can be understood that, in order to ensure communication security, the communication link data is generally encrypted data, and correspondingly, in order to ensure that the communication link data can be decrypted after being received, a preset key may generally be used for encryption and decryption, and when the communication link data is parsed, the bluetooth master node may parse the communication link data based on the preset key to determine the first strength, and the bluetooth slave node stores the preset key sent by the bluetooth master node based on the internal private network, so the bluetooth slave node may decrypt the communication link data according to the preset key to determine the second strength.
S105: and performing fusion positioning processing according to the first intensity and the second intensity by the Bluetooth main node to determine the position of the mobile terminal.
S106: and controlling whether the Bluetooth key of the vehicle is enabled or not according to the position.
Because the intensity of the Bluetooth radio frequency signal can reflect the position condition of the mobile terminal from the vehicle, the position of the mobile terminal can be determined by performing fusion positioning processing according to the first intensity and the second intensity by the Bluetooth main node, and then whether the Bluetooth key of the vehicle can be enabled or not is controlled according to the position of the mobile terminal.
In a possible implementation manner, the home may send the second strength to the bluetooth master node through the bluetooth slave node based on the internal private network before S105, so that the bluetooth master node acquires the second strength to perform the step of performing the converged positioning processing.
Accordingly, after the bluetooth master node receives the second intensity sent by the bluetooth slave node, the bluetooth master node may perform a fused positioning process based on the first intensity and the second intensity, so as to output a position of the mobile terminal, where the position can reflect a position condition of the mobile terminal from the vehicle, such as inside and outside the vehicle, a distance from the vehicle, and the like.
In a possible implementation manner, after the bluetooth master node outputs the position of the mobile terminal, the position of the mobile terminal may be further sent to a vehicle body controller of the vehicle, so that whether the bluetooth key of the vehicle is enabled or not is controlled by the vehicle body controller according to the received position of the mobile terminal.
Generally, the bluetooth key function of a vehicle is used for realizing the functions of starting the vehicle, closing the vehicle, unlocking the vehicle, and the like, namely, the PEPS function of the vehicle. For ease of understanding, the embodiments of the present application provide the following examples:
if the position of the mobile terminal indicates that the mobile terminal is outside the vehicle and within the preset distance range of the vehicle door opened by the Bluetooth, the position of the mobile terminal can meet the condition that the vehicle door is opened by the Bluetooth, and the Bluetooth key can be controlled by the vehicle body controller to enable the vehicle door to be opened.
It can be understood that the position of the mobile terminal can reflect the position condition of the mobile terminal from the vehicle, and the enabling condition of the bluetooth key can be controlled to be different under different position conditions, specifically, the bluetooth key can be controlled according to the actual condition, and the present application does not limit this.
According to the technical scheme, when the mobile terminal is within the preset distance range of the vehicle, the mobile terminal is indicated to enter the range where the Bluetooth key function of the vehicle can be used through Bluetooth, and the Bluetooth connection can be automatically established between the mobile terminal and the Bluetooth master node of the vehicle according to the preset key; and then according to the communication rule between the mobile terminal and the Bluetooth main node and the MAC address of the Bluetooth main node, sending communication link data to the Bluetooth main node through the mobile terminal, wherein the communication link data comprise Bluetooth radio-frequency signals broadcasted by the mobile terminal, so that the Bluetooth main node can analyze the received communication link data to determine the first strength of the Bluetooth radio-frequency signals broadcasted by the mobile terminal, and in the process of carrying out channel following on a communication channel between the Bluetooth main node and the mobile terminal according to the MAC address of the Bluetooth main node and the communication rule through the Bluetooth slave node of the vehicle, the communication link data can be actively obtained through the Bluetooth slave node, and then the obtained communication link data can be analyzed through the Bluetooth slave node to determine the second strength of the Bluetooth radio-frequency signals broadcasted by the mobile terminal. Based on this, a mode of carrying out the channel through the bluetooth from the node and following is provided, realizes the bluetooth from the acquisition of node pair first intensity, can fuse HID technique to the vehicle that disposes a plurality of bluetooth nodes well through this kind of mode, realizes the bluetooth and links soon, improves the user and experiences the use of the bluetooth key function of vehicle.
Fig. 2 is an interaction schematic diagram of a control method of a bluetooth key according to an embodiment of the present application, which takes a mobile phone as a mobile terminal as an example, and specifically includes: the Bluetooth slave nodes can comprise a plurality of Bluetooth slave nodes, and the Bluetooth slave nodes are always in Bluetooth scanning sniffing on the Bluetooth master node; after the Bluetooth connection is established between the mobile phone and the Bluetooth master node for the first time, the Bluetooth master node sets a preset key LTK and sends the LTK to the Bluetooth slave node based on an internal private network established between the Bluetooth master node and the Bluetooth slave node; when the mobile phone establishes Bluetooth connection with the Bluetooth master node again, the Bluetooth slave node captures sniffing opportunity and communication frequency, then channel following is carried out, second strength RSSI is obtained, and RSSI is reported to the Bluetooth master node based on an internal private network; meanwhile, the Bluetooth master node can measure and determine a first strength RSSI, and then the Bluetooth master node can fuse the RSSI value of the first strength RSSI value and the RSSI value of the second strength RSSI value to calculate the position of the mobile phone, and finally report the position of the mobile phone to the vehicle body controller, so that the vehicle body controller can control whether the Bluetooth key is enabled according to the position to execute the PEPS function of the vehicle. It should be noted that the bluetooth slave node includes a plurality of, and accordingly, the second strength may include a plurality of RSSI values. Generally, the number of bluetooth master nodes of the vehicle is 1, the number of bluetooth slave nodes is 3-5, and accordingly, the first strength may include one RSSI value, and the second strength may include 3-5 RSSI values (specifically, consistent with the number of bluetooth slave nodes).
It is understood that it corresponds substantially to the method embodiment, so that reference may be made to the part of the description of the method embodiment where relevant.
Fig. 3 is a structural diagram of a control apparatus of a bluetooth key according to an embodiment of the present application, where the apparatus includes a connection unit 301, a sending unit 302, an obtaining unit 303, an analyzing unit 304, a determining unit 305, and a control unit 306:
the connection unit 301 is configured to, when the mobile terminal is within a preset distance range of a vehicle, establish a bluetooth connection between the mobile terminal and a bluetooth master node of the vehicle according to a preset key;
the sending unit 302 is configured to send communication link data to the bluetooth master node through the mobile terminal according to a communication rule between the mobile terminal and the bluetooth master node and an MAC address of the bluetooth master node;
the obtaining unit 303 is configured to obtain the communication link data through a bluetooth slave node of the vehicle during channel following of a communication channel between the bluetooth master node and the mobile terminal according to the MAC address and the communication rule by the bluetooth slave node;
the analyzing unit 304 is configured to analyze the communication link data through the bluetooth master node, determine a first strength of a bluetooth radio frequency signal broadcast by the mobile terminal, analyze the communication link data through the bluetooth slave node, and determine a second strength of the bluetooth radio frequency signal;
the determining unit 305 is configured to perform fusion positioning processing according to the first strength and the second strength by the bluetooth master node, and determine the position of the mobile terminal;
the control unit 306 is configured to control whether the bluetooth key of the vehicle is enabled according to the position.
In one possible implementation, the apparatus further comprises a sniffing unit:
and the sniffing unit is used for controlling the Bluetooth slave node to perform Bluetooth scanning and sniffing on the Bluetooth master node according to the MAC address after the Bluetooth function of the vehicle is started.
In a possible implementation manner, the sending unit is further configured to send, by the mobile terminal, a connection instruction to the bluetooth master node according to the MAC address when the bluetooth connection is established between the mobile terminal and the bluetooth master node; the connection instruction is generated according to the Bluetooth protocols of the mobile terminal and the Bluetooth main node;
the determining unit is further configured to, in the bluetooth scanning and sniffing process, when the connection instruction is sniffed from the node through the bluetooth, parse the connection instruction through the bluetooth slave node, and determine the communication rule, so that the bluetooth slave node performs channel following.
In a possible implementation manner, the determining unit is further configured to:
analyzing the connection instruction through the Bluetooth slave node to obtain parameter values of a sending window size WinSize, a sending window offset WinOffset, a connection Interval, a slave latency value Lateny, a Timeout time Timeout, a channel mapping table ChM and a frequency hopping Hop;
determining sniffing time of a Bluetooth radio frequency signal by the Bluetooth slave node according to parameter values of the WinSize, the WinOffset, the Interval, the Lateny and the Timeout;
determining a channel frequency hopping rule based on a frequency hopping algorithm according to the ChM and the Hop parameter values through the Bluetooth slave node;
and determining the communication rule according to the sniffing opportunity of the Bluetooth radio frequency signal and the channel frequency hopping rule.
In a possible implementation manner, the preset key is generated by:
and when the mobile terminal is in first Bluetooth connection with the Bluetooth main node, after the Bluetooth main node is successfully paired with the mobile terminal, the preset key is generated through the Bluetooth main node.
In a possible implementation manner, the connection unit is further configured to:
the Bluetooth master node and the Bluetooth slave node form an internal private network through a CAN bus of the vehicle;
based on the internal private network, sending the preset secret key to the Bluetooth slave node through the Bluetooth master node;
the analysis unit is further configured to decrypt, by the bluetooth slave node, the communication link data according to the preset key, and determine the second strength.
In a possible implementation manner, the sending unit is further configured to send, by the bluetooth slave node, the second strength to the bluetooth master node based on the internal private network.
In a possible implementation manner, the sending unit is further configured to send the location of the mobile terminal to a vehicle body controller of the vehicle through the bluetooth master node;
the control unit is also used for controlling whether the Bluetooth key is enabled or not according to the position through the automobile body controller.
In a possible implementation manner, the control unit is further configured to control the bluetooth key to enable through the vehicle body controller to open the vehicle door of the vehicle if the position indicates that the mobile terminal is outside the vehicle and within a preset distance range for the bluetooth of the vehicle to open the vehicle door.
According to the technical scheme, when the mobile terminal is within the preset distance range of the vehicle, the mobile terminal is indicated to enter the range where the Bluetooth key function of the vehicle can be used through Bluetooth, and the Bluetooth connection can be automatically established between the mobile terminal and the Bluetooth master node of the vehicle according to the preset key; and then according to the communication rule between the mobile terminal and the Bluetooth main node and the MAC address of the Bluetooth main node, sending communication link data to the Bluetooth main node through the mobile terminal, wherein the communication link data comprise Bluetooth radio-frequency signals broadcasted by the mobile terminal, so that the Bluetooth main node can analyze the received communication link data to determine the first strength of the Bluetooth radio-frequency signals broadcasted by the mobile terminal, and in the process of carrying out channel following on a communication channel between the Bluetooth main node and the mobile terminal according to the MAC address of the Bluetooth main node and the communication rule through the Bluetooth slave node of the vehicle, the communication link data can be actively obtained through the Bluetooth slave node, and then the obtained communication link data can be analyzed through the Bluetooth slave node to determine the second strength of the Bluetooth radio-frequency signals broadcasted by the mobile terminal. Based on this, a mode of carrying out the channel through the bluetooth slave node and following is provided, realize the bluetooth slave node and carry out the acquireing of first intensity, can fuse the HID technique to the vehicle that disposes a plurality of bluetooth nodes well through this kind of mode, realize the bluetooth and connect soon, improve the user and experience the use of the bluetooth key function of vehicle.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement without inventive effort.
It should be noted that, in this document, relational terms such as first and second, and the like are 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 apparatus 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 apparatus. Without further limitation, an element defined by the phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises the element.
The foregoing detailed description is directed to a method and an apparatus for controlling a bluetooth key according to an embodiment of the present application, and specific examples are applied in the detailed description to explain the principles and implementations of the present application. Also, variations in the specific embodiments and applications of the methods of the present application will occur to those skilled in the art.
In view of the foregoing, it is not intended that the present disclosure be limited to the specific embodiments disclosed, and that any modifications or alterations that may occur to those skilled in the art and which are within the scope of the disclosure are intended to be covered by the appended claims. Moreover, the present application can be further combined to provide more implementations on the basis of the implementations provided by the above aspects.
Claims (10)
1. A method of controlling a bluetooth key, the method comprising:
when the mobile terminal is within a preset distance range of a vehicle, the mobile terminal and a Bluetooth main node of the vehicle establish Bluetooth connection according to a preset secret key;
according to the communication rule between the mobile terminal and the Bluetooth main node and the MAC address of the Bluetooth main node, sending communication link data to the Bluetooth main node through the mobile terminal;
acquiring the communication link data through the Bluetooth slave node in the process of performing channel following on a communication channel of the Bluetooth master node and the mobile terminal through the Bluetooth slave node of the vehicle according to the MAC address and the communication rule;
analyzing the communication link data through the Bluetooth master node to determine a first strength of a Bluetooth radio frequency signal broadcasted by the mobile terminal, and analyzing the communication link data through the Bluetooth slave node to determine a second strength of the Bluetooth radio frequency signal;
performing fusion positioning processing according to the first intensity and the second intensity by the Bluetooth main node to determine the position of the mobile terminal;
and controlling whether the Bluetooth key of the vehicle is enabled or not according to the position.
2. The method according to claim 1, wherein before the mobile terminal establishes the bluetooth connection with the bluetooth master node of the vehicle according to a preset key when the mobile terminal is within a preset distance range of the vehicle, the method further comprises:
and after the Bluetooth function of the vehicle is started, controlling the Bluetooth slave node to perform Bluetooth scanning and sniffing on the Bluetooth master node according to the MAC address.
3. The method of claim 2, wherein before the sending of the communication link data to the bluetooth master node by the mobile terminal according to the communication rule between the mobile terminal and the bluetooth master node and the MAC address of the bluetooth master node, the method further comprises:
when the mobile terminal establishes Bluetooth connection with the Bluetooth main node, the mobile terminal sends a connection instruction to the Bluetooth main node according to the MAC address; the connection instruction is generated according to the Bluetooth protocol of the mobile terminal and the Bluetooth main node;
in the process of the Bluetooth scanning and sniffing, when the connection instruction is sniffed by the Bluetooth slave node, the connection instruction is analyzed by the Bluetooth slave node, and the communication rule is determined so that the Bluetooth slave node can follow the channel.
4. The method of claim 3, wherein parsing the connection instruction by the Bluetooth slave node to determine the communication rule comprises:
analyzing the connection instruction through the Bluetooth slave node to obtain parameter values of a sending window size WinSize, a sending window offset WinOffset, a connection Interval, a slave latency value Lateny, a Timeout time Timeout, a channel mapping table ChM and a frequency hopping Hop;
determining sniffing time of a Bluetooth radio frequency signal by the Bluetooth slave node according to parameter values of the WinSize, the WinOffset, the Interval, the Lateny and Timeout;
determining a channel frequency hopping rule based on a frequency hopping algorithm according to the parameter values of the ChM and the Hop through the Bluetooth slave node;
and determining the communication rule according to the sniffing opportunity of the Bluetooth radio frequency signal and the channel frequency hopping rule.
5. The method of claim 1, wherein the preset key is generated by:
when the mobile terminal is in first Bluetooth connection with the Bluetooth main node, after the Bluetooth main node is successfully paired with the mobile terminal, the preset key is generated through the Bluetooth main node.
6. The method of claim 5, further comprising:
the Bluetooth master node and the Bluetooth slave node form an internal private network through a CAN bus of the vehicle;
based on the internal private network, sending the preset secret key to the Bluetooth slave node through the Bluetooth master node;
the parsing the communication link data by the bluetooth slave node to determine a second strength of the bluetooth radio frequency signal comprises:
and decrypting the communication link data according to the preset key through the Bluetooth slave node to determine the second strength.
7. The method of claim 6, wherein prior to said performing, by said Bluetooth master node, a fused position process based on said first strength and said second strength, said method further comprises:
transmitting, by the Bluetooth slave node to the Bluetooth master node, the second strength based on the internal private network.
8. The method according to any of claims 1-7, wherein after determining the location of the mobile terminal by the bluetooth master node performing the converged positioning process according to the first strength and the second strength, the method further comprises:
the position of the mobile terminal is sent to a vehicle body controller of the vehicle through the Bluetooth master node;
the controlling whether the bluetooth key of the vehicle is enabled according to the position includes:
and controlling whether the Bluetooth key is enabled or not according to the position through the automobile body controller.
9. The method of claim 8, wherein said controlling, by the body controller, whether the bluetooth key is enabled based on the location comprises:
and if the position indicates that the mobile terminal is positioned outside the vehicle and within a preset distance range of the vehicle door opened by the Bluetooth of the vehicle, controlling the Bluetooth key to enable through the vehicle body controller so as to open the vehicle door of the vehicle.
10. A control device of a Bluetooth key is characterized by comprising a connecting unit, a sending unit, an obtaining unit, an analyzing unit, a determining unit and a control unit:
the connection unit is used for establishing Bluetooth connection between the mobile terminal and a Bluetooth main node of the vehicle according to a preset secret key when the mobile terminal is within a preset distance range of the vehicle;
the transmitting unit transmits communication link data to the Bluetooth main node through the mobile terminal according to a communication rule between the mobile terminal and the Bluetooth main node and the MAC address of the Bluetooth main node;
the acquisition unit is used for acquiring the communication link data through the Bluetooth slave node in the process of carrying out channel following on a communication channel between the Bluetooth master node and the mobile terminal through the Bluetooth slave node of the vehicle according to the MAC address and the communication rule;
the analysis unit is used for analyzing the communication link data through the Bluetooth master node, determining a first strength of a Bluetooth radio-frequency signal broadcasted by the mobile terminal, analyzing the communication link data through the Bluetooth slave node, and determining a second strength of the Bluetooth radio-frequency signal;
the determining unit is configured to perform fusion positioning processing according to the first intensity and the second intensity by using the bluetooth master node, and determine a position of the mobile terminal;
and the control unit is used for controlling whether the Bluetooth key of the vehicle is enabled or not according to the position.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211084321.5A CN115471936B (en) | 2022-09-06 | 2022-09-06 | Bluetooth key control method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211084321.5A CN115471936B (en) | 2022-09-06 | 2022-09-06 | Bluetooth key control method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115471936A true CN115471936A (en) | 2022-12-13 |
CN115471936B CN115471936B (en) | 2024-03-22 |
Family
ID=84371136
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211084321.5A Active CN115471936B (en) | 2022-09-06 | 2022-09-06 | Bluetooth key control method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115471936B (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111970646A (en) * | 2020-07-08 | 2020-11-20 | 深圳市昇润科技有限公司 | Intelligent Bluetooth operation switch method and system based on beacon broadcast |
CN113298985A (en) * | 2021-05-31 | 2021-08-24 | 远峰科技股份有限公司 | RSSI-based digital key unlocking terminal positioning method and system |
CN114422938A (en) * | 2021-12-09 | 2022-04-29 | 广东银基信息安全技术有限公司 | Positioning end, target end and positioning method |
CN114501363A (en) * | 2016-10-12 | 2022-05-13 | 株式会社电装 | Passive entry/passive start system and method for vehicle |
CN114827968A (en) * | 2022-03-31 | 2022-07-29 | 远峰科技股份有限公司 | Big data transmission method of BLE intelligent key CANFD |
CN114827887A (en) * | 2022-03-31 | 2022-07-29 | 远峰科技股份有限公司 | Timing synchronization digital key positioning system based on Bluetooth AoA positioning and ranging |
CN114863590A (en) * | 2022-04-20 | 2022-08-05 | 东风汽车集团股份有限公司 | Method and device for controlling opening of vehicle-mounted safe box through mobile terminal |
CN115002270A (en) * | 2022-04-21 | 2022-09-02 | 联合汽车电子有限公司 | Self-calibration method of digital key equipment and digital key equipment |
-
2022
- 2022-09-06 CN CN202211084321.5A patent/CN115471936B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114501363A (en) * | 2016-10-12 | 2022-05-13 | 株式会社电装 | Passive entry/passive start system and method for vehicle |
CN111970646A (en) * | 2020-07-08 | 2020-11-20 | 深圳市昇润科技有限公司 | Intelligent Bluetooth operation switch method and system based on beacon broadcast |
CN113298985A (en) * | 2021-05-31 | 2021-08-24 | 远峰科技股份有限公司 | RSSI-based digital key unlocking terminal positioning method and system |
CN114422938A (en) * | 2021-12-09 | 2022-04-29 | 广东银基信息安全技术有限公司 | Positioning end, target end and positioning method |
CN114827968A (en) * | 2022-03-31 | 2022-07-29 | 远峰科技股份有限公司 | Big data transmission method of BLE intelligent key CANFD |
CN114827887A (en) * | 2022-03-31 | 2022-07-29 | 远峰科技股份有限公司 | Timing synchronization digital key positioning system based on Bluetooth AoA positioning and ranging |
CN114863590A (en) * | 2022-04-20 | 2022-08-05 | 东风汽车集团股份有限公司 | Method and device for controlling opening of vehicle-mounted safe box through mobile terminal |
CN115002270A (en) * | 2022-04-21 | 2022-09-02 | 联合汽车电子有限公司 | Self-calibration method of digital key equipment and digital key equipment |
Also Published As
Publication number | Publication date |
---|---|
CN115471936B (en) | 2024-03-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP7298668B2 (en) | Passive entry/passive start system and method for vehicles | |
US12010519B2 (en) | Information sharing method, terminal device, storage medium, and computer program product | |
CN109844822B (en) | Passive entry/passive start system and method for a vehicle | |
EP2405622B1 (en) | Device communication | |
CN107257537B (en) | Method, apparatus and computer readable medium for collecting media exposure data | |
US10064052B2 (en) | Methods for authenticating device-to-device communication | |
CN108605277B (en) | Method and device for establishing wireless local area network connection | |
CN113613197B (en) | Pairing method and device for vehicle and digital key | |
CN105933469B (en) | Network access method and device for intelligent equipment and intelligent equipment | |
CN107454591A (en) | Ensure the method, apparatus and system of WIFI LAN communication safeties | |
CN109756878A (en) | A kind of Bluetooth pairing methods and equipment | |
CN111615143B (en) | Information reporting method, information receiving method, terminal and network control entity | |
CN111683336B (en) | Method and equipment for positioning digital key of vehicle | |
CN112714009A (en) | Network distribution method, network equipment to be distributed and network equipment | |
CN116347656A (en) | Bluetooth encryption connection method and device and electronic equipment | |
CN115471936B (en) | Bluetooth key control method and device | |
Choi et al. | Push yoUr Password: Secure and Fast WiFi Connection for IoT Devices | |
CN115134786A (en) | Bluetooth connection blocking method, device, equipment and storage medium | |
CN109981420B (en) | Intelligent device network distribution method and intelligent device | |
Catanzaro | Study and investigation of bluetooth low energy security in the IoT environment | |
CN107959933B (en) | Code matching method, device, equipment and storage medium for PLC (programmable logic controller) equipment in WiFi (wireless fidelity) wireless network | |
CN117202084A (en) | Digital key positioning method, device, equipment, medium and vehicle | |
CN115412887A (en) | Network distribution method, device, system, equipment and storage medium | |
CN112995190A (en) | Internet of things data security method and device based on security authentication | |
CN117256166A (en) | Information processing method and device, communication equipment and storage medium |
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 |