CN117240821B - SN-based ID automatic allocation method, device and storage medium - Google Patents
SN-based ID automatic allocation method, device and storage medium Download PDFInfo
- Publication number
- CN117240821B CN117240821B CN202311496151.6A CN202311496151A CN117240821B CN 117240821 B CN117240821 B CN 117240821B CN 202311496151 A CN202311496151 A CN 202311496151A CN 117240821 B CN117240821 B CN 117240821B
- Authority
- CN
- China
- Prior art keywords
- allocation
- frame
- cmu
- bmu
- automatic
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 42
- 238000004891 communication Methods 0.000 claims abstract description 16
- 238000012790 confirmation Methods 0.000 claims description 29
- 238000004590 computer program Methods 0.000 claims description 11
- FGUUSXIOTUKUDN-IBGZPJMESA-N C1(=CC=CC=C1)N1C2=C(NC([C@H](C1)NC=1OC(=NN=1)C1=CC=CC=C1)=O)C=CC=C2 Chemical compound C1(=CC=CC=C1)N1C2=C(NC([C@H](C1)NC=1OC(=NN=1)C1=CC=CC=C1)=O)C=CC=C2 FGUUSXIOTUKUDN-IBGZPJMESA-N 0.000 claims description 4
- 230000001174 ascending effect Effects 0.000 claims description 4
- 230000005540 biological transmission Effects 0.000 claims description 3
- 230000003111 delayed effect Effects 0.000 claims 1
- 230000002829 reductive effect Effects 0.000 abstract description 4
- 230000000694 effects Effects 0.000 description 7
- 238000012545 processing Methods 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 210000004556 brain Anatomy 0.000 description 1
- 230000008094 contradictory effect Effects 0.000 description 1
- 230000003247 decreasing effect Effects 0.000 description 1
- 238000004146 energy storage Methods 0.000 description 1
- 230000000670 limiting effect Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses an automatic ID allocation method, equipment and a storage medium based on SN. In the method, the master control BMU and the slave control CMU are connected through only one communication bus, so that the use of other hardware equipment is reduced. According to the method, each CMU actively initiates an ID allocation request frame after each power-on, a frame message is the SN of the CMU, the BMU orders and allocates the IDs after receiving the SNs of the CMUs, then broadcasts the ID allocation frame through a bus, and each CMU analyzes and obtains the IDs after receiving the respective ID allocation frame, so that automatic ID allocation is completed. Because of the ID assignment based on the SNs of the individual CMUs, the BMUs do not need to pre-store and update ID lists, and the number may vary with the number of CMUs. Since each CMU has a corresponding ID allocation frame, ID allocation is not required in order. Because ID automatic allocation can be carried out every time power is applied, when a battery module is replaced in a battery pack, the BMU can identify in time and can carry out ID allocation on a new battery module.
Description
Technical Field
The present invention relates to the field of battery management systems, and in particular, to an automatic ID allocation method, device, and storage medium based on SN.
Background
With the popularity of energy storage devices, battery management systems have become increasingly important. BMS (Battery Management System) in the battery pack, i.e., the brain of the battery pack, is composed of a master BMU and a slave CMU (or simply BMU and CMU). CMU (Cell monitor Unit) unit monitoring unit is responsible for measuring parameters such as voltage, electric current and temperature of each battery module of battery package, then transmits to BMU. BMU (Battery management Unit) the battery management unit is responsible for evaluating the data transmitted by the CMU, if the data is abnormal, protecting the battery module, sending out the requirement of reducing the current, or cutting off the charge and discharge path so as to prevent the battery module from exceeding the allowable use condition, and managing the electric quantity and the temperature of the battery module. In order for the BMU to accurately identify the battery module position corresponding to each CMU, the CMU needs to have an independent ID, so as to ensure the integrity of information collection of each battery module by the BMU.
The existing automatic allocation mode of the ID of the CMU is actively initiated by the BMU, and has the following problems:
(1) The BMU needs to pre-store ID lists of each CMU, and the number of the ID lists is fixed and invariable;
(2) Sequentially distributing IDs according to the sequence of each CMU;
(3) In order to ensure the accuracy of ID allocation, hardware devices such as signal wires among the battery modules are needed;
(4) When a battery module is replaced in the battery pack, the ID list of the BMU needs to be updated in time;
(5) The ID is allocated once and the battery pack is saved after power is turned off, and the BMU can not recognize that the battery module is replaced in the battery pack.
Accordingly, there is a need for a new automatic ID allocation method that solves the above-listed technical problems.
Disclosure of Invention
In order to solve the technical problems, the invention provides an automatic ID allocation method based on SN, in the method, a master control BMU and a slave control CMU are connected through only one communication bus, each CMU actively initiates an ID allocation request frame after each power-on, a frame message is self SN, the BMU sequences and allocates IDs after receiving the SNs of each CMU, then broadcasts an ID allocation frame through the bus, and each CMU analyzes and obtains the IDs after receiving each ID allocation frame, thereby completing the automatic ID allocation.
The technical scheme adopted by the invention is as follows: an automatic SN-based ID allocation method according to an embodiment of the present invention, the method including the steps of:
a) The BMU and the n CMUs are connected into the same communication bus together, the BMU is electrified and closes the CMU power supply relay, and all the CMUs are electrified at the same time;
b) Each CMU actively transmits an ID allocation request frame after each power-on, wherein the frame message is self SN;
c) The BMU waits for and receives an ID allocation request frame sent by the CMU in the power-on T1 time and analyzes the ID allocation request frame to obtain a corresponding SN;
d) After the BMU is powered on for T1, stopping updating the SN receiving list, carrying out ascending sorting on the received SNs, allocating the ID of the CMU with the minimum SN as 1, sequentially allocating the ID of the CMU with the maximum SN as n, and updating the sorted SNs to the SN sending list;
e) According to the SN sending list, the BMU broadcasts and sends n frame ID allocation frames, and a frame message adds the allocated ID for each CMU self SN;
f) Each CMU detects an ID allocation frame containing the own SN, modifies the own ID into the ID in the corresponding frame message, and simultaneously stops sending the ID allocation request frame and replies an ID allocation confirmation frame;
g) The BMU receives the ID allocation confirmation frames of the CMUs, if the ID allocation confirmation frames are judged to be correct, the ID allocation is considered to be successful, and if the ID allocation confirmation frames are judged to be wrong, the ID allocation frames are sent to the CMUs again;
h) After the BMU is powered on for T2, judging whether ID allocation confirmation frames of all CMUs are correct, if so, considering that the ID allocation is successful, if so, reporting that the ID allocation is overtime, and returning to the step b) for reallocation;
and n is the number of battery modules in the battery pack, and n is more than or equal to 1.
As an alternative of the technical solution of the present invention, the frame ID of the ID allocation request frame is fixed and unique, and the frame message is the own SN of each CMU of 7 bytes.
As an alternative scheme of the technical scheme of the invention, each CMU automatically identifies and sets the transmission interval of the ID allocation request frame, and transmits the frame according to the delay time t of its own SN, wherein the value t is equal to the last digit of its own SN multiplied by one millisecond.
As an alternative to the technical solution of the present invention, each CMU will continuously and periodically send an ID allocation request frame before receiving an ID allocation frame of a BMU.
As an alternative to the technical solution of the present invention, the step c) specifically includes the following steps:
c1 After receiving the ID allocation request frame of a certain frame CMU, the BMU analyzes the SN of the CMU;
c2 If yes, neglecting, if not, updating the SN to the SN receiving list;
c3 Receiving SN number exceeding the maximum preset value, and the BMU immediately allocates the ID of the CMU corresponding to the SN to be 0.
As an alternative scheme of the technical scheme of the invention, after the power-on time T1, if the SN receiving list is empty, the BMU does not carry out ID allocation, and reports initialization timeout, and the step a) is returned to power-on again; if a new ID allocation request frame is received, the BMU immediately allocates the ID of the CMU corresponding to the SN as 0.
As an alternative scheme of the technical scheme of the invention, the frame ID of the ID allocation frame is fixed and unique, and the frame message is 7 bytes of each CMU self SN plus 1 byte of CMU allocation ID.
As an alternative scheme of the technical scheme of the invention, if the BMU receives m SNs, the BMU sends m frame ID allocation frames, wherein m is less than or equal to n.
As an alternative to the technical solution of the present invention, the step f) specifically includes the following steps:
f1 Receiving ID allocation frame and analyzing to obtain corresponding SN, checking whether the SN is self SN;
f2 If not, neglecting the frame, returning to the step f 1), and continuing to send the ID allocation request frame;
f3 If the ID is the SN of the user, modifying the user ID into the ID in the corresponding frame message, storing the ID in the dataflash, stopping sending the ID allocation request frame, and replying the ID allocation confirmation frame.
As an alternative of the technical solution of the present invention, if the BMU determines that the ID allocation confirmation frame of the CMU is wrong, the ID allocation frame is sent again to the CMU, and the process is repeated 3 times, and then stopped after 3 times.
As an alternative to the technical solution of the present invention, according to another embodiment of the present invention, there is provided a computer apparatus including: the system comprises a memory and a processor, wherein the memory is used for storing a computer program, the processor is in communication connection with the memory, and the SN-based ID automatic allocation method is executed when the computer program is called.
As an alternative to the technical solution of the present invention, according to another embodiment of the present invention, there is provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the above-mentioned SN-based ID automatic allocation method.
The beneficial effects obtained by the invention are as follows: according to the SN-based ID automatic allocation method provided by the invention, the master control BMU and the slave control CMU are connected through only one communication bus, so that the use of other hardware devices is reduced. According to the method, each CMU actively initiates an ID allocation request frame after each power-on, a frame message is the SN of the CMU, the BMU orders and allocates the IDs after receiving the SNs of the CMUs, then broadcasts the ID allocation frame through a bus, and each CMU analyzes and obtains the IDs after receiving the respective ID allocation frame, so that automatic ID allocation is completed. Because of the ID assignment based on the SNs of the individual CMUs, the BMUs do not need to pre-store and update ID lists, and the number may vary with the number of CMUs. Since each CMU has a corresponding ID allocation frame, ID allocation is not required in order. Because ID automatic allocation can be carried out every time power is applied, when a battery module is replaced in a battery pack, the BMU can identify in time and can carry out ID allocation on a new battery module.
The effects of the present invention are not limited to the above-described effects, and those skilled in the art can obtain effects not described above from the following description.
Drawings
Fig. 1 is a schematic diagram of the connection of a master BMU and a slave CMU according to an embodiment of the invention.
Fig. 2 is a flowchart of an SN-based ID auto-assignment method according to an embodiment of the present invention.
Fig. 3 is a flowchart of an SN-based ID automatic allocation method step c) according to an embodiment of the present invention.
Detailed Description
In order to make the technical problems, technical solutions and advantageous effects solved by the present invention more apparent, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the following specific examples are intended to illustrate the invention and are not intended to limit the invention. All other embodiments, which can be made by a person skilled in the art without any inventive effort, are based on the following examples, which fall within the scope of the invention.
It should be noted that in the description of the present invention, the terms "comprises" and "comprising" indicate the presence of the described features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof, and are merely for convenience in describing the simplified description of the present invention and thus should not be construed as limiting the present invention. In the description of the embodiments, the terms "disposed," "connected," and the like are to be construed broadly unless otherwise specifically indicated and defined. The specific meaning of the above terms in the present invention will be understood in specific cases by those of ordinary skill in the art.
First embodiment
Fig. 1 is a schematic diagram of connection between a master BMU and a slave CMU according to an embodiment of the present invention. Fig. 1 shows a battery pack, which generally includes a master BMU and a plurality of slave CMUs, where the number of CMUs is equal to the number of battery modules used in the battery pack, that is, each battery module is provided with a CMU, and the master BMU and the slave CMUs are connected through the same communication bus, typically a CAN bus, and the BMU may receive signals sent by the CMUs through the communication bus, or may broadcast signals to the CMUs. Before the battery pack works, the BMS powers on the working system, so that the BMU powers on and simultaneously closes all the CMU power supply relays, and all the CMUs power on simultaneously.
Fig. 2 is a flowchart of an automatic SN-based ID allocation method according to an embodiment of the present invention. The specific method comprises the following steps:
a) The BMU and the n CMUs are connected into the same communication bus together, the BMU is electrified and simultaneously closes all the CMU power supply relays, so that all the CMUs are electrified simultaneously, and n is the number of battery modules in the battery pack, and n is more than or equal to 1.
b) After each power-on of each CMU, actively sending an ID allocation request frame, wherein the frame message is the SN of the CMU.
Wherein, the ID of each CMU allocates the frame ID of the request frame fixedly and uniquely, and the frame message is each CMU self SN of 7 bytes. Preferably, in order to avoid communication bus collision, each CMU automatically recognizes and sets an ID allocation request frame transmission interval, and according to its SN delay t time, the value of t is the last number of bits of its SN multiplied by one millisecond. The CMU will continue to periodically send ID allocation request frames with its own SN over the communication bus to the BMU before receiving the ID allocation frames of the BMU.
After each power-on, the BMU performs ID allocation once to all the CMUs, so that ID identification errors cannot be caused when the battery module is replaced, and if the battery module is not replaced, the IDs allocated by all the CMUs are identical.
c) And the BMU waits for and receives an ID allocation request frame sent by the CMU in the power-on T1 time and analyzes the ID allocation request frame to obtain a corresponding SN.
As shown in fig. 3, in the embodiment of the present invention, a flow chart of a SN-based ID automatic allocation method step c), the step c) specifically includes the steps of:
c1 After receiving the ID allocation request frame of a certain frame CMU, the BMU analyzes the SN of the CMU;
c2 If yes, neglecting, if not, updating the SN to the SN receiving list;
c3 Receiving SN number exceeding the maximum preset value, and the BMU immediately allocates the ID of the CMU corresponding to the SN to be 0.
The maximum preset value of the SN number is the maximum number of the battery modules which can be accommodated by the current battery pack, at the moment, the CMU with the allocated ID of 0 cannot be allocated with the ID in the subsequent ID allocation, the error of the system ID allocation is reported, the number of the battery modules is checked, and the step a) is returned to be electrified again for reallocation.
d) After the BMU is powered on for T1, stopping updating the SN receiving list, carrying out ascending sorting on the received SNs, allocating the ID of the CMU with the minimum SN as 1, sequentially allocating the ID of the CMU with the maximum SN as n, and updating the sorted SNs to the SN sending list.
After the BMU is powered on for T1, stopping updating the SN receiving list, keeping continuously receiving the ID allocation request frame, if a new ID allocation request frame is received, immediately allocating the ID of the CMU corresponding to the SN to be 0 by the BMU, wherein the CMU with the allocated ID of 0 is not allocated with the ID in the subsequent ID allocation, reporting the error of system ID allocation, checking the number of the battery modules, and returning to the step a) to be powered on again for reallocation.
After the power-on T1 time, the BMU judges the SN receiving list, if the SN receiving list is empty, the BMU does not carry out ID allocation, and the system initialization is overtime, the number of the battery modules is checked, and the step a) is returned to power-on again for reallocation. If the SN receiving list is not empty, ascending order is carried out on the SNs of the receiving list, the ID of the CMU with the smallest SN is allocated to be 1, and the IDs of the CMUs with the largest SNs are sequentially allocated to be n, namely, each allocated CMU with the ID of 7 bytes is added with the ID of the CMU with the ID of 1 byte. And then updating the sorted SNs to the SN sending list.
Because the SN of each CMU is fixed and unique, when no battery module replacement occurs in the battery pack, the SN receiving list received by the BMU each time is the same, and the ordering order is the same, so that the ID allocated by each CMU is the same. If the battery module is replaced or increased or decreased in the battery pack, the new SN receiving list received by the BMU is changed, so that the ID allocated by the CMU is different compared with the case that the battery module is not replaced.
e) According to the SN sending list, the BMU broadcasts and sends n frame ID allocation frames, and the frame message adds the allocated ID for each CMU self SN.
Wherein, the frame ID of the ID allocation frame is fixed and unique, and the frame message is the 7-byte each CMU self SN plus the 1-byte CMU allocation ID. If the SN receiving list or the SN sending list has only m SNs, the BMU sends m frame ID allocation frames, wherein m is less than or equal to n.
f) When each CMU detects the ID allocation frame containing the own SN, the own ID is modified into the ID in the corresponding frame message, and simultaneously, the sending of the ID allocation request frame is stopped, and the ID allocation confirmation frame is replied.
Each CMU receives the ID allocation frame from the communication bus, parses the ID allocation frame, obtains a corresponding SN, and determines the SN. If the received ID allocation frame is not the SN of the self, ignoring the ID allocation frame and analyzing other ID allocation frames, and simultaneously continuing to send an ID allocation request frame; if the ID is the SN of the user, the user's ID is modified into the ID in the corresponding frame message and stored in the dataflash, and the sending of the ID allocation request frame is stopped, and the ID allocation confirmation frame is replied at the same time.
g) The BMU receives the ID allocation confirmation frame of each CMU, if the ID allocation confirmation frame is judged to be correct, the BMU considers that the ID allocation is successful, and if the ID allocation confirmation frame is judged to be wrong, the BMU sends the ID allocation frame again to the CMU.
The BMU receives the ID allocation confirmation frame of each CMU through the communication bus, wherein the ID allocation confirmation frame ID is the new ID allocated by the CMU. The BMU judges the ID allocation confirmation frames of the received CMUs, if the ID allocation confirmation frames correspond to the SN of the CMU, the BMU judges that the ID allocation confirmation frames are correct, and considers that the ID allocation is successful. If the judgment is wrong, the corresponding ID allocation frame is sent again to the CMU, and the ID allocation confirmation frame of the CMU is judged again. If the ID allocation confirmation frame of the CMU is not received, the corresponding ID allocation frame is sent again to the CMU. Repeating the steps for 3 times, stopping after 3 times, and reporting the system ID allocation error.
h) After the BMU is powered on for T2, judging whether the ID allocation confirmation frames of all CMUs are correct, if so, considering that the ID allocation is successful, if so, reporting that the ID allocation is overtime, and returning to the step b) for reallocation.
After the power-on time T2, namely when the BMU does not send out the ID allocation frame any more, the BMU judges all the received ID allocation confirmation frames, and if the ID allocation confirmation frames of all the CMUs are judged to be correct, the ID allocation is considered to be successful. If the ID allocation confirmation frame result of the CMU is judged to be wrong, reporting the system ID allocation overtime, and returning to the step b) for reallocation.
In summary, the SN-based ID automatic allocation method has the following beneficial effects:
(1) In the method, the master control BMU and the slave control CMU are connected through only one communication bus, so that the use of other hardware equipment is reduced, and the situation that a battery pack fails due to hardware problems is reduced.
(2) Since this method is based on ID allocation by the SN of each CMU itself, the BMU does not need to pre-store and update ID lists, and the number can vary (within a maximum preset range) with the number of CMUs.
(3) Because each CMU in the method has a corresponding ID allocation frame, the BMU can allocate the IDs of all the CMUs at the same time without sequentially allocating the IDs of the CMUs in sequence.
(4) Because the method can automatically allocate the ID when the battery pack is electrified every time, when the battery pack is replaced with the battery module, the BMU can identify in time and allocate the ID to the new battery module.
The effects of the present invention are not limited to the effects listed above, and those skilled in the art can derive effects not described above from the description.
Second embodiment
The present invention also provides a computer device comprising a memory and a processor when implemented in software according to some or all of the technical solutions described in the first embodiment. The memory stores a computer program, and the processor is in communication connection with the memory, and executes the SN-based ID automatic allocation method according to the invention when the computer program is called.
The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU for short), a network processor (Network Processor, NP for short), etc.; but also digital signal processors (Digital Signal Processing, DSP for short), application specific integrated circuits (Application Specific Integrated Circuit, ASIC for short), field programmable gate arrays (Field Programmable Gate Array, FPGA for short) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
Third embodiment
The present invention also provides a computer-readable storage medium having stored thereon a computer program which, when called by a processor, implements the SN-based ID automatic allocation method of the present invention as described above. The computer-readable storage media may each include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, apparatus, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media having computer-usable program code embodied therein.
The embodiments of the SN-based ID automatic allocation method, apparatus and storage medium described above are only illustrative of preferred embodiments and are not intended to limit the present invention, and any modifications, equivalent substitutions, improvements, etc. within the spirit and principles of the present invention should be included in the scope of the present invention. In addition, the technical solutions between the embodiments may be combined with each other, but must be based on the implementation by those of ordinary skill in the art; when the combination of the technical solutions is contradictory or impossible to realize, it should be considered that the combination of the technical solutions does not exist and is not within the scope of protection claimed by the present invention.
Claims (12)
1. An automatic ID allocation method based on SN is characterized by comprising the following steps:
a) The BMU and the n CMUs are connected into the same communication bus together, the BMU is electrified and closes the CMU power supply relay, and all the CMUs are electrified at the same time;
b) Each CMU actively transmits an ID allocation request frame after each power-on, wherein the frame message is self SN;
c) The BMU waits for and receives an ID allocation request frame sent by the CMU in the power-on T1 time and analyzes the ID allocation request frame to obtain a corresponding SN;
d) After the BMU is powered on for T1, stopping updating the SN receiving list, carrying out ascending sorting on the received SNs, allocating the ID of the CMU with the minimum SN as 1, sequentially allocating the ID of the CMU with the maximum SN as n, and updating the sorted SNs to the SN sending list;
e) According to the SN sending list, the BMU broadcasts and sends n frame ID allocation frames, and a frame message adds the allocated ID for each CMU self SN;
f) Each CMU detects an ID allocation frame containing the own SN, modifies the own ID into the ID in the corresponding frame message, and simultaneously stops sending the ID allocation request frame and replies an ID allocation confirmation frame;
g) The BMU receives the ID allocation confirmation frames of the CMUs, if the ID allocation confirmation frames are judged to be correct, the ID allocation is considered to be successful, and if the ID allocation confirmation frames are judged to be wrong, the ID allocation frames are sent to the CMUs again;
h) After the BMU is powered on for T2, judging whether ID allocation confirmation frames of all CMUs are correct, if so, considering that the ID allocation is successful, if so, reporting that the ID allocation is overtime, and returning to the step b) for reallocation;
and n is the number of battery modules in the battery pack, and n is more than or equal to 1.
2. The automatic SN-based ID allocation method of claim 1 wherein the frame ID of the ID allocation request frame is fixed and unique and the frame message is the 7-byte individual CMU's own SN.
3. The SN-based ID automatic allocation method of claim 1 wherein each CMU automatically recognizes and sets an ID allocation request frame transmission interval according to its own SN delayed by a time t equal to the last digit of the respective SN multiplied by one millisecond.
4. The SN-based ID automatic allocation method of claim 1 wherein each CMU will continue to periodically transmit ID allocation request frames before receiving an ID allocation frame for a BMU.
5. The SN-based ID automatic allocation method according to claim 1, wherein the step c) comprises the steps of:
c1 After receiving the ID allocation request frame of the CMU, the BMU analyzes the SN of the CMU;
c2 If yes, neglecting, if not, updating the SN to the SN receiving list;
c3 Receiving SN number exceeding the maximum preset value, and the BMU immediately allocates the ID of the CMU corresponding to the SN to be 0.
6. The automatic SN-based ID allocation method of claim 5, wherein after power-up T1 time, if the SN reception list is empty, the BMU does not perform ID allocation and reports an initialization timeout, returning to step a) to power up again; if a new ID allocation request frame is received, the BMU immediately allocates the ID of the CMU corresponding to the SN as 0.
7. The SN-based ID automatic allocation method of claim 1 wherein the frame ID of the ID allocation frame is fixed and unique, and the frame message is 7 bytes of each CMU's own SN plus a 1 byte CMU allocation ID.
8. The SN-based ID automatic allocation method of claim 7 wherein the BMU sends an m-frame ID allocation frame if it receives m SNs, where m n.
9. The SN-based ID automatic allocation method according to claim 1, wherein the step f) specifically comprises the steps of:
f1 Receiving ID allocation frame and analyzing to obtain corresponding SN, checking whether the SN is self SN;
f2 If not, neglecting the frame, returning to the step f 1), and continuing to send the ID allocation request frame;
f3 If the ID is the SN of the user, modifying the user ID into the ID in the corresponding frame message, storing the ID in the dataflash, stopping sending the ID allocation request frame, and replying the ID allocation confirmation frame.
10. The SN-based ID automatic allocation method of claim 9 wherein the BMU determines that the ID allocation confirm frame of the CMU is erroneous, and resends the ID allocation frame to the CMU 3 times, and stops after 3 times.
11. A computer device, comprising: a memory for storing a computer program, and a processor in communication with the memory, the processor executing the SN-based ID auto-assignment method of any of claims 1-10 when the computer program is invoked.
12. A computer readable storage medium having stored thereon a computer program, which when executed by a processor, implements the SN-based ID automatic allocation method of any one of claims 1 to 10.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311496151.6A CN117240821B (en) | 2023-11-10 | 2023-11-10 | SN-based ID automatic allocation method, device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311496151.6A CN117240821B (en) | 2023-11-10 | 2023-11-10 | SN-based ID automatic allocation method, device and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN117240821A CN117240821A (en) | 2023-12-15 |
CN117240821B true CN117240821B (en) | 2024-01-26 |
Family
ID=89098604
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311496151.6A Active CN117240821B (en) | 2023-11-10 | 2023-11-10 | SN-based ID automatic allocation method, device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117240821B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117908935B (en) * | 2024-03-19 | 2024-05-24 | 绿进新能源科技(常熟)有限公司 | Battery pack orientation OTA method, device and storage medium based on ID |
CN118231813B (en) * | 2024-05-23 | 2024-08-27 | 绿进新能源科技(常熟)有限公司 | BMS management parameter self-adaption method, device and storage medium based on ID allocation |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103809476A (en) * | 2014-02-24 | 2014-05-21 | 中国第一汽车股份有限公司 | Dynamic management method for IDs of module control units of distributed battery management system |
CN111384455A (en) * | 2020-04-14 | 2020-07-07 | 杭州协能科技股份有限公司 | BMS multi-machine parallel implementation system |
CN114270593A (en) * | 2019-07-11 | 2022-04-01 | 上达股份有限公司 | Battery system and battery management method |
CN116155865A (en) * | 2023-01-05 | 2023-05-23 | 惠州市德赛智储科技有限公司 | BMS slave board address automatic allocation method, allocation system and storage medium |
CN116708374A (en) * | 2023-08-04 | 2023-09-05 | 杭州协能科技股份有限公司 | Address allocation method for energy storage system |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR102005771B1 (en) * | 2012-02-24 | 2019-10-01 | 삼성전자주식회사 | Method and apparatus for providing ip address in wireless communication network |
US20170286356A1 (en) * | 2016-04-01 | 2017-10-05 | Intel Corporation | Enhanced quality of service mechanism for ma usb protocol |
-
2023
- 2023-11-10 CN CN202311496151.6A patent/CN117240821B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103809476A (en) * | 2014-02-24 | 2014-05-21 | 中国第一汽车股份有限公司 | Dynamic management method for IDs of module control units of distributed battery management system |
CN114270593A (en) * | 2019-07-11 | 2022-04-01 | 上达股份有限公司 | Battery system and battery management method |
CN111384455A (en) * | 2020-04-14 | 2020-07-07 | 杭州协能科技股份有限公司 | BMS multi-machine parallel implementation system |
CN116155865A (en) * | 2023-01-05 | 2023-05-23 | 惠州市德赛智储科技有限公司 | BMS slave board address automatic allocation method, allocation system and storage medium |
CN116708374A (en) * | 2023-08-04 | 2023-09-05 | 杭州协能科技股份有限公司 | Address allocation method for energy storage system |
Also Published As
Publication number | Publication date |
---|---|
CN117240821A (en) | 2023-12-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN117240821B (en) | SN-based ID automatic allocation method, device and storage medium | |
US8898341B2 (en) | Method of allocating unique identifier and battery management system using the same | |
EP2456241B1 (en) | Processing method and system for fota update | |
CN112272243B (en) | Address allocation method | |
CN111384455B (en) | BMS multi-machine parallel implementation system | |
CN102223680B (en) | Flow control method, equipment and system | |
CN109417722B (en) | Terminal device, base station device, and method for controlling QOS | |
CN109560835B (en) | Power communication multi-channel monitoring method and device, computer equipment and storage medium | |
CN116800788A (en) | Energy storage system data transmission method and device, electronic equipment and storage medium | |
CN103457748A (en) | Data transmission method, system and device | |
CN116505648A (en) | Fault reporting method, system, ammeter box and storage medium | |
CN116582433A (en) | Upgrading method of master machine and multi-slave machine and electronic equipment | |
CN113938351A (en) | Data acquisition method, system and computer readable storage medium | |
US11457507B2 (en) | Communication system for serial communication between communication devices | |
CN113473563B (en) | Distribution method, mobile network switching method, system, server and medium | |
CN113162796B (en) | Equipment updating method, device and system | |
CN115412782A (en) | Bandwidth adjusting method and device, storage medium and electronic device | |
CN117908935B (en) | Battery pack orientation OTA method, device and storage medium based on ID | |
CN102571277A (en) | Method and device for sending serial number detection message | |
CN117544596B (en) | Automatic address allocation method for telemetry system, telemetry system and storage medium | |
CN118231813B (en) | BMS management parameter self-adaption method, device and storage medium based on ID allocation | |
CN118018526A (en) | Automatic rollback-based high-voltage BMS address traversal method and system | |
CN115811470B (en) | Asynchronous data processing method and system based on high-availability message frame | |
CN108983670A (en) | A method of the EEPROM multiple spot suitable for new-energy automobile electric-control system is read and write | |
CN109982450B (en) | Communication link repairing method, device, coordinator and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |