CN110992540A - Lock opening and closing method and device based on keyless entry system - Google Patents

Lock opening and closing method and device based on keyless entry system Download PDF

Info

Publication number
CN110992540A
CN110992540A CN201911319016.8A CN201911319016A CN110992540A CN 110992540 A CN110992540 A CN 110992540A CN 201911319016 A CN201911319016 A CN 201911319016A CN 110992540 A CN110992540 A CN 110992540A
Authority
CN
China
Prior art keywords
vehicle
communication module
bluetooth
rolling code
bluetooth communication
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.)
Pending
Application number
CN201911319016.8A
Other languages
Chinese (zh)
Inventor
金寅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Zhongsheng Internet Of Things Technology Co ltd
Original Assignee
Guangzhou Zhongsheng Internet Of Things Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Zhongsheng Internet Of Things Technology Co ltd filed Critical Guangzhou Zhongsheng Internet Of Things Technology Co ltd
Priority to CN201911319016.8A priority Critical patent/CN110992540A/en
Publication of CN110992540A publication Critical patent/CN110992540A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • G07C9/00817Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys where the code of the lock can be programmed
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • G07C9/00817Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys where the code of the lock can be programmed
    • G07C2009/00825Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys where the code of the lock can be programmed remotely by lines or wireless communication

Abstract

The application relates to a lock opening and closing method and a lock opening and closing device based on a keyless entry system, wherein the keyless entry system comprises an on-board device installed in a vehicle and a specified application program installed in a mobile terminal, the specified application program is provided with a first Bluetooth communication module, the on-board device is provided with a second Bluetooth communication module, and when the method is applied to the specified application program, the method comprises the following steps: acquiring a password seed generated by the vehicle-mounted equipment; encrypting the password seed according to a preset rolling code encryption algorithm to generate a rolling code; according to the rolling code, a Bluetooth connection request is sent to the vehicle-mounted equipment through a server; when verification passing information returned by the vehicle-mounted equipment is received through the server, Bluetooth connection is established between the first Bluetooth communication module and the second Bluetooth communication module; vehicle lock/unlock control is performed based on the connection. This embodiment can improve the effect and the efficiency of bluetooth connection.

Description

