A test channel linkage method and system for battery testing

By using hash calculation and encryption technology to generate linkage control instructions in the battery test system, the problem of temperature boxes in the temperature box of each test channel is solved and the battery test quality is improved.

CN119738723APending Publication Date: 2025-04-01FUJIAN NEBULA ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411699323.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-26
Publication Date
2025-04-01

AI Technical Summary

Technical Problem

During the battery test, it is difficult for the thermostats of each test channel to heat up to the set temperature simultaneously, which affects the quality of the battery test.

Method used

The upper computer obtains the channel number, target temperature, device serial number and timestamp, performs hash calculation and encryption, generates linkage control instructions, and sends them to the median computer. The median computer decrypts the command, verify its integrity and legality, and sets shared variables to synchronously control the heating operation of each thermostat.

Benefits of technology

The temperature box temperature rise of each test channel is achieved simultaneously, ensuring the consistency of initial conditions and significantly improving the battery test quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119738723A_ABST
    Figure CN119738723A_ABST
Patent Text Reader

Abstract

The present invention provides a test channel linkage method and system for battery testing in the field of battery testing technology, the method comprising: step S1, the host computer obtains the channel number, target temperature, and device serial number; step S2, the channel number, target temperature, device serial number, and timestamp are hashed to obtain a hash value, and the channel number, target temperature, device serial number, timestamp, and hash value are encrypted into ciphertext data to generate a linkage control instruction and sent to the intermediate computer; step S3, the intermediate computer decrypts the linkage control instruction and verifies it; step S4, the intermediate computer sets shared variables and linkage conditions, and controls the test channel to adjust the initial state of the battery based on the channel number and linkage conditions; step S5, the intermediate computer synchronously controls each temperature box to perform a heating operation based on the shared variables. The advantage of the present invention is that it can achieve the synchronous heating of the temperature boxes of each test channel to the set temperature, thereby greatly improving the quality of battery testing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of battery testing, and in particular to a test channel linkage 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, multiple test channels need to run the same test steps to perform the test. Before the test, the incubator needs to be loaded at the same time to make the incubator reach the set temperature before performing subsequent tests. However, due to the differences in battery status (such as capacity, etc.) corresponding to different test channels, it is impossible to make the incubator reach the set temperature at the same time, which affects the quality of battery testing.

[0004] Therefore, how to provide a test channel linkage method and system for battery testing to achieve synchronous heating of the temperature boxes of each test channel to a set temperature to improve the battery test quality has become a technical problem that needs to be solved urgently. Summary of the invention

[0005] The technical problem to be solved by the present invention is to provide a test channel linkage method and system for battery testing, so as to achieve synchronous heating of the temperature boxes of each test channel to a set temperature, so as to improve the battery test quality.

[0006] In a first aspect, the present invention provides a test channel linkage method for battery testing, comprising the following steps:

[0007] Step S1, the upper computer obtains the input channel number, target temperature and the device serial number of the corresponding lower computer;

[0008] Step S2, the host computer obtains the current timestamp, performs hash calculation on the channel number, target temperature, device serial number and timestamp to obtain a hash value, encrypts the channel number, target temperature, device serial number, timestamp and hash value into ciphertext data, generates a linkage control instruction based on the ciphertext data and sends it to the intermediate computer;

[0009] Step S3, the intermediate computer decrypts the ciphertext data carried by the received linkage control instruction to obtain the channel number, target temperature, device serial number, timestamp and hash value, and verifies the linkage control instruction based on the device serial number, timestamp and hash value;

[0010] Step S4, the intermediate computer sets a shared variable for identifying the linkage test channel and a linkage condition, wherein the shared variable is an array with a length of 256 bytes, and controls the lower computer to adjust the initial state of the battery in the corresponding test channel based on the channel number and the linkage condition;

[0011] Step S5: The intermediate computer updates the status bit of the shared variable based on the test channel that meets the linkage condition. When the status bits corresponding to all the channel numbers are set, each temperature box is synchronously controlled to perform a temperature increase operation until the target temperature is reached.

[0012] Furthermore, the step S1 is specifically as follows:

[0013] After the upper computer authenticates the identity through the visual interface, it obtains the input channel number, target temperature, and the device serial number of the corresponding lower computer through the visual interface;

