Vehicle anti-theft systems and methods
By using a master-slave node challenge-response mechanism and random number encryption verification in the vehicle anti-theft system, the problem of vehicle theft is solved, anti-theft functions are implemented at the software level, and the security and reliability of vehicle anti-theft are improved.
Patent Information
- Application Number
- CN202410157129.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-04
- Publication Date
- 2026-11-10
- Estimated Expiration
- 2044-02-04
AI Technical Summary
Existing technologies are insufficient to effectively prevent vehicle theft, especially when the engine or braking system is illegally started. Thieves employ a variety of theft methods, rendering traditional anti-theft measures ineffective.
The vehicle anti-theft system uses challenge and response messages between the master and slave nodes to perform security verification, ensuring that the function is only allowed to be activated when all slave nodes are in a locked state; otherwise, unlocking is prohibited. The system uses encrypted information with random numbers for verification to prevent unauthorized starting.
Without increasing hardware costs, this method effectively prevents vehicle theft by improving the security and reliability of vehicle anti-theft through software-level unlocking control.
Smart Images

Figure CN118082747B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to a vehicle anti-theft system and a vehicle anti-theft method. Background Technology
[0002] Car thefts are frequent occurrences. Early methods to prevent vehicle theft included mechanical anti-theft measures, such as using various mechanical locks to lock the clutch, brakes, accelerator, or steering wheel. Later, electronic anti-theft measures were adopted, which involved cutting off the vehicle's ignition coil or fuel / electricity supply circuits. However, with car thieves employing increasingly sophisticated and varied methods, there is an urgent need to research new technologies for vehicle anti-theft. Summary of the Invention
[0003] Against this backdrop, embodiments of the present invention provide an in-vehicle anti-theft system and a vehicle anti-theft method, which can prevent the vehicle's engine or main power source and the vehicle's braking system from being illegally started. According to embodiments of the present invention, unlocking or locking at the vehicle's functional level can be implemented in software, thereby effectively preventing vehicle theft without increasing vehicle hardware costs.
[0004] According to one embodiment of the present invention, a vehicle anti-theft system is provided, comprising a master node disposed on the vehicle and at least two slave nodes communicatively connected to the master node. The master node is configured to generate an unlock request. Each slave node is configured to: generate a challenge message upon receiving an unlock request from the master node, and perform a vehicle unlock security check upon receiving a response message corresponding to the challenge message from the master node. The challenge message includes the current state of the slave node and a random number for the unlock request. The response message includes encrypted information obtained by encrypting the random number. The vehicle unlock security check includes verification of the random number or the encrypted information. If the vehicle unlock security check at each slave node passes, the master node sends an "allow function activation" message to each slave node to unlock its function. If the vehicle unlock security check at at least one slave node fails, the master node sends a "disable function activation" message to each slave node, thereby disabling the unlocking of all slave nodes. Each slave node's state is one of locked, unlocking, or unlocked. After receiving the challenge message from each slave node, the master node first determines whether the current state of each slave node is locked. If the current state of each slave node is locked, the master node then generates the response message.
[0005] According to another aspect of the present invention, a vehicle anti-theft method is provided, which is performed by the vehicle anti-theft system as described above. The method includes: a master node generating an unlock request; each slave node generating a challenge message after receiving the unlock request from the master node, which includes the current state of the slave node and a random number for the unlock request, wherein the state of each slave node is one of locked, unlocking, or unlocked; the master node determining whether the current state of each slave node is locked, and if it is determined that the current state of each slave node is locked, generating a response message for each challenge message from each slave node, which includes encrypted information obtained by encrypting the random number; each slave node performing a vehicle unlock security check after receiving the response message from the master node, which includes checking the random number or the encrypted information; the master node receiving the results of the vehicle unlock security checks from each slave node, and if the vehicle unlock security checks from each slave node all pass, the master node sending an allow function activation message to each slave node so that the function of each slave node can be unlocked; if the vehicle unlock security check at at least one slave node fails, the master node sending a prohibit function activation message to each slave node, thereby prohibiting the function unlocking of all slave nodes.
[0006] According to another embodiment of the present invention, a vehicle anti-theft method is provided, comprising: generating an unlock request at a master node of the vehicle; receiving challenge information from each slave node communicatively connected to the master node in response to the unlock request, the challenge information including the current state of the slave node and a random number for the current unlock request, wherein the state of each slave node is one of locked, unlocking, or unlocked; determining at the master node whether the current state of each slave node is locked, and if it is determined that the current state of each slave node is locked, generating a response message for each challenge message from each slave node, the response message including... The method includes encrypted information obtained by encrypting the random number; at the master node, the results of vehicle unlock security verification from each slave node are received, wherein the vehicle unlock security verification includes verification of the random number or the encrypted information; and at the master node, if the vehicle unlock security verification results from each slave node are all passed, the master node sends an enable function activation message to each slave node so that the function of each slave node can be unlocked; if the vehicle unlock security verification result at at least one slave node fails, the master node sends an disable function activation message to each slave node, thereby disabling the function unlocking of all slave nodes. Furthermore, the method further includes: if the master node determines that at least one slave node is currently in the process of unlocking or has already been unlocked, subsequent steps are not performed, and the master node generates an alarm message indicating that the vehicle may be being stolen.
[0007] According to another aspect of the present invention, a vehicle control unit is provided, including one or more processors configured to perform the vehicle anti-theft method as described above.
[0008] According to another aspect of the present invention, a machine-readable storage medium is provided that stores executable instructions, which, when executed, cause one or more processors to perform the vehicle anti-theft method as described above.
[0009] The foregoing provides a summary of the main aspects of the invention in order to provide a basic understanding of these aspects and serves as an introduction to the detailed description that follows. Attached Figure Description
[0010] The technical solution of the present invention will become clearer from the following detailed description taken in conjunction with the accompanying drawings. It is to be understood that these drawings are for illustrative purposes only and are not intended to limit the scope of protection of the present invention.
[0011] Figure 1 This is a schematic block diagram of a vehicle anti-theft system according to one embodiment of the present invention.
[0012] Figure 2A and Figure 2B It shows Figure 1 Some embodiments of the slave node of the vehicle anti-theft system.
[0013] Figure 3 It shows Figure 1 Another way to implement vehicle anti-theft systems.
[0014] Figures 4A-4C It shows Figure 1 Some examples of master-slave node deployment in vehicle anti-theft systems.
[0015] Figure 5 This is a flowchart of a vehicle anti-theft method according to an embodiment of the present invention.
[0016] Figure 6 This is a flowchart of a vehicle anti-theft method according to another embodiment of the present invention. Detailed Implementation
[0017] The specific embodiments of the present invention will now be described with reference to the accompanying drawings.
[0018] Figure 1 A vehicle anti-theft system 100 according to an embodiment of the present invention is shown. It is installed in a vehicle and is therefore an in-vehicle system. Figure 1 As shown, the vehicle anti-theft system 100 includes: a master node (N Master )10 and at least two slave nodes, such as the first slave node (N) Slave_1 )20 and the second slave node (N) Slave_2 30.
[0019] Master node 10 receives the unlock signal (S) from the vehicle's keyless entry and start (PEPS: Passive Entry Passive Start) system. unlock The unlock signal is the vehicle's external node (N). externalThe unlock signal is sent wirelessly to PEPS, for example, via the vehicle user's mobile app or the vehicle user's key. Upon receiving the unlock signal, the master node 10 sends unlock requests to each slave node and performs an unlock security check based on challenge and response messages. If the check between the master node and a slave node passes, the handshake between the master node and that slave node is successful. If the check fails, the handshake between the master node and that slave node is unsuccessful. When the master node successfully hands over to all slave nodes, each slave node can unlock, meaning the functions of each slave node can be triggered (activated). In this case, the vehicle can start. When the master node fails to handshake with at least one slave node, all slave nodes cannot unlock, meaning the functions of all slave nodes cannot be triggered (activated). In this case, the vehicle cannot start.
[0020] A failed handshake between the master and slave nodes indicates a risk of vehicle theft. This could be caused by a thief monitoring the vehicle's bus and sending a "fake unlock request" to the slave node. The handshake verification method according to embodiments of the present invention can effectively detect such risks and, by disabling the slave node's unlocking function, prevents its activation, thereby achieving vehicle anti-theft at the functional level.
[0021] In embodiments of the present invention, the master node 10 is located in the vehicle's ECU (Electronic Control Unit), domain controller, central controller, or body controller. The master node 10 may also be referred to as the master node ECU. The master node 10 is capable of communicating directly or indirectly with multiple domain networks of the vehicle (e.g., functional domains such as the body domain and chassis domain). Each slave node may be located in the vehicle's ECU, domain controller, central controller, or body controller. A slave node may also be referred to as a slave node ECU. Multiple slave nodes may be located in different domain networks (e.g., different functional domains) of the vehicle, or they may be located in the same domain network (e.g., the same functional domain) of the vehicle.
[0022] The upstream side of master node 10 can communicate with the vehicle's PEPS system, and the downstream side of master node 10 can communicate with each slave node. In one embodiment, the vehicle ECU where the master node is located is at a higher level in the vehicle's E / E architecture than the vehicle ECUs where the slave nodes are located. In another embodiment, the master node is located in a domain controller, and the slave nodes are located in vehicle ECUs at a lower level than the domain controller.
[0023] The following describes some examples of deploying master and slave nodes.
[0024] In one embodiment, see Figure 1The first slave node 20 is located in the vehicle's powertrain system, for example, in the vehicle's powertrain electronic control unit (powertrain ECU). The second slave node 30 is located in the vehicle's braking system, for example, in the vehicle's braking system electronic control unit (braking system ECU).
[0025] In one embodiment of this example, see Figure 2A The vehicle is implemented with split-axle control, meaning the vehicle's powertrain includes a front axle motor and a rear axle motor. In this embodiment, the first slave node 20 includes two first slave nodes, namely, slave node (N) Slave_11 )21 and slave node (N) Slave_12 )22. The two first slave nodes 21 and 22 are respectively set in the controller of the front axle motor (front axle motor ECU) and the controller of the rear axle motor (rear axle motor ECU).
[0026] In another implementation of this embodiment, see Figure 2B The vehicle is implemented with wheel-by-wheel control, meaning the vehicle's power system includes four motors, each coupled to one of the vehicle's four wheels (i.e., two wheels coupled to the front axle and two wheels coupled to the rear axle). In this embodiment, the first slave node 20 includes four first slave nodes, i.e., slave nodes (N) Slave_11 21. From node (N) Slave_12 22. From node (N) Slave_13 )23 and from node (N) Slave_14 )24. The four first slave nodes 21 to 24 are respectively set in the controller of one of the four motors.
[0027] In another embodiment, see Figure 3 The vehicle anti-theft system 100 includes one or more additional slave nodes, that is, in addition to the first slave node 20 and the second slave node 30 mentioned above, it may also include one or more additional slave nodes, for example, slave node (N) Slave_3 50. From node (N) Slave_4 )60 and from node (N) Slave_5 One or more of nodes 50 to 70. In this embodiment, nodes 50 to 70 are respectively disposed in the vehicle's steering system (e.g., steering system ECU), transmission system (e.g., transmission system ECU), and shift system (e.g., shift system ECU).
[0028] Figures 4A to 4C by Figure 1 The example of master-slave nodes illustrates some implementations of master-slave node deployment.
[0029] See Figure 4AThe master node 10, the first slave node 20, and the second slave node 30 are located in the same domain network of the vehicle and communicate directly with each other. Here, "direct communication" means that since the master and slave nodes are in the same domain network of the vehicle, they can send and receive information without needing to pass it through other nodes in the vehicle. See also... Figure 4B The master node 10 and the first slave node 20 are located in different domain networks of the vehicle, and the master node 10 communicates with the first slave node 20 via the domain controller (D). The master node 10 and the second slave node 30 are located in the same domain network of the vehicle, and the master node 10 communicates directly with them. See also Figure 4C The master node 10, the first slave node 20, and the second slave node 30 are located in different domain networks of the vehicle. The master node 10 communicates with the first slave node 20 via a domain controller (D), and the master node 10 also communicates with the second slave node 30 via a domain controller (D). It is understood that the domain controller coupled to the first slave node 20 and the domain controller coupled to the second slave node 30 can be the same domain controller or different domain controllers.
[0030] Figure 5 A flowchart of a vehicle anti-theft method 500 according to an embodiment of the present invention is shown. Method 500 can be executed by the aforementioned vehicle anti-theft system 100. Method 500 includes information interaction between the master node 10 and each slave node. For clarity, in... Figure 5 The swimlane diagram illustrates the information interaction between master node 10 and the first slave node 20. It should be understood that the information interaction shown in this swimlane diagram also occurs between master node 10 and the other slave nodes. See below for reference. Figure 5 Method 500 is illustrated using the interaction between master node 10 and first slave node 20 and second slave node 30 as an example. For embodiments involving more slave nodes, it can be implemented in a similar manner to method 500.
[0031] See Figure 5 In box 502, master node 10 receives the unlock signal from the PEPS system.
[0032] The PEPS system can wirelessly communicate with external nodes of the vehicle. In one embodiment, the external node is the car key. When the driver approaches the vehicle with the car key, the PEPS system receives a wireless signal from the car key and sends an unlock signal to the master node 10 in response to the wireless signal. In another embodiment, the external node is a vehicle app installed on the vehicle user's smart device (e.g., a smartphone or smartwatch). When the user approaches the vehicle with the smart device and the vehicle app open, the PEPS system receives a wireless signal from the vehicle app and sends an unlock signal to the master node 10 in response to the wireless signal.
[0033] After receiving a wireless signal from an external node, the PEPS system determines whether the wireless signal originates from an authorized object (legitimate object). The PEPS system will only send an unlock signal to the master node 10 if it determines the wireless signal originates from an authorized object. If the PEPS system determines the wireless signal originates from an unauthorized object (illegal object), it will not send an unlock signal to the master node 10. This invention does not limit the specific implementation method by which the PEPS system determines whether a wireless signal originates from an authorized object.
[0034] In box 504, master node 10 generates an unlock request in response to receiving an unlock signal from the PEPS system. This unlock request is used to request the vehicle to be unlocked so that the vehicle can be functionally unlocked and started.
[0035] In box 506, master node 10 sends unlock requests to first slave node 20 and second slave node 30 respectively.
[0036] In one embodiment, the master node 10 sends unlock-related messages to each slave node at predetermined time intervals. These messages follow the vehicle network communication protocol. Each message contains one bit of unlock request information, where "1" indicates an unlock request and "0" indicates no request.
[0037] In box 508, the first slave node 20 and the second slave node 30 respectively receive unlock requests from the master node 10.
[0038] In box 510, each of the first slave node 20 and the second slave node 30 generates a challenge message in response to receiving an unlock request. The challenge message includes the current state of the slave node and a random number for this unlock request. The following example uses the challenge message generated by the first slave node 20 to illustrate a specific instance of the challenge message.
[0039] In one embodiment, the first slave node 20 generates a challenge message after receiving an unlock request from the master node 10. The challenge message includes the current state of the first slave node 20 and a random number.
[0040] The current state of the first slave node 20 is one of 1) locked, 2) unlocking, or 3) unlocked. "Locked" indicates that the slave node is in a locked state; this unlocking operation can only be performed while the slave node is in this state, as a slave node can only be unlocked when it is locked. "Unlocking" indicates that the slave node is being unlocked; this unlocking operation cannot be performed while the slave node is in this state, as it is already in another unlocking process. "Unlocked" indicates that the slave node has already been unlocked; this unlocking operation cannot be performed while the slave node is in this state, as it has already been unlocked.
[0041] In addition, the current state of the slave node may also be a fault state, indicating that there is a fault in the slave node. The slave node cannot perform this unlocking when it is in this state, because if the vehicle is unlocked and started at this time, there may be a safety hazard.
[0042] The random number is generated for each unlock request; that is, when a new unlock request arrives, the slave node generates a new random number for that request. This improves the reliability of vehicle anti-theft measures. For example, to prevent car thieves from continuously monitoring information on the vehicle's bus (e.g., the CAN bus), and detecting a challenge message generated for an unlock request at 3 PM, then another unlock request at 5 PM. In this scenario, if no new random number is generated, the challenge message for the 5 PM unlock request will be the same as the challenge message for the 3 PM unlock request, allowing the car thief to use the previously detected challenge message to trigger vehicle unlocking.
[0043] In one embodiment, the random number is an unpredictable and non-repeating sequence of random numbers generated using a dedicated algorithm and / or a dedicated chip.
[0044] In one embodiment, the random number has a data length of 120 bits or more. This helps prevent replay attacks.
[0045] In addition, each slave node can count the number of failed unlock requests to obtain a count value, and generate an alarm message indicating that the vehicle is at risk of theft when the count value exceeds a threshold. This alarm message can be presented to the vehicle user in one or more ways, including voice, text, vibration, and horn.
[0046] In one embodiment, the challenge message has a predetermined format and is included in the data segment of a message transmitted on the vehicle bus. According to embodiments of the present invention, the challenge message with the predetermined format is applicable to various vehicle network protocols (e.g., CAN, CANFD, FlexRay, MOST, LIN), exhibiting versatility.
[0047] Table 1 below shows an example of a predefined format for a challenge message. In the example in Table 1, the challenge message contains three fields with a preset data length range: a slave node current status field of 2 to 8 bytes, a random number field of 15 to 64 bytes, and an additional information field of 0 to 56 bytes (the content of which can be filled and adjusted according to the specific application scenario and / or the needs of the vehicle user).
[0048] Table 1: Challenge Messages
[0049] Data segment information Data segment length Current status 2 to 8 bytes random numbers 15~64 bytes Additional Information 0~56 bytes
[0050] Additionally, in box 510, if the current state of a slave node (e.g., the first slave node 20) is not locked (e.g., in the process of unlocking or already unlocked), then that slave node does not generate a random number, but instead fills the random number field in the challenge message with a default value. In other words, in this case, the random number field in the challenge message uses the default value.
[0051] In box 512, the first slave node 20 and the second slave node 30 respectively send the generated challenge message to the master node 10.
[0052] In one embodiment, a response interval duration is preset. Here, "response interval duration" refers to the interval between two consecutive challenge messages sent by the slave node, that is, the interval between two consecutive unlock requests from the master node received by the slave node. Presetting this interval duration is advantageous because if the duration is too short, it will cause frequent generation of random numbers, resulting in collisions and replays between the frequently generated random numbers; if the duration is too long, the vehicle user will perceive that the vehicle is not responding to the user's unlocking request in a timely manner, which will lead to a poor user experience. Therefore, according to an embodiment of the present invention, the interval duration is preset to a suitable value. For example, a duration can be selected within the recommended interval duration range (e.g., 1s to 3s), and the selected duration can be set as the response interval duration.
[0053] In box 514, master node 10 receives challenge messages from first slave node 20 and second slave node 30.
[0054] In box 516, the master node determines whether the current state of each slave node is locked based on the received challenge message. If the current state of each slave node is locked, the subsequent steps continue (box 518). If the current state of at least one slave node is determined to be unlocking or unlocked (e.g., the challenge message from that at least one slave node contains the current state as unlocking or unlocked, and the random number field is a default value), the subsequent steps are not performed, and the master node generates an alarm message indicating that the vehicle may be stolen. This alarm message may be presented to the vehicle user in one or more ways, including voice, text, vibration, and horn.
[0055] In box 518, master node 10 generates response messages for challenge messages from first slave node 20 and second slave node 30, respectively. The response message includes encrypted information obtained by encrypting the random number contained in the challenge message. The following describes some embodiments of the encryption method and the corresponding encrypted information obtained therefrom.
[0056] In one embodiment, the master node signs the random number using the private key from the public / private key pair to obtain the encrypted information of the random number. In another embodiment, the master node uses a shared symmetric key to calculate the Message Authentication Code (MAC) of the random number to obtain the encrypted information of the random number.
[0057] In one embodiment, the response message has a predetermined format and is included in the data segment of a message transmitted on the vehicle bus. According to embodiments of the present invention, the response message with the predetermined format is applicable to various vehicle network protocols (e.g., CAN, CANFD, FlexRay, MOST, LIN), exhibiting versatility.
[0058] Table 2 below shows an example of a predefined format for a response message. In the example in Table 2, the response message contains two fields with a preset data length range: an encrypted information field of 8 to 64 bytes and an additional information field of 0 to 56 bytes (the content of which can be filled and adjusted according to the specific application scenario and / or the needs of the vehicle user).
[0059] Table 2: Response Messages
[0060] Data segment information Data segment length Encrypted information 8~64 bytes Additional Information 0~56 bytes
[0061] In box 520, master node 10 sends response messages generated for challenge messages from each slave node to the corresponding slave node. For example, master node 10 sends a response message generated for a challenge message from first slave node 20 to first slave node 20, and sends a response message generated for a challenge message from second slave node 30 to second slave node 30.
[0062] In box 522, each slave node receives a response message from master node 10.
[0063] In one embodiment, each slave node determines whether it has received a response message from the master node within a predetermined time period after sending the challenge message. If at least one slave node determines that it has not received a response message from the master node within the predetermined time period after sending the challenge message, then the at least one slave node generates an alarm message indicating that the vehicle may be being stolen. The alarm message may be presented to the vehicle user in one or more ways, including voice, text, vibration, and horn.
[0064] In box 524, each slave node performs a vehicle unlock security check based on the received response message, which includes checking a random number or encrypted information generated based on the random number. The following example illustrates an implementation of this check using the first slave node 20 performing the vehicle unlock security check.
[0065] In one embodiment, if encryption is performed using private key signing at the master node, the first slave node 20 decrypts the encrypted information using the public key from the private / public key pair to obtain a decrypted random number. Then, the first slave node 20 compares the decrypted random number with the random number in the previous challenge message. If they match, the verification passes. If they do not match, the verification fails.
[0066] In another embodiment, if a shared symmetric key is used for encryption at the master node, the first slave node 20 uses the shared symmetric key to calculate new encrypted information from the random number in the previous challenge message. Then, the first slave node 20 compares the encrypted information in the response message with the new encrypted information. If they match, the verification passes. If they do not match, the verification fails.
[0067] In box 526, each slave node sends the verification result to master node 10.
[0068] In box 528, master node 10 receives verification results from each slave node.
[0069] In box 530, the master node determines whether it can unlock the functions of each slave node based on all the verification results, thereby unlocking the vehicle.
[0070] For example, if the verification result from each slave node is successful, it means that the master node has successfully handshaked with all slave nodes. In this case, the master node 10 sends a message to each slave node to enable the function activation, so that the function of each slave node is activated, thereby allowing the vehicle to unlock and start.
[0071] If the verification result from at least one slave node fails, it means that the master node's handshake with at least one slave node has failed. In this case, the master node sends a message to each slave node disabling function activation, so that all slave nodes' functions are locked, thus preventing the vehicle from starting.
[0072] Additionally, if the master node fails to handshake with at least one slave node, it can retry unlocking. For example, the master node resends unlock requests to each slave node and performs the handshake verification again. If the master node successfully hands off all slave nodes, it unlocks the functionality of each slave node, thus unlocking the vehicle. If the master node fails to handshake with at least one slave node, it retryes unlocking. This process repeats until the number of unsuccessful handshakes between the master node and at least one slave node exceeds a predetermined number. In this case, the master node generates an alarm message indicating that the vehicle may be being stolen. This alarm message can be presented to the vehicle user in one or more ways: voice, text, vibration, and horn.
[0073] Furthermore, according to one embodiment of the present invention, at least one slave node (e.g., a first slave node or a second slave node) may include multiple sub-slave nodes. Each of the multiple sub-slave nodes may be respectively located in a different functional module of the vehicle ECU (or vehicle VCU) where the at least one slave node is located. In this case, one implementation is: the master node 10 performs the above-mentioned unlock security verification (i.e., verification based on challenge and response messages) with each sub-slave node respectively. Another implementation is: first, the master node performs the above-mentioned unlock security verification with one of the multiple sub-slave nodes, and if the verification passes, then the master node is designated as the new master node and performs the above-mentioned unlock security verification with the other sub-slave nodes respectively. Yet another implementation is: first, the master node performs the above-mentioned unlock security verification with one of the multiple sub-slave nodes, and if the verification passes, then the master node is designated as the new master node and performs the above-mentioned unlock security verification with another sub-slave node, and if the verification passes, then the master node is designated as the new master node and performs the unlock security verification with the other sub-slave nodes respectively. In various implementations, the master node determines whether to unlock the functionality of each of the slave node's child slave nodes based on all verification results. For example, if all verifications pass, the master node 10 sends a message to each child slave node allowing activation, thus activating the functionality of each child slave node. If at least one verification fails, the master node sends a message to each child slave node disabling activation, so that the functionality of all child slave nodes cannot be unlocked.
[0074] Furthermore, in this embodiment, the function unlocking time interval between each sub-slave node is less than a predetermined unlocking time interval. For example, the function unlocking time interval between each sub-slave node among the plurality of sub-slave nodes included in the first slave node or the second slave node is less than the predetermined unlocking time interval.
[0075] Figure 6 A flowchart of a vehicle anti-theft method 600 according to another embodiment of the present invention is shown. Method 600 can be executed by the aforementioned master node 10.
[0076] See Figure 6 In box 602, after receiving an unlock signal from an external node of the vehicle via the vehicle's keyless entry and start system, the master node 10 generates an unlock request.
[0077] In box 604, master node 10 receives challenge information for unlocking requests from each slave node that is communicatively connected to master node 10. The challenge information includes the current state of the slave node and a random number for the unlocking request. The state of each slave node is one of locked, unlocking, or unlocked.
[0078] In box 606, master node 10 determines whether the current state of each slave node is locked.
[0079] In box 608, if the master node 10 determines that at least one slave node is currently in the process of unlocking or has been unlocked, no further steps will be executed. Additionally, in this case, the master node generates an alarm message indicating that the vehicle may be being stolen.
[0080] In box 610, when the master node 10 determines that the current state of each slave node is locked, a response message is generated for each challenge message from each slave node, which contains encrypted information obtained by encrypting the random number.
[0081] In box 612, the master node 10 receives the verification results of vehicle unlock security verification from each slave node, wherein the vehicle unlock security verification includes verification of the random number or the encrypted information.
[0082] In box 614, master node 10 determines whether to unlock the vehicle based on the verification results from all slave nodes.
[0083] For example, if the verification result from each slave node is successful, the master node sends an enable message to each slave node to allow the function to be activated, thus unlocking the function on each slave node. If the vehicle unlocking security verification result at at least one slave node fails, the master node sends an disable message to each slave node, thereby preventing the function from being unlocked on all slave nodes.
[0084] Embodiments of the present invention also provide a vehicle control unit including one or more processors configured to perform the vehicle anti-theft method 500 or 600 as described above.
[0085] Embodiments of the present invention also provide a machine-readable storage medium storing executable instructions that, when executed, cause one or more processors to perform the vehicle anti-theft method 500 or 600 as described above.
[0086] It is understandable that the master node and each slave node can be implemented in hardware, software, or a combination of both. For the hardware implementation, it can be implemented in one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), data signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), processors, controllers, microcontrollers, microprocessors, electronic units designed to perform their functions, or combinations thereof. For the software implementation, it can be implemented using microcode, program code, or code segments, and can also be stored in machine-readable storage media such as storage components.
[0087] It is understood that all operations in the processes and methods described above are merely exemplary, and the present invention is not limited to any operation in the methods or the order of such operations, but should be covered by all other equivalent transformations under the same or similar concept.
[0088] It is understood that software can be broadly considered as representing instructions, instruction sets, code, code segments, program code, programs, subroutines, software modules, applications, software applications, software packages, routines, subroutines, objects, running threads, procedures, functions, etc. Software can reside on a computer-readable medium. A computer-readable medium can include, for example, memory, which can be, for example, magnetic storage devices (e.g., hard disks, floppy disks, magnetic stripes), optical disks, smart cards, flash memory devices, random access memory (RAM), read-only memory (ROM), programmable ROM (PROM), erasable PROM (EPROM), electrically erasable PROM (EEPROM), registers, or removable disks. Although memory is shown as separate from the processor in several aspects of the invention, memory can also reside within the processor (e.g., in caches or registers).
[0089] The above description is provided to enable any person skilled in the art to implement the various aspects described herein. Various modifications to these aspects will be apparent to those skilled in the art, and the general principles defined herein may be applied to other aspects. Therefore, the claims are not intended to be limited to the aspects shown herein. All structural and functional equivalents of the elements of the various aspects described herein that are known or would be apparent to those skilled in the art are expressly incorporated herein by reference and are intended to be covered by the claims.
Claims
1. A vehicle anti-theft system, comprising a master node installed on the vehicle and at least two slave nodes communicatively connected to the master node. The master node is configured to generate an unlock request; Each slave node is configured to: generate a challenge message upon receiving an unlock request from the master node, and perform a vehicle unlock security check upon receiving a response message corresponding to the challenge message from the master node. in, The challenge message includes the current state of the slave node and a random number for this unlock request; the response message includes encrypted information obtained by encrypting the random number; and the vehicle unlock security verification includes: verification of the random number or the encrypted information. Furthermore, if the vehicle unlocking security check at each slave node passes, the master node sends an enable message to each slave node to allow the function to be unlocked; if the vehicle unlocking security check at at least one slave node fails, the master node sends a disable message to each slave node to prevent the function from being unlocked, thereby prohibiting the function from being unlocked by all slave nodes. Furthermore, each slave node is in one of the following states: locked, unlocking, or unlocked. After receiving a challenge message from each slave node, the master node first determines whether the current state of each slave node is locked. If the current state of each slave node is locked, the master node then generates the response message.
2. The vehicle anti-theft system as described in claim 1, wherein, If the master node determines that at least one slave node is currently in the process of unlocking or has been unlocked, no further steps will be executed, and the master node will generate an alarm message indicating that the vehicle may be stolen.
3. The vehicle anti-theft system as described in claim 1, wherein, If the vehicle unlock security check fails at at least one slave node, the master node sends an unlock request to all slave nodes again, and performs the vehicle unlock security check again at each slave node. Furthermore, if the number of times the vehicle unlock security verification fails at at least one slave node exceeds a predetermined number, the master node generates an alarm message indicating that the vehicle may be being stolen.
4. The vehicle anti-theft system as described in claim 1, wherein, Each slave node is also constructed as follows: After receiving the unlock request from the master node, the challenge message is generated after a preset response interval.
5. The vehicle anti-theft system as described in claim 1, wherein, Each slave node is also constructed as follows: Determine whether a response message has been received from the master node within a predetermined time after the challenge message is sent; as well as If at least one slave node determines that no response message has been received from the master node within a predetermined time after the challenge message was sent, then the at least one slave node generates an alarm message indicating that the vehicle may be stolen.
6. The vehicle anti-theft system as described in claim 1, wherein, The vehicle anti-theft system includes a first slave node and a second slave node, wherein the first slave node is installed in the vehicle's power system and the second slave node is installed in the vehicle's braking system, or the second slave node is installed in one of the vehicle's braking system, steering system, transmission system, shifting system, and braking system.
7. The vehicle anti-theft system as described in claim 1, wherein, The vehicle anti-theft system further includes a first slave node, a second slave node, and one or more additional slave nodes, wherein the first slave node is installed in the vehicle's power system, the second slave node is installed in the vehicle's braking system, and the one or more additional slave nodes are installed in one or more of the vehicle's steering system, transmission system, shifting system, and braking system.
8. The vehicle anti-theft system as described in any one of claims 6-7, wherein, The vehicle powertrain includes a front axle motor and a rear axle motor, and the first slave node includes two first slave nodes, which are respectively housed in the controllers of the front axle motor and the rear axle motor.
9. The vehicle anti-theft system as described in any one of claims 6-7, wherein, The vehicle powertrain includes four motors, each coupled to one of the four wheels of the vehicle, and the first slave node includes four first slave nodes, each located in the controller of one of the four motors.
10. The vehicle anti-theft system as claimed in claim 1, wherein, The master node and each slave node are in the same domain network of the vehicle, and the information exchanged between the master and slave nodes is not forwarded through other nodes in the vehicle. or The master node and each slave node are located in different domain networks of the vehicle, and the information exchanged between the master and slave nodes is forwarded through the vehicle's domain controller. or The master node and some slave nodes are in the same domain network of the vehicle, and the information exchanged between the master node and these slave nodes is not forwarded through other nodes in the vehicle. The master node and another set of slave nodes are located in different domain networks of the vehicle, and the information exchanged between the master node and the other set of slave nodes is forwarded through the vehicle's domain controller.
11. The vehicle anti-theft system as claimed in claim 1, wherein, At least one slave node contains multiple child slave nodes. And among them: The master node performs the vehicle unlock security verification with each of the slave nodes individually, or the master node performs the vehicle unlock security verification with one of the multiple slave nodes. If the verification passes, this slave node is then designated as the new master node and performs the vehicle unlock security verification with another slave node from the multiple slave nodes. If all checks pass, the functionality of each child slave node is allowed to be unlocked; if at least one check fails, the functionality of all child slave nodes is prohibited from being unlocked.
12. The vehicle anti-theft system as described in claim 11, wherein, The interval between the unlocking times of each of the multiple sub-slave nodes is less than a predetermined unlocking time interval.
13. A vehicle anti-theft method, executed by a vehicle anti-theft system as described in any one of claims 1-12, the method comprising: The master node generates an unlock request; After receiving an unlock request from the master node, each slave node generates a challenge message, which includes the current state of the slave node and a random number for this unlock request. The state of each slave node is one of locked, unlocking, or unlocked. The master node determines whether the current state of each slave node is locked, and if it is determined that the current state of each slave node is locked, it generates a response message for each challenge message from each slave node, which contains encrypted information obtained by encrypting the random number. After receiving a response message from the master node, each slave node performs a vehicle unlocking security check, which includes a check on the random number or the encrypted information. The master node receives the vehicle unlock security verification results from each slave node. If the vehicle unlock security verification results from each slave node are all passed, the master node sends an enable function activation message to each slave node so that the function can be unlocked on each slave node. If the vehicle unlock security verification result at at least one slave node is failed, the master node sends an disable function activation message to each slave node, thereby disabling the function unlocking on all slave nodes.
14. A vehicle anti-theft method, comprising: At the vehicle's master node, an unlock request is generated; At the master node, challenge information for unlocking requests is received from each slave node that is communicatively connected to the master node. This information includes the current state of the slave node and a random number for the current unlocking request. The state of each slave node is one of locked, unlocking, or unlocked. At the master node, it is determined whether the current state of each slave node is locked. If it is determined that the current state of each slave node is locked, a response message is generated for each challenge message from each slave node, which contains encrypted information obtained by encrypting the random number. At the master node, the results of vehicle unlock security verification from each slave node are received, wherein the vehicle unlock security verification includes verification of the random number or the encrypted information; and At the master node, if the vehicle unlocking security verification results from all slave nodes pass, the master node sends an "allow function activation" message to each slave node, allowing the slave nodes to unlock their functions. If the vehicle unlocking security verification result at at least one slave node fails, the master node sends a "disable function activation" message to each slave node, thereby preventing all slave nodes from unlocking their functions. The method also includes: If the master node determines that at least one slave node is currently in the process of unlocking or has been unlocked, no further steps will be executed, and the master node will generate an alarm message indicating that the vehicle may be stolen.
15. A vehicle control unit, comprising one or more processors, configured to perform the vehicle anti-theft method as claimed in any one of claims 13-14.
16. A machine-readable storage medium storing executable instructions that, when executed, cause one or more processors to perform the vehicle anti-theft method as described in any one of claims 13-14.
Citation Information
Patent Citations
In-vehicle message authentication key management method and readable storage medium
CN113613214A
Power system anti-theft control system and method based on MCU and RCU verification
CN114604198A