Lock opening and closing method and device based on keyless entry system
Technical Field
The application relates to the technical field of vehicle control, in particular to a lock opening and closing method and device based on a keyless entry system.
Background
The development of the technology promotes the update of products, the original mechanical key of an automobile access system is changed into a remote control system, the development of the information technology and the requirements of the automobile market, and the trend is that the remote control access system is replaced by a keyless access system (PKE for short).
In the related art, one of the keyless entry systems is a bluetooth keyless entry system that locks, unlocks, and the like an automobile by using a bluetooth communication technology. After the intelligent device carried by the owner is connected with the vehicle through the Bluetooth, the owner carries the intelligent device in the induction area, so that the automobile can be unlocked in a non-inductive mode to open the automobile door, and the automobile door can be automatically locked after the owner leaves the induction area. However, in the related art, due to the fact that the operating system and the bluetooth communication module used by the smart device are uneven, when the bluetooth is used for verification and connection, the verification method and the connection method are also uneven, so that the connection matching takes a long time, and even the phenomena of incapability of matching and the like occur.
Disclosure of Invention
In view of the above, the present application is proposed to provide a method and apparatus for opening and closing a lock based on a keyless entry system that overcomes or at least partially solves the above mentioned problems.
In a first aspect, the present application provides a lock opening and closing method based on a keyless entry system, where the keyless entry system includes an in-vehicle device installed in a vehicle, and a specific application installed in a mobile terminal, the specific application having a first bluetooth communication module, and the in-vehicle device having a second bluetooth communication module, and the method is applied to the specific application, and includes:
acquiring a password seed generated by the vehicle-mounted equipment;
encrypting the password seed according to a preset rolling code encryption algorithm to generate a rolling code;
according to the rolling code, a Bluetooth connection request is sent to the vehicle-mounted equipment through a server, wherein the Bluetooth connection request comprises the rolling code;
when verification passing information returned by the vehicle-mounted equipment is received through the server, Bluetooth connection is established between the first Bluetooth communication module and the second Bluetooth communication module, and the verification passing information is information generated after the vehicle-mounted equipment passes the verification of the rolling code;
and controlling the vehicle unlocking and locking based on the connection.
Optionally, before the obtaining the password seed generated by the vehicle-mounted device, the method further includes:
acquiring a registered account registered in the specified application program;
acquiring an identifier of the vehicle-mounted equipment;
and binding the registration account with the identifier of the vehicle-mounted equipment.
Optionally, the obtaining a password seed generated by the vehicle-mounted device includes:
sending a password seed generation request to a cloud server, wherein the password seed generation request comprises an identifier of the vehicle-mounted equipment;
and receiving the password seed corresponding to the password seed generation request returned by the cloud server.
Optionally, the sending, by the server, the bluetooth connection request to the vehicle-mounted device according to the rolling code includes:
initiating Bluetooth equipment search through the first Bluetooth communication module, and generating a Bluetooth connection request according to the rolling code when the identifier of the vehicle-mounted equipment is searched;
and sending the Bluetooth connection request to a server, wherein the server is used for sending the Bluetooth connection request to the vehicle-mounted equipment corresponding to the identifier of the vehicle-mounted equipment.
Optionally, the controlling of the vehicle unlocking and locking based on the connection includes:
displaying a control interface, wherein the control interface comprises door lock switch information;
and detecting the trigger operation of the door lock switch information, and controlling the vehicle-mounted equipment to carry out unlocking processing or locking processing through the connection according to the trigger operation.
In a second aspect, the present application provides a lock opening and closing method based on a keyless entry system, the keyless entry system including an in-vehicle device installed in a vehicle, and a designated application installed in a mobile terminal, the designated application having a first bluetooth communication module, the in-vehicle device having a second bluetooth communication module, the method applied to the in-vehicle device, including:
receiving a Bluetooth connection request sent by a server, wherein the Bluetooth connection request comprises a rolling code;
decrypting the rolling code by adopting a preset rolling code decryption algorithm to obtain a password seed;
judging whether the obtained password seed is consistent with a password seed generated in advance;
and if the Bluetooth connection is consistent with the first Bluetooth communication module, establishing Bluetooth connection with the first Bluetooth communication module through the second Bluetooth communication module.
In a third aspect, the present application provides an unlocking and locking device based on a keyless entry system, the keyless entry system including an in-vehicle device installed in a vehicle, and a designated application installed in a mobile terminal, the designated application having a first bluetooth communication module, the in-vehicle device having a second bluetooth communication module, the device being applied to the designated application, comprising:
the password seed acquisition unit is used for acquiring the password seed generated by the vehicle-mounted equipment;
the rolling code generating unit is used for encrypting the password seeds according to a preset rolling code encryption algorithm to generate rolling codes;
the Bluetooth connection request unit is used for sending a Bluetooth connection request to the vehicle-mounted equipment through a server according to the rolling code, wherein the Bluetooth connection request comprises the rolling code;
the Bluetooth connection establishing unit is used for establishing Bluetooth connection with the second Bluetooth communication module through the first Bluetooth communication module when verification passing information returned by the vehicle-mounted equipment is received through the server, and the verification passing information is information generated after the vehicle-mounted equipment passes the verification of the rolling code;
and an unlocking and locking control unit for controlling the unlocking and locking of the vehicle based on the connection.
In a fourth aspect, the present application provides an unlocking and locking device based on a keyless entry system, the keyless entry system including an in-vehicle device installed in a vehicle, and a specific application installed in a mobile terminal, the specific application having a first bluetooth communication module, the in-vehicle device having a second bluetooth communication module, the apparatus being applied to the in-vehicle device, including:
the Bluetooth connection request receiving unit is used for receiving a Bluetooth connection request sent by a server, and the Bluetooth connection request comprises a rolling code;
the rolling code decryption unit is used for decrypting the rolling codes by adopting a preset rolling code decryption algorithm to obtain password seeds;
the verification judging unit is used for judging whether the obtained password seed is consistent with a password seed generated in advance; if the connection is consistent with the preset connection, calling a connection establishing module;
and the connection establishing unit is used for establishing Bluetooth connection with the first Bluetooth communication module through the second Bluetooth communication module.
In a fifth aspect, an embodiment of the present application further provides an electronic device, including:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the method as described above.
In a sixth aspect, the present application further provides a storage medium, where instructions executed by a processor of the device enable the electronic device to perform the method as described above.
The application has the following beneficial effects:
in this embodiment, the designated application program has a first bluetooth communication module, the vehicle-mounted device has a second bluetooth communication module, when the designated application program is used as a host to initiate bluetooth connection to the vehicle-mounted device, first obtain a password seed generated by the vehicle-mounted device, encrypt the password seed according to a preset rolling code encryption algorithm to generate a rolling code, then send a bluetooth connection request to the vehicle-mounted device according to the rolling code, when verification passing information returned by the vehicle-mounted device is received, establish bluetooth connection with the second bluetooth communication module through the first bluetooth communication module, and perform control on locking and unlocking of the vehicle based on the bluetooth connection. In the Bluetooth connection process, the Bluetooth communication module of the designated application program is relied on to be carried out with the Bluetooth communication module of the vehicle-mounted equipment, so that the situation that the Bluetooth communication modules of the terminals are uneven due to different models, versions and the like of the mobile terminals, the connection difficulty caused by different verification modes and connection modes during Bluetooth connection is effectively avoided, and the effect and the efficiency of Bluetooth connection are improved.
Drawings
FIG. 1 is a schematic block diagram of a keyless entry system of the present application;
FIG. 2 is a flowchart illustrating steps of an embodiment of a method for opening and closing a lock based on a keyless entry system according to the present application;
FIG. 3 is a flowchart illustrating steps of another exemplary embodiment of a method for opening and closing a lock based on a keyless entry system;
fig. 4 is a block diagram illustrating an embodiment of an unlocking and locking device based on a keyless entry system according to the present application;
fig. 5 is a block diagram illustrating another embodiment of an unlocking and locking device based on a keyless entry system according to the present application.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, the present application is described in further detail with reference to the accompanying drawings and the detailed description.
Referring to fig. 1, there is shown a schematic configuration diagram of a keyless entry system of the present application, which includes an in-vehicle device 10 installed in a vehicle, and a designated application 20 installed in a mobile terminal, wherein the designated application 20 has a first bluetooth communication module, the in-vehicle device 10 has a second bluetooth communication module, the in-vehicle device and the designated application can establish a bluetooth connection through the respective bluetooth communication modules, and based on the bluetooth connection, the in-vehicle device is controlled by the designated application to perform a designated vehicle control operation.
The in-vehicle device 10 may be mounted in the vehicle as an external device of the vehicle, or may be provided in the vehicle as an internal device of the vehicle, which is not limited in this embodiment.
The in-vehicle device 10 may be connected to an actuator (a motor or an electromagnetic coil) of the vehicle, and when it is necessary to control the opening and closing of the vehicle, the in-vehicle device may input a control circuit to operate the actuator to perform an operation such as opening or closing the lock.
Illustratively, the mobile terminal may include, but is not limited to, a portable terminal such as a mobile phone, a tablet computer, a bracelet, a smart card, and the like. When the mobile terminal is installed with the appointed application program, the mobile terminal can be used as a host computer and can be in Bluetooth connection with a second Bluetooth communication module of the vehicle-mounted equipment used as a slave computer through a first Bluetooth communication module in the appointed application program.
In an embodiment, the specified application may be an in-vehicle control application, and after the specified application is installed in the mobile terminal, the user may be guided to register in the specified application, acquire a registered account number registered in the specified application, acquire an identifier of the in-vehicle device, and bind the registered account number with the identifier of the in-vehicle device.
In one implementation, the identification of the vehicle-mounted device may be an identification (including but not limited to manual input or code-scanning input, etc.) entered by the user in the registration page, and as an example, the identification of the vehicle-mounted device may include but not limited to: identification codes of vehicle-mounted equipment when leaving factory, license plate numbers of vehicles and the like.
In one implementation, the binding of the registered account number and the identity of the vehicle-mounted device may include, but is not limited to, one or a combination of the following: binding the registered account number and the identification of the vehicle-mounted equipment locally at the client; and sending the registered account and the identifier of the vehicle-mounted equipment to a server, and storing the binding relationship between the registered account and the identifier of the vehicle-mounted equipment by the server.
In the keyless entry system, the vehicle-mounted device and the appointed application program can establish Bluetooth connection through the first Bluetooth communication module of the appointed application program and the second Bluetooth communication module of the vehicle-mounted device, so that the situation that the Bluetooth module of the mobile terminal is difficult to match due to different versions of the operating system in the background technology is avoided, and the success rate and the connection efficiency of Bluetooth connection are improved.
Based on the keyless entry system of fig. 1, referring to fig. 2, a flow chart of steps of an embodiment of a lock opening and closing method based on the keyless entry system of the present application is shown. The embodiment can be applied to a specified application program, and can comprise the following steps:
step 201, obtaining a password seed generated by the vehicle-mounted device.
In one example, after the vehicle-mounted device is installed in the vehicle, the vehicle-mounted device may randomly generate a password seed according to a preset password seed generation algorithm, and the password seed may be used as an authentication credential for subsequent bluetooth connection pairing.
For a specific application program, a password seed generated by the vehicle-mounted device also needs to be acquired, so that Bluetooth pairing is initiated based on the password seed in subsequent operation.
In one embodiment, step 201 may include the following sub-steps:
sending a password seed generation request to a cloud server, wherein the password seed generation request comprises an identifier of the vehicle-mounted equipment; and receiving the password seed corresponding to the password seed generation request returned by the cloud server.
Specifically, after the vehicle-mounted device generates the password seed, the password seed can be uploaded to the cloud server for storage, and after the cloud server receives the password seed, the identification of the vehicle-mounted device can be acquired from a communication link with the vehicle-mounted device, and the password seed and the identification of the vehicle-mounted device are stored in an associated mode.
For a designated application program, after registration is completed, a password seed generation request containing the identification of the vehicle-mounted device can be sent to the cloud server, and after the cloud server receives the password seed generation request, the password seed associated with the identification is searched according to the identification of the vehicle-mounted device carried in the password seed generation request, and the password seed is returned to the designated application program.
Step 202, encrypting the password seed according to a preset rolling code encryption algorithm to generate a rolling code.
In this step, after the designated application program obtains the password seed, the password seed may be encrypted by using a preset rolling code encryption algorithm to generate a unique, non-repetitive, and highly confidential rolling code. The embodiment does not limit the specific rolling code encryption algorithm, and may be, for example, a keelop algorithm.
Step 203, according to the rolling code, sending a bluetooth connection request to the vehicle-mounted device through a server, wherein the bluetooth connection request comprises the rolling code.
In this step, the rolling code may be used for bluetooth authentication. After the designated application obtains the rolling code, the rolling code may be transmitted to the in-vehicle device, and the in-vehicle device authenticates the rolling code.
In one embodiment, the designated application program can initiate bluetooth device search through the first bluetooth communication module, and when the identifier of the vehicle-mounted device is searched, a bluetooth connection request is generated according to the rolling code; and sending the Bluetooth connection request to a server, and sending the Bluetooth connection request to the vehicle-mounted equipment corresponding to the identifier of the vehicle-mounted equipment by the server.
When the method is realized, when the appointed trigger time is reached, the first Bluetooth communication module in the appointed application program can search the Bluetooth equipment outwards to obtain a Bluetooth equipment list consisting of the surrounding searched Bluetooth equipment. And then searching whether the identifier of the vehicle-mounted device exists in the Bluetooth device list, and if so, sending the identifier of the vehicle-mounted device to a Bluetooth connection request through the server. The bluetooth connection request may include a rolling code, an identifier of the in-vehicle device, and the like.
For example, the specified trigger timing may be set according to an actual requirement, for example, the trigger timing may be a preset cycle time, or the trigger timing may be a trigger of a certain function detected by a user, and the present embodiment does not limit this.
On the server side, after receiving the bluetooth connection request sent by the specified application program, the identifier of the vehicle-mounted device can be extracted from the bluetooth connection request, and the bluetooth connection request is sent to the corresponding vehicle-mounted device.
On the vehicle-mounted equipment side, after receiving the Bluetooth connection request, the rolling code can be obtained through analysis of the Bluetooth connection request, then the vehicle-mounted equipment can verify the rolling code, if the rolling code passes the verification, verification passing information is returned to the server, and if the rolling code does not pass the verification, verification failure information is returned to the server. The server may then respond with the authentication pass information or the authentication fail information to the specified application.
And 204, when verification passing information returned by the vehicle-mounted equipment is received through the server, establishing Bluetooth connection with the second Bluetooth communication module through the first Bluetooth communication module, wherein the verification passing information is information generated after the vehicle-mounted equipment passes verification of the rolling code.
In the step, when the designated application program receives verification passing information returned by the vehicle-mounted device, the designated application program indicates that the designated application program and the vehicle-mounted device are paired, then the designated application program initiates a call to the vehicle-mounted device through the first Bluetooth communication module, and Bluetooth connection is established with the second Bluetooth communication module of the vehicle-mounted device.
And step 205, controlling the vehicle unlocking and locking based on the connection.
In this step, the designated application may send a control command to the in-vehicle device to control unlocking or locking of the vehicle according to the established bluetooth connection.
In one embodiment, step 205 may include the following sub-steps:
displaying a control interface, wherein the control interface comprises door lock switch information; and detecting the trigger operation of the door lock switch information, and controlling the vehicle-mounted equipment to carry out unlocking processing or locking processing through the connection according to the trigger operation.
Specifically, the designated application may include a control interface, and the control interface may include control elements for controlling the vehicle, such as door lock switch information and trunk switch information. The designated application may present the control page to the user and capture information entered by the user in the control interface for the control element.
In one example, the door lock switch information may be represented as a dynamic control in the control interface, that is, assuming that the current information is the unlocking operation information, when the user clicks the unlocking operation information, the information displayed by the dynamic control is changed into the locking operation information; or, the door lock switch information may be represented as two controls in the control interface, including an unlocking operation control and a locking operation control, where when the user clicks the unlocking operation control, the unlocking operation control corresponds to unlocking processing, and when the user clicks the locking operation control, the locking operation control corresponds to locking processing, which is not limited in this embodiment.
The trunk switch information is represented in the control interface in a manner similar to the door lock switch information, and is not described in detail herein.
When the designated application program detects the triggering operation of the user on the door lock switch information, a control command can be generated according to the triggering state, the control command is sent to the vehicle-mounted equipment through the Bluetooth connection, and the vehicle-mounted equipment informs the actuator to carry out unlocking processing or locking processing. For example, if the designated application detects a click on the unlocking operation control, an unlocking command may be generated to request the in-vehicle device to perform unlocking processing. If the specified application program detects the click of the locking operation control, a locking command can be generated to request the vehicle-mounted equipment to perform locking processing.
In this embodiment, the designated application program has a first bluetooth communication module, the vehicle-mounted device has a second bluetooth communication module, when the designated application program is used as a host to initiate bluetooth connection to the vehicle-mounted device, first obtain a password seed generated by the vehicle-mounted device, encrypt the password seed according to a preset rolling code encryption algorithm to generate a rolling code, then send a bluetooth connection request to the vehicle-mounted device according to the rolling code, when verification passing information returned by the vehicle-mounted device is received, establish bluetooth connection with the second bluetooth communication module through the first bluetooth communication module, and perform control on locking and unlocking of the vehicle based on the bluetooth connection. In the Bluetooth connection process, the Bluetooth communication module of the designated application program is relied on to be carried out with the Bluetooth communication module of the vehicle-mounted equipment, so that the situation that the Bluetooth communication modules of the terminals are uneven due to different models, versions and the like of the mobile terminals, the connection difficulty caused by different verification modes and connection modes during Bluetooth connection is effectively avoided, and the effect and the efficiency of Bluetooth connection are improved.
Referring to fig. 3, a flow chart of steps of another embodiment of a method for opening and closing a lock based on a keyless entry system is shown. The embodiment can be applied to the vehicle-mounted equipment and comprises the following steps:
step 301, receiving a bluetooth connection request sent by a server, where the bluetooth connection request includes a rolling code.
In this embodiment, the in-vehicle apparatus receives a bluetooth connection request from a specified application as a slave, and acquires a rolling code contained therein by analyzing the bluetooth connection request.
And 302, decrypting the rolling code by adopting a preset rolling code decryption algorithm to obtain a password seed.
In this step, the rolling code is a highly encrypted password, and after the vehicle-mounted device obtains the rolling code, the rolling code may be decrypted by using a preset rolling code decryption algorithm to obtain a password seed.
It should be noted that the rolling code decryption algorithm in this step and the rolling code encryption algorithm in the embodiment of fig. 2 are preset symmetric encryption algorithms. The present embodiment does not limit the specific encryption algorithm and decryption algorithm.
Step 303, determining whether the obtained password seed is consistent with a password seed generated in advance.
In this step, after the password seed is obtained through decryption, the vehicle-mounted device may verify the password seed, where one verification method may be: and judging whether the obtained password seed is consistent with the password seed generated in advance.
In one embodiment, the pre-generated cryptographic seed may be generated as follows:
and randomly generating a password seed, and uploading the password seed to a cloud server.
Specifically, after the vehicle-mounted device is installed in the vehicle, the password seed can be randomly generated according to a preset password seed generation algorithm, and the password seed can be used as an authentication certificate for subsequent bluetooth connection pairing. After the vehicle-mounted device generates the password seed, the password seed can be stored locally, meanwhile, the password seed can be uploaded to the cloud server to be stored, after the cloud server receives the password seed, the identification of the vehicle-mounted device can be acquired from a communication link with the vehicle-mounted device, and the password seed and the identification of the vehicle-mounted device are stored in an associated mode.
The specific cryptographic seed generation algorithm is not limited in this embodiment, and may be, for example, a serial number obtained by performing a hash operation based on time stamp information, registered account information of a specific application, identification information of a terminal in which the specific application is located, or the like.
And step 304, if the two bluetooth connections are consistent, establishing a bluetooth connection with the first bluetooth communication module through the second bluetooth communication module.
In this step, if it is determined that the decrypted password seed is consistent with the password seed generated in advance, it indicates that the authentication is passed, and at this time, the bluetooth connection with the first bluetooth communication module may be established through the second bluetooth communication module.
In one embodiment, the vehicle-mounted device can send verification passing information to the server, and the server sends the verification passing information to the specified application program, so that the specified application program establishes the Bluetooth connection with the second Bluetooth communication module through the first Bluetooth communication module based on the verification passing information.
After the vehicle-mounted device establishes a bluetooth connection with a specified application program, a control command sent by the specified application program may be received, and for example, the control command may include, but is not limited to, a door lock opening command, a door lock closing command, a trunk opening or closing command, and the like. According to the received control command, the vehicle-mounted device can control the actuator to execute corresponding operation, such as opening or closing a vehicle door.
In this embodiment, after the vehicle-mounted device receives the bluetooth connection request from the designated application, the password seed can be obtained by decrypting the rolling code included in the bluetooth connection request, then the password seed obtained by decrypting is compared with the password seed generated in advance, whether the password seed and the rolling code are consistent or not is judged, if the password seed and the rolling code are consistent, the rolling code is verified to pass, the bluetooth connection with the first bluetooth communication module is established through the second bluetooth communication module, the whole verification process does not need to be matched with different bluetooth communication modules of mobile terminals of different models, the operation of the vehicle-mounted device is saved, the bluetooth connection efficiency is improved, and meanwhile, the resource loss of the vehicle-mounted device is reduced.
Based on the above data processing method, referring to fig. 4, a block diagram of an embodiment of an unlocking and locking device based on a keyless entry system according to the present application is shown, where the keyless entry system includes an in-vehicle device installed in a vehicle, and a specified application installed in a mobile terminal, where the specified application has a first bluetooth communication module, the in-vehicle device has a second bluetooth communication module, and the apparatus is applied to the specified application, and specifically may include the following units:
a password seed obtaining unit 401, configured to obtain a password seed generated by the vehicle-mounted device;
a rolling code generating unit 402, configured to encrypt the password seed according to a preset rolling code encryption algorithm, so as to generate a rolling code;
a bluetooth connection request unit 403, configured to send, according to the rolling code, a bluetooth connection request to the vehicle-mounted device through a server, where the bluetooth connection request includes the rolling code;
a bluetooth connection establishing unit 404, configured to establish a bluetooth connection with the second bluetooth communication module through the first bluetooth communication module when verification passing information returned by the vehicle-mounted device is received by the server, where the verification passing information is information generated after the vehicle-mounted device passes verification of the rolling code;
and an open/close lock control unit 405 for performing vehicle open/close lock control based on the connection.
In one embodiment, the apparatus further comprises the following means:
a registered account acquisition unit configured to acquire a registered account registered in the specified application;
the vehicle-mounted identification acquisition unit is used for acquiring the identification of the vehicle-mounted equipment;
and the account binding unit is used for binding the registered account with the identifier of the vehicle-mounted equipment.
In an embodiment, the password seed obtaining unit 401 is specifically configured to:
sending a password seed generation request to a cloud server, wherein the password seed generation request comprises an identifier of the vehicle-mounted equipment;
and receiving the password seed corresponding to the password seed generation request returned by the cloud server.
In an embodiment, the bluetooth connection requesting unit 403 is specifically configured to:
initiating Bluetooth equipment search through the first Bluetooth communication module, and generating a Bluetooth connection request according to the rolling code when the identifier of the vehicle-mounted equipment is searched;
and sending the Bluetooth connection request to a server, wherein the server is used for sending the Bluetooth connection request to the vehicle-mounted equipment corresponding to the identifier of the vehicle-mounted equipment.
In one embodiment, said lock/release control unit 405 is specifically configured to:
displaying a control interface, wherein the control interface comprises door lock switch information;
and detecting the trigger operation of the door lock switch information, and controlling the vehicle-mounted equipment to carry out unlocking processing or locking processing through the connection according to the trigger operation.
Referring to fig. 5, a block diagram of another embodiment of an unlocking and locking device based on a keyless entry system according to the present application is shown, where the keyless entry system includes an in-vehicle device installed in a vehicle, and a specific application installed in a mobile terminal, where the specific application has a first bluetooth communication module, and the in-vehicle device has a second bluetooth communication module, and the apparatus is applied to the in-vehicle device, and may specifically include the following units:
a bluetooth connection request receiving unit 501, configured to receive a bluetooth connection request sent by a server, where the bluetooth connection request includes a rolling code;
a rolling code decryption unit 502, configured to decrypt the rolling code by using a preset rolling code decryption algorithm, so as to obtain a password seed;
a verification judgment unit 503, configured to judge whether the obtained password seed is consistent with a password seed generated in advance; if the connection is consistent with the preset connection, calling a connection establishing module;
a connection establishing unit 504, configured to establish a bluetooth connection with the first bluetooth communication module through the second bluetooth communication module.
In an embodiment, the connection establishing unit 504 is specifically configured to:
and sending verification passing information to the server, wherein the server is used for sending the verification passing information to a specified application program, so that the specified application program establishes Bluetooth connection with the second Bluetooth communication module through the first Bluetooth communication module based on the verification passing information.
In one embodiment, the apparatus further comprises:
and the password seed generating unit is used for randomly generating password seeds and uploading the password seeds to the cloud server.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
The present embodiment also provides an electronic device, including:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the steps of the method in the embodiment of fig. 2 or fig. 3.
The present embodiment also provides a storage medium, wherein instructions of the storage medium, when executed by a processor of the device, enable the electronic device to perform the steps of the method in the embodiment of fig. 2 or fig. 3.
While this specification contains many specific implementation details, these should not be construed as limitations on the scope of any invention or of what may be claimed, but rather as descriptions of features specific to particular embodiments of particular inventions. Certain features that are described in this specification in the context of separate embodiments can also be implemented in combination in a single embodiment. In other instances, features described in connection with one embodiment may be implemented as discrete components or in any suitable subcombination. Moreover, although features may be described above as acting in certain combinations and even initially claimed as such, one or more features from a claimed combination can in some cases be excised from the combination, and the claimed combination may be directed to a subcombination or variation of a subcombination.
Similarly, while operations are depicted in the drawings in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order, or that all illustrated operations be performed, to achieve desirable results. In some cases, multitasking and parallel processing may be advantageous. Moreover, the separation of various system modules and components in the embodiments described above should not be understood as requiring such separation in all embodiments, and it should be understood that the described program components and systems can generally be integrated together in a single software product or packaged into multiple software products.
Thus, particular embodiments of the subject matter have been described. Other embodiments are within the scope of the following claims. In some cases, the actions recited in the claims can be performed in a different order and still achieve desirable results. Further, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some implementations, multitasking and parallel processing may be advantageous.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the scope of protection of the present application.