[0014] The channel number is the number of the test channel to be linked in the lower computer.

[0015] Furthermore, the step S2 is specifically as follows:

[0016] The host computer obtains the current timestamp, performs hash calculation on the channel number, target temperature, device serial number and timestamp to obtain a hash value, encrypts the constant pressure value, parallel channel number, timestamp, device serial number and hash value through the RC2 algorithm to obtain primary encrypted data, maps each character of the primary encrypted data through a preset mapping rule to obtain secondary encrypted data, swaps the letter e with the letter f, and swaps the letter g with the letter h in the secondary encrypted data to obtain third-level encrypted data, encrypts the third-level encrypted data through the AES algorithm to obtain ciphertext data, generates a linkage control instruction based on the ciphertext data, and sends the linkage 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 linkage control instruction in real time, parses the linkage control instruction to obtain ciphertext data, decrypts the ciphertext data by using the AES algorithm to obtain level-three encrypted data, swaps the letter e with the letter f, and swaps the letter g with the letter h in the level-three encrypted data to obtain level-two encrypted data, maps each character of the level-two encrypted data by using a preset mapping rule to obtain level-one encrypted data, and decrypts the level-one encrypted data by using the RC2 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 linkage control instruction.

[0020] Furthermore, the step S4 is specifically as follows:

[0021] The intermediate computer sets a shared variable for identifying a linkage test channel and a linkage condition, wherein the shared variable is an array with a length of 256 bytes, and the linkage condition is the initial capacity of the battery;

[0022] Based on the channel number and linkage conditions, the lower computer controls the corresponding test channel to adjust the initial state of the battery so that the capacity of the corresponding battery is the initial capacity, and feeds back a state adjustment completion response to the middle computer in real time.

[0023] In a second aspect, the present invention provides a test channel linkage system for battery testing, comprising the following modules:

[0024] Parameter input module, used by the host computer to obtain the input channel number, target temperature and the device serial number of the corresponding lower computer;

[0025] A linkage control instruction sending module is used for the host computer to obtain the current timestamp, perform hash calculation on the channel number, target temperature, device serial number and timestamp to obtain a hash value, encrypt the channel number, target temperature, device serial number, timestamp and hash value into ciphertext data, generate a linkage control instruction based on the ciphertext data and send it to the intermediate computer;

[0026] The linkage control instruction parsing module is used for the intermediate computer to decrypt the ciphertext data carried by the linkage control instruction received, obtain the channel number, target temperature, device serial number, timestamp and hash value, and verify the linkage control instruction based on the device serial number, timestamp and hash value;

[0027] The battery initial state adjustment module is used for the intermediate computer to set a shared variable for identifying the linkage test channel and a linkage condition, wherein the shared variable is an array with a length of 256 bytes, and the lower computer is controlled to adjust the initial state of the battery in the corresponding test channel based on the channel number and the linkage condition;

[0028] The temperature rise operation module is used for the intermediate computer to update the status bit of the shared variable based on the test channel that meets the linkage condition. When the status bits corresponding to all the channel numbers are set, each temperature box is synchronously controlled to perform a temperature rise operation until the target temperature is reached.

[0029] Furthermore, the parameter input module is specifically used for:

[0030] After the upper computer authenticates the identity through the visual interface, it obtains the input channel number, target temperature, and the device serial number of the corresponding lower computer through the visual interface;

[0031] The channel number is the number of the test channel to be linked in the lower computer.

[0032] Furthermore, the linkage control instruction sending module is specifically used for:

[0033] The host computer obtains the current timestamp, performs hash calculation on the channel number, target temperature, device serial number and timestamp to obtain a hash value, encrypts the constant pressure value, parallel channel number, timestamp, device serial number and hash value through the RC2 algorithm to obtain primary encrypted data, maps each character of the primary encrypted data through a preset mapping rule to obtain secondary encrypted data, swaps the letter e with the letter f, and swaps the letter g with the letter h in the secondary encrypted data to obtain third-level encrypted data, encrypts the third-level encrypted data through the AES algorithm to obtain ciphertext data, generates a linkage control instruction based on the ciphertext data, and sends the linkage control instruction to the intermediate computer in real time through the TLS protocol.

[0034] Furthermore, the linkage control instruction parsing module is specifically used for:

[0035] The intermediate computer receives the linkage control instruction in real time, parses the linkage control instruction to obtain ciphertext data, decrypts the ciphertext data by using the AES algorithm to obtain level-three encrypted data, swaps the letter e with the letter f, and swaps the letter g with the letter h in the level-three encrypted data to obtain level-two encrypted data, maps each character of the level-two encrypted data by using a preset mapping rule to obtain level-one encrypted data, and decrypts the level-one encrypted data by using the RC2 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 linkage control instruction.

[0037] Furthermore, the battery initial state adjustment module is specifically used for:

[0038] The intermediate computer sets a shared variable for identifying a linkage test channel and a linkage condition, wherein the shared variable is an array with a length of 256 bytes, and the linkage condition is the initial capacity of the battery;

[0039] Based on the channel number and linkage conditions, the lower computer controls the corresponding test channel to adjust the initial state of the battery so that the capacity of the corresponding battery is the initial capacity, and feeds back a state adjustment completion response to the middle computer in real time.

[0040] The advantages of the present invention are:

[0041] 1. Obtain the channel number, target temperature, device serial number and timestamp through the host computer, perform hash calculation on the channel number, target temperature, device serial number and timestamp to obtain a hash value, encrypt the channel number, target temperature, device serial number, timestamp and hash value into ciphertext data, generate a linkage 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 linkage control instruction to obtain the channel number, target temperature, device serial number, timestamp and hash value, and verifies the linkage control instruction based on the device serial number, timestamp and hash value; then The intermediate computer sets a shared variable and sends the shared variable to the corresponding lower computer based on the channel number. The lower computer controls each test channel to adjust the initial state of the battery based on the shared variable. Finally, the intermediate computer completes the response based on the state adjustment feedback from the lower computer, and synchronously controls each incubator to perform a heating operation until the target temperature is reached. That is, before the incubators of each test channel heat up, the initial states of the batteries corresponding to each test channel are unified based on the set shared variable to ensure the consistency of the initial conditions, so as to achieve the synchronous heating of the incubators of each test channel to the set temperature, thereby greatly improving the battery test quality.

[0042] 2. The hash value is obtained by performing hash calculation on the channel number, target temperature, device serial number and timestamp, and the constant pressure value, parallel channel number, timestamp, device serial number and hash value are encrypted by the RC2 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, and the letters e and f in the second-level encrypted data are swapped, and the letters g and h are swapped to obtain the third-level encrypted data. The third-level encrypted data is encrypted by the AES algorithm to obtain ciphertext data, and the linkage control instructions are generated based on the ciphertext data, and the linkage control instructions are 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 have been taken before and after (hash calculation, RC2 algorithm, mapping rule, swapping e and f, swapping g and h, AES algorithm, TLS protocol), which greatly improves the security of the transmission of linkage control instructions. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] The present invention will be further described below in conjunction with embodiments with reference to the accompanying drawings.

[0044] Figure 1 The invention discloses a circuit principle block diagram of a test channel linkage method for battery testing.

[0045] Figure 2 The present invention is a structural schematic diagram of a test channel linkage system for battery testing. DETAILED DESCRIPTION

[0046] The technical solution in the embodiments of the present application has the following overall idea: before the incubators of each test channel are heated up, the initial states of the batteries corresponding to each test channel are unified based on the set shared variables to ensure the consistency of the initial conditions, so as to enable the incubators of each test channel to be heated up to the set temperature synchronously, thereby improving the battery test quality.

[0047] Please refer to Figure 1 to Figure 2 As shown, a preferred embodiment of a test channel linkage method for battery testing of the present invention includes the following steps:

[0048] Step S1, the upper computer obtains the input channel number, target temperature and the device serial number of the corresponding lower computer;

[0049] Step S2, the host computer obtains the current timestamp, performs hash calculation on the channel number, target temperature, device serial number and timestamp to obtain a hash value, encrypts the channel number, target temperature, device serial number, timestamp and hash value into ciphertext data, generates a linkage control instruction based on the ciphertext data and sends it to the intermediate computer; in specific implementation, the host computer is connected to multiple intermediate computers, and each intermediate computer is connected to multiple lower computers;

[0050] Step S3, the intermediate computer decrypts the ciphertext data carried by the received linkage control instruction to obtain the channel number, target temperature, device serial number, timestamp and hash value, and verifies the linkage control instruction based on the device serial number, timestamp and hash value;

