Battery encryption method, device, equipment, system, readable storage medium and product

By establishing an encryption system between the battery module and the control module of the new energy vehicle battery, and using the encryption and decryption operations of the public and private keys, the problem of battery anti-theft is solved, and one-to-one matching between the battery and the vehicle is achieved, preventing the battery from being stolen and used on mismatched vehicles.

CN119561749AActive Publication Date: 2025-03-04BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411721747.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-27
Publication Date
2025-03-04
Estimated Expiration
2044-11-27

AI Technical Summary

Technical Problem

How to achieve encryption and anti-theft of new energy vehicle batteries, prevent batteries from being stolen and used on mismatched vehicles.

Method used

By establishing an encryption system between the battery module and the control module, encrypting and decrypting operations using the public and private keys, ensuring that only matching vehicles and batteries can be powered. The specific steps include: in response to the power supply request signal sent by the preset control module, sending a preset public key to the control module; obtaining the encrypted data sent by the control module, decrypting the private key corresponding to the preset public key, obtaining the target key and performing legality verification; if the target key passes verification, performing a heartbeat verification with the control module based on the key, and deciding whether to perform power supply operations.

Benefits of technology

It effectively prevents theft of batteries and ensures a one-to-one matching relationship between the vehicle and the battery, thereby avoiding illegal transactions and theft of batteries on the market.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119561749A_ABST
    Figure CN119561749A_ABST
Patent Text Reader

Abstract

The invention provides a battery encryption method, device, equipment and system, a readable storage medium and a product, and relates to the field of data processing, in particular to the field of intelligent transportation. According to the specific implementation scheme, in response to a preset power supply request signal sent by a control module, a preset public key is sent to the control module; acquiring encrypted data sent by the control module; performing decryption operation on the encrypted data through a private key corresponding to the preset public key to obtain a target key, and performing legality verification operation on the target key; and in response to the fact that the target key passes the legality verification, carrying out heartbeat verification operation based on the target key and the control module, and carrying out power supply operation based on a verification result of the heartbeat verification operation. Therefore, when the battery is installed on an unmatched vehicle, the power supply operation can be stopped, and the battery is prevented from being stolen from the source. In the power supply process, heartbeat verification operation can be realized through the target key, and power supply is stopped when verification fails, so that the safety of the battery is further ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to intelligent transportation in data processing, and more particularly to a battery encryption method, device, equipment, system, readable storage medium and product. Background Art

[0002] With the gradual development of new energy vehicles, more and more new energy vehicles are gradually entering the lives of users. Compared with the engines of traditional fuel vehicles, the batteries of new energy vehicles are more integrated, easier to disassemble, and easier to reuse.

[0003] Therefore, how to achieve encryption and anti-theft of new energy vehicle batteries has become an urgent problem to be solved. Summary of the invention

[0004] The present disclosure provides a battery encryption method, device, equipment, system, readable storage medium and product for realizing encryption and anti-theft of new energy vehicle batteries.

[0005] According to a first aspect of the present disclosure, a battery encryption method is provided, which is applied to a battery module and includes:

[0006] In response to a power supply request signal sent by a preset control module, sending a preset public key to the control module;

[0007] Acquire the encrypted data sent by the control module, where the encrypted data is obtained after the control module encrypts a preset target key based on the preset public key;

[0008] Decrypting the encrypted data using a private key corresponding to the preset public key to obtain the target key, and performing a legitimacy verification operation on the target key;

[0009] In response to the target key passing the legitimacy check, a heartbeat check operation is performed with the control module based on the target key, and a power supply operation is performed based on a check result of the heartbeat check operation.

[0010] According to a second aspect of the present disclosure, a battery encryption method is provided, which is applied to a control module and includes:

[0011] In response to the vehicle being started, sending a power supply request signal to a preset battery module;

[0012] Obtaining a preset public key sent by the battery module;

[0013] Performing an encryption operation on a preset target key based on the preset public key to generate encrypted data, and sending the encrypted data to the battery module;

[0014] A heartbeat verification operation is performed with the battery module according to the target key, and a power transmission operation is performed based on the verification result. The heartbeat verification operation is performed after the battery module determines that the target key has passed the legitimacy verification.

[0015] According to a third aspect of the present disclosure, a battery encryption method is provided, which is applied to a battery encryption system, wherein the battery encryption system includes a battery module and a control module, wherein the battery module is communicatively connected to the control module; the method includes:

[0016] In response to the vehicle starting, the control module sends a power supply request signal to a preset battery module;

[0017] The battery module obtains the power supply request signal sent by the control module, and sends a preset public key to the control module;

[0018] The control module obtains a preset public key sent by the battery module, performs an encryption operation on a preset target key based on the preset public key, generates encrypted data, and sends the encrypted data to the battery module;

[0019] The battery module decrypts the encrypted data using a private key corresponding to the preset public key to obtain the target key, and performs a legitimacy verification operation on the target key;

[0020] In response to the target key passing the legitimacy check, the battery module and the control module perform a heartbeat check operation based on the target key, and perform a power supply operation based on a check result of the heartbeat check operation.

[0021] According to a fourth aspect of the present disclosure, a battery encryption device is provided, which is applied to a battery module, comprising:

[0022] A sending module, configured to send a preset public key to the control module in response to a power supply request signal sent by the preset control module;

[0023] An acquisition module, used for acquiring the encrypted data sent by the control module, wherein the encrypted data is obtained after the control module encrypts a preset target key based on the preset public key;

[0024] A decryption module, used to decrypt the encrypted data using a private key corresponding to the preset public key, obtain the target key, and perform a legitimacy verification operation on the target key;

[0025] The power supply module is used for performing a heartbeat check operation with the control module based on the target key in response to the target key passing the legitimacy check, and performing a power supply operation based on the check result of the heartbeat check operation.

[0026] According to a fifth aspect of the present disclosure, a battery encryption device is provided, which is applied to a control module, including:

[0027] A communication module, configured to send a power supply request signal to a preset battery module in response to the vehicle starting;

[0028] A data acquisition module, used to acquire a preset public key sent by the battery module;

[0029] an encryption module, used to perform an encryption operation on a preset target key based on the preset public key, generate encrypted data, and send the encrypted data to the battery module;

[0030] The verification module is used to perform a heartbeat verification operation with the battery module according to the target key, and perform a power transmission operation based on the verification result. The heartbeat verification operation is performed after the battery module determines that the target key has passed the legitimacy verification.

[0031] According to a sixth aspect of the present disclosure, a battery encryption system is provided, the battery encryption system comprising a battery module and a control module, the battery module being communicatively connected with the control module; the battery encryption system further comprising:

[0032] A signal sending module, configured to, in response to the vehicle starting, cause the control module to send a power supply request signal to a preset battery module;

[0033] A public key sending module, used to control the battery module to obtain the power supply request signal sent by the control module, and send a preset public key to the control module;

[0034] a public key acquisition module, used to control the control module to acquire a preset public key sent by the battery module, perform an encryption operation on a preset target key based on the preset public key, generate encrypted data, and send the encrypted data to the battery module;

[0035] A data decryption module, used to control the battery module to decrypt the encrypted data using a private key corresponding to the preset public key, obtain the target key, and perform a legitimacy verification operation on the target key;

[0036] The heartbeat verification module is used for, in response to the target key passing the legitimacy verification, the battery module and the control module performing a heartbeat verification operation based on the target key, and performing a power supply operation based on the verification result of the heartbeat verification operation.

[0037] According to a seventh aspect of the present disclosure, there is provided an electronic device, including:

[0038] at least one processor; and

