Ethernet-based battery simulator synchronization method and device, and storage medium

Through the Ethernet-based battery simulator synchronization method, the synchronization changes of Ethernet switch equipment and clock signals and enable signals are solved, and the output synchronization error problem of multi-channel battery simulators is achieved when connected in parallel or in series, and efficient synchronous output control is achieved.

CN119544134APending Publication Date: 2025-02-28HUNAN NEXT GENERATION INSTRUMENTAL T&C TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411651478.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-19
Publication Date
2025-02-28

AI Technical Summary

Technical Problem

When the multi-channel battery simulator is connected in parallel or in series, due to the inconsistent time of data received by each channel, the output synchronization error is caused, which cannot meet the needs of synchronization application scenarios.

Method used

The Ethernet-based battery simulator synchronization method is adopted, and the control modules of multiple battery simulators are connected through the Ethernet switch device, and the synchronization changes of the clock signal and enable signal are used to realize the synchronous output control of the output channel module.

Benefits of technology

It improves the synchronization of the battery simulator in series or parallel connection, reduces the waiting time for data transmission, improves communication efficiency, and can realize communication synchronization control in scenarios with a large number of parallel machines of the battery simulator.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119544134A_ABST
    Figure CN119544134A_ABST
Patent Text Reader

Abstract

The invention discloses an Ethernet-based battery simulator synchronization method and device and a storage medium, control modules of a plurality of battery simulators can be connected together through Ethernet switch equipment, and a first clock line, a second clock line, a first enabling line and a second enabling line are designed, so that the control modules of the plurality of battery simulators can be synchronized. According to the invention, the output channel modules are connected with the Ethernet switch equipment, and the change of the enable signal and the change of the clock signal are ingeniously utilized, so that each output adjustment parameter can be transmitted to the corresponding output channel module, the synchronous output control of all the output channel modules is completed, and meanwhile, the full-duplex working mode of the Ethernet switch equipment is ingeniously utilized. Compared with the prior art, the communication efficiency of the Ethernet switch equipment is improved, the waiting time for data transmission is greatly reduced, the communication efficiency can be effectively improved, and the communication efficiency of the Ethernet switch equipment is better than that of a CAN (Controller Area Network) communication mode and the like, so that the communication synchronous control in a scene with a relatively large number of parallel operation of the battery simulator can be realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of source-load systems, and in particular to an Ethernet-based battery simulator synchronization method, device and storage medium. Background Art

[0002] At present, when a multi-channel battery simulator platform needs to connect multiple battery simulators in parallel or series and output multiple output channels synchronously, large output synchronization errors often occur due to the inconsistent time when each channel receives data. The existence of errors will make it impossible to form synchronous control, and thus cannot meet the needs of synchronous application scenarios. Summary of the invention

[0003] The present application aims to propose a battery simulator synchronization method, device and storage medium based on Ethernet, which improves the synchronization of battery simulators during series or parallel connection.

[0004] According to the first aspect of the present application, the Ethernet-based battery simulator synchronization method is used to synchronize multiple battery simulators in a multi-channel battery simulator platform, each of the battery simulators includes a control module, an FPGA module, and multiple output channel modules, the control module is communicatively connected to the FPGA module, and a serial communication line, a first enable line, and a first clock line are connected between the FPGA module and each of the output channel modules; multiple battery simulators are arranged in sequence, and a second enable line and a second clock line are arranged between the FPGA modules of two adjacent battery simulators; multiple FPGA modules output synchronized clock signals to the corresponding output channel modules through the first clock line and the second clock line; the control modules of multiple battery simulators are connected through an Ethernet switch device; the battery simulator in the first position is the first simulator, and the remaining battery simulators are the second simulators; The Ethernet-based battery simulator synchronization method is applied to the control module of the first simulator, comprising: Acquire setting data, wherein the setting data includes output adjustment parameters of a plurality of output channel modules in each of the battery simulators; Transmitting output adjustment parameters corresponding to the plurality of output channel modules in the first simulator to the FPGA module in the first simulator; generating a slave control data frame corresponding to each of the second simulators according to the setting data, each of the slave control data frames at least including output adjustment parameters corresponding to a plurality of the output channels in the corresponding second simulator; Each of the slave control data frames is sent in sequence to the control module corresponding to the second simulator, and after sending the slave control data frame corresponding to each of the second simulators, the flag information corresponding to each of the second simulators is adjusted from the first state to the second state; wherein, after receiving the corresponding slave control data frame, the control module of each of the second simulators transmits the output adjustment parameters in the slave control data frame to the FPGA module, and feeds back a slave response signal to the control module of the first simulator after completing the transmission of the output adjustment parameters; When receiving the slave response signal returned by any of the second simulators, adjusting the flag information corresponding to the second simulator from the second state to the first state; In the case where each of the flag information is adjusted from the second state to the first state, the first enable line and each of the second enable lines are adjusted to a high level, and the output adjustment parameters corresponding to the plurality of output channel modules in each of the battery simulators are transmitted to each of the output channel modules, so that each of the output channel modules returns a channel response signal to the corresponding control module; After confirming that each output channel transmission in each of the battery simulators has returned the channel response signal, the first enable line and the second enable line are adjusted to a low level so that each output channel module, upon detecting a falling edge signal in the corresponding first enable line or the second enable line, responds to a trigger edge signal in the corresponding first clock line or the second clock line and performs an output operation according to the received output adjustment parameters.