[0051] Step S4, the intermediate computer sets a shared variable for identifying the linkage test channel and a linkage condition, wherein the shared variable is an array with a length of 256 bytes, and controls the lower computer to adjust the initial state of the battery in the corresponding test channel based on the channel number and the linkage condition;

[0052] Step S5: The intermediate computer updates the status bit of the shared variable based on the test channel that meets the linkage condition. When the status bits corresponding to all the channel numbers are set, each temperature box is synchronously controlled to perform a temperature increase operation until the target temperature is reached.

[0053] For example, to set test channel 1 and test channel 2 as linked test channels, set x[1]=1, x[2]=1; setting means adjusting the corresponding status bit in the shared variable from 0 to 1.

[0054] The present invention associates the shared variable with the test channel, so the configuration is simple and flexible.

[0055] The step S1 is specifically as follows:

[0056] After the upper computer authenticates the identity through the visual interface, it obtains the input channel number, target temperature, and the device serial number of the corresponding lower computer through the visual interface;

[0057] The channel number is the number of the test channel to be linked in the lower computer.

[0058] The step S2 is specifically as follows:

[0059] The host computer obtains the current timestamp, performs hash calculation on the channel number, target temperature, device serial number and timestamp to obtain a hash value, encrypts the constant pressure value, parallel channel number, timestamp, device serial number and hash value through the RC2 algorithm to obtain primary encrypted data, maps each character of the primary encrypted data through a preset mapping rule to obtain secondary encrypted data, swaps the letter e with the letter f, and swaps the letter g with the letter h in the secondary encrypted data to obtain third-level encrypted data, encrypts the third-level encrypted data through the AES algorithm to obtain ciphertext data, generates a linkage control instruction based on the ciphertext data, and sends the linkage control instruction to the intermediate computer in real time through the TLS protocol.

[0060] The hash value is obtained by performing hash calculation on the channel number, target temperature, device serial number and timestamp, and the constant pressure value, parallel channel number, timestamp, device serial number and hash value are encrypted by the RC2 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, and the letters e and f in the second-level encrypted data are swapped, and the letters g and h are swapped to obtain the third-level encrypted data. The third-level encrypted data is encrypted by the AES algorithm to obtain ciphertext data, and the linkage control instruction is generated based on the ciphertext data, and the linkage 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, RC2 algorithm, mapping rule, swapping e and f, swapping g and h, AES algorithm, TLS protocol) are taken before and after, which greatly improves the security of the transmission of linkage control instructions.

[0061] The step S3 is specifically as follows:

[0062] The intermediate computer receives the linkage control instruction in real time, parses the linkage control instruction to obtain ciphertext data, decrypts the ciphertext data by using the AES algorithm to obtain level-three encrypted data, swaps the letter e with the letter f, and swaps the letter g with the letter h in the level-three encrypted data to obtain level-two encrypted data, maps each character of the level-two encrypted data by using a preset mapping rule to obtain level-one encrypted data, and decrypts the level-one encrypted data by using the RC2 algorithm to obtain a constant voltage value, a parallel channel number, a timestamp, a device serial number, and a hash value;

[0063] 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 linkage control instruction.

[0064] The step S4 is specifically as follows:

[0065] The intermediate computer sets a shared variable for identifying the linkage test channel and a linkage condition, wherein the shared variable is an array with a length of 256 bytes, that is, it supports the linkage of a maximum of 256 test channels, and the linkage condition is the initial capacity of the battery;

[0066] Based on the channel number and linkage conditions, the lower computer controls the corresponding test channel to adjust the initial state of the battery so that the capacity of the corresponding battery is the initial capacity, and feeds back a state adjustment completion response to the middle computer in real time.

[0067] A preferred embodiment of a test channel linkage system for battery testing of the present invention includes the following modules:

[0068] The parameter input module is used by the host computer to obtain the input channel number, target temperature and the device serial number of the corresponding lower computer;

[0069] The linkage control instruction sending module is used for the upper computer to obtain the current timestamp, perform hash calculation on the channel number, target temperature, device serial number and timestamp to obtain a hash value, encrypt the channel number, target temperature, device serial number, timestamp and hash value into ciphertext data, generate a linkage control instruction based on the ciphertext data and send it to the intermediate computer; in specific implementation, the upper computer is connected to multiple intermediate computers, and each intermediate computer is connected to multiple lower computers;

