Vehicle unlocking and locking method
Through the two-way encryption authentication method between the motorcycle electronic steering column lock and the body controller, the problem of insufficient anti-theft performance of the motorcycle is solved, and the unlocking or locking operation is realized only after the key verification is passed, improving the safety of the motorcycle.
Patent Information
- Application Number
- CN202510618420.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-14
- Publication Date
- 2025-08-12
AI Technical Summary
Motorcycles on the market mainly have no anti-theft devices or full mechanical column locks, which are low in safety, easy to be stolen, mechanical keys are easy to copy, and insufficient anti-theft performance.
The two-way encryption authentication method between the electronic steering column lock and the body controller is adopted. By acquiring and encrypting the key, checksum instructions are sent to ensure that the unlocking or locking operation is only performed after the two-way authentication is passed.
Improves the anti-theft performance of motorcycles, and ensures that unlocking or locking operations are performed only when the key verification is passed, enhancing security.
Smart Images

Figure CN120462554A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of motorcycles, and in particular to a vehicle unlocking method. Background Art
[0002] Most motorcycles on the market lack anti-theft devices and have fully mechanical column locks. These lack security and present a greater risk of theft. Fully mechanical column locks require a mechanical key to open, which is easily copied, resulting in lower security. Summary of the Invention
[0003] The present application aims to provide a vehicle unlocking method that can improve the anti-theft performance of motorcycles.
[0004] In a first aspect, an embodiment of the present application provides a vehicle unlocking method, which is applied to a body controller of a motorcycle, wherein the motorcycle has an electronic steering column lock, and the method comprises:
[0005] Obtain a first key and a second key;
[0006] performing an encryption operation on the first key to obtain a first checksum;
[0007] sending a first message to the electronic steering column lock, wherein the first message includes the first checksum;
[0008] In response to a second message, the second message includes a second checksum, and the second checksum is verified according to the second key. After the electronic steering column lock receives the first message, it obtains the first key and sends the second message if the first checksum is verified according to the first key. The second checksum is generated according to the second key after the electronic steering column lock obtains the second key.
[0009] If the second checksum verification passes, an unlocking instruction or a locking instruction is sent to the electronic steering column lock, so that the electronic steering column lock performs an unlocking operation or a locking operation accordingly.
[0010] According to some embodiments of the present application, performing an encryption operation on the first key to obtain a first checksum includes:
[0011] A byte replacement operation, a row shift operation, a column obfuscation operation, and a round key addition operation are performed on the first key to obtain the first checksum.
[0012] According to some embodiments of the present application, verifying the second checksum according to the second key includes:
[0013] decrypting the second checksum to obtain a first decryption result;
[0014] If the first decryption result is the same as the second key, the verification is confirmed to be successful.
[0015] According to some embodiments of the present application, decrypting the second checksum to obtain a first decryption result includes:
[0016] Performing a reverse row shift operation, a reverse byte replacement operation, a round key addition operation, and a reverse column obfuscation operation on the second checksum to obtain the first decryption result.
[0017] According to some embodiments of the present application, obtaining the first key and the second key includes:
[0018] Acquiring motorcycle status information, wherein the motorcycle status information includes key gear position, vehicle speed, and motor speed;
[0019] If the motorcycle status information satisfies a preset unlocking condition, obtaining the first key and the second key;
[0020] The unlocking conditions include:
[0021] The key position is an ignition position or an off position;
[0022] The vehicle speed is zero;
[0023] The motor speed is zero.
[0024] According to some embodiments of the present application, before sending the first message to the electronic steering column lock, the method further includes: sending a first power supply signal to a power supply terminal of the electronic steering column lock; and
[0025] When the unlocking command or the locking command is sent to the electronic steering column lock, a second power supply signal is synchronously sent to the power supply end of the lock motor, and the lock motor is used to perform the unlocking operation or the locking operation under the control of the electronic steering column lock.
[0026] In a second aspect, an embodiment of the present application provides a vehicle unlocking method, which is applied to an electronic steering column lock of a motorcycle, wherein the motorcycle has a body controller, and the method comprises:
[0027] Responding to a first message sent by the vehicle body controller, obtaining a first key; the first message includes a first checksum, and the first checksum is generated by encrypting the first key after the vehicle body controller obtains the first key;
[0028] verifying the first checksum according to the first key;
[0029] If the first checksum verification passes, obtaining the second key;
[0030] performing an encryption operation on the second key to obtain a second checksum;
[0031] A second message is sent to the vehicle body controller, where the second message includes the second checksum, so that the vehicle body controller verifies the second checksum according to the second key in response to the second message, and sends an unlock instruction to the electronic steering column lock if the second checksum passes the verification, thereby causing the electronic steering column lock to perform an unlocking operation.
[0032] According to some embodiments of the present application, verifying the first checksum according to the first key includes:
[0033] decrypting the first checksum to obtain a second decryption result;
[0034] If the second decryption result is the same as the first key, the verification is confirmed to be successful.
[0035] According to some embodiments of the present application, decrypting the first checksum to obtain a second decryption result includes:
[0036] Performing a reverse shift operation, a reverse byte replacement operation, a round key addition operation, and a reverse column obfuscation operation on the first checksum to obtain the second decryption result.
[0037] According to some embodiments of the present application, performing an encryption operation on the second key to obtain a second checksum includes:
[0038] Performing a byte replacement operation, a row shift operation, a column obfuscation operation, and a round key addition operation on the second key to obtain the second checksum.
[0039] In a third aspect, an embodiment of the present application discloses an electronic device, including:
[0040] at least one processor;
[0041] at least one memory for storing at least one program;
[0042] When at least one of the programs is executed by at least one of the processors, the vehicle unlocking method as described above is implemented.
[0043] In a fourth aspect, an embodiment of the present application discloses a motorcycle comprising the electronic device as described above.
[0044] In an embodiment of the present application, the body controller performs an encryption operation on the first key to obtain a first checksum, and sends a first message including the first checksum to the electronic steering column lock. After receiving the first message, the electronic steering column lock obtains the first key and verifies the first checksum according to the first key. If the verification passes, the electronic steering column lock sends a second message including a second checksum to the body controller. The body controller verifies the second checksum according to the second key. If the second checksum verification passes, it sends an unlocking instruction or a locking instruction to the electronic steering column lock, so that the electronic steering column lock performs the unlocking operation or the locking operation accordingly. The body controller and the electronic steering column lock perform two-way encryption authentication, and the unlocking operation or the locking operation is performed only after the verification passes, thereby improving the anti-theft performance of the motorcycle.
[0045] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become obvious from the description below, or will be learned through practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] The present application is further described below with reference to the accompanying drawings and embodiments, wherein:
[0047] Figure 1 A flowchart of an embodiment of a vehicle unlocking method provided by this application;
[0048] Figure 2 A flowchart of another vehicle unlocking method embodiment provided by the present application;
[0049] Figure 3 A schematic diagram of a vehicle unlocking device according to an embodiment of the present application;
[0050] Figure 4 A schematic diagram of a vehicle unlocking device in another embodiment of a vehicle unlocking device provided by the present application;
[0051] Figure 5 This is a schematic diagram of an electronic device embodiment provided in this application.
[0052] Reference numerals:
[0053] Vehicle unlocking device 100, first data acquisition module 110, first encryption module 120, first message sending module 130, first verification module 140, instruction sending module 150, second data acquisition module 111, second verification module 121, third data acquisition module 131, second encryption module 141, second message sending module 151, electronic device 300, processor 310, memory 320. DETAILED DESCRIPTION
[0054] The following describes in detail embodiments of the present application. Examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application and are not to be construed as limiting the present application.
[0055] In the description of this application, it should be understood that descriptions involving orientation, such as the orientation or positional relationship indicated by up, down, etc., are based on the orientation or positional relationship shown in the accompanying drawings, and are only for the convenience of describing this application and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on this application.
[0056] In the description of this application, "a plurality" refers to more than two. The use of "first" or "second" is solely for the purpose of distinguishing technical features and should not be construed as indicating or implying relative importance, or implicitly indicating the number of technical features indicated, or implicitly indicating the order of the technical features indicated.
[0057] In the description of this application, unless otherwise clearly defined, terms such as setting, installing, and connecting should be understood in a broad sense, and technicians in the relevant technical field can reasonably determine the specific meanings of the above terms in this application based on the specific content of the technical solution.
[0058] The following is based on Figures 1 to 5 A vehicle unlocking method provided by an embodiment of the present application is described.
[0059] The embodiment of the present application provides a vehicle unlocking method, which is applied to a body controller of a motorcycle, wherein the motorcycle has an electronic steering column lock, such as Figure 1 As shown, the method includes:
[0060] Step S100: Obtain a first key and a second key;
[0061] Step S200: performing an encryption operation on the first key to obtain a first checksum;
[0062] Step S300: sending a first message to the electronic steering column lock, where the first message includes a first checksum;
[0063] Step S400: In response to the second message, the second message includes a second checksum, and the second checksum is verified according to the second key. After the electronic steering column lock receives the first message, it obtains the first key and sends the second message if the first checksum is verified according to the first key. The second checksum is generated according to the second key after the electronic steering column lock obtains the second key.
[0064] Step S500: If the second checksum check passes, an unlocking instruction or a locking instruction is sent to the electronic steering column lock, so that the electronic steering column lock performs an unlocking operation or a locking operation accordingly.
[0065] In an embodiment of the present application, the body controller performs an encryption operation on the first key to obtain a first checksum, and sends a first message including the first checksum to the electronic steering column lock. After receiving the first message, the electronic steering column lock obtains the first key and verifies the first checksum according to the first key. If the verification passes, the electronic steering column lock sends a second message including a second checksum to the body controller. The body controller verifies the second checksum according to the second key. If the second checksum verification passes, it sends an unlocking instruction or a locking instruction to the electronic steering column lock, so that the electronic steering column lock performs the unlocking operation or the locking operation accordingly. The body controller and the electronic steering column lock perform two-way encryption authentication, and the unlocking operation or the locking operation is performed only after the verification passes, thereby improving the anti-theft performance of the motorcycle.
[0066] In some embodiments of the present application, the first key and the second key are stored in the EEPROM of the vehicle body controller and the electronic steering column lock.
[0067] In some embodiments of the present application, the unlock command is a request-to-unlock message with a CRC-32 checksum sent by the vehicle body controller. After the electronic steering column lock correctly interprets the message, the motor unlocks the vehicle. The position sensor confirms the retraction of the lock tongue, and a successful unlock signal with a CRC-32 checksum is sent to the vehicle body controller. Upon successful receipt of the signal, the vehicle body controller releases the power lock and sends the corresponding signal to the MCU, allowing the MCU to operate normally and the motorcycle to enter normal operating mode.
[0068] In some embodiments of the present application, the body controller requests the electronic steering column lock to activate the lock motor. After the electronic steering column lock is unlocked, the position sensor confirms that the lock tongue has been properly ejected and transmits a lock success signal to the body controller. Upon receiving the lock success signal, the body controller deactivates power to the lock motor and the motorcycle's ON position, completing the lock.
[0069] In some embodiments of the present application, the electronic steering column lock verifies the first checksum based on the first key. If the verification fails, a local alarm and an online alarm are triggered on the motorcycle. The body controller verifies the second checksum based on the second key. If the second checksum fails, a local alarm and an online alarm are triggered on the motorcycle.
[0070] In some embodiments of the present application, for “performing an encryption operation on the first key to obtain a first checksum” in step S200, step S200 includes:
[0071] Step S210: performing a byte replacement operation, a row shift operation, a column obfuscation operation, and a round key addition operation on the first key to obtain a first checksum.
[0072] In this embodiment, the vehicle body controller performs byte replacement operation, row shift operation, column obfuscation and round key addition operation on the first key based on the S-box encryption algorithm to obtain a first checksum.
[0073] In some embodiments of the present application, further explanation is given for “verifying the second checksum according to the second key” in step S400. Step S400 includes:
[0074] Step S410: decrypt the second checksum to obtain a first decryption result;
[0075] Step S420: If the first decryption result is the same as the second key, the verification is confirmed to be successful.
[0076] In this embodiment, the vehicle body controller decrypts the second checksum to obtain a first decryption result. If the first decryption result is the same as the second key, it is confirmed that the checksum has passed.
[0077] In some embodiments of the present application, the step S410 of “decrypting the second checksum to obtain a first decryption result” is further described. Step S410 includes:
[0078] Step S411: performing an inverse row shift operation, an inverse byte replacement operation, a round key addition operation, and an inverse column obfuscation operation on the second checksum to obtain a first decryption result.
[0079] In this embodiment, the vehicle body controller performs a reverse shift operation, a reverse byte replacement operation, a round key addition operation, and a reverse column obfuscation operation on the second checksum based on the S-box encryption algorithm to obtain a first decryption result.
[0080] In some embodiments of the present application, the step of “obtaining the first key and the second key” in step S100 is further described. Step S100 includes:
[0081] Step S110: Acquire motorcycle status information, which includes key position, vehicle speed, and motor speed;
[0082] Step S120: If the motorcycle status information meets the preset unlocking condition, obtain the first key and the second key;
[0083] Unlocking conditions include:
[0084] The key position is the ignition position or the off position;
[0085] The vehicle speed is zero;
[0086] The motor speed is zero.
[0087] In this embodiment, the body controller obtains the motorcycle status information and determines whether the motorcycle can be driven or stopped normally based on whether the key gear position, vehicle speed and motor speed meet the preset unlocking conditions. If the motorcycle can be driven or stopped normally, the first key or the second key is obtained to facilitate subsequent unlocking or locking operations, thereby improving the security of unlocking or locking the vehicle.
[0088] In some embodiments of the present application, when the driver opens the motorcycle door and activates the push-to-start switch, the body controller receives an action on the door feedback line and also receives an action on the push-to-start button, switching the motorcycle's gear to the ignition state. After the electronic control units on the remaining CAN lines perform a power-on self-test, the MCU sends a vehicle speed signal of 0, the motor speed signal of 0, and the steering wheel angle sensor sends a steering wheel angle signal of 30°. Once the body controller confirms that the vehicle speed, motor speed, and steering wheel angle signals are correct, it activates the 12V power supply to the lock motor of the electronic steering column lock.
[0089] In some embodiments of the present application, before "sending the first message to the electronic steering column lock" in step S300, the method further includes: sending a first power supply signal to the power supply terminal of the electronic steering column lock; and
[0090] In the case of "sending an unlocking command or a locking command to the electronic steering column lock" in step S500, a second power supply signal is synchronously sent to the power supply end of the lock motor, and the lock motor is used to perform an unlocking operation or a locking operation under the control of the electronic steering column lock.
[0091] In this embodiment, the output end of the vehicle body controller is connected to the power supply end of the electronic steering column lock and the power supply end of the lock motor, respectively. Before sending the first message, the vehicle body controller first sends a first power supply signal to the electronic steering column lock to power it, so as to facilitate two-way encrypted authentication with the electronic steering column lock. After the two-way encrypted authentication is passed, the vehicle body controller sends an unlocking command or a locking command to the electronic steering column lock, and simultaneously sends a second power supply signal to the power supply end of the lock motor to power the lock motor. After receiving the unlocking command or the locking command, the electronic steering column lock sends a control command to the lock motor, thereby controlling the lock motor to complete the unlocking operation or the locking operation. After the electronic steering column lock feeds back the status information of the completion of the unlocking operation or the locking operation to the vehicle body controller, the vehicle body controller stops sending the first power supply signal and the second power supply signal, and the electronic steering column lock and the lock motor are powered off.
[0092] The body controller controls the power supply for the electronic steering column lock and the lock motor, respectively, asynchronously unlocking the steering column. During functional interaction, the body controller only powers the lock motor when it needs to be driven to unlock or lock. At the same time, the body controller powers off the lock motor after the electronic steering column lock feedback function is completed. This reduces unnecessary static power consumption when the lock motor is not performing functional operations, extending the lifespan and unnecessary losses of the lock motor. The body controller provides a separate power supply output for the lock motor, while the electronic steering column lock provides control output for the lock motor. This ensures that the lock motor does not operate abnormally due to software design flaws or failures. For example, if the body controller is abnormally powered, the electronic steering column lock will not provide a control output; if the electronic steering column lock has an abnormal control output, the body controller will not provide a power output, thereby improving the functional safety level.
[0093] In some embodiments of the present application, the electronic steering column lock drives the lock motor to release the lock tongue, simultaneously detects the lock tongue position, and feeds back information such as the lock tongue position and unlock status to the vehicle body controller. Upon receiving the feedback signal, the vehicle body controller enables a flag associated with allowing vehicle movement. The motorcycle's ignition control module also displays the message "Vehicle Unlocked" on the screen in response to a broadcast signal. After all functions are executed, the electronic steering column lock enters a dormant state, or the vehicle body controller disconnects the power supply to the electronic steering column lock.
[0094] In some embodiments of the present application, when the driver performs a down-lock operation on a motorcycle, the body controller must detect that the push-to-start switch is off, the vehicle speed signal is 0, and the motor speed signal is 0. Simultaneously, the body controller requests the electronic steering column lock to perform two-way encrypted authentication. Within 5 seconds after verification, the body controller receives a message indicating that the steering wheel angle sensor is 30° for 5 consecutive frames and then requests the electronic steering column lock to drive the lock motor to lock. After the electronic steering column lock executes its function, it confirms through the position sensor that the lock tongue has been correctly ejected and sends a lock success signal to the body controller. Upon receiving the lock signal, the body controller cuts off power to the lock motor and the entire motorcycle's ON position.
[0095] In addition, the embodiment of the present application provides a vehicle unlocking method, which is applied to the electronic steering column lock of a motorcycle, and the motorcycle has a body controller, such as Figure 2 As shown, the method includes:
[0096] Step S1000: Responding to a first message sent by the vehicle body controller, obtaining a first key; the first message includes a first checksum, and the first checksum is generated by encrypting the first key after the vehicle body controller obtains the first key;
[0097] Step S2000: verifying the first checksum according to the first key;
[0098] Step S3000: If the first checksum verification passes, obtain the second key;
[0099] Step S4000: performing an encryption operation on the second key to obtain a second checksum;
[0100] Step S5000: Send a second message to the vehicle body controller, where the second message includes a second checksum, so that the vehicle body controller responds to the second message and verifies the second checksum according to the second key. If the second checksum passes the verification, an unlocking instruction is sent to the electronic steering column lock, so that the electronic steering column lock performs an unlocking operation.
[0101] In an embodiment of the present application, the body controller performs an encryption operation on the first key to obtain a first checksum, and sends a first message including the first checksum to the electronic steering column lock. After receiving the first message, the electronic steering column lock obtains the first key and verifies the first checksum according to the first key. If the verification passes, the electronic steering column lock sends a second message including a second checksum to the body controller. The body controller verifies the second checksum according to the second key. If the second checksum verification passes, it sends an unlocking instruction or a locking instruction to the electronic steering column lock, so that the electronic steering column lock performs the unlocking operation or the locking operation accordingly. The body controller and the electronic steering column lock perform two-way encryption authentication, and the unlocking operation or the locking operation is performed only after the verification passes, thereby improving the anti-theft performance of the motorcycle.
[0102] In some embodiments of the present application, further explanation is given for “verifying the first checksum according to the first key” in step S2000. Step S2000 includes:
[0103] Step S2100: decrypt the first checksum to obtain a second decryption result;
[0104] Step S2200: If the second decryption result is the same as the first key, the verification is confirmed to be successful.
[0105] In this embodiment, the electronic steering column lock decrypts the first checksum to obtain a second decryption result. If the second decryption result is the same as the first key, it is confirmed that the checksum has passed.
[0106] In some embodiments of the present application, the step S2100 of “decrypting the first checksum to obtain a second decryption result” is further described. Step S2100 includes:
[0107] Step S2110: performing an inverse row shift operation, an inverse byte replacement operation, a round key addition operation, and an inverse column obfuscation operation on the first checksum to obtain a second decryption result.
[0108] In this embodiment, the electronic steering column lock performs a reverse shift operation, a reverse byte replacement operation, a round key addition operation, and a reverse column obfuscation operation on the first checksum based on the S-box encryption algorithm to obtain a second decryption result.
[0109] In some embodiments of the present application, the step S4000 of "performing an encryption operation on the second key to obtain a second checksum" is further described. Step S4000 includes:
[0110] Step S4100: performing byte replacement operation, row shift operation, column obfuscation and round key addition operation on the second key to obtain a second checksum.
[0111] In this embodiment, the electronic steering column lock performs byte replacement operation, row shift operation, column obfuscation and round key addition operation based on the S-box encryption algorithm to obtain a second checksum.
[0112] In addition, the embodiment of the present application provides a vehicle unlocking device 100, which is applied to an electronic steering column lock of a motorcycle, and the motorcycle has a body controller, such as Figure 3 As shown, the vehicle unlocking device 100 includes:
[0113] A first data acquisition module 110, the first data acquisition module 110 is used to obtain a first key and a second key;
[0114] A first encryption module 120, the first encryption module 120 is used to perform an encryption operation on the first key to obtain a first checksum;
[0115] A first message sending module 130, the first message sending module 130 is used to send a first message to the electronic steering column lock, the first message including a first checksum;
[0116] A first verification module 140 is configured to respond to a second message, the second message including a second checksum, and verify the second checksum according to the second key. After the electronic steering column lock receives the first message, it obtains the first key and sends the second message if the first checksum is verified according to the first key. The second checksum is generated according to the second key after the electronic steering column lock obtains the second key.
[0117] The instruction sending module 150 is used to send an unlocking instruction or a locking instruction to the electronic steering column lock if the second checksum verification passes, so that the electronic steering column lock performs an unlocking operation or a locking operation accordingly.
[0118] In an embodiment of the present application, the body controller performs an encryption operation on the first key to obtain a first checksum, and sends a first message including the first checksum to the electronic steering column lock. After receiving the first message, the electronic steering column lock obtains the first key and verifies the first checksum according to the first key. If the verification passes, the electronic steering column lock sends a second message including a second checksum to the body controller. The body controller verifies the second checksum according to the second key. If the second checksum verification passes, it sends an unlocking instruction or a locking instruction to the electronic steering column lock, so that the electronic steering column lock performs the unlocking operation or the locking operation accordingly. The body controller and the electronic steering column lock perform two-way encryption authentication, and the unlocking operation or the locking operation is performed only after the verification passes, thereby improving the anti-theft performance of the motorcycle.
[0119] In addition, the embodiment of the present application provides a vehicle unlocking device 100, such as Figure 4 As shown, an electronic steering column lock is applied to a motorcycle, the motorcycle has a body controller, and the vehicle unlocking device 100 includes:
[0120] The second data acquisition module 111 is used to obtain the first key in response to the first message sent by the vehicle body controller; the first message includes a first checksum, and the first checksum is generated by encrypting the first key after the vehicle body controller obtains the first key;
[0121] A second verification module 121, the second verification module 121 is used to verify the first checksum according to the first key;
[0122] A third data acquisition module 131 is used to obtain a second key if the first checksum verification passes;
[0123] A second encryption module 141, the second encryption module 141 is used to perform an encryption operation on the second key to obtain a second checksum;
[0124] The second message sending module 151 is used to send a second message to the body controller, where the second message includes a second checksum, so that the body controller responds to the second message and verifies the second checksum according to the second key. If the second checksum passes the verification, an unlocking instruction is sent to the electronic steering column lock, so that the electronic steering column lock performs an unlocking operation.
[0125] In an embodiment of the present application, the body controller performs an encryption operation on the first key to obtain a first checksum, and sends a first message including the first checksum to the electronic steering column lock. After receiving the first message, the electronic steering column lock obtains the first key and verifies the first checksum according to the first key. If the verification passes, the electronic steering column lock sends a second message including a second checksum to the body controller. The body controller verifies the second checksum according to the second key. If the second checksum verification passes, it sends an unlocking instruction or a locking instruction to the electronic steering column lock, so that the electronic steering column lock performs the unlocking operation or the locking operation accordingly. The body controller and the electronic steering column lock perform two-way encryption authentication, and the unlocking operation or the locking operation is performed only after the verification passes, thereby improving the anti-theft performance of the motorcycle.
[0126] In addition, the embodiment of the present application provides an electronic device 300, such as Figure 5 Shown, including:
[0127] at least one processor 310;
[0128] at least one memory 320, for storing at least one program;
[0129] When the at least one program is executed by the at least one processor 310 , the vehicle unlocking method as described above is implemented.
[0130] In an embodiment of the present application, the body controller performs an encryption operation on the first key to obtain a first checksum, and sends a first message including the first checksum to the electronic steering column lock. After receiving the first message, the electronic steering column lock obtains the first key and verifies the first checksum according to the first key. If the verification passes, the electronic steering column lock sends a second message including a second checksum to the body controller. The body controller verifies the second checksum according to the second key. If the second checksum verification passes, it sends an unlocking instruction or a locking instruction to the electronic steering column lock, so that the electronic steering column lock performs the unlocking operation or the locking operation accordingly. The body controller and the electronic steering column lock perform two-way encryption authentication, and the unlocking operation or the locking operation is performed only after the verification passes, thereby improving the anti-theft performance of the motorcycle.
[0131] In addition, an embodiment of the present application provides a computer-readable storage medium, which stores a program executable by a processor. When the program executable by the processor is executed by the processor, it is used to implement the vehicle unlocking method as described above.
[0132] In an embodiment of the present application, the body controller performs an encryption operation on the first key to obtain a first checksum, and sends a first message including the first checksum to the electronic steering column lock. After receiving the first message, the electronic steering column lock obtains the first key and verifies the first checksum according to the first key. If the verification passes, the electronic steering column lock sends a second message including a second checksum to the body controller. The body controller verifies the second checksum according to the second key. If the second checksum verification passes, it sends an unlocking instruction or a locking instruction to the electronic steering column lock, so that the electronic steering column lock performs the unlocking operation or the locking operation accordingly. The body controller and the electronic steering column lock perform two-way encryption authentication, and the unlocking operation or the locking operation is performed only after the verification passes, thereby improving the anti-theft performance of the motorcycle.
[0133] In addition, an embodiment of the present application discloses an electric motorcycle, comprising the electronic device as described above.
[0134] In an embodiment of the present application, the body controller performs an encryption operation on the first key to obtain a first checksum, and sends a first message including the first checksum to the electronic steering column lock. After receiving the first message, the electronic steering column lock obtains the first key and verifies the first checksum according to the first key. If the verification passes, the electronic steering column lock sends a second message including a second checksum to the body controller. The body controller verifies the second checksum according to the second key. If the second checksum verification passes, an unlocking instruction or a locking instruction is sent to the electronic steering column lock, so that the electronic steering column lock performs the unlocking operation or the locking operation accordingly. The body controller and the electronic steering column lock perform two-way encryption authentication, and the unlocking operation or the locking operation is performed only after the verification passes, thereby improving the anti-theft performance of the electric motorcycle.
[0135] Those skilled in the art will appreciate that all or some of the steps and systems in the method disclosed above can be implemented as software, firmware, hardware, and appropriate combinations thereof. Some physical components or all physical components can be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software can be distributed on a computer-readable medium, and the computer-readable medium can include computer storage media (or non-transitory media) and communication media (or temporary media). As known to those skilled in the art, the term computer storage media is included in any method or technology for storing data (such as computer-readable instructions, data structures, program modules, or other data) and is volatile and non-volatile, removable, and non-removable. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory, or other memory technology, CD-ROM, digital versatile disks (DVD), or other optical disk storage, magnetic cassettes, magnetic tapes, disk storage, or other magnetic storage devices, or any other medium that can be used to store desired data and can be accessed by a computer. Furthermore, as is well known to those skilled in the art, communication media typically embodies computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any data delivery media.
[0136] The embodiments of the present application are described in detail above in conjunction with the accompanying drawings, but the present application is not limited to the above embodiments. Various changes can be made within the scope of knowledge possessed by ordinary technicians in the relevant technical field without departing from the purpose of the present application.
Claims
1. A vehicle unlocking method, characterized in that: A body controller for a motorcycle having an electronic steering column lock is provided, wherein the method comprises: Obtain a first key and a second key; performing an encryption operation on the first key to obtain a first checksum; sending a first message to the electronic steering column lock, wherein the first message includes the first checksum; In response to a second message, the second message includes a second checksum, and the second checksum is verified according to the second key. After the electronic steering column lock receives the first message, it obtains the first key and sends the second message if the first checksum is verified according to the first key. The second checksum is generated according to the second key after the electronic steering column lock obtains the second key. If the second checksum verification passes, an unlocking instruction or a locking instruction is sent to the electronic steering column lock, so that the electronic steering column lock performs an unlocking operation or a locking operation accordingly.
2. The vehicle unlocking method according to claim 1, characterized in that: The performing an encryption operation on the first key to obtain a first checksum includes: A byte replacement operation, a row shift operation, a column obfuscation operation, and a round key addition operation are performed on the first key to obtain the first checksum.
3. The vehicle unlocking method according to claim 1, characterized in that: The verifying the second checksum according to the second key includes: decrypting the second checksum to obtain a first decryption result; If the first decryption result is the same as the second key, the verification is confirmed to be successful.
4. The vehicle unlocking method according to claim 3, characterized in that: Decrypting the second checksum to obtain a first decryption result includes: Performing a reverse row shift operation, a reverse byte replacement operation, a round key addition operation, and a reverse column obfuscation operation on the second checksum to obtain the first decryption result.
5. The vehicle unlocking method according to claim 1, characterized in that: The obtaining of the first key and the second key includes: Acquiring motorcycle status information, wherein the motorcycle status information includes key gear position, vehicle speed, and motor speed; If the motorcycle status information satisfies a preset unlocking condition, obtaining the first key and the second key; The unlocking conditions include: The key position is an ignition position or an off position; The vehicle speed is zero; The motor speed is zero.
6. The vehicle unlocking method according to claim 1, characterized in that: Before sending the first message to the electronic steering column lock, the method further includes: sending a first power supply signal to the power supply terminal of the electronic steering column lock; and When the unlocking command or the locking command is sent to the electronic steering column lock, a second power supply signal is synchronously sent to the power supply end of the lock motor, and the lock motor is used to perform the unlocking operation or the locking operation under the control of the electronic steering column lock.
7. A vehicle unlocking method, characterized in that: An electronic steering column lock is applied to a motorcycle having a body controller, the method comprising: Responding to a first message sent by the vehicle body controller, obtaining a first key; the first message includes a first checksum, and the first checksum is generated by encrypting the first key after the vehicle body controller obtains the first key; verifying the first checksum according to the first key; If the first checksum verification passes, obtaining the second key; performing an encryption operation on the second key to obtain a second checksum; A second message is sent to the vehicle body controller, where the second message includes the second checksum, so that the vehicle body controller verifies the second checksum according to the second key in response to the second message, and sends an unlock instruction to the electronic steering column lock if the second checksum passes the verification, thereby causing the electronic steering column lock to perform an unlocking operation.
8. The vehicle unlocking method according to claim 7, characterized in that: The verifying the first checksum according to the first key includes: decrypting the first checksum to obtain a second decryption result; If the second decryption result is the same as the first key, the verification is confirmed to be successful.
9. The vehicle unlocking method according to claim 8, characterized in that: Decrypting the first checksum to obtain a second decryption result includes: Performing a reverse shift operation, a reverse byte replacement operation, a round key addition operation, and a reverse column obfuscation operation on the first checksum to obtain the second decryption result.
10. The vehicle unlocking method according to claim 7, characterized in that: The performing an encryption operation on the second key to obtain a second checksum includes: Performing a byte replacement operation, a row shift operation, a column obfuscation operation, and a round key addition operation on the second key to obtain the second checksum.