[0005] According to the second aspect of the present application, an Ethernet-based battery simulator synchronization device is used to synchronize multiple battery simulators in a multi-channel battery simulator platform, each of which includes a control module, an FPGA module, and multiple output channel modules. The control module is communicatively connected to the FPGA module, and a serial communication line, a first enable line, and a first clock line are connected between the FPGA module and each of the output channel modules; multiple battery simulators are arranged in sequence, and a second enable line and a second clock line are arranged between the FPGA modules of two adjacent battery simulators; multiple FPGA modules output synchronized clock signals to the corresponding output channel modules through the first clock line and the second clock line; the control modules of multiple battery simulators are connected through an Ethernet switch device; the battery simulator in the first position is the first simulator, and the remaining battery simulators are the second simulators; The Ethernet-based battery simulator synchronization device, applied to the control module of the first simulator, comprises: A setting data acquisition module, used to acquire setting data, wherein the setting data includes output adjustment parameters of a plurality of output channel modules in each of the battery simulators; A first data sending module, used for transmitting output adjustment parameters corresponding to the plurality of output channel modules in the first simulator to the FPGA module in the first simulator; A data frame generation module, configured to generate a slave control data frame corresponding to each of the second simulators according to the setting data, each of the slave control data frames at least including output adjustment parameters corresponding to a plurality of the output channels in the corresponding second simulator; A second data sending module is used to send each of the slave control data frames to the control module corresponding to the second simulator in sequence, and after sending the slave control data frame corresponding to each of the second simulators, adjust the flag information corresponding to each of the second simulators from the first state to the second state; wherein, after receiving the corresponding slave control data frame, the control module of each of the second simulators transmits the output adjustment parameters in the slave control data frame to the FPGA module, and feeds back a slave response signal to the control module of the first simulator after completing the transmission of the output adjustment parameters; a feedback state confirmation module, configured to adjust the flag information corresponding to the second simulator from the second state to the first state when receiving the slave response signal returned by any of the second simulators; A first synchronization control module, configured to adjust the first enable line and each of the second enable lines to a high level when each of the flag bit information is adjusted from the second state to the first state, and transmit the output adjustment parameters corresponding to the plurality of output channel modules in each of the battery simulators to each of the output channel modules, so that each of the output channel modules returns a channel response signal to the corresponding control module; The second synchronization control module is used to adjust the first enable line and the second enable line to a low level when it is confirmed that each output channel transmission in each of the battery simulators has returned the channel response signal, so that each output channel module, when detecting a falling edge signal in the corresponding first enable line or the second enable line, responds to the trigger edge signal in the corresponding first clock line or the second clock line and performs an output operation according to the received output adjustment parameters.

[0006] According to the computer-readable storage medium of the third aspect embodiment of the present application, computer-executable instructions are stored, and the computer-executable instructions are used to execute the Ethernet-based battery simulator synchronization method as described in the first aspect embodiment above.

[0007] The Ethernet-based battery simulator synchronization method, device and storage medium of the present application can connect the control modules of multiple battery simulators together through an Ethernet switch device, so that the output adjustment parameters required by each output channel module can be accurately transmitted to the corresponding battery simulator. At the same time, by designing the first clock line, the second clock line, the first enable line and the second enable line, and cleverly utilizing the changes in the enable signal and the clock signal, it is possible to transmit each output adjustment parameter to the corresponding output channel module and complete the synchronous output control of all output channel modules. At the same time, the present application cleverly utilizes the full-duplex working mode of the Ethernet switch device, greatly reducing the waiting time required for data transmission, which can effectively improve communication efficiency. Moreover, the communication efficiency of the Ethernet switch device itself is better than that of communication methods such as CAN, thereby realizing communication synchronization control in scenarios with a large number of battery simulators in parallel.

[0008] Other features and advantages of the present application will be set forth in the following description, and in part will become apparent from the description, or may be understood by practicing the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which: Figure 1 A schematic diagram of the structure of a multi-channel battery simulator platform provided in one embodiment of the present application; Figure 2 A flowchart of a battery simulator synchronization method based on Ethernet provided in one embodiment of the present application; Figure 3 A schematic diagram of the structure of an Ethernet-based battery simulator synchronization device provided in one embodiment of the present application.

[0010] Reference numerals: Control module 110 , FPGA module 120 , and output channel module 130 . DETAILED DESCRIPTION

[0011] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and cannot be understood as limiting the present application.

[0012] In the description of this application, if there is a description of first, second, etc., it is only for the purpose of distinguishing technical features, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the order of the indicated technical features.

[0013] In the description of the present application, it should be understood that the descriptions involving orientation, such as the orientation or positional relationship indicated as up, down, etc., are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present application.

[0014] In the description of this application, it should be noted that, unless otherwise clearly defined, terms such as setting, installing, connecting, etc. should be understood in a broad sense, and technicians in the relevant technical field can reasonably determine the specific meaning of the above terms in this application based on the specific content of the technical solution.

[0015] The technical solution of the present application will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the embodiments described below are only part of the embodiments of the present application, not all of the embodiments.

[0016] In order to better describe the Ethernet-based battery simulator synchronization method, device and storage medium of the embodiment of the present invention, a multi-channel battery simulator platform is proposed here, such as Figure 1 As shown, the multi-channel battery simulator platform includes multiple battery simulators, each battery simulator includes a control module 110, an FPGA module 120, and multiple output channel modules 130. The control module 110 is connected to the FPGA module 120 for communication, and a serial communication line, a first enable line, and a first clock line are connected between the FPGA module 120 and each output channel module 130; multiple battery simulators are arranged in sequence, and a second enable line and a second clock line are arranged between the FPGA modules 120 of two adjacent battery simulators; multiple FPGA modules 120 output synchronized clock signals to the corresponding output channel modules 130 through the first clock line and the second clock line; the control modules 110 of multiple battery simulators are connected through an Ethernet switch device; The control module 110 and the FPGA module 120 are connected via a fsmc bus.

[0017] The control modules 110 of the above-mentioned multiple battery simulators are connected through an Ethernet switch device, which can realize full-duplex communication between multiple battery simulators. Specifically, in the embodiment of the present application, full-duplex communication is mainly realized between the first simulator and multiple second simulators, and because of the particularity of the Ethernet switch device, there will be no data conflicts leading to packet loss, thereby greatly reducing the delay waiting time due to fear of data transmission conflicts.

[0018] The above-mentioned multiple battery simulators are set in sequence, and the battery simulator in the first position is set as the first simulator, which can be understood as a host device, and the remaining battery simulators are set as the second simulator, which can be understood as slave devices.

[0019] After being started, the FPGA module 120 in the first simulator can continue to send clock signals through the first clock line and the second clock line. When the FPGA module 120 in each second simulator detects the clock signal sent by the second clock line, it will also output a clock signal synchronized with the clock signal output by the FPGA module 120 in the first simulator to the next second simulator through the second clock line, until the FPGA modules 120 in all battery simulators can output synchronized clock signals.

[0020] The above serial communication line can realize data transmission between the FPGA module 120 and the output channel.

[0021] The output channel module 130 has a built-in controller, which is used to implement data interaction with the FPGA module 120 and to implement control of the output of the output channel module 130 .

[0022] Based on the above power supply system, the power supply parallel synchronous output control method, device and storage medium according to the embodiment of the present invention are described below.