[0070] The linkage control instruction parsing module is used for the intermediate computer to decrypt the ciphertext data carried by the linkage control instruction received, obtain the channel number, target temperature, device serial number, timestamp and hash value, and verify the linkage control instruction based on the device serial number, timestamp and hash value;

[0071] The battery initial state adjustment module is used for the intermediate computer to set a shared variable for identifying the linkage test channel and a linkage condition, wherein the shared variable is an array with a length of 256 bytes, and the lower computer is controlled to adjust the initial state of the battery in the corresponding test channel based on the channel number and the linkage condition;

[0072] The temperature rise operation module is used for the intermediate computer to update the status bit of the shared variable based on the test channel that meets the linkage condition. When the status bits corresponding to all the channel numbers are set, each temperature box is synchronously controlled to perform a temperature rise operation until the target temperature is reached.

[0073] For example, to set test channel 1 and test channel 2 as linked test channels, set x[1]=1, x[2]=1; setting means adjusting the corresponding status bit in the shared variable from 0 to 1.

[0074] The present invention associates the shared variable with the test channel, so the configuration is simple and flexible.

[0075] The parameter input module is specifically used for:

[0076] After the upper computer authenticates the identity through the visual interface, it obtains the input channel number, target temperature, and the device serial number of the corresponding lower computer through the visual interface;

[0077] The channel number is the number of the test channel to be linked in the lower computer.

[0078] The linkage control instruction sending module is specifically used for:

[0079] The host computer obtains the current timestamp, performs hash calculation on the channel number, target temperature, device serial number and timestamp to obtain a hash value, encrypts the constant pressure value, parallel channel number, timestamp, device serial number and hash value through the RC2 algorithm to obtain primary encrypted data, maps each character of the primary encrypted data through a preset mapping rule to obtain secondary encrypted data, swaps the letter e with the letter f, and swaps the letter g with the letter h in the secondary encrypted data to obtain third-level encrypted data, encrypts the third-level encrypted data through the AES algorithm to obtain ciphertext data, generates a linkage control instruction based on the ciphertext data, and sends the linkage control instruction to the intermediate computer in real time through the TLS protocol.

[0080] The hash value is obtained by performing hash calculation on the channel number, target temperature, device serial number and timestamp, and the constant pressure value, parallel channel number, timestamp, device serial number and hash value are encrypted by the RC2 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, and the letters e and f in the second-level encrypted data are swapped, and the letters g and h are swapped to obtain the third-level encrypted data. The third-level encrypted data is encrypted by the AES algorithm to obtain ciphertext data, and the linkage control instruction is generated based on the ciphertext data, and the linkage 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, RC2 algorithm, mapping rule, swapping e and f, swapping g and h, AES algorithm, TLS protocol) are taken before and after, which greatly improves the security of the transmission of linkage control instructions.

[0081] The linkage control instruction parsing module is specifically used for:

[0082] The intermediate computer receives the linkage control instruction in real time, parses the linkage control instruction to obtain ciphertext data, decrypts the ciphertext data by using the AES algorithm to obtain level-three encrypted data, swaps the letter e with the letter f, and swaps the letter g with the letter h in the level-three encrypted data to obtain level-two encrypted data, maps each character of the level-two encrypted data by using a preset mapping rule to obtain level-one encrypted data, and decrypts the level-one encrypted data by using the RC2 algorithm to obtain a constant voltage value, a parallel channel number, a timestamp, a device serial number, and a hash value;

[0083] 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 linkage control instruction.

[0084] The battery initial state adjustment module is specifically used for:

[0085] The intermediate computer sets a shared variable for identifying the linkage test channel and a linkage condition, wherein the shared variable is an array with a length of 256 bytes, that is, it supports the linkage of a maximum of 256 test channels, and the linkage condition is the initial capacity of the battery;

[0086] Based on the channel number and linkage conditions, the lower computer controls the corresponding test channel to adjust the initial state of the battery so that the capacity of the corresponding battery is the initial capacity, and feeds back a state adjustment completion response to the middle computer in real time.

[0087] In summary, the advantages of the present invention are:

[0088] 1. Obtain the channel number, target temperature, device serial number and timestamp through the host computer, perform hash calculation on the channel number, target temperature, device serial number and timestamp to obtain a hash value, encrypt the channel number, target temperature, device serial number, timestamp and hash value into ciphertext data, generate a linkage 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 linkage control instruction to obtain the channel number, target temperature, device serial number, timestamp and hash value, and verifies the linkage control instruction based on the device serial number, timestamp and hash value; then The intermediate computer sets a shared variable and sends the shared variable to the corresponding lower computer based on the channel number. The lower computer controls each test channel to adjust the initial state of the battery based on the shared variable. Finally, the intermediate computer completes the response based on the state adjustment feedback from the lower computer, and synchronously controls each incubator to perform a heating operation until the target temperature is reached. That is, before the incubators of each test channel heat up, the initial states of the batteries corresponding to each test channel are unified based on the set shared variable to ensure the consistency of the initial conditions, so as to achieve the synchronous heating of the incubators of each test channel to the set temperature, thereby greatly improving the battery test quality.

[0089] 2. The hash value is obtained by performing hash calculation on the channel number, target temperature, device serial number and timestamp, and the constant pressure value, parallel channel number, timestamp, device serial number and hash value are encrypted by the RC2 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, and the letters e and f in the second-level encrypted data are swapped, and the letters g and h are swapped to obtain the third-level encrypted data. The third-level encrypted data is encrypted by the AES algorithm to obtain ciphertext data, and the linkage control instructions are generated based on the ciphertext data, and the linkage control instructions are 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 have been taken before and after (hash calculation, RC2 algorithm, mapping rule, swapping e and f, swapping g and h, AES algorithm, TLS protocol), which greatly improves the security of the transmission of linkage control instructions.

[0090] 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 test channel linkage method for battery testing, characterized in that: The steps include: Step S1, the upper computer obtains the input channel number, target temperature and the device serial number of the corresponding lower computer; Step S2, the host computer obtains the current timestamp, performs hash calculation on the channel number, target temperature, device serial number and timestamp to obtain a hash value, encrypts the channel number, target temperature, device serial number, timestamp and hash value into ciphertext data, generates a linkage 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 linkage control instruction to obtain the channel number, target temperature, device serial number, timestamp and hash value, and verifies the linkage control instruction based on the device serial number, timestamp and hash value; Step S4, the intermediate computer sets a shared variable for identifying the linkage test channel and a linkage condition, wherein the shared variable is an array with a length of 256 bytes, and controls the lower computer to adjust the initial state of the battery in the corresponding test channel based on the channel number and the linkage condition; Step S5: The intermediate computer updates the status bit of the shared variable based on the test channel that meets the linkage condition. When the status bits corresponding to all the channel numbers are set, each temperature box is synchronously controlled to perform a temperature increase operation until the target temperature is reached.

2. A test channel linkage method for battery testing according to claim 1, characterized in that: The step S1 is specifically as follows: After the upper computer authenticates the identity through the visual interface, it obtains the input channel number, target temperature, and the device serial number of the corresponding lower computer through the visual interface; The channel number is the number of the test channel to be linked in the lower computer.

3. A test channel linkage method for battery testing according to claim 1, characterized in that: The step S2 is specifically as follows: The host computer obtains the current timestamp, performs hash calculation on the channel number, target temperature, device serial number and timestamp to obtain a hash value, encrypts the constant pressure value, parallel channel number, timestamp, device serial number and hash value through the RC2 algorithm to obtain primary encrypted data, maps each character of the primary encrypted data through a preset mapping rule to obtain secondary encrypted data, swaps the letter e with the letter f, and swaps the letter g with the letter h in the secondary encrypted data to obtain third-level encrypted data, encrypts the third-level encrypted data through the AES algorithm to obtain ciphertext data, generates a linkage control instruction based on the ciphertext data, and sends the linkage control instruction to the intermediate computer in real time through the TLS protocol.

4. A test channel linkage method for battery testing according to claim 1, characterized in that: The step S3 is specifically as follows: The intermediate computer receives the linkage control instruction in real time, parses the linkage control instruction to obtain ciphertext data, decrypts the ciphertext data by using the AES algorithm to obtain level-three encrypted data, swaps the letter e with the letter f, and swaps the letter g with the letter h in the level-three encrypted data to obtain level-two encrypted data, maps each character of the level-two encrypted data by using a preset mapping rule to obtain level-one encrypted data, and decrypts the level-one encrypted data by using the RC2 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 linkage control instruction.