Claims (10)

1. A lock opening and closing method based on a keyless entry system, which is characterized in that the keyless entry system comprises an in-vehicle device installed in a vehicle and a designated application installed in a mobile terminal, wherein the designated application is provided with a first Bluetooth communication module, the in-vehicle device is provided with a second Bluetooth communication module, and the method is applied to the designated application and comprises the following steps:
acquiring a password seed generated by the vehicle-mounted equipment;
encrypting the password seed according to a preset rolling code encryption algorithm to generate a rolling code;
according to the rolling code, a Bluetooth connection request is sent to the vehicle-mounted equipment through a server, wherein the Bluetooth connection request comprises the rolling code;
when verification passing information returned by the vehicle-mounted equipment is received through the server, Bluetooth connection is established between the first Bluetooth communication module and the second Bluetooth communication module, and the verification passing information is information generated after the vehicle-mounted equipment passes the verification of the rolling code;
and controlling the vehicle unlocking and locking based on the connection.
2. The method of claim 1, wherein prior to the obtaining the cryptographic seed generated by the on-board device, the method further comprises:
acquiring a registered account registered in the specified application program;
acquiring an identifier of the vehicle-mounted equipment;
and binding the registration account with the identifier of the vehicle-mounted equipment.
3. The method of claim 2, wherein the obtaining the cryptographic seed generated by the on-board device comprises:
sending a password seed generation request to a cloud server, wherein the password seed generation request comprises an identifier of the vehicle-mounted equipment;
and receiving the password seed corresponding to the password seed generation request returned by the cloud server.
4. The method according to any one of claims 1-3, wherein the sending a Bluetooth connection request to the vehicle-mounted device through the server according to the rolling code comprises:
initiating Bluetooth equipment search through the first Bluetooth communication module, and generating a Bluetooth connection request according to the rolling code when the identifier of the vehicle-mounted equipment is searched;
and sending the Bluetooth connection request to a server, wherein the server is used for sending the Bluetooth connection request to the vehicle-mounted equipment corresponding to the identifier of the vehicle-mounted equipment.
5. The method of claim 1, wherein the performing vehicle lock and unlock control based on the connection comprises:
displaying a control interface, wherein the control interface comprises door lock switch information;
and detecting the trigger operation of the door lock switch information, and controlling the vehicle-mounted equipment to carry out unlocking processing or locking processing through the connection according to the trigger operation.
6. A lock opening and closing method based on a keyless entry system, wherein the keyless entry system comprises an on-board device installed in a vehicle and a designated application installed in a mobile terminal, the designated application has a first Bluetooth communication module, the on-board device has a second Bluetooth communication module, and the method is applied to the on-board device and comprises the following steps:
receiving a Bluetooth connection request sent by a server, wherein the Bluetooth connection request comprises a rolling code;
decrypting the rolling code by adopting a preset rolling code decryption algorithm to obtain a password seed;
judging whether the obtained password seed is consistent with a password seed generated in advance;
and if the Bluetooth connection is consistent with the first Bluetooth communication module, establishing Bluetooth connection with the first Bluetooth communication module through the second Bluetooth communication module.
7. An unlocking and locking device based on a keyless entry system, wherein the keyless entry system comprises an in-vehicle device installed in a vehicle and a designated application installed in a mobile terminal, the designated application has a first bluetooth communication module, the in-vehicle device has a second bluetooth communication module, and the device is applied to the designated application, and comprises:
the password seed acquisition unit is used for acquiring the password seed generated by the vehicle-mounted equipment;
the rolling code generating unit is used for encrypting the password seeds according to a preset rolling code encryption algorithm to generate rolling codes;
the Bluetooth connection request unit is used for sending a Bluetooth connection request to the vehicle-mounted equipment through a server according to the rolling code, wherein the Bluetooth connection request comprises the rolling code;
the Bluetooth connection establishing unit is used for establishing Bluetooth connection with the second Bluetooth communication module through the first Bluetooth communication module when verification passing information returned by the vehicle-mounted equipment is received through the server, and the verification passing information is information generated after the vehicle-mounted equipment passes the verification of the rolling code;
and an unlocking and locking control unit for controlling the unlocking and locking of the vehicle based on the connection.
8. An unlocking and locking device based on a keyless entry system, wherein the keyless entry system comprises an in-vehicle device installed in a vehicle and a designated application installed in a mobile terminal, the designated application has a first bluetooth communication module, the in-vehicle device has a second bluetooth communication module, and the device is applied to the in-vehicle device and comprises:
the Bluetooth connection request receiving unit is used for receiving a Bluetooth connection request sent by a server, and the Bluetooth connection request comprises a rolling code;
the rolling code decryption unit is used for decrypting the rolling codes by adopting a preset rolling code decryption algorithm to obtain password seeds;
the verification judging unit is used for judging whether the obtained password seed is consistent with a password seed generated in advance; if the connection is consistent with the preset connection, calling a connection establishing module;
and the connection establishing unit is used for establishing Bluetooth connection with the first Bluetooth communication module through the second Bluetooth communication module.
9. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the method of any one of claims 1-5 or claim 6.
10. A storage medium having instructions that, when executed by a processor of the device, enable the electronic device to perform the method of any one of claims 1-5 or claim 6.
CN201911319016.8A 2019-12-19 2019-12-19 Lock opening and closing method and device based on keyless entry system Pending CN110992540A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911319016.8A CN110992540A (en) 2019-12-19 2019-12-19 Lock opening and closing method and device based on keyless entry system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911319016.8A CN110992540A (en) 2019-12-19 2019-12-19 Lock opening and closing method and device based on keyless entry system

