CN111683336A - Method and equipment for positioning digital key of vehicle - Google Patents

Method and equipment for positioning digital key of vehicle Download PDF

Info

Publication number
CN111683336A
CN111683336A CN202010495507.4A CN202010495507A CN111683336A CN 111683336 A CN111683336 A CN 111683336A CN 202010495507 A CN202010495507 A CN 202010495507A CN 111683336 A CN111683336 A CN 111683336A
Authority
CN
China
Prior art keywords
mobile terminal
target mobile
module
antenna module
pairing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010495507.4A
Other languages
Chinese (zh)
Other versions
CN111683336B (en
Inventor
楼建青
余清园
宗士为
杨沁
冯刚
邹榕榕
徐有杰
吴向阳
沈志伟
谢雪云
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ecarx Hubei Tech Co Ltd
Original Assignee
Hubei Ecarx Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hubei Ecarx Technology Co Ltd filed Critical Hubei Ecarx Technology Co Ltd
Priority to CN202010495507.4A priority Critical patent/CN111683336B/en
Publication of CN111683336A publication Critical patent/CN111683336A/en
Application granted granted Critical
Publication of CN111683336B publication Critical patent/CN111683336B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/023Services making use of location information using mutual or relative location information between multiple location based services [LBS] targets or of distance thresholds
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • H04W4/40Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W64/00Locating users or terminals or network equipment for network management purposes, e.g. mobility management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a positioning method of a digital key of a vehicle, electronic equipment and a computer readable storage medium. In the method, after the wireless positioning module is matched with the target mobile terminal connected for the first time, the matching parameters of the target mobile terminal are synchronized to each antenna module, so that each antenna module has the same effect of being matched with the target mobile terminal, and each antenna module can identify the target mobile terminal in a targeted manner according to the matching parameters of the target mobile terminal so as to quickly acquire data required by positioning the target mobile terminal, thereby avoiding the interference of other peripheral mobile devices. The scheme of the invention simplifies the complicated matching process of the antenna module and the target mobile terminal in the using process of the digital key, improves the identification efficiency of each antenna module to the target mobile terminal, and further improves the positioning efficiency of the target mobile terminal.

Description

Method and equipment for positioning digital key of vehicle
Technical Field
The invention relates to the technical field of automotive electronics, in particular to a positioning method of a digital key of a vehicle, electronic equipment and a computer readable storage medium.
Background
With the rapid popularization of mobile internet technology and mobile terminals, the intelligent networking of vehicles and the digitization of vehicle keys are the development trends in the automotive electronics field. The digital key has the advantages that the number is not limited, keys can be conveniently exchanged among different users, and multi-user vehicle using experience under multiple scenes and multiple channels can be realized. In order to make the digital key have the same functional authority and use experience as the physical key, the communication safety between the mobile terminal and the wireless positioning module of the vehicle and the accurate positioning of the mobile terminal relative to the wireless positioning module need to be ensured. Solutions for locating the position of a mobile terminal by means of a main radio module and a plurality of antenna modules cooperate with each other have appeared in the prior art. However, in the prior art, the main wireless module and the plurality of antenna modules need to be paired with the mobile terminal respectively to identify the mobile terminal, which results in a cumbersome pairing process and low positioning efficiency.
Disclosure of Invention
In view of the above, the present invention has been made to provide a method of positioning a digital key of a vehicle, an electronic device, and a computer-readable storage medium that overcome or at least partially solve the above problems.
An object of the present invention is to provide a method for locating a digital key of a vehicle, which can simplify pairing operation between an antenna module of the vehicle and a mobile terminal, improve identification efficiency of the antenna module to the mobile terminal, and further improve location efficiency.
In particular, according to an aspect of the embodiments of the present invention, there is provided a method for positioning a digital key of a vehicle, applied to a wireless positioning module of the vehicle, the method comprising:
after establishing connection with a mobile terminal, receiving identity authentication information of the mobile terminal to perform identity authentication on the mobile terminal, wherein the identity authentication information carries an identifier of the mobile terminal;
if the mobile terminal passes the identity authentication, determining that the mobile terminal is a target mobile terminal loaded with a digital key;
judging whether the target mobile terminal establishes connection with the wireless positioning module for the first time;
if so, pairing with the target mobile terminal;
after the pairing with the target mobile terminal is successful, synchronizing the identification and the pairing parameters of the target mobile terminal to each antenna module at different positions of a vehicle, so that each antenna module establishes and stores the corresponding relation between the identification and the pairing parameters of the target mobile terminal, and identifying the target mobile terminal according to the pairing parameters of the target mobile terminal;
periodically generating verification data and sending the verification data to the target mobile terminal so that the target mobile terminal broadcasts the verification data after receiving the verification data;
receiving a signal strength indicating value sent by each antenna module, wherein the signal strength indicating value is a signal strength indicating value of the verification data broadcasted by the target mobile terminal and received by each antenna module;
and determining the position of the target mobile terminal according to the positions of the antenna modules and the signal strength indicating value.
Optionally, after determining whether the target mobile terminal establishes a connection with the wireless location module for the first time, the method further includes:
if not, the identification of the target mobile terminal is sent to each antenna module, so that each antenna module obtains the pairing parameters of the target mobile terminal according to the identification of the target mobile terminal and the corresponding relation between the identification of the target mobile terminal and the pairing parameters, and identifies the target mobile terminal according to the pairing parameters of the target mobile terminal.
Optionally, the pairing parameter comprises an identity resolution key;
the identifying the target mobile terminal according to the pairing parameter of the target mobile terminal includes:
acquiring an equipment address of a mobile terminal;
judging whether the equipment address is an analyzable private address or not, and if so, extracting a prand random number in the equipment address;
carrying out hash operation on the identity analysis key and the prand random number to obtain a hash value, and obtaining a reference equipment address according to the hash value and the prand random number;
and comparing whether the equipment address of the mobile terminal is the same as the reference equipment address or not, and if so, determining that the mobile terminal is a target mobile terminal.
Optionally, while receiving the signal strength indication value sent by each antenna module, receiving the verification data sent by each antenna module after receiving the verification data broadcast by the target mobile terminal;
before determining the location of the target mobile terminal according to the location of each of the antenna modules and the signal strength indication value, the method further includes:
judging whether the time difference between the moment of receiving the verification data from each antenna module and the moment of sending the verification data to the target mobile terminal is smaller than a preset threshold value or not;
and if so, executing the step of determining the position of the target mobile terminal according to the positions of the antenna modules and the signal strength indicating values.
Optionally, after determining the location of the target mobile terminal, the method further includes:
transmitting the position of the target mobile terminal to a central electronic module of a vehicle;
receiving a judgment result returned by the central electronic module and used for judging whether the target mobile terminal is in a keyless triggering area or not based on the position of the target mobile terminal;
and sending the judgment result to the target mobile terminal.
Optionally, the keyless activation zone comprises a keyless entry zone and/or a keyless activation zone.
According to another aspect of the embodiments of the present invention, there is also provided an electronic device, including:
a processor; and
a memory storing computer program code;
the computer program code, when executed by the processor, causes the electronic device to perform a method of locating a digital key of a vehicle according to any of the above.
According to still another aspect of embodiments of the present invention, there is also provided a computer-readable storage medium storing computer program code which, when run on an electronic device, causes the electronic device to execute the method for locating a digital key of a vehicle according to any one of the above.
According to another aspect of the embodiments of the present invention, there is also provided a method for positioning a digital key of a vehicle, applied to antenna modules at different positions of the vehicle, the method including:
receiving identification information of a target mobile terminal sent by a wireless positioning module of a vehicle, wherein the identification information comprises an identifier of the target mobile terminal or the identifier and pairing parameters of the target mobile terminal;
if the identification information of the target mobile terminal comprises the identification and the pairing parameter of the target mobile terminal, establishing and storing the corresponding relation between the identification and the pairing parameter of the target mobile terminal;
identifying the target mobile terminal according to the pairing parameters of the target mobile terminal;
periodically receiving the verification data broadcast by the target mobile terminal after receiving the verification data sent by the wireless positioning module;
acquiring a signal strength indicating value of the received verification data;
and sending the signal strength indicated value to the wireless positioning module so that the wireless positioning module can determine the position of the target mobile terminal according to the position of each antenna module and the signal strength indicated value.
According to another aspect of the embodiments of the present invention, there is also provided a method for positioning a digital key of a vehicle, applied to a mobile terminal, the method including:
after establishing connection with a wireless positioning module of a vehicle, sending self identity authentication information to the wireless positioning module for identity authentication, wherein the identity authentication information carries an identifier of the mobile terminal;
after passing the identity authentication, judging whether the pairing with the wireless positioning module is completed;
if not, pairing with the wireless positioning module so that the wireless positioning module synchronizes the identifier and the pairing parameters of the mobile terminal to each antenna module at different positions of the vehicle after pairing is completed, so that each antenna module identifies the mobile terminal;
periodically receiving verification data sent by the wireless positioning module;
and broadcasting the verification data to each antenna module so that each antenna module acquires a signal strength indicating value of the received verification data and sends the signal strength indicating value to the wireless positioning module to determine the position of the mobile terminal.
In the method for positioning the digital key of the vehicle, provided by the embodiment of the invention, the wireless positioning module synchronizes the pairing parameters of the target mobile terminal to each antenna module after completing pairing with the target mobile terminal connected for the first time, so that each antenna module has the same effect of pairing with the target mobile terminal, and each antenna module can identify the target mobile terminal in a targeted manner according to the pairing parameters of the target mobile terminal so as to quickly acquire data required by positioning the target mobile terminal, thereby avoiding interference of other peripheral mobile devices. The scheme of the invention simplifies the complicated matching process of the antenna module and the target mobile terminal in the using process of the digital key, improves the identification efficiency of each antenna module to the target mobile terminal, and further improves the positioning efficiency of the target mobile terminal.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
The above and other objects, advantages and features of the present invention will become more apparent to those skilled in the art from the following detailed description of specific embodiments thereof, taken in conjunction with the accompanying drawings.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 illustrates a layout diagram of a digital key system of a vehicle according to an embodiment of the present invention;
FIG. 2 illustrates a flow chart of a method of locating a digital key of a vehicle according to an embodiment of the present invention;
FIG. 3 shows a flowchart of a method of locating a digital key of a vehicle according to another embodiment of the present invention;
FIG. 4 is a flowchart illustrating a method of locating a digital key of a vehicle according to yet another embodiment of the present invention;
fig. 5 is a flowchart illustrating a method of locating a digital key of a vehicle according to still another embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
In order to solve the above technical problems, an embodiment of the present invention provides a method for positioning a digital key of a vehicle.
Before describing the method for positioning a digital key of a vehicle according to the present invention, a digital key system of a vehicle will be described. Fig. 1 shows a layout diagram of a digital key system of a vehicle according to an embodiment of the present invention. Referring to fig. 1, a digital key system of a vehicle may generally include a wireless location module, a plurality of antenna modules, and a mobile terminal. The wireless positioning module is disposed inside a Vehicle, for example, In a Vehicle (In-Vehicle Infotainment, IVI or In-Vehicle). A plurality of antenna modules are arranged at different positions on the vehicle as needed, and each antenna module is connected with the wireless positioning module through a transmission line (on-vehicle bus such as CAN bus, LIN bus, or the like). The number of the antenna modules can be set according to the positioning precision requirement of the vehicle on the mobile terminal, and can be 2-9, for example. The arrangement position of the antenna module can be flexibly configured according to the requirements of the digital key system.
The mobile terminal is uploaded with the digital key, and specifically, the digital key can be loaded by downloading the corresponding digital key APP to the mobile terminal. The mobile terminal may be a smart phone, a wearable smart device (such as a smart watch, a bracelet), and the like. It should be noted that the number of antenna modules and the positions of the antenna modules and the wireless positioning module shown in fig. 1 are only illustrative and do not limit the present invention. In addition, although not shown in fig. 1, the digital key system may further include a security Module, a cloud service, and a central electronic Module (also referred to as a Body Control Module, BCM). Wherein the central electronic module may be an existing module of the vehicle.
The positioning method of the digital key of the vehicle provided by the embodiment of the invention is realized based on the digital key system.
Fig. 2 is a flowchart illustrating a method for locating a digital key of a vehicle according to an embodiment of the present invention, which is applied to a wireless location module of the vehicle. Referring to fig. 2, the method may include at least the following steps S202 to S216.
Step S202, after the connection with the mobile terminal is established, the identity authentication information of the mobile terminal is received to perform identity authentication on the mobile terminal, and the identity authentication information carries the identification of the mobile terminal.
And step S204, if the mobile terminal passes the identity authentication, determining that the mobile terminal is a target mobile terminal loaded with the digital key.
Step S206, whether the target mobile terminal establishes connection with the wireless positioning module for the first time is judged. If yes, go on to step S208.
And step S208, pairing with the target mobile terminal.
Step S210, after the pairing with the target mobile terminal is successful, synchronizing the identification and the pairing parameters of the target mobile terminal to each antenna module at different positions of the vehicle, so that each antenna module establishes and stores the corresponding relation between the identification and the pairing parameters of the target mobile terminal, and identifies the target mobile terminal according to the pairing parameters of the target mobile terminal.
Step S212, periodically generating verification data and sending the verification data to the target mobile terminal, so that the target mobile terminal broadcasts the verification data after receiving the verification data.
Step S214, receiving the signal strength indicating value sent by each antenna module, where the signal strength indicating value is the signal strength indicating value of the verification data broadcasted by the target mobile terminal and received by each antenna module.
Step S216, determining the position of the target mobile terminal according to the position of each antenna module and the signal strength indicated value.
In the method for positioning the digital key of the vehicle, provided by the embodiment of the invention, after the wireless positioning module is matched with the target mobile terminal, the matching parameters of the target mobile terminal are synchronized to each antenna module, so that each antenna module has the same effect of being matched with the target mobile terminal, each antenna module can specifically identify the target mobile terminal according to the matching parameters of the target mobile terminal so as to quickly acquire data required by positioning the target mobile terminal, the interference of other peripheral mobile devices is avoided, the complicated matching process of each antenna module and the target mobile terminal in the using process of the digital key can be simplified, the identification efficiency of each antenna module on the target mobile terminal is improved, and the positioning efficiency on the target mobile terminal is further improved.
In step S202, the identity authentication of the mobile terminal may be completed through bidirectional identity authentication between the wireless positioning module and the mobile terminal. In the bidirectional identity authentication process, the identities of both the wireless positioning module and the mobile terminal can be realized through a Public Key Infrastructure (PKI) system, and the authenticated certificate is issued and managed uniformly by a cloud service of the digital Key system. The authentication algorithm of both the wireless positioning module and the mobile terminal can adopt an ECDH (Elliptic Curve Diffie-Hellman key Exchange) session negotiation algorithm, thereby effectively ensuring the communication security between the mobile terminal and the wireless positioning module. The authentication principle of the PKI system and the ECDH algorithm is well known to those skilled in the art, and is not described herein.
The identifier of the mobile terminal is used to distinguish different mobile terminals, and may be a unique identifier of the mobile terminal (e.g., a device ID), or may be identifier information of the mobile terminal (e.g., serial numbers 1, 2, 3, or characters A, B, C, etc.) agreed in advance in the digital key system.
In step S206, after the mobile terminal is determined to be the target mobile terminal with the digital key, it is determined whether the target mobile terminal is connected to the wireless positioning module for the first time. Those skilled in the art will recognize that pairing of two communicating parties generally only needs to be performed when the two communicating parties are connected for the first time, and after pairing of the two communicating parties is successful, pairing does not need to be performed when the two communicating parties are connected again for communication. Thus, step S206 determines whether the pairing operation between the two parties is required by determining whether the mobile terminal is connected to the wireless positioning module for the first time. The method for determining whether to connect for the first time is well known to those skilled in the art and will not be described herein.
If the mobile terminal is determined to be connected to the wireless positioning module for the first time, step S208 is executed to pair with the target mobile terminal. Specifically, the wireless positioning module and the mobile terminal may be paired by using a numerical comparison (NumericComparison) method. In the pairing process, the wireless positioning module and the mobile terminal exchange the prand random number and pairing parameters including an Identity Resolution Key (IRK) and the like, after the exchange, whether the prand and the pairing parameters of the two parties are matched is judged, if so, the two parties are successfully paired, and the pairing of the wireless positioning module and the mobile terminal is completed.
After the step S208 of performing pairing with the target mobile terminal is completed, the step S210 is continuously performed, and the identifier and the pairing parameters of the target mobile terminal are sent to each antenna module at different positions, so that each antenna module establishes and stores the corresponding relationship between the identifier and the pairing parameters of the target mobile terminal, and synchronization of the pairing parameters of the mobile terminal in each antenna module is realized. Moreover, each antenna module can identify the target mobile terminal according to the pairing parameters of the target mobile terminal, so that each antenna module can accurately receive the verification data broadcast by the target mobile terminal subsequently, and the interference of other irrelevant equipment is avoided. The correspondence between the identifier of the target mobile terminal and the pairing parameter may be stored in a memory of the car machine, for example.
In an embodiment, after step S206 and before step S212 is executed, if it is determined that the target mobile terminal is not connected to the wireless positioning module for the first time, the wireless positioning module sends the identifier of the target mobile terminal to each antenna module, so that each antenna module obtains the pairing parameter of the target mobile terminal according to the identifier of the target mobile terminal and the corresponding relationship between the identifier of the target mobile terminal and the pairing parameter, and identifies the target mobile terminal according to the pairing parameter of the target mobile terminal.
Because the wireless positioning module synchronizes the identification and the pairing parameters of the target mobile terminal to each antenna module after the target mobile terminal is connected with the wireless positioning module for the first time and the pairing is completed, so that each antenna module establishes and stores the corresponding relationship between the identification and the pairing parameters of the target mobile terminal, and therefore, in the case where the target mobile terminal is not first connected to the wireless location module (e.g., the target mobile terminal is connected to the wireless location module for the second time), after the target mobile terminal passes the identity authentication, the wireless positioning module only needs to send the identification of the target mobile terminal to each antenna module, and each antenna module can receive the identification of the target mobile terminal, and matching the stored corresponding relation between the identification of the target mobile terminal and the matching parameters to obtain the matching parameters of the target mobile terminal, and further identifying the target mobile terminal according to the matching parameters of the target mobile terminal.
Further, under the condition that the pairing parameters include an identity resolution key, after the antenna modules acquire the pairing parameters of the target mobile terminal, the target mobile terminal can be identified according to the pairing parameters of the target mobile terminal in the following manner:
first, a device address of the mobile terminal is acquired. Specifically, each antenna module may obtain the device address of the surrounding mobile terminal in a scanning manner.
Then, whether the acquired device address is an analyzable private address (Resolvable private address) is judged, and if yes, a prand random number in the device address is extracted.
The resolvable private address is a random equipment address of the mobile terminal, and the safety of communication can be improved. The resolvable private address is generated by a prand random number and an identity resolution key, and comprises two parts, wherein the upper 24 bytes are the prand random number part, the highest two bytes are '01', and the lower 24 bytes are hash values obtained by carrying out hash operation on the prand random number and the identity resolution key (the hash is ah (prand, IRK)). If the obtained device address is the beginning of 01 and meets the structure containing the prand random number and the hash value, the device address is judged to be an analyzable private address, and the prand random number is extracted from the device address.
And then, carrying out hash operation on the acquired identity analysis key of the target mobile terminal and the extracted prand random number to obtain a hash value (hash), and obtaining a reference device address according to the obtained hash value (hash) and the prand random number. Specifically, a hash | | | prand operation is performed on the obtained hash value (hash) and the prand random number to obtain a reference device address.
And finally, comparing whether the acquired equipment address of the mobile terminal is the same as the reference equipment address or not, and if so, determining that the mobile terminal is the target mobile terminal.
In the above step S212, the verification data may be a random number. And the wireless positioning module periodically sends the encrypted verification data to the target mobile terminal through a wireless connection channel with the target mobile terminal.
And after receiving the encrypted verification data from the wireless positioning module, the target mobile terminal decrypts the verification data and broadcasts and sends the verification data. After identifying the target mobile terminal, each antenna module receives the verification data broadcast by the target mobile terminal, analyzes the received verification data, obtains a Received Signal Strength Indication (RSSI) value of the received verification data, and sends the RSSI value to the wireless positioning module.
Furthermore, the wireless positioning module receives the signal strength indicating values transmitted by the antenna modules in step S214, and continues to execute step S216, and calculates the position of the target mobile terminal according to the positions of the antenna modules and the signal strength indicating values. Those skilled in the art will recognize that, since the operation of generating and transmitting the verification data by the wireless location module is performed periodically, the operation of determining the location of the target mobile terminal by the wireless location module according to the location of each antenna module and the signal strength indication value is also performed periodically.
Specifically, in step S216, the distance between the target mobile terminal and each antenna module may be calculated according to the signal strength indication value of each antenna module, and then the position of the target mobile terminal may be calculated and determined according to the distance between the target mobile terminal and each antenna module and the position of each antenna module. The position of each antenna module in this context may be a relative position with an origin at any position on the vehicle (e.g., a driver seat position, a front end midpoint of a vehicle head, etc.). Accordingly, the calculated and determined position of the target mobile terminal may also be a relative position with respect to the origin.
In addition, because each antenna module is located at a different position, the time for each antenna module to receive the verification data broadcast by the target mobile terminal is different, and further, the time for the wireless positioning module to receive the signal strength indication value from each antenna module is also different. Therefore, in one period, after receiving the signal strength indication value of each antenna module, the wireless positioning module may locally cache the received signal strength indication value of each antenna module. And finally, after receiving the signal strength indicated values of all the antenna modules, calculating the position of the target mobile terminal.
By periodically calculating the position of the target mobile terminal, the target mobile terminal can be located in real time during the movement of the user holding the target mobile terminal (for example, during the movement of the user towards the vehicle).
In one embodiment, each antenna module may send the analyzed verification data received from the target mobile terminal to the wireless positioning module while sending the signal strength indication value to the wireless positioning module. Furthermore, the wireless positioning module receives the signal strength indicating value transmitted by each antenna module and also receives the verification data transmitted by each antenna module. In this case, before performing step S216, the wireless positioning module may further determine whether a time difference between a time when the verification data is received from each antenna module and a time when the verification data is transmitted to the target mobile terminal is smaller than a preset threshold, and if so, continue to perform step S216. In the positioning process of the target mobile terminal, a certain time delay exists when the wireless positioning module sends the verification data to the target mobile terminal and receives the verification data transmitted by the target mobile terminal and each antenna module. If the time delay is too large, the position of the target mobile terminal may have changed during the delay, resulting in an inaccurate calculated position of the target mobile terminal. Therefore, whether the time difference between the moment when the wireless positioning module receives the verification data from each antenna module and the moment when the wireless positioning module sends the verification data to the target mobile terminal is smaller than a preset threshold value or not is judged, if yes, the time delay is within an acceptable range, and the received signal strength indicated value is valid data and can be used for calculating the position of the target mobile terminal. If not, the time delay is beyond the acceptable range, and the received signal strength indicating value is invalid data. The preset threshold may be set according to the positioning accuracy requirement, which is not specifically limited herein.
In some embodiments, in the positioning method of the present invention, communication modes such as bluetooth, WiFi, or Zigbee may be adopted between the wireless positioning module and the mobile terminal, and between each antenna module and the mobile terminal.
Preferably, a bluetooth communication mode is adopted between the wireless positioning module and the mobile terminal and between each antenna module and the mobile terminal. Because the popularity of the bluetooth technology in the mobile terminal is very high (for example, the popularity of the bluetooth technology in the mobile phone has reached 100%), and the bluetooth technology has the characteristics of maturity, stability and low power consumption, the scheme for realizing the wireless positioning of the digital key based on the bluetooth technology has the advantages of wide adaptability, high stability and low power consumption. In this case, the wireless positioning module may be a main bluetooth module formed by a bluetooth chip and an MCU (micro controller Unit), and each antenna module may be a bluetooth antenna formed by a bluetooth chip.
In some embodiments, to further ensure the security of the verification data sent by the wireless positioning module to the target mobile terminal, after the wireless positioning module and the target mobile terminal successfully perform identity authentication, a communication key used between the target mobile terminal and the wireless positioning module may be generated through dynamic negotiation by using an ECDHE (elipticacurve Diffie-Hellman Ephemeral, temporary elliptic curve Diffie-Hellman) algorithm, and is one-time encrypted. In addition, the verification data broadcast by the target mobile terminal is also processed by the key generated by dynamic negotiation and then broadcast.
In one embodiment, after performing step S216, the wireless positioning module may further transmit the location of the target mobile terminal to a central electronic module of the vehicle, so that the central electronic module determines whether the target mobile terminal is in the keyless triggering zone according to the location of the target mobile terminal. The keyless activation area mentioned herein may include a Passive Entry (PE) area and/or a Passive Start (PS) area, etc. And then, the wireless positioning module receives a judgment result which is returned by the central electronic module and is used for judging whether the target mobile terminal is in the keyless triggering area or not based on the position of the target mobile terminal, and sends the judgment result to the target mobile terminal. Therefore, after receiving the determination result, the target mobile terminal prompts the user to perform a corresponding operation according to the determination result, for example, if the determination result is that the target mobile terminal is in the PE region, the user is prompted to perform an unlocking operation, and if the determination result is that the target mobile terminal is in the PS region, the user is prompted to perform an engine starting operation, and so on. In this way, the response operation can be actively triggered according to the position of the target mobile terminal, and the PEPS (Passive Entry Passive Start) function of the vehicle is realized.
In a specific application scenario, when a door handle sensor of a vehicle senses a pulling operation of a door handle by a user, a mobile terminal of the user, which carries a digital key, is positioned by the positioning method of the digital key of the vehicle, and whether the mobile terminal is in a PE range or not is judged, and if the mobile terminal is in the PE range, an unlocking operation of a vehicle door is actively triggered, so that a door opening action of the user is realized. Similarly, when a user presses a start button in the vehicle, the mobile terminal is positioned through the positioning method of the digital key of the vehicle, whether the mobile terminal is in the PS range is judged, and if the mobile terminal is in the PS range, the starting operation of the engine of the vehicle is actively triggered.
In addition, in order to ensure good experience of the digital key in the using process, the positioning delay of the target mobile terminal should be smaller than the set standard of the digital key system. In one embodiment, the period may be set to less than 0.2 s. Therefore, the period of the verification data generated by the wireless positioning module is less than 0.2s, correspondingly, the period of the verification data broadcast by the target mobile terminal in response to the verification data received from the wireless positioning module is less than 0.2s, namely, the update of the verification data of the wireless positioning module and the target mobile terminal can be less than 0.2s, so that the real-time performance and the accuracy of the verification data of the wireless positioning module are realized, the positioning delay of the target mobile terminal is ensured to be less than 0.2s, and the user experience is improved.
Based on the same technical concept, the embodiment of the invention also provides a positioning method of the digital key of the vehicle, which is applied to the antenna modules at different positions of the vehicle. Fig. 3 is a flowchart illustrating a positioning method of a digital key of a vehicle, which is applied to each antenna module of the vehicle, according to an embodiment of the present invention. Referring to fig. 3, the method may include at least the following steps S302 to S312.
Step S302, receiving identification information of the target mobile terminal sent by a wireless positioning module of the vehicle, wherein the identification information comprises an identifier of the target mobile terminal or an identifier and a pairing parameter of the target mobile terminal.
Step S304, if the identification information of the target mobile terminal comprises the identification and the pairing parameter of the target mobile terminal, establishing and storing the corresponding relation between the identification and the pairing parameter of the target mobile terminal.
And S306, identifying the target mobile terminal according to the pairing parameters of the target mobile terminal.
Step S308, periodically receiving the verification data broadcast by the target mobile terminal after receiving the verification data sent by the wireless positioning module.
In step S310, a signal strength indication value of the received verification data is obtained.
Step S312, sending the signal strength indicating value to the wireless positioning module, so that the wireless positioning module determines the location of the target mobile terminal according to the location of each antenna module and the signal strength indicating value.
In the method for positioning the digital key of the vehicle provided by the embodiment of the invention, each antenna module identifies the mobile terminal by receiving the identification and the pairing parameter of the target mobile terminal sent by the wireless positioning module, and establishes and stores the corresponding relation between the identification and the pairing parameter of the target mobile terminal, so that the effect of pairing with the mobile terminal equivalent to that of the wireless positioning module is achieved, and further, the target mobile terminal can be identified in a targeted manner according to the pairing parameter of the target mobile terminal to quickly acquire the data required by positioning the target mobile terminal, and the interference of other peripheral mobile devices is avoided. The scheme of the invention simplifies the complicated matching process of the antenna module and the target mobile terminal in the using process of the digital key, improves the identification efficiency of each antenna module to the target mobile terminal, and further improves the positioning efficiency of the target mobile terminal.
In step S302, each antenna module receives the identification information of the target mobile terminal sent by the wireless positioning module. The identification information may comprise different content in different situations.
In the first case, the target mobile terminal is connected to the wireless positioning module for the first time, and the identification information of the target mobile terminal received by each antenna module includes the identifier and the pairing parameter of the target mobile terminal.
Under the circumstance, in order to ensure the communication security between the target mobile terminal and the wireless positioning module, after the wireless positioning module establishes connection with the mobile terminal, identity authentication needs to be performed on the mobile terminal so as to determine whether the connected mobile terminal is the target mobile terminal with the digital key. Specifically, after the wireless positioning module establishes the wireless connection with the mobile terminal, the wireless positioning module receives the identity authentication information of the mobile terminal and performs identity authentication on the mobile terminal according to the identity authentication information. The identity authentication information of the mobile terminal carries the identification of the mobile terminal. The identifier of the mobile terminal is used to distinguish different mobile terminals, and may be a unique identifier of the mobile terminal (e.g., a device ID), or may be identifier information of the mobile terminal (e.g., serial numbers 1, 2, 3, or characters A, B, C, etc.) agreed in advance in the digital key system.
The identity authentication of the mobile terminal can be completed through the bidirectional identity authentication between the wireless positioning module and the mobile terminal. In the bidirectional identity authentication process, the identities of both the wireless positioning module and the mobile terminal can be realized through a Public Key Infrastructure (PKI) system, and the authenticated certificate is issued and managed uniformly by a cloud service of the digital key system. The authentication algorithm of both the wireless positioning module and the mobile terminal can adopt an ECDH (elliptic curve Diffie-Hellman key Exchange) session negotiation algorithm, thereby effectively ensuring the communication security between the mobile terminal and the wireless positioning module. The authentication principle of the PKI system and the ECDH algorithm is well known to those skilled in the art, and is not described herein.
In order to ensure that the wireless positioning module can quickly and accurately identify the target mobile terminal, after the target mobile terminal passes the identity authentication, the wireless positioning module can also judge whether the target mobile terminal needs to be paired. Those skilled in the art will recognize that pairing of two communicating parties generally only needs to be performed when the two communicating parties are connected for the first time, and after pairing of the two communicating parties is successful, pairing does not need to be performed when the two communicating parties are connected again for communication. Therefore, whether the pairing operation between the wireless positioning module and the target mobile terminal is needed or not can be determined by judging whether the target mobile terminal is connected with the wireless positioning module for the first time or not. The method for determining whether to connect for the first time is well known to those skilled in the art and will not be described herein.
And if the wireless positioning module judges that the target mobile terminal is connected with the wireless positioning module for the first time, the wireless positioning module is paired with the target mobile terminal. Specifically, the wireless positioning module and the mobile terminal may be paired by using a numerical comparison (NumericComparison) method. In the pairing process, the wireless positioning module and the mobile terminal exchange the prand random number and pairing parameters including an Identity Resolution Key (IRK) and the like, after the exchange, whether the prand and the pairing parameters of the two parties are matched is judged, if so, the two parties are successfully paired, and the pairing of the wireless positioning module and the mobile terminal is completed.
After the pairing is completed, the wireless positioning module takes the identification and the pairing parameters of the target mobile terminal as the identification information of the target mobile terminal and sends the identification information to each antenna module. Furthermore, each antenna module receives the identification information including the identifier of the target mobile terminal and the pairing parameter, and continues to execute step S304, and establishes and stores the corresponding relationship between the identifier of the target mobile terminal and the pairing parameter, so as to implement synchronization of the pairing parameter of the target mobile terminal in each antenna module. The correspondence between the identifier of the target mobile terminal and the pairing parameter may be stored in a memory of the car machine, for example. Then, step S306 may be performed.
In the second case, the target mobile terminal is not connected to the wireless positioning module for the first time, and the identification information of the target mobile terminal received by each antenna module only includes the identifier of the target mobile terminal.
In this case, after the wireless positioning module establishes connection with the mobile terminal, the identity of the mobile terminal still needs to be authenticated first to determine whether the connected mobile terminal is a target mobile terminal carrying a digital key. The manner of identity authentication is as described above and is not repeated.
After the target mobile terminal passes the identity authentication, the wireless positioning module continues to judge whether the target mobile terminal establishes connection with the wireless positioning module for the first time. After the target mobile terminal is connected with the wireless positioning module for the first time and pairing is completed, the wireless positioning module synchronizes the identifier and the pairing parameters of the target mobile terminal to each antenna module, so that each antenna module establishes and stores the corresponding relation between the identifier and the pairing parameters of the target mobile terminal, and therefore, under the condition that the target mobile terminal is not connected with the wireless positioning module for the first time (for example, the target mobile terminal is connected with the wireless positioning module for the second time), the wireless positioning module only needs to send the identifier of the target mobile terminal to each antenna module as the identification information of the target mobile terminal. After receiving the identification information only including the identifier of the target mobile terminal, each antenna module can acquire the pairing parameters of the target mobile terminal according to the received identifier of the target mobile terminal and the stored corresponding relationship between the identifier of the target mobile terminal and the pairing parameters. Specifically, the pairing parameters of the target mobile terminal may be obtained by matching the identifier of the target mobile terminal in the stored correspondence between the identifier of the target mobile terminal and the pairing parameters.
Then, after acquiring the pairing parameters of the target mobile terminal, step S306 is executed.
In step S306, each antenna module identifies the target mobile terminal according to the pairing parameter of the target mobile terminal.
In an embodiment, in a case that the pairing parameter includes an identity resolution key, after obtaining the pairing parameter of the target mobile terminal, each antenna module may identify the target mobile terminal according to the pairing parameter of the target mobile terminal in the following manner:
first, a device address of the mobile terminal is acquired. Specifically, each antenna module may acquire the device addresses of the surrounding mobile terminals through scanning.
Then, whether the acquired device address is an analyzable private address (Resolvable private address) is judged, and if yes, a prand random number in the device address is extracted.
The resolvable private address is a random equipment address of the mobile terminal, and the safety of communication can be improved. The resolvable private address is generated by a prand random number and an identity resolution key, and comprises two parts, wherein the upper 24 bytes are the prand random number part, the highest two bytes are '01', and the lower 24 bytes are hash values obtained by carrying out hash operation on the prand random number and the identity resolution key (the hash is ah (prand, IRK)). If the obtained device address is the beginning of 01 and meets the structure containing the prand random number and the hash value, the device address is judged to be an analyzable private address, and the prand random number is extracted from the device address.
And then, carrying out hash operation on the acquired identity analysis key of the target mobile terminal and the extracted prand random number to obtain a hash value (hash), and obtaining a reference device address according to the obtained hash value (hash) and the prand random number. Specifically, a hash | | | prand operation is performed on the obtained hash value (hash) and the prand random number to obtain a reference device address.
And finally, comparing whether the acquired equipment address of the mobile terminal is the same as the reference equipment address or not, and if so, determining that the mobile terminal is the target mobile terminal.
In the above step S308, the verification data may be a random number.
The wireless positioning module periodically generates verification data and sends the encrypted verification data to the target mobile terminal through a wireless connection channel with the target mobile terminal. And after receiving the encrypted verification data from the wireless positioning module, the target mobile terminal decrypts the verification data and broadcasts and sends the verification data. After the antenna modules identify the target mobile terminal, the antenna modules can accurately and periodically receive the verification data broadcast by the target mobile terminal.
In step S310, each antenna module analyzes the Received verification data, and obtains a Received Signal Strength Indication (RSSI) value of the Received verification data.
Then, each antenna module executes step S312 to send the obtained signal strength indication value to the wireless positioning module. And then, the wireless positioning module determines the position of the target mobile terminal according to the position of each antenna module and the received signal strength indicating value of each antenna module. Those skilled in the art will recognize that, since the operation of generating and transmitting the verification data by the wireless location module is performed periodically, and the operation of receiving the verification data and acquiring and transmitting the signal strength indication value by each antenna module is also performed periodically, the operation of determining the location of the target mobile terminal by the wireless location module according to the location of each antenna module and the signal strength indication value is also performed periodically.
Specifically, the wireless positioning module may calculate a distance between the target mobile terminal and each antenna module according to the signal strength indication value of each antenna module, and further may calculate and determine a position of the target mobile terminal according to the distance between the target mobile terminal and each antenna module and the position of each antenna module. The position of each antenna module herein may be a relative position with an origin at any position on the vehicle (e.g., a driver seat position, a front end midpoint of a vehicle head, etc.). Accordingly, the calculated and determined position of the target mobile terminal may also be a relative position with respect to the origin.
In addition, because each antenna module is located at a different position, the time for each antenna module to receive the verification data broadcast by the target mobile terminal is different, and further, the time for the wireless positioning module to receive the signal strength indication value from each antenna module is also different. Therefore, in one period, after receiving the signal strength indication value of each antenna module, the wireless positioning module may locally cache the received signal strength indication value of each antenna module. And finally, after receiving the signal strength indicated values of all the antenna modules, calculating the position of the target mobile terminal.
By periodically calculating the position of the target mobile terminal, the target mobile terminal can be located in real time during the movement of the user holding the target mobile terminal (for example, during the movement of the user towards the vehicle).
In one embodiment, each antenna module may send the analyzed verification data received from the target mobile terminal to the wireless positioning module while sending the signal strength indication value to the wireless positioning module. Furthermore, the wireless positioning module receives the signal strength indicating value transmitted by each antenna module and also receives the verification data transmitted by each antenna module. In this case, before the wireless positioning module determines the location of the target mobile terminal according to the location of each antenna module and the signal strength indicating value, the wireless positioning module may further determine whether a time difference between a time when the wireless positioning module receives the verification data from each antenna module and a time when the wireless positioning module transmits the verification data to the target mobile terminal is smaller than a preset threshold, and if so, continue to perform an operation of determining the location of the target mobile terminal according to the location of each antenna module and the signal strength indicating value. In the positioning process of the target mobile terminal, a certain time delay exists when the wireless positioning module sends the verification data to the target mobile terminal and receives the verification data transmitted by the target mobile terminal and each antenna module. If the time delay is too large, the position of the target mobile terminal may have changed during the delay, resulting in an inaccurate calculated position of the target mobile terminal. Therefore, whether the time difference between the moment when the wireless positioning module receives the verification data from each antenna module and the moment when the wireless positioning module sends the verification data to the target mobile terminal is smaller than a preset threshold value or not is judged, if yes, the time delay is within an acceptable range, and the received signal strength indicated value is valid data and can be used for calculating the position of the target mobile terminal. If not, the time delay is beyond the acceptable range, and the received signal strength indicating value is invalid data. The preset threshold may be set according to the positioning accuracy requirement, which is not specifically limited herein.
In some embodiments, in the positioning method of the present invention, communication modes such as bluetooth, WiFi, or Zigbee may be adopted between the wireless positioning module and the mobile terminal, and between each antenna module and the mobile terminal.
Preferably, a bluetooth communication mode is adopted between the wireless positioning module and the mobile terminal and between each antenna module and the mobile terminal. Because the popularity of the bluetooth technology in the mobile terminal is very high (for example, the popularity of the bluetooth technology in the mobile phone has reached 100%), and the bluetooth technology has the characteristics of maturity, stability and low power consumption, the scheme for realizing the wireless positioning of the digital key based on the bluetooth technology has the advantages of wide adaptability, high stability and low power consumption. In this case, the wireless positioning module may be a main bluetooth module formed by a bluetooth chip and an MCU (micro controller Unit), and each antenna module may be a bluetooth antenna formed by a bluetooth chip.
In some embodiments, to further ensure the security of the verification data sent by the wireless positioning module to the target mobile terminal, after the wireless positioning module and the target mobile terminal successfully perform identity authentication, a communication key used between the target mobile terminal and the wireless positioning module may be generated through dynamic negotiation by using an ECDHE (elipticacurve Diffie-Hellman Ephemeral, temporary elliptic curve Diffie-Hellman) algorithm, and is one-time encrypted. In addition, the verification data broadcast by the target mobile terminal is also processed by the key generated by dynamic negotiation and then broadcast.
In one embodiment, after determining the location of the target mobile terminal, the wireless location module may also transmit the location of the target mobile terminal to a central electronic module of the vehicle, so that the central electronic module determines whether the target mobile terminal is in the keyless triggering area according to the location of the target mobile terminal. The keyless activation area mentioned herein may include a Passive Entry (PE) area and/or a Passive Start (PS) area, etc. And then, the wireless positioning module receives a judgment result which is returned by the central electronic module and is used for judging whether the target mobile terminal is in the keyless triggering area or not based on the position of the target mobile terminal, and sends the judgment result to the target mobile terminal. Therefore, after receiving the determination result, the target mobile terminal prompts the user to perform a corresponding operation according to the determination result, for example, if the determination result is that the target mobile terminal is in the PE region, the user is prompted to perform an unlocking operation, and if the determination result is that the target mobile terminal is in the PS region, the user is prompted to perform an engine starting operation, and so on. In this way, the response operation can be actively triggered according to the position of the target mobile terminal, and the PEPS (Passive Entry Passive Start) function of the vehicle is realized.
In a specific application scenario, when a door handle sensor of a vehicle senses a pulling operation of a door handle by a user, a mobile terminal of the user, which carries a digital key, is positioned by the positioning method of the digital key of the vehicle, and whether the mobile terminal is in a PE range or not is judged, and if the mobile terminal is in the PE range, an unlocking operation of a vehicle door is actively triggered, so that a door opening action of the user is realized. Similarly, when a user presses a start button in the vehicle, the mobile terminal is positioned through the positioning method of the digital key of the vehicle, whether the mobile terminal is in the PS range is judged, and if the mobile terminal is in the PS range, the starting operation of the engine of the vehicle is actively triggered.
In addition, in order to ensure good experience of the digital key in the using process, the positioning delay of the target mobile terminal should be smaller than the set standard of the digital key system. In one embodiment, the period may be set to less than 0.2 s. Therefore, the period of the verification data generated by the wireless positioning module is less than 0.2s, correspondingly, the period of the verification data broadcast by the target mobile terminal in response to the verification data received from the wireless positioning module is less than 0.2s, namely, the update of the verification data of the wireless positioning module and the target mobile terminal can be less than 0.2s, so that the real-time performance and the accuracy of the verification data of the wireless positioning module are realized, the positioning delay of the target mobile terminal is ensured to be less than 0.2s, and the user experience is improved.
Based on the same technical concept, the embodiment of the invention also provides a positioning method of the digital key of the vehicle, which is applied to the mobile terminal. Fig. 4 is a flowchart illustrating a method for locating a digital key of a vehicle, which is applied to a mobile terminal, according to an embodiment of the present invention. Referring to fig. 4, the method may include at least the following steps S402 to S410.
Step S402, after the wireless positioning module of the vehicle is connected, the identity authentication information of the vehicle is sent to the wireless positioning module for identity authentication, and the identity authentication information carries the identification of the mobile terminal.
Step S404, after passing the identity authentication, judging whether the pairing with the wireless positioning module is completed. If not, go to step S406.
Step S406, pairing with the wireless positioning module, so that after the pairing is completed, the wireless positioning module synchronizes the identifier and the pairing parameters of the mobile terminal to each antenna module at different positions of the vehicle, so that each antenna module identifies the mobile terminal.
Step S408, periodically receiving the verification data sent by the wireless positioning module.
Step S410, the verification data is broadcasted to each antenna module, so that each antenna module obtains a signal strength indicating value of the received verification data and sends the signal strength indicating value to the wireless positioning module, so as to determine the position of the mobile terminal.
In the method for positioning the digital key of the vehicle, provided by the embodiment of the invention, the mobile terminal is paired with the wireless positioning module under the condition that the mobile terminal passes through identity authentication and the wireless positioning module is judged not to be paired, so that the wireless positioning module synchronizes pairing parameters of the mobile terminal to each antenna module, and each antenna module has the same effect of pairing with the mobile terminal, and therefore each antenna module can identify the mobile terminal in a targeted manner according to the pairing parameters of the mobile terminal so as to quickly acquire data required by positioning the mobile terminal, and avoid interference of other peripheral mobile devices. The scheme of the invention simplifies the complicated matching process of the antenna module and the mobile terminal in the using process of the digital key, improves the identification efficiency of each antenna module to the mobile terminal, and further improves the positioning efficiency of the mobile terminal.
Those skilled in the art will recognize that pairing of two communicating parties generally only needs to be performed when the two communicating parties are connected for the first time, and after pairing of the two communicating parties is successful, pairing does not need to be performed when the two communicating parties are connected again for communication. Thus, after step S404 is executed, if it is determined that the mobile terminal and the wireless positioning module are paired, step S408 may be directly executed.
Having described various implementations of the various elements of the embodiments shown in fig. 2, 3 and 4, the implementation of the method for locating a digital key of a vehicle according to the present invention will be described in detail by combining the wireless location module, the antenna module, the mobile terminal and the central electronic module of the digital key system.
Fig. 5 is a flowchart illustrating a method for locating a digital key of a vehicle according to an embodiment of the present invention. In this embodiment, the wireless positioning module is specifically a master bluetooth module. The antenna modules are Bluetooth antenna modules, the number of the antenna modules is 2, and the antenna modules are respectively called as a first Bluetooth antenna module and a second Bluetooth antenna module. The mobile terminal is communicated with the main Bluetooth module and the mobile terminal is communicated with each Bluetooth antenna module through Bluetooth.
Referring to fig. 5, the method may include the following steps.
And S501, the main Bluetooth module is successfully connected with the mobile terminal, and bidirectional identity authentication is performed. After that, step S502 is executed.
In this step, after the main bluetooth module establishes wireless connection with the mobile terminal, the main bluetooth module receives the identity authentication information of the mobile terminal and simultaneously sends the identity authentication information of the main bluetooth module to the mobile terminal so as to perform bidirectional identity authentication. The identity authentication information of the mobile terminal carries the identification of the mobile terminal. The two-way authentication is as described above.
Step S502, after the mobile terminal passes the identity authentication, the main Bluetooth module judges whether the mobile terminal is connected with the main Bluetooth module for the first time. If yes, go to step S503. If not, go to step S506.
And step S503, the main Bluetooth module is paired with the mobile terminal. After that, S504 is executed.
The main Bluetooth module and the mobile terminal are paired in a numerical comparison mode. In the pairing process, the master Bluetooth module and the mobile terminal exchange prand random numbers and pairing parameters. And if the prand random numbers of the two parties are matched with the pairing parameters, the pairing is successful. The pairing parameters include an identity resolution key
Step S504, the main Bluetooth module synchronizes the identification and the pairing parameters of the mobile terminal to the first Bluetooth antenna module.
Specifically, the master bluetooth module sends the identifier and the pairing parameter of the mobile terminal to the first bluetooth antenna module, so that the first bluetooth antenna module locally stores the corresponding relationship between the identifier and the pairing parameter of the mobile terminal, and synchronization of the pairing parameter of the mobile terminal in the first bluetooth antenna module is realized.
And step S505, the main Bluetooth module synchronizes the identifier and the pairing parameters of the mobile terminal to the second Bluetooth antenna module. After that, step S507 is executed.
Specifically, the master bluetooth module sends the identifier and the pairing parameter of the mobile terminal to the second bluetooth antenna module, so that the second bluetooth antenna module locally stores the corresponding relationship between the identifier and the pairing parameter of the mobile terminal, and the synchronization of the pairing parameter of the mobile terminal in the second bluetooth antenna module is realized.
It should be noted that step S504 and step S505 may be executed simultaneously or in an alternative order. When the order of step S504 and step S505 is exchanged, step S503 is executed, and then step S505, step S504, and step S507 are executed in this order.
Step S506, the main Bluetooth module sends the identifier of the mobile terminal to the first Bluetooth antenna module and the second Bluetooth antenna module. After that, step S507 is executed.
In step S507, the master bluetooth module periodically generates verification data. After that, step S508 is performed.
The authentication data contains a random number. After the main Bluetooth module generates verification data, the generated verification data is temporarily cached locally.
Step S508, the master bluetooth module sends the verification data to the mobile terminal. After that, step S509 is executed.
And the main Bluetooth module sends encrypted verification data through a Bluetooth connection channel with the mobile terminal.
In step S509, the mobile terminal parses the received verification data and broadcasts the parsed verification data. After that, step S510 is performed.
Step S510, the first Bluetooth antenna module and the second Bluetooth antenna module acquire the pairing parameters of the mobile terminal according to the identification of the mobile terminal, and identify the mobile terminal according to the pairing parameters of the mobile terminal. After that, step S511 is performed.
Specifically, the first bluetooth antenna module and the second bluetooth antenna module respectively obtain the pairing parameters of the mobile terminal according to the identifier of the mobile terminal and the corresponding relationship between the identifier of the mobile terminal and the pairing parameters stored locally. The manner of identifying the mobile terminal according to the pairing parameters of the mobile terminal is as described above.
Step S511, the first bluetooth antenna module receives the verification data broadcasted by the mobile terminal, analyzes the verification data, and obtains a signal strength indication value of the received verification data. After that, step S512 is executed.
Step S512, the first Bluetooth antenna module sends the verification data and the signal strength indicating value to the main Bluetooth module. After that, step S513 is executed.
Step S513, the master bluetooth module verifies whether the data is valid, and buffers the received verification data and the signal strength indication value locally.
Specifically, it is determined whether a time difference between a time when the verification data from the first bluetooth antenna module is received and a time when the verification data is transmitted to the mobile terminal is less than a preset threshold. If yes, the signal strength indicated value from the first Bluetooth antenna module is determined to be valid data, and the verification data and the signal strength indicated value from the first Bluetooth antenna module are cached.
In step S514, the second bluetooth antenna module receives the verification data broadcast by the mobile terminal, analyzes the verification data, and obtains a signal strength indication value of the received verification data. After that, step S515 is performed.
In step S515, the second bluetooth antenna module sends the verification data and the signal strength indication value to the master bluetooth module. After that, step S516 is performed.
Step S516, the main Bluetooth module verifies whether the data is valid, and buffers the received verification data and the signal strength indicating value in the local. After that, step S517 is performed.
And judging whether the time difference between the moment of receiving the verification data from the second Bluetooth antenna module and the moment of sending the verification data to the mobile terminal is smaller than a preset threshold value or not. And if so, determining the signal strength indicated value from the second Bluetooth antenna module as valid data, and caching the verification data and the signal strength indicated value from the second Bluetooth antenna module.
It should be noted that the sequence of steps S511 to S513 may be interchanged with that of steps S514 to S516. That is, after step S510, step S514 to step S516 may be executed first, then step S511 to step S513 may be executed, and then step S517 may be executed after step S513 is executed. Alternatively, steps S511 to S513 and steps S514 to S516 may be performed simultaneously.
And S517, the main Bluetooth module calculates the position of the mobile terminal according to the position and the signal strength indicated value of each Bluetooth antenna module. After that, step S518 is performed.
Specifically, the main bluetooth module calculates the position of the mobile terminal according to the position and signal strength indicated value of the first bluetooth antenna module and the position and signal strength indicated value of the second bluetooth antenna module. The positions of the first Bluetooth antenna module and the second Bluetooth antenna module are relative positions taking a driver seat of the vehicle as an origin, and the calculated and determined position of the target mobile terminal is also relative position relative to the origin.
And step S518, the main Bluetooth module sends the position of the mobile terminal to the central electronic module. After that, step S519 is executed.
Step S519, the central electronic module determines whether the mobile terminal is in the PE or PS area according to the position of the mobile terminal, and returns the determination result to the main bluetooth module. After that, step S520 is performed.
And step S520, the main Bluetooth module sends the judgment result to the mobile terminal. After that, step S521 is executed.
And step S521, the mobile terminal displays the judgment result and prompts the user to operate according to the judgment result.
Specifically, if the mobile terminal is in the PE area, the user is prompted to perform operations such as unlocking and opening the door. And if the judgment result is that the mobile terminal is in the PS area, prompting the user to perform operations such as engine starting and the like.
It should be noted that the steps within the dashed box in fig. 5 are performed periodically in a loop.
The embodiment of the invention simplifies the complicated pairing process of each Bluetooth antenna module and the mobile terminal in the using process of the digital key, improves the identification efficiency of each Bluetooth antenna module to the mobile terminal, and further improves the positioning efficiency of the mobile terminal.
Based on the same inventive concept, the embodiment of the invention also provides electronic equipment. The electronic device includes:
a processor; and
a memory storing computer program code;
the computer program code, when executed by the processor, causes the electronic device to perform any one or combination of the above embodiments of a method for positioning a digital key of a vehicle applied to a wireless positioning module of the vehicle or a method for positioning a digital key of a vehicle applied to antenna modules at different locations of the vehicle.
Based on the same inventive concept, the embodiment of the invention also provides a computer readable storage medium. The computer readable storage medium stores computer program code which, when run on an electronic device, causes the electronic device to perform any one or combination of the above embodiments of a method for locating a digital key of a vehicle applied to a wireless location module of the vehicle or a method for locating a digital key of a vehicle applied to each antenna module at different locations of the vehicle.
Based on the same inventive concept, the embodiment of the invention also provides a mobile terminal. The mobile terminal includes a processor; and
a memory storing computer program code;
the computer program code, when executed by the processor, causes the mobile terminal to perform any one or combination of the above embodiments as applied to a method of locating a digital key for a vehicle of the mobile terminal.
According to any one or a combination of multiple optional embodiments, the embodiment of the present invention can achieve the following advantages:
in the method for positioning the digital key of the vehicle, provided by the embodiment of the invention, the wireless positioning module synchronizes the pairing parameters of the target mobile terminal to each antenna module after completing pairing with the target mobile terminal connected for the first time, so that each antenna module has the same effect of pairing with the target mobile terminal, and each antenna module can identify the target mobile terminal in a targeted manner according to the pairing parameters of the target mobile terminal so as to quickly acquire data required by positioning the target mobile terminal, thereby avoiding interference of other peripheral mobile devices. The scheme of the invention simplifies the complicated matching process of the antenna module and the target mobile terminal in the using process of the digital key, improves the identification efficiency of each antenna module to the target mobile terminal, and further improves the positioning efficiency of the target mobile terminal.
It is clear to those skilled in the art that the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and for the sake of brevity, further description is omitted here.
In addition, the functional units in the embodiments of the present invention may be physically independent of each other, two or more functional units may be integrated together, or all the functional units may be integrated in one processing unit. The integrated functional units may be implemented in the form of hardware, or in the form of software or firmware.
Those of ordinary skill in the art will understand that: the integrated functional units, if implemented in software and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computing device (e.g., a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention when the instructions are executed. And the aforementioned storage medium includes: u disk, removable hard disk, Read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disk, and other various media capable of storing program code.
Alternatively, all or part of the steps of implementing the foregoing method embodiments may be implemented by hardware (such as a computing device, e.g., a personal computer, a server, or a network device) associated with program instructions, which may be stored in a computer-readable storage medium, and when the program instructions are executed by a processor of the computing device, the computing device executes all or part of the steps of the method according to the embodiments of the present invention.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments can be modified or some or all of the technical features can be equivalently replaced within the spirit and principle of the present invention; such modifications or substitutions do not depart from the scope of the present invention.

Claims (10)

1. A positioning method of a digital key of a vehicle is applied to a wireless positioning module of the vehicle, and is characterized by comprising the following steps:
after establishing connection with a mobile terminal, receiving identity authentication information of the mobile terminal to perform identity authentication on the mobile terminal, wherein the identity authentication information carries an identifier of the mobile terminal;
if the mobile terminal passes the identity authentication, determining that the mobile terminal is a target mobile terminal loaded with a digital key;
judging whether the target mobile terminal establishes connection with the wireless positioning module for the first time;
if so, pairing with the target mobile terminal;
after the pairing with the target mobile terminal is successful, synchronizing the identification and the pairing parameters of the target mobile terminal to each antenna module at different positions of a vehicle, so that each antenna module establishes and stores the corresponding relation between the identification and the pairing parameters of the target mobile terminal, and identifying the target mobile terminal according to the pairing parameters of the target mobile terminal;
periodically generating verification data and sending the verification data to the target mobile terminal so that the target mobile terminal broadcasts the verification data after receiving the verification data;
receiving a signal strength indicating value sent by each antenna module, wherein the signal strength indicating value is a signal strength indicating value of the verification data broadcasted by the target mobile terminal and received by each antenna module;
and determining the position of the target mobile terminal according to the positions of the antenna modules and the signal strength indicating value.
2. The method according to claim 1, further comprising, after determining whether the target mobile terminal establishes a connection with the wireless location module for the first time, the step of:
if not, the identification of the target mobile terminal is sent to each antenna module, so that each antenna module obtains the pairing parameters of the target mobile terminal according to the identification of the target mobile terminal and the corresponding relation between the identification of the target mobile terminal and the pairing parameters, and identifies the target mobile terminal according to the pairing parameters of the target mobile terminal.
3. The positioning method according to claim 1, wherein the pairing parameters comprise an identity resolution key;
the identifying the target mobile terminal according to the pairing parameter of the target mobile terminal includes:
acquiring an equipment address of a mobile terminal;
judging whether the equipment address is an analyzable private address or not, and if so, extracting a prand random number in the equipment address;
carrying out hash operation on the identity analysis key and the prand random number to obtain a hash value, and obtaining a reference equipment address according to the hash value and the prand random number;
and comparing whether the equipment address of the mobile terminal is the same as the reference equipment address or not, and if so, determining that the mobile terminal is a target mobile terminal.
4. The positioning method according to claim 1,
receiving the verification data sent by each antenna module after receiving the verification data broadcast by the target mobile terminal while receiving the signal strength indication value sent by each antenna module;
before determining the location of the target mobile terminal according to the location of each antenna module and the signal strength indication value, the method further includes:
judging whether the time difference between the moment of receiving the verification data from each antenna module and the moment of sending the verification data to the target mobile terminal is smaller than a preset threshold value or not;
and if so, executing the step of determining the position of the target mobile terminal according to the positions of the antenna modules and the signal strength indicating values.
5. The positioning method according to claim 1, further comprising, after determining the position of the target mobile terminal:
transmitting the position of the target mobile terminal to a central electronic module of a vehicle;
receiving a judgment result returned by the central electronic module and used for judging whether the target mobile terminal is in a keyless triggering area or not based on the position of the target mobile terminal;
and sending the judgment result to the target mobile terminal.
6. The positioning method according to claim 5, wherein the keyless activation zone comprises a keyless entry zone and/or a keyless activation zone.
7. An electronic device, comprising:
a processor; and
a memory storing computer program code;
the computer program code, when executed by the processor, causes the electronic device to perform a method of locating a digital key of a vehicle according to any of claims 1-6.
8. A computer-readable storage medium, characterized in that it stores computer program code which, when run on an electronic device, causes the electronic device to execute the method of positioning a digital key of a vehicle according to any one of claims 1-6.
9. A method for positioning a digital key of a vehicle, applied to antenna modules at different positions of the vehicle, the method comprising:
receiving identification information of a target mobile terminal sent by a wireless positioning module of a vehicle, wherein the identification information comprises an identifier of the target mobile terminal or the identifier and pairing parameters of the target mobile terminal;
if the identification information of the target mobile terminal comprises the identification and the pairing parameter of the target mobile terminal, establishing and storing the corresponding relation between the identification and the pairing parameter of the target mobile terminal;
identifying the target mobile terminal according to the pairing parameters of the target mobile terminal;
periodically receiving the verification data broadcast by the target mobile terminal after receiving the verification data sent by the wireless positioning module;
acquiring a signal strength indicating value of the received verification data;
and sending the signal strength indicated value to the wireless positioning module so that the wireless positioning module can determine the position of the target mobile terminal according to the position of each antenna module and the signal strength indicated value.
10. A positioning method of a digital key of a vehicle is applied to a mobile terminal, and is characterized by comprising the following steps:
after establishing connection with a wireless positioning module of a vehicle, sending self identity authentication information to the wireless positioning module for identity authentication, wherein the identity authentication information carries an identifier of the mobile terminal;
after passing the identity authentication, judging whether the pairing with the wireless positioning module is completed;
if not, pairing with the wireless positioning module so that the wireless positioning module synchronizes the identifier and the pairing parameters of the mobile terminal to each antenna module at different positions of the vehicle after pairing is completed, so that each antenna module identifies the mobile terminal;
periodically receiving verification data sent by the wireless positioning module;
and broadcasting the verification data to each antenna module so that each antenna module acquires a signal strength indicating value of the received verification data and sends the signal strength indicating value to the wireless positioning module to determine the position of the mobile terminal.
CN202010495507.4A 2020-06-03 2020-06-03 Method and equipment for positioning digital key of vehicle Active CN111683336B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010495507.4A CN111683336B (en) 2020-06-03 2020-06-03 Method and equipment for positioning digital key of vehicle

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010495507.4A CN111683336B (en) 2020-06-03 2020-06-03 Method and equipment for positioning digital key of vehicle

Publications (2)

Publication Number Publication Date
CN111683336A true CN111683336A (en) 2020-09-18
CN111683336B CN111683336B (en) 2022-03-15

Family

ID=72453041

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010495507.4A Active CN111683336B (en) 2020-06-03 2020-06-03 Method and equipment for positioning digital key of vehicle

Country Status (1)

Country Link
CN (1) CN111683336B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114374950A (en) * 2022-01-14 2022-04-19 重庆长安汽车股份有限公司 Bluetooth-based short-range vehicle control system, vehicle control method and vehicle
CN114915905A (en) * 2022-05-06 2022-08-16 江西五十铃汽车有限公司 Bluetooth key position identification method and device, readable storage medium and vehicle

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170278330A1 (en) * 2016-03-22 2017-09-28 Ford Global Technologies, Llc Method and apparatus for wireless vehicular access device authentication
CN110177354A (en) * 2019-06-21 2019-08-27 湖北亿咖通科技有限公司 A kind of wireless control method and system of vehicle
CN110798795A (en) * 2019-09-20 2020-02-14 广汽蔚来新能源汽车科技有限公司 Virtual key vehicle control system, method and device based on Bluetooth and computer equipment
CN111047743A (en) * 2019-12-26 2020-04-21 深圳市云蜂智能有限公司 Intelligent watch key capable of being generated

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170278330A1 (en) * 2016-03-22 2017-09-28 Ford Global Technologies, Llc Method and apparatus for wireless vehicular access device authentication
CN110177354A (en) * 2019-06-21 2019-08-27 湖北亿咖通科技有限公司 A kind of wireless control method and system of vehicle
CN110798795A (en) * 2019-09-20 2020-02-14 广汽蔚来新能源汽车科技有限公司 Virtual key vehicle control system, method and device based on Bluetooth and computer equipment
CN111047743A (en) * 2019-12-26 2020-04-21 深圳市云蜂智能有限公司 Intelligent watch key capable of being generated

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114374950A (en) * 2022-01-14 2022-04-19 重庆长安汽车股份有限公司 Bluetooth-based short-range vehicle control system, vehicle control method and vehicle
CN114915905A (en) * 2022-05-06 2022-08-16 江西五十铃汽车有限公司 Bluetooth key position identification method and device, readable storage medium and vehicle

Also Published As

Publication number Publication date
CN111683336B (en) 2022-03-15

Similar Documents

Publication Publication Date Title
US11951944B2 (en) Localization and passive entry/passive start systems and methods for vehicles
CN112205008B (en) Ranging method, communication node, communication device and storage medium
CN109844822B (en) Passive entry/passive start system and method for a vehicle
CN111683336B (en) Method and equipment for positioning digital key of vehicle
WO2017098717A1 (en) On-vehicle device, mobile device, and wireless communication system for vehicles
US11938899B2 (en) Antenna switching control for AOA capturing in phone-as-a-key systems with de-whitened tone transmission, CRC based validation and event timing
US11485318B2 (en) Queuing control for messages with de-whitened tones transmitted in phone-as-a-key systems
US20210264705A1 (en) Method for Securing a Communication between a Mobile Communication Apparatus and a Vehicle
CN110809892A (en) Authentication method, terminal and network equipment
CN115002764A (en) Secret key updating, obtaining and canceling method and communication device
CN107215308B (en) Keyless system and control method of keyless system
JP2021028583A (en) Control device and program
CN112977335A (en) Connection authentication method, unlocking end, key end and intelligent key system
SE545462C2 (en) Method for performing security functions of a vehicle
CN115471936B (en) Bluetooth key control method and device
US20230010914A1 (en) Method and system for data transmission, chip, electronic device, and computer readable storage medium
KR20180137091A (en) Method for Near Field Communication between Conversational Mode Device for Vehicles and User Mobile Device in-Vehicle
CN117202084A (en) Digital key positioning method, device, equipment, medium and vehicle
KR20180137094A (en) Method for Providing Service for Vehicles Based on Voice Recognition
JP2020201856A (en) Authentication system and authentication method
CN117581277A (en) Method for determining the instantaneous distance between a motor vehicle and a mobile electronic identification device
JP2022084346A (en) Position determination system and position determination method
CN117319970A (en) Device connection method and device, storage medium and chip
CN114268959A (en) Communication device and system
CN112400331A (en) Vehicle-to-outside communication device and method according to confidence level

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
TR01 Transfer of patent right

Effective date of registration: 20220323

Address after: 430051 No. b1336, chuanggu startup area, taizihu cultural Digital Creative Industry Park, No. 18, Shenlong Avenue, Wuhan Economic and Technological Development Zone, Wuhan, Hubei Province

Patentee after: Yikatong (Hubei) Technology Co.,Ltd.

Address before: No.c101, chuanggu start up area, taizihu cultural Digital Industrial Park, No.18 Shenlong Avenue, Wuhan Economic Development Zone, Hubei Province

Patentee before: HUBEI ECARX TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right