Energy storage packet level detector automatic coding method and system

By adopting an automated encoding method in the energy storage system, using the collaborative work of the energy storage host, CAN communication isolator and packet-level detector, the problems of low coding efficiency and poor accuracy of packet-level detectors in the prior art are solved, and an efficient and accurate encoding process is achieved, reducing maintenance costs and time.

CN120017638APending Publication Date: 2025-05-16JIANGSU JINGXIAO SAFETY EQUIPMENT CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510106644.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-23
Publication Date
2025-05-16

AI Technical Summary

Technical Problem

The encoding method of package detectors in existing energy storage systems has the problem of long manual encoding time and prone to repeated or missed encoding, which increases maintenance costs and time.

Method used

The energy storage host, CAN communication isolator and packet-level detector are used to work together to achieve fast and accurate encoding of packet-level detectors through automated means, and the encoding address is determined using sampling resistors, and the uniqueness and accuracy of the address are ensured through automatic inspection and address verification mechanisms.

Benefits of technology

It greatly improves coding efficiency and accuracy, reduces maintenance costs and time, avoids communication failures caused by address conflicts or errors, and improves the stability and reliability of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120017638A_ABST
    Figure CN120017638A_ABST
Patent Text Reader

Abstract

The invention provides an automatic coding method and system for an energy storage packet level detector, and relates to the technical field of energy storage monitoring, the system comprises an energy storage host, the energy storage host is used for obtaining terminal input information and issuing a coding instruction according to the input information; the address of the CAN communication isolator is automatically inspected; at least one CAN communication isolator, wherein the CAN communication isolator is used for executing the first automatic coding and polling the address of the packet-level detector; at least one packet level detector; the packet level detector is used for executing second automatic coding; the control unit is used for determining the coded address of the CAN communication isolator or the packet level detector by using the sampling resistor; through an automatic mode, rapid and accurate coding of the packet-level detector is realized, so that the coding efficiency and accuracy are greatly improved, and the maintenance cost is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of energy storage monitoring technology, and in particular to an automatic encoding method and system for energy storage package-level detectors. Background Art

[0002] In the current internal layout of energy storage containers, the detection system is subdivided into three levels: cabin level, cluster level, and pack level. Each cabin contains multiple clusters, each cluster contains multiple battery packs, and each battery pack is equipped with a pack-level detector to monitor the environmental conditions inside the pack in real time, such as temperature, humidity, and whether there are abnormal conditions such as fire. In order to accurately distinguish different battery packs and quickly respond to emergencies such as fire, each pack-level detector is assigned a unique address code.

[0003] However, in the existing communication method, the energy storage host needs to communicate with the packet-level detector through a CAN communication isolator. Under this architecture, there are many inconveniences and challenges in the encoding method of the packet-level detector. Specifically, the installer needs to use an encoder tool to manually encode the packet-level detectors in sequence according to the expected arrangement order. This method not only consumes a lot of manual coding time, but also during the coding process, if duplicate codes or missing codes occur, a lot of time will be spent on troubleshooting and rework. In addition, when the packet-level detector needs to be repaired or replaced, the installer also needs to identify the address code corresponding to the original packet-level detector and re-encode it, which undoubtedly increases additional maintenance costs and time costs. Summary of the invention

[0004] Based on the above problems, the present application provides an automatic coding method and system for energy storage package-level detectors, aiming to achieve fast and accurate coding of package-level detectors in an automated manner, thereby greatly improving coding efficiency and accuracy and reducing maintenance costs.

[0005] The purpose of this application is achieved by the following technical solutions:

[0006] The present application also provides an energy storage package level detector automatic encoding system, the system comprising:

[0007] The energy storage host is used to obtain terminal input information, issue coding instructions according to the input information, and automatically inspect the address of the CAN communication isolator;

[0008] at least one CAN communication isolator, the CAN communication isolator being used to perform a first automatic encoding and inspection packet level detector address;

[0009] at least one packet level detector; the packet level detector is used to perform a second automatic encoding;

[0010] The control unit is used to determine the coding address of the CAN communication isolator or the packet level detector by using a sampling resistor.

[0011] The present application also provides an automatic encoding method for energy storage package level detectors, the method being implemented by any system described in the present application, the method comprising:

[0012] The energy storage host obtains the first input information of the terminal; sends the first coding range to the CAN communication isolator according to the first input information; the first input information includes the number of CAN communication isolators on the CAN bus loop and the CAN communication isolator coding instruction;

[0013] The CAN communication isolator performs automatic encoding according to the first encoding range, and the energy storage host inspects the CAN communication isolator and performs a first address check;

[0014] The energy storage host obtains the second input information of the terminal; according to the second input information, the second coding range instruction of the corresponding packet-level detector is sent to each CAN communication isolator; the second input information includes the number of packet-level detectors under the CAN communication isolator and the coding instruction of the packet detector;

[0015] The packet level detector performs automatic encoding according to the second encoding range instruction;

[0016] The CAN communication isolator automatically inspects the packet-level detector address, and determines whether the packet-level detector automatic encoding is successful based on the inspection result; if so, the CAN communication isolator returns the packet-level detector automatic encoding success instruction thereunder.

[0017] The beneficial effects of the present invention include: through the coordinated work of the energy storage host, CAN communication isolator and packet-level detector, the automatic coding maintenance of the packet-level detector in the entire energy storage system is realized, and there is no need for manual coding again after replacing the equipment, and no human intervention is required, which greatly improves the efficiency and accuracy of the coding. Through the automatic inspection and address verification mechanism, the accuracy and uniqueness of the CAN communication isolator and packet-level detector addresses are ensured; this avoids communication failures caused by address conflicts or errors, improves the stability and reliability of the system; and avoids rework caused by duplicate codes and missing codes. The system can monitor the operating status of the CAN communication isolator and packet-level detector in real time, and issue a warning signal when a potential fault is found; it helps technicians to find and handle faults in a timely manner, reducing the impact of faults on system operation; the system supports the adjustment of the number of CAN communication isolators and packet-level detectors, as well as their coding ranges according to actual needs. This enables the system to adapt to energy storage systems of different sizes and configurations, with high flexibility and scalability; through automatic coding and inspection functions, the system greatly simplifies maintenance work. Technicians do not need to manually set and check the address of each detector, which saves time and energy and reduces maintenance costs; the automatic encoding system ensures that each packet-level detector has a unique address, which helps to quickly locate and deal with faulty detectors in an emergency and improves the overall safety of the system. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 It is a schematic diagram of an automatic encoding system for energy storage package level detectors provided in an embodiment of the present application;

[0019] Figure 2 It is a schematic diagram of an automatic encoding method for an energy storage package-level detector provided in an embodiment of the present application;

[0020] Figure 3 It is a schematic diagram of an automatic encoding process of an energy storage package-level detector provided in an embodiment of the present application. DETAILED DESCRIPTION

[0021] Below, the present application is further described in conjunction with the accompanying drawings and specific implementation methods. It should be noted that, under the premise of no conflict, the various embodiments or technical features described below can be arbitrarily combined to form a new embodiment.

[0022] See attached Figure 1 , the present application provides an energy storage package level detector automatic encoding system, the system comprising:

[0023] The energy storage host is used to obtain terminal input information, issue coding instructions according to the input information, and automatically inspect the address of the CAN communication isolator;

[0024] at least one CAN communication isolator, the CAN communication isolator being used to perform a first automatic encoding and inspection packet level detector address;

[0025] at least one packet level detector; the packet level detector is used to perform a second automatic encoding;

[0026] The control unit is used to determine the coding address of the CAN communication isolator or the packet level detector by using a sampling resistor.

[0027] In some embodiments, the system comprises:

[0028] The energy storage host is connected to the CAN communication isolator via a CAN bus;

[0029] The CAN communication isolators are all connected to packet-level detectors;

[0030] The sampling resistor includes a first sampling resistor and a second sampling resistor;

[0031] The CAN communication isolator includes the first sampling resistor; the coding address of the CAN communication isolator is determined by using the first sampling resistor;

[0032] The packet-level detectors all include the second sampling resistor, and the encoding address of the packet-level detector is determined by using the second sampling resistor.

[0033] The working principle of the above technical solution is as follows: the system is mainly composed of an energy storage host, a CAN communication isolator, a packet-level detector and a control unit. The energy storage host is responsible for obtaining terminal input information and issuing coding instructions based on this information; the CAN communication isolator is responsible for executing the first automatic coding and inspecting the packet-level detector address; the packet-level detector executes the second automatic coding; and the control unit uses a sampling resistor to determine the coding address of the CAN communication isolator or the packet-level detector.

[0034] The energy storage host first obtains the information input by the terminal, which may include the number and type of devices that need to be encoded. Based on the information obtained, the energy storage host will generate and issue encoding instructions. At the same time, the energy storage host will automatically inspect the address of the CAN communication isolator to ensure smooth communication and normal operation of the equipment.

[0035] After the CAN communication isolator receives the encoding instruction sent by the energy storage host, it starts to execute the first automatic encoding.

[0036] During the encoding process, the CAN communication isolator will use the first sampling resistor contained in it to determine its own encoding address. This step ensures that each CAN communication isolator has a unique address for communication on the CAN bus. At the same time, the CAN communication isolator will also patrol the addresses of the packet-level detectors connected to it to ensure that all packet-level detectors are correctly connected and can be identified. After receiving the patrol signal from the CAN communication isolator, the packet-level detector starts to perform the second automatic encoding. During the encoding process, the packet-level detector will use the second sampling resistor contained in it to determine its own encoding address. This step ensures that each packet-level detector has a unique address for identification and positioning in the system.

[0037] The control unit plays a key role in the entire system. It uses sampling resistors (including the first sampling resistor and the second sampling resistor) to determine the coding address of the CAN communication isolator and the packet level detector. By measuring the voltage or current across the sampling resistor, the control unit can obtain information related to the coding address and encode and identify the device accordingly.

[0038] All devices (including energy storage host, CAN communication isolator and packet level detector) communicate and exchange data through CAN bus. CAN bus has the characteristics of high speed, reliability and strong anti-interference ability, ensuring the stability and accuracy of data communication in the system.

[0039] The effect of the above technical solution is: the energy storage host automatically issues coding instructions, and the CAN communication isolator and the packet-level detector perform automatic coding, which greatly reduces the time of manual coding. The automatic coding process is fast and accurate, avoiding the problem of duplicate or missing coding caused by manual coding, thereby reducing the time of troubleshooting and rework. When the packet-level detector needs to be repaired or replaced, since each detector has a unique automatically generated coding address, the installer no longer needs to manually identify and recode, reducing the complexity and cost of maintenance. The automatic coding system ensures the consistency of coding, making the maintenance process more efficient and reliable. The automatic coding system ensures accurate communication between the energy storage host and the packet-level detector through precise coding and address allocation, improving the overall reliability of the system. The automatic inspection function can detect and solve communication failures in a timely manner, further enhancing the stability and safety of the system. The installer does not need to carry additional encoder tools, nor does he need to manually encode according to the expected arrangement order, which simplifies the installation process and improves work efficiency. The automatic coding system makes the installation process more standardized and streamlined, reducing the risk of human error. The automatic coding system can adapt to energy storage containers of different sizes and configurations, without the need to redesign the coding scheme due to the increase or decrease in the number of equipment. The energy storage host can dynamically adjust the coding instructions according to actual needs, making the system more flexible and scalable.

[0040] The energy storage package level detector automatic coding system of the present application realizes automatic coding and identification of energy storage package level detectors through the coordinated work of energy storage host, CAN communication isolator, package level detector and control unit. The system has the characteristics of high efficiency, accuracy and reliability, and can be widely used in the field of fire monitoring and detection of energy storage systems.

[0041] The present application provides an automatic encoding method for energy storage package level detectors, which is implemented by any system described in any embodiment of the present application, and the method includes:

[0042] The energy storage host obtains the first input information of the terminal; sends the first coding range to the CAN communication isolator according to the first input information; the first input information includes the number of CAN communication isolators on the CAN bus loop and the CAN communication isolator coding instruction;

[0043] The CAN communication isolator performs automatic encoding according to the first encoding range, and the energy storage host inspects the CAN communication isolator and performs a first address check;

[0044] The energy storage host obtains the second input information of the terminal; according to the second input information, the second coding range instruction of the corresponding packet-level detector is sent to each CAN communication isolator; the second input information includes the number of packet-level detectors under the CAN communication isolator and the coding instruction of the packet detector;

[0045] The packet level detector performs automatic encoding according to the second encoding range instruction;

[0046] The CAN communication isolator automatically inspects the packet-level detector address, and determines whether the packet-level detector automatic encoding is successful based on the inspection result; if so, the CAN communication isolator returns the packet-level detector automatic encoding success instruction thereunder.

[0047] The working principle of the above technical solution is:

[0048] The energy storage host first receives the first input information from the terminal; this information usually includes the number of CAN communication isolators on the CAN bus loop and the coding instructions for these isolators; based on this information, the energy storage host will calculate the coding range and send this range to each CAN communication isolator; this coding range ensures that each CAN communication isolator has a unique address on the CAN bus.