[0023] See also Figure 2 As shown, Figure 2 1 is a flow chart of a battery simulator synchronization method based on Ethernet provided by an embodiment of the present application. The battery simulator synchronization method based on Ethernet is applied to the control module 110 of the first simulator. The battery simulator synchronization method based on Ethernet includes: Acquire setting data, the setting data including output adjustment parameters of multiple output channel modules 130 in each battery simulator; Transmitting output adjustment parameters corresponding to the plurality of output channel modules 130 in the first simulator to the FPGA module 120 in the first simulator; generating a slave control data frame corresponding to each second simulator according to the setting data, each slave control data frame at least including output adjustment parameters corresponding to a plurality of output channels in the corresponding second simulator; Each slave control data frame is sequentially sent to the control module 110 corresponding to the second simulator, and after sending the slave control data frame corresponding to each second simulator, the flag information corresponding to each second simulator is adjusted from the first state to the second state; wherein, after receiving the corresponding slave control data frame, the control module 110 of each second simulator will output the adjustment parameter in the slave control data frame and transmit it to the FPGA module 120, and after completing the transmission of the output adjustment parameter, the slave response signal is fed back to the control module 110 of the first simulator; When receiving a slave response signal returned by any second simulator, adjusting the flag bit information corresponding to the second simulator from the second state to the first state; When each flag bit information is adjusted from the second state to the first state, the first enable line and each second enable line are adjusted to a high level, and the output adjustment parameters corresponding to the multiple output channel modules 130 in each battery simulator are transmitted to each output channel module 130, so that each output channel module 130 returns a channel response signal to the corresponding control module 110; After confirming that each output channel transmission in each battery simulator has returned a channel response signal, the first enable line and the second enable line are adjusted to a low level so that each output channel module 130, upon detecting a falling edge signal in the corresponding first enable line or the second enable line, responds to the trigger edge signal in the corresponding first clock line or the second clock line and performs an output operation according to the received output adjustment parameters.

[0024] In an embodiment of the present application, the control modules 110 of multiple battery simulators can be connected together through an Ethernet switch device, so that the output adjustment parameters required by each output channel module 130 can be accurately transmitted to the corresponding battery simulator. At the same time, by designing the first clock line, the second clock line, the first enable line and the second enable line, and cleverly utilizing the changes in the enable signal and the clock signal, it is possible to transmit each output adjustment parameter to the corresponding output channel module 130, and complete the synchronous output control of all output channel modules 130. At the same time, the present application cleverly utilizes the full-duplex working mode of the Ethernet switch device, greatly reducing the waiting time required for data transmission, which can effectively improve communication efficiency. Moreover, the communication efficiency of the Ethernet switch device itself is better than that of communication methods such as CAN, thereby realizing communication synchronization control in scenarios where a large number of battery simulators are connected in parallel.

[0025] The above setting data can be manually input through the interactive interface on the platform, or can be directly obtained by the host computer.

[0026] When synchronous control is required, the above setting data may include output adjustment parameters corresponding to each output channel module 130 in each battery simulator, and each output channel module 130 may complete output control according to the received output adjustment parameters.

[0027] After obtaining the setting data, the control module 110 in the first simulator can first parse out the output adjustment parameters required by its own output channel module 130, and transmit them to the FPGA module 120 in the first simulator through the Fsmc bus. The FPGA module 120 will temporarily store the output adjustment parameters.

[0028] After obtaining the setting data, the control module 110 in the above-mentioned first simulator can parse out the output adjustment parameters required by the output channel module 130 in each second simulator, and use the output adjustment parameters to generate a slave control data frame, and then each slave control data frame can be transmitted to the corresponding control module 110 in the second simulator through the Ethernet switch device, and further transmitted by each second simulator The control module 110 is further transmitted to the FPGA module 120 for temporary storage.

[0029] When the control module 110 in the first simulator transmits the slave control data frame to the corresponding control module 110 in the second simulator, considering that the output adjustment parameters in the slave control data frame of each second simulator may be different, it is not possible to use the broadcast output method, and a sequential sending method can be used. It should be noted that when the output adjustment parameters in the slave control data frames of all the second simulators are the same, the broadcast method can still be used for sending.

[0030] The flag information may include a first state and a second state, for example, the first state is "0" and the second state is "1". In the embodiment of the present application, an Ethernet switch device is used for full-duplex communication. In the scenario, the sequential transmission response process is not strictly performed. Therefore, the flag information is used to determine whether the slave control data frame is sent and whether the slave response signal is received, thereby avoiding data transmission omissions, conflicts, etc.

[0031] After the control module 110 in each of the above-mentioned second simulators transmits the output adjustment parameters to the FPGA module 120 for temporary storage, it will generate a slave response signal, and transmit the slave response signal back to the first simulator through the Ethernet switch device. In the embodiment of the present application, full-duplex communication is performed based on the Ethernet switch device, and there is no need to worry about data transmission conflicts. It only needs to be determined that the output adjustment parameters are transmitted to the FPGA module 120 for temporary storage, and the slave response signal can be immediately fed back. It does not need to be executed according to a strict timing like the CAN bus transmission to avoid data conflicts.

[0032] After receiving the slave response signal returned by each second simulator, the above-mentioned first simulator can determine that the FPGA module 120 in each second simulator has completed the temporary storage of the output adjustment parameters. At this time, the first enable line and each second enable line can be adjusted to a high level. When each battery simulator detects a high level signal, it can transmit the output adjustment parameters temporarily stored in the FPGA module 120 to the corresponding output channel module 130.

