Addressing method and device for BMS (Battery Management System) test system
By using the chain incremental mechanism to configure the unique address of the battery simulation unit in the BMS test system, the battery simulation unit addressing problem is solved, the efficiency and accuracy of the test system are improved, and the uniqueness of each simulation unit and the system are ensured. robustness.
Patent Information
- Application Number
- CN202410864201.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-30
- Publication Date
- 2024-08-23
AI Technical Summary
In the BMS test system, how to configure a unique address for the battery simulation unit without building a real battery environment, solve the battery simulation unit addressing problem, and ensure the robustness and efficiency of the BMS test system.
The multi-serial port unit communicates with the host computer through the network, and the chain incremental mechanism is used to configure the unique address identification of the battery simulation unit one by one, which simplifies the address configuration process and improves the configuration efficiency and accuracy.
It ensures that each battery simulation unit obtains a unique address, simplifies address configuration, improves the addressing efficiency and accuracy of the BMS test system, avoids address conflicts, and enhances the robustness of the test system.
Smart Images

Figure CN118540304A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of BMS test systems, and in particular to a BMS test system addressing method and a BMS test system addressing device. Background Art
[0002] With the rapid growth of energy demand and the rise of renewable energy, the energy storage industry has a broad space and opportunities for development. As the key carrier in the energy storage system, how to ensure the long life and stable operation of the battery poses a higher challenge to the battery management system BMS. It is particularly important to increase the testing of BMS and enhance the robustness of BMS. However, in actual applications, because real batteries may have fire safety hazards, it is impossible to build a real battery environment in any environment for BMS testing. On-site testing of BMS brings great inconvenience to testers. Therefore, building a battery simulation BMS test environment will be of great practical significance.
[0003] Build a whole cluster of battery simulation BMS test system, which contains several battery simulation units. In the whole cluster environment, the address of each battery simulation unit must be unique. Therefore, it is necessary to solve the unique addressing problem of each battery simulation unit. Summary of the invention
[0004] In view of the above problems, the present invention is proposed to provide a BMS test system addressing method and a corresponding BMS test system addressing device that overcome the above problems or at least partially solve the above problems.
[0005] The present invention discloses an addressing method for a BMS test system. The BMS test system includes a plurality of battery simulation devices, each of which includes a plurality of battery simulation units. The battery simulation devices are connected to a host computer through a network multi-serial port unit, and each network multi-serial port unit is connected to a plurality of battery simulation devices. The method includes:
[0006] Each battery simulation device receives an addressing start signal and an address frame sent by the connected network multi-serial port unit; the addressing start signal is generated by the network multi-serial port unit executing the addressing start command of the host computer, and the address frame is generated by the host computer and sent to the network multi-serial port unit;
[0007] The battery simulation device starts the addressing process in response to the addressing start signal, and configures the unique address identifier of each battery simulation unit one by one using a chain increment mechanism according to the address frame.
[0008] Optionally, the address frame includes an initial address and an address sequence number of the battery simulation device; the initial address of the battery simulation device is determined by the host computer according to the number of battery simulation devices in the BMS test system.
[0009] Optionally, the battery simulation device starts an addressing process in response to the addressing start signal, and configures a unique address identifier of each battery simulation unit one by one using a chain increment mechanism according to the address frame, including:
[0010] S1, the first battery simulation unit that receives the addressing start signal responds to the addressing start signal to start the addressing process, and configures its own unique address identifier according to the initial address and address sequence number of the battery simulation device.
[0011] S2, after the configuration is completed, the first battery simulation unit that receives the addressing start signal increments the address number to generate a new address number, and combines it with the initial address to form a new address frame.
[0012] S3, passing the addressing start signal and the new address frame to the next battery simulation unit;
[0013] S4, after receiving the addressing start signal and the new address frame, the subsequent battery simulation unit repeats steps S1 to S3 until all battery simulation units in the battery simulation device complete address configuration.
[0014] Optionally, the method further comprises:
[0015] After the battery simulation unit completes the address configuration, it sends an address setting completion notification to the network multi-serial port unit; the network multi-serial port unit is used to forward the address setting completion notification to the host computer, so that the host computer verifies whether the address setting is successful and returns the verification result;
[0016] The verification result forwarded by the network multi-serial port unit is received, and the addressing process is ended after confirming that the verification result is that the address configuration is successful.
[0017] The present invention also discloses another BMS test system addressing method, the BMS test system includes a plurality of battery simulation devices, each battery simulation device includes a plurality of battery simulation units, the battery simulation device is connected to a host computer through a network multi-serial port unit, each network multi-serial port unit is connected to a plurality of battery simulation devices, and is applied to the host computer, the method includes:
[0018] Determine the initial address of each battery simulation device according to the number of battery simulation devices in the BMS test system, set the address sequence number of the battery simulation device, and generate an address frame using the initial address and address sequence number of each battery simulation device;
[0019] Sending an addressing start command and the address frame to a network multi-serial port unit; the network multi-serial port unit is used to execute the addressing start command to generate an addressing start signal and send the addressing start signal and the address frame to a corresponding battery simulation device; the battery simulation device is used to respond to the addressing start signal and configure a unique address identifier of each battery simulation unit according to the address frame;
[0020] Receive the address setting completion notification sent by the network multi-serial port unit, verify whether the address setting is successful, and send the verification result to the network multi-serial port unit; the address setting completion notification is sent by the battery simulation device to the network multi-serial port unit, and the network multi-serial port unit is used to forward the verification result to the battery simulation device; the battery simulation device is used to determine whether to end the addressing process according to the verification result.
[0021] Optionally, the method further comprises:
[0022] Determine whether the address frame information returned by the battery simulation device conforms to the maximum address frame information generated by the host computer and determine whether the address allocation time exceeds a preset first time threshold;
[0023] If the address frame information returned by the battery simulation device meets the maximum address frame information generated by the host computer and the address allocation time does not exceed the preset first time threshold, a verification result of successful address configuration is generated;
[0024] If the address frame information returned by the battery simulation device does not conform to the maximum address frame information generated by the host computer or the address allocation time exceeds the preset first time threshold, a verification result of address configuration failure is generated.
[0025] The present invention also discloses another BMS test system addressing method, the BMS test system includes a plurality of battery simulation devices, each battery simulation device includes a plurality of battery simulation units, the battery simulation device is connected to a host computer through a network multi-serial port unit, each network multi-serial port unit is connected to a plurality of battery simulation devices, and is applied to the network multi-serial port unit, the method includes:
[0026] Receive an addressing start command and an address frame sent by a host computer; the address frame includes an initial address and an address sequence number of a battery simulation device; the initial address of the battery simulation device is determined by the host computer according to the number of battery simulation devices in a BMS test system;
[0027] Executing the addressing start command to generate an addressing start signal and sending the addressing start signal and the address frame to the corresponding battery simulation device; the battery simulation device is used to respond to the addressing start signal and configure the unique address identifier of each battery simulation unit according to the address frame;
[0028] Receive the address setting completion notification sent by the battery simulation device and forward it to the host computer;
[0029] Receive the verification results sent by the host computer and forward them to the battery simulation device.
[0030] The present invention also discloses an addressing device for a BMS test system. The BMS test system includes a plurality of battery simulation devices, each of which includes a plurality of battery simulation units. The battery simulation devices are connected to a host computer through a network multi-serial port unit. Each network multi-serial port unit is connected to a plurality of battery simulation devices. The device includes:
[0031] The addressing signal and address frame receiving module is used for each battery simulation device to receive the addressing start signal and address frame sent by the connected network multi-serial port unit; the addressing start signal is generated by the network multi-serial port unit executing the addressing start command of the host computer, and the address frame is generated by the host computer and sent to the network multi-serial port unit;
[0032] An address configuration module is used for the battery simulation device to start an addressing process in response to the addressing start signal, and configure the unique address identifier of each battery simulation unit one by one using a chain increment mechanism according to the address frame.
[0033] Optionally, the address frame includes an initial address and an address sequence number of the battery simulation device; the initial address of the battery simulation device is determined by the host computer according to the number of battery simulation devices in the BMS test system.
[0034] Optionally, the address configuration module includes:
[0035] The first battery simulation battery address configuration submodule is used for the first battery simulation unit that receives the addressing start signal to respond to the addressing start signal to start the addressing process, and configure its own unique address identifier according to the initial address and address sequence number of the battery simulation device.
[0036] The new address frame generation submodule is used for, after configuration is completed, the first battery simulation unit that receives the addressing start signal increments the address sequence number to generate a new address sequence number, and combines it with the initial address to form a new address frame.
[0037] A transfer submodule, used for transferring an addressing start signal and a new address frame to a next battery simulation unit;
[0038] The repeated execution submodule is used for subsequent battery simulation units to repeat the steps of the first battery simulation battery address configuration submodule, the new address frame generation submodule and the transmission submodule after receiving the addressing start signal and the new address frame until all battery simulation units in the battery simulation device complete the address configuration.
[0039] Optionally, the device further comprises:
[0040] An address configuration completion notification sending module is used to send an address setting completion notification to the network multi-serial port unit after the battery simulation unit completes the address configuration; the network multi-serial port unit is used to forward the address setting completion notification to the host computer so that the host computer verifies whether the address setting is successful and returns the verification result;
[0041] The address configuration verification result receiving module is used to receive the verification result forwarded by the network multi-serial port unit, and end the addressing process after confirming that the verification result is that the address configuration is successful.
[0042] The present invention also discloses another BMS test system addressing device, the BMS test system includes a plurality of battery simulation devices, each battery simulation device includes a plurality of battery simulation units, the battery simulation device is connected to a host computer through a network multi-serial port unit, each network multi-serial port unit is connected to a plurality of battery simulation devices, and is applied to the host computer, the device includes:
[0043] An address frame generation module, used to determine the initial address of each battery simulation device according to the number of battery simulation devices in the BMS test system, set the address sequence number of the battery simulation device, and generate an address frame using the initial address and address sequence number of each battery simulation device;
[0044] An addressing command and address frame sending module, used for sending an addressing start command and the address frame to a network multi-serial port unit; the network multi-serial port unit is used for executing the addressing start command to generate an addressing start signal and sending the addressing start signal and the address frame to a corresponding battery simulation device; the battery simulation device is used for responding to the addressing start signal and configuring a unique address identifier of each battery simulation unit according to the address frame;
[0045] The address configuration verification module is used to receive the address setting completion notification sent by the network multi-serial port unit, verify whether the address setting is successful, and send the verification result to the network multi-serial port unit; the address setting completion notification is sent by the battery simulation device to the network multi-serial port unit, and the network multi-serial port unit is used to forward the verification result to the battery simulation device; the battery simulation device is used to determine whether to end the addressing process according to the verification result.
[0046] Optionally, the device further comprises:
[0047] The addressing time verification module is used to determine whether the address frame information returned by the battery simulation device conforms to the maximum address frame information generated by the host computer and whether the address allocation time exceeds a preset first time threshold;
[0048] An address configuration success confirmation module, used to generate a verification result of successful address configuration if the address frame information returned by the battery simulation device meets the maximum address frame information generated by the host computer and the address allocation time does not exceed a preset first time threshold;
[0049] The address configuration success or failure confirmation module is used to generate a verification result of address configuration failure if the address frame information returned by the battery simulation device does not conform to the maximum address frame information generated by the host computer or the address allocation time exceeds a preset first time threshold.
[0050] The present invention also discloses another BMS test system addressing device, the BMS test system includes a plurality of battery simulation devices, each battery simulation device includes a plurality of battery simulation units, the battery simulation device is connected to a host computer through a network multi-serial port unit, each network multi-serial port unit is connected to a plurality of battery simulation devices, and is applied to the network multi-serial port unit, the device includes:
[0051] An addressing command and address frame receiving module, used for receiving an addressing start command and an address frame sent by a host computer; the address frame includes an initial address and an address sequence number of a battery simulation device; the initial address of the battery simulation device is determined by the host computer according to the number of battery simulation devices in a BMS test system;
[0052] An addressing command execution module, used for executing the addressing start command to generate an addressing start signal and sending the addressing start signal and the address frame to the corresponding battery simulation device; the battery simulation device is used for responding to the addressing start signal and configuring the unique address identifier of each battery simulation unit according to the address frame;
[0053] An address configuration completion notification forwarding module is used to receive an address setting completion notification sent by a battery simulation device and forward it to a host computer;
[0054] The address configuration verification result forwarding module is used to receive the verification result sent by the host computer and forward it to the battery simulation device.
[0055] The present invention includes the following advantages:
[0056] The BMS test system addressing method of the present invention receives the addressing start signal and address frame sent by the docked network multi-serial port unit through each battery simulation device, wherein the addressing start signal is generated by the network multi-serial port unit executing the addressing start command of the host computer, the address frame is generated by the host computer and sent to the network multi-serial port unit, the battery simulation device responds to the addressing start signal to start the addressing process, and the unique address identifier of each battery simulation unit is configured one by one according to the address frame using a chain increment mechanism. The present invention divides the entire cluster of BMS test systems into a number of battery simulation devices, each battery simulation device communicates with the host computer through the docked network multi-serial port unit, and converts the complex address configuration of the BMS test system into the addressing of a single battery simulation device. As long as the addressing of all single battery simulation devices is completed, the addressing task of the entire cluster of BMS test systems is completed. For each battery simulation device, the unique address of each battery simulation unit is configured by chain increment using an address frame, ensuring that each battery simulation unit can obtain a unique address, providing addressing guarantee for the test of the BMS test system, and greatly simplifying the address configuration process, improving the efficiency and accuracy of the configuration. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] Figure 1 is a flowchart of a BMS test system addressing method provided by an embodiment of the present invention;
[0058] Figure 2 is a network multi-serial port unit resource block diagram provided by an embodiment of the present invention;
[0059] Figure 3 It is a network multi-serial port unit addressing block diagram provided by an embodiment of the present invention;
[0060] Figure 4 is a BMS test system addressing flow chart provided by an embodiment of the present invention;
[0061] Figure 5 is a flowchart of another BMS test system addressing method provided by an embodiment of the present invention;
[0062] Figure 6 is a flowchart of another BMS test system addressing method provided by an embodiment of the present invention;
[0063] Figure 7 It is a structural block diagram of a BMS test system addressing device provided by an embodiment of the present invention;
[0064] Figure 8 is a structural block diagram of another BMS test system addressing device provided by an embodiment of the present invention;
[0065] Fig. 9It is a structural block diagram of another BMS test system addressing device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0066] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0067] Reference Figure 1 , shows a flowchart of a BMS test system addressing method provided in an embodiment of the present invention, which may specifically include the following steps:
[0068] Step 101, each battery simulation device receives an addressing start signal and an address frame sent by a connected network multi-serial port unit; the addressing start signal is generated by the network multi-serial port unit executing an addressing start command of a host computer, and the address frame is generated by the host computer and sent to the network multi-serial port unit;
[0069] Step 102: the battery simulation device starts an addressing process in response to the addressing start signal, and configures a unique address identifier of each battery simulation unit one by one using a chain increment mechanism according to the address frame.
[0070] In an embodiment of the present invention, the entire cluster of BMS test systems may be composed of several battery simulation devices, each of which may contain several battery simulation units. The battery simulation devices may be connected to a host computer through a network multi-serial port unit, and each network multi-serial port unit may be connected to several battery simulation devices.
[0071] Reference Figure 2 The network multi-serial port unit mainly includes the following resources: 1 Ethernet interface, which communicates with the host computer and transparently transmits the signal sent by the host computer; 1 clock interface, the clock signal is an edge signal, you can choose the high-precision clock input from the external, or you can choose the RTC second pulse signal on the network multi-serial port unit; the clock signal is used as the synchronization signal source for time synchronization; 8 fiber optic interfaces, the fiber optic signal is used to communicate with the equipment connected to the fiber optic; 16 RS485 interfaces, of which 8 RS485 signals are used to communicate with the equipment connected to it by RS485, and the other 8 RS485 signals transmit the clock signal of the equipment connected to it by RS485; 8 address control interfaces, 8 address control signals are used to communicate with the equipment connected to the network multi-serial port unit.
[0072] Reference Figure 3, the fiber optic interface and address control interface of each network multi-serial port unit are connected to a battery simulation device. The host computer sends an addressing command and sends it to the network multi-serial port unit through the Ethernet interface. The network multi-serial port unit transmits the command transparently. After the fiber optic signal sent enters the battery simulation device, the battery simulation device converts the fiber optic signal into an RS485 signal, and transmits the information to each battery simulation unit through the RS485 signal inside the battery simulation device. The RS485 signal sent by the battery simulation unit will also be converted into a fiber optic signal and then transmitted to the network multi-serial port unit. The address control signal is that every time addressing is required, the current battery simulation unit is pulled down to enter the address configuration state, and the address frame information carried by the fiber optic signal is configured as the current address. After the address configuration is completed, the high level is restored. At the same time, the battery simulation unit that has just completed the address configuration pulls down the address control signal of the next battery simulation unit, and updates the address frame to send to the battery simulation unit whose control signal is pulled down, and so on, thereby completing the address configuration of the entire battery simulation device.
[0073] For example, the designed BMS test system consists of 16 battery simulation devices, each of which consists of 26 battery simulation units. To address the simulated battery units, optical fiber interfaces and address control interfaces are required. From the resources of the above network multi-serial port units, it can be seen that a single network multi-serial port unit can address 8 battery simulation devices. According to the number of battery simulation devices in the BMS test system, several network multi-serial port units can be matched for addressing operations.
[0074] For battery simulation devices, each battery simulation device can receive and process the addressing start signal and address frame sent by the network multi-serial port unit. Specifically, when the host computer issues an addressing start command, the network multi-serial port unit will execute the command and generate a corresponding addressing start signal, and then send the addressing start signal and the address frame generated and sent by the host computer to the corresponding battery simulation device.
[0075] After receiving the addressing start signal and address frame, the battery simulation device can quickly respond to the addressing start signal and start the addressing process. In this process, the battery simulation device can use the chain increment mechanism to configure the unique address identifier of the internal battery simulation unit one by one according to the received address frame, ensuring that each battery simulation unit can obtain a unique address, thereby avoiding the possibility of address conflicts and providing reliable addressing guarantees for the BMS test system. In addition, the complex address configuration of the BMS test system is converted into the addressing of a single battery simulation device. As long as the addressing of all single battery simulation devices is completed, the addressing task of the entire cluster BMS test system is completed, which simplifies the address configuration process and significantly improves the efficiency and accuracy of the configuration.
[0076] In one embodiment of the present invention, the address frame includes an initial address and an address sequence number of the battery simulation device; the initial address of the battery simulation device is determined by the host computer according to the number of battery simulation devices in the BMS test system.
[0077] In an embodiment of the present invention, the address frame sent by the network multi-serial port unit may include the initial address and address sequence number of the battery simulation device, and these address frame information is accurately determined and constructed by the host computer according to the total number of battery simulation devices in the BMS test system. The host computer can group the battery simulation devices according to the number of battery simulation devices that each network multi-serial port unit can connect to and the total number of battery simulation devices in the BMS test system, assign the battery simulation devices to the network multi-serial port unit, and then number the battery simulation devices assigned to each network multi-serial port unit, and the number of the battery simulation device is used as the initial address of the address frame. The address sequence number can be preset by the host computer as the starting number, and can be incremented sequentially during the address configuration process, and the maximum number can not exceed the total number of battery simulation units in each battery simulation device.
[0078] For example, each network multi-serial port unit is set to correspond to 8 battery simulation devices. Assuming there are n battery simulation devices in the system, and each device contains m battery simulation units, the address frame of each battery simulation device will be configured according to specific rules. The address frame of each battery simulation device is n (starting from 1 by default) + serial address (starting from 0 by default) + increment value (maximum not exceeding m). Through this grouping and address configuration method, it can be ensured that each battery simulation device and its internal simulation unit can obtain a unique address identifier.
[0079] In one embodiment of the present invention, the battery simulation device starts the addressing process in response to the addressing start signal, and configures the unique address identifier of each battery simulation unit one by one using a chain increment mechanism according to the address frame, including:
[0080] S1, the first battery simulation unit that receives the addressing start signal responds to the addressing start signal to start the addressing process, and configures its own unique address identifier according to the initial address and address sequence number of the battery simulation device.
[0081] S2, after the configuration is completed, the first battery simulation unit that receives the addressing start signal increments the address number to generate a new address number, and combines it with the initial address to form a new address frame.
[0082] S3, passing the addressing start signal and the new address frame to the next battery simulation unit;
[0083] S4, after receiving the addressing start signal and the new address frame, the subsequent battery simulation unit repeats steps S1 to S3 until all battery simulation units in the battery simulation device complete address configuration.
[0084] When the host computer generates the address frame, it can simultaneously send the address line pull-up command to the network multi-serial port unit. If the network multi-serial port unit fails to pull up, it will be fed back to the host computer to wait for the address line pull-up command to be reissued; if the network multi-serial port unit completes the address line pull-up, the host computer can send the addressing start command and address frame to the network multi-serial port unit, and the network multi-serial port unit will then transparently transmit it to the battery simulation device bus. Each battery simulation unit on the bus will receive the addressing start signal and address frame, thereby entering the address allocation process. If the battery simulation unit fails to receive the signal, it will continue to monitor the battery simulation device bus to receive the addressing start signal and address frame. The time threshold can be preset as the time limit for the host computer to start the addressing process. The time threshold can be set according to the actual situation, such as 1s, 3s, 5s, etc. The time threshold can be set to 3s. If it does not take more than 3s, it means that the time limit is met and the addressing process can continue; if it exceeds 3s, it means that the address allocation fails and the entire process ends.
[0085] Reference Figure 4 , the network multi-serial port unit executes the addressing start command by pulling down the address line of the first battery simulation unit in the battery simulation device. If the address line fails to be pulled down, it continues to wait for the addressing start command. If the pull-down is successful, the network multi-serial port unit can generate an addressing start signal and transparently transmit the addressing start signal and address frame to the bus of the battery simulation device. If the first battery simulation unit on the bus does not receive the addressing start signal and address frame, it continues to wait. If received, the first battery simulation unit that receives the addressing start signal responds to the addressing start signal to start the addressing process, and configures its own unique address identifier according to the initial address and address sequence number of the battery simulation device. The unique address identifier is the initial address + address sequence number. The battery simulation unit that has just completed its own address configuration will pull down the address line of the next battery simulation unit, and at the same time increment the address sequence number to generate a new address sequence number, and combine it with the initial address into a new address frame, such as adding 1 to the sequence number. Then the addressing start signal and the new address frame are sent to the RS485 bus, passed to the next battery simulation unit and the network multi-serial port unit, and the address allocation of the entire battery simulation device is completed in sequence. The addressing start signal and new address frame uploaded to the network multi-serial port unit can be uploaded to the host computer synchronously.
[0086] In one embodiment of the present invention, the method further comprises:
[0087] After the battery simulation unit completes the address configuration, it sends an address setting completion notification to the network multi-serial port unit; the network multi-serial port unit is used to forward the address setting completion notification to the host computer, so that the host computer verifies whether the address setting is successful and returns the verification result;
[0088] The verification result forwarded by the network multi-serial port unit is received, and the addressing process is ended after confirming that the verification result is that the address configuration is successful.
[0089] After the battery simulation unit in the battery simulation device completes the address configuration, it can send an address setting completion notification to the network multi-serial port unit. The address setting completion notification can carry the address frame information of the battery simulation unit. The network multi-serial port unit can forward the address setting completion notification to the host computer so that the host computer verifies whether the address setting is successful and returns the verification result.
[0090] The host computer determines whether the address allocation of the BMS test system is completed according to the maximum address of the battery simulation device group, that is, whether the address frame information returned by the battery simulation device meets the maximum address frame information generated by the host computer. If not, it means that the allocation is not completed. At the same time, it determines whether the address allocation time exceeds the preset first time threshold. If the address allocation time exceeds the preset first time threshold, it means that the address allocation fails. If it meets and does not exceed, it means that the address configuration is successful and the address allocation end process can be entered. Among them, the first time threshold can be set according to the actual situation, such as 1s, 3s, 5s, etc.
[0091] The host computer returns the verification result to the network multi-serial port unit. After receiving it, the network multi-serial port unit transparently transmits it to the battery simulation device and pulls up the address line at the same time. After the battery simulation device bus receives the verification result, if it is determined that the verification result is that the address configuration is successful, the battery simulation unit on the bus ends the address allocation process.
[0092] The BMS test system addressing method of the present invention receives the addressing start signal and address frame sent by the docked network multi-serial port unit through each battery simulation device, wherein the addressing start signal is generated by the network multi-serial port unit executing the addressing start command of the host computer, the address frame is generated by the host computer and sent to the network multi-serial port unit, the battery simulation device responds to the addressing start signal to start the addressing process, and the unique address identifier of each battery simulation unit is configured one by one according to the address frame using a chain increment mechanism. The present invention divides the entire cluster of BMS test systems into a number of battery simulation devices, each battery simulation device communicates with the host computer through the docked network multi-serial port unit, and converts the complex address configuration of the BMS test system into the addressing of a single battery simulation device. As long as the addressing of all single battery simulation devices is completed, the addressing task of the entire cluster of BMS test systems is completed. For each battery simulation device, the unique address of each battery simulation unit is configured by chain increment using an address frame, ensuring that each battery simulation unit can obtain a unique address, providing addressing guarantee for the test of the BMS test system, and greatly simplifying the address configuration process, improving the efficiency and accuracy of the configuration.
[0093] Reference Figure 5 , shows a flowchart of another BMS test system addressing method provided in an embodiment of the present invention, which may specifically include the following steps:
[0094] Step 501, determining the initial address of each battery simulation device according to the number of battery simulation devices in the BMS test system, setting the address sequence number of the battery simulation device, and generating an address frame using the initial address and address sequence number of each battery simulation device;
[0095] Step 502, sending an addressing start command and the address frame to a network multi-serial port unit; the network multi-serial port unit is used to execute the addressing start command to generate an addressing start signal and send the addressing start signal and the address frame to a corresponding battery simulation device; the battery simulation device is used to respond to the addressing start signal and configure a unique address identifier of each battery simulation unit according to the address frame;
[0096] Step 503, receiving the address setting completion notification sent by the network multi-serial port unit, verifying whether the address setting is successful and sending the verification result to the network multi-serial port unit; the address setting completion notification is sent by the battery simulation device to the network multi-serial port unit, and the network multi-serial port unit is used to forward the verification result to the battery simulation device; the battery simulation device is used to determine whether to end the addressing process according to the verification result.
[0097] In one embodiment of the present invention, the method further comprises:
[0098] Determine whether the address frame information returned by the battery simulation device conforms to the maximum address frame information generated by the host computer and determine whether the address allocation time exceeds a preset first time threshold;
[0099] If the address frame information returned by the battery simulation device meets the maximum address frame information generated by the host computer and the address allocation time does not exceed the preset first time threshold, a verification result of successful address configuration is generated;
[0100] If the address frame information returned by the battery simulation device does not conform to the maximum address frame information generated by the host computer or the address allocation time exceeds the preset first time threshold, a verification result of address configuration failure is generated.
[0101] As for this method embodiment, since it is basically similar to the first method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the first method embodiment.
[0102] Reference Figure 6 , shows a flowchart of another BMS test system addressing method provided in an embodiment of the present invention, which may specifically include the following steps:
[0103] Step 601, receiving an addressing start command and an address frame sent by a host computer; the address frame includes an initial address and an address sequence number of a battery simulation device; the initial address of the battery simulation device is determined by the host computer according to the number of battery simulation devices in the BMS test system;
[0104] Step 602, executing the addressing start command to generate an addressing start signal and sending the addressing start signal and the address frame to the corresponding battery simulation device; the battery simulation device is used to respond to the addressing start signal and configure the unique address identifier of each battery simulation unit according to the address frame;
[0105] Step 603, receiving the address setting completion notification sent by the battery simulation device and forwarding it to the host computer;
[0106] Step 604, receiving the verification result sent by the host computer and forwarding it to the battery simulation device.
[0107] As for this method embodiment, since it is basically similar to the first method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the first method embodiment.
[0108] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.
[0109] Reference Figure 7 , shows a structural block diagram of a BMS test system addressing device provided in an embodiment of the present invention, which may specifically include the following modules:
[0110] The addressing signal and address frame receiving module 701 is used for each battery simulation device to receive the addressing start signal and address frame sent by the connected network multi-serial port unit; the addressing start signal is generated by the network multi-serial port unit executing the addressing start command of the host computer, and the address frame is generated by the host computer and sent to the network multi-serial port unit;
[0111] The address configuration module 702 is used for the battery simulation device to start the addressing process in response to the addressing start signal, and configure the unique address identifier of each battery simulation unit one by one using a chain increment mechanism according to the address frame.
[0112] Optionally, the address frame includes an initial address and an address sequence number of the battery simulation device; the initial address of the battery simulation device is determined by the host computer according to the number of battery simulation devices in the BMS test system.
[0113] Optionally, the address configuration module includes:
[0114] The first battery simulation battery address configuration submodule is used for the first battery simulation unit that receives the addressing start signal to respond to the addressing start signal to start the addressing process, and configure its own unique address identifier according to the initial address and address sequence number of the battery simulation device.
[0115] The new address frame generation submodule is used for, after configuration is completed, the first battery simulation unit that receives the addressing start signal increments the address sequence number to generate a new address sequence number, and combines it with the initial address to form a new address frame.
[0116] A transfer submodule, used for transferring an addressing start signal and a new address frame to a next battery simulation unit;
[0117] The repeated execution submodule is used for subsequent battery simulation units to repeat the steps of the first battery simulation battery address configuration submodule, the new address frame generation submodule and the transmission submodule after receiving the addressing start signal and the new address frame until all battery simulation units in the battery simulation device complete the address configuration.
[0118] Optionally, the device further comprises:
[0119] An address configuration completion notification sending module is used to send an address setting completion notification to the network multi-serial port unit after the battery simulation unit completes the address configuration; the network multi-serial port unit is used to forward the address setting completion notification to the host computer so that the host computer verifies whether the address setting is successful and returns the verification result;
[0120] The address configuration verification result receiving module is used to receive the verification result forwarded by the network multi-serial port unit, and end the addressing process after confirming that the verification result is that the address configuration is successful.
[0121] Reference Figure 8 , shows a structural block diagram of another BMS test system addressing device provided in an embodiment of the present invention, which may specifically include the following modules:
[0122] An address frame generation module 801 is used to determine the initial address of each battery simulation device according to the number of battery simulation devices in the BMS test system, set the address sequence number of the battery simulation device, and generate an address frame using the initial address and address sequence number of each battery simulation device;
[0123] The addressing command and address frame sending module 802 is used to send an addressing start command and the address frame to the network multi-serial port unit; the network multi-serial port unit is used to execute the addressing start command to generate an addressing start signal and send the addressing start signal and the address frame to the corresponding battery simulation device; the battery simulation device is used to respond to the addressing start signal and configure the unique address identifier of each battery simulation unit according to the address frame;
[0124] The address configuration verification module 803 is used to receive the address setting completion notification sent by the network multi-serial port unit, verify whether the address setting is successful, and send the verification result to the network multi-serial port unit; the address setting completion notification is sent by the battery simulation device to the network multi-serial port unit, and the network multi-serial port unit is used to forward the verification result to the battery simulation device; the battery simulation device is used to determine whether to end the addressing process according to the verification result.
[0125] Optionally, the device further comprises:
[0126] The addressing time verification module is used to determine whether the address frame information returned by the battery simulation device conforms to the maximum address frame information generated by the host computer and whether the address allocation time exceeds a preset first time threshold;
[0127] An address configuration success confirmation module, used to generate a verification result of successful address configuration if the address frame information returned by the battery simulation device meets the maximum address frame information generated by the host computer and the address allocation time does not exceed a preset first time threshold;
[0128] The address configuration success or failure confirmation module is used to generate a verification result of address configuration failure if the address frame information returned by the battery simulation device does not conform to the maximum address frame information generated by the host computer or the address allocation time exceeds a preset first time threshold.
[0129] Reference Fig. 9 , shows a structural block diagram of another BMS test system addressing device provided in an embodiment of the present invention, which may specifically include the following modules:
[0130] The addressing command and address frame receiving module 901 is used to receive the addressing start command and address frame sent by the host computer; the address frame includes the initial address and address sequence number of the battery simulation device; the initial address of the battery simulation device is determined by the host computer according to the number of battery simulation devices in the BMS test system;
[0131] The addressing command execution module 902 is used to execute the addressing start command to generate an addressing start signal and send the addressing start signal and the address frame to the corresponding battery simulation device; the battery simulation device is used to respond to the addressing start signal and configure the unique address identifier of each battery simulation unit according to the address frame;
[0132] An address configuration completion notification forwarding module 903 is used to receive an address setting completion notification sent by the battery simulation device and forward it to the host computer;
[0133] The address configuration verification result forwarding module 904 is used to receive the verification result sent by the host computer and forward it to the battery simulation device.
[0134] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0135] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0136] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0137] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.
Claims
1. A BMS test system addressing method, characterized in that: The BMS test system includes a plurality of battery simulation devices, each of which includes a plurality of battery simulation units. The battery simulation devices are connected to a host computer through a network multi-serial port unit, and each network multi-serial port unit is connected to a plurality of battery simulation devices. The method includes: Each battery simulation device receives an addressing start signal and an address frame sent by the connected network multi-serial port unit; the addressing start signal is generated by the network multi-serial port unit executing the addressing start command of the host computer, and the address frame is generated by the host computer and sent to the network multi-serial port unit; The battery simulation device starts the addressing process in response to the addressing start signal, and configures the unique address identifier of each battery simulation unit one by one using a chain increment mechanism according to the address frame.
2. The method according to claim 1, characterized in that The address frame includes an initial address and an address sequence number of the battery simulation device; the initial address of the battery simulation device is determined by the host computer according to the number of battery simulation devices in the BMS test system.
3. The method according to claim 2, characterized in that The battery simulation device starts the addressing process in response to the addressing start signal, and configures the unique address identifier of each battery simulation unit one by one using a chain increment mechanism according to the address frame, including: S1, the first battery simulation unit that receives the addressing start signal responds to the addressing start signal to start the addressing process, and configures its own unique address identifier according to the initial address and address sequence number of the battery simulation device. S2, after the configuration is completed, the first battery simulation unit that receives the addressing start signal increments the address number to generate a new address number, and combines it with the initial address to form a new address frame. S3, passing the addressing start signal and the new address frame to the next battery simulation unit; S4, after receiving the addressing start signal and the new address frame, the subsequent battery simulation unit repeats steps S1 to S3 until all battery simulation units in the battery simulation device complete address configuration.
4. The method according to claim 1, characterized in that: The method further comprises: After the battery simulation unit completes the address configuration, it sends an address setting completion notification to the network multi-serial port unit; the network multi-serial port unit is used to forward the address setting completion notification to the host computer, so that the host computer verifies whether the address setting is successful and returns the verification result; The verification result forwarded by the network multi-serial port unit is received, and the addressing process is ended after confirming that the verification result is that the address configuration is successful.
5. A BMS test system addressing method, characterized in that: The BMS test system includes a plurality of battery simulation devices, each of which includes a plurality of battery simulation units. The battery simulation devices are connected to a host computer through a network multi-serial port unit. Each network multi-serial port unit is connected to a plurality of battery simulation devices and applied to the host computer. The method includes: Determine the initial address of each battery simulation device according to the number of battery simulation devices in the BMS test system, set the address sequence number of the battery simulation device, and generate an address frame using the initial address and address sequence number of each battery simulation device; Sending an addressing start command and the address frame to a network multi-serial port unit; the network multi-serial port unit is used to execute the addressing start command to generate an addressing start signal and send the addressing start signal and the address frame to a corresponding battery simulation device; the battery simulation device is used to respond to the addressing start signal and configure a unique address identifier of each battery simulation unit according to the address frame; Receive the address setting completion notification sent by the network multi-serial port unit, verify whether the address setting is successful, and send the verification result to the network multi-serial port unit; the address setting completion notification is sent by the battery simulation device to the network multi-serial port unit, and the network multi-serial port unit is used to forward the verification result to the battery simulation device; the battery simulation device is used to determine whether to end the addressing process according to the verification result.
6. The method according to claim 5, characterized in that The method further comprises: Determine whether the address frame information returned by the battery simulation device conforms to the maximum address frame information generated by the host computer and determine whether the address allocation time exceeds a preset first time threshold; If the address frame information returned by the battery simulation device meets the maximum address frame information generated by the host computer and the address allocation time does not exceed the preset first time threshold, a verification result of successful address configuration is generated; If the address frame information returned by the battery simulation device does not conform to the maximum address frame information generated by the host computer or the address allocation time exceeds the preset first time threshold, a verification result of address configuration failure is generated.
7. A BMS test system addressing method, characterized in that: The BMS test system includes a plurality of battery simulation devices, each of which includes a plurality of battery simulation units. The battery simulation devices are connected to a host computer through a network multi-serial port unit. Each network multi-serial port unit is connected to a plurality of battery simulation devices. The method is applied to the network multi-serial port unit and includes: Receive an addressing start command and an address frame sent by a host computer; the address frame includes an initial address and an address sequence number of a battery simulation device; the initial address of the battery simulation device is determined by the host computer according to the number of battery simulation devices in a BMS test system; Executing the addressing start command to generate an addressing start signal and sending the addressing start signal and the address frame to the corresponding battery simulation device; the battery simulation device is used to respond to the addressing start signal and configure the unique address identifier of each battery simulation unit according to the address frame; Receive the address setting completion notification sent by the battery simulation device and forward it to the host computer; Receive the verification results sent by the host computer and forward them to the battery simulation device.
8. A BMS test system addressing device, characterized in that: The BMS test system includes multiple battery simulation devices, each of which includes multiple battery simulation units. The battery simulation devices are connected to the host computer through a network multi-serial port unit. Each network multi-serial port unit is connected to several battery simulation devices. The device includes: The addressing signal and address frame receiving module is used for each battery simulation device to receive the addressing start signal and address frame sent by the connected network multi-serial port unit; the addressing start signal is generated by the network multi-serial port unit executing the addressing start command of the host computer, and the address frame is generated by the host computer and sent to the network multi-serial port unit; The address configuration module is used for the battery simulation device to start the addressing process in response to the addressing start signal, and configure the unique address identifier of each battery simulation unit one by one using a chain increment mechanism according to the address frame.
9. A BMS test system addressing device, characterized in that: The BMS test system includes multiple battery simulation devices, each of which includes multiple battery simulation units. The battery simulation devices are connected to the host computer through a network multi-serial port unit. Each network multi-serial port unit is connected to several battery simulation devices and applied to the host computer. The device includes: An address frame generation module, used to determine the initial address of each battery simulation device according to the number of battery simulation devices in the BMS test system, set the address sequence number of the battery simulation device, and generate an address frame using the initial address and address sequence number of each battery simulation device; An addressing command and address frame sending module, used for sending an addressing start command and the address frame to a network multi-serial port unit; the network multi-serial port unit is used for executing the addressing start command to generate an addressing start signal and sending the addressing start signal and the address frame to a corresponding battery simulation device; the battery simulation device is used for responding to the addressing start signal and configuring a unique address identifier of each battery simulation unit according to the address frame; The address configuration verification module is used to receive the address setting completion notification sent by the network multi-serial port unit, verify whether the address setting is successful, and send the verification result to the network multi-serial port unit; the address setting completion notification is sent by the battery simulation device to the network multi-serial port unit, and the network multi-serial port unit is used to forward the verification result to the battery simulation device; the battery simulation device is used to determine whether to end the addressing process according to the verification result.
10. A BMS test system addressing device, characterized in that: The BMS test system includes a plurality of battery simulation devices, each of which includes a plurality of battery simulation units. The battery simulation devices are connected to the host computer through a network multi-serial port unit. Each network multi-serial port unit is connected to a plurality of battery simulation devices. The device is applied to the network multi-serial port unit and includes: An addressing command and address frame receiving module, used for receiving an addressing start command and an address frame sent by a host computer; the address frame includes an initial address and an address sequence number of a battery simulation device; the initial address of the battery simulation device is determined by the host computer according to the number of battery simulation devices in the BMS test system; An addressing command execution module, used for executing the addressing start command to generate an addressing start signal and sending the addressing start signal and the address frame to the corresponding battery simulation device; the battery simulation device is used for responding to the addressing start signal and configuring the unique address identifier of each battery simulation unit according to the address frame; An address configuration completion notification forwarding module is used to receive an address setting completion notification sent by a battery simulation device and forward it to a host computer; The address configuration verification result forwarding module is used to receive the verification result sent by the host computer and forward it to the battery simulation device.
