CN110395216B - Vehicle unlocking and locking control method based on mobile terminal and mobile terminal - Google Patents
Vehicle unlocking and locking control method based on mobile terminal and mobile terminal Download PDFInfo
- Publication number
- CN110395216B CN110395216B CN201910680658.4A CN201910680658A CN110395216B CN 110395216 B CN110395216 B CN 110395216B CN 201910680658 A CN201910680658 A CN 201910680658A CN 110395216 B CN110395216 B CN 110395216B
- Authority
- CN
- China
- Prior art keywords
- mobile terminal
- monitoring module
- vehicle
- module
- bluetooth
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 59
- 238000012544 monitoring process Methods 0.000 claims abstract description 174
- 238000013475 authorization Methods 0.000 claims description 28
- 238000011161 development Methods 0.000 claims description 14
- 238000012795 verification Methods 0.000 claims description 14
- 238000004364 calculation method Methods 0.000 claims description 12
- 238000004590 computer program Methods 0.000 claims description 8
- 230000006870 function Effects 0.000 description 22
- 238000012790 confirmation Methods 0.000 description 8
- 238000004422 calculation algorithm Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 6
- 230000004044 response Effects 0.000 description 6
- 230000005540 biological transmission Effects 0.000 description 2
- 230000001939 inductive effect Effects 0.000 description 2
- 230000001960 triggered effect Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
Images
Classifications
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B60—VEHICLES IN GENERAL
- B60R—VEHICLES, VEHICLE FITTINGS, OR VEHICLE PARTS, NOT OTHERWISE PROVIDED FOR
- B60R25/00—Fittings or systems for preventing or indicating unauthorised use or theft of vehicles
- B60R25/10—Fittings or systems for preventing or indicating unauthorised use or theft of vehicles actuating a signalling device
- B60R25/102—Fittings or systems for preventing or indicating unauthorised use or theft of vehicles actuating a signalling device a signal being sent to a remote location, e.g. a radio signal being transmitted to a police station, a security company or the owner
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B60—VEHICLES IN GENERAL
- B60R—VEHICLES, VEHICLE FITTINGS, OR VEHICLE PARTS, NOT OTHERWISE PROVIDED FOR
- B60R25/00—Fittings or systems for preventing or indicating unauthorised use or theft of vehicles
- B60R25/20—Means to switch the anti-theft system on or off
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07C—TIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
- G07C9/00—Individual registration on entry or exit
- G07C9/00174—Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
- G07C9/00309—Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated with bidirectional data transmission between data carrier and locks
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07C—TIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
- G07C9/00—Individual registration on entry or exit
- G07C9/00174—Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
- G07C9/00309—Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated with bidirectional data transmission between data carrier and locks
- G07C2009/00412—Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated with bidirectional data transmission between data carrier and locks the transmitted data signal being encrypted
Landscapes
- Engineering & Computer Science (AREA)
- Mechanical Engineering (AREA)
- Computer Networks & Wireless Communication (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Lock And Its Accessories (AREA)
Abstract
The invention relates to the technical field of vehicles, and discloses a vehicle unlocking and locking control method based on a mobile terminal and the mobile terminal, wherein the method comprises the following steps: the method comprises the steps that an authorized monitoring module acquires a Bluetooth connection state, wherein the monitoring module is a program module which is arranged in the mobile terminal in advance; calling a monitoring module to monitor the Bluetooth connection state; and controlling the vehicle to trigger unlocking or locking according to the Bluetooth connection state. By implementing the embodiment of the invention, the monitoring module can be called to monitor the Bluetooth connection state after the monitoring module of the authorized mobile terminal acquires the Bluetooth connection state, and the unlocking or locking of the vehicle is controlled according to the Bluetooth connection state without manually triggering an instruction for controlling the unlocking or locking of the vehicle by a user, so that the noninductive unlocking or locking of the vehicle is realized, and the use experience of the user is improved.
Description
Technical Field
The invention relates to the technical field of vehicles, in particular to a vehicle unlocking and locking control method based on a mobile terminal and the mobile terminal.
Background
Currently, a vehicle owner can control a vehicle through a vehicle key (for example, an unlocking/locking operation of the vehicle is controlled through the vehicle key), and the manner of implementing the unlocking/locking operation of the vehicle through the vehicle key is generally: the vehicle owner can click a key corresponding to the unlocking/locking instruction on the vehicle key to trigger the vehicle key to send data such as key information to the vehicle-mounted electronic equipment of the vehicle, so that the vehicle-mounted electronic equipment can realize unlocking/locking of the vehicle according to the data such as the key information. However, in practice, it is found that no matter the form of the car key is a physical key or a virtual key, the car owner needs to click a key corresponding to the unlocking/locking instruction on the car key to control the vehicle to implement the unlocking/locking operation.
Disclosure of Invention
The embodiment of the invention discloses a vehicle unlocking and locking control method based on a mobile terminal and the mobile terminal, which can simplify the process of controlling a vehicle by a user, thereby improving the use experience of the user.
The embodiment of the invention discloses a vehicle unlocking and locking control method based on a mobile terminal in a first aspect, which is characterized by comprising the following steps:
the method comprises the steps that an authorized monitoring module obtains a Bluetooth connection state, wherein the monitoring module is a program module which is arranged in the mobile terminal in advance;
calling the monitoring module to monitor the Bluetooth connection state;
and controlling the vehicle to trigger unlocking or locking according to the Bluetooth connection state.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, the step of acquiring the bluetooth connection status by the authorized listening module includes:
when a monitoring module receives a state acquisition instruction sent by a Bluetooth module, acquiring a random number in the state acquisition instruction, wherein the Bluetooth module is a Bluetooth module which is arranged in the mobile terminal in advance;
calculating the random number and a symmetric key in the monitoring module through the monitoring module to obtain a first authentication code, and sending the first authentication code to the Bluetooth module;
when the Bluetooth module receives the first authentication code, the Bluetooth module calculates the random number and a symmetric key in the Bluetooth module to obtain a second authentication code;
and when the first authentication code is the same as the second authentication code, authorizing the monitoring module to acquire a Bluetooth connection state.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, before the obtaining the first authentication code by calculating the random number and the symmetric key in the monitoring module by the monitoring module, the method further includes:
and carrying out code obfuscation operation on the symmetric key hard coded in the monitoring module, and carrying out code obfuscation operation on the symmetric key hard coded in the Bluetooth module.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, the monitoring module is in an application program of the mobile terminal, and the step of calling the monitoring module to monitor the bluetooth connection state includes:
and calling the monitoring module to monitor the universal attribute configuration file of the Bluetooth module so as to acquire the Bluetooth connection state.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, the monitoring module is integrated in an operating system of the mobile terminal, and the step of calling the monitoring module to monitor the bluetooth connection state includes:
registering a callback function of a Bluetooth connection event through the monitoring module;
and calling the callback function to acquire parameters for identifying the Bluetooth connection state from the universal access configuration file of the Bluetooth module so as to determine the Bluetooth connection state.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, the monitoring module is in an operating system of the mobile terminal, and the step of controlling the vehicle to trigger unlocking or locking according to the bluetooth connection state includes:
carrying out integrity check on the development kit of the application program of the mobile terminal;
and when the integrity check is passed, calling an interface corresponding to the Bluetooth connection state in the application program to control the vehicle to trigger unlocking or locking.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, the monitoring module is in an operating system of the mobile terminal, and the step of controlling the vehicle to trigger unlocking or locking according to the bluetooth connection state includes:
determining an application programming interface corresponding to the Bluetooth connection state from the application programs of the mobile terminal;
verifying a token of the application programming interface;
and when the token passes the verification, controlling the vehicle to trigger unlocking or locking through the application programming interface.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, the monitoring module is integrated in an application program of the mobile terminal, and the step of controlling the vehicle to trigger unlocking or locking according to the bluetooth connection state includes:
and when the Bluetooth calling authorization of the application program is in an authorized state, controlling the vehicle to trigger unlocking or locking through the application program by taking the Bluetooth connection state as a basis.
A second aspect of an embodiment of the present invention discloses a mobile terminal, including:
the authorization unit is used for authorizing the monitoring module to acquire a Bluetooth connection state, wherein the monitoring module is a program module which is arranged in the mobile terminal in advance;
the monitoring unit is used for calling the monitoring module to monitor the Bluetooth connection state;
and the control unit is used for controlling the vehicle to trigger unlocking or locking according to the Bluetooth connection state.
A third aspect of the embodiments of the present invention discloses another mobile terminal, including:
a memory storing executable program code;
a processor coupled with the memory;
the processor calls the executable program code stored in the memory to perform part or all of the steps of any one of the methods of the first aspect.
A fourth aspect of the present embodiments discloses a computer-readable storage medium storing a program code, where the program code includes instructions for performing part or all of the steps of any one of the methods of the first aspect.
A fifth aspect of embodiments of the present invention discloses a computer program product, which, when run on a computer, causes the computer to perform some or all of the steps of any one of the methods of the first aspect.
A sixth aspect of the present embodiment discloses an application publishing platform, where the application publishing platform is configured to publish a computer program product, where the computer program product is configured to, when running on a computer, cause the computer to perform part or all of the steps of any one of the methods in the first aspect.
Compared with the prior art, the embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, an authorized monitoring module acquires a Bluetooth connection state, wherein the monitoring module is a program module which is arranged in a mobile terminal in advance; calling a monitoring module to monitor the Bluetooth connection state; and controlling the vehicle to trigger unlocking or locking according to the Bluetooth connection state. Therefore, by implementing the embodiment of the invention, the monitoring module can be called to monitor the Bluetooth connection state after the monitoring module of the authorized mobile terminal acquires the Bluetooth connection state, and the unlocking or locking of the vehicle is controlled according to the Bluetooth connection state, so that the instruction for controlling the unlocking or locking of the vehicle is not required to be manually triggered by a user, the noninductive unlocking or locking of the vehicle is realized, and the use experience of the user is improved.
In addition, by implementing the embodiment of the invention, the first authentication code can be generated by calculation of the monitoring module and the second authentication code can be generated by calculation of the Bluetooth module, and when the first authentication code is the same as the second authentication code, the data transmission between the monitoring module and the Bluetooth module can be considered to be more reliable, so that the reliability of authorization is ensured. In addition, by implementing the embodiment of the invention, operations such as hard coding and code obfuscation can be performed on the symmetric keys in the monitoring module and the Bluetooth module, so that the external device cannot read the symmetric keys from the obfuscated codes in the monitoring module or the Bluetooth module, and the security of the symmetric keys in the monitoring module and the Bluetooth module is ensured. In addition, by implementing the embodiment of the invention, the monitoring module can directly call the universal attribute configuration file in the Bluetooth module under the condition that the monitoring module is in the operating system of the mobile terminal, and the Bluetooth connection state can be acquired from the universal attribute configuration file without using a call function, so that the speed of acquiring the Bluetooth connection state by the monitoring module is improved. In addition, by implementing the embodiment of the invention, the Bluetooth connection state can be acquired from the general access configuration file through the callback function registered by the monitoring module when the monitoring module is integrated in the application program, thereby overcoming the condition that the monitoring module cannot directly acquire the Bluetooth connection state from the Bluetooth module and improving the reliability of the monitoring module for acquiring the Bluetooth connection state. In addition, by implementing the embodiment of the invention, the integrity of the signature of the development kit of the application program can be verified when the monitoring module is in the operating system of the mobile terminal, and the interface corresponding to the Bluetooth connection state in the application program is called to control unlocking or locking of the vehicle after the integrity is verified, so that the condition that the calling interface of the application program is wrong is avoided, the accuracy of calling the interface corresponding to the Bluetooth connection state by the mobile terminal is ensured, and the accuracy of controlling unlocking or locking of the vehicle according to the Bluetooth connection state is improved. In addition, by implementing the embodiment of the invention, when the monitoring module is in the operating system of the mobile terminal and the token of the application programming interface corresponding to the Bluetooth connection state is verified, the vehicle can be controlled to trigger unlocking or locking through the application programming interface, the condition that the application program calls the application programming interface inaccurately is avoided, and the safety of the vehicle executing unlocking operation or locking operation is ensured. In addition, by implementing the embodiment of the invention, the application program can realize the operation of controlling the unlocking or locking of the vehicle according to the Bluetooth connection state only when the monitoring module is integrated in the application program of the mobile terminal and after the Bluetooth calling authorization of the application program is confirmed to be in the authorized state, thereby avoiding the situation that the application program illegally obtains the Bluetooth connection state and ensuring the legality of obtaining the Bluetooth connection state by the application program.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a schematic flow chart of a vehicle unlocking control method based on a mobile terminal according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of another method for controlling unlocking of a vehicle based on a mobile terminal according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of another mobile terminal disclosed in the embodiment of the present invention;
fig. 5 is a schematic structural diagram of another mobile terminal disclosed in the embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It is to be noted that the terms "comprises" and "comprising" and any variations thereof in the embodiments and drawings of the present invention are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
The embodiment of the invention discloses a vehicle unlocking and locking control method based on a mobile terminal and the mobile terminal, which can realize the noninductive unlocking or locking of a vehicle and improve the use experience of a user. The following are detailed below.
Example one
Referring to fig. 1, fig. 1 is a schematic flowchart illustrating a vehicle unlocking control method based on a mobile terminal according to an embodiment of the present invention. As shown in fig. 1, the vehicle unlocking control method based on the mobile terminal may include the steps of:
101. the mobile terminal authorizes the monitoring module to acquire the Bluetooth connection state, wherein the monitoring module is a program module which is arranged in the mobile terminal in advance.
In the embodiment of the invention, the mobile terminal can be a terminal such as a smart phone and a smart bracelet, the mobile terminal can authorize the monitoring module to monitor the Bluetooth module so as to acquire the Bluetooth connection state in the Bluetooth module, the preset Bluetooth module in the mobile terminal can establish the Bluetooth connection state between the mobile terminal and the Bluetooth device when detecting that the Bluetooth device exists in the environment where the mobile terminal is located, the Bluetooth device can be a Bluetooth device (such as a Bluetooth device outside a vehicle) arranged on the vehicle, and the mobile terminal can perform Bluetooth connection with the Bluetooth device of the vehicle through the Bluetooth module so as to control the vehicle through near-field communication modes such as Bluetooth connection and the like, thereby simplifying the control of the vehicle by a user through a manual mode on the mobile terminal.
In this embodiment of the present invention, the bluetooth module may be a bluetooth Protocol stack, the bluetooth Protocol stack may include a Controller (Controller) and a Host (Host), where the Controller may include a Host Controller Interface (HCI), a Link Layer (Link Layer), and a physical Layer (Phy Layer), and the Host may include a General Access Profile (GAP), a general Attribute Profile (GATT), an smp (security management Protocol), an att (Attribute Protocol), and an L2CAP (Logical Link Control and association Protocol), where the L2CAP may implement functions of linking an upper Layer application program and the Controller, and when a bluetooth connection event occurs in the Controller, a bluetooth connection state in the Controller may be uploaded to the application program through the L2 CAP.
102. The mobile terminal calls the monitoring module to monitor the Bluetooth connection state.
In the embodiment of the invention, the monitoring module can be arranged in an operating system of the mobile terminal and is not integrated in an application program of the mobile terminal, and the monitoring module can also be integrated in the application program of the mobile terminal; the monitoring module can be called to monitor the Bluetooth connection state in different modes according to different positions of the monitoring module, and when the monitoring module is arranged in an operating system of the mobile terminal and is not integrated in an application program of the mobile terminal, the mobile terminal can acquire parameters for identifying the Bluetooth connection state from a GAP (GAP application program) through a registered callback function, so that the Bluetooth connection state is determined according to the acquired parameters; when the monitoring module is integrated in the application program of the mobile terminal, the mobile terminal can directly call the GATT in the Bluetooth module through the monitoring module, so that the monitoring module can quickly acquire the Bluetooth connection state.
For example, when the listening module is disposed in the operating system of the mobile terminal and is not integrated in the application program of the mobile terminal, the completion or disconnection of the bluetooth connection EVENT may be represented by a function gaptaskaventhandler of a GAP in the bluetooth module, where when a parameter MSG _ L2CAP _ LE _ CONN _ COMPL _ EVENT occurs in the function gaptaskaventhandler, the parameter MSG _ L2CAP _ LE _ CONN _ COMPL _ EVENT may be considered to represent the completion of the bluetooth connection EVENT; when a parameter MSG _ L2CAP _ LE _ disconnect _ complete _ Event occurs in the function gap Task Event Handler, the parameter MSG _ L2CAP _ LE _ disconnect _ complete _ Event may be considered to represent disconnection of a bluetooth connection Event, and the listening module may register a callback function to listen to the function gap Task Event Handler, and determine the bluetooth connection state according to the monitored parameter MSG _ L2CAP _ LE _ connect _ complete _ Event or the monitored parameter MSG _ L2CAP _ LE _ disconnect _ complete _ Event.
For example, when the sniffing module is integrated in an application program of the mobile terminal, the bluetooth connection state may also be represented by a parameter MSG _ L2CAP _ LE _ CONN _ complete _ EVENT or a parameter MSG _ L2CAP _ LE _ disconnect _ complex _ EVENT in a GATT layer in the bluetooth module, and the mobile terminal may control the sniffing module integrated in the application program to directly call a parameter in the GATT layer through a function mduetoothgatt, where the function mduetoothgatt is device.
103. And the mobile terminal controls the vehicle to trigger unlocking or locking according to the Bluetooth connection state.
In the embodiment of the invention, different bluetooth connection states can correspond to different vehicle control instructions, for example, when the bluetooth connection state of the mobile terminal is in a connection state with the vehicle-mounted electronic device, it can be considered that a user of the mobile terminal needs to start the vehicle, and thus the vehicle control instruction can be an instruction for controlling the vehicle to trigger unlocking; when the bluetooth connection state of the mobile terminal is in a disconnection state with the vehicle-mounted electronic device, it may be considered that the user of the mobile terminal needs to turn off the vehicle, and thus the vehicle control instruction may be an instruction for controlling the vehicle to trigger the locking.
As an alternative embodiment, the manner in which the vehicle-mounted electronic device controls the vehicle to perform the operation corresponding to the vehicle control instruction may be: the vehicle-mounted electronic equipment can read the equipment fingerprint and the first check code from the vehicle control instruction sent by the mobile terminal through the vehicle-mounted Bluetooth module, the equipment fingerprint and the first check code can be sent together when the mobile terminal sends the vehicle control instruction to the vehicle-mounted electronic equipment, and the first check code can be obtained by the mobile terminal through calculation according to the equipment fingerprint and the first service key; the vehicle-mounted electronic equipment can search a prestored second service key corresponding to the equipment fingerprint through the vehicle-mounted Bluetooth module, and a second check code is obtained through calculation according to the equipment fingerprint and the second service key; when the first check code is the same as the second check code, the vehicle-mounted electronic equipment can calculate a first random value and a second service key which are randomly generated through the vehicle-mounted Bluetooth module to obtain an exclusive or value; the vehicle-mounted electronic equipment can send a first response containing an exclusive OR value to the mobile terminal through the vehicle-mounted Bluetooth module, so that the mobile terminal reads the exclusive OR value from the first response, obtains a second random value by carrying out exclusive OR on the exclusive OR value and the first service key, obtains a third check code by calculation according to the second random value, the equipment fingerprint and the first service key, and sends a second response containing the third check code to the vehicle-mounted electronic equipment; the vehicle-mounted electronic equipment can obtain a fourth check code through the vehicle-mounted Bluetooth module according to the equipment fingerprint, the second service key and the first random value; when the third check code is the same as the fourth check code, the vehicle-mounted electronic equipment can confirm that the mobile terminal passes the authentication through the vehicle-mounted Bluetooth module, and can transmit an anti-theft authentication instruction to a vehicle body control module of the vehicle-mounted electronic equipment through the vehicle-mounted Bluetooth module so that the vehicle body control module can perform anti-theft authentication on the vehicle; when the anti-theft authentication passes the information, the vehicle-mounted electronic equipment can transmit a vehicle control command to the vehicle body control module through the vehicle-mounted Bluetooth module so that the vehicle body control module executes an operation corresponding to the vehicle control command; when the vehicle body control module detects that the vehicle control command comprises an unlocking command, the vehicle-mounted electronic equipment can trigger the voice recognition module to acquire voice information of a user of the vehicle through the vehicle body control module; the vehicle-mounted electronic equipment can verify the authenticity of the voice information through the voice recognition module; when the voice information passes the verification, the vehicle-mounted electronic equipment can generate an authentication confirmation character through the voice recognition module, randomly generate a third random value and calculate to obtain a verification code according to the third random value and the authentication confirmation character; the vehicle-mounted electronic equipment can send a voice recognition request containing an authentication confirmation character, a verification code and a third random value to a safety module of the vehicle-mounted electronic equipment through the voice recognition module, so that the safety module can calculate to obtain a current authentication character according to the verification code and the third random value; when the current authentication character is the same as the authentication confirmation character, the vehicle-mounted electronic equipment can execute the operation corresponding to the vehicle control instruction through the whole vehicle control module. Therefore, the vehicle-mounted electronic equipment can perform multiple anti-theft authentications before executing the operation corresponding to the vehicle control command, and the safety of the vehicle control performed by the vehicle-mounted electronic equipment is improved.
In the method described in fig. 1, the vehicle can be unlocked or locked without sensing, and the user experience is improved. In addition, the method described in fig. 1 is implemented, and the safety of the vehicle control of the vehicle-mounted electronic device is improved.
Example two
Referring to fig. 2, fig. 2 is a schematic flowchart illustrating another vehicle unlocking control method based on a mobile terminal according to an embodiment of the present invention. As shown in fig. 2, the vehicle unlocking control method based on the mobile terminal may include the steps of:
201. when the monitoring module receives a state acquisition instruction sent by the Bluetooth module, the mobile terminal acquires the random number in the state acquisition instruction, wherein the Bluetooth module is a Bluetooth module which is arranged in the mobile terminal in advance, and the monitoring module is a program module which is arranged in the mobile terminal in advance.
In the embodiment of the invention, the Bluetooth module can send the state acquisition instruction to the monitoring module when detecting that the Bluetooth connection state changes, so that the monitoring module can read the Bluetooth connection state from the Bluetooth module according to the state acquisition instruction.
202. The mobile terminal calculates the random number and the symmetric key in the monitoring module through the monitoring module to obtain a first authentication code, and sends the first authentication code to the Bluetooth module.
In the embodiment of the present invention, the monitoring module may operate the random number and the symmetric key in the monitoring module through a Hash-based message Authentication Code (HMAC) algorithm to obtain a first Authentication Code, and the monitoring module may send the current Authentication Code to the bluetooth module, so that the bluetooth module may also operate the random number and the symmetric key in the bluetooth module through the HMAC algorithm to obtain a second Authentication Code.
In the embodiment of the present invention, the algorithm for the mobile terminal to calculate the random number and the symmetric key in the monitoring module through the monitoring module may be an HMAC algorithm, such as HMAC-MD5, HMAC-SHA256, or HMAC-512, and the embodiment of the present invention is not limited thereto.
As an optional implementation manner, before the mobile terminal performs step 202, the following steps may also be performed:
and the mobile terminal performs code obfuscation operation on the hard-coded symmetric key in the monitoring module and performs code obfuscation operation on the hard-coded symmetric key in the Bluetooth module.
By implementing the implementation mode, the same symmetric key can be respectively subjected to operations such as hard coding, code obfuscation and the like in the monitoring module and the bluetooth module in advance to obtain the symmetric key in the monitoring module and the symmetric key in the bluetooth module, so that the external device cannot read the symmetric key from the obfuscated code in the monitoring module or the bluetooth module, and the security of the symmetric key in the monitoring module and the bluetooth module is ensured.
In the embodiment of the invention, the monitoring module and the Bluetooth module can directly embed the same symmetric key into respective source codes in a hard coding mode, so that the key codes of the hard-coded symmetric keys in the monitoring module and the Bluetooth module are not changed. In addition, the code obfuscation is only to change the format or replace the source code containing the symmetric key in the sniffing module and the bluetooth module, and the nature of the source code is not changed, so that the symmetric key in the sniffing module and the bluetooth module after the code obfuscation is not changed substantially.
203. And when the Bluetooth module receives the first authentication code, the mobile terminal calculates the random number and the symmetric key in the Bluetooth module through the Bluetooth module to obtain a second authentication code.
In the embodiment of the invention, in order to ensure the correctness of authorization, the algorithm used by the Bluetooth module for calculating the random number and the symmetric key is required to be the same as the algorithm used by the monitoring module for calculating the random number and the symmetric key.
204. And when the first authentication code is the same as the second authentication code, the mobile terminal authorizes the monitoring module to acquire the Bluetooth connection state.
In the embodiment of the present invention, when the above steps 201 to 204 are implemented, the monitoring module may calculate the first authentication code according to the random number and the symmetric key, and the bluetooth module may calculate the second authentication code according to the random number and the symmetric key, and since the symmetric keys in the monitoring module and the bluetooth module are the same, only when the first authentication code and the second authentication code are the same, it may be considered that data transmission between the monitoring module and the bluetooth module is reliable, that is, the monitoring module may obtain the authorization of the bluetooth connection state of the bluetooth module, thereby ensuring the reliability of the authorization.
205. The mobile terminal calls the monitoring module to monitor the Bluetooth connection state.
In the embodiment of the invention, the monitoring module can be positioned in an operating system of the mobile terminal or can be integrated in an application program of the mobile terminal, so that different modes for calling the monitoring module to monitor the Bluetooth connection state are correspondingly provided for different positions of the monitoring module.
Optionally, when the monitoring module is in the application program of the mobile terminal, the manner in which the mobile terminal calls the monitoring module to monitor the bluetooth connection state may specifically be:
the mobile terminal calls the monitoring module to monitor the general attribute configuration file of the Bluetooth module so as to acquire the Bluetooth connection state.
By implementing the implementation mode, the GATT in the Bluetooth module can be directly called by the monitoring module under the condition that the monitoring module is in the application program of the mobile terminal, so that the monitoring module can quickly acquire the Bluetooth connection state.
Optionally, when the monitoring module is integrated in the operating system of the mobile terminal, the manner in which the mobile terminal calls the monitoring module to monitor the bluetooth connection state may specifically be:
the mobile terminal registers a callback function of the Bluetooth connection event through the monitoring module;
and the mobile terminal calls a callback function to acquire parameters for identifying the Bluetooth connection state from the general access configuration file of the Bluetooth module so as to determine the Bluetooth connection state.
When the monitoring module is integrated in the operating system, the callback function is registered by the monitoring module, so that the callback function acquires the parameter for identifying the Bluetooth connection state from the GAP, the Bluetooth connection state is determined according to the acquired parameter, the mobile terminal acquires the Bluetooth connection state in different modes according to different positions of the monitoring module, and the reliability of acquiring the Bluetooth connection state by the monitoring module is improved.
206. And the mobile terminal controls the vehicle to trigger unlocking or locking according to the Bluetooth connection state.
As an optional implementation manner, when the monitoring module is in the operating system of the mobile terminal, the manner that the mobile terminal controls the vehicle to trigger unlocking or locking according to the bluetooth connection state may include the following steps:
the mobile terminal carries out integrity verification on the development kit of the application program of the mobile terminal;
and when the integrity check passes, the mobile terminal calls an interface corresponding to the Bluetooth connection state in the application program to control the vehicle to trigger unlocking or locking.
When the monitoring module is in the operating system of the mobile terminal, the development kit signature of the application program of the mobile terminal can be acquired, so that the integrity of the application program can be verified according to the development kit signature, if the integrity of the application program passes the verification, the mobile terminal can be considered to call an interface corresponding to the Bluetooth connection state in the application program, the vehicle is controlled to be unlocked or locked according to the interface, the accuracy of calling the interface corresponding to the Bluetooth connection state by the mobile terminal is ensured, and the accuracy of controlling the vehicle to be unlocked or locked according to the Bluetooth connection state is improved.
In the embodiment of the present invention, the integrity check of the development kit of the application program of the mobile terminal by the mobile terminal may be performed by: the mobile terminal can obtain a signature of the development kit, decrypt the signature of the development kit to obtain a first abstract, and can calculate the development kit of the application program through an information abstract algorithm to obtain a second abstract of the development kit of the application program.
Optionally, when the monitoring module is in the operating system of the mobile terminal, the method for controlling the vehicle to trigger unlocking or locking by the mobile terminal according to the bluetooth connection state may further include the following steps:
the mobile terminal determines an Application Programming Interface (API) corresponding to the Bluetooth connection state from Application programs of the mobile terminal;
the mobile terminal verifies a Token (Token) of the application programming interface;
when the token is verified, the mobile terminal controls the vehicle to trigger unlocking or locking through the application programming interface.
When the monitoring module is in the operating system of the mobile terminal, the token of the API corresponding to the bluetooth connection state can be verified, and when the token of the API is verified to be locked (lock), the token can be considered to be not verified; when the token of the API is verified to be unlocked (unlock), the token can be considered to be verified to pass, and only when the token is verified to pass, the vehicle can be controlled to trigger unlocking or locking through the API, so that the safety of the vehicle for executing unlocking operation or locking operation is ensured.
As an alternative implementation, when the monitoring module is integrated in an application program of the mobile terminal, the manner that the mobile terminal controls the vehicle to trigger unlocking or locking according to the bluetooth connection state may include the following steps:
when the Bluetooth calling authorization of the application program is in an authorized state, the mobile terminal controls the vehicle to trigger unlocking or locking through the application program according to the Bluetooth connection state.
When the monitoring module is integrated in the application program of the mobile terminal, the calling authorization of the application program for the Bluetooth connection state can be verified, the application program can call the Bluetooth connection state only when the Bluetooth calling authorization of the application program is in the authorized state, and then the unlocking or locking of the vehicle is controlled according to the Bluetooth connection state, so that the legality of the application program for acquiring the Bluetooth connection state is ensured.
In the embodiment of the invention, the state of the bluetooth call authorization of the application program can be the authorization information input by the user, which is acquired by outputting the authorization inquiry information when the mobile terminal installs the application program, and the state of the bluetooth call authorization of the application program can be determined to be an authorized state or an unauthorized state according to the authorization information input by the user.
In the method described in fig. 2, the vehicle can be unlocked or locked without sensing, and the use experience of the user is improved. In addition, the method described in fig. 2 is implemented to ensure the security of the symmetric key in the sniffer module and the bluetooth module. In addition, the method described in fig. 2 is implemented, and the reliability of authorization is guaranteed. In addition, the method described in fig. 2 can be implemented to enable the monitoring module to quickly acquire the bluetooth connection status. In addition, the method described in fig. 2 is implemented, so that the reliability of the monitoring module for acquiring the bluetooth connection state is improved. In addition, the method described in fig. 2 is implemented, and the accuracy of controlling the unlocking or locking of the vehicle according to the bluetooth connection state is improved. In addition, the method described in fig. 2 ensures the safety of the vehicle in performing an unlocking operation or a locking operation. In addition, the method described in fig. 2 is implemented to ensure the validity of the application program for acquiring the bluetooth connection state.
EXAMPLE III
Referring to fig. 3, fig. 3 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention, and as shown in fig. 3, the mobile terminal may include:
the authorization unit 301 is configured to authorize the monitoring module to obtain a bluetooth connection status, where the monitoring module is a program module pre-installed in the mobile terminal.
And the monitoring unit 302 is configured to invoke the monitoring module authorized by the authorization unit 301 to monitor the bluetooth connection state.
As an optional implementation manner, the manner in which the monitoring unit 302 invokes the monitoring module to monitor the bluetooth connection state may specifically be:
and when the monitoring module is in the application program of the mobile terminal, calling the monitoring module to monitor the universal attribute configuration file of the Bluetooth module so as to acquire the Bluetooth connection state.
By implementing the implementation mode, the GATT in the Bluetooth module can be directly called by the monitoring module under the condition that the monitoring module is in the application program of the mobile terminal, so that the monitoring module can quickly acquire the Bluetooth connection state.
As an optional implementation manner, the manner in which the monitoring unit 302 invokes the monitoring module to monitor the bluetooth connection state may specifically be:
when the monitoring module is integrated in an operating system of the mobile terminal, a callback function of a Bluetooth connection event is registered through the monitoring module;
and calling a callback function to acquire parameters for identifying the Bluetooth connection state from the universal access configuration file of the Bluetooth module so as to determine the Bluetooth connection state.
When the monitoring module is integrated in the operating system, the callback function is registered by the monitoring module, so that the callback function acquires the parameter for identifying the Bluetooth connection state from the GAP, the Bluetooth connection state is determined according to the acquired parameter, the mobile terminal acquires the Bluetooth connection state in different modes according to different positions of the monitoring module, and the reliability of acquiring the Bluetooth connection state by the monitoring module is improved.
And the control unit 303 is used for controlling the vehicle to trigger unlocking or locking according to the bluetooth connection state obtained by the monitoring unit 302.
As an optional implementation manner, the manner in which the control unit 303 controls the vehicle to trigger unlocking or locking according to the bluetooth connection state may specifically be:
when the monitoring module is in an operating system of the mobile terminal, carrying out integrity verification on a development kit of an application program of the mobile terminal;
and when the integrity check is passed, calling an interface corresponding to the Bluetooth connection state in the application program to control the vehicle to trigger unlocking or locking.
When the monitoring module is in the operating system of the mobile terminal, the development kit signature of the application program of the mobile terminal can be acquired, so that the integrity of the application program can be verified according to the development kit signature, if the integrity of the application program passes the verification, the mobile terminal can be considered to call an interface corresponding to the Bluetooth connection state in the application program, the vehicle is controlled to be unlocked or locked according to the interface, the accuracy of calling the interface corresponding to the Bluetooth connection state by the mobile terminal is ensured, and the accuracy of controlling the vehicle to be unlocked or locked according to the Bluetooth connection state is improved.
Optionally, the manner in which the control unit 303 controls the vehicle to trigger unlocking or locking according to the bluetooth connection state may specifically be:
when the monitoring module is in an operating system of the mobile terminal, determining an application programming interface corresponding to the Bluetooth connection state from application programs of the mobile terminal;
verifying a token of an application programming interface;
when the token is verified, the vehicle is controlled by the application programming interface to trigger unlocking or locking.
When the monitoring module is in the operating system of the mobile terminal, the token of the API corresponding to the Bluetooth connection state can be verified, and only when the token is verified, the vehicle can be controlled to trigger unlocking or locking through the API, so that the safety of the vehicle for executing unlocking or locking operation is ensured.
As an optional implementation manner, the manner in which the control unit 303 controls the vehicle to trigger unlocking or locking according to the bluetooth connection state may specifically be:
when the monitoring module is integrated in the application program of the mobile terminal, when the Bluetooth calling authorization of the application program is in an authorized state, the Bluetooth connection state is taken as the basis, and the vehicle is controlled to be triggered to unlock or lock through the application program.
When the monitoring module is integrated in the application program of the mobile terminal, the calling authorization of the application program for the Bluetooth connection state can be verified, the application program can call the Bluetooth connection state only when the Bluetooth calling authorization of the application program is in the authorized state, and then the unlocking or locking of the vehicle is controlled according to the Bluetooth connection state, so that the legality of the application program for acquiring the Bluetooth connection state is ensured.
Optionally, the manner in which the vehicle-mounted electronic device controls the vehicle to execute the operation corresponding to the vehicle control instruction may specifically be: the vehicle-mounted electronic equipment can read the equipment fingerprint and the first check code from the vehicle control instruction sent by the mobile terminal through the vehicle-mounted Bluetooth module, the equipment fingerprint and the first check code can be sent together when the mobile terminal sends the vehicle control instruction to the vehicle-mounted electronic equipment, and the first check code can be obtained by the mobile terminal through calculation according to the equipment fingerprint and the first service key; the vehicle-mounted electronic equipment can search a prestored second service key corresponding to the equipment fingerprint through the vehicle-mounted Bluetooth module, and a second check code is obtained through calculation according to the equipment fingerprint and the second service key; when the first check code is the same as the second check code, the vehicle-mounted electronic equipment can calculate a first random value and a second service key which are randomly generated through the vehicle-mounted Bluetooth module to obtain an exclusive or value; the vehicle-mounted electronic equipment can send a first response containing an exclusive OR value to the mobile terminal through the vehicle-mounted Bluetooth module, so that the mobile terminal reads the exclusive OR value from the first response, obtains a second random value by carrying out exclusive OR on the exclusive OR value and the first service key, obtains a third check code by calculation according to the second random value, the equipment fingerprint and the first service key, and sends a second response containing the third check code to the vehicle-mounted electronic equipment; the vehicle-mounted electronic equipment can obtain a fourth check code through the vehicle-mounted Bluetooth module according to the equipment fingerprint, the second service key and the first random value; when the third check code is the same as the fourth check code, the vehicle-mounted electronic equipment can confirm that the mobile terminal passes the authentication through the vehicle-mounted Bluetooth module, and can transmit an anti-theft authentication instruction to a vehicle body control module of the vehicle-mounted electronic equipment through the vehicle-mounted Bluetooth module so that the vehicle body control module can perform anti-theft authentication on the vehicle; when the anti-theft authentication passes the information, the vehicle-mounted electronic equipment can transmit a vehicle control command to the vehicle body control module through the vehicle-mounted Bluetooth module so that the vehicle body control module executes an operation corresponding to the vehicle control command; when the vehicle body control module detects that the vehicle control command comprises an unlocking command, the vehicle-mounted electronic equipment can trigger the voice recognition module to acquire voice information of a user of the vehicle through the vehicle body control module; the vehicle-mounted electronic equipment can verify the authenticity of the voice information through the voice recognition module; when the voice information passes the verification, the vehicle-mounted electronic equipment can generate an authentication confirmation character through the voice recognition module, randomly generate a third random value and calculate to obtain a verification code according to the third random value and the authentication confirmation character; the vehicle-mounted electronic equipment can send a voice recognition request containing an authentication confirmation character, a verification code and a third random value to a safety module of the vehicle-mounted electronic equipment through the voice recognition module, so that the safety module can calculate to obtain a current authentication character according to the verification code and the third random value; when the current authentication character is the same as the authentication confirmation character, the vehicle-mounted electronic equipment can execute the operation corresponding to the vehicle control instruction through the whole vehicle control module. Therefore, the vehicle-mounted electronic equipment can perform multiple anti-theft authentications before executing the operation corresponding to the vehicle control command, and the safety of the vehicle control performed by the vehicle-mounted electronic equipment is improved.
Therefore, the mobile terminal described in fig. 3 can realize the non-inductive unlocking or locking of the vehicle, and improves the use experience of the user. In addition, the mobile terminal described in fig. 3 is implemented, so that the monitoring module can quickly acquire the bluetooth connection state. . In addition, the mobile terminal described in fig. 3 is implemented, so that the reliability of the monitoring module for acquiring the bluetooth connection state is improved. In addition, the mobile terminal described in fig. 3 is implemented, so that the accuracy of controlling the unlocking or locking of the vehicle according to the bluetooth connection state is improved. In addition, the implementation of the mobile terminal described in fig. 3 ensures the safety of the vehicle performing the unlocking operation or the locking operation. In addition, the mobile terminal described in fig. 3 is implemented to ensure the validity of the application program for acquiring the bluetooth connection state. In addition, the mobile terminal described in fig. 3 is implemented, so that the safety of the vehicle control of the vehicle-mounted electronic device is improved.
Example four
Referring to fig. 4, fig. 3 is a schematic structural diagram of another mobile terminal according to an embodiment of the present invention. The mobile terminal shown in fig. 4 is optimized by the mobile terminal shown in fig. 3. Compared to the mobile terminal shown in fig. 3, the authorization unit 301 of the mobile terminal shown in fig. 4 may include:
the obtaining subunit 3011 is configured to, when the monitoring module receives a state obtaining instruction sent by a bluetooth module, obtain a random number in the state obtaining instruction, where the bluetooth module is a bluetooth module pre-installed in the mobile terminal.
The first calculating subunit 3012 is configured to calculate, through the monitoring module, the random number acquired by the acquiring subunit 3011 and the symmetric key in the monitoring module to obtain a first authentication code, and send the first authentication code to the bluetooth module.
And the second calculating subunit 3013, configured to calculate, when the bluetooth module receives the first authentication code, the random number and the symmetric key in the bluetooth module through the bluetooth module, to obtain a second authentication code.
And the authorization subunit 3014 is configured to, when the first authentication code obtained by the first calculation subunit 3012 is the same as the second authentication code obtained by the second calculation subunit 3013, authorize the monitoring module to obtain a bluetooth connection state.
In the embodiment of the invention, the monitoring module can be used for calculating the first authentication code according to the random number and the symmetric key, and the Bluetooth module can be used for calculating the second authentication code according to the random number and the symmetric key.
As an alternative implementation, the mobile terminal shown in fig. 4 may further include:
the code obfuscating unit 304 is configured to perform a code obfuscation operation on the symmetric key hard-coded in the sniffing module and perform a code obfuscation operation on the symmetric key hard-coded in the bluetooth module before the first computing subunit 3012 computes the random number and the symmetric key in the sniffing module through the sniffing module to obtain the first authentication code.
By implementing the implementation mode, the same symmetric key can be respectively subjected to operations such as hard coding, code obfuscation and the like in the monitoring module and the bluetooth module in advance to obtain the symmetric key in the monitoring module and the symmetric key in the bluetooth module, so that the external device cannot read the symmetric key from the obfuscated code in the monitoring module or the bluetooth module, and the security of the symmetric key in the monitoring module and the bluetooth module is ensured.
Therefore, the mobile terminal described in fig. 4 can realize the non-inductive unlocking or locking of the vehicle, and improves the use experience of the user. In addition, the mobile terminal described in fig. 4 is implemented, and the reliability of authorization is guaranteed. In addition, the mobile terminal described in fig. 4 is implemented, so that the security of the symmetric key in the monitoring module and the bluetooth module is ensured.
EXAMPLE five
Referring to fig. 5, fig. 5 is a schematic structural diagram of another mobile terminal according to an embodiment of the present invention. As shown in fig. 5, the electronic device may include:
a memory 501 in which executable program code is stored;
a processor 502 coupled to a memory 501;
wherein, the processor 502 calls the executable program code stored in the memory 501 to execute part or all of the steps of the method in the above method embodiments.
The embodiment of the invention also discloses a computer readable storage medium, wherein the computer readable storage medium stores program codes, wherein the program codes comprise instructions for executing part or all of the steps of the method in the above method embodiments.
Embodiments of the present invention also disclose a computer program product, wherein, when the computer program product is run on a computer, the computer is caused to execute part or all of the steps of the method as in the above method embodiments.
The embodiment of the present invention also discloses an application publishing platform, wherein the application publishing platform is used for publishing a computer program product, and when the computer program product runs on a computer, the computer is caused to execute part or all of the steps of the method in the above method embodiments.
It should be appreciated that reference throughout this specification to "an embodiment of the present invention" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present invention. Thus, the appearances of the phrase "in embodiments of the invention" appearing in various places throughout the specification are not necessarily all referring to the same embodiments. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. Those skilled in the art should also appreciate that the embodiments described in this specification are exemplary and alternative embodiments, and that the acts and modules illustrated are not required in order to practice the invention.
In various embodiments of the present invention, it should be understood that the sequence numbers of the above-mentioned processes do not imply an inevitable order of execution, and the execution order of the processes should be determined by their functions and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
In addition, the terms "system" and "network" are often used interchangeably herein. It should be understood that the term "and/or" herein is merely one type of association relationship describing an associated object, meaning that three relationships may exist, for example, a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
In the embodiments provided herein, it should be understood that "B corresponding to a" means that B is associated with a from which B can be determined. It should also be understood, however, that determining B from a does not mean determining B from a alone, but may also be determined from a and/or other information.
It will be understood by those skilled in the art that all or part of the steps in the methods of the embodiments described above may be implemented by hardware instructions of a program, and the program may be stored in a computer-readable storage medium, where the storage medium includes Read-Only Memory (ROM), Random Access Memory (RAM), Programmable Read-Only Memory (PROM), Erasable Programmable Read-Only Memory (EPROM), One-time Programmable Read-Only Memory (OTPROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Compact Disc Read-Only Memory (CD-ROM), or other Memory, such as a magnetic disk, or a combination thereof, A tape memory, or any other medium readable by a computer that can be used to carry or store data.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated units, if implemented as software functional units and sold or used as a stand-alone product, may be stored in a computer accessible memory. Based on such understanding, the technical solution of the present invention, which is a part of or contributes to the prior art in essence, or all or part of the technical solution, can be embodied in the form of a software product, which is stored in a memory and includes several requests for causing a computer device (which may be a personal computer, a server, a network device, or the like, and may specifically be a processor in the computer device) to execute part or all of the steps of the above-described method of each embodiment of the present invention.
The vehicle unlocking and locking control method based on the mobile terminal and the mobile terminal disclosed by the embodiment of the invention are described in detail, a specific example is applied in the text to explain the principle and the implementation mode of the invention, and the description of the embodiment is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.
Claims (8)
1. A vehicle unlocking and locking control method based on a mobile terminal is characterized by comprising the following steps:
respectively carrying out code obfuscation operation on the symmetric key hard coded in the monitoring module and the symmetric key hard coded in the Bluetooth module; the monitoring module is a program module which is arranged in the mobile terminal in advance; the Bluetooth module is a Bluetooth module which is arranged in the mobile terminal in advance;
when a monitoring module receives a state acquisition instruction sent by a Bluetooth module, acquiring a random number in the state acquisition instruction;
calculating the random number and a symmetric key in the monitoring module through the monitoring module to obtain a first authentication code, and sending the first authentication code to the Bluetooth module;
when the Bluetooth module receives the first authentication code, the Bluetooth module calculates the random number and a symmetric key in the Bluetooth module to obtain a second authentication code;
when the first authentication code is the same as the second authentication code, authorizing the monitoring module to acquire a Bluetooth connection state;
calling the monitoring module to monitor the Bluetooth connection state;
and controlling the vehicle to trigger unlocking or locking according to the Bluetooth connection state.
2. The vehicle unlocking and locking control method based on the mobile terminal as claimed in claim 1, wherein the monitoring module is in an application program of the mobile terminal, and the step of calling the monitoring module to monitor the bluetooth connection state comprises:
and calling the monitoring module to monitor the universal attribute configuration file of the Bluetooth module so as to acquire the Bluetooth connection state.
3. The method according to claim 1, wherein the monitoring module is integrated into an operating system of the mobile terminal, and the step of invoking the monitoring module to monitor the bluetooth connection status comprises:
registering a callback function of a Bluetooth connection event through the monitoring module;
and calling the callback function to acquire parameters for identifying the Bluetooth connection state from the universal access configuration file of the Bluetooth module so as to determine the Bluetooth connection state.
4. The vehicle unlocking and locking control method based on the mobile terminal according to claim 1, wherein the monitoring module is in an operating system of the mobile terminal, and the step of controlling the vehicle to trigger unlocking or locking according to the Bluetooth connection state comprises:
carrying out integrity check on the development kit of the application program of the mobile terminal;
and when the integrity check is passed, calling an interface corresponding to the Bluetooth connection state in the application program to control the vehicle to trigger unlocking or locking.
5. The vehicle unlocking and locking control method based on the mobile terminal according to claim 1, wherein the monitoring module is in an operating system of the mobile terminal, and the step of controlling the vehicle to trigger unlocking or locking according to the Bluetooth connection state comprises:
determining an application programming interface corresponding to the Bluetooth connection state from the application programs of the mobile terminal;
verifying a token of the application programming interface;
and when the token passes the verification, controlling the vehicle to trigger unlocking or locking through the application programming interface.
6. The vehicle unlocking and locking control method based on the mobile terminal according to claim 1, wherein the monitoring module is integrated in an application program of the mobile terminal, and the step of controlling the vehicle to trigger unlocking or locking according to the Bluetooth connection state comprises:
and when the Bluetooth calling authorization of the application program is in an authorized state, controlling the vehicle to trigger unlocking or locking through the application program by taking the Bluetooth connection state as a basis.
7. A mobile terminal, comprising:
the authorization unit is used for authorizing the monitoring module to acquire a Bluetooth connection state, wherein the monitoring module is a program module which is arranged in the mobile terminal in advance;
the monitoring unit is used for calling the monitoring module to monitor the Bluetooth connection state;
the control unit is used for controlling the vehicle to trigger unlocking or locking according to the Bluetooth connection state;
the authorization unit includes:
the acquisition subunit is used for acquiring the random number in the state acquisition instruction when the monitoring module receives the state acquisition instruction sent by the Bluetooth module, wherein the Bluetooth module is a Bluetooth module which is arranged in the mobile terminal in advance;
the first calculating subunit is configured to calculate, through the monitoring module, the random number acquired by the acquiring subunit and the symmetric key in the monitoring module to obtain a first authentication code, and send the first authentication code to the bluetooth module;
the second calculating subunit is used for calculating the random number and the symmetric key in the Bluetooth module through the Bluetooth module to obtain a second authentication code when the Bluetooth module receives the first authentication code;
the authorization subunit is used for authorizing the monitoring module to acquire a Bluetooth connection state when the first authentication code obtained by the first calculation subunit is the same as the second authentication code obtained by the second calculation subunit;
and, the mobile terminal further comprises:
and the code obfuscating unit is used for performing code obfuscation operation on the hard-coded symmetric key in the monitoring module and performing code obfuscation operation on the hard-coded symmetric key in the Bluetooth module before the first calculating subunit calculates the random number and the symmetric key in the monitoring module through the monitoring module to obtain a first authentication code.
8. A computer-readable storage medium, characterized in that it stores a computer program that causes a computer to execute the method of any one of claims 1 to 6.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910680658.4A CN110395216B (en) | 2019-07-25 | 2019-07-25 | Vehicle unlocking and locking control method based on mobile terminal and mobile terminal |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910680658.4A CN110395216B (en) | 2019-07-25 | 2019-07-25 | Vehicle unlocking and locking control method based on mobile terminal and mobile terminal |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN110395216A CN110395216A (en) | 2019-11-01 |
| CN110395216B true CN110395216B (en) | 2021-02-19 |
Family
ID=68325055
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201910680658.4A Active CN110395216B (en) | 2019-07-25 | 2019-07-25 | Vehicle unlocking and locking control method based on mobile terminal and mobile terminal |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN110395216B (en) |
Family Cites Families (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2011231567A (en) * | 2010-04-30 | 2011-11-17 | Tokai Rika Co Ltd | Electronic key system |
| US10708293B2 (en) * | 2015-06-29 | 2020-07-07 | Argus Cyber Security Ltd. | System and method for time based anomaly detection in an in-vehicle communication network |
| CN105160745A (en) * | 2015-10-20 | 2015-12-16 | 莆田市云驰新能源汽车研究院有限公司 | Automobile lock control method and system based on Bluetooth and cloud recognition |
| CN105947030A (en) * | 2016-04-29 | 2016-09-21 | 四川长虹电器股份有限公司 | Bluetooth-based locking and unlocking system and method for automatic bicycle |
| CN109410395A (en) * | 2018-10-12 | 2019-03-01 | 深圳市博实结科技有限公司 | Lock control method, lock, control device and user terminal |
-
2019
- 2019-07-25 CN CN201910680658.4A patent/CN110395216B/en active Active
Also Published As
| Publication number | Publication date |
|---|---|
| CN110395216A (en) | 2019-11-01 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP3312750B1 (en) | Information processing device, information processing system, and information processing method | |
| CN112822630B (en) | Data processing method of device and computer-readable storage medium | |
| KR101378784B1 (en) | Method for the Protection of a Movable Object, especially a Vehicle, against Unauthorized Use | |
| CN108122311B (en) | Vehicle virtual key implementation method and system | |
| CN111422163B (en) | Vehicle ignition method and system based on face recognition and vehicle | |
| TW201741922A (en) | Biometric-based safety authentication method and device | |
| CN110570569B (en) | Activation method of virtual key configuration information, mobile terminal and server | |
| CN107733652B (en) | Unlocking method and system for shared vehicle and vehicle lock | |
| WO2020199391A1 (en) | Vehicle unlocking authentication method and apparatus based on terminal device | |
| GB2516939A (en) | Access authorisation system and secure data communications system | |
| CN108256315A (en) | Terminal and cipher authentication method and computer readable storage medium | |
| JP2019031874A (en) | Unlocking control system | |
| CN112153640A (en) | Vehicle control method, system, user terminal, vehicle and readable storage medium | |
| CN114036490B (en) | Plug-in software interface calling security authentication method, USBKey driving device and authentication system | |
| CN105429943B (en) | Information processing method and terminal thereof | |
| CN113989958A (en) | Digital key sharing system, method and device, vehicle and storage medium | |
| CN115527292B (en) | Mobile phone terminal remote vehicle unlocking method of security chip and security chip device | |
| CN112506267A (en) | RTC calibration method, vehicle-mounted terminal, user side and storage medium | |
| CN109743283B (en) | Information transmission method and equipment | |
| KR20120058199A (en) | User authentication method using location information | |
| CN119545359A (en) | Information verification method based on SIM card | |
| US11829481B2 (en) | Method of verifying the integrity of an electronic device, and a corresponding electronic device | |
| US20210240804A1 (en) | Authentication system | |
| CN110395216B (en) | Vehicle unlocking and locking control method based on mobile terminal and mobile terminal | |
| CN106446719B (en) | Method for preventing eSIM file from being tampered and mobile terminal |
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 | ||
| CP02 | Change in the address of a patent holder | ||
| CP02 | Change in the address of a patent holder |
Address after: 510000 No.8 Songgang street, Cencun, Tianhe District, Guangzhou City, Guangdong Province Patentee after: GUANGZHOU XPENG AUTOMOBILE TECHNOLOGY Co.,Ltd. Address before: Room 245, No. 333, jiufo Jianshe Road, Zhongxin Guangzhou Knowledge City, Guangzhou City, Guangdong Province Patentee before: GUANGZHOU XPENG AUTOMOBILE TECHNOLOGY Co.,Ltd. |