[0033] The first simulator may transmit the output adjustment parameters to the corresponding control module 110 of the battery simulator in order from the second to the last position.

[0034] After receiving the output adjustment parameters, each of the above-mentioned output channel modules 130 will feedback the channel response signal to the corresponding control module 110. The control module 110 can determine whether there is data leakage or mistransmission based on the feedback channel response signal. For example, if there is an output channel module 130 that does not feedback the channel response signal to the corresponding control module 110, it can be determined that there is leakage. At this time, it is meaningless to perform synchronous control output, and an alarm can be generated to inform the operator.

[0035] After receiving the channel response signals fed back by the multiple output channel modules 130 corresponding to each battery simulator, the above-mentioned first simulator can adjust the first enable line and each second enable line to a low level. When each battery simulator detects a low-level signal, each output channel module 130 can wait for the jump of the clock signal in the first clock line or the second clock line, for example, wait for the rising edge. When the rising edge of the clock signal is identified, the output can be completed according to the received output adjustment parameters.

[0036] It should be noted that the clock signals in the first clock line or the second clock line are synchronous, so that the multiple output channel modules 130 can complete synchronous output control.

[0037] It should also be noted that multiple battery simulators usually use the same model. Although there may be slight differences in data transmission time between the internal control modules 110, FPGA modules 120, and output channel modules 130 of the two battery simulators due to manufacturing process problems, the first simulator still needs to adjust the level of the first enable line and each second enable line after the channel response signal. This short period of time is sufficient to make up for the aforementioned time error, and there will be no situation in which the output channel module 130 in the second simulator is about to output but the channel response signal has not yet been fed back.

[0038] In some implementations, adjusting the first enable line and each second enable line to a high level includes: Sending a write enable signal to the FPGA module 120 in the first simulator, so that the FPGA module 120 in the first simulator adjusts the first enable line to a high level and adjusts the second enable line connected to the adjacent FPGA module 120 to a high level; The FPGA module 120 in each second simulator synchronously adjusts the second enable line connected to the next FPGA module 120 to a high level.

[0039] When receiving the slave response signal returned by each second simulator, the first simulator sends a write enable signal to the FPGA module 120 in the first simulator, and the FPGA module 120 can adjust the first enable line to a high level and synchronously adjust the second enable line connected to the adjacent FPGA module 120 to a high level. The FPGA module 120 in each second simulator can synchronously adjust the enable line connected to the next FPGA module 120 to a high level.

[0040] In this implementation, the characteristics of the FPGA module 120 are utilized to achieve synchronous transmission of corresponding enable signals.

[0041] In some embodiments, transmitting the output adjustment parameters corresponding to the multiple output channel modules 130 in each battery simulator to each output channel module 130 includes: When the FPGA module 120 adjusts the first enable line to a high level in the first simulator, the corresponding output adjustment parameter is sent to the corresponding output channel module 130; When the FPGA module 120 in each second simulator detects a rising edge signal in the second enable line, the FPGA module 120 in each second simulator sends the corresponding output adjustment parameter to the corresponding output channel module 130; After receiving the corresponding output adjustment parameter, each output channel module 130 returns a channel response signal to the corresponding control module 110 through the corresponding FPGA module 120 .

[0042] In this real-time mode, the high level output by the FPGA module 120 in the first simulator through the second enable line can synchronously reach all second simulators. Based on this, each second simulator can synchronously send the corresponding output adjustment parameters to the corresponding output channel module 130 when detecting the rising edge signal in the second enable line. Moreover, the FPGA module 120 in the first simulator can also send the corresponding output adjustment parameters to the corresponding output channel module 130 when adjusting the first enable line to a high level, thereby realizing synchronous control of all output channel modules 130 receiving the output adjustment parameters.

[0043] In some embodiments, the following steps are performed to confirm that each output channel transmission in each battery simulator has returned a channel response signal: When receiving the signal indicating that each output channel transmission in the FPGA module 120 in the first simulator has returned a channel response signal, it is confirmed that each output channel transmission in each battery simulator has returned a channel response signal.

[0044] In the embodiment of the present application, the FPGA modules 120 in multiple battery simulators send output adjustment data to the output channels based on the high-level signal of the enable line. Therefore, the output adjustment data is transmitted almost simultaneously. Therefore, it is only necessary to determine that each output channel transmission in the FPGA module 120 in the first simulator has returned a channel response signal, so that it can be determined that all the FPGA modules 120 in the second simulator can complete the writing of the output adjustment parameters to the output channel before the next output enable signal arrives.

[0045] In some embodiments, after any slave control data frame is sent to the control module 110 corresponding to the second simulator, the Ethernet-based battery simulator synchronization method further includes: If no slave response signal returned by any second simulator is received within the first preset time length, a slave control data frame corresponding to any second simulator is resent.

[0046] In this embodiment, considering that the slave control data frame may not be sent to the corresponding second simulator, when it is detected that any second simulator does not return a slave response signal, a retransmission method will be adopted to ensure that each second simulator can receive the slave control data frame as much as possible.

[0047] In some embodiments, the Ethernet-based battery simulator synchronization method further includes: When a slave response signal returned by any second simulator is not received for N consecutive times, a first alarm message is generated, where N is a positive integer greater than or equal to 2.

[0048] In this embodiment, taking into account the possibility that the second simulator may be off-grid, at this time, the first simulator cannot obtain a slave response signal when sending multiple slave control data frames to the second simulator continuously. At this time, it is necessary to issue a first alarm message in time so that the operator can know the situation in time and conduct an alarm investigation.

[0049] In some embodiments, the Ethernet-based battery simulator synchronization method further includes: Each second simulator generates a second alarm message if it fails to receive the slave control data frame within the second preset time length.

[0050] In this embodiment, if any second simulator does not receive the slave control data frame within the second preset time length, it can be said that a communication failure has occurred between the second simulator and the first simulator. At this time, a second alarm message needs to be issued in time so that the operator can know the situation in time and conduct alarm investigation.

[0051] In some implementations, adjusting the first enable line and the second enable line to a low level includes: Sending an output enable signal to the FPGA module 120 in the first simulator, so that the FPGA module 120 in the first simulator adjusts the first enable line corresponding to the output channel module 130 to a low level, and adjusts the second enable line connected to the adjacent FPGA module 120 to a low level; The FPGA module 120 in each second simulator adjusts the second enable line connected to the next FPGA module 120 to a low level.

[0052] In this embodiment, the low level output by the FPGA module 120 in the first simulator through the second enable line can synchronously reach all the second simulators, and then synchronously reach the output channel module 130 of each battery simulator, so that all output channel modules 130 can synchronously detect the change of the level from a high level to a low level, and then the rising edge of the subsequently detected clock signal can be the same rising edge, thereby achieving high synchronization.

[0053] The Ethernet-based battery simulator synchronization method provided in the embodiment of the present application can be executed by an Ethernet-based battery simulator synchronization device. In the embodiment of the present application, an Ethernet-based battery simulator synchronization device is used as an example to illustrate the Ethernet-based battery simulator synchronization method provided in the embodiment of the present application.

[0054] refer to Figure 3 The embodiment of the present application further provides a battery simulator synchronization device based on Ethernet, and the battery simulator synchronization device based on Ethernet includes: A setting data acquisition module, used to acquire setting data, wherein the setting data includes output adjustment parameters of the plurality of output channel modules 130 in each of the battery simulators; A first data sending module, used for transmitting output adjustment parameters corresponding to the plurality of output channel modules 130 in the first simulator to the FPGA module 120 in the first simulator; A data frame generation module, configured to generate a slave control data frame corresponding to each of the second simulators according to the setting data, each of the slave control data frames at least including output adjustment parameters corresponding to a plurality of the output channels in the corresponding second simulator; A second data sending module, used for sending each of the slave control data frames to the control module 110 corresponding to the second simulator in sequence, and after sending the slave control data frame corresponding to each of the second simulators, adjusting the flag information corresponding to each of the second simulators from the first state to the second state; wherein, after receiving the corresponding slave control data frame, the control module 110 of each of the second simulators transmits the output adjustment parameter in the slave control data frame to the FPGA module 120, and feeds back a slave response signal to the control module 110 of the first simulator after completing the transmission of the output adjustment parameter; a feedback state confirmation module, configured to adjust the flag information corresponding to the second simulator from the second state to the first state when receiving the slave response signal returned by any of the second simulators; A first synchronization control module, configured to adjust the first enable line and each of the second enable lines to a high level when each of the flag information is adjusted from the second state to the first state, and transmit the output adjustment parameters corresponding to the plurality of output channel modules 130 in each of the battery simulators to each of the output channel modules 130, so that each of the output channel modules 130 returns a channel response signal to the corresponding control module 110; The second synchronization control module is used to adjust the first enable line and the second enable line to a low level when it is confirmed that each output channel transmission in each of the battery simulators has returned the channel response signal, so that each of the output channel modules 130, when detecting a falling edge signal in the corresponding first enable line or the second enable line, responds to the trigger edge signal in the corresponding first clock line or the second clock line, and performs an output operation according to the received output adjustment parameters.