[0039] a memory communicatively connected to the at least one processor; wherein,

[0040] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method described in the first aspect, the second aspect, or the third aspect.

[0041] According to an eighth aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute the method described in the first aspect, the second aspect, or the third aspect.

[0042] According to the ninth aspect of the present disclosure, a computer program product is provided, comprising: a computer program, wherein the computer program is stored in a readable storage medium, at least one processor of an electronic device can read the computer program from the readable storage medium, and the at least one processor executes the computer program so that the electronic device executes the method described in the first aspect, the second aspect, or the third aspect.

[0043] The technology disclosed in the present invention can ensure the safety of new energy vehicle batteries, and control the battery module to stop supplying power when verification fails based on the battery encryption system, so as to prevent the battery from being stolen.

[0044] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.

[0046] Figure 1 A diagram of the system architecture on which the present disclosure is based;

[0047] Figure 2 A schematic diagram of a battery encryption method according to an embodiment of the present disclosure;

[0048] Figure 3 A flowchart of a battery encryption method provided by another embodiment of the present disclosure;

[0049] Figure 4 A flowchart of a battery encryption method provided by another embodiment of the present disclosure;

[0050] Figure 5 A flowchart of a battery encryption method provided by another embodiment of the present disclosure;

[0051] Figure 6A flowchart of a battery encryption method provided by another embodiment of the present disclosure;

[0052] Figure 7 A flowchart of a battery encryption method provided by another embodiment of the present disclosure;

[0053] Figure 8 A schematic diagram of a battery encryption method according to an embodiment of the present disclosure;

[0054] Fig. 9 A flowchart of a battery encryption method provided by another embodiment of the present disclosure;

[0055] Fig.10 A schematic diagram of an application scenario provided for an embodiment of the present disclosure;

[0056] Fig.11 A schematic diagram of the structure of a battery encryption device provided in an embodiment of the present disclosure;

[0057] Fig.12 A schematic diagram of the structure of a battery encryption device provided in an embodiment of the present disclosure;

[0058] Fig.13 A schematic diagram of the structure of a battery encryption system provided by an embodiment of the present disclosure;

[0059] Fig.14 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0060] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.

[0061] The present disclosure provides a battery encryption method, device, equipment, system, readable storage medium and product, which are applied to intelligent transportation in the field of data processing to ensure the safety of new energy vehicle batteries, and control the battery to stop supplying power when the verification fails based on the encryption system to avoid the battery being stolen.

[0062] With the rapid development of new energy vehicles, traditional automobile anti-theft technology cannot fully cover the application scenarios of new energy vehicles. Compared with the engines of traditional fuel vehicles, the batteries of new energy vehicles are more integrated, easier to disassemble, and easier to reuse.

[0063] At present, the main form of battery anti-theft technology on the market is to warn thieves by means of vehicle external alarm sound, vehicle locking and unable to drive, etc. However, if the thief damages the camera, sensor or speaker, the warning sound cannot be output when using the above method to prevent the battery from being stolen. In addition, if the thief directly removes the battery, the speaker will not have power support and will not alarm, and the vehicle battery cannot be effectively protected.

[0064] In the process of solving the above technical problems, the inventors found through research that in order to protect the batteries of new energy vehicles, a battery encryption system can be set up. In the battery decryption system, the control module and the battery module can be used for encryption verification to ensure that the vehicle and the battery are matched one to one. Therefore, even if the battery is stolen, the battery cannot be used in other vehicles. Solve the problem of battery transactions in the market from the root and prevent battery theft.

[0065] Optionally, a public key, a private key, and a target key may be pre-stored in the battery module. When the vehicle is started, the control system may send a handshake signal to the battery module. After the verification is passed, the battery module sends the public key to the control module. The control module encrypts the target key based on the public key and sends it to the battery module. After the battery module verifies the target key, it may perform a heartbeat check with the control module. Power is supplied based on the verification result. When the verification fails, the power supply operation is stopped to ensure a one-to-one matching relationship between the vehicle and the battery.

[0066] It should be noted that the head model in this embodiment is not a head model for a specific user and cannot reflect the personal information of a specific user. It should be noted that the two-dimensional face image in this embodiment comes from a public data set.

[0067] In the technical solution of the present disclosure, the collection, storage, use, processing, transmission, provision and disclosure of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0068] In order to enable readers to more deeply understand the implementation principle of the present disclosure, the following Figure 1-Figure 14 The embodiments of the present disclosure are further refined.

[0069] Figure 1 This is the system architecture diagram on which the present disclosure is based, such as Figure 1 As shown, the system architecture on which the present disclosure is based includes a battery module 11 and a control module 12. The battery module 11 is in communication connection with the control module 12. The battery module 11 pre-stores a preset public key 13, a private key 14 and a target key 15. The control module 12 pre-stores the target key 15.

[0070] Based on the above system architecture, when the vehicle starts, the control module 12 can send a power request signal to the battery module 11. In response to the power request signal, the battery module 11 sends a preset public key 13 to the control module 12. The control module 12 can perform an encryption operation on the target key 15 based on the preset public key 13, and feed the encrypted data back to the battery module 11. The battery module 11 can decrypt the encrypted data and verify the target key sent by the control module 12 based on the pre-stored target key 15. After the verification is passed, the battery module 11 can perform a heartbeat verification operation with the control module 12, and determine whether to continue the power supply operation based on the verification result.

[0071] Figure 2 A schematic diagram of a battery encryption method provided in an embodiment of the present disclosure is applied to a battery module, such as Figure 2 As shown, the method includes:

[0072] Step 201: In response to a power supply request signal sent by a preset control module, a preset public key is sent to the control module.

[0073] Step 202: Acquire the encrypted data sent by the control module, where the encrypted data is obtained after the control module encrypts the preset target key based on the preset public key.

[0074] Step 203: Decrypt the encrypted data using a private key corresponding to the preset public key to obtain the target key, and perform a legitimacy verification operation on the target key.

[0075] Step 204: In response to the target key passing the legitimacy check, a heartbeat check operation is performed with the control module based on the target key, and a power supply operation is performed based on the check result of the heartbeat check operation.

[0076] The execution subject of this embodiment is a battery encryption device, which can be coupled to a battery module.

[0077] In this embodiment, the battery module is connected to the control module in communication. A preset public key and a private key corresponding to the preset public key may be pre-set in the battery module. In addition, a target key may be pre-set in the battery module and the control module. The target key may be any preset key, or the target key may be the VIN code of the current vehicle.

[0078] The battery module can be arranged in a battery installed in a new energy vehicle, and the control module can be arranged in a new energy vehicle.

[0079] Optionally, in order to achieve battery encryption, when the vehicle is started, the control module may initiate a power request signal to the battery module. The power request signal may be a handshake signal, or may be any signal for requesting power, which is not limited by the present disclosure.

[0080] Further, in response to the power supply request signal, the battery module may send the preset public key to the control module.

[0081] It should be noted that when the vehicle is started for the first time, the battery module can send the preset public key to the control module. The control module can store the preset public key, so the battery module may no longer send the preset public key to the control module. Alternatively, the control module may not store the preset public key, and the battery module may send the preset public key to the control module each time the vehicle is started. The present disclosure does not limit this.

[0082] Furthermore, in order to ensure the security of subsequent data interaction, after obtaining the preset public key, the control module can perform an encryption operation on the pre-stored target key based on the preset public key to obtain encrypted data, and return the encrypted data to the battery module.

[0083] After obtaining the encrypted data, the battery module can decrypt the encrypted data based on the private key corresponding to the preset public key to obtain the target key sent by the control module.