5. A test channel linkage method for battery testing as claimed in claim 1, characterized in that: The step S4 is specifically as follows: The intermediate computer sets a shared variable for identifying a linkage test channel and a linkage condition, wherein the shared variable is an array with a length of 256 bytes, and the linkage condition is the initial capacity of the battery; Based on the channel number and linkage conditions, the lower computer controls the corresponding test channel to adjust the initial state of the battery so that the capacity of the corresponding battery is the initial capacity, and feeds back a state adjustment completion response to the middle computer in real time.

6. A test channel linkage system for battery testing, characterized in that: Includes the following modules: Parameter input module, used by the host computer to obtain the input channel number, target temperature and the device serial number of the corresponding lower computer; A linkage control instruction sending module is used for the host computer to obtain the current timestamp, perform hash calculation on the channel number, target temperature, device serial number and timestamp to obtain a hash value, encrypt the channel number, target temperature, device serial number, timestamp and hash value into ciphertext data, generate a linkage control instruction based on the ciphertext data and send it to the intermediate computer; The linkage control instruction parsing module is used for the intermediate computer to decrypt the ciphertext data carried by the linkage control instruction received, obtain the channel number, target temperature, device serial number, timestamp and hash value, and verify the linkage control instruction based on the device serial number, timestamp and hash value; The battery initial state adjustment module is used for the intermediate computer to set a shared variable for identifying the linkage test channel and a linkage condition, wherein the shared variable is an array with a length of 256 bytes, and the lower computer is controlled to adjust the initial state of the battery in the corresponding test channel based on the channel number and the linkage condition; The temperature rise operation module is used for the intermediate computer to update the status bit of the shared variable based on the test channel that meets the linkage condition. When the status bits corresponding to all the channel numbers are set, each temperature box is synchronously controlled to perform a temperature rise operation until the target temperature is reached.

7. A test channel linkage system for battery testing as claimed in claim 6, characterized in that: The parameter input module is specifically used for: After the upper computer authenticates the identity through the visual interface, it obtains the input channel number, target temperature, and the device serial number of the corresponding lower computer through the visual interface; The channel number is the number of the test channel to be linked in the lower computer.

8. A test channel linkage system for battery testing as claimed in claim 6, characterized in that: The linkage control instruction sending module is specifically used for: The host computer obtains the current timestamp, performs hash calculation on the channel number, target temperature, device serial number and timestamp to obtain a hash value, encrypts the constant pressure value, parallel channel number, timestamp, device serial number and hash value through the RC2 algorithm to obtain primary encrypted data, maps each character of the primary encrypted data through a preset mapping rule to obtain secondary encrypted data, swaps the letter e with the letter f, and swaps the letter g with the letter h in the secondary encrypted data to obtain third-level encrypted data, encrypts the third-level encrypted data through the AES algorithm to obtain ciphertext data, generates a linkage control instruction based on the ciphertext data, and sends the linkage control instruction to the intermediate computer in real time through the TLS protocol.

9. A test channel linkage system for battery testing as claimed in claim 6, characterized in that: The linkage control instruction parsing module is specifically used for: The intermediate computer receives the linkage control instruction in real time, parses the linkage control instruction to obtain ciphertext data, decrypts the ciphertext data by using the AES algorithm to obtain level-three encrypted data, swaps the letter e with the letter f, and swaps the letter g with the letter h in the level-three encrypted data to obtain level-two encrypted data, maps each character of the level-two encrypted data by using a preset mapping rule to obtain level-one encrypted data, and decrypts the level-one encrypted data by using the RC2 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 linkage control instruction.

10. A test channel linkage system for battery testing as claimed in claim 6, characterized in that: The battery initial state adjustment module is specifically used for: The intermediate computer sets a shared variable for identifying a linkage test channel and a linkage condition, wherein the shared variable is an array with a length of 256 bytes, and the linkage condition is the initial capacity of the battery; Based on the channel number and linkage conditions, the lower computer controls the corresponding test channel to adjust the initial state of the battery so that the capacity of the corresponding battery is the initial capacity, and feeds back a state adjustment completion response to the middle computer in real time.