[0049] After receiving the coding range, the CAN communication isolator will automatically encode according to this range. At the same time, the energy storage host will inspect the CAN communication isolators to ensure that each isolator has been correctly encoded; this step usually includes reading the address of each isolator and checking it with the preset coding range, that is, performing the first address check.

[0050] After confirming that the CAN communication isolators have been correctly encoded, the energy storage host receives the second input information from the terminal; this information usually includes the number of packet-level detectors connected to each CAN communication isolator and the encoding instructions for these detectors; based on this information, the energy storage host will calculate the second encoding range of the packet-level detectors under each CAN communication isolator, and send this range as an instruction to the corresponding CAN communication isolator.

[0051] After receiving the second coding range command, the CAN communication isolator will forward it to all packet-level detectors under it.

[0052] Packet-level probes are automatically encoded based on the encoding range instructions they receive, ensuring that each probe has a unique address in the system.

[0053] The CAN communication isolator will automatically inspect all packet-level detector addresses under it to ensure that each detector has been correctly encoded. If the inspection results show that all packet-level detectors have been correctly encoded, the CAN communication isolator will return a success command to the energy storage host, indicating that the automatic encoding of the packet-level detectors under it has been successfully completed.

[0054] The energy storage host receives and processes successful commands from the CAN communication isolator, updates the system status, and may provide feedback to the terminal to indicate that the entire automatic encoding process has been successfully completed.

[0055] Through the above steps, the energy storage packet-level detector automatic encoding method provided in the present application realizes the fast, accurate and automatic encoding of the packet-level detectors in the energy storage system, greatly improving the reliability and efficiency of the system.

[0056] The effect of the above technical solution is: through the coordinated work of the energy storage host, CAN communication isolator and packet-level detector, the encoding process is automated, which greatly reduces the time and effort required for manual encoding, while improving the accuracy of encoding and avoiding encoding conflicts or omissions caused by human errors.

[0057] The user only needs to input relevant information through the terminal, such as the number of CAN communication isolators and packet-level detectors and encoding instructions, and the system can automatically complete the encoding work, which greatly simplifies the operation process and reduces the difficulty of operation, so that non-professionals can easily complete the encoding task; the automatic encoding method ensures that each CAN communication isolator and packet-level detector has a unique address in the system, thereby avoiding communication conflicts and address confusion. This enhances the reliability and stability of the system and improves the overall performance of the system. Since the encoding process is automated, the system maintenance cost caused by encoding errors is reduced. At the same time, when it is necessary to add, delete or replace packet-level detectors, the system can automatically update the encoding information without tedious manual operations, further reducing maintenance costs.

[0058] In some embodiments, the CAN communication isolator performs automatic encoding according to the first encoding range, and the energy storage host inspects the CAN communication isolator and performs a first address check, including:

[0059] The CAN communication isolator collects its own physical coding address signal and automatically confirms its own unique primary coding address;

[0060] The energy storage host automatically inspects the primary coding address of the CAN communication isolator at a first preset time interval, and performs a first address check, and determines whether the automatic coding of the CAN communication isolator is successful according to the first address check result; the first address check includes: address response check, address matching check and address quantity check;

[0061] If not, perform fault detection, such as checking whether the voltage of the first and last power supplies is 3.3V and whether the CAN bus communication is normal.

[0062] The working principle of the above technical solution is:

[0063] After receiving the coding range sent by the energy storage host, the CAN communication isolator first collects its own physical coding address signal; this physical coding address is usually pre-set inside the device and is used to identify the uniqueness of the device on the CAN bus.

[0064] According to the collected physical coding address signal, the CAN communication isolator automatically confirms its own primary coding address. This primary coding address is a unique value within the coding range and is used to uniquely identify the CAN communication isolator in the energy storage system.

[0065] After confirming that the CAN communication isolator has started automatic encoding, the energy storage host automatically inspects the primary encoding address of the CAN communication isolator at a preset first time interval; this inspection process is achieved by sending inspection instructions and receiving responses from the CAN communication isolator. During the inspection process, the energy storage host performs the first address check, including address response check, address matching check, and address quantity check.

[0066] Address response check: Check whether the CAN communication isolator responds to the inspection command within the specified time.

[0067] Address matching check: Match the address in the CAN communication isolator response with the preset coding range to ensure that the address is within the range and unique.

[0068] Address quantity check: Check whether the number of CAN communication isolators that respond is consistent with the preset number to ensure that there are no missing or redundant devices.

[0069] If the energy storage host confirms in the first address check that the automatic encoding of all CAN communication isolators is successful (ie, the address response check, address matching check and address quantity check are all passed), the automatic encoding process of the CAN communication isolators is considered to be completed.

[0070] If any problem is found in the first address check (for example, a CAN communication isolator does not respond, the address does not match, or the number does not match), the energy storage host will perform fault detection. Fault detection may include checking whether the first and last power supply voltages are 3.3V (or other preset values) to ensure that the power supply of the CAN communication isolator is normal; at the same time, it will also check whether the CAN bus communication is normal to eliminate the possibility of communication failure.

[0071] Once a fault is detected, the energy storage host will take appropriate measures based on the type and severity of the fault. This may include resending coding instructions, restarting the CAN communication isolator, repairing the communication line, or replacing the faulty equipment.

[0072] After the fault is resolved, the energy storage host will re-execute the inspection and verification process to ensure that all CAN communication isolators have been correctly encoded and can communicate normally.

[0073] Through the above working principle, the energy storage package level detector automatic encoding method provided by this application not only realizes the automatic encoding of the CAN communication isolator and the inspection and verification of the energy storage host, but also ensures the reliability and accuracy of the encoding process through the fault detection mechanism. This provides users with a more stable and reliable energy storage system management experience.

[0074] The effect of the above technical solution is as follows: the CAN communication isolator realizes the automation of the encoding process by collecting its own physical coding address signal and automatically confirming the first-level coding address, reducing manual intervention and thus improving the encoding efficiency. The energy storage host automatically inspects the first-level coding address of the CAN communication isolator at a preset time interval, and performs address response verification, address matching verification and address quantity verification to ensure the accuracy of the encoding. This comprehensive verification mechanism helps to promptly discover and correct coding errors and avoid subsequent communication problems. The first address verification mechanism includes address response verification, which helps to detect whether the CAN communication isolator is online and working properly. If a CAN communication isolator does not respond to the inspection instruction, the system can immediately perform fault detection to quickly locate and solve the problem and enhance the reliability of the system. Address matching verification and address quantity verification further ensure the uniqueness and integrity of the CAN communication isolator encoding, avoid communication conflicts and address confusion problems, and improve the overall stability of the system. Through the automated coding and inspection and verification process, the need for human intervention and manual operation is reduced, thereby reducing maintenance costs caused by human errors; the fault detection mechanism can detect and warn before or in the early stages of a problem, which helps to eliminate faults in a timely manner and avoid greater losses and maintenance costs caused by the expansion of faults.

[0075] In some embodiments, the CAN communication isolator collects its own physical coding address signal and automatically confirms its own unique primary coding address; including:

[0076] Parse the CAN communication isolator coding instructions and extract the primary coding address range of the CAN communication isolator;

[0077] The current voltage value is collected through the sampling resistor (first sampling resistor) end of the CAN communication isolator;

[0078] According to the address range and the power supply voltage, the average voltage value across the sampling resistor is calculated;

[0079] Using the collected voltage value and average voltage value, calculate the corresponding address code of the CAN communication isolator;

[0080] The corresponding address code of the CAN communication isolator is:

[0081] ADDR=N+((AD+B / 2) / B)-1

[0082] B=Z ADC / ((MN)+1)

[0083] Among them, ADDR is the corresponding address code of the CAN communication isolator, N is the minimum address, and M is the maximum address; AD is the current CAN communication isolator collected voltage value; B is the average voltage value across each resistor; ZADC is the resolution of the ADC converter;

[0084] The generated address code is stored in the internal Flash of the CAN communication isolator.

[0085] The working principle of the above technical solution is:

[0086] The CAN communication isolator first receives and parses the coding instruction from the energy storage host. This instruction contains the primary coding address range (for example, N to M) allocated for the CAN communication isolator.

[0087] The CAN communication isolator collects the current voltage value through its internal sampling resistor. This voltage value is obtained by dividing the power supply voltage through a series of resistors. In this scenario, the power supply voltage is known (for example, 3.3V), and the resistor divider network is composed of the sampling resistors inside the CAN communication isolator.

[0088] According to the primary coding address range and power supply voltage, the CAN communication isolator can calculate the average voltage value that should exist across each sampling resistor under ideal conditions. This calculation is based on Ohm's law and the series voltage division rule. Since the number of CAN communication isolators is known (for example, A), and the address range is also known (N to M), the average voltage value B across each resistor can be calculated.

[0089] Using the collected voltage value (AD, obtained through the ADC converter) and the calculated average voltage value (B), the CAN communication isolator can determine its current position (that is, which CAN communication isolator it is); this is achieved by comparing the collected voltage value AD with the average voltage value B; specifically, the collected voltage value AD can be converted into a digital quantity through the ADC converter, and then the address code ADDR of the current CAN communication isolator is calculated based on this digital quantity and the average voltage value B.

[0090] Finally, the CAN communication isolator stores the calculated address code ADDR in its internal Flash memory. This address code is the unique identifier of the CAN communication isolator and is used for identity authentication and data exchange with the energy storage host in the subsequent communication process.

[0091] Specific calculation process:

[0092] The voltage at the sampling resistor end of the CAN communication isolator is calculated by the known power supply voltage (3.3V) and the number of series resistors (i.e., the sampling resistor in the CAN communication isolator circuit) through the ADC converter to obtain the current position of the CAN communication isolator, and then the address code is converted according to the corresponding address range;

[0093] First, calculate the average voltage value B across each resistor; since the resolution of the ADC converter is known (for example, 4095 corresponds to the full-scale voltage), the average voltage value B can be calculated by dividing the full-scale voltage by the total number of resistors in the resistor divider network (that is, (MN) + 1, because the address range is from N to M).

[0094] Then, the collected voltage value AD and the average voltage value B are used to calculate the address code ADDR of the current CAN communication isolator. Since the collected voltage value AD may have a certain error, an offset (for example, B / 2) is usually added in the actual calculation to ensure the accuracy of the calculation. Finally, the calculation result is converted into the address code ADDR and stored in the Flash memory.

[0095] Through the above steps, the CAN communication isolator can automatically confirm its own unique primary coding address, providing a reliable basis for identity authentication and data exchange for the subsequent communication process. By accurately calculating the average voltage value B across each resistor and using the high-resolution acquisition voltage value AD of the ADC converter, this technical solution can accurately calculate the address code of the CAN communication isolator. This high-precision calculation ensures that each CAN communication isolator can obtain a unique and accurate address, thereby improving the reliability and stability of the system. Since this technical solution supports any number of CAN communication isolators and the address range (N~M) can be adjusted as needed, it has high flexibility and scalability. This means that the system can easily adapt to different application scenarios and scales without major modifications to hardware or software.

[0096] In some embodiments, the energy storage host automatically inspects the address of the CAN communication isolator at a preset time interval and performs a first address check; and determines whether the automatic encoding of the CAN communication isolator is successful according to the first address check result; including:

[0097] The energy storage host automatically inspects the primary coding address of the CAN communication isolator from the starting address to the ending address after the first preset time interval; if each address has a response, the automatic coding of the CAN communication isolator is successful.

[0098] The working principle and effect of the above technical solution are as follows: a first preset time interval (eg 1s) is set inside the energy storage host, and this time interval is used to ensure that the CAN communication isolator has enough time to complete the automatic encoding process.

[0099] When the time interval is reached, the energy storage host starts the automatic inspection function, starting from the preset starting address and inspecting one by one to the ending address.

[0100] The energy storage host sends an inspection request to each CAN communication isolator in the order of addresses.

[0101] After receiving the inspection request, the CAN communication isolator will respond according to its own automatically encoded address.

[0102] The energy storage host receives and records the response from each CAN communication isolator.

[0103] The energy storage host checks the received response with the preset address range, that is, performs a first address check.

[0104] If each address receives a correct response within the preset address range, it means that each CAN communication isolator has been successfully automatically encoded and the address is correctly assigned. At this time, the energy storage host determines that the CAN communication isolator has been automatically encoded successfully and can carry out subsequent communication and data exchange.

[0105] Through the preset time interval and automatic inspection function, the CAN communication isolator address is automatically checked and the coding success judgment is realized without manual intervention. The inspection process is fast and accurate, and can promptly discover and handle problems such as address allocation errors or communication failures. Through automatic inspection and address verification, the correctness and effectiveness of the CAN communication isolator address are ensured, thereby enhancing the stability and reliability of the entire system.

[0106] In summary, the energy storage host in this embodiment automatically inspects the CAN communication isolator address at preset time intervals and performs the first address check, thereby realizing the successful judgment of the CAN communication isolator automatic encoding and providing reliable guarantee for subsequent communication and data exchange.

[0107] In some embodiments, the first preset time interval is:

[0108]

[0109] Among them, T i is the first preset time interval required for the i-th inspection, N max is the maximum network congestion index; N C is the current network congestion index (the network congestion index ranges from 0 to 10, the larger the network congestion index, the smoother the network), N y is the preset network congestion index; P i-1 is the ratio of the number of CAN communication isolators without response to the total number during the i-1th inspection; P y is the first ratio threshold; T ct1 is the reference first preset time, k1 is an adjustment coefficient, 1 < k1 < 3; w1 and w2 are weight coefficients; Sc is the number of CAN communication isolators in the current coding range; Sy is the number of reference CAN communication isolators, a1 is a constant, 0.4 < a1 < 0.6; b1 is a constant, 2 < b1 < 3.

[0110] In some embodiments, the energy storage host automatically inspects the addresses of CAN communication isolators at preset time intervals and performs the first address verification; determines whether the automatic coding of the CAN communication isolators is successful according to the result of the first address verification; includes:

[0111] The ratio of the number of non-responsive CAN communication isolators to the total number is less than or equal to the ratio threshold; then a first warning is given;

[0112] The ratio of the number of non-responsive CAN communication isolators to the total number is greater than the ratio threshold; then a second warning is given;

[0113] Perform fault troubleshooting and repair according to the warning result.

[0114] The working principle of the above technical solution is: the energy storage host calculates the ratio of the number of non-responsive CAN communication isolators to the total number.

[0115] If this ratio is less than or equal to the preset ratio threshold, then the first warning will be triggered, indicating that there may be some CAN communication isolators working abnormally, but the overall situation is still controllable.

[0116] If this ratio is greater than the preset ratio threshold, then the second warning will be triggered, indicating that the working abnormality of the CAN communication isolators is relatively serious and immediate fault troubleshooting and repair are required.

[0117] After the warning is triggered, the energy storage host will start the corresponding fault troubleshooting process according to the level and specific situation of the warning. During the troubleshooting process, the power supply, connection status, configuration parameters, etc. of the CAN communication isolators will be checked to determine the specific cause of the fault. According to the troubleshooting result, corresponding repair measures will be taken, such as replacing the faulty CAN communication isolator, adjusting the configuration parameters, optimizing the network status, etc.

[0118] The energy storage host will calculate the time interval required for the next inspection based on the current network congestion index, historical inspection situation, etc. This time interval is dynamically adjusted to ensure the stability of the system while improving the efficiency and accuracy of the inspection as much as possible. The f(Sc,Sy) function in the formula allows for further adjustment according to the number of CAN communication isolators in the coding range, increasing the scalability and adaptability of the system.

[0119] If the current network is smoother than the preset, the difference is smaller and the time interval is reduced; otherwise, the time interval is increased. If the previous inspection had a high no-response ratio, the difference is positive and the time interval is increased to give the system more time to recover or adjust; otherwise, the time interval is reduced. By dynamically adjusting the inspection time interval, it can be ensured that in the case of network congestion or poor device response, the system has enough time to wait for the device to respond, thereby avoiding omissions and misjudgments during the inspection process. At the same time, when the network is smooth and the device responds well, the system can complete the inspection task faster and improve the inspection efficiency.

[0120] The first preset time interval formula comprehensively considers the network congestion situation and the result of the previous inspection. By dynamically adjusting the inspection time interval, it not only ensures the adaptability and flexibility of the system, but also improves the inspection efficiency and stability.

[0121] In some embodiments, the energy storage host obtains the second input information of the terminal; sends the second coding range instruction of the corresponding packet-level detector to each CAN communication isolator according to the second input information; including:

[0122] After the CAN communication isolator is automatically addressed successfully, the energy storage host obtains the number of corresponding packet-level detectors under each CAN communication isolator, and sends the second coding range of the corresponding packet-level detector to each CAN communication isolator;

[0123] After receiving the instruction, the CAN communication isolator sends the packet level detector automatic encoding address range to the next level packet level detector.

[0124] The working principle and effect of the above technical solution are as follows: the energy storage host receives the second input information from the user or the system, which is obtained through the human-computer interaction interface terminal. The second input information includes the user's specific requirements for packet-level detector addressing, such as coding range, quantity, etc.

[0125] According to the second input information, the energy storage host sends the second coding range instruction of the corresponding packet-level detector to each CAN communication isolator. These instructions contain the coding range that the energy storage host wants the CAN communication isolator to allocate to its packet-level detector. After receiving the coding range instruction from the energy storage host, the CAN communication isolator will perform the automatic addressing process.

[0126] The automatic addressing process may involve internal logic judgment, address allocation algorithm, etc. to ensure that each CAN communication isolator can obtain a unique address. After the CAN communication isolator is automatically addressed successfully, the energy storage host will obtain the corresponding number of packet-level detectors under each CAN communication isolator.

[0127] This step is usually achieved through feedback information sent by the CAN communication isolator to the energy storage host. According to the number of packet-level detectors obtained, the energy storage host will send the corresponding second coding range confirmation instructions of the packet-level detector to each CAN communication isolator. These instructions contain the second coding range of the packet-level detector under each CAN communication isolator finally determined by the energy storage host.

[0128] The CAN communication isolator sends the address range to the packet level detector:

[0129] After receiving the coding range confirmation command from the energy storage host, the CAN communication isolator will send the packet-level detector automatic coding address range to the next-level packet-level detector.

[0130] After receiving the address range, the packet-level probe will automatically encode it according to the range to ensure that each packet-level probe can obtain a unique address.

[0131] Through the above process, the energy storage system realizes automatic addressing and address range allocation for packet-level detectors. This function not only improves the automation level of the system, but also ensures the uniqueness and identifiability of each device in the system, providing a reliable foundation for subsequent communication and data collection. At the same time, this process also reflects the core role of the energy storage host in the system. As the center of control and coordination, it is responsible for key tasks such as receiving user input, sending instructions, receiving feedback information, and making decisions.

[0132] In some embodiments, the packet-level detector performs automatic encoding according to the second encoding range instruction; comprising:

[0133] The packet level detector program parses the address range in the second encoding range instruction;

[0134] According to the voltage value collected by the sampling resistor end of the packet-level detector, a unique secondary address code of the corresponding packet-level detector is obtained.

[0135] The working principle and effect of the above technical solution are:

[0136] The packet level detector first receives the code range command from the CAN communication isolator.

[0137] This instruction contains the address range information allocated for the packet-level detector. The program inside the packet-level detector will parse the instruction and extract the specific values ​​of the address range. These values ​​will be used for subsequent address code conversion and allocation.

[0138] The packet level detector collects the voltage value in the circuit through its sampling resistor. This voltage value reflects the current position information of the packet level detector in the CAN communication network.

[0139] According to the voltage value collected at the sampling resistor (second sampling resistor), the unique secondary address code of the corresponding packet-level detector is obtained. The conversion method is the same as the automatic encoding of the CAN communication isolator.

[0140] By parsing the coding range command and combining it with voltage value conversion, each packet-level detector can obtain a unique secondary address code, thus avoiding communication problems caused by address conflicts. The uniqueness of the address ensures the accuracy and reliability of data transmission in the CAN network and improves the overall stability of the system.

[0141] In some embodiments, the CAN communication isolator automatically inspects the packet level detector address, and determines whether the automatic inspection packet level detector automatic encoding is successful according to the inspection result; including:

[0142] The CAN communication isolator automatically inspects the secondary addresses of the packet-level detector from the start address to the end address after the second preset time interval; if each address has a response within the third preset time, the automatic encoding of the packet-level detector is successful.

[0143] The working principle of the above technical solution is: when the system is started or reconfigured, the energy storage host (or the relevant central control unit) will set a second preset time interval, which is used to ensure that all packet-level detectors have completed the power-on and initialization process and are ready for communication. At the same time, the energy storage host will also set the start address and end address of the inspection, which define the range of packet-level detectors that need to be inspected.

[0144] When the second preset time interval ends, the CAN communication isolator starts to automatically inspect the secondary addresses of the packet-level detector from the starting address to the ending address. During the inspection process, the CAN communication isolator will send inspection requests (or query signals) to each address in turn. After receiving the inspection request, each packet-level detector will make a judgment based on its configured secondary address. If the address of the inspection request matches its own secondary address, the packet-level detector will send a response to the energy storage host.

[0145] After sending the inspection request, the CAN communication isolator will wait for a period of time to receive the response from the packet-level detector.

[0146] If within the third preset time (set waiting time), the CAN communication isolator receives a response from each address, and these responses are correct and valid, then it can be determined that the automatic encoding of the packet-level detector is successful. This is because if each address has a response, it means that each packet-level detector has correctly configured its secondary address and can communicate normally with the energy storage host.

[0147] If during the inspection process, the CAN communication isolator does not receive a response from a certain address, or the received response is incorrect or invalid, then it can be determined that the automatic encoding of the packet-level detector at that address may fail. At this time, the energy storage host can issue an error prompt or an alarm signal so that the maintenance personnel can discover the problem in time and handle it.

[0148] Meanwhile, the energy storage host can also record the error information for subsequent analysis and troubleshooting.

[0149] In summary, the working principle of the CAN communication isolator automatically inspecting the addresses of the packet-level detectors is based on the preset inspection range and inspection requests. By sequentially sending inspection requests to each address and receiving response responses, it can be determined whether the automatic encoding of the packet-level detector is successful. This process helps to improve the automation level and reliability of the system, and reduce the maintenance cost and workload.

[0150] In some embodiments, the second preset time interval is obtained by the following formula:

[0151]

[0152] where T 2i is the second preset time interval for the i-th inspection; T 1i is the first preset time interval for the i-th inspection; B i-1 is the ratio of the number of non-responses of the packet-level detector to the total number during the (i - 1)-th inspection; B y is the second ratio threshold; k2 is an adjustment coefficient, 1 < k2 < 3; Dc is the number of packet-level detectors in the current encoding range; Dy is the number of reference CAN packet-level detectors; a2 is a constant, 0.4 < a2 < 0.6; b2 is a constant, 2 < b2 < 3.

[0153] The working principle and effects of the above technical solution are as follows: Based on the first preset time interval and considering the non-response situation of the packet-level detector during the previous inspection, a second preset time interval is set. When the number of non-responses of the packet-level detector is relatively large during the previous inspection, the inspection time interval is appropriately increased to reduce the inspection failure caused by device response delay. By considering the result of the previous inspection in the second preset time interval, the accuracy and success rate of the inspection can be further improved. The f(Dc, Dy) function in the formula allows further adjustment according to the number of packet-level detectors within the coding range, increasing the scalability and adaptability of the system. This method of dynamically adjusting the time interval helps to adapt to different device states and network environments, improving the stability and reliability of the entire system. By associating the second preset time with the first preset time, time and network resources can be utilized more effectively. On the basis of the stable operation of the CAN communication isolator, the coding and inspection of the packet-level detector are carried out, which can avoid repeated inspections and resource waste caused by device failures or network problems.

[0154] In some embodiments, the third preset time is obtained by the following formula:

[0155]

[0156] where, T 3y is the third preset time, N max is the maximum network congestion index; N C is the current network congestion index (the range of the network congestion index is 0 - 10, and the larger the network congestion index, the smoother the network), N y is the preset network congestion index; T a is the average value of the response time of the packet-level detector in all successful inspection times during the statistical period; where, a successful inspection means that all CAN communication isolators have successfully returned the automatic coding success instruction of the packet-level detector under them; C1 is the number of successful inspections during the statistical period, C z is the total number of inspections during the statistical period; C2 is the number of times that the ratio of the number of non-responses of the packet-level detector to the total number is less than or equal to the second ratio threshold during the statistical period; w3 and w4 are weight coefficients; Dc is the number of packet-level detectors in the current coding range; Dy is the number of reference CAN packet-level detectors; a2 is a constant, 0.4 < a2 < 0.6; b2 is a constant, 2 < b2 < 3.

[0157] The working principle of the above technical solution is: In the formula, by calculating the difference between the current network congestion index and the preset network congestion index and normalizing it by dividing by the maximum network congestion index, a coefficient reflecting the change in network smoothness can be obtained.

[0158] T ais the average response time of packet-level detectors in all successful inspections during the statistical period; this average reflects the time required for packet-level detectors to respond to inspection requests under normal circumstances; T a As the reference time, it can be adjusted according to other factors to obtain a more reasonable third preset time.

[0159] The impact of inspection success rate and no response on the third preset time is partially considered. z is the total number of inspections in the statistical cycle, C1 is the number of successful inspections, and C2 is the number of times the ratio of the number of packet-level detectors without responses to the total number is less than or equal to the second ratio threshold; by calculating the ratio of the number of successful inspections and the number of inspections close to success (with a low ratio of no responses) to the total number of inspections, a coefficient reflecting the inspection success rate and no response situation can be obtained. The smaller this coefficient is, the more problems are encountered during the inspection process, and it may take longer to wait for the response of the packet-level detector.

[0160] The weight coefficient is used to adjust the influence of network congestion and inspection success rate / no response on the third preset time. These weight coefficients can be adjusted according to actual conditions to balance the influence of different factors on the inspection time.

[0161] The above formula takes into account the impact of network congestion and inspection success rate / no response on the inspection time, making the third preset time more reasonable. When the network is unobstructed and the inspection success rate is high, the third preset time can be shortened to improve the inspection efficiency. By dynamically adjusting the third preset time, it can adapt to changes in different network environments and inspection situations. In the case of network congestion or a low inspection success rate, appropriately extending the third preset time can reduce inspection failures caused by no response from the device or network delays and enhance the stability of the system. A reasonable third preset time can reduce the time users spend waiting for inspection results and improve the efficiency of the system. At the same time, by considering factors such as network congestion and inspection success rate, the inspection process can be made more intelligent and automated, further improving the user experience. The f(Dc, Dy) function in the formula allows further adjustment based on the number of packet-level detectors within the coding range, increasing the scalability and adaptability of the system.

[0162] In some embodiments, the method further comprises:

[0163] The energy storage host receives and judges the return instructions of all CAN communication isolators;

[0164] If all CAN communication isolators successfully return the automatic encoding success command of the packet-level detector under them, and the energy storage host can correctly receive and verify the validity of the returned command, the automatic encoding completion interface of the entire system will be displayed;

[0165] If any CAN communication isolator fails to successfully return the packet level detector automatic encoding success instruction; or,

[0166] If the energy storage host fails to correctly receive and verify the validity of the return command of any CAN communication isolator, fault detection is performed.

[0167] The working principle of the above technical solution is as follows: First, according to the above method steps, the energy storage host obtains the first input information of the terminal, sends the coding range to the CAN communication isolator, the CAN communication isolator performs automatic coding according to the coding range, and the energy storage host performs the first address check. Next, the energy storage host obtains the second input information of the terminal, sends the second coding range instruction of the packet-level detector to each CAN communication isolator, and the packet-level detector performs automatic coding according to the instruction. The CAN communication isolator then automatically inspects the packet-level detector address under it, determines whether the coding is successful, and returns the coding success instruction to the energy storage host.

[0168] The energy storage host receives return instructions from all CAN communication isolators. These instructions are sent by the CAN communication isolators after successfully completing the automatic encoding of their lower packet level detectors; the energy storage host verifies the validity of the received return instructions. This usually includes checking the format, content, and identity of the sender of the instructions to ensure the authenticity and integrity of the instructions.

[0169] If the energy storage host can correctly receive and verify the validity of the return instructions of all CAN communication isolators, and all CAN communication isolators successfully return the automatic encoding success instructions of the packet-level detectors under them, the system considers that the entire automatic encoding process has been completed. At this time, the energy storage host will display the automatic encoding completion interface of the entire system and report the encoding results to the user.

[0170] If any CAN communication isolator fails to successfully return the packet level detector automatic encoding success command under it, or the energy storage host fails to correctly receive and verify the validity of the return command of any CAN communication isolator (for example, communication failure, command format error or content mismatch, etc.), the system considers that there is a fault. At this time, the energy storage host will start the fault detection program to check and diagnose possible fault points.

[0171] Once a fault is detected, the system will take appropriate action based on the type and severity of the fault. This may include resending coded instructions, restarting the CAN communication isolator or packet-level detector, repairing the communication line, or replacing the faulty device.

[0172] After the failure is resolved, the system will re-execute the automatic encoding process to ensure that all devices have been correctly encoded and can communicate normally.

[0173] Through the above working principle, the energy storage package-level detector automatic encoding method provided by this application not only realizes the automation and efficiency of the encoding process, but also ensures the reliability and accuracy of the entire encoding process through the mechanisms of receiving and judging the return instructions, displaying the system status and detecting faults, etc. This provides users with a more convenient and reliable energy storage system management experience.

[0174] In some embodiments, the method further comprises:

[0175] The energy storage host receives and judges the return instructions of all CAN communication isolators;

[0176] If the proportion of packet-level detectors that have not been successfully returned to the communication isolator that successfully instructs the automatic encoding is less than or equal to the first threshold, and the proportion of packet-level detectors that have not been returned is less than or equal to the second threshold, then a third warning is issued;

[0177] If the proportion of packet-level detectors that have not been successfully returned to the communication isolator that has successfully encoded the packet-level detectors below it is less than or equal to the first threshold, but the proportion of packet-level detectors that have not been returned is greater than the second threshold; a fourth warning is issued;

[0178] If the number of packet-level detectors that fail to return automatically and successfully instruct the communication isolator to be greater than the first threshold, but the proportion of packet-level detectors that fail to return is less than or equal to the second threshold, then a fifth warning is issued;

[0179] If the number of packet-level detectors that fail to return successfully and automatically encode the communication isolator successfully is greater than the first threshold, and the proportion of packet-level detectors that fail to return is greater than the second threshold, a sixth warning is issued.

[0180] The working principle and effect of the above technical solution are as follows: the energy storage host first receives return instructions from all CAN communication isolators and determines the validity of these instructions.

[0181] Next, the energy storage host counts the number of communication isolators that fail to successfully return the packet-level detector automatic encoding success instruction (denoted as X) and the number of packet-level detectors that fail to return under these communication isolators (denoted as Y).

[0182] Calculate the ratio of communication isolators that fail to return commands successfully (X / total number of communication isolators), and record it as ratio 1.

[0183] Calculate the ratio of unreturned packet-level probes to all packet-level probes (Y / total number of packet-level probes), recorded as ratio2.

[0184] Third warning: If ratio 1 is less than or equal to the first threshold, and ratio 2 is also less than or equal to the second threshold, it indicates that the overall system is performing well, but there are still a few communication isolators or packet-level detectors with problems. At this time, the third warning is triggered, prompting relevant personnel to pay attention and possibly conduct further inspections.

[0185] Fourth warning: If ratio 1 is less than or equal to the first threshold, but ratio 2 is greater than the second threshold, it means that although the problem with the communication isolator is not serious, there are relatively more problems with the packet-level detector. At this time, the fourth warning is triggered, indicating that the status of the packet-level detector needs to be paid special attention.

[0186] Fifth warning: If ratio 1 is greater than the first threshold, but ratio 2 is less than or equal to the second threshold, it indicates that the communication isolator has a more serious problem, while the packet-level detector has a relatively minor problem. At this time, the fifth warning is triggered, indicating that the communication isolator problem needs to be solved first.

[0187] Sixth warning: If both ratio 1 and ratio 2 are greater than their respective thresholds, it indicates that there is a serious problem in the system, involving both the communication isolator and the packet-level detector. At this time, the sixth warning is triggered, indicating that immediate measures need to be taken to troubleshoot and repair the system fault.

[0188] According to the triggered warning level, the system can automatically execute corresponding warning response measures, such as sending alarm information to relevant personnel, recording fault logs, and attempting to restart faulty components.

[0189] After receiving the warning information, relevant personnel should quickly locate the cause of the problem and take corresponding repair measures based on the warning level and detailed information provided.

[0190] By calculating the proportion of communication isolators that have not successfully returned instructions and the proportion of packet-level detectors that have not returned, and comparing these two proportions with the preset thresholds, different levels of warnings are triggered. This refined warning mechanism helps to quickly locate the problem, reduce false positives and missed positives, and improve the response speed and accuracy of the system. At the same time, through detailed warning information and response measures, relevant personnel can be guided to quickly locate the problem and take effective repair measures.

[0191] The present application also provides an electronic device, which includes a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of any method described in the present application are implemented.

[0192] This application is explained from the perspectives of purpose of use, effectiveness, progress and novelty, and has met the functional enhancement and usage requirements emphasized by the Patent Law. The above description and drawings of this application are only the preferred embodiments of this application, and are not intended to limit this application. Therefore, all structures, devices, features, etc. that are similar or identical to this application, that is, all equivalent replacements or modifications made in accordance with the scope of the patent application of this application, should fall within the scope of protection of the patent application of this application.

Claims

1. Energy storage package level detector automatic coding system, characterized in that: The system comprises: The energy storage host is used to obtain terminal input information, issue coding instructions according to the input information, and automatically inspect the address of the CAN communication isolator; at least one CAN communication isolator, the CAN communication isolator being used to perform a first automatic encoding and inspection packet level detector address; at least one packet level detector; the packet level detector is used to perform a second automatic encoding; The control unit is used to determine the coding address of the CAN communication isolator or the packet level detector by using a sampling resistor.

2. The energy storage package level detector automatic coding system according to claim 1 is characterized in that: include: The energy storage host is connected to the CAN communication isolator via a CAN bus; The CAN communication isolators are all connected to packet-level detectors; The sampling resistor includes a first sampling resistor and a second sampling resistor; The CAN communication isolator includes the first sampling resistor; the coding address of the CAN communication isolator is determined by using the first sampling resistor; The packet-level detectors all include the second sampling resistor, and the encoding address of the packet-level detector is determined by using the second sampling resistor.

3. The automatic encoding method of energy storage package level detector is characterized in that: The method is implemented by the system according to any one of claims 1 to 2, and the method comprises: The energy storage host obtains the first input information of the terminal; sends the first coding range to the CAN communication isolator according to the first input information; the first input information includes the number of CAN communication isolators on the CAN bus loop and the CAN communication isolator coding instruction; The CAN communication isolator performs automatic encoding according to the first encoding range, and the energy storage host inspects the CAN communication isolator and performs a first address check; The energy storage host obtains the second input information of the terminal; according to the second input information, the second coding range instruction of the corresponding packet-level detector is sent to each CAN communication isolator; the second input information includes the number of packet-level detectors under the CAN communication isolator and the coding instruction of the packet detector; The packet level detector performs automatic encoding according to the second encoding range instruction; The CAN communication isolator automatically inspects the packet-level detector address, and determines whether the packet-level detector automatic encoding is successful based on the inspection result; if so, the CAN communication isolator returns the packet-level detector automatic encoding success instruction thereunder.

4. The method according to claim 3, characterized in that The CAN communication isolator performs automatic encoding according to the first encoding range, and the energy storage host inspects the CAN communication isolator and performs a first address check, including: The CAN communication isolator collects its own physical coding address signal and automatically confirms its own unique primary coding address; The energy storage host automatically inspects the primary coding address of the CAN communication isolator at a first preset time interval and performs a first address check, and determines whether the automatic coding of the CAN communication isolator is successful based on the first address check result; the first address check includes: address response check, address matching check and address quantity check.

5. The method according to claim 4, characterized in that The CAN communication isolator collects its own physical coding address signal and automatically confirms its own unique primary coding address; including: Parse the CAN communication isolator coding instructions and extract the primary coding address range of the CAN communication isolator; Collect the current voltage value through the sampling resistor end of the CAN communication isolator; According to the address range and the power supply voltage, the average voltage value across the sampling resistor is calculated; Using the collected voltage value and average voltage value, calculate the corresponding address code of the CAN communication isolator; The generated address code is stored in the internal Flash of the CAN communication isolator.

6. The method according to claim 5, characterized in that The energy storage host automatically inspects the address of the CAN communication isolator at a preset time interval and performs a first address check; and determines whether the automatic encoding of the CAN communication isolator is successful according to the first address check result; including: The energy storage host automatically inspects the primary coding address of the CAN communication isolator from the starting address to the ending address after the first preset time interval; if each address has a response, the automatic coding of the CAN communication isolator is successful.

7. The method according to claim 3, characterized in that The energy storage host obtains the second input information of the terminal; sends the second coding range instruction of the corresponding packet-level detector to each CAN communication isolator according to the second input information; including: After the CAN communication isolator is automatically addressed successfully, the energy storage host obtains the number of corresponding packet-level detectors under each CAN communication isolator, and sends the second coding range of the corresponding packet-level detector to each CAN communication isolator; After receiving the instruction, the CAN communication isolator sends the packet level detector automatic encoding address range to the next level packet level detector.

8. The method according to claim 3, characterized in that The packet-level detector performs automatic encoding according to the second encoding range instruction; comprising: The packet level detector program parses the address range in the second encoding range instruction; According to the voltage value collected by the sampling resistor end of the packet-level detector, a unique secondary address code of the corresponding packet-level detector is obtained.

9. The method according to claim 3, characterized in that: The CAN communication isolator automatically inspects the packet-level detector address, and determines whether the packet-level detector automatic encoding is successful according to the inspection result; including: The CAN communication isolator automatically inspects the secondary addresses of the packet-level detector from the start address to the end address after the second preset time interval; if each address has a response within the third preset time, the automatic encoding of the packet-level detector is successful.

10. The method according to claim 3, characterized in that: The method further comprises: The energy storage host receives and judges the return instructions of all CAN communication isolators; If all CAN communication isolators successfully return the automatic encoding success command of the packet-level detector under them, and the energy storage host can correctly receive and verify the validity of the returned command, the automatic encoding completion interface of the entire system will be displayed; If any CAN communication isolator fails to successfully return the packet level detector automatic encoding success instruction; or, If the energy storage host fails to correctly receive and verify the validity of the return command of any CAN communication isolator, fault detection is performed.