CN115471936B - Bluetooth key control method and device - Google Patents
Bluetooth key control method and device Download PDFInfo
- Publication number
- CN115471936B CN115471936B CN202211084321.5A CN202211084321A CN115471936B CN 115471936 B CN115471936 B CN 115471936B CN 202211084321 A CN202211084321 A CN 202211084321A CN 115471936 B CN115471936 B CN 115471936B
- Authority
- CN
- China
- Prior art keywords
- bluetooth
- mobile terminal
- master node
- vehicle
- intensity
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 66
- 238000004891 communication Methods 0.000 claims abstract description 107
- 238000012545 processing Methods 0.000 claims description 8
- 230000004927 fusion Effects 0.000 claims description 7
- 230000005540 biological transmission Effects 0.000 claims description 6
- 238000013507 mapping Methods 0.000 claims description 4
- 238000005516 engineering process Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 4
- 230000003993 interaction Effects 0.000 description 3
- 238000012795 verification Methods 0.000 description 3
- 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
- 238000006467 substitution reaction Methods 0.000 description 1
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 utility model discloses a control method and device of bluetooth key, if mobile terminal is in the vehicle and presets the distance scope, mobile terminal establishes bluetooth connection with bluetooth master node according to preseting the secret key, according to the communication rule between the two and bluetooth master node's MAC address, send communication link data to bluetooth master node through mobile terminal, so that bluetooth master node determines the first intensity of bluetooth radio frequency signal that mobile terminal broadcast, in the in-process that carries out the channel follow to bluetooth master node and mobile terminal's communication channel according to bluetooth master node's MAC address and communication rule through the bluetooth slave node of vehicle, obtain communication link data in order to confirm bluetooth radio frequency signal's second intensity, because bluetooth radio frequency signal's intensity can reflect the position condition of mobile terminal distance from the vehicle, so confirm mobile terminal's position according to first intensity and second intensity through bluetooth master node, so that whether control vehicle's bluetooth key is enabled, realize bluetooth quick connection, improve user experience.
Description
Technical Field
The present disclosure relates to the field of vehicle communications technologies, and in particular, to a control method and apparatus for a bluetooth key.
Background
With the continuous development of vehicle technology, more and more vehicles are configured with bluetooth key functions, and based on the bluetooth key functions, users can realize functions of starting the vehicle, closing the vehicle, unlocking the vehicle and the like without a physical key, namely intelligent entry and starting functions of PEPS (Passive Entry Passive Start, keyless system) of the vehicle.
The function of the Bluetooth key can be specifically realized by connecting the mobile terminal with a vehicle through Bluetooth so as to finish the functions of starting the vehicle and the like, and the mobile terminal can be a smart phone. 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 bluetooth master node, the mobile terminal performs bluetooth broadcasting to the outside after successful connection, and meanwhile, the bluetooth master node wakes up the bluetooth slave nodes, when the bluetooth slave nodes scan and acquire RSSI (Received Signal Strength Indication) of the bluetooth broadcasting signal intensity of the mobile terminal, the received signal intensity indication is obtained, and then the position of the mobile terminal is determined based on RSSI positioning so as to execute PEPS function. However, the method in the related art has the problem that the bluetooth connection is unreliable, for example, the problem that a user cannot connect to a bluetooth master node without taking out the mobile terminal and opening the bluetooth key APP (Application) active connection running on the mobile terminal, and accordingly, the experience of the user on the bluetooth key function is poor.
HID (Human Interface Device ) technology enables quick connection during bluetooth connection, however HID technology cannot be used for devices with multiple bluetooth nodes, such as vehicles. Therefore, aiming at the device with a plurality of Bluetooth nodes of the vehicle, how to realize Bluetooth quick connection improves the experience of users on the Bluetooth key function, and has important significance.
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 control method of a bluetooth key, where the method includes:
when the mobile terminal is in a preset distance range of a vehicle, the mobile terminal and a Bluetooth master 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 master node and the MAC address of the Bluetooth master node, sending communication link data to the Bluetooth master node through the mobile terminal;
acquiring the communication link data through the Bluetooth slave node in the process of carrying out channel following on the communication channels of the Bluetooth master node and the mobile terminal according to the MAC address and the communication rule through the Bluetooth slave node of the vehicle;
analyzing the communication link data through the Bluetooth master node, determining the first intensity of a Bluetooth radio frequency signal broadcast by the mobile terminal, and analyzing the communication link data through the Bluetooth slave node, determining the second intensity of the Bluetooth radio frequency signal;
the Bluetooth master node performs fusion positioning processing according to the first intensity and the second intensity to determine the position of the mobile terminal;
and controlling whether the Bluetooth key of the vehicle is enabled according to the position.
On the other hand, the embodiment of the application provides a control device of a Bluetooth key, which comprises 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 master node of the vehicle according to a preset secret key when the mobile terminal is in a preset distance range of the vehicle;
the sending unit sends communication link data 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 acquiring unit is configured to acquire, by using the bluetooth slave node of the vehicle, the communication link data in a process of performing channel following on a communication channel between the bluetooth master node and the mobile terminal according to the MAC address and the communication rule by using the bluetooth slave node of the vehicle;
the analyzing unit is configured to analyze the communication link data through the bluetooth master node, determine a first intensity of a bluetooth radio frequency signal broadcasted by the mobile terminal, and analyze the communication link data through the bluetooth slave node to determine a second intensity of the bluetooth radio frequency signal;
the determining unit is used for determining the position of the mobile terminal through the Bluetooth master node according to the first intensity and the second intensity;
the control unit is used for controlling whether the Bluetooth key of the vehicle is enabled according to the position.
According to the technical scheme, when the mobile terminal is in the preset distance range of the vehicle, the mobile terminal is indicated to enter the range of using the Bluetooth key function of the vehicle through Bluetooth, and at the moment, the mobile terminal and the Bluetooth master node of the vehicle can automatically establish Bluetooth connection according to the preset key; and in the process of carrying out channel following on the communication channel of the Bluetooth master node and the mobile terminal according to the MAC address of the Bluetooth master node and the MAC address of the Bluetooth master node, the communication link data is sent to the Bluetooth master node through the mobile terminal, the communication link data comprises Bluetooth radio frequency signals broadcast by the mobile terminal, so that the Bluetooth master node analyzes and determines the first strength of the Bluetooth radio frequency signals broadcast by the mobile terminal, and in the process of carrying out channel following on the communication channel of the Bluetooth master node and the mobile terminal through the Bluetooth slave node according to the MAC address of the Bluetooth master node and the communication rule, the communication link data can be actively acquired through the Bluetooth slave node, and then the acquired communication link data is analyzed and determined through the Bluetooth slave node, so that the second strength of the Bluetooth radio frequency signals broadcast by the mobile terminal can reflect the situation of the mobile terminal from the vehicle. Based on this, a mode that carries out the channel through bluetooth slave node and follow is provided, realizes that bluetooth slave node is to the acquisition of first intensity, can fuse the HID technique in the vehicle that is configured with a plurality of bluetooth nodes well through this kind of mode, realizes bluetooth and links soon, improves the user and experiences 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 that are required in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
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 schematic diagram of a control method of a bluetooth key according to an embodiment of the present application;
fig. 3 is a block diagram of a control device of a bluetooth key according to an embodiment of the present application.
Detailed Description
In order to make the present application solution better understood by those skilled in the art, the following description will clearly and completely describe the technical solution in the embodiments of the present application with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
HID technology enables quick connection during bluetooth connection, but HID technology cannot be used for devices with multiple bluetooth nodes, such as vehicles. Therefore, aiming at the device with a plurality of Bluetooth nodes of the vehicle, how to realize Bluetooth quick connection improves the experience of users on the Bluetooth key function, and has important significance.
Therefore, the application provides a control method and device for a Bluetooth key, which can well integrate the HID technology into a vehicle configured with a plurality of Bluetooth nodes, realize Bluetooth quick 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, where the computer device may be a terminal device or a server, and the server may be an independent physical server, or may be a server cluster or a distributed system formed by a plurality of physical servers, or may be a cloud server that provides cloud computing service. The terminal equipment comprises, but is not limited to, mobile phones, computers, intelligent voice interaction equipment, 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 following examples are provided to illustrate the invention:
fig. 1 is a flowchart of a control method of a bluetooth key according to an embodiment of the present application, taking a terminal device as an example of the foregoing computer device, where the method includes S101-S106:
s101: when the mobile terminal is in the preset distance range of the vehicle, the mobile terminal and a Bluetooth main node of the vehicle establish Bluetooth connection according to a preset secret key.
When the mobile terminal is in the preset distance range of the vehicle, the mobile terminal is indicated to enter the range of using the Bluetooth key function of the vehicle through Bluetooth, and at the moment, the mobile terminal and the Bluetooth master node of the vehicle can establish Bluetooth connection according to the preset key. The mobile terminal may be a smart phone, a smart tablet, etc. The preset key may be pre-generated, and when connected, the verification may 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 by:
when the mobile terminal and the Bluetooth master node are connected for the first time, after the Bluetooth master node and the mobile terminal are successfully paired, a preset secret key is generated through the Bluetooth master node.
Specifically, the bluetooth master node broadcasts a bluetooth signal outwards in a certain broadcasting period, bluetooth scanning is opened through a bluetooth key APP running on the mobile terminal, bluetooth connection is initiated after the bluetooth signal is scanned by the APP, pairing verification is performed on the bluetooth signal and the bluetooth signal, a bluetooth binding relationship between the bluetooth master node and the APP is generated after pairing is successful, and accordingly, a preset secret key can be generated in the bluetooth master node after binding, and the preset secret key can be a long-term secret key so that subsequent bluetooth connection can be performed based on the preset secret key after first bluetooth connection is completed.
In one possible implementation manner, when the mobile terminal and the bluetooth master node establish a bluetooth connection, a connection instruction may be sent to the bluetooth master node by the mobile terminal according to a 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 content of the connection instruction may include the following:
wherein, each data parameter (AA: access address; CRCInit: check code initial value; winSize: send window size; winOffset: send window offset; interval: connection Interval; latency: slave Latency; timeOut: timeOut time; chM: channel mapping table; hop: frequency hopping; SCA: sleep clock precision) reflects the parameters of Bluetooth radio frequency signal broadcast by the mobile terminal when communication is performed. For a specific explanation of the various data parameters, reference may be made to the following table:
s102: and sending communication link data 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.
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 master node and the bluetooth master node establish the first bluetooth connection.
Besides the Bluetooth master node, the vehicle further comprises a Bluetooth slave node which is used for jointly realizing the control process of the Bluetooth key of the vehicle with the Bluetooth master node, specifically, the Bluetooth master node is connected to the whole vehicle network through the CAN bus of the vehicle, the Bluetooth master node and the Bluetooth slave node CAN form an internal private network through the CAN bus of the vehicle, and after the internal private network is formed for the first time, the Bluetooth master node CAN transmit an own MAC address to the Bluetooth slave node through the internal private network so that the Bluetooth slave node CAN perform Bluetooth scanning sniffing on the Bluetooth master node, and meanwhile, the Bluetooth master node CAN also send a preset secret key to the Bluetooth slave node based on the internal private network so that the Bluetooth slave node is used for the subsequent data link data analysis and other processes. Bluetooth master node and bluetooth slave of (a)
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, bluetooth scanning sniffing can be performed according to the MAC address, specifically, after the bluetooth function of the vehicle is turned on, the bluetooth slave node is controlled to perform bluetooth scanning sniffing on the bluetooth master node according to the MAC address. The Bluetooth function of the vehicle is started to indicate that the vehicle nodes are in a starting state, and at the moment, the Bluetooth slave nodes can perform Bluetooth scanning sniffing on the Bluetooth master nodes according to the MAC addresses of the Bluetooth master nodes.
Because the connection instruction is sent to the Bluetooth master node through the mobile terminal, and the Bluetooth slave node is always in a state of performing Bluetooth scanning sniffing, correspondingly, in the Bluetooth scanning sniffing process, when the connection instruction is sniffed by the Bluetooth slave node, the connection instruction can be analyzed through the Bluetooth slave node, so that the communication rule between the mobile terminal and the Bluetooth master node is determined, and the communication channel between the Bluetooth master node and the mobile terminal can be followed by the communication channel according to the MAC address of the Bluetooth master node and the communication rule, so as to actively grasp the communication link data between the Bluetooth master node and the mobile terminal.
Specifically, the bluetooth slave node analyzes the connection instruction to determine the communication rule according to the following contents:
firstly, analyzing a connection instruction through a Bluetooth slave node to obtain a transmission window size WinSize, a transmission window offset WinOffset, a connection Interval, a slave latency value Lateny, a Timeout time Timeout, a channel mapping table ChM and a parameter value of a frequency hopping Hop, further determining sniffing time of a Bluetooth radio frequency signal through the Bluetooth slave node according to WinSize, winOffset, interval, lateny and the parameter value of the Timeout, determining a channel frequency hopping rule through the Bluetooth slave node according to ChM and the parameter value of the Hop based on a frequency hopping algorithm, finally determining a communication rule according to the sniffing time and the channel frequency hopping rule of the Bluetooth radio frequency signal, and following a communication channel and the communication frequency through the Bluetooth slave node based on the sniffing time and the channel frequency hopping rule so as to grasp communication link data between the two.
S103: and in the process of carrying out channel following on the 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 of the vehicle, acquiring communication link data by the Bluetooth slave node.
S104: and analyzing the communication link data through the Bluetooth master node, determining the first intensity of the Bluetooth radio frequency signal broadcast by the mobile terminal, and analyzing the communication link data through the Bluetooth slave node, and determining the second intensity of the Bluetooth radio frequency signal.
In the process of carrying out channel following through the Bluetooth slave node, the Bluetooth slave node can actively grasp communication link data based on the sniffing time and the channel hopping rule determined by the connection instruction sniffed by the Bluetooth slave node. Furthermore, the bluetooth master node and the bluetooth slave node can both acquire communication link data, the communication link data can comprise a bluetooth radio frequency signal broadcast by the mobile terminal, then the communication link data can be analyzed through the bluetooth master node to determine the first intensity of the bluetooth radio frequency signal broadcast by the mobile terminal, the bluetooth slave node is used for analyzing the communication link data to determine the second intensity of the bluetooth radio frequency signal, and the bluetooth master node and the bluetooth slave node can acquire the signal intensity value of the radio frequency signal broadcast by the mobile terminal so as to carry out subsequent steps. 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 complete measurement of the communication link packet, so as to determine the second strength.
It may be appreciated that, in order to ensure communication security, the communication link data is generally encrypted data, and accordingly, in order to ensure that the communication link data can be decrypted after being received, encryption and decryption may generally be performed by using a preset key, and further, 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 that the bluetooth slave node may decrypt the communication link data according to the preset key to determine the second strength.
S105: and carrying out fusion positioning processing according to the first intensity and the second intensity by the Bluetooth master node to determine the position of the mobile terminal.
S106: and controlling whether the Bluetooth key of the vehicle is enabled according to the position.
Because the intensity of the Bluetooth radio frequency signal can reflect the situation that the mobile terminal is away from the vehicle, the Bluetooth master node can perform fusion positioning processing according to the first intensity and the second intensity to determine the position of the mobile terminal, and then whether the Bluetooth key of the vehicle is enabled or not is controlled according to the position of the mobile terminal.
The second strength is determined by the bluetooth slave node, so in one 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 obtains the second strength to perform the step of fusion positioning processing.
Accordingly, after the bluetooth master node receives the second intensity sent by the bluetooth slave node, the bluetooth master node may perform fusion positioning processing 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 situation that the mobile terminal is located away from the vehicle, such as an inside, an outside, a distance from the vehicle, and the like of the vehicle.
In one possible implementation manner, after the bluetooth master node outputs the position of the mobile terminal, the position of the mobile terminal may also be sent to a body controller of the vehicle, so as to control whether the bluetooth key of the vehicle is enabled or not according to the received position of the mobile terminal through the body controller.
Generally, the function of a bluetooth key of a vehicle is used for realizing 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 present embodiments provide the following examples:
if the position of the mobile terminal indicates that the mobile terminal is outside the vehicle and within a preset distance range of the vehicle for opening the vehicle door by Bluetooth, the position of the mobile terminal can meet the condition that the vehicle door is opened by Bluetooth, and the vehicle body controller can control the Bluetooth key to enable the vehicle to open the vehicle door.
It can be understood that the position of the mobile terminal can reflect the situation of the position of the mobile terminal from the vehicle, and in different situations, the enabling situation of the bluetooth key can be controlled differently, specifically, the bluetooth key can be controlled according to the actual situation, which is not limited in the present application.
According to the technical scheme, when the mobile terminal is in the preset distance range of the vehicle, the mobile terminal is indicated to enter the range of using the Bluetooth key function of the vehicle through Bluetooth, and at the moment, the mobile terminal and the Bluetooth master node of the vehicle can automatically establish Bluetooth connection according to the preset key; and in the process of carrying out channel following on the communication channel of the Bluetooth master node and the mobile terminal according to the MAC address of the Bluetooth master node and the MAC address of the Bluetooth master node, the communication link data is sent to the Bluetooth master node through the mobile terminal, the communication link data comprises Bluetooth radio frequency signals broadcast by the mobile terminal, so that the Bluetooth master node analyzes and determines the first strength of the Bluetooth radio frequency signals broadcast by the mobile terminal, and in the process of carrying out channel following on the communication channel of the Bluetooth master node and the mobile terminal through the Bluetooth slave node according to the MAC address of the Bluetooth master node and the communication rule, the communication link data can be actively acquired through the Bluetooth slave node, and then the acquired communication link data is analyzed and determined through the Bluetooth slave node, so that the second strength of the Bluetooth radio frequency signals broadcast by the mobile terminal can reflect the situation of the mobile terminal from the vehicle. Based on this, a mode that carries out the channel through bluetooth slave node and follow is provided, realizes that bluetooth slave node is to the acquisition of first intensity, can fuse the HID technique in the vehicle that is configured with a plurality of bluetooth nodes well through this kind of mode, realizes bluetooth and links soon, improves the user and experiences 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, taking a mobile phone as an example of a mobile terminal, specifically: the Bluetooth slave nodes can comprise a plurality of Bluetooth slave nodes, and the Bluetooth slave nodes are always in Bluetooth scanning sniffing of the Bluetooth master nodes; after the mobile phone and the Bluetooth master node establish Bluetooth connection 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 and the Bluetooth master node establish Bluetooth connection again, the Bluetooth slave node captures sniffing time and communication frequency, and then carries out channel following and obtains a second-strength RSSI, and reports the RSSI to the Bluetooth master node based on an internal private network; meanwhile, the Bluetooth master node can measure and determine the first intensity RSSI, further, the Bluetooth master node can calculate the position of the mobile phone by fusing the RSSI value of the first intensity with the RSSI value of the second intensity, 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, and the PEPS function of the vehicle can be executed. It should be noted that the bluetooth slave node includes a plurality of bluetooth slave nodes, and accordingly, the second strength may include a plurality of RSSI values. Typically, the number of bluetooth master nodes is 1, the number of bluetooth slave nodes is 3-5, and correspondingly, the first strength may include one RSSI value, and the second strength may include 3-5 RSSI values (specifically, the number of bluetooth slave nodes is consistent).
It is to be understood that this corresponds substantially to the method embodiments, so that reference is made to the partial description of the method embodiments for relevant reasons.
Fig. 3 is a block diagram of a control device of a bluetooth key according to an embodiment of the present application, where the device 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 establish a bluetooth connection between a mobile terminal and a bluetooth master node of a vehicle according to a preset key when the mobile terminal is within a preset distance range of the vehicle;
the sending unit 302 sends communication link data 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 acquiring unit 303 is configured to acquire, by using the bluetooth slave node of the vehicle, the communication link data in a process of performing channel following on a communication channel between the bluetooth master node and the mobile terminal according to the MAC address and the communication rule by using the bluetooth slave node of the vehicle;
the parsing unit 304 is configured to parse the communication link data through the bluetooth master node, determine a first strength of a bluetooth radio frequency signal broadcasted by the mobile terminal, parse 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 determine, by using the bluetooth master node, a location of the mobile terminal by performing fusion positioning processing according to the first strength and the second strength;
the control unit 306 is configured to control whether the bluetooth key of the vehicle is enabled according to the position.
In a 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 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, when the mobile terminal and the bluetooth master node establish a bluetooth connection, a connection instruction to the bluetooth master node through the mobile terminal according to the MAC address; the connection instruction is generated according to a Bluetooth protocol of the mobile terminal and the Bluetooth master node;
and the determining unit is further configured to, in the process of sniffing by the bluetooth scanning, parse the connection instruction by the bluetooth slave node when sniffing the connection instruction by the bluetooth slave node, and determine the communication rule so that the bluetooth slave node performs channel following.
In a possible implementation, the determining unit is further configured to:
analyzing the connection instruction through the Bluetooth slave node to obtain a parameter value of a transmission window size WinSize, a transmission 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 the 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 by the Bluetooth slave node according to the ChM and the Hop parameter values;
and determining the communication rule according to the sniffing time of the Bluetooth radio frequency signal and the channel frequency hopping rule.
In one possible implementation, the preset key is generated by:
and when the mobile terminal and the Bluetooth master node are connected for the first time, after the Bluetooth master node and the mobile terminal are successfully paired, the preset secret key is generated through the Bluetooth master node.
In a possible implementation, 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;
transmitting the preset key to the Bluetooth slave node through the Bluetooth master node based on the internal private network;
the parsing unit is further configured to decrypt the communication link data according to the preset key through the bluetooth slave node, and determine the second strength.
In a possible implementation manner, the sending unit is further configured to send, based on the internal private network, the second strength to the bluetooth master node through the bluetooth slave node.
In a possible implementation manner, the sending unit is further configured to send, through the bluetooth master node, the location of the mobile terminal to a body controller of the vehicle;
the control unit is also used for controlling whether the Bluetooth key is enabled or not according to the position through the vehicle body controller.
In one possible implementation manner, the control unit is further configured to control, by the vehicle body controller, the bluetooth key to enable to open the door of the vehicle if the location indicates that the mobile terminal is outside the vehicle and within a preset distance range of the bluetooth door of the vehicle.
According to the technical scheme, when the mobile terminal is in the preset distance range of the vehicle, the mobile terminal is indicated to enter the range of using the Bluetooth key function of the vehicle through Bluetooth, and at the moment, the mobile terminal and the Bluetooth master node of the vehicle can automatically establish Bluetooth connection according to the preset key; and in the process of carrying out channel following on the communication channel of the Bluetooth master node and the mobile terminal according to the MAC address of the Bluetooth master node and the MAC address of the Bluetooth master node, the communication link data is sent to the Bluetooth master node through the mobile terminal, the communication link data comprises Bluetooth radio frequency signals broadcast by the mobile terminal, so that the Bluetooth master node analyzes and determines the first strength of the Bluetooth radio frequency signals broadcast by the mobile terminal, and in the process of carrying out channel following on the communication channel of the Bluetooth master node and the mobile terminal through the Bluetooth slave node according to the MAC address of the Bluetooth master node and the communication rule, the communication link data can be actively acquired through the Bluetooth slave node, and then the acquired communication link data is analyzed and determined through the Bluetooth slave node, so that the second strength of the Bluetooth radio frequency signals broadcast by the mobile terminal can reflect the situation of the mobile terminal from the vehicle. Based on this, a mode that carries out the channel through bluetooth slave node and follow is provided, realizes that bluetooth slave node is to the acquisition of first intensity, can fuse the HID technique in the vehicle that is configured with a plurality of bluetooth nodes well through this kind of mode, realizes bluetooth and links soon, improves the user and experiences the bluetooth key function of vehicle.
For the device embodiments, reference is made to the description of the method embodiments for the relevant points, since they essentially correspond to the method embodiments. The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
It is noted that 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. Moreover, 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 phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing describes in detail a control method and apparatus for a bluetooth key provided in the embodiments of the present application, and specific examples are applied herein to illustrate principles and embodiments of the present application, where the foregoing description of the embodiments is only for aiding in understanding the method of the present application. Also, as will be apparent to one of ordinary skill in the art, there are variations in the specific embodiments and the scope of the application of the method according to the present application.
In view of the foregoing, the disclosure should not be construed as limiting the application, and any changes or substitutions that would be easily recognized by those skilled in the art within the technical scope of the disclosure of the present application are intended to be encompassed within the scope of the present application. Further combinations of the implementations provided in the above aspects may be made to provide further implementations.
Claims (10)
1. A method for controlling a bluetooth key, the method comprising:
when the mobile terminal is in a preset distance range of a vehicle, the mobile terminal and a Bluetooth master 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 master node and the MAC address of the Bluetooth master node, sending communication link data to the Bluetooth master node through the mobile terminal;
acquiring the communication link data through the Bluetooth slave node in the process of carrying out channel following on the communication channels of the Bluetooth master node and the mobile terminal according to the MAC address and the communication rule through the Bluetooth slave node of the vehicle;
analyzing the communication link data through the Bluetooth master node, determining the first intensity of a Bluetooth radio frequency signal broadcast by the mobile terminal, and analyzing the communication link data through the Bluetooth slave node, determining the second intensity of the Bluetooth radio frequency signal; the first intensity and the second intensity are used for reflecting the situation that the mobile terminal is away from the vehicle;
the Bluetooth master node performs fusion positioning processing according to the first intensity and the second intensity to determine the position of the mobile terminal;
and controlling whether the Bluetooth key of the vehicle is enabled according to the position.
2. The method of claim 1, wherein before the mobile terminal establishes a bluetooth connection with a bluetooth master node of a 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 sniffing on the Bluetooth master node according to the MAC address.
3. The method of claim 2, wherein prior to said transmitting communication link data to said bluetooth master node by said mobile terminal in accordance with a communication rule between said mobile terminal and said bluetooth master node and a MAC address of said bluetooth master node, said method further comprises:
when the mobile terminal and the Bluetooth master node establish Bluetooth connection, a connection instruction is sent to the Bluetooth master node through the mobile terminal according to the MAC address; the connection instruction is generated according to a Bluetooth protocol of the mobile terminal and the Bluetooth master node;
and in the process of Bluetooth scanning sniffing, when the Bluetooth slave node sniffs the connection instruction, the Bluetooth slave node analyzes the connection instruction and determines the communication rule so that the Bluetooth slave node can carry out channel following.
4. A method according to claim 3, wherein said parsing said connection instruction by said bluetooth slave node to determine said communication rule comprises:
analyzing the connection instruction through the Bluetooth slave node to obtain a parameter value of a transmission window size WinSize, a transmission 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 the 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 by the Bluetooth slave node according to the ChM and the Hop parameter values;
and determining the communication rule according to the sniffing time 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:
and when the mobile terminal and the Bluetooth master node are connected for the first time, after the Bluetooth master node and the mobile terminal are successfully paired, the preset secret key is generated through the Bluetooth master node.
6. The method of claim 5, wherein the method further comprises:
the Bluetooth master node and the Bluetooth slave node form an internal private network through a CAN bus of the vehicle;
transmitting the preset key to the Bluetooth slave node through the Bluetooth master node based on the internal private network;
the analyzing the communication link data by the bluetooth slave node, determining the second intensity of the bluetooth radio frequency signal, includes:
and decrypting the communication link data according to the preset key through the Bluetooth slave node to determine the second intensity.
7. The method of claim 6, wherein prior to said fusing the location processing by the bluetooth master node according to the first strength and the second strength, the method further comprises:
and transmitting the second intensity to the Bluetooth master node through the Bluetooth slave node based on the internal private network.
8. The method according to any one of claims 1-7, wherein after said determining, by the bluetooth master node, a location of the mobile terminal according to the first strength and the second strength, the method further comprises:
transmitting the position of the mobile terminal to a 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 vehicle body controller.
9. The method of claim 8, wherein said controlling, by the body controller, whether the bluetooth key is enabled based on the position comprises:
and if the position indicates that the mobile terminal is positioned outside the vehicle and within a preset distance range of the Bluetooth door opening of the vehicle, controlling the Bluetooth key to enable through the vehicle body controller so as to open the door of the vehicle.
10. The control device of the Bluetooth key is characterized by comprising a connecting unit, a sending unit, an acquisition 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 master node of the vehicle according to a preset secret key when the mobile terminal is in a preset distance range of the vehicle;
the sending unit sends communication link data 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 acquiring unit is configured to acquire, by using the bluetooth slave node of the vehicle, the communication link data in a process of performing channel following on a communication channel between the bluetooth master node and the mobile terminal according to the MAC address and the communication rule by using the bluetooth slave node of the vehicle;
the analyzing unit is configured to analyze the communication link data through the bluetooth master node, determine a first intensity of a bluetooth radio frequency signal broadcasted by the mobile terminal, analyze the communication link data through the bluetooth slave node, and determine a second intensity of the bluetooth radio frequency signal; the first intensity and the second intensity are used for reflecting the situation that the mobile terminal is away from the vehicle;
the determining unit is used for determining the position of the mobile terminal through the Bluetooth master node according to the first intensity and the second intensity;
the control unit is used for controlling whether the Bluetooth key of the vehicle is enabled 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 CN115471936A (en) | 2022-12-13 |
CN115471936B true 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 |
---|---|
CN115471936A (en) | 2022-12-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109844823B (en) | PEPS portable device positioning | |
CN109844822B (en) | Passive entry/passive start system and method for a vehicle | |
CN109417758B (en) | Bluetooth connection method and terminal | |
EP2405622B1 (en) | Device communication | |
US10064052B2 (en) | Methods for authenticating device-to-device communication | |
US9438332B2 (en) | Low cost proximity pairing mechanism in wireless personal area networks | |
CN109618392B (en) | Network sharing method, device, equipment and computer readable storage medium | |
WO2015143847A1 (en) | Authentication and authorization method and apparatus for wireless network and program | |
JP2015029197A (en) | Internet connection system, mobile terminal having data relay function, server device, connection method for connecting wireless lan terminal to internet, and computer program executed by computer having data relay function | |
JP3559786B2 (en) | Communication method in network | |
CN115471936B (en) | Bluetooth key control method and device | |
CN111615143A (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 | |
CN111918252A (en) | Method, system and device for accessing intelligent equipment to wireless local area network | |
CN111031496A (en) | Switching device and lamp device pairing method and system based on SIG MESH network | |
US20240104988A1 (en) | Method and system for a changing code learning transmitter | |
CN109981420A (en) | A kind of smart machine matches network method and smart machine | |
CN107959933B (en) | Code matching method, device, equipment and storage medium for PLC (programmable logic controller) equipment in WiFi (wireless fidelity) wireless network | |
US12127282B2 (en) | Method and system for data transmission, chip, electronic device, and computer readable storage medium | |
US20230010914A1 (en) | Method and system for data transmission, chip, electronic device, and computer readable storage medium | |
CN116916280A (en) | Communication method, device and communication system of vehicle-mounted device and mobile phone | |
CN117202084A (en) | Digital key positioning method, device, equipment, medium and vehicle | |
CN115412887A (en) | Network distribution method, device, system, 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 |