CN111123780B - Number configuration method and device, electronic equipment and storage medium - Google Patents
Number configuration method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN111123780B CN111123780B CN201911340518.9A CN201911340518A CN111123780B CN 111123780 B CN111123780 B CN 111123780B CN 201911340518 A CN201911340518 A CN 201911340518A CN 111123780 B CN111123780 B CN 111123780B
- Authority
- CN
- China
- Prior art keywords
- csc
- bmu
- numbering
- level
- cscs
- 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
Images
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
- G05B19/042—Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
- G05B19/0423—Input/output
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/20—Pc systems
- G05B2219/21—Pc I-O input output
- G05B2219/21119—Circuit for signal adaption, voltage level shift, filter noise
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Charge And Discharge Circuits For Batteries Or The Like (AREA)
Abstract
The application provides a number configuration method and device, electronic equipment and a storage medium. The numbering configuration method provided by the application is applied to a BMS (battery management system), wherein the BMS comprises a plurality of CSCs (programmable logic controllers) which are sequentially connected and a BMU (BMU) connected with all the CSCs, an output port of the BMU is connected with an input port of the first CSC, and an input port of the BMU is connected with an output port of the last CSC. First, an initialization operation is performed, configuring the output ports of the BMU to a first level and the output ports of all CSCs to a second level. When the input port of the first CSC is acquired to be at the first level, the first CSC sends a numbering request to the BMU, the first CSC is any one CSC in the BMS, and the BMU sends the current number to the first CSC according to the numbering request, so that the first CSC completes self-numbering configuration according to the current number and configures a self-output port to be at the first level. Each CSC realizes automatic numbering without manual intervention, thereby saving labor and time cost, avoiding errors caused by manual intervention and improving the management quality of the system.
Description
Technical Field
The present application relates to the field of system management technologies, and in particular, to a number configuration method and apparatus, an electronic device, and a storage medium.
Background
At present, a Battery Management System (Battery Management System, hereinafter referred to as BMS) of a new energy commercial vehicle and an energy storage System widely adopts distributed Management, and belongs to a master-slave type architecture, namely, the BMS comprises a Battery Management master control Unit (Battery Management Unit, hereinafter referred to as BMU) and a Battery Management slave control Unit (Cell supervisory Circuit, hereinafter referred to as CSC), and the whole BMS consists of one BMU, a plurality of CSCs and related wiring harnesses. The main functions of each CSC are to collect information such as battery voltage and temperature, and Control battery equalization, and the BMU mainly functions to collect information such as voltage, temperature, and battery equalization uploaded by all CSCs through an internal Controller Area Network (CAN) bus, and accordingly communicates with an Electronic Control Unit (ECU) of a whole vehicle to Control charging and discharging of the vehicle, thereby implementing operation and Control of the entire battery management system.
Since the number of CSCs in a BMS system is usually more than one, numbering the CSC configurations is an essential task in order for the BMS to be able to distinguish and manage the data uploaded by the different CSCs. In the prior art, for the serial number configuration of the CSCs, usually, in the BMS system construction link, a manufacturer configures the serial number in each CSC by using a CAN message through an upper computer.
However, the CSC number configuration method, the configuration process, and the post-numbering maintenance adopted in the prior art have various problems, such as time and labor consuming manual configuration of numbers and low configuration efficiency. The CSCs which are already numbered and configured need to be classified and managed in a warehouse due to different numbers, and when the CSCs have faults, damage and other abnormalities and need to be replaced, the abnormal CSCs need to be exported in advance, and then the exported numbers are configured to new CSCs.
Disclosure of Invention
The application provides a number configuration method, a number configuration device, an electronic device and a storage medium, which are used for solving the technical problems that the existing CSC number configuration and maintenance need to invest labor and/or time cost, and manual intervention is easy to generate errors so as to influence the management quality.
In a first aspect, the present application provides a numbering configuration method, applied to a battery management system BMS, the BMS including a plurality of battery management slave control units CSC and a battery management master control unit BMU connected to all the CSCs, the output port of the BMU being connected to the input port of the first CSC, the input port of the BMU being connected to the output port of the last CSC; the method comprises the following steps:
an initialization operation for configuring output ports of the BMU to a first level and configuring output ports of all CSCs to a second level;
when an input port where a first CSC is acquired is at the first level, the first CSC sends a numbering request to the BMU, and the first CSC is any one CSC in the BMS;
the BMU sends a current number to the first CSC according to the number request, so that the first CSC completes its own number configuration according to the current number and configures its own output port to the first level.
In one possible design, after the first CSC completes its own number configuration according to the current number and configures its own output port to the first level, the method further includes:
the first CSC transmits an acknowledgement instruction to the BMU indicating that the first CSC has completed numbering plan.
In one possible design, before the BMU sending the current number to the first CSC according to the number request, the method further includes:
when the first CSC is the first CSC, the BMU determines that a first number is the current number;
when the first CSC is not the first CSC, the BMU determines the current number according to the confirmation instruction.
In one possible design, the method further includes:
and when the input port of the BMU is acquired to be the first level, the BMS finishes the numbering configuration.
In one possible design, the method further includes:
reinitializing operation for reconfiguring output ports of the BMU to the first level and output ports of all CSCs to the second level when a numbering anomaly occurs.
Optionally, the current number is a consecutive incremental number.
In a second aspect, the present application provides a numbering and configuring device applied to a battery management system BMS, the BMS including a plurality of battery management slave control units CSC connected in sequence and a battery management master control unit BMU connected to all the CSCs, an output port of the BMU being connected to an input port of a first CSC, and an input port of the BMU being connected to an output port of a last CSC; the apparatus, comprising:
an initialization module to initialize operation, the initialization to configure output ports of the BMU to a first level and to configure output ports of all CSCs to a second level;
a first sending module, configured to send a numbering request to the BMU when an input port that acquires a first CSC is the first level, where the first CSC is any one of the CSCs in the BMS;
a processing module, configured to send, by the BMU, a current number to the first CSC according to the number request, so that the first CSC completes self-number configuration according to the current number and configures a self output port to the first level.
In one possible design, the first sending module is further configured to:
sending an acknowledgement instruction to the BMU, the acknowledgement instruction to indicate that the first CSC has completed numbering configuration.
In one possible design, the processing module is further configured to:
when the first CSC is the first CSC, determining that a first number is the current number;
determining the current number according to the confirmation instruction when the first CSC is not the first CSC.
In one possible design, the apparatus further includes:
and when the input port of the BMU is acquired to be the first level, the BMS finishes the numbering configuration.
In one possible design, the initialization module is further configured to:
reinitializing operation for reconfiguring output ports of the BMU to the first level and output ports of all CSCs to the second level when a numbering anomaly occurs.
Optionally, the current number is a consecutive incremental number.
In a third aspect, the present application provides an electronic device, which is applied to a battery management system BMS, the BMS including a plurality of battery management slave control units CSC and a battery management master control unit BMU connected to all the CSCs, the output port of the BMU being connected to the input port of the first CSC, and the input port of the BMU being connected to the output port of the last CSC; the electronic device includes:
a processor; and
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the numbering configuration method of the first aspect and optional aspects via execution of the executable instructions.
In a fourth aspect, the present application provides a non-transitory microcontroller-readable storage medium having stored therein microcontroller instructions for causing the microcontroller to perform the numbering configuration method of the first aspect and optional aspects.
The numbering configuration method, the numbering configuration device, the electronic equipment and the storage medium are applied to a BMS (battery management system), the BMS comprises a plurality of CSCs (programmable logic controllers) which are sequentially connected and a BMU connected with all the CSCs, wherein an output port of the BMU is connected with an input port of the first CSC, and an input port of the BMU is connected with an output port of the last CSC. First, an initialization operation is performed, where the initialization is used to configure the output port of the BMU to a first level and configure the output ports of all CSCs to a second level, then, when the input port that acquires the first CSC is the first level, the current first CSC sends a numbering request to the BMU, and the first CSC is any one CSC among the CSCs of the BMS, and then the BMU sends the current number to the current first CSC according to the numbering request, so that the CSC completes its own number configuration according to the current number, and configures its own output port to the first level. Therefore, each CSC can automatically complete the numbering configuration without manual intervention, manpower and time cost are saved, errors caused by manual intervention are avoided, and the system management quality is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is an application scenario diagram of a number configuration method according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a numbering configuration method according to an embodiment of the present application;
fig. 3 is a schematic diagram illustrating a connection structure of a BMS provided in an embodiment of the present application;
fig. 4 is a schematic structural diagram of a numbering device according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
With the foregoing drawings in mind, certain embodiments of the disclosure have been shown and described in more detail below. These drawings and written description are not intended to limit the scope of the disclosed concepts in any way, but rather to illustrate the concepts of the disclosure to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of methods and apparatus consistent with certain aspects of the present application, as detailed in the appended claims.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims of the present application and in the above-described drawings (if any) are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are, for example, capable of operation in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
At present, with the rapid development of new energy technologies, the related technologies in the technical fields of new energy commercial vehicles, energy storage systems and the like are also rapidly developed. The importance of a Battery Management System (BMS) applied thereto is becoming more prominent. Currently, the BMS widely adopts distributed Management, that is, the BMS includes a Battery Management Unit (BMU) and a plurality of Battery Management slave units (CSCs). The main functions of each CSC are to collect information such as battery voltage and temperature, and Control battery balance, and the main function of the BMU is to collect data uploaded by all CSCs through a Controller Area Network (CAN) bus, and accordingly, communicate with an Electronic Control Unit (ECU) of the entire vehicle to Control charging and discharging of the vehicle, thereby implementing operation and Control of the battery management system. Thus, in order for a BMS to distinguish and manage data uploaded by different CSCs, multiple CSCs need to be numbered. In the prior art, a technician usually configures a fixed serial number for each CSC through a CAN message in a system construction link of the BMS, in other words, manually configures a serial number for each CSC through a pre-configuration method in the prior art. However, this numbering configuration method has various problems both during configuration and in post-maintenance. For example, manual numbering configuration is time-consuming and labor-consuming, and the configuration efficiency is very low. Moreover, the method for pre-configuring the numbers configures the finished numbers, needs manual CSC classification management of different numbers in a warehouse, and is not beneficial to later maintenance. Moreover, once any CSC is abnormal and needs to be replaced, the number of the abnormal CSC needs to be derived in advance, and then the number is manually configured to a new CSC, so that the operation process is complicated, and the system maintenance and management are not facilitated. In addition, the processes all need manual intervention, errors are easy to occur, and the management quality of the system is affected.
In view of the above problems in the prior art, the numbering configuration method, apparatus, electronic device and storage medium provided by the present application are applied to a BMS including a plurality of CSCs connected in sequence and a BMU connected to all the CSCs, wherein an output port of the BMU is connected to an input port of a first CSC and an input port of the BMU is connected to an output port of a last CSC. First, an initialization operation is performed, the initialization being used to configure the output ports of the BMU to a first level and to configure the output ports of all CSCs to a second level. Thereafter, when the input port to which the first CSC is acquired is at the first level, the current first CSC sends a numbering request to the BMU, and the first CSC is any one of the CSCs of the BMS, and then the BMU sends the current number to the current first CSC according to the numbering request, so that the CSC completes its own number configuration according to the current number, and configures its own output port to the first level. Therefore, each CSC can automatically complete serial number configuration, compared with the prior art, the configuration efficiency is improved, later-stage system maintenance is facilitated, errors caused by manual intervention are avoided, and the system management quality is improved.
The technical solution of the present application will be described in detail below with specific examples. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments.
Fig. 1 is an application scenario diagram of a number configuration method according to an embodiment of the present application. As shown in fig. 1, the numbering configuration method provided by the present application is applied to a BMS including a plurality of CSCs connected in sequence and a BMU connected to all the CSCs, an output port of the BMU being connected to an input port of the first CSC and an input port of the BMU being connected to an output port of the last CSC. The BMS can be applied to the new energy commercial vehicle and the energy storage system, the new energy commercial vehicle 1 is shown as an example in fig. 1, the embodiment of the present application is not limited to a specific vehicle type of the new energy commercial vehicle 1, and all new energy commercial vehicles using the BMS can automatically complete the numbering configuration by using the numbering configuration method provided by the embodiment of the present application, and it can be understood that the BMS in the energy storage system is also applicable. The electronic device executing the numbering configuration method provided by the embodiment of the present application in the BMS may be a microcontroller, a computer, a notebook computer, a tablet computer, a mobile phone, and other devices with a processor, and is exemplified by the microcontroller 2 in fig. 1. The configuration number in fig. 1 is BMS 3. It should be noted that the numbering scheme provided in the embodiments of the present application may be implemented by the electronic device with a processor configured in the BMU and each CSC, or may be implemented by the electronic device configured in the entire BMS system, or may be implemented by another electronic device capable of implementing the numbering scheme in the control system of the BMS, and the embodiments of the present application are not limited thereto. It should be noted that the numbering configuration method provided by the present application is not limited to be applied to the BMS, and in a certain control system, the system includes a master control unit and a plurality of slave control units, and the connection relationship between the master control unit and the plurality of slave control units is the same as that of the BMS provided by the embodiment of the present application, the numbering configuration method provided by the present application can be adopted to configure numbers for the plurality of slave control units.
Referring to fig. 1, a plurality of CSCs are included in the BMS, and thus, it is necessary to configure a number for each CSC to distinguish and manage each CSC according to the number to achieve control management of the entire system. First, when the BMS system is powered on, the BMU and all the CSCs operate simultaneously, and an initialization operation is started, in which the output ports of the BMU are configured to a first level and the output ports of all the CSCs are configured to a second level. Then, when the input port of the first CSC is at the first level, the first CSC sends a numbering request to the BMU, wherein the first CSC is any one CSC in the BMS, and the BMU sends the current number to the first CSC according to the received numbering request, so that the first CSC can complete its own numbering configuration according to the current number, and at the same time, configures its own output port to be at the first level. Therefore, each CSC can automatically complete the numbering configuration without manual intervention, manpower and time cost are saved, errors caused by manual intervention are avoided, and the system management quality is improved.
The following describes a number configuration method, a number configuration apparatus, an electronic device, and a storage medium provided in the present application with reference to detailed embodiments. It should be noted that electronic devices, such as a Microcontroller Unit (MCU) for example, are configured in the BMU and all CSCs in the BMS system to execute the number configuration method.
Fig. 2 is a flowchart illustrating a numbering configuration method according to an embodiment of the present disclosure, where the numbering configuration method according to the embodiment of the present disclosure is applied to a BMS, the BMS includes a plurality of CSCs connected in sequence and a BMU connected to all the CSCs, and an output port of the BMU is connected to an input port of a first CSC and an input port of the BMU is connected to an output port of a last CSC. As shown in fig. 2, the number configuration method provided in this embodiment includes:
s201: and (5) initializing operation.
Wherein the initialization is for configuring the output ports of the BMU to a first level and the output ports of all CSCs to a second level.
The numbering configuration method provided by the embodiment of the application can automatically number and configure a plurality of CSCs in a BMS, wherein the BMU comprises a BMU and a plurality of CSCs which are connected in sequence, the BMU and each CSC respectively have an input port and an output port, the output port of the BMU is connected with the input port of the first CSC in all the CSCs, the input port of the BMU is connected with the output port of the last CSC in all the CSCs, in addition, the output port of each CSC is connected with the input port of the next CSC, and the connections can be directly connected through an address allocation line. And the third end of each CSC communicates with the BMU and adjacent CSCs through the CAN bus, namely, each CSC uploads data to the BMU through the CAN bus and communicates with adjacent CSCs, thereby completing the operation and control of the whole BMS.
When the system is powered on, the BMU and each CSC start to work at the same time, and the MCU in the BMU and each CSC can acquire the level state of the input port of the MCU and control the level state of the output port of the unit where the MCU is located by running embedded software. At this point, the BMU and all CSCs are in an initialization run. Specifically, the BMU configures its output ports to a first level and all CSCs configure their respective output ports to a second level, i.e., initialization is used to configure the output ports of the BMU to the first level and the output ports of all CSCs to the second level.
It will be appreciated that the BMS is powered up during normal operation, and that each time the system is powered up, i.e. the start of the BMS system is initiated to bring it into operation, the BMU and all CSCs in the BMS are initially operated to cooperate with all CSCs to automatically configure a serial number for each CSC.
It is worth mentioning that the BMS provided by the embodiments of the present application includes a plurality of CSCs, wherein the plurality indicates that the number of CSCs is at least two. And, in the embodiment of the present application, the first level and the second level are one of a high level or a low level, but it is necessary to satisfy the condition: when the first level is high level, the second level is low level; when the first level is a low level, the second level is a high level.
S202: when the input port to which the first CSC is acquired is at the first level, the first CSC sends a numbering request to the BMU.
Wherein, the first CSC is any one CSC in the BMS.
After the system is powered on, the BMU and each CSC start to operate simultaneously, at this time, the BMU and all CSCs perform initialization operation, the BMU configures its own output port to a first level, all CSCs configure their own output ports to a second level, and then each CSC acquires the level state of its own input port, and when the acquired input port is the first level, the CSC transmits a numbering request to the BMU. In other words, any one CSC in the BMS acquires the level status of its input port, and when it acquires that its input port is at the first level, the CSC sends a numbering request to the BMU. For convenience of description, any one CSC in the BMS may be characterized by the first CSC here.
Specifically, when the MCU in the first CSC acquires that the input port of the CSC where the MCU is located is the first level, the MCU sends a numbering request to the MCU in the BMU through the CAN bus. It will be appreciated that the numbering request is then a request that the first CSC currently needs to configure the numbering.
S203: the BMU sends the current number to the first CSC according to the number request, so that the first CSC completes its own number configuration according to the current number and configures its own output port to the first level.
After receiving the number request sent by the first CSC, the BMU sends the current number to the first CSC according to the number request, where the current number is the number that the first CSC is configured to. The BMU sends the current number to the first CSC in order for the first CSC to complete its own number configuration according to the current number and, at the same time, configure its own output port to the first level.
Specifically, after the MCU in the BMU receives the numbering request sent by the MCU of the first CSC, the MCU in the BMU sends the current number to the MCU of the first CSC according to the numbering request, and the MCU in the first CSC completes its own numbering configuration according to the current number, and at the same time, configures the output port of the CSC where it is located as the first level.
It should be noted that, for the specific form of the present numbering, the embodiments of the present application are not limited, and for example, the present application may be a number, or may be a code recognized in the system.
As described before, the output port of the BMU in the BMS is connected to the input port of the first CSC, the input port of the BMU is connected to the output port of the last CSC, and in addition to that, the output port of each CSC is connected to the input port of the next CSC in turn. Thus, among all CSCs, the first CSC that first acquires that the input port is at the first level is then the first CSC connected to the output port of the BMU, in other words, the CSC that first completes the numbering configuration among all CSCs is the first CSC, and all CSCs complete the numbering configuration in sequence according to the order of the sequential connection.
The above-mentioned steps S202 to S203 may be understood as loop steps, e.g., assuming that the first CSC is the first CSC, after the first CSC completes the numbering configuration and configures its own output terminal to the first level, since the output port of the first CSC is connected to the input port of the next CSC adjacent to it, the input port of the next CSC, which is available at this time, is at the first level, the next CSC sends a numbering request to the BMU, which sends the current numbering to the next CSC according to the numbering request, such that the next CSC completes its own number configuration according to the received current number and configures its own output port to the first level, at which time, it may be obtained that the input port of the further next CSC connected to the output port of the next CSC is at the first level, the next CSC proceeds to step S202 and so on so that all CSCs can complete the numbering configuration in turn according to the order of successive connections.
So far, the BMU in the BMS can be made to interact with all CSCs by the above steps S201 to S203, and numbering configuration is automatically performed for each CSC.
Optionally, when the input port acquired to the BMU is at the first level, the BMS ends the numbering configuration.
In the BMS, the input port of the BMU is connected to the output port of the last CSC of all CSCs, and it can be acquired that the input port of the BMU is at the first level only when the output port of the last CSC is configured to the first level, and the last CSC has completed its own numbering configuration when the output port of the last CSC is configured to the first level. Thus, when the input port to the BMU is at the first level, the BMS ends the numbering configuration for all CSCs.
It will be appreciated that when an MCU in a BMU acquires its own input port as a first level, the entire BMS ends the numbering configuration for all CSCs. It is worth noting that the acquisition of the level status of the input ports of the BMU as well as all CSCs is done in real time.
The numbering configuration method provided by this embodiment is applied to a BMS including a plurality of CSCs connected in sequence and a BMU connected to all the CSCs, and the output port of the BMU is connected to the input port of the first CSC and the input port of the BMU is connected to the output port of the last CSC. After the system is powered on, performing initialization operation to configure the output port of the BMU to be a first level and configure the output ports of all the CSCs to be a second level, and then, in the BMS, when the input port of the first CSC is acquired to be the first level, the first CSC sends a numbering request to the BMU, wherein the first CSC is any one CSC in the BMS, the BMU sends a current number to the first CSC according to the numbering request after receiving the numbering request, the first CSC receives the current number and completes self-numbering configuration according to the current number, and meanwhile, the first CSC configures the output port of the first CSC to be the first level. Thus, an automatic numbering configuration for each CSC is achieved by the interaction of the BMU and all CSCs in the BMS. Manual intervention is not needed, labor and time cost are saved, errors caused by manual intervention are avoided, and system management quality is improved.
On the basis of the foregoing embodiment, optionally, after the first CSC completes self-numbering configuration according to the current number and configures a self-output port to the first level, the numbering configuration method provided in the embodiment of the present application further includes:
the first CSC sends an acknowledgement instruction to the BMU.
Wherein the confirmation instruction is used to indicate that the first CSC has completed the numbering plan.
It will be appreciated that any one CSC in the BMS, after having completed its own numbering configuration according to the current numbering and configured its output port to the first level, will send an acknowledgement instruction to the BMU indicating that the current CSC has completed its own numbering configuration according to the current numbering, and may be the first CSC.
Specifically, after the MCU of any one of the CSCs in the BMS, i.e., the MCU of the first CSC, completes its own number configuration and configures the output port of the CSC where it is located as the first level, the MCU of the CSC sends a confirmation instruction to the MCU in the BMU, where the confirmation instruction indicates that the MCU of the current CSC has completed its own number configuration according to the current number.
In the numbering configuration method provided by this embodiment, after the first CSC completes its own numbering configuration according to the current number and configures its own output port to the first level, the first CSC sends a confirmation instruction to the BMU to indicate that the current CSC has completed configuring the current number for itself.
In one possible design, before the BMU sends the current number to the first CSC according to the number request, the method further includes:
the BMU determines the current number.
When the first CSC is the first CSC, the BMU determines that the first number is the current number;
when the first CSC is not the first CSC, the BMU determines the current number according to the confirmation instruction.
Specifically, when the first CSC is the first CSC, the BMU determines the first number as the current number, which is the first CSC to be configured with the number at the end. The specific form or type of the first number is not limited in the embodiments of the present application, and may be, for example, a number, a certain recognized code, or the like.
When the first CSC is not the first CSC, the BMU determines the current number according to the confirmation instruction. Since the first CSC is not the first CSC, the last CSC is connected to the input port of the first CSC, and the acknowledgement command is sent to the BMU by the last CSC after completing the self-numbering configuration and configuring the self-output port to the first level. And the BMU determines the current number according to the confirmation instruction, and then determines the current number of the first CSC for the BMU according to the confirmation instruction sent by the last CSC. It should also be understood that the BMU stores the current number from the first number, for example, after the BMU determines the first number for the first CSC, the BMU stores the number, i.e., stores the first number. By analogy, the BMU stores the number of the last CSC configured for itself. The BMU determines the current number from the confirmation instruction, it being understood that the BMU determines the current number of the first CSC from the number of the last CSC that sent the confirmation instruction. Wherein the determined current number may be 1, 2, etc. on the basis of the last CSC number, or the current number may be determined according to some preset coding rule, e.g. on the basis of the last CSC number from which the confirmation instruction was sent. The present embodiment is not limited to this.
It can be understood that, when the first CSC is the first CSC, the MCU in the BMU determines that the first number is the current number; when the first CSC is not the first CSC, the MCU in the BMU determines the current number according to the confirmation instruction.
It should be noted that the current numbers of all CSCs in the BMS according to the embodiment of the present application may be continuously increasing numbers or continuously decreasing numbers.
Furthermore, when the first CSC is not the first CSC but the last CSC, the BMU does not perform the step of determining the current number according to the confirmation instruction but the BMS ends the number configuration process of the entire system because the BMU acquires that the level state of the input terminal is in front.
In the numbering configuration method provided in this embodiment, the BMU needs to determine the current number before sending the current number to the first CSC according to the numbering request. Wherein when the first CSC is the first CSC, the BMU determines that the first number is the current number, and when the first CSC is not the first CSC, the BMU determines the current number according to the number of the last CSC that sent the confirmation instruction, i.e., determines the current number according to the confirmation instruction. Thus, all CSCs automatically complete the numbering configuration for each CSC in turn together with the BMU according to the order of connection between each other.
Further, on the basis of the above embodiments, the numbering configuration method provided in the embodiments of the present application further includes:
when the number is abnormal, the operation is reinitialized.
Wherein the re-initialization is used to reconfigure output ports of the BMU to a first level and output ports of all CSCs to a second level.
When one or more CSCs in the BMS are damaged and/or have faults, and the CSCs with the faults are replaced, all CSCs in the BMS are in abnormal numbering states. It will be appreciated that when a CSC in a BMS is replaced, the system will tend to be powered down. And when the replacement is completed and the system is powered up again, the operation is reinitialized, reinitializing the output ports for the BMU to reconfigure the output ports to the first level and all the CSC to the second level. Then, steps S202 and S203 are executed to re-number each CSC.
The numbering configuration method provided by this embodiment, when a numbering anomaly occurs, re-performs the initialization operation, configures the level status of the output port of its BMU to the first level, and configures the output ports of all CSCs to the second level, so as to re-perform the numbering configuration automatically for each CSC by the BMU and all CSCs. It can be seen that, according to the numbering configuration method provided by this embodiment, when the CSCs in the BMS are damaged and need to be replaced, only the CSCs need to be directly replaced, and after the replacement is completed, the system is powered on again, the initialization operation is performed again, and then the numbering configuration is performed for each CSC again. Different from the prior art, the serial number of the CSC with problems needs to be manually exported in advance, and after the replacement is completed, the serial number is manually reconfigured to the replaced CSC. Compared with the prior art, manual intervention is not needed, labor and time cost are saved, errors caused by manual intervention are avoided, and system management quality is improved.
Based on the above embodiments, the numbering configuration method provided in the embodiments of the present application will be described in detail below by taking an example in which one BMU and 3 CSCs are present in a BMS. Fig. 3 is a schematic diagram of a connection structure of a BMS according to an embodiment of the present invention, as shown in fig. 3, the BMS 30 includes 3 CSCs connected in sequence, and a BMU 31 connected to the 3 CSCs, wherein an output port 311 of the BMU 31 is connected to an input port 321 of a first CSC 32, and an input port 313 of the BMU 31 is connected to an output port 343 of a last CSC 34. Communication between each CSC and the BMU 31 is via a CAN bus. The BMU 31 and each CSC are configured with MCUs to perform the numbering configuration method of the present embodiment. It will be appreciated that in actual operation, the MCU 312 in the BMU 31 and the CAN bus of its output port 311, input port 313 and its third port may be connected by copper foil, for example, so as to be soldered to a circuit board. Similarly, there is also copper foil between the MCU in each CSC and the CAN bus for its input port, output port and the third port in each to connect it for fixation on the circuit board. The connection mode is not limited in the embodiments of the present application.
When the BMS 30 is powered on, the BMU 31 and the 3 CSCs operate simultaneously, with the following specific steps:
first, performing an initialization operation, where the MCU 312 in the BMU 31 configures the output port 311 to a first level, and the 3 CSCs configure their respective output ports to a second level, where the first level is a high level, and the second level is a low level; when the first level is a low level, the second level is a high level;
second, when the input port 321 to the first CSC 32 is the first level, the MCU 322 in the first CSC 32 sends a numbering request to the MCU 312 of the BMU 31. It can be understood that, since the output port 311 of the BMU 31 is connected to the input port 321 of the first CSC 32, when the output port 311 is configured to the first level in the first step, only the input port 321 of the first CSC 32 in the 3 CSCs can acquire the first level, and the MCU 322 of the first CSC 32 sends the numbering request to the MCU 312 in the BMU 31.
Third, after the MCU 312 in the BMU 31 receives the numbering request, it sends the current numbering to the MCU 322 of the first CSC 32 according to the numbering request. Since this CSC is the first CSC 32, the MCU 312 in the BMU 31 determines that the first number is the current number. Such that the MCU 322 in the first CSC 32 completes its numbering configuration according to the first number and configures its output port 323 to the first level, assuming the first number is number 1. Thereafter, the MCU 322 in the first CSC 32 also sends an acknowledgement instruction to the MCU 312 in the BMU 31 indicating that the first CSC 32 has completed the numbering configuration.
Fourthly, when the output port 323 of the first CSC 32 is configured to the first level, the level status of the input port 331 of the next CSC 33 connected to the output port 323 thereof is acquired as the first level, and the MCU 332 in the next CSC 33 transmits a numbering request to the MCU 312 of the BMU 31. For convenience of description, the next CSC 33 will be referred to hereinafter as the second CSC 33.
In the fifth step, after the MCU 312 in the BMU 31 receives the numbering request, it sends the current numbering to the MCU 332 of the second CSC 33 according to the numbering request. Before transmitting the number, the MCU 312 in the BMU 31 further determines the current number according to the acknowledgement command transmitted by the first CSC 32, and since the acknowledgement command is transmitted by the CSC 32 with number 1, the MCU 312 determines the current number according to the number 1, for example, the determined current number is number 2. Then the MCU 332 in the second CSC 33 is caused to configure its own number to number 2, while the own output port 333 is configured to the first level. Thereafter, the MCU 332 in the second CSC 33 also sends an acknowledgement instruction to the MCU 312 in the BMU 31 indicating that the second CSC 33 has completed the numbering plan.
Sixthly, when the output port 333 of the second CSC 33 is configured to the first level, the level status of the input port 341 of the next CSC 34 connected to the output port 333 thereof is acquired as the first level, and the MCU 342 in the next CSC 34 transmits a numbering request to the MCU 312 of the BMU 31. For ease of description, the next CSC 34 herein will be referred to hereinafter as the third CSC 34.
In the seventh step, similar to the fifth step, the MCU 312 in the BMU 31 determines the current number according to the confirmation command sent by the second CSC 33, and since the confirmation command is sent by the CSC 33 with number 2, the MCU 312 determines the current number according to the number 2, for example, the determined current number is number 3. After receiving the numbering request, the MCU 312 in the BMU 31 transmits the current number, i.e. the transmission number 3, to the MCU 342 of the third CSC 34, so that the MCU 342 in the third CSC 34 configures its own number to number 3 and, at the same time, configures its own output port 343 to the first level. And the third CSC 34 is the last CSC 34, and its output port 343 is connected to the input port 313 of BMU 31, and when the output port 343 is configured to the first level, the input port 313 of BMU 31 can acquire the first level, and at this time, BMS 30 ends the numbering configuration, so that the 3 CSCs complete the numbering configuration in sequence.
It should be noted that when the BMS includes more CSCs, the numbering configuration can be automatically completed for all CSCs in the system by repeating the steps from the second step to the seventh step.
Fig. 4 is a schematic structural diagram of a numbering device according to an embodiment of the present application, where the numbering device according to the present embodiment may perform the numbering method according to the foregoing embodiment. As shown in fig. 4, the numbering device 400 provided in this embodiment includes:
an initialization module 401 for initializing operation, wherein the initialization is for configuring the output ports of the BMU to a first level and the output ports of all CSCs to a second level.
A first sending module 402, configured to send a numbering request to the BMU when the input port to the first CSC is at the first level, where the first CSC is any one of the CSCs in the BMS.
A processing module 403, configured to send the current number to the first CSC according to the number request, so that the first CSC completes self-number configuration according to the current number and configures a self-output port to the first level.
The numbering device provided in this embodiment is similar to the implementation principle and effect of the method embodiment shown in fig. 2, and is not described herein again.
In one possible design, the first sending module 402 is further configured to:
sending an acknowledgement instruction to the BMU, wherein the acknowledgement instruction is used to indicate that the first CSC has completed the numbering plan.
In one possible design, the processing module 403 is further configured to:
when the first CSC is the first CSC, determining that the first number is the current number;
when the first CSC is not the first CSC, the current number is determined according to the confirmation instruction.
Optionally, the current numbering of all CSCs in the BMS is a continuously increasing number, or a continuously decreasing number.
In one possible design, the numbering configuration apparatus 400 further includes:
when the input port acquired to the BMU is the first level, the BMS ends the numbering configuration.
Optionally, when a numbering exception occurs, the initialization module 401 is further configured to:
reinitializing operation, wherein the reinitialization is to reconfigure an output port of the BMU to the first level.
The implementation principle and the effect of the above device embodiment are similar to those of the corresponding method embodiment, and are not described herein again.
It should be understood that the numbering configuration apparatus provided in the embodiments of the present application is configured in the BMU and each CSC, for example, the aforementioned initialization module 401 is configured in the MCU of the BMU and the MCUs of all CSCs, and the first sending module 402 is configured in the MCU of each CSC. The processing module 403 is configured among the MCUs of the BMU and the MCUs of all CSCs. If the electronic device executing the number configuration method provided in the embodiment of the present application is configured separately and uniformly, the configuration positions of the initialization module 401, the first sending module 402, and the processing module 403 are set according to the operating conditions, which is not limited herein.
Fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application, and as shown in fig. 5, an electronic device 500 according to the embodiment includes:
a processor 501 and a memory 502, wherein the memory 502 is used for storing executable instructions of the processor 501;
the processor 501 is configured to execute the steps of the numbering configuration method in the foregoing embodiments through executing executable instructions, and reference may be made to the related description in the foregoing method embodiments.
It is understood that, when the electronic device 500 is a microcontroller, the memory 502 may be integrated into the processor 501, and the embodiment of the present application is not limited thereto.
In an exemplary embodiment, the present application provides a non-transitory microcontroller-readable storage medium storing microcontroller instructions for causing a microcontroller to perform the steps of the numbering configuration method in the embodiments described above. For example, the readable storage medium may be a Flash Memory (Flash ROM, Flash Memory for short), a charged Erasable Programmable Read Only Memory (EEPROM for short), a ROM, a Random Access Memory (RAM), and the like. It should be understood that, when the electronic device is a computer, a notebook computer, or the like, the readable storage medium is a non-transitory computer readable storage medium storing computer instructions for causing the computer to execute the steps of the numbering configuration method in the above embodiments.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims (9)
1. A numbering configuration method is applied to a battery management system BMS, the BMS comprises a plurality of battery management slave control units (CSCs) which are sequentially connected and a battery management master control unit (BMU) which is connected with all the CSCs, the output port of the BMU is connected with the input port of the first CSC, the input port of the BMU is connected with the output port of the last CSC, and the BMU and each CSC have an input port and an output port; the method comprises the following steps:
an initialization operation for configuring output ports of the BMU to a first level and configuring output ports of all CSCs to a second level;
when an input port where a first CSC is acquired is at the first level, the first CSC sends a numbering request to the BMU, and the first CSC is any one CSC in the BMS;
the BMU sends a current number to the first CSC according to the number request, so that the first CSC completes self number configuration according to the current number and configures a self output port to be the first level;
and when the input port of the BMU is acquired to be the first level, the BMS finishes the numbering configuration.
2. The numbering configuration method of claim 1, wherein after the first CSC completes its own numbering configuration according to the current number and configures its own output port to the first level, further comprising:
the first CSC transmits an acknowledgement instruction to the BMU indicating that the first CSC has completed numbering plan.
3. The numbering configuration method according to claim 2, wherein before the BMU sending a current number to the first CSC according to the numbering request, further comprising:
when the first CSC is the first CSC, the BMU determines that a first number is the current number;
when the first CSC is not the first CSC, the BMU determines the current number according to the confirmation instruction.
4. The numbering configuration method according to any of claims 1-3, further comprising:
reinitializing operation for reconfiguring output ports of the BMU to the first level and output ports of all CSCs to the second level when a numbering anomaly occurs.
5. The numbering configuration method according to claim 4, wherein said current number is a consecutively increasing number.
6. A numbering and configuring device is applied to a battery management system BMS, the BMS comprises a plurality of battery management slave control units (CSCs) which are connected in sequence and a battery management master control unit (BMU) which is connected with all the CSCs, an output port of the BMU is connected with an input port of the first CSC, an input port of the BMU is connected with an output port of the last CSC, and the BMU and each CSC have an input port and an output port; the apparatus, comprising:
an initialization module to initialize operation, the initialization to configure output ports of the BMU to a first level and to configure output ports of all CSCs to a second level;
a first sending module, configured to send a numbering request to the BMU when an input port that acquires a first CSC is the first level, where the first CSC is any one of the CSCs in the BMS;
a processing module, configured to send a current number to the first CSC according to the number request, so that the first CSC completes self-number configuration according to the current number and configures a self output port as the first level;
the processing module is further configured to: and when the input port of the BMU is acquired to be the first level, the BMS finishes the numbering configuration.
7. The numbering configuration device of claim 6, wherein the first sending module is further configured to:
sending an acknowledgement instruction to the BMU, the acknowledgement instruction to indicate that the first CSC has completed numbering configuration.
8. An electronic device, applied to a battery management system BMS, comprising a plurality of battery management slave units (CSCs) connected in sequence and a battery management master unit (BMU) connected to all the CSCs, wherein an output port of the BMU is connected to an input port of a first CSC, an input port of the BMU is connected to an output port of a last CSC, and the BMU and each CSC have an input port and an output port; the electronic device includes:
a processor; and
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the numbering configuration method of any of claims 1-5 via execution of the executable instructions.
9. A non-transitory microcontroller-readable storage medium having stored thereon microcontroller instructions for causing a microcontroller to execute the numbering configuration method of any of claims 1-5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911340518.9A CN111123780B (en) | 2019-12-23 | 2019-12-23 | Number configuration method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911340518.9A CN111123780B (en) | 2019-12-23 | 2019-12-23 | Number configuration method and device, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111123780A CN111123780A (en) | 2020-05-08 |
CN111123780B true CN111123780B (en) | 2022-04-15 |
Family
ID=70501299
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911340518.9A Active CN111123780B (en) | 2019-12-23 | 2019-12-23 | Number configuration method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111123780B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101667668A (en) * | 2008-09-03 | 2010-03-10 | 欧姆龙株式会社 | Multi-cell battery system and numbering method for the cells thereof |
CN102740034A (en) * | 2011-03-09 | 2012-10-17 | 日立民用电子株式会社 | Transmission system and relay device |
CN104636297A (en) * | 2014-12-30 | 2015-05-20 | 郑州宇通客车股份有限公司 | Slave plate encoding method for battery management system |
CN105872123A (en) * | 2016-03-29 | 2016-08-17 | 宁德时代新能源科技股份有限公司 | Address coding method, battery monitoring unit, battery management unit and system |
CN107239047A (en) * | 2016-03-29 | 2017-10-10 | 华为技术有限公司 | Battery management system and the method for numbering serial to battery detection unit |
Family Cites Families (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100889179B1 (en) * | 2007-05-29 | 2009-03-16 | 김금수 | Inverter logic for estimating state of health and Apparatus for control thereof |
JP2011142036A (en) * | 2010-01-08 | 2011-07-21 | Sanyo Electric Co Ltd | Battery control method and electronic equipment |
US9196930B2 (en) * | 2011-03-24 | 2015-11-24 | Ford Global Technologies, Llc | Vehicle battery cell with integral control circuit |
JP2013102574A (en) * | 2011-11-07 | 2013-05-23 | Sony Corp | Charge controlling method and discharge controlling method, charging apparatus controller and discharging apparatus controller, and charge controlling program and discharge controlling program |
KR101698766B1 (en) * | 2012-07-10 | 2017-01-23 | 삼성에스디아이 주식회사 | Battery pack, charging method of the battery pack, and vehicle including the battery pack |
CN102759922B (en) * | 2012-07-20 | 2015-07-08 | 湖南吉大汽车链条有限公司 | Electric motorcar communication safety detection method and system thereof |
CN103336486B (en) * | 2012-12-19 | 2015-11-18 | 惠州市亿能电子有限公司 | A kind of battery modules address distribution method of battery energy storage system |
CN104228603B (en) * | 2014-09-25 | 2016-08-31 | 重庆长安汽车股份有限公司 | A kind of Address Recognition method and apparatus |
CN107244260B (en) * | 2017-07-11 | 2024-01-19 | 浙江大学常州工业技术研究院 | Lead-acid battery management system and control method for micro-speed four-wheel electric vehicle |
JP6739408B2 (en) * | 2017-08-03 | 2020-08-12 | 日立オートモティブシステムズ株式会社 | Battery management system and battery management device |
-
2019
- 2019-12-23 CN CN201911340518.9A patent/CN111123780B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101667668A (en) * | 2008-09-03 | 2010-03-10 | 欧姆龙株式会社 | Multi-cell battery system and numbering method for the cells thereof |
CN102740034A (en) * | 2011-03-09 | 2012-10-17 | 日立民用电子株式会社 | Transmission system and relay device |
CN104636297A (en) * | 2014-12-30 | 2015-05-20 | 郑州宇通客车股份有限公司 | Slave plate encoding method for battery management system |
CN105872123A (en) * | 2016-03-29 | 2016-08-17 | 宁德时代新能源科技股份有限公司 | Address coding method, battery monitoring unit, battery management unit and system |
CN107239047A (en) * | 2016-03-29 | 2017-10-10 | 华为技术有限公司 | Battery management system and the method for numbering serial to battery detection unit |
Also Published As
Publication number | Publication date |
---|---|
CN111123780A (en) | 2020-05-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9024584B2 (en) | Method and system for setting sequential identification to multi-slave in battery pack | |
TWI446683B (en) | Distributed battery management system and method for distributing identifications thereof | |
CN102842939B (en) | Battery management system and battery management method | |
CN104750510A (en) | Chip start method and multi-core processor chip | |
CN105159109B (en) | A kind of PLC controller remote update system | |
CN104600792A (en) | Address assignment method for energy storage battery management system | |
CN110224913A (en) | Data transmission method, device, data transmission system and equipment | |
CN114721917A (en) | Data acquisition method, device, system, equipment and storage medium | |
CN111123780B (en) | Number configuration method and device, electronic equipment and storage medium | |
CN106155954A (en) | The system and method that a kind of module identification and COM1 distribute automatically | |
CN106602623B (en) | Battery management system, updating method thereof, electric vehicle control system and electric vehicle | |
CN104243577A (en) | Electronic device having automatic networking function and automatic networking method | |
CN111123779B (en) | Number configuration method and device, electronic equipment and storage medium | |
KR20160106064A (en) | Method for starting a battery management system | |
US20230079806A1 (en) | Identifier setting system | |
CN213716948U (en) | Battery management system | |
CN110473307B (en) | Intelligent battery pairing repair method and system | |
CN118138499B (en) | Method, device, system and server for determining connectivity of connecting wires | |
CN110958296A (en) | Charging pile cluster communication system and method and charging pile | |
CN107453903A (en) | A kind of method and system for identifying communication slave station and a kind of storage device | |
CN117632229A (en) | Program refreshing method, device, vehicle and storage medium | |
CN117176692A (en) | Equipment, networking method and networking device thereof | |
CN204496488U (en) | The system that a kind of Module recognition and communication port are distributed automatically | |
KR20240143232A (en) | Photovoltaic power generation system, and apparatus and method for updating firmware of mlpe | |
CN109445817A (en) | A kind of firmware upgrade method |
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 | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: Unit 1201, unit 3, 12 / F, building 2, yard 9, FengHao East Road, Haidian District, Beijing 100094 Applicant after: Beijing Haibo Sichuang Technology Co., Ltd Address before: Room 208, floor 2, research center building, Beijing Forestry University, No. 35, Qinghua East Road, Haidian District, Beijing 100094 Applicant before: BEIJING HYPERSTRONG TECHNOLOGY Co.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |