Time synchronization method and device for BMS (Battery Management System) test system
By designing a network multi-serial port unit bridge, accurate time synchronization of the battery simulation unit in the BMS test system was achieved, solving the problem of data acquisition synchronization of the battery simulation unit in an environment without constructing a real battery, and improving the stability and reliability of the test system.
Patent Information
- Application Number
- CN202410864202.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-30
- Publication Date
- 2024-11-01
AI Technical Summary
In a BMS testing system, how can we achieve accurate time synchronization of multiple battery simulation cells without building a real battery environment, ensuring the synchronization and security of data acquisition?
By introducing a network multi-serial port unit as a bridge, time synchronization management of multiple battery simulation devices can be achieved through time synchronization operations between the network multi-serial port units, ensuring accurate time synchronization between battery simulation units.
It provides a precisely synchronized clock environment, ensuring the time synchronization of the battery simulation units in the BMS test system, and improving the stability and reliability of the test.
Smart Images

Figure CN118890122A_ABST
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 timing method and a BMS test system timing 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 includes several battery simulation units. In the whole cluster environment, BMS test needs to collect battery simulation unit data at the same time. Therefore, it is necessary to solve the timing problem of the whole cluster of battery simulation units. Summary of the invention
[0004] In view of the above problems, the present invention is proposed to provide a BMS test system timing method and a corresponding BMS test system timing device that overcome the above problems or at least partially solve the above problems.
[0005] The present invention discloses a timing 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, and each network multi-serial port unit is connected to a plurality of battery simulation devices. The method includes:
[0006] The network multi-serial port unit receives a network multi-serial port unit timing command sent by the host computer, responds to the network multi-serial port unit timing command to execute timing between network multi-serial port units, and sends a battery simulation unit timing command to the docked battery simulation device after the timing is completed;
[0007] The battery simulation units in the battery simulation device respond to the battery simulation unit timing command and perform timing between the battery simulation units.
[0008] Optionally, the network multi-serial port unit timing command carries a time preset by the host computer, the network multi-serial port unit receives the network multi-serial port unit timing command sent by the host computer, responds to the network multi-serial port unit timing command to perform timing between network multi-serial port units, and sends a battery simulation unit timing command to the docked battery simulation device after the timing is completed, including:
[0009] The network multi-serial port unit as the master device receives the network multi-serial port unit time synchronization command sent by the host computer, responds to the network multi-serial port unit time synchronization command and runs according to the preset time;
[0010] After completing the time synchronization, the network multi-serial port unit as the master device outputs a time synchronization signal to the network multi-serial port unit as the slave device; the time synchronization signal carries the clock source type and current time information of the network multi-serial port unit as the master device;
[0011] After receiving the synchronization signal, the network multi-serial port unit as the slave device sets the clock source to the clock source type of the network multi-serial port unit of the master device, and operates according to the current time information of the network multi-serial port unit of the master device.
[0012] After all network multi-serial port units have completed the time synchronization, a battery simulation unit time synchronization command is sent to the connected battery simulation device.
[0013] Optionally, the network multi-serial port unit as the master device receives a network multi-serial port unit time synchronization command sent by the host computer, responds to the network multi-serial port unit time synchronization command and runs according to the preset time, including:
[0014] Receive a clock source setting command and a time setting command sent by a host computer; the clock source setting command carries the clock source type selected by the host computer; the time setting command carries the time preset by the host computer;
[0015] In response to the clock source setting command, the target clock source is set to the clock source type selected by the host computer, and in response to the time setting command, the target time is set to the time preset by the host computer;
[0016] Receive the time synchronization signal sent by the host computer, respond to the time synchronization signal and run according to the preset time.
[0017] Optionally, the battery simulation unit in the battery simulation device responds to the battery simulation unit timing command to perform timing between the battery simulation units, including:
[0018] Receive a clock source setting command and a time setting command sent by a network multi-serial port unit; the clock source setting command carries the clock source type of the network multi-serial port unit; the time setting command carries the current time information of the network multi-serial port unit;
[0019] In response to the clock source setting command, the target clock source is set to the clock source type selected by the network multi-serial port unit, and in response to the time setting command, the target time is set to the current time information of the network multi-serial port unit;
[0020] Receive a time synchronization signal sent by a network multi-serial port unit, and respond to the time synchronization signal to operate according to the current time information of the network multi-serial port unit.
[0021] Optionally, the method further comprises:
[0022] Determining whether the preset time or the current time information is valid;
[0023] If the preset time or the current time information is invalid, then the time synchronization process ends;
[0024] If it is determined that the preset time is valid, wait for the host computer to send a time synchronization signal;
[0025] If it is determined that the current time information is valid, then wait for the network multi-serial port unit to send a time synchronization signal.
[0026] Optionally, the method further comprises:
[0027] After receiving the time synchronization signal, determine whether the time interval between the arrival time of the time synchronization signal and the preset time or the confirmation effective time of the current time information exceeds the preset time threshold;
[0028] If the time threshold is exceeded, it is determined that the time synchronization has failed, and the preset time or the current time information is cleared, and the operation continues according to the original time;
[0029] If the time interval between the arrival time of the time synchronization signal and the confirmation validity time of the preset time does not exceed the time threshold, respond to the time synchronization signal and run according to the preset time;
[0030] If the time interval between the arrival time of the timing signal and the confirmation validity time of the current time information does not exceed the time threshold, the timing signal is responded to and the operation is performed according to the current time information.
[0031] The present invention also discloses a BMS test system timing device, the BMS test system includes a plurality of battery simulation devices, each battery simulation device includes a plurality of battery simulation units, each network multi-serial port unit is connected to a plurality of battery simulation devices, and the device includes:
[0032] The network multi-serial port unit timing module is used for the network multi-serial port unit to receive the network multi-serial port unit timing command sent by the host computer, respond to the network multi-serial port unit timing command to execute the timing between the network multi-serial port units, and send the battery simulation unit timing command to the docked battery simulation device after the timing is completed;
[0033] The battery simulation unit timing module is used for the battery simulation unit in the battery simulation device to respond to the battery simulation unit timing command and perform timing between the battery simulation units.
[0034] Optionally, the network multi-serial port unit time synchronization command carries a time preset by a host computer, and the network multi-serial port unit time synchronization module includes:
[0035] The master device timing submodule is used for the network multi-serial port unit as the master device to receive the network multi-serial port unit timing command sent by the host computer, and respond to the network multi-serial port unit timing command to run according to the preset time;
[0036] A slave device timing signal sending submodule, which is used for the network multi-serial port unit as the master device to output a timing signal to the network multi-serial port unit as the slave device after completing the time synchronization; the timing signal carries the clock source type and current time information of the network multi-serial port unit as the master device;
[0037] The slave device timing submodule is used to set the clock source to the clock source type of the network multi-serial port unit of the master device after the network multi-serial port unit of the slave device receives the timing signal, and operate according to the current time information of the network multi-serial port unit of the master device.
[0038] The battery simulation unit timing command sending submodule is used to send the battery simulation unit timing command to the connected battery simulation device after all network multi-serial port units have completed timing.
[0039] Optionally, the master device timing submodule includes:
[0040] A clock source and time command receiving unit, used to receive a clock source setting command and a time setting command sent by a host computer; the clock source setting command carries the clock source type selected by the host computer; the time setting command carries the time preset by the host computer;
[0041] A clock source and time setting unit, configured to respond to the clock source setting command, set the target clock source to the clock source type selected by the host computer, and respond to the time setting command, set the target time to the time preset by the host computer;
[0042] The time synchronization execution unit is used to receive the time synchronization signal sent by the host computer, and respond to the time synchronization signal to run according to the preset time.
[0043] Optionally, the battery simulation unit timing module includes:
[0044] The clock source and time command receiving submodule is used to receive the clock source setting command and time setting command sent by the network multi-serial port unit; the clock source setting command carries the clock source type of the network multi-serial port unit; the time setting command carries the current time information of the network multi-serial port unit;
[0045] The clock source and time setting submodule is used to respond to the clock source setting command, set the target clock source to the clock source type selected by the network multi-serial port unit, and respond to the time setting command, set the target time to the current time information of the network multi-serial port unit;
[0046] The time synchronization execution submodule is used to receive the time synchronization signal sent by the network multi-serial port unit, and respond to the time synchronization signal to operate according to the current time information of the network multi-serial port unit.
[0047] Optionally, the device further comprises:
[0048] A time validity judgment module, used to judge whether the preset time or the current time information is valid;
[0049] An invalid time confirmation module, used to end the time synchronization process if the preset time or the current time information is invalid;
[0050] A first valid time confirmation module, for waiting for the host computer to send a time synchronization signal if it is determined that the preset time is valid;
[0051] The second valid time confirmation module is used to wait for the network multi-serial port unit to send a time synchronization signal if it is determined that the current time information is valid.
[0052] Optionally, the device further comprises:
[0053] A time determination module is used to determine, after receiving the time signal, whether the time interval between the arrival time of the time signal and the preset time or the confirmation effective time of the current time information exceeds a preset time threshold;
[0054] A time synchronization failure confirmation module, used to determine that the time synchronization has failed if the time threshold is exceeded, and to clear the preset time or the current time information and continue to run according to the original time;
[0055] A first time synchronization success confirmation module, configured to respond to the time synchronization signal and run according to the preset time if the time interval between the time synchronization signal arrival time and the preset time confirmation validity time does not exceed the time threshold;
[0056] The second time synchronization success confirmation module is used to respond to the time synchronization signal and operate according to the current time information if the time interval between the arrival time of the time synchronization signal and the confirmation validity time of the current time information does not exceed the time threshold.
[0057] The present invention includes the following advantages:
[0058] The BMS test system timing method of the present invention comprises a network multi-serial port unit receiving a network multi-serial port unit timing command sent by a host computer, responding to the network multi-serial port unit timing command to execute timing between the network multi-serial port units, and sending a battery simulation unit timing command to a docked battery simulation device after the timing is completed, and the battery simulation unit in the battery simulation device responds to the battery simulation unit timing command to execute timing between the battery simulation units. The present invention introduces a network multi-serial port unit as a bridge to execute timing operations between network multi-serial port units, and can realize timing management of multiple battery simulation devices through the network multi-serial port unit, thereby ensuring accurate timing between battery simulation units in the entire BMS test system, and providing a precise and synchronized clock for the test of the BMS test system. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] Figure 1 is a flowchart of a method for synchronizing a BMS test system provided by an embodiment of the present invention;
[0060] Figure 2 is a network multi-serial port unit resource block diagram provided by an embodiment of the present invention;
[0061] Figure 3 It is a timing block diagram of a network multi-serial port unit provided by an embodiment of the present invention;
[0062] Figure 4 It is a flow chart of network multi-serial port unit synchronization provided by an embodiment of the present invention;
[0063] Figure 5 is a timing flow chart of a battery simulation unit provided by an embodiment of the present invention;
[0064] Figure 6 It is a structural block diagram of a BMS test system timing device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0065] 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.
[0066] Reference Figure 1 , shows a flowchart of a BMS test system timing method provided in an embodiment of the present invention, which may specifically include the following steps:
[0067] Step 101, the network multi-serial port unit receives a network multi-serial port unit timing command sent by a host computer, responds to the network multi-serial port unit timing command to perform timing between network multi-serial port units, and sends a battery simulation unit timing command to the connected battery simulation device after the timing is completed;
[0068] Step 102 : The battery simulation units in the battery simulation device respond to the battery simulation unit timing command and perform timing between the battery simulation units.
[0069] 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.
[0070] 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 for the time signal source; 8 fiber optic interfaces, the fiber optic signal is used to communicate with the device connected to the fiber optic; 8 address control interfaces, 8 address control signals are used to communicate with the device connected to the network multi-serial port unit; 16 RS485 interfaces, of which 8 RS485 signals are used to communicate with the device connected to it by RS485, and the other 8 RS485 signals transmit the clock signal of the device connected to it by RS485. The clock signal is transmitted by RS485 differential signal, which is more stable and less susceptible to interference.
[0071] Reference Figure 3, the network multi-serial port unit can select different clock sources, which can be external clock signals or internal RTC second pulse clock sources; each optical fiber interface and RS485 interface are connected to a battery simulation device, and the host computer sends a timing 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 optical fiber signal sent enters the battery simulation device, the battery simulation device converts the optical fiber signal into an RS485 signal, and transmits the information to each battery simulation unit through the RS485 signal inside the battery simulation device. After the battery simulation unit receives the time required for timing, the timing signal sends a clock signal to the timing RS485 interface of the battery simulation device through the timing RS485 interface. Each battery simulation unit will convert the RS485 signal into an edge signal. After each battery simulation unit receives the timing signal, the time required for timing takes effect and runs according to the time required for timing. However, the entire cluster of BMS test systems contains several battery simulation devices, and one network multi-serial port unit may not be able to meet the timing of the entire cluster of BMS test systems. Adding a network multi-serial port unit can complete the time synchronization of more battery simulation devices. For example, if the master device network multi-serial port has 8 clock signal interfaces, it can expand 8 slave device network multi-serial port units at one time. The 8-slave device network multi-serial port unit can realize the time synchronization of more battery simulation devices according to the time synchronization solution of a single network multi-serial port unit, thereby completing the time synchronization of the entire cluster BMS test system.
[0072] Specifically, the network multi-serial port unit in the embodiment of the present invention can receive the network multi-serial port unit timing command from the host computer, and quickly respond to the network multi-serial port unit timing command, perform the timing operation between the network multi-serial port units, ensure the accurate synchronization of time between the network multi-serial port units, and lay the foundation for the subsequent control of the timing of the battery simulation equipment corresponding to different network multi-serial port units.
[0073] After completing the timing, the network multi-serial port unit can send a battery simulation unit timing command to the connected battery simulation device. The battery simulation unit in the battery simulation device can respond to the battery simulation unit timing command, execute the timing between the battery simulation units, and execute the timing operation between the battery simulation units to ensure the time synchronization between the battery simulation units, providing a precise and synchronized clock for the testing of the BMS test system.
[0074] In general, the present invention introduces a network multi-serial port unit as a bridge to realize the time synchronization operation between the network multi-serial port units, and realizes the time synchronization control of multiple battery simulation devices through the network multi-serial port unit, ensuring the accurate time synchronization between the battery simulation units in the entire BMS test system, and providing a stable and reliable clock environment for the testing of the BMS test system.
[0075] In one embodiment of the present invention, the network multi-serial port unit timing command carries the time preset by the host computer, the network multi-serial port unit receives the network multi-serial port unit timing command sent by the host computer, responds to the network multi-serial port unit timing command to execute the timing between the network multi-serial port units, and sends the battery simulation unit timing command to the docked battery simulation device after the timing is completed, including:
[0076] The network multi-serial port unit as the master device receives the network multi-serial port unit time synchronization command sent by the host computer, responds to the network multi-serial port unit time synchronization command and runs according to the preset time;
[0077] After completing the time synchronization, the network multi-serial port unit as the master device outputs a time synchronization signal to the network multi-serial port unit as the slave device; the time synchronization signal carries the clock source type and current time information of the network multi-serial port unit as the master device;
[0078] After receiving the synchronization signal, the network multi-serial port unit as the slave device sets the clock source to the clock source type of the network multi-serial port unit of the master device, and operates according to the current time information of the network multi-serial port unit of the master device.
[0079] After all network multi-serial port units have completed the time synchronization, a battery simulation unit time synchronization command is sent to the connected battery simulation device.
[0080] In an embodiment of the present invention, when the host computer sends a network multi-serial port unit time synchronization command, the network multi-serial port unit can receive the network multi-serial port unit time synchronization command, and the network multi-serial port unit time synchronization command can preset time information. The network multi-serial port unit as a master device can execute the network multi-serial port unit time synchronization command, and configure and operate according to the preset time. Once the master device completes the time synchronization, it can output a time synchronization signal to the network multi-serial port unit as a slave device, and the time synchronization signal not only includes the clock source type of the master device, but also includes the current time information of the master device.
[0081] After receiving the synchronization signal, the slave device will set its own clock source to the same type as the master device and synchronize to the current time of the master device. In this way, all network multi-serial port units can use the same clock source and run at the same time to achieve time synchronization between network multi-serial port units. When all network multi-serial port units have successfully completed the synchronization, the network multi-serial port unit can send a battery simulation unit synchronization command to the connected battery simulation device.
[0082] In one embodiment of the present invention, a network multi-serial port unit as a master device receives a network multi-serial port unit time synchronization command sent by a host computer, responds to the network multi-serial port unit time synchronization command and runs according to the preset time, including:
[0083] Receive a clock source setting command and a time setting command sent by a host computer; the clock source setting command carries the clock source type selected by the host computer; the time setting command carries the time preset by the host computer;
[0084] In response to the clock source setting command, the target clock source is set to the clock source type selected by the host computer, and in response to the time setting command, the target time is set to the time preset by the host computer;
[0085] Receive the time synchronization signal sent by the host computer, respond to the time synchronization signal and run according to the preset time.
[0086] In the embodiment of the present invention, refer to Figure 4 , the network multi-serial port unit as the master device can receive the clock source setting command and time setting command from the host computer. The clock source setting command contains the clock source type selected by the host computer, while the time setting command carries the time preset by the host computer. After receiving these commands, the master device can set its own target clock source and target time according to the requirements of the host computer.
[0087] Specifically, the master device first responds to the clock source setting command and sets its internal clock source to the type selected by the host computer. Then, the master device responds to the time setting command and sets the target time to the time preset by the host computer, and the network multi-serial port unit is set to pulse capture mode.
[0088] After completing the above settings, the master device will enter the waiting state. When the host computer sends a synchronization signal, the master device can receive the synchronization signal and respond to the synchronization signal to run according to the preset time, so that the network multi-serial port unit as the master device can run according to the time required by the host computer. At the same time, since the network multi-serial port unit adopts the pulse capture mode, its synchronization accuracy is also improved.
[0089] In one embodiment of the present invention, the battery simulation unit in the battery simulation device responds to the battery simulation unit timing command to perform timing between the battery simulation units, including:
[0090] Receive a clock source setting command and a time setting command sent by a network multi-serial port unit; the clock source setting command carries the clock source type of the network multi-serial port unit; the time setting command carries the current time information of the network multi-serial port unit;
[0091] In response to the clock source setting command, the target clock source is set to the clock source type selected by the network multi-serial port unit, and in response to the time setting command, the target time is set to the current time information of the network multi-serial port unit;
[0092] Receive a time synchronization signal sent by a network multi-serial port unit, and respond to the time synchronization signal to operate according to the current time information of the network multi-serial port unit.
[0093] After completing the time synchronization of the network multi-serial port unit, you can synchronize the battery simulation unit. Figure 5 The network multi-serial port unit can send the clock source setting command, time setting command and timing signal to the battery simulation device bus. The battery simulation unit on the bus can respond to these clock source setting command, time setting command and timing signal to complete the timing of the battery simulation unit in the BMS test system.
[0094] Specifically, the battery simulation unit receives the clock source setting command and the time setting command sent by the network multi-serial port unit. The clock source setting command carries the clock source type of the network multi-serial port unit, and the time setting command carries the current time information of the network multi-serial port unit. The battery simulation unit can first respond to the clock source setting command and set its internal clock source to the clock source type of the network multi-serial port unit. Then, the battery simulation unit can respond to the time setting command and set the target time to the current time of the network multi-serial port unit, and the battery simulation unit is set to pulse capture mode.
[0095] After completing the above settings, the battery simulation unit will enter the waiting state. When the network multi-serial port unit sends a synchronization signal, the battery simulation unit can receive the synchronization signal and respond to the synchronization signal to run according to the current time of the network multi-serial port unit, so as to synchronize the battery simulation unit with the network multi-serial port unit, and then synchronize the entire BMS test system. At the same time, since the network multi-serial port unit adopts the pulse capture mode, its synchronization accuracy is also improved.
[0096] In one embodiment of the present invention, the method further comprises:
[0097] Determining whether the preset time or the current time information is valid;
[0098] If the preset time or the current time information is invalid, then the time synchronization process ends;
[0099] If it is determined that the preset time is valid, wait for the host computer to send a time synchronization signal;
[0100] If it is determined that the current time information is valid, then wait for the network multi-serial port unit to send a time synchronization signal.
[0101] In the embodiment of the present invention, a series of time validity judgments will be performed, and the time validity judgment may include the time format, the reasonable time range, etc., to ensure the accuracy and rationality of the time data. First, the network multi-serial port unit can determine whether the time preset by the host computer is valid; if it is invalid, the time synchronization process is directly terminated to avoid invalid synchronization operations. If the preset time is verified to be valid, the network multi-serial port unit enters a waiting state until it receives a time synchronization signal from the host computer and prepares for time synchronization.
[0102] Furthermore, the battery simulation unit on the bus will also confirm whether the current time information from the network multi-serial port unit is valid. If the battery simulation unit finds that the current time information is invalid, it will also end the time synchronization process to avoid using invalid time data. Once the current time information is confirmed to be valid, the battery simulation unit will save this time information to the valid flag and continue to wait for the time synchronization signal sent by the network multi-serial port unit.
[0103] In one embodiment of the present invention, the method further comprises:
[0104] After receiving the time synchronization signal, determine whether the time interval between the arrival time of the time synchronization signal and the preset time or the confirmation effective time of the current time information exceeds the preset time threshold;
[0105] If the time threshold is exceeded, it is determined that the time synchronization has failed, and the preset time or the current time information is cleared, and the operation continues according to the original time;
[0106] If the time interval between the arrival time of the time synchronization signal and the confirmation validity time of the preset time does not exceed the time threshold, respond to the time synchronization signal and run according to the preset time;
[0107] If the time interval between the arrival time of the timing signal and the confirmation validity time of the current time information does not exceed the time threshold, the timing signal is responded to and the operation is performed according to the current time information.
[0108] In the embodiment of the present invention, the timeliness of the time synchronization can be controlled to ensure the timeliness and accuracy of the time synchronization. That is, after receiving the time synchronization signal, the network multi-serial port unit and the battery simulation unit can further determine whether the time interval between the arrival time of the time synchronization signal and the preset time or the confirmation time of the current time information exceeds the preset time threshold. Among them, the preset time threshold can be set according to the actual situation, such as 1s, 2s, 3s, etc.
[0109] Specifically, if it is detected that the time interval between the arrival time of the synchronization signal and the confirmation time of the preset time or the current time information exceeds the preset time threshold, it means that the time interval is too long, which may lead to inaccurate time synchronization. Therefore, it can be determined that the synchronization has failed, and the corresponding preset time or current time information is cleared, and continue to run according to the original time.
[0110] If the system detects that the time interval between the arrival time of the timing signal and the effective confirmation time of the preset time does not exceed the preset time threshold, it means that this time interval is acceptable, so the network multi-serial port unit can respond to this timing signal and run according to the preset time to achieve accurate timing of the network multi-serial port unit. Similarly, if it is detected that the time interval between the arrival time of the timing signal and the effective confirmation time of the current time information does not exceed the preset time threshold, the battery simulation unit will also respond to this timing signal and run according to the current time information to achieve accurate timing of the battery simulation unit. In general, the precise control of the time synchronization of the BMS measurement system can be further enhanced through the embodiments of the present invention.
[0111] The BMS test system timing method of the present invention comprises a network multi-serial port unit receiving a network multi-serial port unit timing command sent by a host computer, responding to the network multi-serial port unit timing command to execute timing between the network multi-serial port units, and sending a battery simulation unit timing command to a docked battery simulation device after the timing is completed, and the battery simulation unit in the battery simulation device responds to the battery simulation unit timing command to execute timing between the battery simulation units. The present invention introduces a network multi-serial port unit as a bridge to execute timing operations between network multi-serial port units, and can realize timing management of multiple battery simulation devices through the network multi-serial port unit, thereby ensuring accurate timing between battery simulation units in the entire BMS test system, and providing a precise and synchronized clock for the test of the BMS test system.
[0112] 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.
[0113] Reference Figure 6 , shows a structural block diagram of a BMS test system timing device provided in an embodiment of the present invention, which may specifically include the following modules:
[0114] The network multi-serial port unit timing module 601 is used for the network multi-serial port unit to receive the network multi-serial port unit timing command sent by the host computer, respond to the network multi-serial port unit timing command to perform the timing between the network multi-serial port units, and send the battery simulation unit timing command to the docked battery simulation device after the timing is completed;
[0115] The battery simulation unit timing module 602 is used for the battery simulation unit in the battery simulation device to respond to the battery simulation unit timing command and perform timing between the battery simulation units.
[0116] Optionally, the network multi-serial port unit time synchronization command carries a time preset by a host computer, and the network multi-serial port unit time synchronization module includes:
[0117] The master device timing submodule is used for the network multi-serial port unit as the master device to receive the network multi-serial port unit timing command sent by the host computer, and respond to the network multi-serial port unit timing command to run according to the preset time;
[0118] A slave device timing signal sending submodule, which is used for the network multi-serial port unit as the master device to output a timing signal to the network multi-serial port unit as the slave device after completing the time synchronization; the timing signal carries the clock source type and current time information of the network multi-serial port unit as the master device;
[0119] The slave device timing submodule is used to set the clock source to the clock source type of the network multi-serial port unit of the master device after the network multi-serial port unit of the slave device receives the timing signal, and operate according to the current time information of the network multi-serial port unit of the master device.
[0120] The battery simulation unit timing command sending submodule is used to send the battery simulation unit timing command to the connected battery simulation device after all network multi-serial port units have completed timing.
[0121] Optionally, the master device timing submodule includes:
[0122] A clock source and time command receiving unit, used to receive a clock source setting command and a time setting command sent by a host computer; the clock source setting command carries the clock source type selected by the host computer; the time setting command carries the time preset by the host computer;
[0123] A clock source and time setting unit, configured to respond to the clock source setting command, set the target clock source to the clock source type selected by the host computer, and respond to the time setting command, set the target time to the time preset by the host computer;
[0124] The time synchronization execution unit is used to receive the time synchronization signal sent by the host computer, and respond to the time synchronization signal to run according to the preset time.
[0125] Optionally, the battery simulation unit timing module includes:
[0126] The clock source and time command receiving submodule is used to receive the clock source setting command and time setting command sent by the network multi-serial port unit; the clock source setting command carries the clock source type of the network multi-serial port unit; the time setting command carries the current time information of the network multi-serial port unit;
[0127] The clock source and time setting submodule is used to respond to the clock source setting command, set the target clock source to the clock source type selected by the network multi-serial port unit, and respond to the time setting command, set the target time to the current time information of the network multi-serial port unit;
[0128] The time synchronization execution submodule is used to receive the time synchronization signal sent by the network multi-serial port unit, and respond to the time synchronization signal to operate according to the current time information of the network multi-serial port unit.
[0129] Optionally, the device further comprises:
[0130] A time validity judgment module, used to judge whether the preset time or the current time information is valid;
[0131] An invalid time confirmation module, used to end the time synchronization process if the preset time or the current time information is invalid;
[0132] A first valid time confirmation module, for waiting for the host computer to send a time synchronization signal if it is determined that the preset time is valid;
[0133] The second valid time confirmation module is used to wait for the network multi-serial port unit to send a time synchronization signal if it is determined that the current time information is valid.
[0134] Optionally, the device further comprises:
[0135] A time determination module is used to determine, after receiving the time signal, whether the time interval between the arrival time of the time signal and the preset time or the confirmation effective time of the current time information exceeds a preset time threshold;
[0136] A time synchronization failure confirmation module, used to determine that the time synchronization has failed if the time threshold is exceeded, and to clear the preset time or the current time information and continue to run according to the original time;
[0137] A first time synchronization success confirmation module, configured to respond to the time synchronization signal and run according to the preset time if the time interval between the time synchronization signal arrival time and the preset time confirmation validity time does not exceed the time threshold;
[0138] The second time synchronization success confirmation module is used to respond to the time synchronization signal and operate according to the current time information if the time interval between the arrival time of the time synchronization signal and the confirmation validity time of the current time information does not exceed the time threshold.
[0139] 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.
[0140] 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.
[0141] 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.
[0142] 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 timing 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, and each network multi-serial port unit is connected to a plurality of battery simulation devices. The method includes: The network multi-serial port unit receives a network multi-serial port unit timing command sent by the host computer, responds to the network multi-serial port unit timing command to execute timing between network multi-serial port units, and sends a battery simulation unit timing command to the docked battery simulation device after the timing is completed; The battery simulation units in the battery simulation device respond to the battery simulation unit timing command and perform timing between the battery simulation units.
2. The method according to claim 1, characterized in that The network multi-serial port unit timing command carries the time preset by the host computer, the network multi-serial port unit receives the network multi-serial port unit timing command sent by the host computer, responds to the network multi-serial port unit timing command to perform timing between the network multi-serial port units, and sends the battery simulation unit timing command to the docked battery simulation device after the timing is completed, including: The network multi-serial port unit as the master device receives the network multi-serial port unit time synchronization command sent by the host computer, responds to the network multi-serial port unit time synchronization command and runs according to the preset time; After completing the time synchronization, the network multi-serial port unit as the master device outputs a time synchronization signal to the network multi-serial port unit as the slave device; the time synchronization signal carries the clock source type and current time information of the network multi-serial port unit as the master device; After receiving the synchronization signal, the network multi-serial port unit as the slave device sets the clock source to the clock source type of the network multi-serial port unit of the master device, and operates according to the current time information of the network multi-serial port unit of the master device. After all network multi-serial port units have completed the time synchronization, a battery simulation unit time synchronization command is sent to the connected battery simulation device.
3. The method according to claim 2, characterized in that The network multi-serial port unit as the master device receives a network multi-serial port unit time synchronization command sent by the host computer, responds to the network multi-serial port unit time synchronization command and runs according to the preset time, including: Receive a clock source setting command and a time setting command sent by a host computer; the clock source setting command carries the clock source type selected by the host computer; the time setting command carries the time preset by the host computer; In response to the clock source setting command, the target clock source is set to the clock source type selected by the host computer, and in response to the time setting command, the target time is set to the time preset by the host computer; Receive the time synchronization signal sent by the host computer, respond to the time synchronization signal and run according to the preset time.
4. The method according to claim 1, characterized in that: The battery simulation unit in the battery simulation device responds to the battery simulation unit timing command and performs timing between the battery simulation units, including: Receive a clock source setting command and a time setting command sent by a network multi-serial port unit; the clock source setting command carries the clock source type of the network multi-serial port unit; the time setting command carries the current time information of the network multi-serial port unit; In response to the clock source setting command, the target clock source is set to the clock source type selected by the network multi-serial port unit, and in response to the time setting command, the target time is set to the current time information of the network multi-serial port unit; Receive a time synchronization signal sent by a network multi-serial port unit, and respond to the time synchronization signal to operate according to the current time information of the network multi-serial port unit.
5. The method according to claim 3 or 4, characterized in that: The method further comprises: Determining whether the preset time or the current time information is valid; If the preset time or the current time information is invalid, then the time synchronization process ends; If it is determined that the preset time is valid, wait for the host computer to send a time synchronization signal; If it is determined that the current time information is valid, then wait for the network multi-serial port unit to send a time synchronization signal.
6. The method according to claim 5, characterized in that The method further comprises: After receiving the time synchronization signal, determine whether the time interval between the arrival time of the time synchronization signal and the preset time or the confirmation effective time of the current time information exceeds the preset time threshold; If the time threshold is exceeded, it is determined that the time synchronization has failed, and the preset time or the current time information is cleared, and the operation continues according to the original time; If the time interval between the arrival time of the time synchronization signal and the confirmation validity time of the preset time does not exceed the time threshold, respond to the time synchronization signal and run according to the preset time; If the time interval between the arrival time of the timing signal and the confirmation validity time of the current time information does not exceed the time threshold, the timing signal is responded to and the operation is performed according to the current time information.
7. A BMS test system timing device, characterized in that: The BMS test system includes multiple battery simulation devices, each battery simulation device includes multiple battery simulation units, and each network multi-serial port unit is connected to several battery simulation devices. The device includes: The network multi-serial port unit timing module is used for the network multi-serial port unit to receive the network multi-serial port unit timing command sent by the host computer, respond to the network multi-serial port unit timing command to execute the timing between the network multi-serial port units, and send the battery simulation unit timing command to the docked battery simulation device after the timing is completed; The battery simulation unit timing module is used for the battery simulation unit in the battery simulation device to respond to the battery simulation unit timing command and perform timing between the battery simulation units.
8. The device according to claim 7, characterized in that The network multi-serial port unit timing command carries the time preset by the host computer, and the network multi-serial port unit timing module includes: The master device timing submodule is used for the network multi-serial port unit as the master device to receive the network multi-serial port unit timing command sent by the host computer, and respond to the network multi-serial port unit timing command to run according to the preset time; A slave device timing signal sending submodule, which is used for the network multi-serial port unit as the master device to output a timing signal to the network multi-serial port unit as the slave device after completing the time synchronization; the timing signal carries the clock source type and current time information of the network multi-serial port unit as the master device; The slave device timing submodule is used to set the clock source to the clock source type of the network multi-serial port unit of the master device after the network multi-serial port unit of the slave device receives the timing signal, and operate according to the current time information of the network multi-serial port unit of the master device. The battery simulation unit timing command sending submodule is used to send the battery simulation unit timing command to the connected battery simulation device after all network multi-serial port units have completed timing.
9. The device according to claim 8, characterized in that The master device timing submodule comprises: A clock source and time command receiving unit, used to receive a clock source setting command and a time setting command sent by a host computer; the clock source setting command carries the clock source type selected by the host computer; the time setting command carries the time preset by the host computer; A clock source and time setting unit, configured to respond to the clock source setting command, set the target clock source to the clock source type selected by the host computer, and respond to the time setting command, set the target time to the time preset by the host computer; The time synchronization execution unit is used to receive the time synchronization signal sent by the host computer, and respond to the time synchronization signal to run according to the preset time.
10. The device according to claim 7, characterized in that The battery simulation unit timing module comprises: The clock source and time command receiving submodule is used to receive the clock source setting command and time setting command sent by the network multi-serial port unit; the clock source setting command carries the clock source type of the network multi-serial port unit; the time setting command carries the current time information of the network multi-serial port unit; The clock source and time setting submodule is used to respond to the clock source setting command, set the target clock source to the clock source type selected by the network multi-serial port unit, and respond to the time setting command, set the target time to the current time information of the network multi-serial port unit; The time synchronization execution submodule is used to receive the time synchronization signal sent by the network multi-serial port unit, and respond to the time synchronization signal to operate according to the current time information of the network multi-serial port unit.
