Address code distribution method and device
By setting up a dedicated address code storage unit and multiple address code storage units in the power unit module of a cascaded energy storage converter, and automatically allocating address codes using the polling comparison method, the problems of high hardware costs and wrong address code settings in the prior art are solved, and the automatic allocation of address codes and the reliability of the system are improved.
Patent Information
- Application Number
- CN202411779282.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-05
- Publication Date
- 2025-05-02
- Estimated Expiration
- 2044-12-05
AI Technical Summary
The existing unit module address code allocation method of cascaded energy storage converters has the risk of high hardware costs and errors in address code settings, and lacks universality and automation.
By setting a dedicated address code storage unit and multiple address code storage units in each power unit module, the address code is automatically allocated by the polling comparison method, and the automatic allocation and universality of the address code are achieved.
The automatic allocation of address codes of power unit modules at all levels in the ring communication link is realized, which reduces hardware costs, improves the reliability and universality of the system, and avoids address code setting errors.
Smart Images

Figure CN119917422A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of energy storage system communication technology, and in particular to an address code allocation method and device. Background Art
[0002] With the proposal of the "dual carbon" goal and the gradual deepening of the energy structure transformation, the installed capacity and power generation ratio of new energy sources have been continuously improved. The characteristics of the new power system, such as a high proportion of new energy and a high proportion of power electronic equipment, have put forward higher requirements for its stability and reliability, and the requirements for fast and flexible adjustment of resource allocation have gradually increased. Energy storage technology plays an important role in improving the consumption level of renewable energy such as wind power and photovoltaics, alleviating peak load pressure, and smoothing the output of renewable energy. It is one of the key technologies to promote the efficient use of renewable energy; it can also enhance the flexible adjustment ability of the power system and ensure the safe and stable operation of the power grid. The cascaded high-voltage energy storage system is an advanced energy storage technology with the advantages of high safety, high efficiency, fast response speed, large single-machine capacity, and long system life. It is an important development direction of energy storage technology. The cascaded energy storage inverter is a key device of the cascaded high-voltage energy storage system. At present, the mainstream communication method between the controller and the unit module of the cascaded energy storage inverter is as follows: there are two optical fibers, one for sending and one for receiving, for communication between the controller and all the unit modules. The number of communication optical fibers is twice the number of unit modules. The controller and unit modules are arranged in different prefabricated cabins or different locations in the building, and the amount of communication optical fibers used is large.
[0003] Cascaded energy storage inverters often use a ring communication technology solution. The key step for the normal communication of the ring communication link is the allocation of unit module address codes. The current unit module address code allocation methods include: program solidification of unit module address codes and DIP switches to set unit module address codes. However, the existing technical solutions have the following disadvantages: First, for program solidification of unit module address codes, the unit modules of the ring communication link need to burn different address code programs to represent their positions, and the control board programs of the unit modules are not universal. Second, for setting the unit module address code with a DIP switch, it means that the unit module of the ring communication link sets the address code by using a DIP switch, which increases the hardware cost of the control board and also has the risk of incorrect address code setting. Summary of the invention
[0004] In view of the above problems, the present application is proposed to provide an address code allocation method and device to achieve the technical effect of automatically allocating address codes of power unit modules of an energy storage system without increasing hardware costs, with strong versatility and improved system reliability.
[0005] According to a first aspect of the present application, an address code allocation method is provided, which is applied to a cascaded high-voltage energy storage system, wherein the energy storage system comprises at least one controller and a plurality of cascaded power unit modules, wherein the at least one controller is communicatively connected with the plurality of cascaded power unit modules, and each of the power unit modules is provided with an address code dedicated storage unit and a plurality of address code storage units, wherein the method comprises:
[0006] According to the communication data sent by the controller or the previous power unit module received by the current power unit module, polling and comparing the address code in the communication data stored in each address code storage unit;
[0007] If the comparison results in a first result, the address code is assigned to the address code dedicated storage unit of the current power unit module;
[0008] If the comparison results in a second result, the address code dedicated storage unit of the current power unit module is kept in an initialized state.
[0009] Optionally, if the comparison obtains a first result, the method further includes:
[0010] When the address code of the current power unit module is successfully allocated, the address code of the current power unit module is increased by a preset value and then assigned to the address code dedicated storage unit of the next level power unit module.
[0011] Optionally, the polling and comparing the address codes in the communication data stored in each address code storage unit includes:
[0012] Extracting the address code in the communication data according to the acquisition timing of the communication data;
[0013] The address code is sequentially stored in a plurality of address code storage units of the current power unit module in a shifting manner.
[0014] Optionally, the method further comprises:
[0015] The address code first stored in the first address code storage unit is compared with the address codes stored in the subsequent address code storage units in sequence; wherein,
[0016] When the comparison results of the plurality of address code storage units are the same and the address code in the first address code storage unit meets the preset value range, it is determined that the first result is obtained;
[0017] When the comparison results of the plurality of address code storage units are not completely the same, and / or the address code in the first address code storage unit does not conform to a preset value range, it is determined that the second result is obtained.
[0018] Optionally, the method further comprises:
[0019] If the comparison obtains a first result, the address code in the first address code storage unit is assigned to the address code dedicated storage unit of the current power unit module, and then the allocation flag position of the current power unit module is set to 1, and it is determined that the address code allocation of the current power unit module is successful;
[0020] If the comparison obtains the second result, the address code dedicated storage unit of the current power unit module is kept in an initialized state, and then the allocation flag of the current power unit module is kept at 0, and it is determined that the address code allocation of the current power unit module has failed.
[0021] Optionally, the method further comprises:
[0022] After the address code of the current power unit module is successfully allocated, sending the communication data to the next-level power unit module;
[0023] The address code of the next-stage power unit module is encoded into a communication frame and then sent to the next-stage power unit module and / or the controller.
[0024] Optionally, after receiving the communication data, the method further includes:
[0025] Determining the validity of the communication data;
[0026] When the communication data is determined to be valid, the communication data is regarded as valid data, and an address code in the valid data is extracted.
[0027] Optionally, the method further comprises:
[0028] When the communication data is determined to be invalid, counting is started synchronously by a counter;
[0029] Wherein, if the count value of the counter is within the threshold range, the address code dedicated storage unit of the current power unit module is kept in an initialized state, and the count value of the counter is kept as a set value within the threshold range;
[0030] If the communication data is determined to be valid, the count value of the counter is synchronously cleared.
[0031] Optionally, before receiving the communication data, the method further includes:
[0032] The address code storage units and the address code dedicated storage units of the multiple cascaded power unit modules are initialized, and the allocation mark position of each power unit module is set to 0.
[0033] According to a second aspect of the present application, an address code allocation device is provided, which is applied to a cascaded high-voltage energy storage system, wherein the energy storage system comprises at least one controller and a plurality of cascaded power unit modules, wherein the at least one controller is communicatively connected with the plurality of cascaded power unit modules, and each of the power unit modules is provided with an address code dedicated storage unit and a plurality of address code storage units, wherein the device comprises at least:
[0034] An address code assignment unit, which is used to poll and compare the address code in the communication data stored in each address code storage unit according to the communication data sent by the controller or the previous power unit module received by the current power unit module;
[0035] If the comparison obtains a first result, the address code is assigned to the address code dedicated storage unit of the current power unit module; if the comparison obtains a second result, the address code dedicated storage unit of the current power unit module is kept in an initialized state.
[0036] According to a third aspect of the present application, an electronic device is proposed, comprising: a processor; and a memory arranged to store computer executable instructions, wherein when the executable instructions are executed, the processor executes the method as described in any one of the first aspects above.
[0037] According to a fourth aspect of the present application, a computer-readable storage medium is proposed, wherein the computer-readable storage medium stores one or more programs, and when the one or more programs are executed by a processor, the method described in any one of the first aspects above is implemented.
[0038] It can be seen from the above that at least one of the above technical solutions adopted in the embodiments of the present application can achieve the following beneficial effects: an address code allocation method and device are provided, which are applied to a cascaded high-voltage energy storage system. The method is based on the communication data sent by the controller or the previous power unit module received by the current power unit module, and the address code in the communication data stored in each address code storage unit is polled and compared. This realizes the automatic allocation of address codes for power unit modules at each level in the ring communication link, without increasing hardware costs and with strong versatility. It effectively avoids the risk of address code setting errors and further improves system reliability.
[0039] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present application. Also, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0041] Figure 1 A flowchart of an address code allocation method in one embodiment of the present application;
[0042] Figure 2 A schematic diagram of the structure of a cascade type high voltage energy storage system of a ring communication link in one embodiment of the present application;
[0043] Figure 3 A flowchart of an address code allocation method in one embodiment of the present application;
[0044] Figure 4 This is a schematic diagram of the structure of an address code allocation device in one embodiment of the present application;
[0045] Figure 5 This is a schematic diagram of the structure of an electronic device in one embodiment of the present application. DETAILED DESCRIPTION
[0046] The exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present application and to fully convey the scope of the present application to those skilled in the art.
[0047] The technical concept of the present application is to utilize an address code assignment program to extract and compare address code data according to preset rules, assign the address code to the address code dedicated storage unit of the power unit module when the program agreed conditions are met, and simultaneously set the unit address code automatic assignment success flag position, thereby enabling the address code of the power unit module of the ring communication link to be automatically assigned through software without the need for additional hardware support.
[0048] The technical solutions provided by various embodiments of the present application are described in detail below in conjunction with the accompanying drawings.
[0049] To facilitate understanding of the address code allocation method of the embodiment of the present application, the following first describes Figure 2 The cascade type high voltage energy storage system of the ring communication link shown in FIG.
[0050] See also Figure 2As shown, the energy storage system includes at least one controller and a plurality of cascaded power unit modules, wherein the at least one controller is communicatively connected to the plurality of cascaded power unit modules, and each power unit module can be connected to a corresponding energy storage battery. It can be understood that the "ring communication link" of this embodiment refers to a plurality of power unit modules being communicatively connected to the controller via a continuous loop. For example, Figure 2 The RX receiving end of the power unit module 1 is communicatively connected with the TX_1 transmitting end of the controller, the TX transmitting end of the power unit module 1 is communicatively connected with the RX receiving end of the power unit module 2, and the TX transmitting end of the power unit module 2 is communicatively connected with the RX receiving end of the next-level power unit module, until after m power unit modules are cascaded, the TX transmitting end of the mth power unit module is communicatively connected with the RX_1 receiving end of the controller, thereby forming a ring communication link; of course, the energy storage system of this embodiment may include multiple ring communication links, which will not be repeated here.
[0051] In one embodiment of the present application, Figure 1 As shown, a flow chart of an address code allocation method is provided; the address code allocation method of the embodiment of the present application can be applied to a cascaded high-voltage energy storage system using a ring communication link, the controller of the energy storage system is communicatively connected with a plurality of cascaded power unit modules, and each of the power unit modules is provided with an address code dedicated storage unit and a plurality of address code storage units, and the address code allocation method comprises at least the following steps:
[0052] Step S100: poll and compare the address codes in the communication data stored in each address code storage unit according to the communication data sent by the controller or the previous power unit module and received by the current power unit module.
[0053] refer to Figure 2 As shown, since the multiple power unit modules of this embodiment are cascaded, the current power unit module to be assigned an address code can receive communication data sent from the controller or the previous power unit module. For example, if Figure 2 When the power unit module 1 in is used as the current power unit module, it needs to receive the communication data sent by the controller; if Figure 2 When the power unit module 2 in the example is used as the current power unit module, it needs to receive the communication data sent by the power unit module of the previous level, that is, the power unit module 1. For the current power unit module, after identifying the address code in the communication data, it polls and compares whether the address code stored in each of its address code storage units meets the preset judgment rule, thereby obtaining the first result or the second result through comparison. Preferably, when receiving the communication data, it is necessary to judge its validity, and extract the address code when the communication data is valid.
[0054] Step S110: if the comparison results in a first result, the address code is assigned to the address code dedicated storage unit of the current power unit module.
[0055] If the address code in the address code storage unit of the current power unit module meets the preset judgment rule, the first result is obtained by comparison, and the address code is assigned to the address code dedicated storage unit of the current power unit module to complete the address code allocation of the current power unit module.
[0056] Step S120: If the comparison results in a second result, the address code dedicated storage unit of the current power unit module is kept in an initialized state.
[0057] If the address code in the address code storage unit of the current power unit module does not meet the preset judgment condition, the second result is obtained by comparison, and the address code dedicated storage unit of the current power unit module is kept in the initialized state, that is, kept at 0000.
[0058] It can be seen that, different from the existing technical solutions of fixed address codes and address codes set by dial switches, the address code allocation method of the embodiment of the present application, on the one hand, can automatically realize the address code allocation of power unit modules at all levels in the ring communication link at the software level, without increasing hardware costs, and has strong versatility and a higher degree of program unification; on the other hand, it can effectively reduce communication failures caused by address code setting errors, reduce the maintenance cost and complexity of the system, and can be adapted to multiple power unit modules of different orders of magnitude, with good scalability and flexibility. At the same time, when the control board of the power unit module loses power and then resumes power supply or the communication between the power unit module and the controller is interrupted and then restored, the address code can be automatically reallocated, thereby improving the stability and reliability of the entire energy storage system.
[0059] In some embodiments, if the comparison obtains a first result, the method further includes: when the address code of the current power unit module is successfully allocated, the address code of the current power unit module is increased by a preset value and then assigned to the address code dedicated storage unit of the next level power unit module.
[0060] In one example, after the address code of the current power unit module is automatically assigned successfully, the address code data in its address code dedicated storage unit can be extracted, and the address code data is automatically added with 0001 and assigned to the address code dedicated storage unit of the next power unit module. Figure 2 As shown, if the binary address code assigned to power unit module 1 is 0001, the address code assigned to power unit module 2 should be 0010, the address code assigned to power unit module 3 should be 0011, and so on, which will not be repeated here.
[0061] Of course, when this embodiment sends communication data to the next-level power unit module, the next-level power unit module also needs to extract the address code in the communication data, and after polling and comparison and meeting the preset judgment conditions, assign a value to the address code dedicated unit of the next-level power unit module.
[0062] In some embodiments, the polling and comparing of the address codes in the communication data stored in each address code storage unit includes: extracting the address codes in the communication data according to the acquisition timing of the communication data; and storing the address codes in sequence to multiple address code storage units of the current power unit module in a shifting manner.
[0063] In one example, each power unit module includes 1 address code dedicated storage unit and 5 address code storage units. If the communication data received by the current power unit module is valid data, it is necessary to extract the 4-bit address code (such as 0001) in the communication data according to the timing, and store the address code in the first address code storage unit to the fifth address code storage unit according to the shift storage method.
[0064] It can be understood that the shift storage in this embodiment refers to a storage method that follows the "first in, first out" principle, which allows data to be read in the order in which it enters. For example, the address code extracted in the first time sequence is stored in the first address code storage unit of the current power unit module, and the address code extracted in the second time sequence is stored in the second address code storage unit of the module, and so on; thus, by polling and comparing the address codes in the five address code storage units, the first result or the second result can be obtained by comparison.
[0065] In some embodiments, the method further includes: comparing the address code first stored in the first address code storage unit with the address codes stored in subsequent address code storage units in sequence; wherein, when the comparison results of multiple address code storage units are the same and the address code in the first address code storage unit meets the preset numerical range, the first result is determined to be obtained; when the comparison results of multiple address code storage units are not exactly the same, and / or the address code in the first address code storage unit does not meet the preset numerical range, the second result is determined to be obtained.
[0066] The method also includes: if the comparison obtains a first result, the address code in the first address code storage unit is assigned to the address code dedicated storage unit of the current power unit module, and then the allocation flag position of the current power unit module is set to 1, and it is determined that the address code allocation of the current power unit module is successful; if the comparison obtains a second result, the address code dedicated storage unit of the current power unit module is maintained in an initialized state, and then the allocation flag position of the current power unit module is maintained to 0, and it is determined that the address code allocation of the current power unit module has failed.
[0067] In one example, for the current power unit module, the address code data of the first address code storage unit and the address code data of the second to fifth address code storage units may be compared in sequence through an address code assignment procedure.
[0068] If the four comparison results are the same (for example, all are 0001), and the address code value of the first address code storage unit is within the set value range (for example, the address code value range is set to binary bits: 0001, 0010, 0011, ...), at this time, the address code data in the first address code storage unit is assigned to the address code dedicated storage unit of the module and remains unchanged, and the allocation flag position of the current power unit module is synchronously set to 1 and remains unchanged, thereby determining that the address code allocation of the current power unit module is successful; if the four comparison results are not exactly the same or the address code value of the first address code storage unit is not within the set value range, at this time, the data of the address code dedicated storage unit of the module is kept at the initialized value 0000, thereby determining that the address code allocation of the current power unit module has failed.
[0069] In some embodiments, the method also includes: after the address code of the current power unit module is successfully allocated, sending the communication data to the next-level power unit module; encoding the address code of the next-level power unit module into a communication frame and sending it to the next-level power unit module and / or the controller.
[0070] For example, refer to Figure 2 As shown, after the address code 0001 of the power unit module 1 is successfully allocated, the address code 0010 of the next-level power unit module can be encoded into the communication frame and sent to the power unit module 2. The power unit module 2 needs to perform validity judgment and / or polling comparison on the communication data sent by the power unit module 1. If it meets the preset judgment conditions, the address code 0010 is stored in the address code dedicated storage unit of the power unit module 2.
[0071] In some embodiments, after receiving the communication data, the method further includes: determining the validity of the communication data; when the communication data is determined to be valid, taking the communication data as valid data, and extracting the address code in the valid data. The method further includes: when the communication data is determined to be invalid, starting counting synchronously through a counter; wherein, if the count value of the counter is within a threshold range, the address code dedicated storage unit of the current power unit module is maintained in an initialized state, and the count value of the counter is maintained as a set value within the threshold range; if the communication data is determined to be valid, the count value of the counter is synchronously cleared.
[0072] In one example, when receiving communication data, it is necessary to judge its validity, and extract the address code when the communication data is valid, and then poll and compare whether the address code stored in each address code storage unit meets the preset judgment rules. When it meets the judgment rules, the comparison obtains the first result, thereby executing the address code allocation of the current power unit module, and executing the address code allocation of the next level power unit module based on the preset assignment rules (for example, increasing the preset value); in this way, the accuracy and effectiveness of the communication data transmission of the entire system can be ensured.
[0073] In some embodiments, before receiving the communication data, the method further includes: initializing the address code storage unit and the address code dedicated storage unit of the multiple cascaded power unit modules, for example, initializing them to 0000, and setting the allocation mark position of each power unit module to 0.
[0074] Specifically, the control board of multiple power unit modules is powered on first, and then the program of the control board is automatically reset and initialized, and each program unit in each power unit module is initialized. At the same time, the data of the address code dedicated storage unit of each level of power unit module is initialized to 0000, the data of multiple address code storage units for storing address codes are initialized to 0000, and the allocation flag bit of each level of power unit module used to indicate successful address code allocation is initialized to 0. In addition, after the program of the control board is automatically reset and initialized, and before the address code of the power unit module is automatically allocated successfully, the communication data sent by the current power unit module to the next level of power unit module or the controller should remain invalid data.
[0075] In a preferred embodiment of the present application, Figure 3As shown, a flowchart of an address code allocation method is provided; the algorithm flow of address code allocation includes: first, the power unit module control board is powered on and each unit is initialized; second, communication data is received and the validity is judged, and when the data is invalid, the counter is counted; when the data is valid, the counter is cleared, and the address code in the data is extracted according to the timing and stored in the address code storage unit of the current power unit module; third, the address code data of the five address code storage units are polled and compared to see whether they are the same and whether they are within the set address code range. If not, the address code of the address code dedicated storage unit is kept unchanged. The state remains initialized; if so, the address code of the first address code storage unit is assigned to the address code dedicated storage unit of the current power unit module and its assignment flag is set to 1; then, the address code data of the address code dedicated storage unit is extracted, and the address code data is added with 0001 and assigned to the address code dedicated storage unit of the next-level power unit module; finally, the current power unit module sends valid data, encodes the address code of the next-level power unit module into a data frame and sends it to the next-level power unit module or controller, and so on, to complete the address code allocation of power unit modules at all levels.
[0076] certainly, Figure 3 The contents shown are merely exemplary embodiments and should not be construed as limiting the present application.
[0077] In another embodiment of the present application, Figure 4 As shown, an address code allocation device 400 is provided, which is applied to a cascaded high-voltage energy storage system, wherein the energy storage system includes at least one controller and a plurality of cascaded power unit modules, wherein the at least one controller is communicatively connected with the plurality of cascaded power unit modules, and each of the power unit modules is provided with an address code dedicated storage unit and a plurality of address code storage units, and the address code allocation device 400 includes at least a plurality of program units, specifically:
[0078] The address code assignment unit 410 is used to poll and compare the address code in the communication data stored in each address code storage unit according to the communication data sent by the controller or the previous power unit module received by the current power unit module; if the comparison obtains a first result, the address code is assigned to the address code dedicated storage unit of the current power unit module; if the comparison obtains a second result, the address code dedicated storage unit of the current power unit module is kept in an initialized state.
[0079] The address code allocation device 400 further includes:
[0080] A validity judging unit 420, which is used to judge the validity of the communication data when receiving it;
[0081] The communication transceiver unit 430 specifically includes a TX transmitting end and an RX receiving end, wherein the RX receiving end is used to receive communication data sent by the controller or the upper-level power unit module, and the TX transmitting end is used to send communication data to the lower-level power unit module or the controller.
[0082] It can be understood that the address code allocation device can be used to execute the various steps of the address code allocation method provided in the embodiment of the present application. Therefore, the relevant explanations about the address code allocation method are applicable to the address code allocation device and will not be repeated here.
[0083] In summary, this application has achieved at least the following technical effects:
[0084] On the one hand, it can automatically realize the address code allocation of power unit modules at all levels in the ring communication link at the software level without increasing hardware costs, and has strong versatility and a higher degree of program unification; on the other hand, it can effectively reduce communication failures caused by address code setting errors, reduce system maintenance costs and complexity, and can be adapted to multiple power unit modules of different orders of magnitude, with good scalability and flexibility. At the same time, when the control board of the power unit module loses power and then restores power or the communication between the power unit module and the controller is interrupted and then restored, the address code can be automatically reallocated, thereby improving the stability and reliability of the entire energy storage system.
[0085] Figure 5 This is a schematic diagram of the structure of an electronic device according to an embodiment of the present application. Figure 5 At the hardware level, the electronic device includes a processor, and optionally also includes an internal bus, a network interface, and a memory. The memory may include a memory, such as a high-speed random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage. Of course, the electronic device may also include hardware required for other services.
[0086] The processor, network interface and memory can be interconnected through an internal bus, which can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 5Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0087] The memory is used to store the program. Specifically, the program may include a program code, and the program code includes a computer operation instruction. The memory may include a memory and a non-volatile memory, and provides instructions and data to the processor.
[0088] The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it, forming an address code allocation device at the logical level. The processor executes the program stored in the memory and is specifically used to perform the following operations:
[0089] According to the communication data sent by the controller or the previous power unit module received by the current power unit module, polling and comparing the address code in the communication data stored in each address code storage unit;
[0090] If the comparison results in a first result, the address code is assigned to the address code dedicated storage unit of the current power unit module;
[0091] If the comparison results in a second result, the address code dedicated storage unit of the current power unit module is kept in an initialized state.
[0092] The above application Figure 1The address code allocation method disclosed in the illustrated embodiment can be applied to a processor or implemented by a processor. The processor may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor or an instruction in the form of software. The above processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application can be directly embodied as a hardware decoding processor for execution, or a combination of hardware and software modules in the decoding processor for execution. The software module can be located in a storage medium mature in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.
[0093] The present application also provides a computer program product, which stores one or more programs, wherein the one or more programs include instructions, which, when executed by an electronic device including multiple application programs, enable the electronic device to execute Figure 1 The address code allocation method in the embodiment shown is specifically used to perform:
[0094] According to the communication data sent by the controller or the previous power unit module received by the current power unit module, polling and comparing the address code in the communication data stored in each address code storage unit;
[0095] If the comparison results in a first result, the address code is assigned to the address code dedicated storage unit of the current power unit module;
[0096] If the comparison results in a second result, the address code dedicated storage unit of the current power unit module is kept in an initialized state.
[0097] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0098] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0099] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0100] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0101] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0102] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0103] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0104] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0105] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0106] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims
1. A method for allocating address codes, characterized in that: Applied to a cascaded high-voltage energy storage system, the energy storage system includes at least one controller and a plurality of cascaded power unit modules, the at least one controller is communicatively connected with the plurality of cascaded power unit modules, each of the power unit modules is provided with an address code dedicated storage unit and a plurality of address code storage units, the method includes: According to the communication data sent by the controller or the previous power unit module received by the current power unit module, polling and comparing the address code in the communication data stored in each address code storage unit; If the comparison results in a first result, the address code is assigned to the address code dedicated storage unit of the current power unit module; If the comparison results in a second result, the address code dedicated storage unit of the current power unit module is kept in an initialized state.
2. The distribution method according to claim 1, characterized in that: If the comparison obtains a first result, the method further includes: When the address code of the current power unit module is successfully allocated, the address code of the current power unit module is increased by a preset value and then assigned to the address code dedicated storage unit of the next level power unit module.
3. The distribution method according to claim 1, characterized in that: The polling and comparing of the address codes in the communication data stored in each address code storage unit includes: Extracting the address code in the communication data according to the acquisition timing of the communication data; The address code is sequentially stored in a plurality of address code storage units of the current power unit module in a shifting manner.
4. The distribution method according to claim 3, characterized in that: The method further comprises: The address code first stored in the first address code storage unit is compared with the address codes stored in the subsequent address code storage units in sequence; wherein, When the comparison results of the plurality of address code storage units are the same and the address code in the first address code storage unit meets the preset value range, it is determined that the first result is obtained; When the comparison results of the plurality of address code storage units are not completely the same, and / or the address code in the first address code storage unit does not conform to a preset value range, it is determined that the second result is obtained.
5. The distribution method according to claim 4, characterized in that: The method further comprises: If the comparison obtains a first result, the address code in the first address code storage unit is assigned to the address code dedicated storage unit of the current power unit module, and then the allocation flag position of the current power unit module is set to 1, and it is determined that the address code allocation of the current power unit module is successful; If the comparison obtains the second result, the address code dedicated storage unit of the current power unit module is kept in an initialized state, and then the allocation flag of the current power unit module is kept at 0, and it is determined that the address code allocation of the current power unit module has failed.
6. The distribution method according to claim 2, characterized in that: The method further comprises: After the address code of the current power unit module is successfully allocated, sending the communication data to the next-level power unit module; The address code of the next-stage power unit module is encoded into a communication frame and then sent to the next-stage power unit module and / or the controller.
7. The distribution method according to claim 1, characterized in that: After receiving the communication data, the method further includes: Determining the validity of the communication data; When the communication data is determined to be valid, the communication data is regarded as valid data, and an address code in the valid data is extracted.
8. The distribution method according to claim 7, characterized in that: The method further comprises: When the communication data is determined to be invalid, counting is started synchronously by a counter; Wherein, if the count value of the counter is within the threshold range, the address code dedicated storage unit of the current power unit module is kept in an initialized state, and the count value of the counter is kept as a set value within the threshold range; If the communication data is determined to be valid, the count value of the counter is synchronously cleared.
9. The distribution method according to claim 1, characterized in that: Before receiving the communication data, the method further includes: The address code storage units and the address code dedicated storage units of the multiple cascaded power unit modules are initialized, and the allocation mark position of each power unit module is set to 0.
10. An address code allocation device, characterized in that: Applied to a cascaded high-voltage energy storage system, the energy storage system includes at least one controller and a plurality of cascaded power unit modules, the at least one controller is communicatively connected with the plurality of cascaded power unit modules, each of the power unit modules is provided with an address code dedicated storage unit and a plurality of address code storage units, the device includes at least: An address code assignment unit, which is used to poll and compare the address code in the communication data stored in each address code storage unit according to the communication data sent by the controller or the previous power unit module received by the current power unit module; If the comparison obtains a first result, the address code is assigned to the address code dedicated storage unit of the current power unit module; if the comparison obtains a second result, the address code dedicated storage unit of the current power unit module is kept in an initialized state.
Citation Information
Patent Citations
Data processing system and method for operating a data processing system
CN104246727A
Method for automatically allocating address to BMS (Battery Management System) in energy storage system, energy storage system and storage medium
CN118693950A
Method capable of automatically assigning device communication address code, circuit breaker, and storage medium
WO2019148623A1