A parallel channel constant voltage control method and system for battery testing
By using hash calculation and multiple encryption processing methods in battery tests, constant voltage control instructions are generated and sent, constant voltage operation and test data upload, the problem of insufficient constant voltage control accuracy and security in the parallel channel is solved, and higher control accuracy and data security are achieved.
Patent Information
- Application Number
- CN202411699327.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-26
- Publication Date
- 2025-04-04
AI Technical Summary
In battery testing, the accuracy and safety of the constant voltage control in the parallel channel are insufficient, resulting in inaccurate constant voltage control and the safety hazard of the stolen test data.
The upper computer obtains the constant voltage value, parallel channel number and device serial number, performs hash calculation and multiple encryption processing, generates constant voltage control instructions and sends them to the intermediate computer. The intermediate computer performs decryption and verification and performs constant voltage operation, and periodically uploads the encrypted test data.
The accuracy and safety of the constant voltage control of the parallel channel are improved, and the problem of inaccurate constant voltage control caused by sampling voltage errors is avoided, and the security of the test data is improved through multiple encryption measures.
Smart Images

Figure CN119758091A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of battery testing, and in particular to a parallel channel constant voltage control method and system for battery testing. Background Art
[0002] During the production process, batteries need to undergo a series of tests to ensure the quality of the batteries before they leave the factory. Traditionally, the lower computer controls the test equipment to test the batteries and regularly collects test data including voltage, current, and temperature during the test. The middle computer then regularly collects test data from the lower computer and makes decisions based on the test data.
[0003] In some test scenarios, in order to increase the power output, more than two test channels need to be connected in parallel. In the constant voltage test, the charging and discharging of each parallel test channel is controlled individually. Since there are errors in the sampling voltage of each test channel, the time for each test channel to enter the constant voltage is different, which in turn affects the constant voltage control accuracy. In addition, the traditional constant voltage control process does not take corresponding identity authentication and data encryption measures, which poses a security risk of arbitrary control and test data theft.
[0004] Assume that channel 1 and channel 2 are charged in parallel, and the sampling voltage of channel 1 differs from that of channel 2 by 1mV. When channel 1 enters constant voltage, the current is reduced. However, due to the time difference, channel 2 is still charging, causing the voltage to rise very quickly. Channel 1 determines that the voltage error is large and needs to be discharged, causing the voltage to drop and unable to maintain constant voltage.
[0005] Therefore, how to provide a parallel channel constant voltage control method and system for battery testing to improve the accuracy and safety of parallel channel constant voltage control has become a technical problem that needs to be solved urgently. Summary of the invention
[0006] The technical problem to be solved by the present invention is to provide a parallel channel constant voltage control method and system for battery testing, so as to improve the accuracy and safety of parallel channel constant voltage control.
[0007] In a first aspect, the present invention provides a parallel channel constant voltage control method for battery testing, comprising the following steps:
[0008] Step S1, the upper computer obtains the input constant pressure value, the parallel channel number and the device serial number of the corresponding lower computer;
[0009] Step S2, the host computer obtains the current timestamp, performs hash calculation on the constant voltage value, the parallel channel number, the timestamp and the device serial number to obtain a hash value, encrypts the constant voltage value, the parallel channel number, the timestamp, the device serial number and the hash value into ciphertext data, generates a constant voltage control instruction based on the ciphertext data and sends it to the intermediate computer;
[0010] Step S3, the intermediate computer decrypts the ciphertext data carried by the received constant voltage control instruction to obtain the constant voltage value, parallel channel number, timestamp, device serial number and hash value, and verifies the constant voltage control instruction based on the timestamp, device serial number and hash value;
[0011] Step S4, the intermediate computer performs constant pressure verification on the test channel corresponding to the lower computer based on the parallel channel number, and controls the corresponding test channel to perform constant pressure operation based on the constant pressure value and the parallel channel number;
[0012] Step S5: The intermediate computer collects test data during the constant pressure operation from the lower computer, encrypts the test data into test encrypted data, and periodically uploads the test encrypted data to the upper computer.
[0013] Furthermore, the step S1 is specifically as follows:
[0014] After the upper computer performs identity authentication through the visual interface, it obtains the input constant voltage value, parallel channel number and the device serial number of the corresponding lower computer through the visual interface.
[0015] Furthermore, the step S2 is specifically as follows:
[0016] The host computer obtains the current timestamp, performs hash calculation on the constant voltage value, parallel channel number, timestamp and device serial number to obtain a hash value, encrypts the constant voltage value, parallel channel number, timestamp, device serial number and hash value through the 3DES algorithm to obtain first-level encrypted data, maps each character of the first-level encrypted data through a preset mapping rule to obtain second-level encrypted data, swaps letter a with letter b and letter c with letter d in the second-level encrypted data to obtain third-level encrypted data, encrypts the third-level encrypted data through the RSA algorithm to obtain ciphertext data, generates a constant voltage control instruction based on the ciphertext data, and sends the constant voltage control instruction to the intermediate computer in real time through the TLS protocol.
[0017] Furthermore, the step S3 is specifically as follows:
[0018] The intermediate computer receives the constant voltage control instruction in real time, parses the constant voltage control instruction to obtain ciphertext data, decrypts the ciphertext data by using the RSA algorithm to obtain level 3 encrypted data, swaps letters a and b, and swaps letters c and d in the level 3 encrypted data to obtain level 2 encrypted data, maps each character of the level 2 encrypted data by using a preset mapping rule to obtain level 1 encrypted data, and decrypts the level 1 encrypted data by using the 3DES algorithm to obtain a constant voltage value, a parallel channel number, a timestamp, a device serial number, and a hash value;
[0019] After the intermediate computer performs integrity verification based on the hash value, it performs timeliness verification based on the timestamp, and then performs legality verification on the device serial number based on the preset device management table to complete the verification of the constant voltage control instruction.
[0020] Furthermore, the step S4 is specifically as follows:
[0021] The intermediate computer obtains a sample voltage from a test channel corresponding to the lower computer based on the parallel channel number, performs constant voltage verification and calibration based on the maximum value of the sample voltage, and controls the corresponding test channel to synchronously perform constant voltage operation based on the constant voltage value and the parallel channel number;
[0022] The step S5 is specifically as follows:
[0023] The intermediate computer periodically collects test data during constant voltage operation from the lower computer, encrypts the test data into first encrypted data through the RC2 algorithm, controls each character in the first encrypted data to shift right based on a preset first displacement to obtain second encrypted data, encrypts the second encrypted data through the BLOWFISH algorithm to obtain third encrypted data, controls each character in the third encrypted data to shift right based on a preset second displacement to obtain fourth encrypted data, encrypts the fourth encrypted data through the ElGamal algorithm to obtain test encrypted data, and periodically uploads the test encrypted data to the upper computer through the TLS protocol.
[0024] In a second aspect, the present invention provides a parallel channel constant voltage control system for battery testing, comprising the following modules:
[0025] The test parameter input module is used for the host computer to obtain the input constant pressure value, parallel channel number and the device serial number of the corresponding lower computer;
[0026] A constant voltage control instruction sending module is used for the host computer to obtain the current timestamp, perform hash calculation on the constant voltage value, parallel channel number, timestamp and device serial number to obtain a hash value, encrypt the constant voltage value, parallel channel number, timestamp, device serial number and hash value into ciphertext data, generate a constant voltage control instruction based on the ciphertext data and send it to the intermediate computer;
[0027] A constant voltage control instruction decryption and verification module is used for the intermediate computer to decrypt the ciphertext data carried by the constant voltage control instruction received, obtain the constant voltage value, parallel channel number, timestamp, device serial number and hash value, and verify the constant voltage control instruction based on the timestamp, device serial number and hash value;
[0028] A constant pressure operation module, which is used for the intermediate computer to perform a constant pressure check on the test channel corresponding to the lower computer based on the parallel channel number, and then control the corresponding test channel to perform a constant pressure operation based on the constant pressure value and the parallel channel number;
[0029] The test data encryption upload module is used for the intermediate computer to collect test data during constant pressure operation from the lower computer, encrypt the test data into test encrypted data, and periodically upload the test encrypted data to the upper computer.
[0030] Furthermore, the test parameter input module is specifically used for:
[0031] After the upper computer performs identity authentication through the visual interface, it obtains the input constant voltage value, parallel channel number and the device serial number of the corresponding lower computer through the visual interface.
[0032] Furthermore, the constant voltage control instruction sending module is specifically used for:
[0033] The host computer obtains the current timestamp, performs hash calculation on the constant voltage value, parallel channel number, timestamp and device serial number to obtain a hash value, encrypts the constant voltage value, parallel channel number, timestamp, device serial number and hash value through the 3DES algorithm to obtain first-level encrypted data, maps each character of the first-level encrypted data through a preset mapping rule to obtain second-level encrypted data, swaps letter a with letter b and letter c with letter d in the second-level encrypted data to obtain third-level encrypted data, encrypts the third-level encrypted data through the RSA algorithm to obtain ciphertext data, generates a constant voltage control instruction based on the ciphertext data, and sends the constant voltage control instruction to the intermediate computer in real time through the TLS protocol.
[0034] Furthermore, the constant voltage control instruction decryption and verification module is specifically used for:
[0035] The intermediate computer receives the constant voltage control instruction in real time, parses the constant voltage control instruction to obtain ciphertext data, decrypts the ciphertext data by using the RSA algorithm to obtain level 3 encrypted data, swaps letters a and b, and swaps letters c and d in the level 3 encrypted data to obtain level 2 encrypted data, maps each character of the level 2 encrypted data by using a preset mapping rule to obtain level 1 encrypted data, and decrypts the level 1 encrypted data by using the 3DES algorithm to obtain a constant voltage value, a parallel channel number, a timestamp, a device serial number, and a hash value;
[0036] After the intermediate computer performs integrity verification based on the hash value, it performs timeliness verification based on the timestamp, and then performs legality verification on the device serial number based on the preset device management table to complete the verification of the constant voltage control instruction.
[0037] Furthermore, the constant voltage operation module is specifically used for:
[0038] The intermediate computer obtains a sample voltage from a test channel corresponding to the lower computer based on the parallel channel number, performs constant voltage verification and calibration based on the maximum value of the sample voltage, and controls the corresponding test channel to synchronously perform constant voltage operation based on the constant voltage value and the parallel channel number;
[0039] The test data encryption upload module is specifically used for:
[0040] The intermediate computer periodically collects test data during constant voltage operation from the lower computer, encrypts the test data into first encrypted data through the RC2 algorithm, controls each character in the first encrypted data to shift right based on a preset first displacement to obtain second encrypted data, encrypts the second encrypted data through the BLOWFISH algorithm to obtain third encrypted data, controls each character in the third encrypted data to shift right based on a preset second displacement to obtain fourth encrypted data, encrypts the fourth encrypted data through the ElGamal algorithm to obtain test encrypted data, and periodically uploads the test encrypted data to the upper computer through the TLS protocol.
[0041] The advantages of the present invention are:
[0042] 1. Obtain the input constant voltage value, parallel channel number and the device serial number of the corresponding lower computer through the upper computer, obtain the current timestamp, perform hash calculation on the constant voltage value, parallel channel number, timestamp and device serial number to obtain a hash value, encrypt the constant voltage value, parallel channel number, timestamp, device serial number and hash value into ciphertext data, generate a constant voltage control instruction based on the ciphertext data and send it to the intermediate computer; then the intermediate computer decrypts the ciphertext data carried by the constant voltage control instruction to obtain the constant voltage value, parallel channel number, timestamp, device serial number and hash value, verify the constant voltage control instruction based on the timestamp, device serial number and hash value, perform constant voltage verification on the test channel corresponding to the lower computer based on the parallel channel number, and then generate a constant voltage control instruction based on the constant voltage value and The parallel channel number controls the corresponding test channel to perform constant voltage operation, and collects test data during the constant voltage operation from the lower computer, encrypts the test data into test encrypted data and periodically uploads it to the upper computer; that is, before performing the constant voltage operation, the constant voltage check is performed on the relevant test channels, and the constant voltage calibration is performed on the test channels that fail the check, and then the corresponding test channels are controlled to perform the constant voltage operation synchronously, avoiding the traditional problem of different time for each test channel to enter the constant voltage due to errors in the sampling voltage of each test channel, thereby affecting the accuracy of constant voltage control. In addition, multiple encryption measures are adopted for the transmission of constant voltage control instructions and test data to avoid theft and tampering of plain text during transmission, thereby greatly improving the accuracy and security of parallel channel constant voltage control.
[0043] 2. The constant voltage value, parallel channel number, timestamp and device serial number are hashed to obtain a hash value, and the constant voltage value, parallel channel number, timestamp, device serial number and hash value are encrypted by the 3DES algorithm to obtain primary encrypted data. The characters of the primary encrypted data are mapped by a preset mapping rule to obtain secondary encrypted data, and the letters a and b in the secondary encrypted data are swapped, and the letters c and d are swapped to obtain the third-level encrypted data. The third-level encrypted data is encrypted by the RSA algorithm to obtain ciphertext data, and a constant voltage control instruction is generated based on the ciphertext data, and the constant voltage control instruction is sent to the intermediate computer in real time through the TLS protocol; if the corresponding encryption algorithm or data transformation rule is not known, the ciphertext data cannot be cracked, and the integrity can be checked by the hash value, the timeliness can be checked by the timestamp, and the legitimacy can be checked by the device serial number. The TLS protocol is also a secure transmission protocol, and at least 7 security measures (hash calculation, 3DES algorithm, mapping rule, swapping a and b, swapping c and d, RSA algorithm, TLS protocol) are taken before and after, which greatly improves the security of the constant voltage control instruction transmission.
[0044] 3. Encrypt the test data into first encrypted data through the RC2 algorithm, control the right shift of each character in the first encrypted data based on the preset first displacement to obtain second encrypted data, encrypt the second encrypted data through the BLOWFISH algorithm to obtain third encrypted data, control the right shift of each character in the third encrypted data based on the preset second displacement to obtain fourth encrypted data, encrypt the fourth encrypted data through the ElGamal algorithm to obtain test encrypted data, and upload the test encrypted data to the host computer periodically through the TLS protocol; if the corresponding encryption algorithm or data transformation rule is not known, the test encrypted data cannot be cracked, and the TLS protocol is also a secure transmission protocol, and at least 8 security measures (RC2 algorithm, first displacement, first displacement direction, BLOWFISH algorithm, second displacement, second displacement direction, ElGamal algorithm, TLS protocol) are taken before and after, which greatly improves the security of test data transmission.
[0045] 4. Further improve security by adopting different encryption schemes during constant voltage control instructions and test data transmission.
[0046] 5. By periodically uploading the encrypted test data to the host computer, the bandwidth pressure is greatly reduced compared to real-time uploading. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] The present invention will be further described below in conjunction with embodiments with reference to the accompanying drawings.
[0048] Figure 1 The present invention is a flow chart of a parallel channel constant voltage control method for battery testing.
[0049] Figure 2 The present invention is a structural schematic diagram of a parallel channel constant voltage control system for battery testing. DETAILED DESCRIPTION
[0050] The technical solution in the embodiments of the present application has the following overall idea: before executing the constant voltage operation, a constant voltage check is performed on the relevant test channels, a constant voltage calibration is performed on the test channels that fail the check, and then the corresponding test channels are controlled to synchronously perform the constant voltage operation, thereby avoiding the traditional problem of each test channel entering the constant voltage at different times due to errors in the sampling voltages of each test channel, which in turn affects the accuracy of the constant voltage control. Multiple encryption measures are adopted for the transmission of constant voltage control instructions and test data to improve the accuracy and security of the constant voltage control of parallel channels.
[0051] Please refer to Figure 1 to Figure 2 As shown, a preferred embodiment of a parallel channel constant voltage control method for battery testing of the present invention comprises the following steps:
[0052] Step S1, the upper computer obtains the input constant pressure value, the parallel channel number and the device serial number of the corresponding lower computer;
[0053] Step S2, the host computer obtains the current timestamp, performs hash calculation on the constant voltage value, the parallel channel number, the timestamp and the device serial number to obtain a hash value, encrypts the constant voltage value, the parallel channel number, the timestamp, the device serial number and the hash value into ciphertext data, generates a constant voltage control instruction based on the ciphertext data and sends it to the intermediate computer;
[0054] Step S3, the intermediate computer decrypts the ciphertext data carried by the received constant voltage control instruction to obtain the constant voltage value, parallel channel number, timestamp, device serial number and hash value, and verifies the constant voltage control instruction based on the timestamp, device serial number and hash value;
[0055] Step S4, the intermediate computer performs constant pressure verification on the test channel corresponding to the lower computer based on the parallel channel number, and controls the corresponding test channel to perform constant pressure operation based on the constant pressure value and the parallel channel number;
[0056] Step S5: The intermediate computer collects test data during the constant pressure operation from the lower computer, encrypts the test data into test encrypted data, and periodically uploads the test encrypted data to the upper computer. By periodically uploading the test encrypted data to the upper computer, the bandwidth pressure is greatly reduced compared to real-time uploading.
[0057] The step S1 is specifically as follows:
[0058] After the upper computer performs identity authentication through the visual interface, it obtains the input constant voltage value, parallel channel number and the device serial number of the corresponding lower computer through the visual interface.
[0059] The step S2 is specifically as follows:
[0060] The host computer obtains the current timestamp, performs hash calculation on the constant voltage value, parallel channel number, timestamp and device serial number to obtain a hash value, encrypts the constant voltage value, parallel channel number, timestamp, device serial number and hash value through the 3DES algorithm to obtain first-level encrypted data, maps each character of the first-level encrypted data through a preset mapping rule to obtain second-level encrypted data, swaps letter a with letter b and letter c with letter d in the second-level encrypted data to obtain third-level encrypted data, encrypts the third-level encrypted data through the RSA algorithm to obtain ciphertext data, generates a constant voltage control instruction based on the ciphertext data, and sends the constant voltage control instruction to the intermediate computer in real time through the TLS protocol.
[0061] The hash value is obtained by performing hash calculation on the constant voltage value, the parallel channel number, the timestamp, and the device serial number. The constant voltage value, the parallel channel number, the timestamp, the device serial number, and the hash value are encrypted by the 3DES algorithm to obtain the first-level encrypted data. The characters of the first-level encrypted data are mapped by the preset mapping rule to obtain the second-level encrypted data. The letters a and b in the second-level encrypted data are swapped, and the letters c and d are swapped to obtain the third-level encrypted data. The third-level encrypted data is encrypted by the RSA algorithm to obtain the ciphertext data. The constant voltage control instruction is generated based on the ciphertext data, and the constant voltage control instruction is sent to the intermediate computer in real time through the TLS protocol. If the corresponding encryption algorithm or data transformation rule is not known, the ciphertext data cannot be cracked, and the integrity can be checked by the hash value, the timeliness can be checked by the timestamp, and the legitimacy can be checked by the device serial number. The TLS protocol is also a secure transmission protocol, and at least 7 security measures (hash calculation, 3DES algorithm, mapping rule, swapping a and b, swapping c and d, RSA algorithm, TLS protocol) are taken before and after, which greatly improves the security of the constant voltage control instruction transmission.
[0062] The step S3 is specifically as follows:
[0063] The intermediate computer receives the constant voltage control instruction in real time, parses the constant voltage control instruction to obtain ciphertext data, decrypts the ciphertext data by using the RSA algorithm to obtain level 3 encrypted data, swaps letters a and b, and swaps letters c and d in the level 3 encrypted data to obtain level 2 encrypted data, maps each character of the level 2 encrypted data by using a preset mapping rule to obtain level 1 encrypted data, and decrypts the level 1 encrypted data by using the 3DES algorithm to obtain a constant voltage value, a parallel channel number, a timestamp, a device serial number, and a hash value;
[0064] After the intermediate computer performs integrity verification based on the hash value, it performs timeliness verification based on the timestamp, and then performs legality verification on the device serial number based on the preset device management table to complete the verification of the constant voltage control instruction.
[0065] The step S4 is specifically as follows:
[0066] The intermediate computer obtains a sample voltage from a test channel corresponding to the lower computer based on the parallel channel number, performs constant voltage verification and calibration based on the maximum value of the sample voltage, and controls the corresponding test channel to synchronously perform constant voltage operation based on the constant voltage value and the parallel channel number;
[0067] The step S5 is specifically as follows:
[0068] The intermediate computer periodically collects test data during constant voltage operation from the lower computer, encrypts the test data into first encrypted data through the RC2 algorithm, controls each character in the first encrypted data to shift right based on a preset first displacement to obtain second encrypted data, encrypts the second encrypted data through the BLOWFISH algorithm to obtain third encrypted data, controls each character in the third encrypted data to shift right based on a preset second displacement to obtain fourth encrypted data, encrypts the fourth encrypted data through the ElGamal algorithm to obtain test encrypted data, and periodically uploads the test encrypted data to the upper computer through the TLS protocol.
[0069] The test data is encrypted into first encrypted data through the RC2 algorithm, and each character in the first encrypted data is controlled to shift right based on a preset first displacement to obtain second encrypted data. The second encrypted data is encrypted through the BLOWFISH algorithm to obtain third encrypted data. Based on a preset second displacement, each character in the third encrypted data is controlled to shift right to obtain fourth encrypted data. The fourth encrypted data is encrypted through the ElGamal algorithm to obtain test encrypted data, and the test encrypted data is periodically uploaded to the host computer through the TLS protocol. If the corresponding encryption algorithm or data transformation rule is not known, the test encrypted data cannot be cracked, and the TLS protocol is also a secure transmission protocol. At least 8 security measures (RC2 algorithm, first displacement, first displacement direction, BLOWFISH algorithm, second displacement, second displacement direction, ElGamal algorithm, TLS protocol) are taken before and after, which greatly improves the security of test data transmission.
[0070] Security is further improved by adopting different encryption schemes during the transmission of constant voltage control instructions and test data.
[0071] The decryption process of the test encrypted data is as follows: decrypting the test encrypted data by using the ElGamal algorithm to obtain fourth encrypted data, controlling each character in the fourth encrypted data to shift left based on a preset second displacement to obtain third encrypted data, decrypting the third encrypted data by using the BLOWFISH algorithm to obtain second encrypted data, controlling each character in the second encrypted data to shift left based on a preset first displacement to obtain first encrypted data, and decrypting the first encrypted data by using the RC2 algorithm to obtain test data.
[0072] A preferred embodiment of a parallel channel constant voltage control system for battery testing of the present invention includes the following modules:
[0073] The test parameter input module is used for the host computer to obtain the input constant pressure value, parallel channel number and the device serial number of the corresponding lower computer;
[0074] A constant voltage control instruction sending module is used for the host computer to obtain the current timestamp, perform hash calculation on the constant voltage value, parallel channel number, timestamp and device serial number to obtain a hash value, encrypt the constant voltage value, parallel channel number, timestamp, device serial number and hash value into ciphertext data, generate a constant voltage control instruction based on the ciphertext data and send it to the intermediate computer;
[0075] A constant voltage control instruction decryption and verification module is used for the intermediate computer to decrypt the ciphertext data carried by the constant voltage control instruction received, obtain the constant voltage value, parallel channel number, timestamp, device serial number and hash value, and verify the constant voltage control instruction based on the timestamp, device serial number and hash value;
[0076] A constant pressure operation module, which is used for the intermediate computer to perform a constant pressure check on the test channel corresponding to the lower computer based on the parallel channel number, and then control the corresponding test channel to perform a constant pressure operation based on the constant pressure value and the parallel channel number;
[0077] The test data encryption upload module is used for the intermediate computer to collect the test data during the constant pressure operation from the lower computer, encrypt the test data into test encrypted data, and periodically upload the test encrypted data to the upper computer. By periodically uploading the test encrypted data to the upper computer, the bandwidth pressure is greatly reduced compared to real-time uploading.
[0078] The test parameter input module is specifically used for:
[0079] After the upper computer performs identity authentication through the visual interface, it obtains the input constant voltage value, parallel channel number and the device serial number of the corresponding lower computer through the visual interface.
[0080] The constant voltage control instruction sending module is specifically used for:
[0081] The host computer obtains the current timestamp, performs hash calculation on the constant voltage value, parallel channel number, timestamp and device serial number to obtain a hash value, encrypts the constant voltage value, parallel channel number, timestamp, device serial number and hash value through the 3DES algorithm to obtain first-level encrypted data, maps each character of the first-level encrypted data through a preset mapping rule to obtain second-level encrypted data, swaps letter a with letter b and letter c with letter d in the second-level encrypted data to obtain third-level encrypted data, encrypts the third-level encrypted data through the RSA algorithm to obtain ciphertext data, generates a constant voltage control instruction based on the ciphertext data, and sends the constant voltage control instruction to the intermediate computer in real time through the TLS protocol.
[0082] The hash value is obtained by performing hash calculation on the constant voltage value, the parallel channel number, the timestamp, and the device serial number. The constant voltage value, the parallel channel number, the timestamp, the device serial number, and the hash value are encrypted by the 3DES algorithm to obtain the first-level encrypted data. The characters of the first-level encrypted data are mapped by the preset mapping rule to obtain the second-level encrypted data. The letters a and b in the second-level encrypted data are swapped, and the letters c and d are swapped to obtain the third-level encrypted data. The third-level encrypted data is encrypted by the RSA algorithm to obtain the ciphertext data. The constant voltage control instruction is generated based on the ciphertext data, and the constant voltage control instruction is sent to the intermediate computer in real time through the TLS protocol. If the corresponding encryption algorithm or data transformation rule is not known, the ciphertext data cannot be cracked, and the integrity can be checked by the hash value, the timeliness can be checked by the timestamp, and the legitimacy can be checked by the device serial number. The TLS protocol is also a secure transmission protocol, and at least 7 security measures (hash calculation, 3DES algorithm, mapping rule, swapping a and b, swapping c and d, RSA algorithm, TLS protocol) are taken before and after, which greatly improves the security of the constant voltage control instruction transmission.
[0083] The constant voltage control instruction decryption and verification module is specifically used for:
[0084] The intermediate computer receives the constant voltage control instruction in real time, parses the constant voltage control instruction to obtain ciphertext data, decrypts the ciphertext data by using the RSA algorithm to obtain level 3 encrypted data, swaps letters a and b, and swaps letters c and d in the level 3 encrypted data to obtain level 2 encrypted data, maps each character of the level 2 encrypted data by using a preset mapping rule to obtain level 1 encrypted data, and decrypts the level 1 encrypted data by using the 3DES algorithm to obtain a constant voltage value, a parallel channel number, a timestamp, a device serial number, and a hash value;
[0085] After the intermediate computer performs integrity verification based on the hash value, it performs timeliness verification based on the timestamp, and then performs legality verification on the device serial number based on the preset device management table to complete the verification of the constant voltage control instruction.
[0086] The constant pressure operation module is specifically used for:
[0087] The intermediate computer obtains a sample voltage from a test channel corresponding to the lower computer based on the parallel channel number, performs constant voltage verification and calibration based on the maximum value of the sample voltage, and controls the corresponding test channel to synchronously perform constant voltage operation based on the constant voltage value and the parallel channel number;
[0088] The test data encryption upload module is specifically used for:
[0089] The intermediate computer periodically collects test data during constant voltage operation from the lower computer, encrypts the test data into first encrypted data through the RC2 algorithm, controls each character in the first encrypted data to shift right based on a preset first displacement to obtain second encrypted data, encrypts the second encrypted data through the BLOWFISH algorithm to obtain third encrypted data, controls each character in the third encrypted data to shift right based on a preset second displacement to obtain fourth encrypted data, encrypts the fourth encrypted data through the ElGamal algorithm to obtain test encrypted data, and periodically uploads the test encrypted data to the upper computer through the TLS protocol.
[0090] The test data is encrypted into first encrypted data through the RC2 algorithm, and each character in the first encrypted data is controlled to shift right based on a preset first displacement to obtain second encrypted data. The second encrypted data is encrypted through the BLOWFISH algorithm to obtain third encrypted data. Based on a preset second displacement, each character in the third encrypted data is controlled to shift right to obtain fourth encrypted data. The fourth encrypted data is encrypted through the ElGamal algorithm to obtain test encrypted data, and the test encrypted data is periodically uploaded to the host computer through the TLS protocol. If the corresponding encryption algorithm or data transformation rule is not known, the test encrypted data cannot be cracked, and the TLS protocol is also a secure transmission protocol. At least 8 security measures (RC2 algorithm, first displacement, first displacement direction, BLOWFISH algorithm, second displacement, second displacement direction, ElGamal algorithm, TLS protocol) are taken before and after, which greatly improves the security of test data transmission.
[0091] Security is further improved by adopting different encryption schemes during the transmission of constant voltage control instructions and test data.
[0092] The decryption process of the test encrypted data is as follows: decrypting the test encrypted data by using the ElGamal algorithm to obtain fourth encrypted data, controlling each character in the fourth encrypted data to shift left based on a preset second displacement to obtain third encrypted data, decrypting the third encrypted data by using the BLOWFISH algorithm to obtain second encrypted data, controlling each character in the second encrypted data to shift left based on a preset first displacement to obtain first encrypted data, and decrypting the first encrypted data by using the RC2 algorithm to obtain test data.
[0093] In summary, the advantages of the present invention are:
[0094] 1. Obtain the input constant voltage value, parallel channel number and the device serial number of the corresponding lower computer through the upper computer, obtain the current timestamp, perform hash calculation on the constant voltage value, parallel channel number, timestamp and device serial number to obtain a hash value, encrypt the constant voltage value, parallel channel number, timestamp, device serial number and hash value into ciphertext data, generate a constant voltage control instruction based on the ciphertext data and send it to the intermediate computer; then the intermediate computer decrypts the ciphertext data carried by the constant voltage control instruction to obtain the constant voltage value, parallel channel number, timestamp, device serial number and hash value, verify the constant voltage control instruction based on the timestamp, device serial number and hash value, perform constant voltage verification on the test channel corresponding to the lower computer based on the parallel channel number, and then generate a constant voltage control instruction based on the constant voltage value and The parallel channel number controls the corresponding test channel to perform constant voltage operation, and collects test data during the constant voltage operation from the lower computer, encrypts the test data into test encrypted data and periodically uploads it to the upper computer; that is, before performing the constant voltage operation, the constant voltage check is performed on the relevant test channels, and the constant voltage calibration is performed on the test channels that fail the check, and then the corresponding test channels are controlled to perform the constant voltage operation synchronously, avoiding the traditional problem of different time for each test channel to enter the constant voltage due to errors in the sampling voltage of each test channel, thereby affecting the accuracy of constant voltage control. In addition, multiple encryption measures are adopted for the transmission of constant voltage control instructions and test data to avoid theft and tampering of plain text during transmission, thereby greatly improving the accuracy and security of parallel channel constant voltage control.
[0095] 2. The constant voltage value, parallel channel number, timestamp and device serial number are hashed to obtain a hash value, and the constant voltage value, parallel channel number, timestamp, device serial number and hash value are encrypted by the 3DES algorithm to obtain primary encrypted data. The characters of the primary encrypted data are mapped by a preset mapping rule to obtain secondary encrypted data, and the letters a and b in the secondary encrypted data are swapped, and the letters c and d are swapped to obtain the third-level encrypted data. The third-level encrypted data is encrypted by the RSA algorithm to obtain ciphertext data, and a constant voltage control instruction is generated based on the ciphertext data, and the constant voltage control instruction is sent to the intermediate computer in real time through the TLS protocol; if the corresponding encryption algorithm or data transformation rule is not known, the ciphertext data cannot be cracked, and the integrity can be checked by the hash value, the timeliness can be checked by the timestamp, and the legitimacy can be checked by the device serial number. The TLS protocol is also a secure transmission protocol, and at least 7 security measures (hash calculation, 3DES algorithm, mapping rule, swapping a and b, swapping c and d, RSA algorithm, TLS protocol) are taken before and after, which greatly improves the security of the constant voltage control instruction transmission.
[0096] 3. Encrypt the test data into first encrypted data through the RC2 algorithm, control the right shift of each character in the first encrypted data based on the preset first displacement to obtain second encrypted data, encrypt the second encrypted data through the BLOWFISH algorithm to obtain third encrypted data, control the right shift of each character in the third encrypted data based on the preset second displacement to obtain fourth encrypted data, encrypt the fourth encrypted data through the ElGamal algorithm to obtain test encrypted data, and upload the test encrypted data to the host computer periodically through the TLS protocol; if the corresponding encryption algorithm or data transformation rule is not known, the test encrypted data cannot be cracked, and the TLS protocol is also a secure transmission protocol, and at least 8 security measures (RC2 algorithm, first displacement, first displacement direction, BLOWFISH algorithm, second displacement, second displacement direction, ElGamal algorithm, TLS protocol) are taken before and after, which greatly improves the security of test data transmission.
[0097] 4. Further improve security by adopting different encryption schemes during constant voltage control instructions and test data transmission.
[0098] 5. By periodically uploading the encrypted test data to the host computer, the bandwidth pressure is greatly reduced compared to real-time uploading.
[0099] Although the specific implementation modes of the present invention are described above, those skilled in the art should understand that the specific implementation modes described are only illustrative and are not intended to limit the scope of the present invention. Equivalent modifications and changes made by those skilled in the art in accordance with the spirit of the present invention should be included in the scope of protection of the claims of the present invention.
Claims
1. A parallel channel constant voltage control method for battery testing, characterized in that: The steps include: Step S1, the upper computer obtains the input constant pressure value, the parallel channel number and the device serial number of the corresponding lower computer; Step S2, the host computer obtains the current timestamp, performs hash calculation on the constant voltage value, the parallel channel number, the timestamp and the device serial number to obtain a hash value, encrypts the constant voltage value, the parallel channel number, the timestamp, the device serial number and the hash value into ciphertext data, generates a constant voltage control instruction based on the ciphertext data and sends it to the intermediate computer; Step S3, the intermediate computer decrypts the ciphertext data carried by the received constant voltage control instruction to obtain the constant voltage value, parallel channel number, timestamp, device serial number and hash value, and verifies the constant voltage control instruction based on the timestamp, device serial number and hash value; Step S4, the intermediate computer performs constant pressure verification on the test channel corresponding to the lower computer based on the parallel channel number, and controls the corresponding test channel to perform constant pressure operation based on the constant pressure value and the parallel channel number; Step S5: The intermediate computer collects test data during the constant pressure operation from the lower computer, encrypts the test data into test encrypted data, and periodically uploads the test encrypted data to the upper computer.
2. A parallel channel constant voltage control method for battery testing as claimed in claim 1, characterized in that: The step S1 is specifically as follows: After the upper computer performs identity authentication through the visual interface, it obtains the input constant voltage value, parallel channel number and the device serial number of the corresponding lower computer through the visual interface.
3. A parallel channel constant voltage control method for battery testing as claimed in claim 1, characterized in that: The step S2 is specifically as follows: The host computer obtains the current timestamp, performs hash calculation on the constant voltage value, parallel channel number, timestamp and device serial number to obtain a hash value, encrypts the constant voltage value, parallel channel number, timestamp, device serial number and hash value through the 3DES algorithm to obtain first-level encrypted data, maps each character of the first-level encrypted data through a preset mapping rule to obtain second-level encrypted data, swaps letter a with letter b and letter c with letter d in the second-level encrypted data to obtain third-level encrypted data, encrypts the third-level encrypted data through the RSA algorithm to obtain ciphertext data, generates a constant voltage control instruction based on the ciphertext data, and sends the constant voltage control instruction to the intermediate computer in real time through the TLS protocol.
4. A parallel channel constant voltage control method for battery testing as claimed in claim 1, characterized in that: The step S3 is specifically as follows: The intermediate computer receives the constant voltage control instruction in real time, parses the constant voltage control instruction to obtain ciphertext data, decrypts the ciphertext data by using the RSA algorithm to obtain level 3 encrypted data, swaps letters a and b, and swaps letters c and d in the level 3 encrypted data to obtain level 2 encrypted data, maps each character of the level 2 encrypted data by using a preset mapping rule to obtain level 1 encrypted data, and decrypts the level 1 encrypted data by using the 3DES algorithm to obtain a constant voltage value, a parallel channel number, a timestamp, a device serial number, and a hash value; After the intermediate computer performs integrity verification based on the hash value, it performs timeliness verification based on the timestamp, and then performs legality verification on the device serial number based on the preset device management table to complete the verification of the constant voltage control instruction.
5. A parallel channel constant voltage control method for battery testing as claimed in claim 1, characterized in that: The step S4 is specifically as follows: The intermediate computer obtains a sample voltage from a test channel corresponding to the lower computer based on the parallel channel number, performs constant voltage verification and calibration based on the maximum value of the sample voltage, and controls the corresponding test channel to synchronously perform constant voltage operation based on the constant voltage value and the parallel channel number; The step S5 is specifically as follows: The intermediate computer periodically collects test data during constant voltage operation from the lower computer, encrypts the test data into first encrypted data through the RC2 algorithm, controls each character in the first encrypted data to shift right based on a preset first displacement to obtain second encrypted data, encrypts the second encrypted data through the BLOWFISH algorithm to obtain third encrypted data, controls each character in the third encrypted data to shift right based on a preset second displacement to obtain fourth encrypted data, encrypts the fourth encrypted data through the ElGamal algorithm to obtain test encrypted data, and periodically uploads the test encrypted data to the upper computer through the TLS protocol.
6. A parallel channel constant voltage control system for battery testing, characterized in that: Includes the following modules: The test parameter input module is used for the host computer to obtain the input constant pressure value, parallel channel number and the device serial number of the corresponding lower computer; A constant voltage control instruction sending module is used for the host computer to obtain the current timestamp, perform hash calculation on the constant voltage value, parallel channel number, timestamp and device serial number to obtain a hash value, encrypt the constant voltage value, parallel channel number, timestamp, device serial number and hash value into ciphertext data, generate a constant voltage control instruction based on the ciphertext data and send it to the intermediate computer; A constant voltage control instruction decryption and verification module is used for the intermediate computer to decrypt the ciphertext data carried by the constant voltage control instruction received, obtain the constant voltage value, parallel channel number, timestamp, device serial number and hash value, and verify the constant voltage control instruction based on the timestamp, device serial number and hash value; A constant pressure operation module, which is used for the intermediate computer to perform a constant pressure check on the test channel corresponding to the lower computer based on the parallel channel number, and then control the corresponding test channel to perform a constant pressure operation based on the constant pressure value and the parallel channel number; The test data encryption upload module is used for the intermediate computer to collect test data during constant pressure operation from the lower computer, encrypt the test data into test encrypted data, and periodically upload the test encrypted data to the upper computer.
7. A parallel channel constant voltage control system for battery testing as claimed in claim 6, characterized in that: The test parameter input module is specifically used for: After the upper computer performs identity authentication through the visual interface, it obtains the input constant voltage value, parallel channel number and the device serial number of the corresponding lower computer through the visual interface.
8. A parallel channel constant voltage control system for battery testing as claimed in claim 6, characterized in that: The constant voltage control instruction sending module is specifically used for: The host computer obtains the current timestamp, performs hash calculation on the constant voltage value, parallel channel number, timestamp and device serial number to obtain a hash value, encrypts the constant voltage value, parallel channel number, timestamp, device serial number and hash value through the 3DES algorithm to obtain first-level encrypted data, maps each character of the first-level encrypted data through a preset mapping rule to obtain second-level encrypted data, swaps letter a with letter b and letter c with letter d in the second-level encrypted data to obtain third-level encrypted data, encrypts the third-level encrypted data through the RSA algorithm to obtain ciphertext data, generates a constant voltage control instruction based on the ciphertext data, and sends the constant voltage control instruction to the intermediate computer in real time through the TLS protocol.
9. A parallel channel constant voltage control system for battery testing as claimed in claim 6, characterized in that: The constant voltage control instruction decryption and verification module is specifically used for: The intermediate computer receives the constant voltage control instruction in real time, parses the constant voltage control instruction to obtain ciphertext data, decrypts the ciphertext data by using the RSA algorithm to obtain level 3 encrypted data, swaps letters a and b, and swaps letters c and d in the level 3 encrypted data to obtain level 2 encrypted data, maps each character of the level 2 encrypted data by using a preset mapping rule to obtain level 1 encrypted data, and decrypts the level 1 encrypted data by using the 3DES algorithm to obtain a constant voltage value, a parallel channel number, a timestamp, a device serial number, and a hash value; After the intermediate computer performs integrity verification based on the hash value, it performs timeliness verification based on the timestamp, and then performs legality verification on the device serial number based on the preset device management table to complete the verification of the constant voltage control instruction.
10. A parallel channel constant voltage control system for battery testing as claimed in claim 6, characterized in that: The constant pressure operation module is specifically used for: The intermediate computer obtains a sample voltage from a test channel corresponding to the lower computer based on the parallel channel number, performs constant voltage verification and calibration based on the maximum value of the sample voltage, and controls the corresponding test channel to synchronously perform constant voltage operation based on the constant voltage value and the parallel channel number; The test data encryption upload module is specifically used for: The intermediate computer periodically collects test data during constant voltage operation from the lower computer, encrypts the test data into first encrypted data through the RC2 algorithm, controls each character in the first encrypted data to shift right based on a preset first displacement to obtain second encrypted data, encrypts the second encrypted data through the BLOWFISH algorithm to obtain third encrypted data, controls each character in the third encrypted data to shift right based on a preset second displacement to obtain fourth encrypted data, encrypts the fourth encrypted data through the ElGamal algorithm to obtain test encrypted data, and periodically uploads the test encrypted data to the upper computer through the TLS protocol.