[0084] Optionally, in order to ensure a one-to-one relationship between the vehicle and the battery, after obtaining the target key, the target key can also be subjected to a legitimacy verification operation to determine whether the control module is a control module that matches the battery, that is, whether the vehicle in which the battery is currently installed matches the battery.

[0085] Further, after the target key is legally verified, the battery module can perform a power supply operation. Further, the control module can also perform a two-way heartbeat verification operation with the battery module. During the verification process, the control module and the battery module can both generate a heartbeat packet, which is transmitted to the battery module and the control module respectively according to the preset transmission parameters. Therefore, the control module and the battery module can perform a heartbeat verification based on information such as the transmission frequency and the decryption result to determine whether to continue to supply power.

[0086] In order to ensure data security during the heartbeat verification process, the transmitted heartbeat packet can be encrypted using the target key.

[0087] The battery encryption method provided in this embodiment transmits the target key by asymmetric encryption, and performs power supply operation after the legitimacy of the target key is verified, so as to ensure a one-to-one relationship between the vehicle and the battery. When the battery is installed in an unmatched vehicle, the power supply operation can be stopped, that is, the battery is unusable after being stolen, so as to avoid the battery from being stolen at the root. In addition, during the power supply process, the heartbeat packet can be encrypted by the target key to implement the heartbeat verification operation. When the verification fails, the power supply is stopped, further ensuring the safety of the battery.

[0088] Optionally, based on any of the above embodiments, step 201 includes:

[0089] In response to the handshake verification request triggered by the control module, a three-way handshake verification operation is performed with the control module.

[0090] In response to the three-way handshake verification being passed, a preset public key is sent to the control module.

[0091] In this embodiment, the power supply request signal may be a handshake verification request.

[0092] Accordingly, after obtaining the handshake verification request sent by the control module, the battery module can perform a three-way handshake verification operation with the control module. After the three-way handshake verification passes, the preset public key is sent to the control module.

[0093] Among them, the existing handshake verification method can be used to implement the handshake verification operation between the control module, and the present disclosure does not limit this.

[0094] The battery encryption method provided in this embodiment can effectively ensure the data security of the preset public key by sending the preset public key to the control module after the three-way handshake verification is passed.

[0095] Optionally, based on any of the above embodiments, step 203 includes:

[0096] The target key sent by the control module is compared with the pre-stored key.

[0097] If the target key is consistent with the pre-stored key, it is determined that the target key passes the legitimacy check.

[0098] If the target key is inconsistent with the pre-stored key, it is determined that the target key has not passed the legitimacy check, and the battery module is controlled not to perform the power transmission operation.

[0099] In this embodiment, in order to ensure the correspondence between the battery module and the control module, after the encrypted data sent by the control module is acquired, the target key sent by the control module may be compared with the pre-stored key.

[0100] If the target key is consistent with the pre-stored key, it means that the control module corresponds to the battery module, so it can be determined that the target key has passed the legitimacy check. Otherwise, it means that the control module does not match the battery module, that is, the battery does not match the vehicle in which it is installed. In order to ensure battery safety, it can be determined that the target key has not passed the legitimacy check, and the control battery module does not perform the power transmission operation.

[0101] The battery encryption method provided in this embodiment can ensure a one-to-one relationship between the vehicle and the battery by performing a legitimacy verification operation on the target key. When the battery is installed in an incompatible vehicle, the power supply operation can be stopped, that is, the battery cannot be used after being stolen, thereby avoiding battery theft from the root.

[0102] Figure 3 A flowchart of a battery encryption method provided by another embodiment of the present disclosure is provided. Based on any of the above embodiments, Figure 3 As shown, step 204 includes:

[0103] Step 301: Acquire at least one heartbeat packet sent by the control module, where the heartbeat packet is obtained after the control module encrypts preset parameters based on the target key.

[0104] Step 302: Decrypt the at least one heartbeat packet using the target key to obtain a decryption result.

[0105] Step 303: Perform a heartbeat verification operation according to the decryption result to obtain a verification result.

[0106] Step 304: In response to the verification result being successful, perform a power transfer operation.

[0107] Step 305: In response to the verification result being a verification failure, the power transmission operation is stopped.

[0108] In this embodiment, the battery module and the control module can perform a bidirectional heartbeat check operation. The control module can generate a heartbeat packet and transmit it to the battery module according to preset transmission parameters, so that the battery module performs a heartbeat check operation on the control module.

[0109] Optionally, after acquiring at least one heartbeat packet sent by the control module, since the heartbeat packet is obtained by the control module encrypting the preset parameters based on the target key, the heartbeat packet can be decrypted based on the target pre-stored in the battery module to obtain a decryption result. Thus, the heartbeat verification operation can be implemented based on the decryption result, or based on whether the decryption can be performed based on the pre-stored target key.

[0110] Optionally, if the verification is passed, it indicates that the battery module matches the control module, and the power transmission operation can be performed. Otherwise, it indicates that the battery module does not match the control module, and the battery may be stolen. Therefore, in order to ensure the safety of the battery, the power supply operation can be stopped.

[0111] The battery encryption method provided in this embodiment encrypts the heartbeat packet based on the target key and performs heartbeat verification based on the encrypted heartbeat packet, thereby determining whether to continue power supply based on verification results such as transmission frequency and decryption results. When the verification fails, the power supply is stopped, further ensuring the safety of the battery.

[0112] Further, based on any of the above embodiments, step 303 includes:

[0113] If the decryption result is a decryption failure, then the verification result is determined to be a verification failure.

[0114] If the decryption result is that the decryption is successful, the preset parameters obtained by decryption are compared with the heartbeat parameters generated based on the preset heartbeat information generation parameters.

[0115] If the preset parameters match the heartbeat parameters, the verification result is determined to be successful.

[0116] If the preset parameters do not match the heartbeat parameters, the verification result is determined to be a verification failure.

[0117] In this embodiment, the heartbeat packet is decrypted based on the target key pre-stored in the battery module. After obtaining the decryption result, the heartbeat verification operation can be implemented based on the decryption result, or based on whether decryption can be performed based on the pre-stored target key.

[0118] Optionally, if the decryption result is a decryption failure, it indicates that the target key pre-stored in the battery module does not match the target key pre-stored in the control module, so it can be determined that the verification result is a verification failure.

[0119] If the decryption result is successful, the preset parameters obtained by decryption are compared with the heartbeat parameters generated based on the preset heartbeat information generation parameters. If the preset parameters match the heartbeat parameters, the verification result is determined to be successful. If the preset parameters do not match the heartbeat parameters, the verification result is determined to be a failed verification.

[0120] The battery encryption method provided in this embodiment determines whether to continue to supply power based on the verification results such as transmission frequency and decryption result during the heartbeat verification process. When the verification fails, the power supply is stopped, further ensuring the safety of the battery.

[0121] Figure 4A flowchart of a battery encryption method provided by another embodiment of the present disclosure is provided. Based on any of the above embodiments, Figure 4 As shown, step 204 includes:

[0122] Step 401: Generate at least one heartbeat parameter according to preset heartbeat information generation parameters.

[0123] Step 402: Perform an encryption operation on each heartbeat parameter based on the target key to obtain at least one heartbeat packet to be transmitted.

[0124] Step 403: Transmit each heartbeat packet to be transmitted to the control module in sequence at a preset time interval, so that the control module performs a heartbeat check operation on the battery module.

[0125] In this embodiment, the battery module and the control module can perform a bidirectional heartbeat check operation. The battery module can generate a heartbeat packet to be transmitted, and transmit the heartbeat packet to be transmitted to the control module according to preset transmission parameters, so that the control module performs a heartbeat check operation on the battery module.

[0126] Optionally, at least one preset parameter may be generated according to the preset heartbeat information generation parameter, wherein the preset parameter may be a blank field, or a preset field, or a number that increases each time, etc., which is not limited in the present disclosure.

[0127] The battery module and the control module can both generate preset parameters based on the heartbeat information generation parameters, so the two can hold the same preset parameters for subsequent heartbeat verification operations.

[0128] Furthermore, in order to ensure data security and realize heartbeat verification, for each preset parameter, the preset parameter is encrypted by the target key to obtain at least one heartbeat packet to be transmitted. Each heartbeat packet to be transmitted is sequentially transmitted to the control module at a preset time interval, so that the control module performs a heartbeat verification operation on the battery module.

[0129] Optionally, by sending the heartbeat packets to be transmitted at a preset time interval, the control module can determine that the heartbeat check fails when the time interval between receiving adjacent heartbeat packets does not match the preset time interval.

[0130] The battery encryption method provided in this embodiment can further ensure the safety of the battery by performing a bidirectional heartbeat verification operation between the battery module and the control module.

[0131] Figure 5 A flowchart of a battery encryption method provided by another embodiment of the present disclosure is applied to a control module. The method includes:

[0132] Step 501: In response to vehicle startup, a power supply request signal is sent to a preset battery module.

[0133] Step 502: Obtain a preset public key sent by the battery module.

[0134] Step 503: perform an encryption operation on the preset target key based on the preset public key to generate encrypted data, and send the encrypted data to the battery module.

[0135] Step 504: perform a heartbeat verification operation with the battery module according to the target key, and perform a power transfer operation based on the verification result. The heartbeat verification operation is performed after the battery module determines that the target key has passed the legitimacy verification.

[0136] The execution subject of this embodiment is a battery encryption device, which can be coupled to the control module.

[0137] In this embodiment, the battery module is in communication connection with the control module. A preset public key and a private key corresponding to the preset public key may be pre-set in the battery module. In addition, a target key may also be pre-set in the battery module and the control module.

[0138] Optionally, in order to achieve battery encryption, when the vehicle is started, the control module may initiate a power request signal to the battery module. The power request signal may be a handshake signal, or may be any signal for requesting power, which is not limited by the present disclosure.

[0139] Furthermore, after acquiring the power supply request signal, the battery module may send the preset public key to the control module.

[0140] It should be noted that when the vehicle is started for the first time, the battery module can send the preset public key to the control module. After obtaining the target key, the control module can store the preset public key, so the battery module may no longer send the preset public key to the control module. Alternatively, the control module may not store the preset public key, and the battery module may send the preset public key to the control module each time the vehicle is started. The present disclosure does not limit this.

[0141] Furthermore, in order to ensure the security of subsequent data interaction, after obtaining the preset public key, the control module can perform an encryption operation on the pre-stored target key based on the preset public key to obtain encrypted data, and return the encrypted data to the battery module.

[0142] After obtaining the encrypted data, the battery module can decrypt the encrypted data based on the private key corresponding to the preset public key to obtain the target key sent by the control module.

[0143] Optionally, in order to ensure a one-to-one relationship between the vehicle and the battery, after obtaining the target key, the target key can also be subjected to a legitimacy verification operation to determine whether the control module is a control module that matches the battery, that is, whether the vehicle in which the battery is currently installed matches the battery.

[0144] Further, after the target key is legally verified, the battery module can perform a power supply operation. Further, the control module can also perform a two-way heartbeat verification operation with the battery module. During the verification process, the control module and the battery module can both generate a heartbeat packet, which is transmitted to the battery module and the control module respectively according to the preset transmission parameters. Therefore, the control module and the battery module can perform a heartbeat verification based on information such as the transmission frequency and the decryption result to determine whether to continue to supply power.

[0145] In order to ensure data security during the heartbeat verification process, the transmitted heartbeat packet can be encrypted using the target key.

[0146] Optionally, based on any of the above embodiments, the target key is a preset key, or the target key is a VIN code of a vehicle.

[0147] The battery encryption method provided in this embodiment sends a power request signal to the battery module when the vehicle is started, so the target key can be transmitted in an asymmetric encryption manner, and the power supply operation is performed after the legitimacy of the target key is verified, thereby ensuring a one-to-one relationship between the vehicle and the battery. When the battery is installed in an unmatched vehicle, the power supply operation can be stopped, that is, the battery is unusable after being stolen, thereby avoiding the battery from being stolen. In addition, during the power supply process, the heartbeat packet can be encrypted using the target key to implement the heartbeat verification operation. When the verification fails, the power supply is stopped, further ensuring the safety of the battery.

[0148] Figure 6 A flowchart of a battery encryption method provided by another embodiment of the present disclosure is provided. Based on any of the above embodiments, Figure 6 As shown, step 504 includes:

[0149] Step 601: Generate at least one preset parameter according to preset heartbeat information generation parameters.

[0150] Step 602: For each preset parameter, encrypt the preset parameter using the target key to obtain at least one heartbeat packet.

[0151] Step 603: Transmit each heartbeat packet to the battery module in sequence at a preset time interval, so that the battery module performs a heartbeat check operation on the control module.

[0152] In this embodiment, the battery module and the control module can perform a bidirectional heartbeat check operation. The control module can generate a heartbeat packet and transmit it to the battery module according to preset transmission parameters, so that the battery module performs a heartbeat check operation on the control module.

[0153] Optionally, at least one preset parameter may be generated according to the preset heartbeat information generation parameter, wherein the preset parameter may be a blank field, or a preset field, or a number that increases each time, etc., which is not limited in the present disclosure.

[0154] Furthermore, in order to ensure data security and implement heartbeat verification, for each preset parameter, the preset parameter is encrypted by the target key to obtain at least one heartbeat packet. Each heartbeat packet is sequentially transmitted to the battery module at a preset time interval, so that the battery module performs a heartbeat verification operation on the control module.

[0155] Optionally, by sending the heartbeat packet at a preset time interval, the battery module can determine that the heartbeat verification has failed when the time interval between receiving adjacent heartbeat packets does not match the preset time interval.

[0156] The battery encryption method provided in this embodiment encrypts the heartbeat packet based on the target key and performs heartbeat verification based on the encrypted heartbeat packet, thereby determining whether to continue power supply based on verification results such as transmission frequency and decryption results. When the verification fails, the power supply is stopped, further ensuring the safety of the battery.

[0157] Figure 7 A flowchart of a battery encryption method provided by another embodiment of the present disclosure is provided. Based on any of the above embodiments, Figure 7 As shown, step 504 includes:

[0158] Step 701: Acquire at least one heartbeat packet to be transmitted sent by the battery module, where the heartbeat packet to be transmitted is obtained after the battery module encrypts the heartbeat parameters based on the target key.

[0159] Step 702: Decrypt the at least one heartbeat packet to be transmitted using the target key to obtain a decryption result.

[0160] Step 703: Compare the decryption result with preset parameters generated based on preset heartbeat information generation parameters to obtain a verification result.

[0161] Step 704: In response to the verification result being a passed verification, a power transmission operation is performed.

[0162] Step 705: In response to the verification result being a verification failure, disconnecting the communication connection with the battery module.

[0163] In this embodiment, the battery module and the control module can perform a bidirectional heartbeat check operation.

[0164] Optionally, the control module may also obtain at least one heartbeat packet to be transmitted sent by the battery module, where the heartbeat packet to be transmitted is obtained after the battery module encrypts the heartbeat parameters based on the target key.