Publications (1)

Publication Number Publication Date
CN110992540A true CN110992540A (en) 2020-04-10

Family

ID=70065444

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911319016.8A Pending CN110992540A (en) 2019-12-19 2019-12-19 Lock opening and closing method and device based on keyless entry system

Country Status (1)

Country Link
CN (1) CN110992540A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105279832A (en) * 2015-12-01 2016-01-27 北京卡多宝信息技术有限公司 Intelligent door lock system and control method thereof
CN105721541A (en) * 2016-01-13 2016-06-29 大连楼兰科技股份有限公司 Method and system for remotely controlling vehicle
CN108418845A (en) * 2018-07-13 2018-08-17 上海银基信息安全技术股份有限公司 Bluetooth pairing code matches Preparation Method, system, terminal, server and mobile unit
CN108696476A (en) * 2017-04-06 2018-10-23 上海航迹数据信息科技有限公司 Security strategy configurable Automobile key system and its implementation
CN109951277A (en) * 2019-03-12 2019-06-28 广州小鹏汽车科技有限公司 Virtual key binding method and system
CN110136306A (en) * 2019-05-16 2019-08-16 广州小鹏汽车科技有限公司 Vehicle key control method and system
CN110481502A (en) * 2019-08-05 2019-11-22 浙江合众新能源汽车有限公司 Automobile short range unlocking method and system based on bluetooth
CN111204311A (en) * 2018-11-19 2020-05-29 上海擎感智能科技有限公司 Vehicle-mounted TBOX, vehicle and Bluetooth key realization method and system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105279832A (en) * 2015-12-01 2016-01-27 北京卡多宝信息技术有限公司 Intelligent door lock system and control method thereof
CN105721541A (en) * 2016-01-13 2016-06-29 大连楼兰科技股份有限公司 Method and system for remotely controlling vehicle
CN108696476A (en) * 2017-04-06 2018-10-23 上海航迹数据信息科技有限公司 Security strategy configurable Automobile key system and its implementation
CN108418845A (en) * 2018-07-13 2018-08-17 上海银基信息安全技术股份有限公司 Bluetooth pairing code matches Preparation Method, system, terminal, server and mobile unit
CN111204311A (en) * 2018-11-19 2020-05-29 上海擎感智能科技有限公司 Vehicle-mounted TBOX, vehicle and Bluetooth key realization method and system
CN109951277A (en) * 2019-03-12 2019-06-28 广州小鹏汽车科技有限公司 Virtual key binding method and system
CN110136306A (en) * 2019-05-16 2019-08-16 广州小鹏汽车科技有限公司 Vehicle key control method and system
CN110481502A (en) * 2019-08-05 2019-11-22 浙江合众新能源汽车有限公司 Automobile short range unlocking method and system based on bluetooth

Similar Documents

Publication Publication Date Title
CN100541366C (en) Vehicle information rewriting system
CN107113315B (en) Identity authentication method, terminal and server
CN110111472B (en) Vehicle key control method and device
EP3885204B1 (en) Automobile control method and device based on nfc automobile key, automobile and storage medium
US10645578B2 (en) System for using mobile terminals as keys for vehicles
CN108122311B (en) Vehicle virtual key implementation method and system
CN109410406B (en) Authorization method, device and system
CN109328348B (en) Service authentication method, system and related equipment
US20170330402A1 (en) Method for secure transmission of a virtual key and method for authentication of a mobile terminal
CN112822630B (en) Data processing method of device and computer-readable storage medium
CN110381199B (en) Unlocking method and unlocking system with mobile phone as automobile key
CN105704131A (en) Vehicle lock control method and cloud management server
CN109895734B (en) Authorized Bluetooth key activation method and system, storage medium and T-BOX
US20160236653A1 (en) Electronic key system, onboard apparatus, and portable apparatus
CN109389709B (en) Unlocking control system and unlocking control method
KR20190008352A (en) Dynamic key access control systems, methods and apparatus
CN105701896B (en) A kind of method, apparatus and terminal of fingerprint authorization unlocking
CN107733652B (en) Unlocking method and system for shared vehicle and vehicle lock
CN105187442A (en) Vehicle authorization method, device, vehicle-mounted terminal, terminal and system
CN111845624B (en) Method for starting vehicle without key
CN105799644A (en) Automobile safety control device and automobile
CN111083696A (en) Communication verification method and system, mobile terminal and vehicle terminal
CN111063070B (en) Digital key sharing method, digital key verification method and digital key verification equipment
CN113453963A (en) Solution for providing a key signal or a theft protection signal for a vehicle
KR20210069276A (en) System and method for secured open and close for smart safe

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200410