[0055] In addition, an embodiment of the present application also provides a computer-readable storage medium, which stores computer-executable instructions, and the computer-executable instructions are executed by a processor or a control module, so that the above-mentioned processor can execute the Ethernet-based battery simulator synchronization method in the above-mentioned embodiment, for example, execute the method described above.

[0056] It will be appreciated by those skilled in the art that all or some of the steps and systems in the disclosed methods above may be implemented as software, firmware, hardware and appropriate combinations thereof. Some physical components or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium or a non-transitory medium and a communication medium or a temporary medium. As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information such as computer-readable instructions, data structures, program modules or other data. Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disk DVD or other optical disk storage, magnetic cassettes, magnetic tapes, disk storage or other magnetic storage devices, or any other medium that may be used to store desired information and may be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media typically embodies computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.

[0057] The embodiments of the present application are described in detail above in conjunction with the accompanying drawings, but the present application is not limited to the above embodiments, and various changes can be made within the knowledge scope of ordinary technicians in the relevant technical field without departing from the purpose of the present application.

Claims

1. A battery simulator synchronization method based on Ethernet, characterized in that: Used to synchronize multiple battery simulators in a multi-channel battery simulator platform, each of the battery simulators includes a control module, an FPGA module, and multiple output channel modules, the control module is communicatively connected to the FPGA module, a serial communication line, a first enable line, and a first clock line are connected between the FPGA module and each of the output channel modules; multiple battery simulators are arranged in sequence, and a second enable line and a second clock line are arranged between the FPGA modules of two adjacent battery simulators; multiple FPGA modules output synchronized clock signals to the corresponding output channel modules through the first clock line and the second clock line; the control modules of multiple battery simulators are connected through an Ethernet switch device; the battery simulator in the first position is the first simulator, and the remaining battery simulators are the second simulators; The Ethernet-based battery simulator synchronization method is applied to the control module of the first simulator, comprising: Acquiring setting data, wherein the setting data includes output adjustment parameters of a plurality of output channel modules in each of the battery simulators; Transmitting output adjustment parameters corresponding to the plurality of output channel modules in the first simulator to the FPGA module in the first simulator; generating a slave control data frame corresponding to each of the second simulators according to the setting data, each of the slave control data frames at least including output adjustment parameters corresponding to a plurality of the output channels in the corresponding second simulator; Each of the slave control data frames is sent in sequence to the control module corresponding to the second simulator, and after sending the slave control data frame corresponding to each of the second simulators, the flag information corresponding to each of the second simulators is adjusted from the first state to the second state; wherein, after receiving the corresponding slave control data frame, the control module of each of the second simulators transmits the output adjustment parameters in the slave control data frame to the FPGA module, and feeds back a slave response signal to the control module of the first simulator after completing the transmission of the output adjustment parameters; When receiving the slave response signal returned by any of the second simulators, adjusting the flag information corresponding to the second simulator from the second state to the first state; In the case where each of the flag information is adjusted from the second state to the first state, the first enable line and each of the second enable lines are adjusted to a high level, and the output adjustment parameters corresponding to the plurality of output channel modules in each of the battery simulators are transmitted to each of the output channel modules, so that each of the output channel modules returns a channel response signal to the corresponding control module; After confirming that each output channel transmission in each of the battery simulators has returned the channel response signal, the first enable line and the second enable line are adjusted to a low level so that each output channel module, upon detecting a falling edge signal in the corresponding first enable line or the second enable line, responds to a trigger edge signal in the corresponding first clock line or the second clock line and performs an output operation according to the received output adjustment parameters.

2. The Ethernet-based battery simulator synchronization method according to claim 1, characterized in that: The step of adjusting the first enable line and each of the second enable lines to a high level includes: Sending a write enable signal to the FPGA module in the first simulator, so that the FPGA module in the first simulator adjusts the first enable line to a high level and adjusts the second enable line connected to the adjacent FPGA module to a high level; Wherein, each FPGA module in the second simulator synchronously adjusts the second enable line connected to the next FPGA module to a high level.

3. The Ethernet-based battery simulator synchronization method according to claim 2, characterized in that: The step of transmitting the output adjustment parameters corresponding to the plurality of output channel modules in each of the battery simulators to each of the output channel modules comprises: When the FPGA module in the first simulator adjusts the first enable line to a high level, the corresponding output adjustment parameter is sent to the corresponding output channel module; When the FPGA module in each of the second simulators detects a rising edge signal in the second enable line, the FPGA module in each of the second simulators sends the corresponding output adjustment parameter to the corresponding output channel module; After each of the output channel modules receives the corresponding output adjustment parameter, it returns the channel response signal to the corresponding control module through the corresponding FPGA module.