[0165] Further, after obtaining the heartbeat packet to be transmitted, the heartbeat packet to be transmitted can be decrypted based on the target key to obtain a decryption result, thereby being able to implement a heartbeat verification operation based on the decryption result, or based on whether decryption can be performed based on a pre-stored target key.

[0166] Optionally, if the verification is passed, it indicates that the battery module matches the control module, and the power transmission operation can be performed. Otherwise, it indicates that the battery module does not match the control module, and the battery may be stolen. Therefore, in order to ensure the safety of the battery, the communication connection with the battery module can be disconnected.

[0167] The battery encryption method provided in this embodiment encrypts the heartbeat packet based on the target key and performs heartbeat verification based on the encrypted heartbeat packet, thereby determining whether to continue power supply based on verification results such as transmission frequency and decryption results. When the verification fails, the communication connection with the battery module is disconnected, further ensuring the safety of the battery.

[0168] Further, based on any of the above embodiments, step 703 includes:

[0169] If the decryption result is consistent with the preset parameters, the verification result is determined to be passed.

[0170] If the decryption result is inconsistent with the preset parameter, or the decryption result is a decryption failure, then the verification result is determined to be a verification failure.

[0171] In this embodiment, after obtaining the heartbeat packet to be transmitted sent by the battery module, the heartbeat packet to be transmitted can be decrypted based on the target key, so that the heartbeat verification operation can be implemented based on the decryption result, or based on whether the decryption can be performed based on the pre-stored target key.

[0172] Optionally, if the decryption result is consistent with the preset parameters, the verification result is determined to be passed.

[0173] On the contrary, if the decryption result is inconsistent with the preset parameter, or the decryption result is a decryption failure, then it is determined that the verification result is a verification failure.

[0174] The battery encryption method provided in this embodiment determines whether to continue to supply power based on the verification results such as transmission frequency and decryption result during the heartbeat verification process. When the verification fails, the communication connection with the battery module is disconnected, further ensuring the safety of the battery.

[0175] Figure 8 The flowchart of the battery encryption method provided by the embodiment of the present disclosure is applied to a battery encryption system, wherein the battery encryption system includes a battery module and a control module, wherein the battery module is in communication connection with the control module. Figure 8 As shown, the method includes:

[0176] Step 801: In response to vehicle startup, the control module sends a power request signal to a preset battery module.

[0177] Step 802: The battery module obtains the power supply request signal sent by the control module, and sends a preset public key to the control module.

[0178] Step 803: The control module obtains a preset public key sent by the battery module, performs an encryption operation on a preset target key based on the preset public key, generates encrypted data, and sends the encrypted data to the battery module.

[0179] Step 804: The battery module decrypts the encrypted data using a private key corresponding to the preset public key to obtain the target key, and performs a legitimacy verification operation on the target key.

[0180] Step 805: In response to the target key passing the legitimacy check, the battery module and the control module perform a heartbeat check operation based on the target key, and perform a power supply operation based on the check result of the heartbeat check operation.

[0181] The execution subject of this embodiment is a battery encryption device, which can be coupled to a battery encryption system. The battery encryption system includes a battery module and a control module, and the battery module is communicatively connected to the control module. Among them, the battery module can be pre-stored with a preset public key, a private key and a target key. The control module is pre-stored with a target key.

[0182] Based on the above system architecture, in response to the vehicle starting, the control module sends a power request signal to the preset battery module. The power request signal may be a handshake signal, or may be any signal for requesting power, which is not limited in the present disclosure.

[0183] Furthermore, the battery module can obtain the power request signal sent by the control module and send a preset public key to the control module. After obtaining the preset public key, the control module can store the preset public key, so when the vehicle is started later, the battery module may no longer send the preset public key to the control module. Alternatively, the control module may not store the preset public key, and the battery module may send the preset public key to the control module each time the vehicle is started. The present disclosure does not limit this.

[0184] The control module obtains the preset public key sent by the battery module, performs an encryption operation on the preset target key based on the preset public key, generates encrypted data, and sends the encrypted data to the battery module. The battery module decrypts the encrypted data using the private key corresponding to the preset public key to obtain the target key. In order to ensure a one-to-one relationship between the vehicle and the battery, after obtaining the target key, the target key can also be subjected to a legitimacy verification operation to determine whether the control module is a control module that matches the battery, that is, whether the vehicle currently equipped with the battery matches the battery.

[0185] In response to the target key passing the legality check, the battery module and the control module perform a heartbeat check operation based on the target key, and perform a power supply operation based on the check result of the heartbeat check operation. Thus, when the check fails, the power supply is stopped, further ensuring the safety of the battery.

[0186] The battery encryption method provided in this embodiment sets up a battery encryption system, transmits the target key in the battery encryption system by asymmetric encryption, and performs power supply operation after the legitimacy of the target key is verified, thereby ensuring a one-to-one relationship between the vehicle and the battery. When the battery is installed in an unmatched vehicle, the power supply operation can be stopped, that is, the battery is unusable after being stolen, thereby avoiding the battery from being stolen at the root. In addition, during the power supply process, the heartbeat packet can be encrypted by the target key to implement the heartbeat verification operation. When the verification fails, the power supply is stopped, further ensuring the safety of the battery.

[0187] Fig. 9 A flowchart of a battery encryption method provided by another embodiment of the present disclosure is provided. Based on any of the above embodiments, Fig. 9 As shown, the method also includes:

[0188] Step 901, obtain update data sent by a preset cloud server, wherein the update data includes an updated private key, an updated public key, and an updated secret key, and the update data is uploaded to the cloud server through the user's terminal device when the vehicle performs a battery replacement operation.

[0189] Step 902: Update the current preset public key of the control module to the updated public key according to the updated data, and update the target key currently stored in the control module to the updated key according to the updated data.

[0190] Step 903: Update the current preset public key and private key of the battery module to the updated public key and updated private key according to the updated data, and switch the target key in the battery module to the updated key according to the updated data.

[0191] In this embodiment, when a new energy vehicle replaces a battery, in order to ensure the safety of the battery, the user can update the preset public key, private key and target key stored in the battery module, and update the target key in the control module.

[0192] Optionally, the user can set the update data in the application software preset in the terminal device, wherein the update data includes the update private key, the update public key and the update key. After completing the setting, the update data can be uploaded to the cloud server.

[0193] Accordingly, the application software installed in the new energy vehicle can obtain the update data from the cloud server. According to the update data, the current preset public key of the control module is updated to the updated public key, and, according to the update data, the target key currently stored in the control module is updated to the updated key. According to the update data, the current preset public key and private key of the battery module are updated to the updated public key and the updated private key, and, according to the update data, the target key in the battery module is switched to the updated key.

[0194] Therefore, the subsequent battery module and control module can perform subsequent key verification and heartbeat verification operations based on the updated data, and perform power supply operations after the verification is passed.

[0195] Fig.10 A schematic diagram of an application scenario provided by an embodiment of the present disclosure, such as Fig.10 As shown, after replacing the battery of the vehicle, the user can initiate a data update request based on the application software 1001 preset on the terminal device, and transmit the updated data to the cloud server 1002 for storage, wherein the updated data includes an updated private key, an updated public key, and an updated secret key. The application software 1003 preset on the vehicle can obtain the updated data from the cloud server 1002. Based on the updated data, the encrypted data stored in the battery module 1004 and the control module 1005 are updated.

[0196] The battery encryption method provided in this embodiment can further ensure the security of the replaced battery by timely updating the preset public key, private key, and target key when the vehicle battery is replaced.

[0197] Fig.11 The schematic diagram of the structure of the battery encryption device provided by the embodiment of the present disclosure is applied to the battery module, such as Fig.11 As shown, the device includes: a sending module 1101, an acquisition module 1102, a decryption module 1103 and a power supply module 1104. The sending module 1101 is used to send a preset public key to the control module in response to a power supply request signal sent by a preset control module. The acquisition module 1102 is used to obtain the encrypted data sent by the control module, and the encrypted data is obtained after the control module encrypts the preset target key based on the preset public key. The decryption module 1103 is used to decrypt the encrypted data using a private key corresponding to the preset public key, obtain the target key, and perform a legitimacy verification operation on the target key. The power supply module 1104 is used to perform a heartbeat verification operation with the control module based on the target key in response to the target key passing the legitimacy verification, and perform a power supply operation based on the verification result of the heartbeat verification operation.

[0198] Further, on the basis of any of the above embodiments, the power supply module includes: an acquisition unit, used to acquire at least one heartbeat packet sent by the control module, the heartbeat packet being obtained after the control module encrypts preset parameters based on the target key. A decryption unit, used to perform a decryption operation on the at least one heartbeat packet using the target key to obtain a decryption result. A verification unit, used to perform a heartbeat verification operation according to the decryption result to obtain a verification result. A power supply unit, used to perform a power transmission operation in response to the verification result being a successful verification. A processing unit, used to stop the power transmission operation in response to the verification result being a failed verification.

[0199] Further, on the basis of any of the above embodiments, the verification unit includes: a first verification subunit, which is used to determine that the verification result is a verification failure if the decryption result is a decryption failure. A second verification subunit, which is used to compare the preset parameters obtained by decryption with the heartbeat parameters generated based on the preset heartbeat information generation parameters if the decryption result is a decryption success. A determination subunit, which is used to determine that the verification result is a verification success if the preset parameters match the heartbeat parameters. The determination subunit is also used to determine that the verification result is a verification failure if the preset parameters do not match the heartbeat parameters.

[0200] Further, based on any of the above embodiments, the power supply module includes: a generation unit, used to generate at least one heartbeat parameter according to a preset heartbeat information generation parameter. An encryption unit, used to perform an encryption operation on each heartbeat parameter based on the target key to obtain at least one heartbeat packet to be transmitted. A transmission unit, used to sequentially transmit each heartbeat packet to be transmitted to the control module at a preset time interval, so that the control module performs a heartbeat check operation on the battery module.

[0201] Further, based on any of the above embodiments, the sending module includes: a verification unit, configured to perform a three-way handshake verification operation with the control module in response to a handshake verification request triggered by the control module. A sending unit, configured to send a preset public key to the control module in response to the three-way handshake verification passing.

[0202] Further, based on any of the above embodiments, the power supply module includes: a comparison unit, configured to compare the target key sent by the control module with a pre-stored key. A processing unit, configured to determine that the target key has passed the legitimacy check if the target key is consistent with the pre-stored key. A control unit, configured to determine that the target key has not passed the legitimacy check if the target key is inconsistent with the pre-stored key, and control the battery module not to perform the power transmission operation.

[0203] Fig.12 A schematic diagram of the structure of a battery encryption device provided in an embodiment of the present disclosure, which is applied to a control module, such as Fig.12 As shown, the device includes: a communication module 1201, a data acquisition module 1202, an encryption module 1203 and a verification module 1204. Among them, the communication module 1201 is used to send a power request signal to a preset battery module in response to the vehicle starting. The data acquisition module 1202 is used to obtain a preset public key sent by the battery module. The encryption module 1203 is used to perform an encryption operation on a preset target key based on the preset public key, generate encrypted data, and send the encrypted data to the battery module. The verification module 1204 is used to perform a heartbeat verification operation with the battery module according to the target key, and perform a power transmission operation based on the verification result. The heartbeat verification operation is performed after the battery module determines that the target key has passed the legitimacy verification.

[0204] Further, based on any of the above embodiments, the target key is a preset key, or the target key is a VIN code of a vehicle.

[0205] Further, based on any of the above embodiments, the verification module includes: a parameter generation unit, which is used to generate at least one preset parameter according to the preset heartbeat information generation parameter. A data processing unit, which is used to encrypt the preset parameter by the target key for each preset parameter to obtain at least one heartbeat packet. A data transmission unit, which is used to transmit each heartbeat packet to the battery module in sequence according to a preset time interval, so that the battery module performs a heartbeat verification operation on the control module.

[0206] Further, on the basis of any of the above embodiments, the verification module includes: a data acquisition unit, used to acquire at least one heartbeat packet to be transmitted sent by the battery module, and the heartbeat packet to be transmitted is obtained after the battery module encrypts the heartbeat parameters based on the target key. A data decryption unit, used to decrypt the at least one heartbeat packet to be transmitted by using the target key to obtain a decryption result. A data comparison unit, used to compare the decryption result with preset parameters generated based on preset heartbeat information generation parameters to obtain a verification result. A transmission unit, used to perform a power transmission operation in response to the verification result being a verification pass. A connection processing unit, used to disconnect the communication connection with the battery module in response to the verification result being a verification failure.

[0207] Further, based on any of the above embodiments, the data comparison unit includes: a first determination unit, configured to determine that the verification result is a verification pass if the decryption result is consistent with the preset parameters; and a second determination unit, configured to determine that the verification result is a verification failure if the decryption result is inconsistent with the preset parameters, or the decryption result is a decryption failure.

[0208] Fig.13 The structure diagram of the battery encryption system provided by the embodiment of the present disclosure is as follows. The battery encryption system includes a battery module and a control module. The battery module is in communication connection with the control module. Fig.13As shown, the battery encryption system also includes: a signal sending module 1301, a public key sending module 1302, a public key acquisition module 1303 and a data decryption module 1304. The signal sending module 1301 is used for the control module to send a power supply request signal to a preset battery module in response to the vehicle starting. The public key sending module 1302 is used to control the battery module to obtain the power supply request signal sent by the control module and send a preset public key to the control module. The public key acquisition module 1303 is used to control the control module to obtain the preset public key sent by the battery module, perform an encryption operation on the preset target key based on the preset public key, generate encrypted data, and send the encrypted data to the battery module. The data decryption module 1304 is used to control the battery module to perform a decryption operation on the encrypted data through a private key corresponding to the preset public key, obtain the target key, and perform a legitimacy verification operation on the target key.

[0209] The heartbeat verification module is used for, in response to the target key passing the legitimacy verification, the battery module and the control module performing a heartbeat verification operation based on the target key, and performing a power supply operation based on the verification result of the heartbeat verification operation.

[0210] Furthermore, based on any of the above embodiments, the system also includes: an update data acquisition module, which is used to acquire update data sent by a preset cloud server, wherein the update data includes an update private key, an update public key and an update secret key, and the update data is uploaded to the cloud server through the user's terminal device when the vehicle performs a battery replacement operation. A first update module is used to update the current preset public key of the control module to the updated public key according to the update data, and to update the target key currently stored in the control module to the updated key according to the update data. A second update module is used to update the current preset public key and private key of the battery module to the updated public key and updated private key according to the update data, and to switch the target key in the battery module to the updated key according to the update data.

[0211] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.

[0212] According to an embodiment of the present disclosure, the present disclosure further provides an electronic device, including:

[0213] at least one processor; and

[0214] a memory communicatively connected to the at least one processor; wherein,

[0215] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method described in any one of the above embodiments.

[0216] According to an embodiment of the present disclosure, the present disclosure further provides a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to enable the computer to execute the method described in any one of the above embodiments.

[0217] According to an embodiment of the present disclosure, the present disclosure also provides a computer program product, which includes: a computer program, the computer program is stored in a readable storage medium, at least one processor of an electronic device can read the computer program from the readable storage medium, and at least one processor executes the computer program so that the electronic device executes the solution provided by any of the above embodiments.

[0218] Fig.14 A schematic diagram of an electronic device provided for an embodiment of the present disclosure. The electronic device 14 is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or claimed herein.

[0219] like Fig.14 As shown, the device 1400 includes a computing unit 1401, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 1402 or a computer program loaded from a storage unit 1408 into a random access memory (RAM) 1403. In the RAM 1403, various programs and data required for the operation of the device 1400 can also be stored. The computing unit 1401, the ROM 1402, and the RAM 1403 are connected to each other via a bus 1404. An input / output (I / O) interface 1405 is also connected to the bus 1404.

[0220] A number of components in the device 1400 are connected to the I / O interface 1405, including: an input unit 1406, such as a keyboard, a mouse, etc.; an output unit 1407, such as various types of displays, speakers, etc.; a storage unit 1408, such as a disk, an optical disk, etc.; and a communication unit 1409, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 1409 allows the device 1400 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0221] The computing unit 1401 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 1401 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 1401 performs the various methods and processes described above, such as a battery encryption method. For example, in some embodiments, the battery encryption method may be implemented as a computer software program that is tangibly contained in a machine-readable medium, such as a storage unit 1408. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 1400 via the ROM 1402 and / or the communication unit 1409. When the computer program is loaded into the RAM 1403 and executed by the computing unit 1401, one or more steps of the battery encryption method described above may be performed. Alternatively, in other embodiments, the computing unit 1401 may be configured to perform the battery encryption method in any other appropriate manner (e.g., by means of firmware).

[0222] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0223] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0224] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0225] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0226] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0227] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship between the client and the server is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services ("Virtual Private Server", or "VPS" for short). The server may also be a server of a distributed system, or a server combined with a blockchain.

[0228] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.

[0229] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.

Claims

1. A battery encryption method, applied to a battery module, comprising: In response to a power supply request signal sent by a preset control module, sending a preset public key to the control module; Acquire the encrypted data sent by the control module, where the encrypted data is obtained after the control module encrypts a preset target key based on the preset public key; Decrypting the encrypted data using a private key corresponding to the preset public key to obtain the target key, and performing a legitimacy verification operation on the target key; In response to the target key passing the legitimacy check, a heartbeat check operation is performed with the control module based on the target key, and a power supply operation is performed based on a check result of the heartbeat check operation.

2. The method according to claim 1, wherein: The performing a heartbeat verification operation with the control module based on the target key, and performing a power supply operation based on a verification result of the heartbeat verification operation, comprises: Acquire at least one heartbeat packet sent by the control module, where the heartbeat packet is obtained after the control module encrypts preset parameters based on the target key; Performing a decryption operation on the at least one heartbeat packet using the target key to obtain a decryption result; Perform a heartbeat verification operation according to the decryption result to obtain a verification result; In response to the verification result being a successful verification, performing a power transmission operation; In response to the verification result being a verification failure, the power transfer operation is stopped.

3. The method according to claim 2, wherein: The performing of a heartbeat verification operation according to the decryption result to obtain a verification result includes: If the decryption result is a decryption failure, determining the verification result is a verification failure; If the decryption result is that the decryption is successful, the preset parameters obtained by decryption are compared with the heartbeat parameters generated based on the preset heartbeat information generation parameters; If the preset parameters match the heartbeat parameters, determining that the verification result is successful; If the preset parameters do not match the heartbeat parameters, the verification result is determined to be a verification failure.

4. The method according to claim 1, wherein: The performing a heartbeat verification operation with the control module based on the target key includes: Generate at least one heartbeat parameter according to the preset heartbeat information generation parameter; Performing an encryption operation on each heartbeat parameter based on the target key to obtain at least one heartbeat packet to be transmitted; Each heartbeat packet to be transmitted is transmitted to the control module in sequence at a preset time interval, so that the control module performs a heartbeat check operation on the battery module.

5. The method according to any one of claims 1 to 4, wherein: The step of sending a preset public key to the control module in response to a power supply request signal sent by the preset control module comprises: In response to a handshake verification request triggered by the control module, performing a three-way handshake verification operation with the control module; In response to the three-way handshake verification being passed, a preset public key is sent to the control module.

6. The method according to any one of claims 1 to 4, wherein: The performing of a legitimacy verification operation on the target key includes: Compare the target key sent by the control module with the pre-stored key; If the target key is consistent with the pre-stored key, it is determined that the target key passes the legitimacy check; If the target key is inconsistent with the pre-stored key, it is determined that the target key has not passed the legitimacy check, and the battery module is controlled not to perform the power transmission operation.

7. A battery encryption method, applied to a control module, comprising: In response to the vehicle being started, sending a power supply request signal to a preset battery module; Obtaining a preset public key sent by the battery module; Performing an encryption operation on a preset target key based on the preset public key to generate encrypted data, and sending the encrypted data to the battery module; A heartbeat verification operation is performed with the battery module according to the target key, and a power transmission operation is performed based on the verification result. The heartbeat verification operation is performed after the battery module determines that the target key has passed the legitimacy verification.

8. The method according to claim 7, wherein: The target key is a preset key, or the target key is a VIN code of a vehicle.

9. The method according to claim 7, wherein: The performing a heartbeat verification operation with the battery module according to the target key and performing a power transmission operation based on the verification result includes: Generate at least one preset parameter according to the preset heartbeat information generation parameter; For each preset parameter, encrypt the preset parameter using the target key to obtain at least one heartbeat packet; Each heartbeat packet is transmitted to the battery module in sequence at a preset time interval, so that the battery module performs a heartbeat check operation on the control module.

10. The method according to claim 7, wherein: Performing a heartbeat verification operation with the battery module according to the target key, and performing a power transmission operation based on the verification result, including: Acquire at least one heartbeat packet to be transmitted sent by the battery module, where the heartbeat packet to be transmitted is obtained after the battery module encrypts the heartbeat parameters based on the target key; Performing a decryption operation on the at least one heartbeat packet to be transmitted using the target key to obtain a decryption result; Compare the decryption result with the preset parameters generated based on the preset heartbeat information generation parameters to obtain a verification result; In response to the verification result being a verification pass, performing a power transmission operation; In response to the verification result being a verification failure, the communication connection with the battery module is disconnected.

11. The method according to claim 10, wherein: The step of comparing the decryption result with the preset parameters generated based on the preset heartbeat information generation parameters to obtain the verification result includes: If the decryption result is consistent with the preset parameters, determining that the verification result is verification passed; If the decryption result is inconsistent with the preset parameter, or the decryption result is a decryption failure, then the verification result is determined to be a verification failure.

12. A battery encryption method, applied to a battery encryption system, the battery encryption system comprising a battery module and a control module, the battery module being communicatively connected with the control module; the method comprising: In response to the vehicle starting, the control module sends a power supply request signal to a preset battery module; The battery module obtains the power supply request signal sent by the control module, and sends a preset public key to the control module; The control module obtains a preset public key sent by the battery module, performs an encryption operation on a preset target key based on the preset public key, generates encrypted data, and sends the encrypted data to the battery module; The battery module decrypts the encrypted data using a private key corresponding to the preset public key to obtain the target key, and performs a legitimacy verification operation on the target key; In response to the target key passing the legitimacy check, the battery module and the control module perform a heartbeat check operation based on the target key, and perform a power supply operation based on a check result of the heartbeat check operation.

