CN107833321B - Equipment binding and unbinding method, car locking method and related equipment - Google Patents
Equipment binding and unbinding method, car locking method and related equipment Download PDFInfo
- Publication number
- CN107833321B CN107833321B CN201711059692.7A CN201711059692A CN107833321B CN 107833321 B CN107833321 B CN 107833321B CN 201711059692 A CN201711059692 A CN 201711059692A CN 107833321 B CN107833321 B CN 107833321B
- Authority
- CN
- China
- Prior art keywords
- control unit
- electronic control
- vehicle positioning
- vehicle
- verification information
- 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
Images
Classifications
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07C—TIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
- G07C9/00—Individual registration on entry or exit
- G07C9/00174—Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
- G07C9/00309—Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated with bidirectional data transmission between data carrier and locks
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07C—TIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
- G07C9/00—Individual registration on entry or exit
- G07C9/00174—Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
- G07C9/00571—Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated by interacting with a central unit
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/08—Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
- H04L9/0861—Generation of secret information including derivation or calculation of cryptographic keys or passwords
- H04L9/0869—Generation of secret information including derivation or calculation of cryptographic keys or passwords involving random numbers or seeds
-
- 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/0042—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 containing a code which is changed
- G07C2009/00476—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 containing a code which is changed dynamically
- G07C2009/005—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 containing a code which is changed dynamically whereby the code is a random code
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Signal Processing (AREA)
- Lock And Its Accessories (AREA)
Abstract
The invention provides a device binding method, a device unbinding method, a vehicle locking method and related devices, wherein the device binding method is applied to vehicle positioning devices, the vehicle positioning devices are electrically connected with an electronic control unit, and the method comprises the following steps: the vehicle positioning equipment receives a first message sent by an electronic control unit; the vehicle positioning equipment generates and generates first verification information according to the first random number; the vehicle positioning equipment sends a first random number to the electronic control unit so that the electronic control unit generates second verification information according to the first random number; the vehicle positioning equipment receives the second verification information and the first equipment identification of the electronic control unit; and the vehicle positioning equipment judges that the two verification information are the same, stores the first equipment identification and sends verification passing information to the electronic control unit to enable the electronic control unit to start the vehicle locking function. The invention can realize automatic binding between devices, has simple operation, randomly generates verification information through a set algorithm, is not easy to crack and improves the safety.
Description
Technical Field
The invention relates to the field of locking of motor vehicles, in particular to a device binding and unbinding method, a vehicle locking method and related devices.
Background
Before the motor vehicle leaves the factory, a manufacturer can bind the vehicle positioning equipment and the electronic control unit, after the binding is successful, the vehicle positioning equipment and the electronic control unit are in one-to-one correspondence, and the electronic control unit starts a vehicle locking function.
The existing binding technology between the vehicle positioning equipment and the electronic control unit carries out binding by manually sending various messages. And the manufacturer sends a binding message to the vehicle positioning equipment through the Internet of things or a mobile phone, if the binding password in the binding message is the same as the binding password stored in the electronic control unit, the binding is successful, and the electronic control unit starts a vehicle locking function.
In the existing binding technology between the vehicle positioning equipment and the electronic control unit, the content of messages sent by a manufacturer is similar, the set binding and unbinding passwords are the same, the messages are easy to monitor and decipher, once being deciphered, lawless persons can unbind the messages for the vehicle positioning equipment to enable the electronic control unit to close the vehicle locking function, and users can evade the fixed and locked vehicles, thereby evading payment and causing economic loss for the manufacturer.
Disclosure of Invention
In view of the above, the present invention provides an apparatus binding and unbinding method, a vehicle locking method and related apparatuses, so as to achieve automatic binding between a vehicle positioning apparatus and an electronic control unit.
In order to achieve the above object, the present invention provides the following technical solutions:
a device binding method is applied to vehicle positioning equipment, the vehicle positioning equipment is electrically connected with an electronic control unit, the vehicle positioning equipment and the electronic control unit are both installed on a motor vehicle, and the method comprises the following steps:
the vehicle positioning equipment receives a first message sent by the electronic control unit;
the vehicle positioning equipment generates a first random number and generates first verification information according to the first random number;
the vehicle positioning device sends a first random number to the electronic control unit to enable the electronic control unit to generate second verification information according to the first random number;
the vehicle positioning equipment receives the second verification information sent by the electronic control unit and a first equipment identifier of the electronic control unit;
the vehicle positioning equipment judges whether the first verification information and the second verification information are the same or not, and if yes, the vehicle positioning equipment stores the first equipment identification and sends verification passing information to the electronic control unit so that the electronic control unit can start a vehicle locking function.
An equipment binding method is applied to an electronic control unit, the vehicle positioning equipment is electrically connected with the electronic control unit, the vehicle positioning equipment and the electronic control unit are both installed on a motor vehicle, and the method comprises the following steps:
the electronic control unit sends a first message to the vehicle positioning equipment so that the vehicle positioning equipment generates a first random number after receiving the first message and generates first verification information according to the first random number;
the electronic control unit receives the first random number sent by the vehicle positioning equipment;
the electronic control unit generates second verification information according to the first random number and sends the second verification information and a first device identifier of the electronic control unit to the vehicle positioning device so that the vehicle positioning device can judge whether the first verification information is the same as the second verification information;
the electronic control unit receives verification passing information sent by the vehicle positioning equipment after judging that the first verification information is the same as the second verification information, and starts a vehicle locking function according to the verification passing information, wherein the vehicle positioning equipment stores the first equipment identifier after judging that the first verification information is the same as the second verification information.
An equipment unbinding method is applied to vehicle positioning equipment, the vehicle positioning equipment is electrically connected with an electronic control unit, the vehicle positioning equipment and the electronic control unit are both installed on a motor vehicle, and the electronic control unit is provided with a first equipment identifier; the method comprises the following steps:
the vehicle positioning equipment acquires a unbinding instruction, wherein the unbinding instruction comprises a second equipment identifier;
the vehicle positioning equipment judges whether the second equipment identification is the same as the first equipment identification of the electronic control unit, if so, the vehicle positioning equipment generates a second random number and generates third verification information according to the second random number;
the vehicle positioning device transmits the second random number to the electronic control unit to cause the electronic control unit to generate fourth verification information according to the second random number;
and the vehicle positioning equipment acquires the fourth verification information and judges whether the third verification information is the same as the fourth verification information, if so, the vehicle positioning equipment sends unbinding passing information to the electronic control unit so as to enable the electronic control unit to close the vehicle locking function.
An equipment unbinding method is applied to an electronic control unit, vehicle positioning equipment is electrically connected with the electronic control unit, the vehicle positioning equipment and the electronic control unit are both installed on a motor vehicle, and the electronic control unit is provided with a first equipment identifier; the method comprises the following steps:
the electronic control unit receives a second random number sent by the vehicle positioning equipment when judging that a second equipment identifier in the acquired unbinding instruction is the same as a first equipment identifier of the electronic control unit;
the electronic control unit generates fourth verification information according to the second random number;
the electronic control unit sends the fourth verification information to the vehicle positioning device;
the electronic control unit receives unbinding passing information sent by the vehicle positioning device when the fourth verification information is judged to be the same as third verification information generated by the vehicle positioning device according to the second random number;
and the electronic control unit closes the vehicle locking function.
A vehicle locking method is applied to vehicle positioning equipment, the vehicle positioning equipment is arranged on a motor vehicle, an electronic control unit is further installed on the motor vehicle, a first equipment identifier of the electronic control unit is stored in the vehicle positioning equipment, and the method comprises the following steps:
the vehicle positioning equipment judges whether a third random number sent by the electronic control unit is received within a first time length after the motor vehicle key is powered on; if not, the vehicle positioning equipment generates a fourth random number and generates fifth verification information according to the fourth random number and the first equipment identification;
the vehicle positioning device sends a fourth random number to the electronic control unit so that the electronic control unit generates sixth verification information in a second time length after the vehicle positioning device sends the fourth random number and sends the sixth verification information to the vehicle positioning device;
the vehicle positioning equipment judges whether sixth verification information is received within a second time length after the fourth random number is sent, and if the sixth verification information is not received, the vehicle positioning equipment sends a second message to the electronic control unit so that the electronic control unit can lock the vehicle; if the verification information is received, the vehicle positioning equipment judges whether the sixth verification information is the same as the fifth verification information, and if not, the vehicle positioning equipment controls the electronic control unit to lock the vehicle.
Optionally, the method further includes:
when the vehicle positioning device receives a third random number sent by the electronic control unit within a first time period after the motor vehicle key is powered on, the vehicle positioning device generates seventh verification information within a third time period after the electronic control unit sends the third random number according to the third random number and the first device identification, and sends the seventh verification information to the electronic control unit, so that the electronic control unit compares eighth verification information generated by the electronic control unit with the seventh verification information and locks the vehicle according to a comparison result.
A vehicle locking method is applied to an electronic control unit, the electronic control unit is arranged on a motor vehicle, vehicle positioning equipment is further arranged on the motor vehicle, and a first equipment identifier of the electronic control unit is stored in the vehicle positioning equipment, and the method comprises the following steps:
the electronic control unit sends a third random number to the vehicle positioning equipment within a first time length after the motor vehicle key is powered on, so that the vehicle positioning equipment generates seventh verification information within a third time length according to the third random number and the first equipment identification and sends the seventh verification information to the electronic control unit;
the electronic control unit judges whether seventh verification information sent by the vehicle positioning equipment is received within a third time length, and if the seventh verification information is not received, the electronic control unit locks the vehicle; and if the verification result is received, the electronic control unit generates eighth verification information, compares the seventh verification information with the eighth verification information, and locks the vehicle according to the comparison result.
A locking method is applied to a motor vehicle, wherein the motor vehicle is provided with electrically connected vehicle positioning equipment and an electronic control unit, and the electronic control unit is provided with a first equipment identifier; the vehicle locating device having the first device identification stored therein, the method comprising,
the vehicle positioning equipment receives a vehicle locking instruction and forwards the vehicle locking instruction to the electronic control unit;
and the electronic control unit judges whether the equipment identifier in the vehicle locking instruction is the first equipment identifier or not, and if so, performs vehicle locking processing.
A vehicle locating apparatus comprising: the device comprises a first device receiving module, a first device processing module, a first device sending module, a second device receiving module, a first device judging module, a storage module and a second device sending module, wherein the vehicle positioning device is arranged on a motor vehicle, the motor vehicle is also provided with an electronic control unit, and the vehicle positioning device is electrically connected with the electronic control unit;
the first equipment receiving module is used for receiving a first message sent by the electronic control unit;
the first equipment processing module is used for generating a first random number and generating first verification information according to the first random number;
the first equipment sending module is used for sending a first random number to the electronic control unit so that the electronic control unit generates second verification information according to the first random number;
the second equipment receiving module is used for receiving the second verification information sent by the electronic control unit and the first equipment identification of the electronic control unit;
the first device judging module is used for judging whether the first verification information and the second verification information are the same or not, and if so, the storage module is triggered to store the first device identification and the second device sending module is triggered;
the second equipment sending module is used for sending verification passing information to the electronic control unit so as to enable the electronic control unit to start functions.
An electronic control unit comprising: the electronic control unit is arranged on a motor vehicle, the motor vehicle is also provided with vehicle positioning equipment, and the electronic control unit is electrically connected with the vehicle positioning equipment;
the first unit sending module is used for sending a first message to the vehicle positioning equipment so that the vehicle positioning equipment generates a first random number after receiving the first message and generates first verification information according to the first random number;
the first unit receiving module is used for receiving the first random number sent by the vehicle positioning equipment;
the first unit processing module is used for generating second verification information according to the first random number;
the second unit sending module is used for sending the second verification information and the first equipment identification of the electronic control unit to the vehicle positioning equipment so that the vehicle positioning equipment can judge whether the first verification information is the same as the second verification information;
the second unit receiving module is used for receiving verification passing information sent by the vehicle positioning equipment after judging that the first verification information is the same as the second verification information;
the first unit judgment module is used for judging whether the vehicle locking function is started or not according to the verification passing information;
the second unit processing module is used for unlocking a vehicle locking function, wherein the vehicle positioning device stores the first device identification after judging that the first verification information is the same as the second verification information.
A vehicle locating apparatus comprising: the vehicle positioning device comprises a third device receiving module, a second device judging module, a second device processing module, a third device sending module, a fourth device receiving module, a third device judging module and a fourth device sending module, wherein the vehicle positioning device is arranged on a motor vehicle, the motor vehicle is also provided with an electronic control unit, a first device identifier of the electronic control unit is stored in the vehicle positioning device, and the vehicle positioning device is electrically connected with the electronic control unit;
the third equipment receiving module is used for acquiring a unbinding instruction, and the unbinding instruction comprises a second equipment identifier;
the second device judgment module is used for judging whether the second device identification is the same as the first device identification of the electronic control unit, and if so, triggering the second device processing module to generate a second random number and generating third verification information according to the second random number;
the third equipment sending module is used for sending the second random number to the electronic control unit so that the electronic control unit generates fourth verification information according to the second random number;
the fourth device receiving module is configured to obtain the fourth verification information;
the third equipment judgment module is used for judging whether the third verification information is the same as the fourth verification information or not, and if so, the fourth equipment sending module is triggered to send unbinding passing information to the electronic control unit so that the electronic control unit can close the car locking function.
An electronic control unit comprising: the electronic control unit comprises a third unit receiving module, a third unit processing module, a third unit sending module, a fourth unit receiving module, a second unit judging module and a fourth unit processing module, wherein the electronic control unit is arranged on a motor vehicle, the motor vehicle is also provided with vehicle positioning equipment, a first equipment identifier of the electronic control unit is stored in the vehicle positioning equipment, and the electronic control unit is electrically connected with the vehicle positioning equipment;
the third unit receiving module is used for receiving a second random number sent by the vehicle positioning equipment when judging that a second equipment identifier in the acquired unbinding instruction is the same as a first equipment identifier of the electronic control unit;
the third unit processing module is used for generating fourth verification information according to the second random number;
the third unit sending module is used for sending the fourth verification information to the vehicle positioning equipment;
the fourth unit receiving module is used for receiving unbinding passing information sent by the vehicle positioning device when the fourth verification information is judged to be the same as third verification information generated by the vehicle positioning device according to the second random number;
the second unit judgment module is used for judging whether to close the car locking function according to the unbinding passing information;
and the fourth unit processing module is used for closing the vehicle locking function.
A vehicle locating apparatus comprising: the vehicle positioning device comprises a fourth device judgment module, a third device processing module, a fifth device sending module, a fifth device receiving module, a fifth device judgment module, a sixth device sending module, a sixth device judgment module and a fourth device processing module, wherein the vehicle positioning device is arranged on a motor vehicle, the motor vehicle is also provided with an electronic control unit, the vehicle positioning device stores a first device identifier of the electronic control unit, and the vehicle positioning device is electrically connected with the electronic control unit;
the fourth equipment judgment module is used for judging whether a third random number sent by the electronic control unit is received within a first time length after the motor vehicle key is powered on; if the verification result is not received, triggering the third equipment processing module to generate a fourth random number and generating fifth verification information according to the fourth random number and the first equipment identification;
the fifth device sending module is configured to send a fourth random number to the electronic control unit by the vehicle positioning device, so that the electronic control unit generates sixth verification information within a second duration after the fifth device sending module sends the fourth random number and sends the sixth verification information to the fifth device receiving module;
the fifth equipment judging module is further configured to judge whether a sixth verification message is received within a second time period after the fourth random number is sent, and if the sixth verification message is not received, trigger the sixth equipment sending module to send a second message to the electronic control unit so that the electronic control unit performs a vehicle locking process; if the verification information is received, triggering the sixth equipment judgment module to judge whether the sixth verification information is the same as the fifth verification information, and if not, triggering the fourth equipment processing module to control the electronic control unit to lock the vehicle.
An electronic control unit comprising: the motor vehicle is also provided with a vehicle positioning device, a first device identifier of the electronic control unit is stored in the vehicle positioning device, and the vehicle positioning device is electrically connected with the electronic control unit;
the fourth unit sending module is configured to send a third random number to the vehicle positioning device within a first time period after the motor vehicle key is powered on, so that the vehicle positioning device generates seventh verification information within a third time period according to the third random number and the first device identifier and sends the seventh verification information to the fifth unit receiving module;
the third unit judgment module is used for judging whether seventh verification information sent by the vehicle positioning equipment is received within a third time length, and if the seventh verification information is not received, the fifth unit processing module is triggered to lock the vehicle; if the verification result is received, triggering the sixth unit processing module to generate eighth verification information and triggering the fourth unit judging module to compare the seventh verification information with the eighth verification information, and if the seventh verification information is different from the eighth verification information, triggering the fifth unit processing module to lock the vehicle.
The invention can realize automatic binding between devices, has simple operation, randomly generates verification information through a set algorithm, is not easy to crack and improves the safety.
Of course, not all of the advantages described above need to be achieved at the same time in the practice of any one product or method of the invention.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below.
Fig. 1 is a flowchart of a device binding method according to an embodiment of the present invention;
fig. 2 is a flowchart of an apparatus unbinding method according to an embodiment of the present invention;
fig. 3 is a flowchart of a method for locking a vehicle according to an embodiment of the present invention;
FIG. 4 is a flowchart of another method for locking a vehicle according to an embodiment of the present invention;
fig. 5 is a flowchart of a method for locking a vehicle according to an embodiment of the present invention;
FIG. 6 is a schematic structural diagram of a vehicle positioning apparatus according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an electronic control unit according to an embodiment of the present invention;
FIG. 8 is a schematic structural diagram of another vehicle locating apparatus provided in accordance with an embodiment of the present invention;
FIG. 9 is a schematic structural diagram of another electronic control unit according to an embodiment of the present invention;
FIG. 10 is a schematic structural diagram of another vehicle locating apparatus provided in accordance with an embodiment of the present invention;
FIG. 11 is a schematic structural diagram of another electronic control unit according to an embodiment of the present invention;
FIG. 12 is a schematic structural diagram of another vehicle locating apparatus provided in accordance with an embodiment of the present invention;
fig. 13 is a schematic structural diagram of another electronic control unit according to an embodiment of the present invention.
Detailed Description
The invention discloses an equipment binding and unbinding method, a vehicle locking method and related equipment. It is expressly intended that all such similar substitutes and modifications which would be obvious to one skilled in the art are deemed to be included in the invention. While the methods and applications of this invention have been described in terms of preferred embodiments, it will be apparent to those of ordinary skill in the art that variations and modifications in the methods and applications described herein, as well as other suitable variations and combinations, may be made to implement and use the techniques of this invention without departing from the spirit and scope of the invention.
First, the present invention describes the prior art embodiments and the reasons for the need for improvement thereof with respect to the prior art.
In the prior art, after the vehicle positioning device and the electronic control unit are bound, the electronic control unit has data supporting the vehicle locking function, and stores a handshake check key and a device identifier of the vehicle positioning device.
And in a certain time after the motor vehicle key is powered on, the electronic control unit actively initiates handshake verification, namely sends verification information generated by calculation of the electronic control unit to the vehicle positioning equipment, once the two times of handshake verification fail, the electronic control unit judges that the vehicle positioning equipment is detached or replaced, and the electronic control unit actively locks the vehicle to an idle speed.
Because the handshake check between the electronic control unit and the vehicle positioning equipment is actively initiated by the electronic control unit, if the user writes or replaces the electronic control unit without the vehicle locking function, after the key is powered on, the electronic control unit does not initiate the handshake check, and the user can replace the vehicle positioning equipment so as to avoid being locked and locked.
According to the existing unbinding technology between the electronic control unit and the vehicle positioning equipment, a manufacturer sends an unbinding message to the vehicle positioning equipment through the Internet of things or a mobile phone, the vehicle positioning equipment sends the unbinding message to the electronic control unit, and if the unbinding password in the unbinding message and the equipment identifier of the vehicle positioning equipment are consistent with those stored in the electronic control unit, the electronic control unit executes unbinding, namely, the vehicle locking function is closed.
The messages used in the unbinding process are similar, the binding and unbinding passwords set by the manufacturer are the same, the whole process is extremely easy to monitor and crack, once the messages are cracked, a lawbreaker can send the unbinding passwords to the vehicle positioning equipment to unbind the vehicle positioning equipment and the electronic control unit, and therefore the vehicle can be positioned and locked.
In view of the above, the present invention provides a device binding method, a device unbinding method, a device locking method and related devices to improve or partially improve the prior art.
As shown in fig. 1, an embodiment of the present invention provides a device binding method, where a vehicle positioning device 100 is electrically connected to an Electronic Control Unit (ECU) 200, and both the vehicle positioning device 100 and the ECU 200 are installed on a motor vehicle, the method may include:
s100, the electronic control unit 200 sends a first message to the vehicle positioning device 100;
s110, the vehicle positioning device 100 generates a first random number and generates first verification information according to the first random number;
s111, the vehicle positioning apparatus 100 sends the first verification information to the electronic control unit 200;
s120, the electronic control unit 200 receives a first random number sent by the vehicle positioning device 100 and generates second verification information according to the first random number;
s121, the electronic control unit 200 sends the second verification information and the first device identifier of the electronic control unit to the vehicle positioning device 100;
s130, the vehicle positioning device 100 receives the second verification information sent by the electronic control unit 200 and the first device identification of the electronic control unit 200;
s140, the vehicle positioning apparatus 100 determines whether the first verification information and the second verification information are the same, if yes, the vehicle positioning apparatus 100 stores the first apparatus identifier and sends verification passing information to the electronic control unit 200, otherwise, step S150 is executed;
and S150, the electronic control unit 200 starts a vehicle locking function.
Specifically, a first operation indicator lamp may be installed on the vehicle positioning device 100, and when the vehicle positioning device 100 operates normally, the first operation indicator lamp is turned on. After the key of the vehicle is powered on, the electronic control unit 200 may periodically send the first message to the vehicle positioning apparatus 100, so that the vehicle positioning apparatus 100 generates the first random number after receiving the first message.
Specifically, the periodic transmission may be that the electronic control unit 200 transmits the first message to the vehicle positioning device 100 once every 1 second.
Specifically, the step S100 is executed after the vehicle positioning device 100 is successfully installed and powered on by using a key.
Specifically, the vehicle Positioning device 100 may be any device that can realize functions such as vehicle Positioning and tracking control, for example, a Global Positioning System (GPS) device, a BeiDou Navigation Satellite System (BDS) device, and the like. The vehicle positioning apparatus 100 can perform information interaction with the electronic control unit 200, and receive and transmit various messages and instructions. The electronic control unit 200 may be a controller, the electronic control unit 200 may be mounted on an engine, and the electronic control unit 200 is also referred to as a running computer.
Specifically, the first packet may be a wakeup packet, and the first random number may be a random seed, that is, a random seed. The first random number size may be 8 bytes.
Specifically, the first random number is generated randomly, and the content thereof may be generated by calculation according to the date and time of the generation thereof at that time.
Specifically, the vehicle positioning apparatus 100 calculates first verification information according to a predetermined algorithm based on the first random number. The algorithm may be an MD5 algorithm, and the first authentication information may be represented using a first GPSKey.
Specifically, the vehicle positioning device 100 sends the first random number to the electronic control unit 200, and the electronic control unit 200 calculates second verification information according to the same algorithm based on the first random number, where the second verification information may be represented by using a first ECUKey.
Specifically, the electronic control unit 200 sends the generated second verification information and a first device identifier of the electronic control unit 200 to the vehicle positioning device 100, where the first device identifier may be a hardware serial number of the electronic control unit.
Specifically, the vehicle positioning device 100 compares the first verification information with the second verification information, and if the first verification information is the same as the second verification information, the vehicle positioning device 100 determines that the verification is passed and may perform binding.
Specifically, a second work indicator lamp may be further disposed on the vehicle positioning device 100, the vehicle positioning device 100 sends verification passing information to the electronic control unit 200 to notify that the electronic control unit 200 passes the verification and stores the first device identifier for use in performing a subsequent action, the electronic control unit 200 starts a vehicle locking function, the binding is completed, and the second work indicator lamp is turned on at this time. When a situation that the vehicle needs to be locked is met, the electronic control unit 200 actively performs the vehicle locking process or performs the vehicle locking process according to the instruction sent by the vehicle positioning device 100.
Specifically, the electronic control unit 200 may store a first binding password, and the first binding password may be specified by a manufacturer. The verification passing information may include a second binding password, the electronic control unit 200 compares the first binding password with the second binding password after receiving the verification passing information, if the first binding password and the second binding password are consistent, the electronic control unit 200 activates the vehicle locking function, and if the first binding password and the second binding password are inconsistent, the installation condition and the damage of the vehicle positioning device 100 need to be checked.
Specifically, after the binding is completed, the vehicle positioning device 100 feeds back the binding success information and the first device identifier of the electronic control unit 200 to the predetermined device. The vehicle localization apparatus 100 no longer responds to the first message sent by the electronic control unit 200. The predetermined device may be a management device specified by a vehicle manufacturer/vendor, such as a server, a mobile phone, a computer, and the like.
Specifically, the size of each of the first authentication information and the second authentication information may be 8 bytes.
Specifically, if the first verification information and the second verification information are not the same, the installation condition of the vehicle positioning device 100 is checked.
Specifically, the locking function may be multiple, for example, the electronic control unit 200 locks the engine of the motor vehicle to an idle speed, or locks the engine to an engine speed specified by a manufacturer, and the like.
Optionally, the car locking function in this application may be a function corresponding to the car locking method shown in fig. 3, and after the car locking function is turned on, the car locking method shown in fig. 3 is executed after a key of a motor vehicle is powered on.
Specifically, the execution sequence of the step of the vehicle positioning device 100 generating the first verification information according to the first random number and the step of the electronic control unit 200 generating the second verification information according to the first random number is not limited in the present invention.
Wherein the method shown in fig. 1 may be performed before the vehicle is delivered to the purchaser to bind the vehicle-locating device 100 in the vehicle with the electronic control unit 200 and unlock the vehicle-locking function.
In the embodiment of the present invention, through the interactive processing between the electronic control unit 200 and the vehicle positioning device 100, the vehicle positioning device 100 and the electronic control unit 200 can be automatically bound without manually sending various messages to achieve binding, so that the operation is simple, and the inspection of the motor vehicle when leaving the factory is facilitated. Meanwhile, the method improves the safety and reliability in the binding process between the vehicle positioning device 100 and the electronic control unit 200 by using a set MD5 algorithm.
The invention also supports multiple times of binding between the vehicle positioning device 100 and the electronic control unit 200, if the vehicle positioning device 100 is damaged and needs to be replaced, only the vehicle positioning device 100 of the original factory needs to be replaced, after the replacement, the replaced vehicle positioning device 100 receives the first message periodically sent by the electronic control unit 200, and then the subsequent steps are executed to complete the binding.
As shown in fig. 2, an embodiment of the present invention provides an apparatus unbinding method, where a vehicle positioning apparatus 100 is electrically connected to an electronic control unit 200, the vehicle positioning apparatus 100 and the electronic control unit 200 are both installed on a motor vehicle, and the electronic control unit 200 has a first apparatus identifier; the method can comprise the following steps:
s200, the vehicle positioning equipment 100 acquires a unbinding instruction, wherein the unbinding instruction comprises a second equipment identifier;
s210, the vehicle positioning apparatus 100 determines whether the second apparatus identifier is the same as the first apparatus identifier of the electronic control unit 200, if so, executes step S220;
s220, the vehicle positioning device 100 generates a second random number and generates third verification information according to the second random number;
s221, the vehicle positioning apparatus 100 transmits the second random number to the electronic control unit 200;
s230, the electronic control unit 200 receives the second random number sent by the vehicle positioning device 100 and generates fourth verification information according to the second random number;
s240, the electronic control unit 200 sends the fourth verification information to the vehicle positioning device 100;
s241, the vehicle positioning apparatus 100 determines whether the third verification information is the same as the fourth verification information, if so, performs step S250, otherwise re-performs step S200;
s250, the vehicle positioning apparatus 100 sends unbinding passing information to the electronic control unit 200;
s260, the electronic control unit 200 determines whether to unbind;
and S270, the electronic control unit 200 closes the vehicle locking function.
Specifically, the vehicle positioning device 100 may be communicatively connected to a predetermined device, wherein the predetermined device may be a management device specified by a vehicle manufacturer/vendor, such as a server, a mobile phone, a computer, etc.
Specifically, when the user is back up, the predetermined device may send the unbinding instruction to the vehicle locating device 100, where the unbinding instruction may include a second device identifier.
Specifically, a first device identifier of the electronic control unit 200 is stored in the vehicle positioning device 100, the vehicle positioning device 100 compares the first device identifier with the second device identifier, and determines whether the first device identifier and the second device identifier are the same, if so, the vehicle positioning device 100 generates a second random number and generates third verification information according to the second random number, otherwise, the predetermined device sends a unbinding instruction to the vehicle positioning device 100 again.
Specifically, the size of the second random number may be 4 bytes, and the second random number may be generated according to a date and time when the second random number is transmitted. The vehicle positioning device 100 may calculate and generate the third verification information according to a predetermined algorithm, which may be an MD5 algorithm, based on the second random number and the first device identification.
Specifically, the size of the third verification information may be 8 bytes, and in this embodiment of the present invention, the second GPSKey may be used to represent the third verification information.
Specifically, the electronic control unit 200 generates fourth verification information by calculation according to a predetermined algorithm based on the second random number and the first device identifier, and sends the fourth verification information to the vehicle positioning device 100. The size of the fourth verification information may be 8 bytes, and in the embodiment of the present invention, the fourth verification information may be represented by a second ECUKey.
Specifically, the vehicle positioning device 100 compares the third verification information with the fourth verification information, and if the third verification information is the same as the fourth verification information, the vehicle positioning device 100 sends the unbinding passing information to the electronic control unit 200.
Specifically, the electronic control unit 200 stores a first unbind password. Unbinding can include in the passing information that the second is unbound password and second equipment sign, electronic control unit 200 receives unbinding behind the passing information, will first unbind the password with the password is unbound to the second and contrasts, and will first equipment sign with the second equipment sign contrasts, if all unanimous, then electronic control unit 200 closes the lock car function, otherwise the third terminal to again vehicle positioning device 100 sends and unbound instruction. At this time, the user may remove or replace the vehicle positioning apparatus 100 and the electronic control unit 200.
Specifically, the predetermined algorithm may be an MD5 algorithm.
Specifically, the execution sequence of the step of calculating and generating the third verification information by the vehicle positioning device 100 and the step of calculating and generating the fourth verification information by the electronic control unit 200 is not limited in the present invention.
Specifically, after the electronic control unit 200 turns off the lock function, the vehicle positioning apparatus 100 and the electronic control unit 200 are unbound. At this time, the vehicle positioning apparatus 100 transmits the unbind state to the third terminal in the form of a message. Optionally, the car locking function in this application may be a function corresponding to the car locking method shown in fig. 3, and after the car locking function of a certain vehicle is closed, the car locking method shown in fig. 3 is no longer executed on the vehicle.
The invention can realize dynamic unbinding between the vehicle positioning device 100 and the electronic control unit 200 and improve the safety in the unbinding process. By using the MD5 algorithm, the safety factor is increased, the unbinding process is not easy to crack, and the reliability is improved.
As shown in fig. 3, an embodiment of the present invention provides a method for locking a vehicle, in which a vehicle positioning apparatus 100 is disposed on a motor vehicle, an electronic control unit 200 is further installed on the motor vehicle, and a first apparatus identifier of the electronic control unit 200 is stored in the vehicle positioning apparatus 100, and the method may include:
s300, the vehicle positioning device 100 judges whether a third random number sent by the electronic control unit 200 is received within a first time period after the motor vehicle key is powered on; if not, executing step S310;
s310, the vehicle positioning device 100 generates a fourth random number and generates fifth verification information according to the fourth random number and the first device identification;
s320, the vehicle positioning apparatus 100 transmits a fourth random number to the electronic control unit 200;
s330, the electronic control unit 200 generates sixth verification information according to the fourth random number within a second time period after the vehicle positioning apparatus 100 sends the fourth random number;
s340, the electronic control unit 200 sends the sixth verification information to the vehicle positioning device 100;
s350, the vehicle positioning apparatus 100 determines whether a sixth verification information is received within a second time period after the fourth random number is sent, and if so, executes step S360; if not, go to step S370;
s360, the vehicle positioning apparatus 100 determines whether the sixth verification information and the fifth verification information are the same, if not, step S370 is executed, and if so, no processing is performed.
S370, the vehicle positioning device 100 sends a second message to the electronic control unit 200 to enable the electronic control unit 200 to lock the vehicle;
specifically, the first time period is calculated from the time when the vehicle key is powered on, and in practical application, the first time period may be 5 seconds. The second time period starts to be calculated after the vehicle positioning device 100 transmits the fourth random number, and the second time period may be 5 seconds.
Specifically, if the vehicle positioning device 100 does not receive the third random number sent by the electronic control unit 200 within the first time period, the vehicle positioning device 100 actively sends a fourth random number to the electronic control unit 200. The fourth random number is randomly generated, and the content of the fourth random number may include a date and time when the fourth random number is transmitted, and the size of the fourth random number may be 4 bytes.
Specifically, the size of the fifth verification information may be 8 bytes, and in the embodiment of the present invention, the fifth verification information may be represented by a third GPSKey.
Specifically, the sixth verification information is generated according to the fourth random number and the first device identifier, and the size of the sixth verification information may be 8 bytes.
Specifically, the locking process may be that the vehicle positioning device 100 sends a locking message to the electronic control unit 200 to control the rotation speed of the engine of the motor vehicle to be within a specified rotation speed value when the fifth verification information is different from the sixth verification information, or the locking process may be that: the vehicle positioning device 100 records a determination result that the sixth verification information is different from the fifth verification information at this time, and when the vehicle positioning device 100 determines that the fifth verification information is still the same as the sixth verification information at the next time of powering on the motor vehicle, the vehicle positioning device 100 sends a lock message to the electronic control unit 200 to control the rotating speed of the motor vehicle engine to be within a specified rotating speed value.
Specifically, the second message may be an external torque/rotational speed control message, and the electronic control unit 200 receives the external torque/rotational speed control message by default to control the rotational speed of the engine according to the international J1939 communication standard.
Specifically, the steps of step S310 and step S330 are not limited in the present invention.
According to the invention, when the electronic control unit 200 does not send the random number, the vehicle positioning device 100 actively sends the random number to the electronic control unit 200, and the vehicle positioning device 100 and the electronic control unit 200 generate the verification information according to the random number and the first device identification and the established MD5 algorithm, so that the situation that the vehicle positioning device 100 is detached to escape positioning and locking after the electronic control unit 200 without the vehicle locking function is replaced for no debt by a user can be prevented, and the safety is improved.
On the basis of the method shown in fig. 3, as shown in fig. 4, another method for locking a vehicle is further provided in the embodiment of the present invention, where the method further includes:
s311, when it is determined in step S300 in the method shown in fig. 3 that the third random number sent by the electronic control unit 200 is received within the first time period after the power-on of the vehicle key, the vehicle positioning device 100 generates seventh verification information according to the third random number and the first device identifier, and sends the seventh verification information to the electronic control unit 200;
s321, the electronic control unit 200 determines whether the seventh verification information is received within a third time period after the third random number is sent, if so, executes S331, otherwise, executes S332;
s331, the electronic control unit 200 compares eighth authentication information generated by the electronic control unit 200 according to the third random number with the seventh authentication information, if the eighth authentication information is different from the seventh authentication information, the step S332 is executed, and if the eighth authentication information is the same as the seventh authentication information, no processing is performed;
and S332, the electronic control unit 200 performs vehicle locking processing.
Specifically, the third random number is randomly generated, the content of the third random number may be generated according to the date and time when the vehicle positioning device 100 transmits the third random number, and the size of the third random number may be 4 bytes.
Specifically, the eighth verification information is generated by the electronic control unit 200 according to a predetermined algorithm based on the third random number and the first device identifier.
Specifically, the size of each of the seventh authentication information and the eighth authentication information may be 8 bytes, the seventh authentication information may be represented by a fourth GPSKey, and the eighth authentication information may be represented by a fourth ECUKey.
Specifically, the step 300 has already been described in detail in the embodiment shown in fig. 3, and is not repeated herein.
Specifically, the execution sequence of the execution step of the vehicle positioning device 100 generating the seventh verification information and the execution step of the electronic control unit 200 generating the eighth verification information is not limited in the present invention.
The present invention can actively send a random number to the vehicle positioning device 100 through the electronic control unit 200, and check whether the user replaces the vehicle positioning device 100 by determining whether the vehicle positioning device 100 sends verification information to the electronic control unit 200 within a certain time period, so as to prevent the user from replacing or removing the vehicle positioning device 100 to escape from being positioned and locked without debt, thereby improving safety.
As shown in fig. 5, an embodiment of the present invention provides a locking method, which may be applied to a motor vehicle, where a vehicle positioning device 100 and an electronic control unit 200 that are electrically connected are installed on the motor vehicle, and the electronic control unit 200 has a first device identifier; the vehicle localization apparatus 100 has the first apparatus identification stored therein, and the method may include,
s400, the vehicle positioning device 100 receives a vehicle locking instruction and forwards the vehicle locking instruction to the electronic control unit 200, wherein the vehicle locking instruction comprises a device identifier;
s410, the electronic control unit 200 judges whether the equipment identifier in the vehicle locking instruction is the first equipment identifier, if so, the step S420 is executed, otherwise, the processing is not carried out;
and S420, the electronic control unit 200 performs vehicle locking processing.
Specifically, when the payment date is close, the manufacturer may send payment information to the user through the third terminal to remind the user of payment. After the payment date is reached, if the manufacturer judges that the user does not pay, a vehicle locking instruction is sent to the vehicle positioning device 100, where the vehicle locking instruction may include a third device identifier of the electronic control unit 200 that needs to lock the vehicle and a rotating speed value of the vehicle.
Specifically, when the electronic control unit 200 determines that the third device identifier is the same as the first device identifier, the electronic control unit 200 executes the car locking process according to the car locking instruction.
According to the invention, when the third terminal judges that the user does not pay, the vehicle positioning device 100 sends the vehicle locking message to the electronic control unit 200 to enable the electronic control unit 200 to execute the vehicle locking process, and the vehicle positioning device 100 and the electronic control unit 200 respectively judge whether the vehicle locking process is performed, so that the reliability is improved.
Corresponding to fig. 1 to 5, the embodiment of the present invention further provides related devices corresponding to the illustrated method embodiments. The related apparatus is explained in detail below.
As shown in fig. 6, an embodiment of the present invention also provides a vehicle positioning apparatus 100, which may include: the system comprises a first equipment receiving module 101, a first equipment processing module 102, a first equipment sending module 103, a second equipment receiving module 104, a first equipment judging module 105, a storage module 106 and a second equipment sending module 107, wherein the vehicle positioning equipment 100 is arranged on a motor vehicle, an electronic control unit 200 is further arranged on the motor vehicle, and the vehicle positioning equipment 100 is electrically connected with the electronic control unit 200;
the first device receiving module 101 is configured to receive a first message sent by the electronic control unit 200;
specifically, after the key of the vehicle is powered on, the electronic control unit 200 may periodically send the first message to the vehicle positioning apparatus 100, so that the vehicle positioning apparatus 100 generates the first random number after receiving the first message.
Specifically, the periodic transmission may be that the electronic control unit 200 transmits a first message to the vehicle positioning device 100 at certain intervals.
Specifically, the duration of the period may be specified by the manufacturer, and may be 1 second, for example.
Specifically, the first packet may be a wakeup packet.
The first device processing module 102 is configured to generate a first random number and generate first verification information according to the first random number;
specifically, the first random number is generated randomly, and the content thereof may be generated according to the date and time of transmission, and the like.
Specifically, the first device processing module 102 may calculate the first verification information according to a predetermined algorithm using the first random number. The algorithm may be an MD5 algorithm, and the first authentication information may be represented using a first GPSKey.
The first device sending module 103 is configured to send a first random number to the electronic control unit 200 so that the electronic control unit 200 generates second verification information according to the first random number;
specifically, the first random number is sent to the electronic control unit 200, and the electronic control unit 200 calculates second verification information according to the first random number and according to the same algorithm, where the second verification information may be represented by using a first ECUKey.
The second device receiving module 104 is configured to receive the second verification information sent by the electronic control unit 200 and the first device identifier of the electronic control unit 200;
specifically, the first device identifier may be a hardware serial number of the electronic control unit 200.
The first device determining module 105 is configured to determine whether the first verification information and the second verification information are the same, and if so, trigger the storing module 106 to store the first device identifier and trigger the second device sending module 107;
specifically, the first device determining module 105 compares the first verification information with the second verification information, and if the first verification information is the same as the second verification information, the first device determining module 105 determines that the verification is passed and may perform binding.
The second device sending module 107 is configured to send verification passing information to the electronic control unit 200 so that the electronic control unit 200 starts a function.
Specifically, the verification passing information may include a second binding password, the electronic control unit 200 compares the first binding password with the second binding password after receiving the verification passing information, if the first binding password and the second binding password are identical, the electronic control unit 200 activates the vehicle locking function, and if the first binding password and the second binding password are not identical, the installation condition of the vehicle positioning device 100 and whether the vehicle positioning device is damaged need to be checked.
Specifically, the embodiment of the present invention may further include a predetermined device, and after the binding is completed, the vehicle positioning device 100 feeds back the binding success information and the first device identifier of the electronic control unit 200 to the predetermined device. The vehicle localization apparatus 100 no longer responds to the first message sent by the electronic control unit 200. The predetermined device may be a management device specified by a vehicle manufacturer/vendor, such as a server, a mobile phone, a computer, and the like.
Specifically, the size of each of the first authentication information and the second authentication information may be 8 bytes.
Specifically, if the first verification information and the second verification information are not the same, the installation condition of the vehicle positioning device 100 is checked.
Specifically, the locking function may be multiple, for example, the electronic control unit 200 locks the engine of the motor vehicle to an idle speed, or locks the engine to an engine speed specified by a manufacturer, and the like.
The first device receiving module 101 and the second device receiving module 104 may be the same module or different modules. The first device sending module 103 and the second device sending module 107 may be the same module or different modules.
In the embodiment of the present invention, through the interactive processing between the electronic control unit 200 and the vehicle positioning device 100, the vehicle positioning device 100 and the electronic control unit 200 can be automatically bound without manually sending various messages to achieve binding, so that the operation is simple, and the inspection of the motor vehicle when leaving the factory is facilitated. Meanwhile, the method improves the safety and reliability in the binding process between the vehicle positioning device 100 and the electronic control unit 200 by using a set MD5 algorithm.
As shown in fig. 7, an embodiment of the present invention further provides an electronic control unit 200, which may include: the system comprises a first unit sending module 201, a first unit receiving module 202, a first unit processing module 203, a second unit sending module 204, a second unit receiving module 205, a first unit judging module 206 and a second unit processing module 207, wherein the electronic control unit 200 is arranged on a motor vehicle, the motor vehicle is also provided with a vehicle positioning device 100, and the electronic control unit 200 is electrically connected with the vehicle positioning device 100;
the first unit sending module 201 is configured to send a first message to the vehicle positioning apparatus 100, so that the vehicle positioning apparatus 100 generates a first random number after receiving the first message and generates first verification information according to the first random number;
specifically, the first unit sending module 201 may send the first message to the vehicle positioning device 100 periodically, where the period may be specified by a manufacturer, and may be sent every 1 second, for example.
Specifically, the first random number is generated randomly, the size of the first random number may be 4 bytes, and the content of the first random number may be generated by calculation according to the date and time of the first random number generated at that time.
Specifically, the first packet may be a wakeup packet. The size of the first authentication information may be 8 bytes, and the content thereof may be calculated and generated according to the date and time of generation of the first authentication information.
The first unit receiving module 202 is configured to receive the first random number sent by the vehicle positioning apparatus 100;
the first unit processing module 203 is configured to generate second verification information according to the first random number;
specifically, the second verification information may be generated by calculation according to the first random number and the first device identifier of the electronic control unit 200.
The second unit sending module 204 is configured to send the second verification information and the first device identifier of the electronic control unit 200 to the vehicle positioning device 100 so that the vehicle positioning device 100 determines whether the first verification information is the same as the second verification information;
specifically, if the first verification information is the same as the second verification information, it indicates that the vehicle positioning device 100 and the electronic control unit 200 are both factory-installed devices, and the verification is passed. If they are different, it indicates that there may be an apparatus malfunction in the vehicle positioning apparatus 100 and the electronic control unit 200, and a check is required.
The second unit receiving module 205 is configured to receive verification passing information sent by the vehicle positioning device 100 after determining that the first verification information is the same as the second verification information;
specifically, the electronic control unit 200 may store a first binding password, and the first binding password may be specified by a manufacturer.
Specifically, the verification passing information may include a second binding password, the electronic control unit 200 compares the first binding password with the second binding password after receiving the verification passing information, if the first binding password and the second binding password are identical, the electronic control unit 200 activates the vehicle locking function, and if the first binding password and the second binding password are not identical, the installation condition of the vehicle positioning device 100 and whether the vehicle positioning device is damaged need to be checked.
The first unit judgment module 206 is configured to judge whether to unlock a car locking function according to the verification passing information;
specifically, the electronic control unit 200 may store a first bound password, and the verification passing information may include a second bound password. The first unit judgment module 206 judges whether the first bound password and the second bound password are the same, and if so, triggers the second unit processing module 207.
The second unit processing module 207 is configured to unlock a vehicle locking function, where the vehicle positioning device 100 stores the first device identifier after determining that the first verification information is the same as the second verification information.
Specifically, after the binding is completed, the vehicle positioning device 100 may feed back binding success information and the first device identifier of the electronic control unit 200 to a predetermined device. The vehicle localization apparatus 100 no longer responds to the first message sent by the electronic control unit 200.
Specifically, the locking function may be multiple, for example, the electronic control unit 200 locks the engine of the motor vehicle to an idle speed, or locks the engine to an engine speed specified by a manufacturer, and the like.
Specifically, after the binding is completed, the vehicle positioning device 100 may store the first device identifier of the electronic control unit 200 for use in subsequent verification.
The first unit sending module 201 and the second unit sending module 204 may be the same module or different modules. The first unit receiving module 202 and the second unit receiving module 205 may be the same module or different modules. The first unit processing module 203 and the second unit processing module 207 may be the same module or different modules.
In the embodiment of the present invention, through the interactive processing between the electronic control unit 200 and the vehicle positioning device 100, the vehicle positioning device 100 and the electronic control unit 200 can be automatically bound without manually sending various messages to achieve binding, so that the operation is simple, and the inspection of the motor vehicle when leaving the factory is facilitated. Meanwhile, the method improves the safety and reliability in the binding process between the vehicle positioning device 100 and the electronic control unit 200 by using a set MD5 algorithm.
As shown in fig. 8, another vehicle positioning apparatus 100 according to an embodiment of the present invention may include: the vehicle positioning device comprises a third device receiving module 108, a second device judging module 109, a second device processing module 110, a third device transmitting module 111, a fourth device receiving module 112, a third device judging module 113 and a fourth device transmitting module 114, wherein the vehicle positioning device 100 is arranged on a motor vehicle, an electronic control unit 200 is further arranged on the motor vehicle, a first device identifier of the electronic control unit 200 is stored in the vehicle positioning device 100, and the vehicle positioning device 100 is electrically connected with the electronic control unit 200;
the third device receiving module 108 is configured to obtain a unbinding instruction, where the unbinding instruction includes a second device identifier;
specifically, the unbinding instruction is sent by the predetermined device to the third device receiving module 108. The unbinding instruction may include a second device identification therein.
The second device determining module 109 is configured to determine whether the second device identifier is the same as the first device identifier of the electronic control unit 200, and if so, trigger the second device processing module 110 to generate a second random number and generate third verification information according to the second random number;
specifically, if the second device identifier is the same as the first device identifier, the second device determining module 109 determines that the unbinding procedure can be performed.
Specifically, the second random number is generated randomly, the size of the second random number may be 4 bytes, and the content of the second random number may be generated according to the date and time of the calculation.
Specifically, the third verification information may be generated by calculation according to the second random number and the first device identifier, and the size of the third verification information may be 8 bytes.
The third device sending module 111 is configured to send the second random number to the electronic control unit 200 so that the electronic control unit 200 generates fourth verification information according to the second random number;
specifically, the fourth authentication information is generated by the electronic control unit 200 according to the second random number and the first device identifier, and the size of the fourth authentication information may be 8 bytes.
The fourth device receiving module 112 is configured to obtain the fourth verification information;
the third device determining module 113 is configured to determine whether the third verification information is the same as the fourth verification information, and if so, trigger the fourth device sending module 114 to send unbinding passing information to the electronic control unit 200, so that the electronic control unit 200 closes the car locking function.
Specifically, if the third verification information is the same as the fourth verification information, it indicates that the verification between the vehicle positioning device 100 and the electronic control unit 200 is passed, and the unbinding may be performed.
Specifically, the electronic control unit 200 may store a first unbinding password, and the unbinding passing message includes a second unbinding password. If the first unbinding password is the same as the second unbinding password, the electronic control unit 200 closes the car locking function and sends the unbound state to the vehicle positioning device 100, and the vehicle positioning device 100 sends the unbound state to the established device in a message form. Optionally, the car locking function in this application may be a function corresponding to the car locking method shown in fig. 3, and after the car locking function of a certain vehicle is closed, the car locking method shown in fig. 3 is no longer executed on the vehicle. Thereafter, the user can remove or replace the vehicle positioning apparatus 100 and the electronic control unit 200.
The third device receiving module 108 and the fourth device receiving module 112 may be the same module or different modules.
The second device determining module 109 and the third device determining module 113 may be the same module or different modules.
The third device sending module 111 and the fourth device sending module 114 may be the same module or different modules.
The invention can realize dynamic unbinding between the vehicle positioning device 100 and the electronic control unit 200 and improve the safety in the unbinding process. By using the MD5 algorithm, the safety factor is increased, the unbinding process is not easy to crack, and the reliability is improved.
As shown in fig. 9, another electronic control unit 200 according to an embodiment of the present invention may include: a third unit receiving module 208, a third unit processing module 209, a third unit sending module 210, a fourth unit receiving module 211, a second unit judging module 212 and a fourth unit processing module 213, wherein the electronic control unit 200 is disposed on a motor vehicle, the motor vehicle is further provided with a vehicle positioning device 100, the vehicle positioning device 100 stores a first device identifier of the electronic control unit 200, and the electronic control unit 200 is electrically connected with the vehicle positioning device 100;
the third unit receiving module 208 is configured to receive a second random number sent by the vehicle positioning apparatus 100 when determining that the second apparatus identifier in the acquired unbinding instruction is the same as the first apparatus identifier of the electronic control unit 200;
the third unit processing module 209 is configured to generate fourth verification information according to the second random number;
the third unit sending module 210 is configured to send the fourth verification information to the vehicle positioning device 100;
the fourth unit receiving module 211 is configured to receive unbinding passing information sent by the vehicle locating apparatus 100 when it is determined that the fourth authentication information is identical to third authentication information generated by the vehicle locating apparatus 100 according to the second random number;
the second unit judgment module 212 is configured to judge whether to close the car locking function according to the unbinding passing information;
specifically, the electronic control unit 200 may store a first unbinding password, and the unbinding passing message may include a second unbinding password.
Specifically, the second unit judgment module 212 judges whether the first unbinding password and the second unbinding password are the same, and if so, triggers the fourth unit processing module 213; otherwise, no processing is performed.
The fourth unit processing module 213 is configured to turn off the locking function.
Specifically, the unbinding instruction may include a second device identifier so that the vehicle positioning apparatus 100 determines whether to unbind the electronic control unit 200 corresponding to the stored first device identifier, so as to avoid an unbinding error.
The third unit receiving module 208 and the fourth unit receiving module 211 may be the same module or different modules. The third unit processing module 209 and the fourth unit processing module 213 may be the same module or different modules.
The invention can realize dynamic unbinding between the vehicle positioning device 100 and the electronic control unit 200 and improve the safety in the unbinding process. By using the MD5 algorithm, the safety factor is increased, the unbinding process is not easy to crack, and the reliability is improved.
As shown in fig. 10, another vehicle positioning apparatus 100 according to an embodiment of the present invention may include: a fourth device determining module 115, a third device processing module 116, a fifth device transmitting module 117, a fifth device receiving module 118, a fifth device determining module 119, a sixth device transmitting module 120, a sixth device determining module 121, and a fourth device processing module 122, where the vehicle positioning device 100 is disposed on a motor vehicle, the motor vehicle is further provided with an electronic control unit 200, the vehicle positioning device 100 stores a first device identifier of the electronic control unit 200, and the vehicle positioning device 100 is electrically connected to the electronic control unit 200;
the fourth device determination module 115 is configured to determine whether a third random number sent by the electronic control unit 200 is received within a first time period after the power-on of the vehicle key; if not, triggering the third device processing module 116 to generate a fourth random number and generating fifth verification information according to the fourth random number and the first device identifier;
specifically, the first time period may be specified by the manufacturer, and may be 5 seconds, for example.
Specifically, the third random number may be randomly generated, and the size of the third random number may be 4 bytes, and the content of the third random number may be generated according to the date and time generated at that time.
Specifically, the fourth random number may be randomly generated, and the size of the fourth random number may be 4 bytes, and the content of the fourth random number may be generated according to the date and time generated at that time.
Specifically, the size of the fifth verification information may be 8 bytes.
The fifth device sending module 117 is configured to send a fourth random number to the electronic control unit 200 by the vehicle positioning device 100, so that the electronic control unit 200 generates sixth verification information within a second time period after the vehicle positioning device 100 sends the fourth random number and sends the sixth verification information to the fifth device receiving module 118;
specifically, the sixth verification information may be generated according to the first device identifier and the fourth random number, and the size of the sixth verification information may be 8 bytes.
The fifth device determining module 119 is further configured to determine whether a sixth verification message is received within a second time period after the fourth random number is sent, and if the sixth verification message is not received, trigger the sixth device sending module 120 to send a second message to the electronic control unit 200, so that the electronic control unit 200 performs a vehicle locking process; if the verification result is received, the sixth device determining module 121 is triggered to determine whether the sixth verification information is the same as the fifth verification information, and if the sixth verification information is not the same as the fifth verification information, the fourth device processing module 122 is triggered to control the electronic control unit 200 to lock the vehicle.
Specifically, if the fifth device determining module 119 determines that the sixth verification information is not received, it indicates that the electronic control unit 200 may be written with a flash or replaced.
Specifically, the second message may be an external torque/rotational speed control message, and the electronic control unit 200 receives the external torque/rotational speed control message by default to control the rotational speed of the engine according to the international J1939 communication standard.
The fourth device determining module 115, the fifth device determining module 119, and the sixth device determining module 121 may be the same module or different modules. The third device processing module 116 and the fourth device processing module 122 may be the same module or different modules. The fifth device transmitting module 117 and the sixth device transmitting module 120 may be the same module or different modules.
According to the invention, when the electronic control unit 200 does not send the random number, the vehicle positioning device 100 actively sends the random number to the electronic control unit 200, and the vehicle positioning device 100 and the electronic control unit 200 generate the verification information according to the random number and the first device identification and the established MD5 algorithm, so that the situation that the vehicle positioning device 100 is detached to escape positioning and locking after the electronic control unit 200 without the vehicle locking function is replaced for no debt by a user can be prevented, and the safety is improved.
As shown in fig. 10, another vehicle locating device 100 according to an embodiment of the present invention may further include a fifth device processing module 123 and a seventh device transmitting module 124,
when the fourth device determining module 115 receives the third random number sent by the electronic control unit 200 within the first time period after the motor vehicle key is powered on, the fifth device processing module 123 is triggered to generate seventh verification information within the third time period after the electronic control unit 200 sends the third random number according to the third random number and the first device identifier, and the seventh device sending module 124 is triggered to send the seventh verification information to the electronic control unit 200, so that the electronic control unit 200 compares the eighth verification information generated by the electronic control unit 200 with the seventh verification information and performs a vehicle locking process according to a comparison result.
Specifically, the third time period may be specified by the manufacturer, for example, the third time period may be 5 seconds.
Specifically, the eighth verification information may be generated according to the third random number and the first device identifier.
Specifically, the seventh verification information and the eighth verification information may each be 8 bytes.
Specifically, the electronic control unit 200 determines whether the eighth verification information is the same as the seventh verification information, and if so, does not perform processing; and if the difference is not the same, locking the vehicle.
Specifically, the locking process may be that the electronic control unit 200 controls the rotation speed of the engine of the motor vehicle to be within a specified rotation speed value when the seventh verification information is different from the eighth verification information, or the locking process may be that: the electronic control unit 200 records the judgment result that the seventh verification information is different from the eighth verification information at this time, and when the motor vehicle is powered on next time, the electronic control unit 200 judges that the seventh verification information is still the same as the eighth verification information, and the electronic control unit 200 controls the rotating speed of the motor vehicle engine to be within a specified rotating speed value.
The third device processing module 116, the fourth device processing module 122 and the fifth device processing module 123 may be the same module or different modules. The fifth device transmitting module 117, the sixth device transmitting module 120 and the seventh device transmitting module 124 may be the same module or different modules.
The present invention can actively send a random number to the vehicle positioning device 100 through the electronic control unit 200, and check whether the user replaces the vehicle positioning device 100 by determining whether the vehicle positioning device 100 sends verification information to the electronic control unit 200 within a certain time period, so as to prevent the user from replacing or removing the vehicle positioning device 100 to escape from being positioned and locked without debt, thereby improving safety.
As shown in fig. 11, another electronic control unit 200 according to an embodiment of the present invention may include: a fourth unit sending module 214, a fifth unit receiving module 215, a third unit judging module 216, a fifth unit processing module 217, a sixth unit processing module 218, and a fourth unit judging module 219, wherein the motor vehicle is further provided with a vehicle positioning device 100, a first device identifier of the electronic control unit 200 is stored in the vehicle positioning device 100, and the vehicle positioning device 100 is electrically connected with the electronic control unit 200;
the fourth unit sending module 214 is configured to send a third random number to the vehicle positioning device 100 within a first time period after the vehicle key is powered on, so that the vehicle positioning device 100 generates seventh verification information within a third time period according to the third random number and the first device identifier, and sends the seventh verification information to the fifth unit receiving module 215;
specifically, the size of the seventh authentication information may be 8 bytes.
The third unit determining module 216 is configured to determine whether a seventh verification information sent by the vehicle positioning apparatus 100 is received within a third duration, and if the seventh verification information is not received, trigger the fifth unit processing module 217 to lock the vehicle; if the verification result is received, the sixth unit processing module 218 is triggered to generate eighth verification information and the fourth unit judging module 219 is triggered to compare the seventh verification information with the eighth verification information, and if the seventh verification information is different from the eighth verification information, the fifth unit processing module 217 is triggered to lock the vehicle.
Specifically, if the third unit determining module 216 determines that the seventh verification information sent by the vehicle positioning apparatus 100 is not received within the third time period, which indicates that the vehicle positioning apparatus 100 may be removed or replaced, the fifth unit processing module 217 performs the vehicle locking process.
Specifically, in the locking process, the vehicle positioning device 100 may determine that the rotation speed of the engine of the motor vehicle is within a specified rotation speed value or the vehicle positioning device 100 determines that the seventh verification information and the eighth verification information are still not the same when the motor vehicle is powered on next time, and the vehicle positioning device 100 sends a locking message to the electronic control unit 200 to control the rotation speed of the engine of the motor vehicle to be within the specified rotation speed value.
The third unit judgment module 216 and the fourth unit judgment module 219 may be the same module or different modules. The fifth unit processing module 217 and the sixth unit processing module 218 may be the same module or different modules.
The present invention can actively send a random number to the vehicle positioning device 100 through the electronic control unit 200, and check whether the user replaces the vehicle positioning device 100 by determining whether the vehicle positioning device 100 sends verification information to the electronic control unit 200 within a certain time period, so as to prevent the user from replacing or removing the vehicle positioning device 100 to escape from being positioned and locked without debt, thereby improving safety.
As shown in fig. 12, another vehicle positioning apparatus 100 according to an embodiment of the present invention may include a sixth apparatus receiving module 125, a seventh apparatus determining module 126, and an eighth apparatus sending module 127;
the sixth device receiving module 125 is configured to receive a car locking instruction;
the seventh device determining module 126 is configured to determine whether to forward the car locking instruction to the electronic control unit 200, so that the electronic control unit 200 determines whether to perform car locking processing.
The eighth device sending module 127 is configured to send the car locking instruction to the electronic control unit 200.
Specifically, the car locking instruction may be sent to the vehicle positioning device 100 by a predetermined device, the car locking instruction may include a second device identifier, the seventh device determining module 126 determines whether the first device identifier and the second device identifier are the same, and if the first device identifier and the second device identifier are the same, the eighth device sending module 127 is triggered to send the car locking instruction to the electronic control unit 200. And if the two types of equipment are different, the established equipment resends the car locking instruction.
The invention can lock the vehicle when judging that the user is not paying back the arrears, and judges whether to lock the vehicle for a plurality of times, so as to avoid mistakenly locking other motor vehicles and improve the reliability.
As shown in fig. 13, another electronic control unit 200 according to an embodiment of the present invention may include a sixth unit receiving module 220, a fifth unit determining module 221, and a seventh unit processing module 222;
the sixth unit receiving module 220 is configured to receive a car locking instruction;
the fifth unit judgment module 221 is configured to judge whether to lock the vehicle;
the seventh unit processing module 222 is configured to perform a car locking process.
Specifically, the car locking instruction may include a second device identifier, the fifth unit determining module 221 determines whether the first device identifier and the second device identifier are the same, and if yes, the seventh unit processing module 222 is triggered to perform car locking processing.
The invention can lock the vehicle when judging that the user is not paying back the arrears, and judges whether to lock the vehicle for a plurality of times, so as to avoid mistakenly locking other motor vehicles and improve the reliability.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the method embodiment, since it is substantially similar to the system embodiment, the description is simple, and the relevant points can be referred to the partial description of the method embodiment.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.
Claims (14)
1. A device binding method is applied to vehicle positioning devices, the vehicle positioning devices are electrically connected with an electronic control unit, the vehicle positioning devices and the electronic control unit are both installed on a motor vehicle, and the method comprises the following steps:
the vehicle positioning equipment receives a first message sent by the electronic control unit;
the vehicle positioning equipment generates a first random number and generates first verification information according to the first random number;
the vehicle positioning device sends a first random number to the electronic control unit to enable the electronic control unit to generate second verification information according to the first random number;
the vehicle positioning equipment receives the second verification information sent by the electronic control unit and a first equipment identifier of the electronic control unit;
the vehicle positioning equipment judges whether the first verification information and the second verification information are the same or not, if so, the vehicle positioning equipment stores the first equipment identification and sends verification passing information to the electronic control unit so that the electronic control unit starts a vehicle locking function, and the binding between the vehicle positioning equipment and the electronic control unit is completed;
the electronic control unit stores a first binding password, and the verification passing information comprises a second binding password; and the electronic control unit compares the first binding password with the second binding password after receiving the verification passing information, and activates the vehicle locking function if the first binding password and the second binding password are consistent.
2. An equipment binding method is applied to an electronic control unit, vehicle positioning equipment is electrically connected with the electronic control unit, the vehicle positioning equipment and the electronic control unit are both installed on a motor vehicle, and the method comprises the following steps:
the electronic control unit sends a first message to the vehicle positioning equipment so that the vehicle positioning equipment generates a first random number after receiving the first message and generates first verification information according to the first random number;
the electronic control unit receives the first random number sent by the vehicle positioning equipment;
the electronic control unit generates second verification information according to the first random number and sends the second verification information and a first device identifier of the electronic control unit to the vehicle positioning device so that the vehicle positioning device can judge whether the first verification information is the same as the second verification information;
the electronic control unit receives verification passing information sent by the vehicle positioning equipment after judging that the first verification information is the same as the second verification information, and starts a vehicle locking function according to the verification passing information to finish the binding between the vehicle positioning equipment and the electronic control unit, wherein the vehicle positioning equipment stores the first equipment identifier after judging that the first verification information is the same as the second verification information; the electronic control unit stores a first binding password, and the verification passing information comprises a second binding password; and the electronic control unit compares the first binding password with the second binding password after receiving the verification passing information, and activates the vehicle locking function if the first binding password and the second binding password are consistent.
3. The equipment unbinding method is applied to vehicle positioning equipment, the vehicle positioning equipment is electrically connected with an electronic control unit, the vehicle positioning equipment and the electronic control unit are both installed on a motor vehicle, and the electronic control unit is provided with a first equipment identifier; binding the vehicle locating device with the electronic control unit using the device binding method of claim 1, the method comprising:
the vehicle positioning equipment acquires a unbinding instruction, wherein the unbinding instruction comprises a second equipment identifier;
the vehicle positioning equipment judges whether the second equipment identification is the same as the first equipment identification of the electronic control unit, if so, the vehicle positioning equipment generates a second random number and generates third verification information according to the second random number;
the vehicle positioning device transmits the second random number to the electronic control unit to cause the electronic control unit to generate fourth verification information according to the second random number;
and the vehicle positioning equipment acquires the fourth verification information and judges whether the third verification information is the same as the fourth verification information, if so, the vehicle positioning equipment sends unbinding passing information to the electronic control unit so as to enable the electronic control unit to close the vehicle locking function.
4. The equipment unbinding method is characterized by being applied to an electronic control unit, wherein the vehicle positioning equipment is electrically connected with the electronic control unit, the vehicle positioning equipment and the electronic control unit are both installed on a motor vehicle, and the electronic control unit is provided with a first equipment identifier; binding the vehicle locating device with the electronic control unit using the device binding method of claim 2, the method comprising:
the electronic control unit receives a second random number sent by the vehicle positioning equipment when judging that a second equipment identifier in the acquired unbinding instruction is the same as a first equipment identifier of the electronic control unit;
the electronic control unit generates fourth verification information according to the second random number;
the electronic control unit sends the fourth verification information to the vehicle positioning device;
the electronic control unit receives unbinding passing information sent by the vehicle positioning device when the fourth verification information is judged to be the same as third verification information generated by the vehicle positioning device according to the second random number;
and the electronic control unit closes the vehicle locking function.
5. A method for locking a vehicle, wherein the method is applied to a vehicle positioning device, the vehicle positioning device is arranged on a motor vehicle, an electronic control unit is further installed on the motor vehicle, a first device identifier of the electronic control unit is stored in the vehicle positioning device, and the vehicle positioning device and the electronic control unit are bound by using the device binding method according to claim 1, and the method comprises:
the vehicle positioning equipment judges whether a third random number sent by the electronic control unit is received within a first time length after the motor vehicle key is powered on; if not, the vehicle positioning equipment generates a fourth random number and generates fifth verification information according to the fourth random number and the first equipment identification;
the vehicle positioning device sends a fourth random number to the electronic control unit so that the electronic control unit generates sixth verification information in a second time length after the vehicle positioning device sends the fourth random number and sends the sixth verification information to the vehicle positioning device;
the vehicle positioning equipment judges whether sixth verification information is received within a second time length after the fourth random number is sent, and if the sixth verification information is not received, the vehicle positioning equipment sends a second message to the electronic control unit so that the electronic control unit can lock the vehicle; if the verification information is received, the vehicle positioning equipment judges whether the sixth verification information is the same as the fifth verification information, and if not, the vehicle positioning equipment controls the electronic control unit to lock the vehicle.
6. The method of claim 5, further comprising:
when the vehicle positioning device receives a third random number sent by the electronic control unit within a first time period after the motor vehicle key is powered on, the vehicle positioning device generates seventh verification information within a third time period after the electronic control unit sends the third random number according to the third random number and the first device identification, and sends the seventh verification information to the electronic control unit, so that the electronic control unit compares eighth verification information generated by the electronic control unit with the seventh verification information and locks the vehicle according to a comparison result.
7. A method for locking a vehicle, wherein the method is applied to an electronic control unit, the electronic control unit is disposed on a motor vehicle, a vehicle positioning device is further disposed on the motor vehicle, a first device identifier of the electronic control unit is stored in the vehicle positioning device, and the vehicle positioning device and the electronic control unit are bound by using the device binding method according to claim 2, the method comprising:
the electronic control unit sends a third random number to the vehicle positioning equipment within a first time length after the motor vehicle key is powered on, so that the vehicle positioning equipment generates seventh verification information within a third time length according to the third random number and the first equipment identification and sends the seventh verification information to the electronic control unit;
the electronic control unit judges whether seventh verification information sent by the vehicle positioning equipment is received within a third time length, and if the seventh verification information is not received, the electronic control unit locks the vehicle; and if the verification result is received, the electronic control unit generates eighth verification information, compares the seventh verification information with the eighth verification information, and locks the vehicle according to the comparison result.
8. The locking method is characterized by being applied to a motor vehicle, wherein the motor vehicle is provided with electrically connected vehicle positioning equipment and an electronic control unit, and the electronic control unit is provided with a first equipment identifier; the vehicle localization device having the first device identification stored therein, the vehicle localization device being bound to the electronic control unit using the device binding method according to claim 1 or 2, the method comprising,
the vehicle positioning equipment receives a vehicle locking instruction and forwards the vehicle locking instruction to the electronic control unit;
and the electronic control unit judges whether the equipment identifier in the vehicle locking instruction is the first equipment identifier or not, and if so, performs vehicle locking processing.
9. A vehicle positioning apparatus, comprising: the device comprises a first device receiving module, a first device processing module, a first device sending module, a second device receiving module, a first device judging module, a storage module and a second device sending module, wherein the vehicle positioning device is arranged on a motor vehicle, the motor vehicle is also provided with an electronic control unit, and the vehicle positioning device is electrically connected with the electronic control unit;
the first equipment receiving module is used for receiving a first message sent by the electronic control unit;
the first equipment processing module is used for generating a first random number and generating first verification information according to the first random number;
the first equipment sending module is used for sending a first random number to the electronic control unit so that the electronic control unit generates second verification information according to the first random number;
the second equipment receiving module is used for receiving the second verification information sent by the electronic control unit and the first equipment identification of the electronic control unit;
the first device judging module is used for judging whether the first verification information and the second verification information are the same or not, and if so, the storage module is triggered to store the first device identification and the second device sending module is triggered;
the second equipment sending module is used for sending verification passing information to the electronic control unit so that the electronic control unit can start a vehicle locking function to finish the binding between the vehicle positioning equipment and the electronic control unit;
the electronic control unit stores a first binding password, and the verification passing information comprises a second binding password; and the electronic control unit compares the first binding password with the second binding password after receiving the verification passing information, and activates the vehicle locking function if the first binding password and the second binding password are consistent.
10. An electronic control unit, comprising: the electronic control unit is arranged on a motor vehicle, the motor vehicle is also provided with vehicle positioning equipment, and the electronic control unit is electrically connected with the vehicle positioning equipment;
the first unit sending module is used for sending a first message to the vehicle positioning equipment so that the vehicle positioning equipment generates a first random number after receiving the first message and generates first verification information according to the first random number;
the first unit receiving module is used for receiving the first random number sent by the vehicle positioning equipment;
the first unit processing module is used for generating second verification information according to the first random number;
the second unit sending module is used for sending the second verification information and the first equipment identification of the electronic control unit to the vehicle positioning equipment so that the vehicle positioning equipment can judge whether the first verification information is the same as the second verification information;
the second unit receiving module is used for receiving verification passing information sent by the vehicle positioning equipment after judging that the first verification information is the same as the second verification information;
the first unit judgment module is used for judging whether the vehicle locking function is started or not according to the verification passing information;
the second unit processing module is used for starting a vehicle locking function, wherein the vehicle positioning device stores the first device identifier after judging that the first verification information is the same as the second verification information, and binding between the vehicle positioning device and the electronic control unit is completed;
the electronic control unit stores a first binding password, and the verification passing information comprises a second binding password; and the electronic control unit compares the first binding password with the second binding password after receiving the verification passing information, and activates the vehicle locking function if the first binding password and the second binding password are consistent.
11. A vehicle positioning apparatus, characterized by further comprising, on the basis of the vehicle positioning apparatus of claim 9: the vehicle positioning device comprises a third device receiving module, a second device judging module, a second device processing module, a third device sending module, a fourth device receiving module, a third device judging module and a fourth device sending module, wherein the vehicle positioning device is arranged on a motor vehicle, the motor vehicle is also provided with an electronic control unit, a first device identifier of the electronic control unit is stored in the vehicle positioning device, and the vehicle positioning device is electrically connected with the electronic control unit;
the third equipment receiving module is used for acquiring a unbinding instruction, and the unbinding instruction comprises a second equipment identifier;
the second device judgment module is used for judging whether the second device identification is the same as the first device identification of the electronic control unit, and if so, triggering the second device processing module to generate a second random number and generating third verification information according to the second random number;
the third equipment sending module is used for sending the second random number to the electronic control unit so that the electronic control unit generates fourth verification information according to the second random number;
the fourth device receiving module is configured to obtain the fourth verification information;
the third equipment judgment module is used for judging whether the third verification information is the same as the fourth verification information or not, and if so, the fourth equipment sending module is triggered to send unbinding passing information to the electronic control unit so that the electronic control unit can close the car locking function.
12. An electronic control unit, characterized by further comprising, on the basis of the electronic control unit of claim 10: the electronic control unit comprises a third unit receiving module, a third unit processing module, a third unit sending module, a fourth unit receiving module, a second unit judging module and a fourth unit processing module, wherein the electronic control unit is arranged on a motor vehicle, the motor vehicle is also provided with vehicle positioning equipment, a first equipment identifier of the electronic control unit is stored in the vehicle positioning equipment, and the electronic control unit is electrically connected with the vehicle positioning equipment;
the third unit receiving module is used for receiving a second random number sent by the vehicle positioning equipment when judging that a second equipment identifier in the acquired unbinding instruction is the same as a first equipment identifier of the electronic control unit;
the third unit processing module is used for generating fourth verification information according to the second random number;
the third unit sending module is used for sending the fourth verification information to the vehicle positioning equipment;
the fourth unit receiving module is used for receiving unbinding passing information sent by the vehicle positioning device when the fourth verification information is judged to be the same as third verification information generated by the vehicle positioning device according to the second random number;
the second unit judgment module is used for judging whether to close the car locking function according to the unbinding passing information;
and the fourth unit processing module is used for closing the vehicle locking function.
13. A vehicle positioning apparatus, characterized by further comprising, on the basis of the vehicle positioning apparatus of claim 9: the vehicle positioning device comprises a fourth device judgment module, a third device processing module, a fifth device sending module, a fifth device receiving module, a fifth device judgment module, a sixth device sending module, a sixth device judgment module and a fourth device processing module, wherein the vehicle positioning device is arranged on a motor vehicle, the motor vehicle is also provided with an electronic control unit, the vehicle positioning device stores a first device identifier of the electronic control unit, and the vehicle positioning device is electrically connected with the electronic control unit;
the fourth equipment judgment module is used for judging whether a third random number sent by the electronic control unit is received within a first time length after the motor vehicle key is powered on; if the verification result is not received, triggering the third equipment processing module to generate a fourth random number and generating fifth verification information according to the fourth random number and the first equipment identification;
the fifth device sending module is configured to send a fourth random number to the electronic control unit by the vehicle positioning device, so that the electronic control unit generates sixth verification information within a second duration after the fifth device sending module sends the fourth random number and sends the sixth verification information to the fifth device receiving module;
the fifth equipment judging module is further configured to judge whether a sixth verification message is received within a second time period after the fourth random number is sent, and if the sixth verification message is not received, trigger the sixth equipment sending module to send a second message to the electronic control unit so that the electronic control unit performs a vehicle locking process; if the verification information is received, triggering the sixth equipment judgment module to judge whether the sixth verification information is the same as the fifth verification information, and if not, triggering the fourth equipment processing module to control the electronic control unit to lock the vehicle.
14. An electronic control unit, characterized by further comprising, on the basis of the electronic control unit of claim 10: the motor vehicle is also provided with a vehicle positioning device, a first device identifier of the electronic control unit is stored in the vehicle positioning device, and the vehicle positioning device is electrically connected with the electronic control unit;
the fourth unit sending module is configured to send a third random number to the vehicle positioning device within a first time period after the motor vehicle key is powered on, so that the vehicle positioning device generates seventh verification information within a third time period according to the third random number and the first device identifier and sends the seventh verification information to the fifth unit receiving module;
the third unit judgment module is used for judging whether seventh verification information sent by the vehicle positioning equipment is received within a third time length, and if the seventh verification information is not received, the fifth unit processing module is triggered to lock the vehicle; if the verification result is received, triggering the sixth unit processing module to generate eighth verification information and triggering the fourth unit judging module to compare the seventh verification information with the eighth verification information, and if the seventh verification information is different from the eighth verification information, triggering the fifth unit processing module to lock the vehicle.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711059692.7A CN107833321B (en) | 2017-11-01 | 2017-11-01 | Equipment binding and unbinding method, car locking method and related equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711059692.7A CN107833321B (en) | 2017-11-01 | 2017-11-01 | Equipment binding and unbinding method, car locking method and related equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107833321A CN107833321A (en) | 2018-03-23 |
CN107833321B true CN107833321B (en) | 2021-05-18 |
Family
ID=61651395
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711059692.7A Active CN107833321B (en) | 2017-11-01 | 2017-11-01 | Equipment binding and unbinding method, car locking method and related equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107833321B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109544732B (en) * | 2018-10-17 | 2021-10-12 | 广州慧享佳物联科技有限公司 | Electronic lock connection method and device, electronic equipment and storage medium |
CN109849937A (en) * | 2019-03-26 | 2019-06-07 | 深圳市元征科技股份有限公司 | A kind of vehicle device accumulator charging control method and relevant device |
CN110176091B (en) * | 2019-05-15 | 2022-03-25 | 广东好太太智能家居有限公司 | Method for improving security of intelligent lock through mobile terminal equipment code |
CN112102529B (en) * | 2020-09-25 | 2022-05-20 | 无锡职业技术学院 | Power facility protection system based on passive intelligent lock and execution process thereof |
CN113742697B (en) * | 2021-08-09 | 2024-05-28 | 杭州华橙软件技术有限公司 | Equipment ownership change method, device, equipment and medium |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103414567B (en) * | 2013-08-08 | 2016-09-07 | 天地融科技股份有限公司 | Information monitoring method and system |
CN104002761A (en) * | 2014-06-10 | 2014-08-27 | 湖北航天技术研究院特种车辆技术中心 | Intelligent vehicle locking system |
CN105501176B (en) * | 2015-11-25 | 2018-12-14 | 潍柴动力股份有限公司 | A kind of long-range car locking device and method |
CN105721149B (en) * | 2016-04-25 | 2019-02-26 | 北汽福田汽车股份有限公司 | A kind of car networking system session key generates and the method for car-mounted terminal and ECU binding |
CN106101089B (en) * | 2016-06-06 | 2019-10-22 | 北汽福田汽车股份有限公司 | Method, car-mounted terminal and the ECU that car-mounted terminal is interacted with engine information |
-
2017
- 2017-11-01 CN CN201711059692.7A patent/CN107833321B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN107833321A (en) | 2018-03-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107833321B (en) | Equipment binding and unbinding method, car locking method and related equipment | |
US10049232B2 (en) | Rewrite detection system, rewrite detection device and information processing device | |
US9648023B2 (en) | Vehicle module update, protection and diagnostics | |
CN105501176B (en) | A kind of long-range car locking device and method | |
US7602915B2 (en) | Communication system having plurality of nodes sharing a common cipher key, cipher key dispatching apparatus for use in the system, and anti-theft apparatus utilizing information derived from cipher key utilization | |
WO2017008756A1 (en) | Vehicle start method | |
CN110758322B (en) | Vehicle starting method, device, equipment and storage medium | |
JP7021139B2 (en) | Methods and systems for battery binding | |
CN110704083B (en) | On-line upgrading method, device and system for automobile and readable storage medium | |
CN111742354A (en) | Vehicle diagnosis method, system, equipment and server | |
CN112615850B (en) | Vehicle-mounted service authorization anti-counterfeiting monitoring method and vehicle | |
US20200092375A1 (en) | Cloud Authorized Vehicle Control | |
JP7006335B2 (en) | In-vehicle communication system, in-vehicle communication method, and program | |
CN111775864A (en) | Remote debugging method and system and vehicle | |
CN109388915B (en) | Software authorization method, device and system | |
CN113645590A (en) | Method, apparatus, device and medium for remotely controlling vehicle based on encryption algorithm | |
CN109067745B (en) | Method for authenticating vehicle occupant, apparatus, device and storage medium therefor | |
CN114312657A (en) | Remote starting method and system of vehicle, storage medium and vehicle | |
JP2008084120A (en) | Electronic control device | |
CN112506267B (en) | RTC calibration method, vehicle-mounted terminal, user and storage medium | |
CN107833456B (en) | Vehicle monitoring device management method, device and machine readable storage medium | |
JP6508067B2 (en) | Vehicle data communication system | |
CN110766529B (en) | Operation verification method and device, air conditioner and storage medium | |
CN108418886B (en) | Vehicle control method, controller, cloud server and vehicle | |
CN111746464B (en) | Matching code generation method and device for anti-theft verification |
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 |