4. The Ethernet-based battery simulator synchronization method according to claim 3, characterized in that: Confirm that each of the output channel transmissions in each of the battery simulators has returned the channel response signal by following the steps below: Upon receiving the signal that each of the output channel transmissions in the FPGA module in the first simulator has returned the channel response signal, it is confirmed that each of the output channel transmissions in each of the battery simulators has returned the channel response signal.

5. The Ethernet-based battery simulator synchronization method according to claim 3, characterized in that: After any slave control data frame is sent to the control module corresponding to the second simulator, the Ethernet-based battery simulator synchronization method further includes: If the slave response signal returned by any of the second simulators is not received within a first preset time length, a slave control data frame corresponding to any of the second simulators is resent.

6. The Ethernet-based battery simulator synchronization method according to claim 5, characterized in that: The Ethernet-based battery simulator synchronization method further includes: When the slave response signal returned by any second simulator is not received for N consecutive times, a first alarm message is generated, where N is a positive integer greater than or equal to 2.

7. The Ethernet-based battery simulator synchronization method according to claim 1, characterized in that: The Ethernet-based battery simulator synchronization method further includes: Each of the second simulators generates a second alarm message if it fails to receive the slave control data frame within a second preset time length.

8. The Ethernet-based battery simulator synchronization method according to claim 1, characterized in that: The step of adjusting the first enable line and the second enable line to a low level includes: Sending an output enable signal to the FPGA module in the first simulator, so that the FPGA module in the first simulator adjusts the first enable line corresponding to the output channel module to a low level, and adjusts the second enable line connected to the adjacent FPGA module to a low level; Among them, the FPGA module in each of the second simulators adjusts the second enable line connected to the next FPGA module to a low level.

9. A battery simulator synchronization device based on Ethernet, characterized in that: Used to synchronize multiple battery simulators in a multi-channel battery simulator platform, each of the battery simulators includes a control module, an FPGA module, and multiple output channel modules, the control module is communicatively connected to the FPGA module, a serial communication line, a first enable line, and a first clock line are connected between the FPGA module and each of the output channel modules; multiple battery simulators are arranged in sequence, and a second enable line and a second clock line are arranged between the FPGA modules of two adjacent battery simulators; multiple FPGA modules output synchronized clock signals to the corresponding output channel modules through the first clock line and the second clock line; the control modules of multiple battery simulators are connected through an Ethernet switch device; the battery simulator in the first position is the first simulator, and the remaining battery simulators are the second simulators; The Ethernet-based battery simulator synchronization device, applied to the control module of the first simulator, comprises: A setting data acquisition module, used to acquire setting data, wherein the setting data includes output adjustment parameters of a plurality of output channel modules in each of the battery simulators; A first data sending module, used for transmitting output adjustment parameters corresponding to the plurality of output channel modules in the first simulator to the FPGA module in the first simulator; A data frame generation module, configured to generate a slave control data frame corresponding to each of the second simulators according to the setting data, each of the slave control data frames at least including output adjustment parameters corresponding to a plurality of the output channels in the corresponding second simulator; A second data sending module is used to send each of the slave control data frames to the control module corresponding to the second simulator in sequence, and after sending the slave control data frame corresponding to each of the second simulators, adjust the flag information corresponding to each of the second simulators from the first state to the second state; wherein, after receiving the corresponding slave control data frame, the control module of each of the second simulators transmits the output adjustment parameters in the slave control data frame to the FPGA module, and feeds back a slave response signal to the control module of the first simulator after completing the transmission of the output adjustment parameters; a feedback state confirmation module, configured to adjust the flag information corresponding to the second simulator from the second state to the first state when receiving the slave response signal returned by any of the second simulators; A first synchronization control module, configured to adjust the first enable line and each of the second enable lines to a high level when each of the flag bit information is adjusted from the second state to the first state, and transmit the output adjustment parameters corresponding to the plurality of output channel modules in each of the battery simulators to each of the output channel modules, so that each of the output channel modules returns a channel response signal to the corresponding control module; The second synchronization control module is used to adjust the first enable line and the second enable line to a low level when it is confirmed that each output channel transmission in each of the battery simulators has returned the channel response signal, so that each output channel module, when detecting a falling edge signal in the corresponding first enable line or the second enable line, responds to the trigger edge signal in the corresponding first clock line or the second clock line and performs an output operation according to the received output adjustment parameters.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the Ethernet-based battery simulator synchronization method as described in any one of claims 1 to 8.