13. The method according to claim 12, further comprising: Obtaining update data sent by a preset cloud server, wherein the update data includes an update private key, an update public key, and an update secret key, and the update data is uploaded to the cloud server by a user's terminal device when the vehicle is undergoing a battery replacement operation; updating the current preset public key of the control module to the updated public key according to the updated data, and updating the target key currently stored in the control module to the updated key according to the updated data; According to the update data, the current preset public key and private key of the battery module are updated to the updated public key and updated private key, and, according to the update data, the target key in the battery module is switched to the updated key.

14. A battery encryption device, applied to a battery module, comprising: A sending module, configured to send a preset public key to the control module in response to a power supply request signal sent by the preset control module; An acquisition module, used for acquiring the encrypted data sent by the control module, wherein the encrypted data is obtained after the control module encrypts a preset target key based on the preset public key; A decryption module, used to decrypt the encrypted data using a private key corresponding to the preset public key, obtain the target key, and perform a legitimacy verification operation on the target key; The power supply module is used for performing a heartbeat check operation with the control module based on the target key in response to the target key passing the legitimacy check, and performing a power supply operation based on the check result of the heartbeat check operation.

15. The device according to claim 14, wherein: The power supply module comprises: An acquisition unit, configured to acquire at least one heartbeat packet sent by the control module, wherein the heartbeat packet is obtained by the control module encrypting a preset parameter based on the target key; A decryption unit, configured to perform a decryption operation on the at least one heartbeat packet using the target key to obtain a decryption result; A verification unit, used to perform a heartbeat verification operation according to the decryption result to obtain a verification result; A power supply unit, configured to perform a power transmission operation in response to the verification result being a successful verification; The processing unit is used to stop the power transmission operation in response to the verification result being a verification failure.

16. The device according to claim 15, wherein: The verification unit comprises: A first verification subunit, configured to determine that the verification result is a verification failure if the decryption result is a decryption failure; A second check subunit is used for comparing the preset parameters obtained by decryption with the heartbeat parameters generated based on the preset heartbeat information generation parameters if the decryption result is successful; A determination subunit, configured to determine that the verification result is a successful verification if the preset parameter matches the heartbeat parameter; The determination subunit is further used to determine that the verification result is a verification failure if the preset parameter does not match the heartbeat parameter.

17. The device according to claim 14, wherein: The power supply module comprises: A generating unit, configured to generate at least one heartbeat parameter according to a preset heartbeat information generating parameter; An encryption unit, used for performing an encryption operation on each heartbeat parameter based on the target key to obtain at least one heartbeat packet to be transmitted; The transmission unit is used to transmit each heartbeat packet to be transmitted to the control module in sequence according to a preset time interval, so that the control module performs a heartbeat check operation on the battery module.

18. The device according to any one of claims 14 to 17, wherein: The sending module comprises: A verification unit, configured to perform a three-way handshake verification operation with the control module in response to a handshake verification request triggered by the control module; A sending unit is used to send a preset public key to the control module in response to the three-way handshake verification passing.

19. The device according to any one of claims 14 to 17, wherein: The power supply module comprises: A comparison unit, used for comparing the target key sent by the control module with the pre-stored key; a processing unit, configured to determine that the target key passes the legitimacy check if the target key is consistent with the pre-stored key; The control unit is used to determine that the target key has not passed the legitimacy check if the target key is inconsistent with the pre-stored key, and control the battery module not to perform the power transmission operation.

20. A battery encryption device, applied to a control module, comprising: A communication module, configured to send a power supply request signal to a preset battery module in response to the vehicle starting; A data acquisition module, used to acquire a preset public key sent by the battery module; an encryption module, used to perform an encryption operation on a preset target key based on the preset public key, generate encrypted data, and send the encrypted data to the battery module; The verification module is used to perform a heartbeat verification operation with the battery module according to the target key, and perform a power transmission operation based on the verification result. The heartbeat verification operation is performed after the battery module determines that the target key has passed the legitimacy verification.

21. The device according to claim 20, wherein: The target key is a preset key, or the target key is a VIN code of a vehicle.

22. The device according to claim 20, wherein: The verification module: A parameter generating unit, used to generate at least one preset parameter according to a preset heartbeat information generating parameter; A data processing unit, configured to perform encryption operation on each preset parameter by using the target key to obtain at least one heartbeat packet; The data transmission unit is used to transmit each heartbeat packet to the battery module in sequence according to a preset time interval, so that the battery module performs a heartbeat verification operation on the control module.

23. The device according to claim 20, wherein: The verification module comprises: A data acquisition unit, used for acquiring at least one heartbeat packet to be transmitted sent by the battery module, wherein the heartbeat packet to be transmitted is obtained after the battery module encrypts the heartbeat parameters based on the target key; A data decryption unit, configured to perform a decryption operation on the at least one heartbeat packet to be transmitted using the target key to obtain a decryption result; A data comparison unit, used to compare the decryption result with a preset parameter generated based on the preset heartbeat information generation parameter to obtain a verification result; A transmission unit, configured to perform a power transmission operation in response to the verification result being a verification pass; The connection processing unit is used to disconnect the communication connection with the battery module in response to the verification result being a verification failure.

24. The device according to claim 23, wherein: The data comparison unit comprises: A first determination unit, configured to determine that the verification result is a verification pass if the decryption result is consistent with the preset parameter; The second determination unit is configured to determine that the verification result is a verification failure if the decryption result is inconsistent with the preset parameter, or the decryption result is a decryption failure.

25. A battery encryption system, comprising a battery module and a control module, wherein the battery module is in communication with the control module; the battery encryption system further comprises: A signal sending module, configured to, in response to the vehicle starting, cause the control module to send a power supply request signal to a preset battery module; A public key sending module, used to control the battery module to obtain the power supply request signal sent by the control module, and send a preset public key to the control module; a public key acquisition module, used to control the control module to acquire a preset public key sent by the battery module, perform an encryption operation on a preset target key based on the preset public key, generate encrypted data, and send the encrypted data to the battery module; A data decryption module, used to control the battery module to decrypt the encrypted data using a private key corresponding to the preset public key, obtain the target key, and perform a legitimacy verification operation on the target key; The heartbeat verification module is used for, in response to the target key passing the legitimacy verification, the battery module and the control module performing a heartbeat verification operation based on the target key, and performing a power supply operation based on the verification result of the heartbeat verification operation.

26. The system of claim 25, further comprising: An update data acquisition module, used to acquire update data sent by a preset cloud server, wherein the update data includes an update private key, an update public key, and an update secret key, and the update data is uploaded to the cloud server by a user's terminal device when the vehicle performs a battery replacement operation; A first updating module, configured to update a current preset public key of the control module to the updated public key according to the update data, and to update a target key currently stored in the control module to the updated key according to the update data; The second update module is used to update the current preset public key and private key of the battery module to the updated public key and updated private key according to the update data, and to switch the target key in the battery module to the updated key according to the update data.

27. An electronic device comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-6 or 7-11 or 12-13.

28. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-6, 7-11 or 12-13.

29. A computer program product, comprising a computer program, which, when executed by a processor, implements the steps of the method according to any one of claims 1 to 6 or 7 to 11 or 12 to 13.

Citation Information

Patent Citations

  • Battery authentication method, device battery, unmanned aerial vehicle and storage medium

    CN108614967A

  • Battery encryption system based on asymmetric cryptographic algorithm and method thereof

    CN108808136A

  • Method and system for establishing communication

    CN108881105A

  • Battery encryption circuit, battery verification method and device, equipment and storage medium

    CN117480663A

  • Non-contact replaceable battery system

    CN118354927A