Rail transit simulation test system based on power hardware-in-the-loop
By using power hardware-in-the-loop technology, a closed-loop testing environment was constructed between the remote simulation platform and the traction test bench, which solved the problems of model accuracy and test cycle of rail transit train traction system, and realized efficient simulation test and parameter optimization.
Patent Information
- Application Number
- CN202611329147.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-28
- Publication Date
- 2026-11-27
AI Technical Summary
The performance verification and parameter optimization of existing rail transit train traction systems rely on ground test platforms. Traditional methods suffer from limited model accuracy, high construction investment, long test cycles, and difficulty in forming a closed-loop linkage with upper-level strategy systems.
By employing power hardware-in-the-loop technology, a closed-loop test environment is constructed by connecting a remote simulation platform to a traction test bench. ATO simulation system, braking simulation system, and dynamics simulation system are used to replace some physical entities, and simulation tests are conducted in conjunction with digital models to achieve remote deployment and data synchronization optimization.
It reduces the construction cost of the test platform, shortens the experimental cycle, enables high-precision simulation tests to be conducted without physical experimental conditions, and supports fault reproduction and algorithm optimization.
Smart Images

Figure CN123179888A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of rail transit technology, and in particular to a rail transit simulation test system based on power hardware-in-the-loop. Background Technology
[0002] As the core power unit of a train, the performance verification and parameter optimization of the traction system are highly dependent on ground test platforms. Traditional test methods are mainly divided into two categories: one is pure software simulation, which is low-cost and iterative, but it is difficult to accurately simulate the nonlinear dynamic characteristics of the converter-motor-mechanical load coupling, and the model accuracy is limited; the other is full physical bench testing, which can realistically reproduce the electrical / mechanical response of the traction system, but it has problems such as large construction investment and long test cycle, and it is difficult to form a closed-loop linkage with higher-level strategy systems such as Automatic Train Operation (ATO) system, braking system, and dynamics system.
[0003] Power Hardware-in-the-Loop (PHIL) is a processing technology that integrates real-time simulation with physical hardware testing. If PHIL technology can be applied to railway train simulation testing, a simulation platform (including ATO simulation systems, network simulation systems, braking simulation systems, and dynamics simulation systems) can replace some physical entities, retaining only the traction system hardware to be tested. The data signals from the simulation platform are converted into Pulse Width Modulation (PWM) to drive the traction system hardware, and the output of the traction system hardware is fed back to the simulation platform, thus forming a closed-loop test. This not only allows for flexible, off-site deployment of the simulation platform but also effectively reduces the construction cost of the test platform and shortens the experimental cycle while ensuring testing accuracy. Furthermore, if a corresponding digital simulation model (i.e., a traction system digital model) is built on the simulation platform for the traction system, and the model parameters are optimized based on data samples accumulated from physical testing, a simulation model that approximates the real system can be obtained. Thus, even without physical experiments, a series of simulation tests can be conducted based on this simulation model, such as fault reproduction and localization, and algorithm optimization testing. The key technical problem that needs to be solved is how to build such a virtual-real simulation verification environment based on the PHIL technology principle, how to achieve the secure remote deployment of the simulation platform, and how to synchronously optimize the digital model of the traction system based on physical test samples. Summary of the Invention
[0004] The purpose of this invention is to address the shortcomings of existing technologies by providing a power hardware-in-the-loop (HIL) simulation test system for rail transit. This system includes a remote simulation platform and a traction test bench. The remote simulation platform is connected to the traction test bench via a dedicated Ethernet line. The remote simulation platform includes an ATO (Automatic Train Operation) simulation system, a braking simulation system, a dynamics simulation system, a network simulation system, a data server, a communication server, a first firewall, and a digital model server. The traction test bench includes a second firewall, a communication workstation, a main test control system, a secondary test control system, a traction converter, a secondary test frequency converter, a traction motor, a flywheel, and a secondary test motor. The network simulation system simulates the train's internal network. A secure transmission channel is established via a dedicated Ethernet line connecting the communication server, the first firewall, the second firewall, and the communication workstation. The ATO simulation system, braking simulation system, dynamics simulation system, main test control system, and secondary test control system work together to complete a closed-loop test sequence: signal control, braking simulation, dynamics simulation, traction / secondary test hardware drive, and hardware response data feedback. The data server records test samples throughout the entire test cycle. The digital model server optimizes the parameters of the digital model of the tested traction system based on the accumulated test samples. Based on this invention, remote simulation platforms and traction test benches can be deployed in different locations. Data protection for remotely transmitted messages can be achieved through dedicated lines and customized encrypted message formats. Firewalls can be used to provide security protection for remotely deployed simulation platforms and test benches. This can reduce the construction cost of the overall experimental system, shorten the experimental cycle, and enable simulation tests to be completed through digital models even without physical experiments.
[0005] To achieve the above objectives, embodiments of the present invention provide a power hardware-in-the-loop (HIL)-based rail transit simulation test system. The system includes: a remote simulation platform and a traction test bench; the remote simulation platform is connected to the traction test bench via a dedicated Ethernet line; the remote simulation platform includes an ATO simulation system, a braking simulation system, a dynamics simulation system, a network simulation system, a data server, a communication server, a first firewall, and a digital model server; the traction test bench includes a second firewall, a communication workstation, a main test control system, a secondary test control system, a traction converter, a secondary test frequency converter, a traction motor, a flywheel, and a secondary test motor. The ATO simulation system is used to generate the i-th simulated traction command in the simulation experiment and synchronize it to the data server; 1 ≤ simulation step index i; The braking simulation system is used to simulate the braking force of the i-th step according to the subscribed i-th step simulation traction command; and simultaneously sends the simulation results to the dynamics simulation system and synchronizes them to the data server. The dynamics simulation system is used to simulate the i-th step simulation speed, acceleration, and train position based on the subscribed i-th step feedback speed, torque, and force, as well as the i-th step simulation braking force; and simultaneously synchronizes the simulation results to the data server while sending them to the ATO simulation system. The network simulation system is used to simulate the real-time communication network inside the train and to forward data to the internal nodes of the network through the simulated network; the internal nodes of the network include the ATO simulation system, the braking simulation system, the dynamics simulation system, and the data server; The data server is used to store synchronous data in the form of collection entries; and to push the latest subscription data to the braking simulation system, the dynamics simulation system and the communication server based on the data subscription list; The communication server is used to generate a first message based on the subscribed i-th step simulation traction command, and send it to the communication workstation via the first firewall and the second firewall; and parse the i-th step feedback speed, torque and force from the returned second message and synchronize them with the data server. The communication server is also used to generate a third message based on the subscribed i-th step simulation speed and send it to the communication workstation; and to parse the i-th step simulation speed, feedback traction voltage, feedback traction current, feedback auxiliary voltage, feedback auxiliary current, main test traction power and auxiliary test power from the returned fourth message and synchronize them with the data server. The digital model server is used to construct a corresponding digital model of the traction system consisting of the traction converter and the traction motor; and after the simulation test, the model parameters of the digital model of the traction system are identified based on the accumulated data of the data server. The communication workstation is used to parse the i-th step simulation traction command from the first message and cache it locally on the workstation; send command Q to the main test control system; and generate the second message based on the i-th step feedback speed, torque and force sent by the system, and send it back to the communication server. The communication workstation is also used to parse the i-th step simulation speed from the third message; and send the i-th step simulation traction command and the i-th step simulation speed to the main test control system; and generate the fourth message based on the i-th step simulation speed, feedback traction voltage, feedback traction current, feedback auxiliary test voltage, feedback auxiliary test current, main test traction power and auxiliary test power sent by the system, and send it back to the communication server; The main test control system is used to forward the instruction Q to the auxiliary test control system; and to send the i-th step feedback speed, torque and force sent back by the auxiliary test control system to the communication workstation. The main test control system is also used to calculate the i-th step simulated rotational speed and send it to the auxiliary test control system when it receives the i-th step simulated traction command and the i-th step simulated speed; send the i-th step simulated traction command to the traction converter; obtain the i-th step traction voltage, current and power; and after receiving the i-th step auxiliary test voltage, current and power returned by the auxiliary test control system, generate the i-th step simulated rotational speed, feedback traction voltage, feedback traction current, feedback auxiliary test voltage, feedback auxiliary test current, main test traction power and auxiliary test power and send them to the communication workstation. The accompanying control system is used to obtain the i-th step feedback speed, torque and force through data acquisition and calculation when it receives the instruction Q, and then send it back to the main control system. The accompanying control system is also used to generate a PWM signal G to drive the accompanying frequency converter to do work on the accompanying motor when the simulated speed of step i is received; and to obtain the accompanying voltage, current and power of step i and send them back to the main control system.
[0006] Preferably, the first firewall is connected to the communication server and the second firewall respectively; the communication server is connected to the data server; the data server is connected to the digital model server; the network simulation system is connected to the ATO simulation system, the braking simulation system, the dynamics simulation system and the data server respectively; the dynamics simulation system is also connected to the ATO simulation system and the braking simulation system respectively. The second firewall is connected to the communication workstation; the communication workstation is connected to the main test control system; the main test control system is connected to both the auxiliary test control system and the traction converter; the auxiliary test control system is connected to the auxiliary frequency converter; the traction converter and the auxiliary frequency converter are connected to their respective traction motors and auxiliary motors via power cables; the traction motor, the flywheel, and the auxiliary motor are connected coaxially in series via couplings, or the traction motor, the auxiliary motor, and the flywheel are connected coaxially in series via couplings; the rotational speeds of the traction motor, the flywheel, and the auxiliary motor are kept consistent. The traction converter and the traction motor are actual train traction system components; The flywheel is used to simulate the inertial load during train operation; The test motor is used to simulate the resistance load during train operation; The traction converter and the test frequency converter are both connected to the same DC bus. Both the first firewall and the second firewall have ACL packet filtering, IDS intrusion detection, and IPS intrusion protection functions; The communication server and the communication workstation exchange messages in a server-client manner, with the communication server being the server and the communication workstation being the client. When the communication server or the communication workstation detects a connection loss or data transmission error, it automatically disconnects from the other workstation or server. When the communication workstation detects a connection loss with the communication server, it automatically initiates a reconnection to the communication server. The communication server and the communication workstation use TCP / IP as the transport layer protocol, and the Nagle algorithm is disabled at the TCP / IP layer. Above TCP / IP, the communication server and the communication workstation use WebSocket as the application layer communication message transmission protocol and SFTP as the application layer file transfer protocol. The communication message format transmitted between the communication server and the communication workstation has a four-layer nested structure, specifically: the first layer of the communication message includes an IP protocol header and an IP layer data body; the second layer of the IP layer data body includes a TCP protocol header and a TCP layer data body; the third layer of the TCP layer data body includes a WebSocket protocol header and a WebSocket layer data body; and the fourth layer of the WebSocket layer data body is a custom data structure, including message type, message priority, message version, message time, message data body, and message verification. The message type includes real-time data messages, connection request messages, connection feedback messages, and other messages; the message priority includes n priorities from high to low, where 2 ≤ the total number of priorities and n ≤ N, where N is the total number of message types; the message data body is either an encrypted or plaintext byte stream when it is not empty; the message priority corresponding to a real-time data message is always the highest priority, and the corresponding message data body is an encrypted byte stream; the original byte stream used to generate the message checksum is a byte stream formed by sequentially concatenating the message type, message priority, message version, message time, and message data body. The message formats of the first message, the second message, the third message, and the fourth message are all encapsulated and parsed according to the four-level nested structure format of the communication message.
[0007] Preferably, when the length of the message data body of the communication message transmitted between the communication server and the communication workstation exceeds the preset data block length: On the sender and receiver sides, corresponding sending and receiving buffers are created respectively. Both the sending and receiving buffers are divided into multiple data block sub-regions, each with a data length equal to the data block length. The sender segments the message data body according to the data block length to obtain multiple sub-data blocks. Each sub-data block is stored in its corresponding sub-region within the sending buffer, with each sub-data block corresponding one-to-one with a sub-region in either the sending or receiving buffer. Based on a multi-threading mechanism, multiple parallel message sending tasks are initiated on the sender side, and multiple parallel message receiving tasks are initiated on the receiver side. Each message sending task retrieves one unsent sub-data block from the sending buffer. The packet data blocks are encapsulated into new communication messages and sent to the receiver. After transmission, the transmission status of the current data block sub-area is switched from "never sent" to "sent". Each message receiving task is used to receive the packet data blocks sent by the sender and write each received packet data block into the corresponding data block sub-area in the receiving buffer. On the sender side, a mutex lock mechanism is used to control concurrent access to the data block sub-area in the sending buffer, so that each data block sub-area is not read by two or more message sending tasks at the same time. On the receiver side, a mutex lock mechanism is used to control concurrent access to the data block sub-area in the receiving buffer, so that each data block sub-area is not written to by two or more message receiving tasks at the same time. If, in addition to the real-time synchronization data contained in the first, second, third, and fourth messages, there are other synchronization data items between the communication server and the communication workstation, then a corresponding data scanning frequency f1 and a forced synchronization frequency f2 are set for each type of other synchronization data item, where f1 > f2. A corresponding synchronization initiator and synchronization receiver are selected from the communication server and the communication workstation for each type of other synchronization data item. The synchronization initiator of each other synchronization data item periodically scans for changes in the current data item according to the data scanning frequency f1. If a change is found, the synchronization initiator synchronizes the current data item to the synchronization receiver. The synchronization initiator of each other synchronization data item periodically synchronizes the current data item to the synchronization receiver according to the forced synchronization frequency f2. During each synchronization, it is identified whether the current data item is numerical data. If so, only the numerical change of the current data item is synchronized; otherwise, the entire data of the current data item is synchronized.
[0008] Preferably, the simulated traction command in the i-th step is denoted as: Simulated Traction Command ; The simulated traction command Including patterns And level bit instructions The mode Including traction acceleration mode (PWR), coasting mode (COA), adaptive cruise control (ACC), braking mode (BRK), and emergency braking mode (EMG); the level commands. The value ranges from 0% to 100%. ; The simulated braking force in the i-th step is denoted as: Simulated Braking Force ; The i-th step feedback speed, torque, and force include: feedback speed Feedback torque and feedback force ; At that time, the feedback force It is seen as a feedback pull; At that time, the feedback force It is considered a feedback braking force; The simulated velocity, acceleration, and train position in the i-th step include: simulated velocity Simulated acceleration and simulated train position The simulation speed That is, the simulation speed in the i-th step; The simulated rotational speed, feedback traction voltage, feedback traction current, feedback test voltage, feedback test current, main test traction power, and test power in step i include: simulated rotational speed. Feedback traction voltage Feedback traction current Feedback test voltage Feedback test current Main test traction power , test power ; wherein, the simulated rotational speed That is, the simulated rotational speed in the i-th step; the feedback traction voltage The feedback traction current and the main test traction power The i-th step traction voltage, current, and power are composed of the following: the feedback test voltage. The feedback test current and the power of the accompanying test The test voltage, current, and power in step i are constituted; The data collection items include simulation steps, item type, synchronization time, and synchronization data; the simulation step is a simulation step index; the item type includes 15 categories, namely: simulation speed v sim Simulated acceleration a sim Simulated train position s simSimulated braking force F sim(br) Simulated traction command C sim Simulated rotational speed ω sim Feedback speed ω rea Feedback torque T rea Feedback force F rea Feedback traction voltage U abc(1) Feedback traction current I abc(1) Feedback test voltage U abc(2) Feedback test current I abc(2) The main test traction power P1 and the auxiliary test power P2; the item type is feedback traction voltage U. abc(1) Feedback test voltage U abc(2) Each of the aforementioned entry data is a set of corresponding three-phase voltages U a U b U c Composition; the entry type is feedback traction current I abc(1) Feedback test current I abc(2) Each of the aforementioned entry data is a set of corresponding three-phase currents I. a I b I c composition; The data subscription list includes multiple data subscription records; each data subscription record includes a subscriber identifier and a data identifier set; the subscriber identifier is a unique identifier corresponding to the braking simulation system, the dynamics simulation system, or the communication server; the data identifier set, when not empty, consists of one or more data identifiers; each data identifier is a unique type identifier for a class of the item types; the data identifier set corresponding to the braking simulation system includes one data identifier, specifically the simulation traction command C. sim The entry type corresponds to the data identifier set of the dynamic simulation system, which includes three data identifiers, specifically the feedback rotational speed ω. rea Feedback torque T rea and feedback force F rea The three item types correspond to each other; the data identifier set corresponding to the communication server includes two data identifiers, specifically the simulation traction command C. sim And simulation speed v sim The two entry types mentioned correspond to each other.
[0009] Preferably, the ATO simulation system is specifically used when generating the i-th step simulation traction command: Step 51: Extract the corresponding simulation velocity from the simulation velocity, acceleration, and train position output by the dynamic simulation system in the (i-1)th step of the simulation. Simulated acceleration and simulated train position ; Step 52, based on the simulation speed The simulated acceleration and the simulated train position Estimate current vehicle speed and current train position ; and the current train position Input the current line position into the preset line speed query function to obtain the corresponding line speed. ; in, , ; △t is the preset simulation step interval duration; The line speed query function corresponds to a train running line; the line speed query function is used to identify the target speed corresponding to the current line position based on the input line position and output the identification result as the corresponding line speed. Step 53, calculate speed error ; and use a PID controller based on the speed error Calculate the corresponding target acceleration ; and the target acceleration The acceleration requirement value is obtained by performing a normalization transformation. ; in, like This indicates that there is a demand for traction. like This indicates the existence of a need for lazy driving. like This indicates that there is a braking requirement; Step 54, based on the acceleration requirement value Set the mode and the level bit instruction ; Wherein, the mode The setting rules are as follows: , ; , , , Four preset acceleration requirement thresholds; The level instruction The setting rules are as follows: ; Step 55, from the obtained pattern and the level bit instruction The corresponding simulated traction command ; and the simulated traction command This corresponds to the i-th step of the simulation traction command.
[0010] Preferably, the braking simulation system is specifically used when simulating the i-th step simulation braking force according to the subscribed i-th step simulation traction command: Step 61: Obtain the simulation traction command pushed by the data server through the data subscription mechanism. ; and based on the simulated traction command The level bit instruction and the preset maximum braking acceleration Estimate the corresponding braking acceleration ; , , ; Where w1 is a preset coefficient factor, 0 < w1 < 1, The preset static level coefficient, ; Step 62, based on the simulated traction command The mode Set brake label B; ; Step 63, based on the braking tag B and the level command and the braking acceleration Estimate the simulated braking force And the simulated braking force Cache the simulated braking force As the corresponding simulated braking force in the i-th step; , ; Where w5 is a preset equivalence factor, M static For the preset static mass of the train, w5×M static The equivalent mass of the train.
[0011] Preferably, the dynamics simulation system is specifically used when simulating the i-th step simulation speed, acceleration, and train position based on the subscribed i-th step feedback speed, torque, and force, as well as the i-th step simulation braking force: Step 71: Obtain the feedback speed, torque, and force pushed by the data server in step i through a data subscription mechanism; and extract the corresponding feedback speed from it. The feedback torque The feedback force ; and extract the corresponding simulation speed from the simulation speed, acceleration, and train position of the (i-1)th step cached by the system. Simulated acceleration and simulated train position ; and the position of the simulated train Inputting the preset line slope and curvature into the current line position, a query function is used to obtain the corresponding line slope. Line curvature ; The line gradient and curvature query function corresponds to a train running line; the line gradient and curvature query function is used to identify the gradient and curvature corresponding to the current line position based on the input line position and output the identification result as the corresponding line gradient and line curvature. Step 72, based on the simulation speed Estimate basic operating resistance ; in, , ; w2 is the preset mechanical resistance constant, w3 is the preset linear resistance constant, and w4 is the preset quadratic resistance constant. Step 73, based on the slope of the line Estimate ramp resistance ; in, ; M static Here is the preset static mass of the train, and g is the acceleration due to gravity; when going uphill, , When going downhill, , ; Step 74, based on the curvature of the line Estimating cornering resistance ; , ; Where w6 is the preset curve additional resistance coefficient; Step 75, based on the feedback force The basic operating resistance The aforementioned ramp resistance The aforementioned curve resistance and the simulated braking force Estimating the resultant force ; in, ; Step 76, based on the resultant force Estimate the corresponding simulation speed The simulated acceleration and the simulated train position and locally on the system , and Cache is performed, and the simulation speed is determined. The simulated acceleration and the simulated train position The corresponding simulated velocity, acceleration, and train position in the i-th step are formed; in, , , ; w5 is a preset equivalence factor, w5×M static The equivalent mass of the train is Δt, and the preset simulation step interval is Δt.
[0012] Preferably, the data server is specifically used when storing synchronized data in the form of collection entries: Upon receiving the i-th simulation traction command synchronized by the ATO simulation system, the corresponding simulation step is set based on the current simulation step index i, and the corresponding entry type is set to simulation traction command C. sim The current time is used as the corresponding synchronization time, and the current simulation traction command of step i is used as the corresponding synchronization data. The current simulation step, the entry type, the synchronization time, and the synchronization data are combined to form an acquisition entry and saved. The acquisition entries saved this time are combined to form a corresponding first batch of entry sets and saved. Upon receiving the simulated braking force of the i-th step synchronized by the braking simulation system, the corresponding simulation step is set based on the current simulation step index i, and the corresponding entry type is set to simulated braking force F. sim(br) The current time is used as the corresponding synchronization time, and the current simulation braking force of the i-th step is used as the corresponding synchronization data. The current simulation step, the entry type, the synchronization time, and the synchronization data are combined to form an acquisition entry and saved. The acquisition entries saved this time are combined to form a corresponding first batch of entry sets and saved. Upon receiving the simulated velocity, acceleration, and train position from the dynamics simulation system at step i, three new acquisition entries are generated and saved based on these data. These three newly acquired entries form a corresponding first batch of entries and are also saved. The simulation step for each of the three newly acquired entries is the current simulation step index i, the synchronization time is the current time, and the entry type is the simulated velocity v. sim Simulated acceleration a sim and simulated train position s sim The synchronization data are respectively the simulation speed The simulated acceleration and the simulated train position ; Upon receiving the feedback speed, torque, and force from the communication server at step i, three new acquisition entries are generated and saved based on the feedback speed, torque, and force at step i. These three newly acquired entries form a corresponding first batch of entries and are also saved. The simulation step for each of the three newly acquired entries is the current simulation step index i, the synchronization time is the current time, and the entry type is feedback speed ω. rea Feedback torque T rea and feedback force F rea The synchronization data are respectively the feedback rotation speed. The feedback torque and the feedback force ; Upon receiving the simulated speed, feedback traction voltage, feedback traction current, feedback auxiliary voltage, feedback auxiliary current, main test traction power, and auxiliary test power synchronized from the communication server, seven i-step acquisition entries are generated and saved based on the simulated speed, feedback traction voltage, feedback traction current, feedback auxiliary voltage, feedback auxiliary current, main test traction power, and auxiliary test power. These seven i-step acquisition entries form a corresponding first batch of entries and are also saved. The simulation step for each of the seven i-step acquisition entries saved is the current simulation step index i, the synchronization time is the current time, and the synchronization data is the simulated speed. The feedback traction voltage The feedback traction current The feedback test voltage The feedback test current The main test traction power The power of the accompanying test ; Specifically, the data server is used when pushing the latest subscription data to the braking simulation system, the dynamics simulation system, and the communication server based on the data subscription list: Each saved entry set from the first batch is used as the corresponding current entry set; a current identifier set is formed by the unique type identifiers corresponding to each entry type in the current entry set; a round of traversal is performed on all data subscription records in the data subscription list; during this round of traversal, the currently traversed data subscription record is used as the current record; the intersection of the data identifier set of the current record and the current identifier set is used as the current intersection; when the current intersection is not empty, the system or server corresponding to the subscriber identifier of the current record is used as the current subscriber, and the sub-entry set corresponding to the current intersection in the current entry set is pushed to the current subscriber; and at the end of this round of traversal, the current entry set is deleted.
[0013] Preferably, the communication server is specifically used when generating the first message according to the subscribed i-th step simulation traction command: The simulation traction instruction for the i-th step is obtained through a data subscription mechanism pushed by the data server; and the simulation traction instruction for the i-th step is processed according to a preset byte stream encoding and decoding rule. Byte stream encoding is performed to obtain the corresponding traction instruction byte stream; the traction instruction byte stream is used as the corresponding current plaintext byte stream; the current plaintext byte stream is encrypted based on a preset message encryption / decryption algorithm, and the ciphertext byte stream obtained from this encryption is used as the corresponding message data body; the corresponding message type is set to real-time data message, and the corresponding message priority is set to the highest priority; the first historical transmission version cached locally on the server is incremented by 1, and the incremented first historical transmission version is used as the corresponding message version; the current time is used as the corresponding message time; and the current message type is used as the message time. The message priority, message version, message time, and message data body are sequentially concatenated to form the current byte stream; and based on a preset checksum algorithm, a checksum is calculated on the current byte stream, and the calculation result is used as the corresponding message checksum; and the current message type, message priority, message version, message time, message data body, and message checksum are used to form the corresponding WebSocket layer data body; and according to the four-layer nested message format of the communication message, the corresponding first message is obtained by encapsulating the current WebSocket layer data body upwards layer by layer; The communication server is specifically used when generating the third message based on the subscribed i-th step simulation speed: The simulation speed of step i is obtained through a data subscription mechanism pushed by the data server; the simulation speed of step i is then processed according to the byte stream encoding and decoding rules. Byte stream encoding is performed to obtain the corresponding speed byte stream; the speed byte stream is then used as the corresponding current plaintext byte stream; the current plaintext byte stream is encrypted based on the message encryption / decryption algorithm, and the ciphertext byte stream obtained from this encryption is used as the corresponding message data body; the corresponding message type is set to real-time data message, and the corresponding message priority is set to the highest priority; the first historical transmission version cached locally on the server is incremented by 1, and the incremented first historical transmission version is used as the corresponding message version; the current time is used as the corresponding message time; and the current message... The current byte stream is formed by sequentially concatenating the message type, message priority, message version, message time, and message data body; and based on the checksum algorithm, the current byte stream is used to calculate the checksum, and the calculation result is used as the corresponding message checksum; and the corresponding WebSocket layer data body is formed by the current message type, message priority, message version, message time, message data body, and message checksum; and according to the four-level nested message format of the communication message, the corresponding third message is obtained by encapsulating the current WebSocket layer data body upwards layer by layer; Specifically, the communication server is used to synchronize the i-th step feedback speed, torque, and force from the second returned message to the data server: According to the four-level nested message format of the communication message, the second message sent back by the communication workstation is parsed using a four-level nested parsing method to obtain the corresponding WebSocket layer data body; and the corresponding message type, message priority, message version, message time, message data body, and message checksum are extracted from the current WebSocket layer data body; and the current message type, message priority, message version, message time, and message data body are sequentially concatenated to form the current byte stream; and based on the checksum algorithm, the current byte stream is... The throttling process calculates the checksum and uses the result as the corresponding current comparison code. When the current comparison code matches the current message checksum, the current message version is greater than the first historical received version cached locally on the server, and the time interval between the current message time and the current time is less than a preset interval duration threshold, the first historical received version is updated to the current message version. Based on the message encryption / decryption algorithm, the current message data body is decrypted to obtain the corresponding plaintext byte stream. The current plaintext byte stream is then decoded according to the byte stream encoding / decoding rules to obtain the corresponding feedback rotation speed. The feedback torque and the feedback force The corresponding i-th step feedback speed, torque, and force are synchronized with the data server; Specifically, the communication server is used to parse the simulated rotational speed, feedback traction voltage, feedback traction current, feedback auxiliary voltage, feedback auxiliary current, main test traction power, and auxiliary test power from the fourth message sent back and synchronize them with the data server: According to the four-level nested message format of the communication message, the fourth message sent back by the communication workstation is parsed using a four-level nested parsing method to obtain the corresponding WebSocket layer data body; and the corresponding message type, message priority, message version, message time, message data body, and message checksum are extracted from the current WebSocket layer data body; and the current byte stream is formed by sequentially concatenating the current message type, message priority, message version, message time, and message data body; and the current byte stream is then processed based on the checksum algorithm. The system performs checksum calculation and uses the result as the corresponding current comparison code. When the current comparison code matches the current message checksum, the current message version is greater than the first historical received version cached locally on the server, and the time interval between the current message time and the current time is less than the interval duration threshold, the first historical received version is updated to the current message version. Based on the message encryption / decryption algorithm, the current message data body is decrypted to obtain the corresponding plaintext byte stream. The current plaintext byte stream is then decoded according to the byte stream encoding / decoding rules to obtain the corresponding simulated rotational speed. The feedback traction voltage The feedback traction current The feedback test voltage The feedback test current The main test traction power and the power of the accompanying test The corresponding simulated rotational speed, feedback traction voltage, feedback traction current, feedback auxiliary voltage, feedback auxiliary current, main test traction power, and auxiliary test power of the i-th step, composed of decoded data, are synchronized with the data server. The communication workstation is specifically used when the i-th step simulation traction command cache is parsed from the first message and stored locally on the workstation: According to the four-layer nested message format of the communication message, the first message is parsed in a four-layer nested manner to obtain the corresponding WebSocket layer data body; the message type, message priority, message version, message time, message data body, and message checksum are extracted from the current WebSocket layer data body; the current message type, message priority, message version, message time, and message data body are sequentially concatenated to form the current byte stream; and the checksum is calculated on the current byte stream based on the checksum algorithm, and the calculation result is used as the corresponding current comparison code; when the current comparison code and the current message checksum match, the current message version is greater than the second historical received version cached locally on the workstation, and the time interval between the current message time and the current time is less than the interval duration threshold, the second historical received version is updated to the current message version, and the current message data body is decrypted based on the message encryption and decryption algorithm to obtain the corresponding plaintext byte stream, and the current plaintext byte stream is decoded according to the byte stream encoding and decoding rules to obtain the corresponding simulation traction instruction. And cache it locally on the workstation as the corresponding i-th step simulation traction command; The communication workstation is specifically used when parsing the i-th step simulation speed from the third message: According to the four-layer nested message format of the communication message, the third message is parsed using a four-layer nested parsing method to obtain the corresponding WebSocket layer data body; the message type, message priority, message version, message time, message data body, and message checksum are extracted from the current WebSocket layer data body; the current byte stream is formed by sequentially concatenating the current message type, message priority, message version, message time, and message data body; and the checksum is calculated on the current byte stream based on the checksum algorithm, with the calculation result used as the corresponding current comparison code; when the current comparison code and the current message checksum match, the current message version is greater than the second historical received version cached locally on the workstation, and the time interval between the current message time and the current time is less than the interval duration threshold, the second historical received version is updated to the current message version, and the current message data body is decrypted using the message encryption and decryption algorithm to obtain the corresponding plaintext byte stream, and the current plaintext byte stream is decoded according to the byte stream encoding and decoding rules to obtain the corresponding simulation speed. And take it as the corresponding simulation speed of the i-th step; The communication workstation is specifically used to generate the second message when the communication message is generated based on the i-th step feedback speed, torque, and force sent by the system: According to the byte stream encoding and decoding rules, the feedback speed of the i-th step feedback speed, torque and force sent by the main test control system is... The feedback torque and the feedback force Byte stream encoding is performed separately to obtain corresponding speed byte streams, torque byte streams, and force byte streams; these are then sequentially concatenated to obtain the current concatenated byte stream, with a preset separator byte inserted at the concatenation point; the current concatenated byte stream is encrypted using the message encryption / decryption algorithm, and the resulting ciphertext byte stream is used as the corresponding message data body; the message type is set to real-time data message, and the message priority is set to the highest priority; the second historical transmission version cached locally on the workstation is incremented by 1, and the incremented version is used as the corresponding message version. The current time is used as the corresponding message time; the current byte stream is formed by sequentially concatenating the current message type, message priority, message version, message time, and message data body; the checksum is calculated on the current byte stream based on the checksum algorithm, and the calculation result is used as the corresponding message checksum; the corresponding WebSocket layer data body is formed by the current message type, message priority, message version, message time, message data body, and message checksum; and the corresponding second message is obtained by encapsulating the current WebSocket layer data body layer by layer upwards according to the four-layer nested message format of the communication message. The communication workstation is specifically used to generate the fourth message based on the simulated rotational speed, feedback traction voltage, feedback traction current, feedback test voltage, feedback test current, main test traction power, and test power sent by the system in the i-th step: According to the byte stream encoding and decoding rules, the simulated speed, feedback traction voltage, feedback traction current, feedback auxiliary voltage, feedback auxiliary current, main test traction power, and auxiliary power transmitted by the main test control system in step i are processed in accordance with the simulated speed. The feedback traction voltage The feedback traction current The feedback test voltage The feedback test current The main test traction power and the power of the accompanying test Each byte stream is encoded to obtain seven corresponding byte streams; these seven byte streams are then sequentially concatenated to obtain the current concatenated byte stream, with a preset delimiter byte inserted at the concatenation point between the preceding and following byte streams; the current concatenated byte stream is then encrypted using the aforementioned message encryption / decryption algorithm, and the encrypted byte stream is used as the corresponding message data body; the corresponding message type is set to real-time data message, and the corresponding message priority is set to the highest priority; the second historical transmission version cached locally on the workstation is incremented by 1, and the incremented second historical transmission version is used as the corresponding message version; and the current time is used as the corresponding... The message time is described; and the current byte stream is formed by sequentially concatenating the current message type, message priority, message version, message time, and message data body; and the checksum is calculated on the current byte stream based on the checksum algorithm, and the calculation result is used as the corresponding message checksum; and the corresponding WebSocket layer data body is formed by the current message type, message priority, message version, message time, message data body, and message checksum; and the corresponding fourth message is obtained by encapsulating the current WebSocket layer data body layer by layer upwards according to the four-layer nested message format of the communication message.
[0014] Preferably, the master test control system is specifically used when calculating the simulated rotational speed in the i-th step and sending it to the assistant test control system: based on the preset train wheel rolling radius r, gearbox transmission ratio β, and the simulated speed. Calculate the simulated rotational speed And cache it; and the simulated rotational speed The simulated rotational speed in the i-th step is sent to the test control system; wherein... ; Specifically, when the traction voltage, current, and power are obtained in the i-th step, the main control system acquires the three-phase AC voltage and current output by the traction converter as the corresponding feedback traction voltage through voltage and current sensors installed at the converter output terminal. and the feedback traction current And according to the feedback traction voltage and the feedback traction current Calculate the corresponding main test traction power ; and by the feedback traction voltage The feedback traction current and the main test traction power The i-th step consists of the traction voltage, current, and power.
[0015] Preferably, the accompanying test control system is specifically used to: when the feedback speed, torque, and force obtained through data acquisition and calculation in the i-th step are sent back to the main test control system, acquire the output speed and torque of the traction motor as the corresponding feedback speed through a torque sensor installed at the shaft end of the accompanying test motor. and the feedback torque ; and based on the feedback torque The feedback force is calculated based on the preset train wheel rolling radius r, the gearbox transmission ratio β, and the mechanical transmission efficiency γ. ; and by the feedback rotation speed The feedback torque and the feedback force The i-th step feedback of speed, torque, and force is sent back to the main test control system; wherein, ; The accompanying control system is specifically used to, when the generated PWM signal G drives the accompanying frequency converter to perform work on the accompanying motor, at the simulated speed... Given a rotational speed, with the feedback rotational speed Given the current rotational speed, the speed difference between the given rotational speed and the current rotational speed is calculated; and a PID controller is used to adjust the target torque of the test motor based on the current speed difference. Calculations are performed; and based on the field-oriented control algorithm, according to the target torque... The excitation component and torque component of the stator current are calculated, and a reference voltage vector is obtained through a current inner-loop PI controller. A space vector pulse width modulation strategy is used to generate six corresponding PWM drive sub-signals to form the PWM signal G. The six PWM drive sub-signals of the PWM signal G control the on / off timing of the six IGBT switches inside the test inverter. Through the on / off control of the six IGBT switches, the test inverter is driven to invert the DC bus voltage into a three-phase AC voltage and output it to the corresponding test motor. Specifically, when the i-th step test voltage, current, and power are sent back to the main test control system, the accompanying test control system uses voltage and current sensors installed at the inverter output terminal to acquire the three-phase AC voltage and current output by the accompanying inverter as the corresponding feedback test voltage. and the feedback test current And based on the feedback test voltage and the feedback test current Calculate the corresponding test-taking power ; and by the feedback test voltage The feedback test current and the power of the accompanying test The corresponding test voltage, current, and power of step i are sent back to the main test control system.
[0016] Preferably, the digital model server is specifically used when constructing a corresponding traction system digital model for the traction system consisting of the traction converter and the traction motor: The combined model of the cascaded equivalent model of the converter and the equivalent circuit model of the asynchronous motor is used as the digital model of the traction system; the input of the digital model of the traction system includes mode M. ATO Level command λ, DC bus voltage U dc and the specified rotational speed ω assign The output includes three-phase voltage U abc Three-phase current I abc Output torque T out and output speed ω out The model parameters of the traction system digital model include the modulation coefficient k of the converter equivalent model. mod and the stator resistance R of the equivalent circuit model of the asynchronous motor s Rotor resistance R r Stator leakage inductance L sσ Rotor leakage inductance L rσ And excitation inductance L m ; The model expression of the digital model of the traction system is denoted as: , ; This is the parameter set of the digital model of the traction system. This is the model function of the digital model of the traction system; The digital model server is specifically used when identifying the model parameters of the traction system digital model based on the accumulated data from the data server: Step 121: Assemble the collection entries belonging to the current traction system on the data server into a first set; Step 122: Identify the index value range of simulation step index i in the first set, count the total number of indexes N0 in the current index value range, and sequentially encode each simulation step index i in the current index value range in ascending order to obtain the corresponding code q, 1≤q≤N0; Step 123: Each of the given codes q is taken as the current code, and the next code q+1 after the current code is taken as the next code; the simulation step index i corresponding to the current code and the next code is recorded as the current index and the next index; and the simulation steps in the first set that match the current index and whose entry types are simulation traction instructions C are... sim Simulated rotational speed ω sim Feedback traction voltage U abc(1) and feedback traction current I abc(1) The collected items form a corresponding second set, which is formed by matching the simulation step with the next index and the item type being feedback rotational speed ω. rea and feedback torque T rea The collected items form a corresponding third set; and in the current second set, the item type is simulation traction command C. sim The mode of the synchronized data and the level bit instruction As the corresponding mode And level bit instructions The entry types are respectively the simulated rotational speed ω sim Feedback traction voltage U abc(1) and feedback traction current I abc(1) The synchronization data is used as the corresponding specified rotational speed. Voltage label and current label ; and in the current third set, the entry types are feedback rotational speed ω rea and feedback torque T rea The synchronization data serves as the corresponding speed tag. and torque label ; and the corresponding DC bus voltage Set as the DC bus voltage of the current traction system; and determined by the mode corresponding to the current code. The level bit instruction The DC bus voltage The specified rotational speed The voltage tag The current tag The speed tag and the torque tag This forms a corresponding training data record; Step 124, and the obtained N0 training data records form the corresponding model dataset; Step 125, and construct the model objective function O based on the model dataset and the model expression; The objective function O of the model is: , ; Parameter set The constraints are: , , , ; , , , These are preset weighting coefficients for voltage, current, speed, and torque. , , and To make a set of corresponding patterns The level bit instruction The DC bus voltage and the specified rotational speed After inputting the digital model of the traction system, the model outputs a set of three-phase voltages, three-phase currents, output speeds, and output torques. Step 126, satisfying the parameter set Under the constraints, the objective of minimizing the model objective function O is to apply the parameter set... The optimal solution is used to obtain the corresponding parameter set. ; Step 127, set the current parameter set This is used as the model parameter set for the current traction system and saved.
[0017] This invention provides a power hardware-in-the-loop (HIL) simulation test system for rail transit. As described above, the system includes a remote simulation platform and a traction test bench. The remote simulation platform is connected to the traction test bench via a dedicated Ethernet line. The remote simulation platform includes an ATO (Automatic Train Operation) simulation system, a braking simulation system, a dynamics simulation system, a network simulation system, a data server, a communication server, a first firewall, and a digital model server. The traction test bench includes a second firewall, a communication workstation, a main test control system, a secondary test control system, a traction converter, a secondary test frequency converter, a traction motor, a flywheel, and a secondary test motor. The network simulation system simulates the train's internal network. A secure transmission channel is established via a dedicated Ethernet line connecting the communication server, the first firewall, the second firewall, and the communication workstation. The ATO simulation system, braking simulation system, dynamics simulation system, main test control system, and secondary test control system work together to complete a closed-loop test sequence: signal control, braking simulation, dynamics simulation, traction / secondary test hardware drive, and hardware response data feedback. The data server records test samples throughout the entire test cycle. The digital model server optimizes the parameters of the digital model of the tested traction system based on the accumulated test samples. Based on the embodiments of the present invention, remote simulation platforms and traction test benches can be deployed in different locations. Data protection for remote transmission messages can be achieved through dedicated lines and customized encrypted message formats. Firewalls can be used to provide security protection for remotely deployed simulation platforms and test benches. This can reduce the construction cost of the overall experimental system, shorten the experimental cycle, and enable simulation tests to be completed through digital models under conditions where physical experiments are not available. Attached Figure Description
[0018] Figure 1 A module structure diagram of a power hardware-in-the-loop-based rail transit simulation test system provided in this embodiment of the invention; Figure 2 This is a schematic diagram of the communication message data structure provided in an embodiment of the present invention; Figure 3 This is a schematic diagram of the data structure for the collection items provided in an embodiment of the present invention; Figure 4 A schematic diagram of the data structure of the data subscription list provided in an embodiment of the present invention; Figure 5 This is a schematic diagram of test closed-loop transmission data provided in an embodiment of the present invention. Detailed Implementation
[0019] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are merely some embodiments of this invention, and not all embodiments. Based on the embodiments of this invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this invention.
[0020] This invention provides a power hardware-in-the-loop (HIL)-based rail transit simulation test system, such as... Figure 1 The module structure diagram of a power hardware-in-the-loop rail transit simulation test system provided in this embodiment of the invention is shown. It mainly includes: a remote simulation platform 1 and a traction test bench 3; the remote simulation platform 1 is connected to the traction test bench 3 via a dedicated Ethernet line 2.
[0021] like Figure 1 As shown, the remote simulation platform 1 of this embodiment includes an ATO simulation system 11, a braking simulation system 12, a dynamics simulation system 13, a network simulation system 14, a data server 15, a communication server 16, a first firewall 17, and a digital model server 18; the traction test bench 3 includes a second firewall 31, a communication workstation 32, a main test control system 33, a secondary test control system 34, a traction converter 35, a secondary test frequency converter 36, a traction motor 37, a flywheel 38, and a secondary test motor 39.
[0022] like Figure 1 As shown, the platform components of the remote simulation platform 1 are connected as follows: the first firewall 17 is connected to the communication server 16 and the second firewall 31 respectively; the communication server 16 is connected to the data server 15; the data server 15 is connected to the digital model server 18; the network simulation system 14 is connected to the ATO simulation system 11, the braking simulation system 12, the dynamics simulation system 13 and the data server 15 respectively; the dynamics simulation system 13 is also connected to the ATO simulation system 11 and the braking simulation system 12 respectively.
[0023] like Figure 1 As shown, the connection relationship of the components on the side of the traction test bench 3 is as follows: the second firewall 31 is connected to the communication workstation 32; the communication workstation 32 is connected to the main test control system 33; the main test control system 33 is connected to the auxiliary test control system 34 and the traction converter 35 respectively; the auxiliary test control system 34 is connected to the auxiliary test frequency converter 36; the traction converter 35 and the auxiliary test frequency converter 36 are connected to the corresponding traction motor 37 and auxiliary test motor 39 respectively through power cables; the traction motor 37, the flywheel 38 and the auxiliary test motor 39 are connected in series coaxially through couplings, or the traction motor 37, the auxiliary test motor 39 and the flywheel 38 are connected in series coaxially through couplings.
[0024] It should be noted that the traction converter 35 and traction motor 37 in this embodiment of the invention are actual train traction system components. The traction motor 37, flywheel 38, and test motor 39 in this embodiment maintain the same rotational speed. The flywheel 38 is used to simulate the inertial load during train operation, and the test motor 39 is used to simulate the resistance load during train operation. The traction converter 35 and the test inverter 36 are both connected to the same DC bus.
[0025] Both the first firewall 17 and the second firewall 31 in this embodiment of the invention have ACL packet filtering, IDS intrusion detection and IPS intrusion protection functions.
[0026] In this embodiment of the invention, the communication server 16 and the communication workstation 32 exchange messages in a server-client manner, with the communication server 16 acting as the server and the communication workstation 32 as the client. When the communication server 16 or the communication workstation 32 detects a connection loss or data transmission error, it automatically disconnects from the other workstation or server. When the communication workstation 32 detects a connection loss with the communication server 16, it automatically initiates a reconnection to the communication server 16.
[0027] In this embodiment of the invention, the communication server 16 and the communication workstation 32 use TCP / IP as the transport layer protocol and disable the Nagle algorithm at the TCP / IP layer. Between the communication server 16 and the communication workstation 32, WebSocket is used as the application layer communication message transmission protocol and SFTP is used as the application layer file transfer protocol on top of TCP / IP.
[0028] like Figure 2 As shown in the schematic diagram of the communication message data structure provided in this embodiment of the invention, the message format of the communication message transmitted between the communication server 16 and the communication workstation 32 in this embodiment of the invention is a 4-level nested structure, specifically: The first nested structure of a communication message includes the IP protocol header and the IP layer data body; the second nested structure of the IP layer data body includes the TCP protocol header and the TCP layer data body; the third nested structure of the TCP layer data body includes the WebSocket protocol header and the WebSocket layer data body; the fourth nested structure of the WebSocket layer data body is a custom data structure, including message type, message priority, message version, message time, message data body, and message checksum.
[0029] The message types include real-time data messages, connection request messages, connection feedback messages, and other messages. Message priorities include n priorities from highest to lowest, where 2 ≤ the total number of priorities and n ≤ N, where N is the total number of message types. When the message body is not empty, it is a stream of ciphertext or plaintext bytes.
[0030] It should be noted that the message priority of real-time data messages is always the highest priority, and the corresponding message data body is a stream of encrypted bytes.
[0031] It should be noted that the raw byte stream used to generate the message checksum is a byte stream composed of the message type, message priority, message version, message time, and message data body in sequence.
[0032] In the following text, the message formats of the first, second, third, and fourth messages exchanged between the communication server 16 and the communication workstation 32 are all encapsulated and parsed according to the four-level nested structure of communication messages.
[0033] It should also be noted that when the length of the message data body of the communication message transmitted between the communication server 16 and the communication workstation 32 exceeds the preset data block length: On the sender and receiver sides, corresponding send and receive buffers are created respectively. Both send and receive buffers are divided into multiple data block sub-regions, each with a data block length equal to the data block length. The sender segments the message data body into multiple data blocks according to the data block length. Each data block is stored in its corresponding data block sub-region within the send buffer, with each data block corresponding one-to-one with a data block sub-region in either the send or receive buffer. Based on a multi-threading mechanism, multiple parallel message sending tasks are initiated on the sender side, and multiple parallel message receiving tasks are initiated on the receiver side. Each message sending task retrieves one unsent packet from the send buffer. Data blocks are encapsulated into new communication messages and sent to the receiver. After transmission, the transmission status of the current data block sub-area is switched from "never sent" to "sent". Each message receiving task is used to receive the packetized data blocks sent by the sender and write each received data block into the corresponding data block sub-area in the receive buffer. On the sender side, a mutex lock mechanism is used to control concurrent access to the data block sub-area in the send buffer, so that each data block sub-area is not read by two or more message sending tasks at the same time. On the receiver side, a mutex lock mechanism is used to control concurrent access to the data block sub-area in the receive buffer, so that each data block sub-area is not written to by two or more message receiving tasks at the same time.
[0034] It should also be noted that if there are other synchronized data items between the communication server 16 and the communication workstation 32 besides the real-time synchronized data contained in the first, second, third, and fourth messages, then a corresponding data scanning frequency f1 and a forced synchronization frequency f2 are set for each type of other synchronized data item, where f1 > f2. A corresponding synchronization initiator and synchronization receiver are selected from the communication server 16 and the communication workstation 32 for each type of other synchronized data item. The synchronization initiator of each other synchronized data item periodically scans for changes in the current data item according to the data scanning frequency f1. If a change is found, the synchronization initiator synchronizes the current data item to the synchronization receiver. The synchronization initiator of each other synchronized data item periodically synchronizes the current data item to the synchronization receiver according to the forced synchronization frequency f2. During each synchronization, it is identified whether the current data item is numerical data. If so, only the numerical change of the current data item is synchronized; otherwise, the entire data of the current data item is synchronized.
[0035] (a) Remote simulation platform 1: The ATO simulation system 11 is used to generate the i-th step simulation traction command in the simulation experiment and synchronize it to the data server 15.
[0036] Here, 1 ≤ simulation step index i. The i-th simulation traction command in this embodiment of the invention is denoted as: simulation traction command. Simulated traction command Including patterns And level bit instructions .model This includes Traction Control (PWR), Coasting Assist (COA), Adaptive Cruise Control (ACC), Braking Assist (BRK), and Emergency Braking (EMG). Level commands. The value ranges from 0% to 100%. .
[0037] In one specific implementation of this invention, the ATO simulation system 11 is specifically used when generating the i-th step simulation traction command: Step A1: Extract the corresponding simulation velocity from the simulation velocity, acceleration, and train position output by the dynamics simulation system 13 in the (i-1)th step of the simulation. Simulated acceleration and simulated train position .
[0038] Step A2, based on simulation speed Simulated acceleration and simulated train position Estimate current vehicle speed and current train position ; and the current train position Input the current line position into the preset line speed query function to obtain the corresponding line speed. .
[0039] in, , ; △t is the preset simulation step interval.
[0040] The line speed query function in this embodiment of the invention corresponds to a train route. The line speed query function is used to identify the target speed corresponding to the input line position on the current line and output the identification result as the corresponding line speed.
[0041] Step A3, calculate the speed error ; and use a PID controller based on speed error Calculate the corresponding target acceleration And the target acceleration The acceleration requirement value is obtained by performing a normalization transformation. .
[0042] Here, the acceleration requirement value in the embodiment of the present invention The three typical needs are: like This indicates that there is a demand for traction. like This indicates the existence of a need for lazy driving. like This indicates that there is a braking requirement.
[0043] Step A4, based on acceleration requirement value Setting Mode And level bit instructions .
[0044] Here, the embodiment mode of the present invention The setting rules are as follows: , in, ; , , , Four preset acceleration requirement thresholds are provided.
[0045] This invention's embodiment of bit instructions The setting rules are as follows: .
[0046] Step A5, from the obtained pattern And level bit instructions Form the corresponding simulation traction command ; and simulate traction commands This serves as the corresponding i-th step of the simulation traction command.
[0047] The braking simulation system 12 is used to simulate the braking force of the i-th step according to the subscribed i-th step simulation traction command; and simultaneously sends the simulation results to the dynamics simulation system 13 and synchronizes them to the data server 15.
[0048] Here, the simulated braking force in the i-th step of this embodiment is denoted as: simulated braking force. .
[0049] In another specific implementation of this invention, the braking simulation system 12 is specifically used to simulate the i-th step of the braking force according to the subscribed i-th step of the simulation traction command: Step B1: Obtain the simulation traction command pushed by data server 15 through the data subscription mechanism. ; and based on simulated traction commands Level instructions and the preset maximum braking acceleration Estimate the corresponding braking acceleration .
[0050] , , ; Where w1 is a preset coefficient factor, 0 < w1 < 1, The preset static level coefficient, .
[0051] Step B2, based on simulated traction commands pattern Set brake label B.
[0052] in, .
[0053] Step B3, based on braking tag B and level command. and braking acceleration Estimating Simulated Braking Force And simulated braking force Cache the simulated braking force This serves as the corresponding simulated braking force in the i-th step.
[0054] in, , ; w5 is the preset equivalence factor, Mstatic For the preset static mass of the train, w5×M static The equivalent mass of the train.
[0055] The dynamics simulation system 13 is used to simulate the speed, acceleration and train position of the i-th step based on the subscribed i-th step feedback speed, torque and force and the i-th step simulated braking force; and simultaneously synchronizes the simulation results to the data server 15 while sending them to the ATO simulation system 11.
[0056] Here, the i-th step of the embodiment of the present invention, which involves feedback of rotational speed, torque, and force, includes: feedback of rotational speed. Feedback torque and feedback force ;in, At that time, feedback force Its essence is a feedback pull; At that time, feedback force Its essence is a feedback braking force.
[0057] The i-th step of the simulation of speed, acceleration, and train position in this embodiment of the invention includes: simulation speed Simulated acceleration and simulated train position Among them, simulation speed This is the simulation speed at step i.
[0058] In another specific implementation of this invention, the dynamic simulation system 13 is specifically used to simulate the i-th step simulation speed, acceleration, and train position based on the subscribed i-th step feedback speed, torque, and force, as well as the i-th step simulation braking force: Step C1: Obtain the i-th step feedback speed, torque, and force pushed by data server 15 through the data subscription mechanism; and extract the corresponding feedback speed from it. Feedback torque Feedback force ; and extract the corresponding simulation speed from the simulation speed, acceleration, and train position of the (i-1)th step cached by the system. Simulated acceleration and simulated train position ; and the simulated train position Inputting the preset line slope and curvature into the current line position, a query function is used to obtain the corresponding line slope. Line curvature .
[0059] Here, the track gradient and curvature query function of this embodiment corresponds to a train running line. The track gradient and curvature query function is used to identify the gradient and curvature corresponding to the current position on the track based on the input track position, and output the identification result as the corresponding track gradient and curvature.
[0060] Step C2, based on simulation speed Estimate basic operating resistance .
[0061] in, , ; w2 is the preset mechanical resistance constant, w3 is the preset first-order resistance constant, and w4 is the preset second-order resistance constant.
[0062] Step C3, based on the line gradient Estimate ramp resistance .
[0063] in, ; M static Let g be the preset static mass of the train, and g be the acceleration due to gravity. When going uphill, , When going downhill, , .
[0064] Step C4, based on line curvature Estimating cornering resistance .
[0065] , ; Where w6 is the preset curve additional resistance coefficient.
[0066] Step C5, based on feedback force Basic operating resistance , ramp resistance Curving resistance and simulated braking force Estimating the resultant force .
[0067] in, .
[0068] Step C6, based on resultant force Estimate the corresponding simulation speed Simulated acceleration and simulated train position and locally on the system , and Cache the data and adjust the simulation speed accordingly. Simulated acceleration and simulated train position This forms the corresponding simulation speed, acceleration, and train position for the i-th step.
[0069] in, , , ; △t is the preset simulation step interval.
[0070] The network simulation system 14 is used to simulate the real-time communication network inside the train and to forward data to the internal nodes of the network through the simulated network. The internal nodes of the network include the ATO simulation system 11, the braking simulation system 12, the dynamics simulation system 13, and the data server 15.
[0071] The data server 15 is used to store the synchronization data in the form of collection entries; and to push the latest subscription data to the braking simulation system 12, the dynamics simulation system 13 and the communication server 16 based on the data subscription list.
[0072] like Figure 3 The schematic diagram of the data structure for the acquisition entries provided in this embodiment of the invention shows that the acquisition entries include simulation steps, entry types, synchronization times, and synchronization data. The simulation step is the simulation step index. The entry types include 15 categories, namely: simulation speed v... sim Simulated acceleration a sim Simulated train position s sim Simulated braking force F sim(br) Simulated traction command C sim Simulated rotational speed ω sim Feedback speed ω rea Feedback torque T rea Feedback force F rea Feedback traction voltage U abc(1) Feedback traction current I abc(1) Feedback test voltage U abc(2) Feedback test current I abc(2) The main test traction power P1 and the auxiliary test power P2 are listed. The item type is feedback traction voltage U. abc(1) Feedback test voltage U abc(2) Each entry in the data set corresponds to a set of three-phase voltages U. a U b U c Composition. The entry type is feedback traction current I. abc(1) Feedback test current I abc(2)Each entry in the data set corresponds to a set of three-phase currents I. a I b I c composition.
[0073] like Figure 4 The data structure diagram of the data subscription list provided in this embodiment of the invention is shown. The data subscription list includes multiple data subscription records. Each data subscription record includes a subscriber identifier and a data identifier set. The subscriber identifier is a unique identifier corresponding to the braking simulation system 12, the dynamics simulation system 13, or the communication server 16. When the data identifier set is not empty, it consists of one or more data identifiers; each data identifier is a unique type identifier for a specific entry type. The data identifier set corresponding to the braking simulation system 12 includes one data identifier, specifically the simulation traction command C. sim The entry type corresponds to; the data identifier set corresponding to the dynamic simulation system 13 includes 3 data identifiers, specifically the feedback rotational speed ω. rea Feedback torque T rea and feedback force F rea The three entry types correspond; the data identifier set corresponding to communication server 16 includes two data identifiers, specifically the simulation traction command C. sim And simulation speed v sim The two entry types correspond.
[0074] In another specific implementation of this invention, the data server 15 is specifically used to store synchronized data in the form of collection entries: Step D1: Upon receiving the i-th simulation traction command synchronized by the ATO simulation system 11, set the corresponding simulation step based on the current simulation step index i, and set the corresponding entry type to simulation traction command C. sim The current time is used as the corresponding synchronization time, and the current simulation traction command of step i is used as the corresponding synchronization data. The current simulation step, entry type, synchronization time and synchronization data are combined to form an acquisition entry and saved. The acquisition entries saved this time are combined to form a corresponding first batch of entry sets and saved.
[0075] Step D2: Upon receiving the simulated braking force of step i synchronized by the braking simulation system 12, set the corresponding simulation step based on the current simulation step index i, and set the corresponding entry type to simulated braking force F. sim(br) The current time is used as the corresponding synchronization time, and the current simulation braking force in step i is used as the corresponding synchronization data. The current simulation step, entry type, synchronization time, and synchronization data are combined to form an acquisition entry and saved. The acquisition entries saved this time are combined to form a corresponding first batch of entry sets and saved.
[0076] Step D3: Upon receiving the simulated velocity, acceleration, and train position from the dynamic simulation system 13 in step i, generate and save three new acquisition entries based on the simulated velocity, acceleration, and train position in step i; and combine the three new acquisition entries saved this time to form a corresponding first batch of entries and save it.
[0077] Here, the simulation step for the three newly added data acquisition entries saved this time is the current simulation step index i, the synchronization time is the current time, and the entry type is simulation speed v, respectively. sim Simulated acceleration a sim and simulated train position s sim The synchronized data are the simulation speed. Simulated acceleration and simulated train position ;
[0078] Step D4: Upon receiving the i-th step feedback speed, torque, and force from the communication server 16, generate and save three new acquisition entries based on the i-th step feedback speed, torque, and force; and combine the three new acquisition entries saved this time to form a corresponding first batch of entries and save it.
[0079] Here, the simulation step for the three newly added data acquisition entries saved this time is the current simulation step index i, the synchronization time is the current time, and the entry type is feedback rotational speed ω, respectively. rea Feedback torque T rea and feedback force F rea The synchronized data are the feedback rotation speed. Feedback torque and feedback force .
[0080] Step D5: Upon receiving the simulated speed, feedback traction voltage, feedback traction current, feedback auxiliary voltage, feedback auxiliary current, main test traction power, and auxiliary test power synchronized by the communication server 16, generate and save seven i-step acquisition items based on the simulated speed, feedback traction voltage, feedback traction current, feedback auxiliary voltage, feedback auxiliary current, main test traction power, and auxiliary test power of the i-step; and form a corresponding first batch of items set from the seven i-step acquisition items saved this time and save them.
[0081] Here, the simulation step for the seven i-step acquisition entries saved this time is the current simulation step index i, the synchronization time is the current time, and the synchronization data are the simulation rotational speeds. Feedback traction voltage Feedback traction current Feedback test voltage Feedback test current Main test traction power , test power .
[0082] In another specific implementation of this invention, the data server 15 is specifically used to push the latest subscription data to the braking simulation system 12, the dynamics simulation system 13, and the communication server 16 based on the data subscription list: Each time a batch of entries is saved, it is used as the corresponding current entry set; and the current identifier set is composed of the unique type identifiers corresponding to each entry type in the current entry set; and a round of traversal is performed on all data subscription records in the data subscription list; during this round of traversal, the data subscription record being traversed is used as the current record; and the intersection of the data identifier set of the current record and the current identifier set is used as the current intersection; and if the current intersection is not empty, the system or server corresponding to the subscriber identifier of the current record is used as the current subscriber, and the sub-entry sets corresponding to the current intersection in the current entry set are pushed to the current subscriber; and the current entry set is deleted at the end of this round of traversal.
[0083] The communication server 16 generates a first message based on the subscribed i-th step simulation traction command and sends it to the communication workstation 32 via the first firewall 17 and the second firewall 31; and parses the i-th step feedback speed, torque and force from the returned second message to synchronize with the data server 15.
[0084] The communication server 16 is also used to generate a third message based on the subscribed i-th step simulation speed and send it to the communication workstation 32; and to parse the i-th step simulation speed, feedback traction voltage, feedback traction current, feedback auxiliary voltage, feedback auxiliary current, main test traction power and auxiliary test power from the returned fourth message and synchronize them with the data server 15.
[0085] Here, the simulated rotational speed, feedback traction voltage, feedback traction current, feedback auxiliary voltage, feedback auxiliary current, main test traction power, and auxiliary test power in step i include: simulated rotational speed. Feedback traction voltage Feedback traction current Feedback test voltage Feedback test current Main test traction power , test power .
[0086] Among them, simulated rotational speed This is the simulated rotational speed in step i.
[0087] Feedback traction voltage Feedback traction current and the main test traction power The i-th step consists of traction voltage, current, and power.
[0088] Feedback on test voltage Feedback test current and the power of the test companion The i-th step consists of the test voltage, current, and power.
[0089] In another specific implementation of this invention, the communication server 16 is specifically used to generate the first message according to the subscribed i-th step simulation traction instruction: The simulation traction instruction for step i is obtained from data server 15 via a data subscription mechanism; and the simulation traction instruction for step i is processed according to the preset byte stream encoding and decoding rules. The process involves: encoding the byte stream to obtain the corresponding traction instruction byte stream; using the traction instruction byte stream as the corresponding current plaintext byte stream; encrypting the current plaintext byte stream using a preset message encryption / decryption algorithm, and using the encrypted byte stream as the corresponding message data body; setting the corresponding message type to real-time data message and the corresponding message priority to the highest priority; incrementing the first historical transmission version cached locally on the server by 1, and using the incremented first historical transmission version as the corresponding message version; using the current time as the corresponding message time; concatenating the current message type, message priority, message version, message time, and message data body in sequence to form the current byte stream; calculating the checksum of the current byte stream using a preset checksum algorithm, and using the calculation result as the corresponding message checksum; forming the corresponding WebSocket layer data body using the current message type, message priority, message version, message time, message data body, and message checksum; and encapsulating the current WebSocket layer data body layer by layer upwards according to the four-layer nested message format of communication messages to obtain the corresponding first message.
[0090] Here, the byte stream encoding and decoding rules of this invention are used to convert a data string into a hexadecimal byte stream. These rules can be customized based on application requirements. For example, if the data items in the data string are character data, they are converted to the corresponding Unicode or ASCII encoding during the encoding stage, and the original characters are obtained by looking up a table during the decoding stage. If the data items in the data string are numeric data, they are converted to the corresponding BCD or hexadecimal encoding during the encoding stage, and the BCD or hexadecimal encoding is converted to the original decimal number during the decoding stage.
[0091] The message encryption / decryption algorithm in this embodiment of the invention is a pre-set encryption / decryption algorithm, and its algorithm type can be customized based on application requirements. For example, DES algorithm, AES algorithm, RSA algorithm, SM1 / 2 / 4 / 7 algorithm, etc.
[0092] The checksum algorithm in this embodiment of the invention is a pre-set checksum algorithm, and its algorithm type can be customized based on application requirements. For example, CRC algorithm, SHA series algorithms, MD series algorithms, SM3 algorithm, etc.
[0093] In another specific implementation of this invention, the communication server 16 is specifically used to generate a third message based on the subscribed i-th step simulation speed: The simulation speed of step i is obtained by means of a data subscription mechanism pushed by data server 15; the simulation speed of step i is calculated according to the byte stream encoding and decoding rules. The process involves: encoding the byte stream to obtain the corresponding speed byte stream; using the speed byte stream as the corresponding current plaintext byte stream; encrypting the current plaintext byte stream using a message encryption / decryption algorithm, and using the encrypted byte stream as the corresponding message data body; setting the corresponding message type to real-time data message and the corresponding message priority to the highest priority; incrementing the first historical transmission version cached locally on the server by 1, and using the incremented first historical transmission version as the corresponding message version; using the current time as the corresponding message time; concatenating the current message type, message priority, message version, message time, and message data body in sequence to form the current byte stream; calculating the checksum based on a checksum algorithm and using the result as the corresponding message checksum; forming the corresponding WebSocket layer data body using the current message type, message priority, message version, message time, message data body, and message checksum; and encapsulating the current WebSocket layer data body layer by layer upwards according to the four-layer nested message format of communication messages to obtain the corresponding third message.
[0094] In another specific implementation of this invention, the communication server 16 is specifically used to synchronize the i-th step feedback speed, torque, and force from the returned second message to the data server 15: Following the four-layer nested message format of communication messages, the second message sent back by the communication workstation 32 is parsed using a four-layer nested parsing method to obtain the corresponding WebSocket layer data body. The message type, message priority, message version, message time, message data body, and message checksum are extracted from the current WebSocket layer data body. The current byte stream is then constructed by sequentially concatenating the current message type, message priority, message version, message time, and message data body. Based on the checksum algorithm, the checksum of the current byte stream is calculated, and the result is used as the corresponding current comparison code. When the current comparison code and the current message checksum match, the current message version is greater than the first historical received version cached locally on the server, and the time interval between the current message time and the current time is less than a preset interval duration threshold, the first historical received version is updated to the current message version. The current message data body is then decrypted using a message encryption / decryption algorithm to obtain the corresponding plaintext byte stream. Finally, the current plaintext byte stream is decoded according to the byte stream encoding / decoding rules to obtain the corresponding feedback speed. Feedback torque and feedback force The corresponding i-th step feedback speed, torque and force are synchronized with the data server 15.
[0095] In processing received messages, this embodiment of the invention performs message verification based on a triple verification mechanism of check code, message version, and message time. Only when the check code is successfully verified, the message version is higher than the historical version, and the message time does not exceed the set time period will the current message be regarded as a legitimate message and continue to be decrypted and data items extracted.
[0096] In another specific implementation of this invention, the communication server 16 is specifically used to synchronize the simulated rotational speed, feedback traction voltage, feedback traction current, feedback auxiliary voltage, feedback auxiliary current, main test traction power, and auxiliary test power from the returned fourth message to the data server 15: Following the four-layer nested message format of communication messages, the fourth message sent back by the communication workstation 32 is parsed using a four-layer nested parsing method to obtain the corresponding WebSocket layer data body. The message type, message priority, message version, message time, message data body, and message checksum are extracted from the current WebSocket layer data body. The current byte stream is then constructed by sequentially concatenating the current message type, message priority, message version, message time, and message data body. Based on the checksum algorithm, the checksum of the current byte stream is calculated, and the result is used as the corresponding current comparison code. When the current comparison code matches the current message checksum, the current message version is greater than the first historical received version cached locally on the server, and the time interval between the current message time and the current time is less than the interval duration threshold, the first historical received version is updated to the current message version. The current message data body is then decrypted using a message encryption / decryption algorithm to obtain the corresponding plaintext byte stream. Finally, the current plaintext byte stream is decoded according to the byte stream encoding / decoding rules to obtain the corresponding simulated rotation speed. Feedback traction voltage Feedback traction current Feedback test voltage Feedback test current Main test traction power and the power of the test companion The corresponding simulation speed, feedback traction voltage, feedback traction current, feedback auxiliary voltage, feedback auxiliary current, main test traction power, and auxiliary test power of the i-th step, composed of decoded data, are synchronized to the data server 15.
[0097] It should be noted that the online transmission data of the test closed loop completed by the remote simulation platform 1 and the traction test bench 3 in this embodiment of the invention, which includes signal control, braking simulation, dynamics simulation, traction / accompanying test hardware drive, and hardware response data feedback, can be found by referring to... Figure 5 The schematic diagram of the test closed-loop transmission data provided in the embodiment of the present invention is used for intuitive understanding.
[0098] The digital model server 18 is used to build a corresponding digital model of the traction system consisting of the traction converter 35 and the traction motor 37; and after the simulation test, it identifies the model parameters of the digital model of the traction system based on the accumulated data of the data server 15.
[0099] In another specific implementation of the present invention, the digital model server 18 is specifically used to construct a corresponding traction system digital model for the traction system composed of the traction converter 35 and the traction motor 37: the joint model of the cascaded converter equivalent model and the asynchronous motor equivalent circuit model is used as the traction system digital model.
[0100] Here, the input of the traction system digital model in this embodiment of the invention includes mode M. ATO Level command λ, DC bus voltage U dc and the specified rotational speed ω assign The output includes three-phase voltage U abc Three-phase current I abc Output torque T out and output speed ω out .
[0101] The model parameters of the traction system digital model in this embodiment of the invention include the modulation coefficient k of the converter equivalent model. mod And the stator resistance R of the equivalent circuit model of the asynchronous motor s Rotor resistance R r Stator leakage inductance L sσ Rotor leakage inductance L rσ And excitation inductance L m .
[0102] The model expression of the traction system digital model in this embodiment of the invention is denoted as: , ; This is the parameter set for the digital model of the traction system. This is the model function for the digital model of the traction system.
[0103] In another specific implementation of this invention, the digital model server 18 is specifically used to identify the model parameters of the traction system digital model based on the accumulated data of the data server 15: Step E1: Assemble the first set of data collection entries belonging to the current traction system on the data server 15.
[0104] Step E2 involves identifying the index value range of simulation step index i in the first set, counting the total number of indices N0 in the current index value range, and sequentially encoding each simulation step index i in the current index value range in ascending order to obtain the corresponding code q, where 1≤q≤N0.
[0105] Step E3: Each code q is taken as the current code, and the next code q+1 after the current code is taken as the next code; the simulation step index i corresponding to the current code and the next code is recorded as the current index and the next index; and simulation steps in the first set that match the current index and whose entry type is simulation traction instruction C are selected. sim Simulated rotational speed ω sim Feedback traction voltage U abc(1) and feedback traction current I abc(1)The collected items form the corresponding second set, which is composed of simulation steps and the next index, and the item type is feedback rotational speed ω. rea and feedback torque T rea The collected items form the corresponding third set; and the items in the current second set that are of type simulation traction command C are... sim Synchronization data mode And level bit instructions As the corresponding mode And level bit instructions The item types are simulation rotational speed ω sim Feedback traction voltage U abc(1) and feedback traction current I abc(1) The synchronization data is used as the corresponding specified speed. Voltage label and current label ; and in the current third set, the item types are feedback rotation speed ω rea and feedback torque T rea The synchronized data serves as the corresponding speed tag. and torque label ; and the corresponding DC bus voltage Set to the DC bus voltage of the current traction system; and according to the mode corresponding to the current encoding. Level instructions DC bus voltage , specified speed Voltage label Current tag Speed label and torque label This forms a corresponding training data record.
[0106] Step E4, and the obtained N0 training data records form the corresponding model dataset.
[0107] Step E5, and construct the model objective function O based on the model dataset and model expression.
[0108] Here, the objective function O of the model in this embodiment of the invention is: , ; Parameter set The constraints are: , , , ; , , , These are preset weighting coefficients for voltage, current, speed, and torque. , , and To make a set of corresponding patterns Level instructions DC bus voltage and specified speed After inputting the digital model of the traction system, the model outputs a set of three-phase voltages, three-phase currents, output speeds, and output torques.
[0109] Step E6, satisfying the parameter set Under the constraints, the objective is to minimize the model objective function O, and the parameter set is... The optimal solution is used to obtain the corresponding parameter set. .
[0110] Step E7, set the current parameter set It is used as the model parameter set for the current traction system and saved.
[0111] (ii) Traction test bench 3: The communication workstation 32 is used to parse the i-th step simulation traction command from the first message and cache it locally on the workstation; send the command Q to the main test control system 33; and generate a second message based on the i-th step feedback speed, torque and force sent by the system, and send it back to the communication server 16.
[0112] The communication workstation 32 is also used to parse the i-th step simulation speed from the third message; and send the i-th step simulation traction command and the i-th step simulation speed to the main test control system 33; and generate a fourth message based on the i-th step simulation speed, feedback traction voltage, feedback traction current, feedback auxiliary test voltage, feedback auxiliary test current, main test traction power and auxiliary test power sent by the system, and send it back to the communication server 16.
[0113] In another specific implementation of this invention, the communication workstation 32 is specifically used when parsing the i-th step simulation traction instruction cached locally from the first message: Following the four-level nested message format of communication messages, the first message is parsed using a four-level nested parsing method to obtain the corresponding WebSocket layer data body. The message type, message priority, message version, message time, message data body, and message checksum are extracted from the current WebSocket layer data body. The current byte stream is then constructed by sequentially concatenating the current message type, message priority, message version, message time, and message data body. A checksum is calculated on the current byte stream based on the checksum algorithm, and the result is used as the corresponding current comparison code. When the current comparison code matches the current message checksum, the current message version is greater than the second historical received version cached locally on the workstation, and the time interval between the current message time and the current time is less than the interval duration threshold, the second historical received version is updated to the current message version. The current message data body is then decrypted using a message encryption / decryption algorithm to obtain the corresponding plaintext byte stream. Finally, the current plaintext byte stream is decoded according to the byte stream encoding / decoding rules to obtain the corresponding simulation traction command. And cache it locally on the workstation as the corresponding i-th step simulation traction command.
[0114] In another specific implementation of this invention, the communication workstation 32 is specifically used when parsing the simulation speed of the i-th step from the third message: Following the four-level nested message format of communication messages, the third message is parsed using a four-level nested parsing method to obtain the corresponding WebSocket layer data body. The message type, message priority, message version, message time, message data body, and message checksum are extracted from the current WebSocket layer data body. The current byte stream is then constructed by sequentially concatenating the current message type, priority, version, time, and data body. A checksum is calculated on the current byte stream based on the checksum algorithm, and the result is used as the corresponding current comparison code. When the current comparison code matches the current message checksum, the current message version is greater than the second historical received version cached locally on the workstation, and the time interval between the current message time and the current time is less than the interval duration threshold, the second historical received version is updated to the current message version. The current message data body is then decrypted using a message encryption / decryption algorithm to obtain the corresponding plaintext byte stream. Finally, the plaintext byte stream is decoded according to the byte stream encoding / decoding rules to obtain the corresponding simulation speed. And use it as the corresponding simulation speed for the i-th step.
[0115] In another specific implementation of this invention, the communication workstation 32 is specifically used to generate a second message based on the i-th step feedback speed, torque, and force sent by the system: According to the byte stream encoding and decoding rules, the feedback speed of the i-th step feedback speed, torque and force sent by the main test control system 33 is... Feedback torque and feedback force Byte stream encoding is performed separately to obtain the corresponding speed byte stream, torque byte stream, and force byte stream; these are then sequentially concatenated to obtain the current concatenated byte stream, with a preset delimiter byte inserted at the concatenation point; the current concatenated byte stream is encrypted using a message encryption / decryption algorithm, and the resulting ciphertext byte stream is used as the corresponding message data body; the message type is set to real-time data message, and the message priority is set to the highest priority; the second historical transmission version cached locally on the workstation is incremented by 1, and the incremented second historical transmission version is used as the data body. The current time is used as the corresponding message version; the current time is used as the corresponding message time; the current byte stream is composed of the current message type, message priority, message version, message time, and message data body in sequence; the current byte stream is calculated based on the checksum algorithm and the result is used as the corresponding message checksum; the current WebSocket layer data body is composed of the current message type, message priority, message version, message time, message data body, and message checksum; and the corresponding second message is obtained by encapsulating the current WebSocket layer data body layer by layer upwards according to the four-level nested message format of communication messages.
[0116] In another specific implementation of this invention, the communication workstation 32 is specifically used to generate a fourth message based on the simulated rotational speed, feedback traction voltage, feedback traction current, feedback auxiliary voltage, feedback auxiliary current, main test traction power, and auxiliary test power sent by the system in the i-th step: According to the byte stream encoding and decoding rules, the simulated speed, feedback traction voltage, feedback traction current, feedback auxiliary voltage, feedback auxiliary current, main test traction power, and auxiliary power of the i-th step sent by the main test control system 33 are compared with the simulated speed. Feedback traction voltage Feedback traction current Feedback test voltage Feedback test current Main test traction power and the power of the test companion Each byte stream is encoded to obtain seven corresponding byte streams; these seven byte streams are then sequentially concatenated to obtain the current concatenated byte stream, with a preset delimiter byte inserted at the concatenation point; the current concatenated byte stream is then encrypted using a message encryption / decryption algorithm, and the resulting ciphertext byte stream is used as the corresponding message data body; the corresponding message type is set to real-time data message, and the message priority is set to the highest priority; the second historical transmission version cached locally on the workstation is incremented by 1, and the incremented second historical transmission version is used as the corresponding message version; and The current time is used as the corresponding message time; the current byte stream is formed by sequentially concatenating the current message type, message priority, message version, message time, and message data body; the checksum is calculated on the current byte stream based on the checksum algorithm, and the calculation result is used as the corresponding message checksum; the corresponding WebSocket layer data body is formed by the current message type, message priority, message version, message time, message data body, and message checksum; and the corresponding fourth message is obtained by encapsulating the current WebSocket layer data body upwards layer by layer according to the four-level nested message format of communication messages.
[0117] The main test control system 33 is used to forward the instruction Q to the auxiliary test control system 34; and to send the i-th step feedback speed, torque and force sent back by the auxiliary test control system 34 to the communication workstation 32.
[0118] The main test control system 33 is also used to calculate the i-th step simulated speed and send it to the auxiliary test control system 34 when it receives the i-th step simulated traction command and the i-th step simulated speed; send the i-th step simulated traction command to the traction converter 35; obtain the i-th step traction voltage, current and power; and after receiving the i-th step auxiliary test voltage, current and power returned by the auxiliary test control system 34, generate the i-th step simulated speed, feedback traction voltage, feedback traction current, feedback auxiliary test voltage, feedback auxiliary test current, main test traction power and auxiliary test power and send them to the communication workstation 32.
[0119] It should be noted that, in this embodiment of the invention, the traction converter 35 receives the i-th step simulation traction command, i.e., the simulation traction command, sent by the main test control system 33. Then, based on the current simulation traction command... pattern And level bit instructions The DC bus voltage is inverted into a three-phase AC voltage and output to the corresponding traction motor 37. Simply put, the traction control unit (TCU) of the traction converter 35 determines the output based on the current simulated traction command. pattern And level bit instructions A PWM signal is generated, and the power devices of the traction converter 35 invert the DC bus voltage into a three-phase AC voltage according to the PWM signal through switching. The three-phase AC voltage is then output to the traction motor 37 from the three-phase voltage output terminal of the traction converter 35. The power devices mentioned here include, for example, Insulated Gate Bipolar Transistor (IGBT) modules.
[0120] In another specific implementation of this invention, the primary test control system 33 is specifically used to calculate the simulated rotational speed in the i-th step and send it to the secondary test control system 34: Based on preset train wheel rolling radius r, gearbox transmission ratio β, and simulation speed Calculate the simulated rotational speed And cache it; and set the simulated rotation speed The simulated rotational speed of step i is sent to the test control system 34; whereby... .
[0121] In another specific implementation of this invention, the main test control system 33 is specifically used to: when obtaining the traction voltage, current, and power in the i-th step: The three-phase AC voltage and current output from the traction converter 35 are obtained by voltage and current sensors installed at the converter output terminal, and used as the corresponding feedback traction voltage. and feedback traction current And based on the feedback traction voltage and feedback traction current Calculate the corresponding main test traction power And driven by feedback voltage Feedback traction current and the main test traction power The i-th step consists of traction voltage, current, and power.
[0122] The test control system 34 is used to obtain the i-th step feedback speed, torque and force through data acquisition and calculation when it receives the instruction Q, and then send it back to the main test control system 33.
[0123] The test control system 34 is also used to generate a PWM signal G to drive the test inverter 36 to do work on the test motor 39 when it receives the simulated speed of step i; and to obtain the test voltage, current and power of step i and send them back to the main test control system 33.
[0124] In another specific implementation of this invention, the test-support control system 34 is specifically used to send back the i-th step feedback speed, torque, and force to the main test control system 33 after data acquisition and calculation: The output speed and torque of the traction motor 37 are obtained by a torque sensor installed at the shaft end of the test motor 39, and used as the corresponding feedback speed. and feedback torque ; and based on feedback torque The feedback force is calculated based on the preset train wheel rolling radius r, gearbox transmission ratio β, and mechanical transmission efficiency γ. ; and the feedback speed Feedback torque and feedback force The i-th step feedback of speed, torque, and force is sent back to the main test control system 33; among which... .
[0125] In another specific implementation of this invention, the test control system 34 is specifically used to drive the test inverter 36 to perform work on the test motor 39 when generating the PWM signal G: Simulated rotational speed Given a rotational speed, with feedback rotational speed The speed difference between the given speed and the current speed is calculated; and a PID controller is used to adjust the target torque of the test motor 39 based on the current speed difference. Calculations are performed; and based on the field-oriented control algorithm, the target torque is determined. The excitation component and torque component of the stator current are calculated, and then a reference voltage vector is obtained through the current inner loop PI controller. The reference voltage vector is then processed using a space vector pulse width modulation (SVPWM) strategy to generate a corresponding 6-channel PWM drive sub-signal to form a PWM signal G. The 6-channel PWM drive sub-signal of the PWM signal G control the on / off timing of the six IGBT switches inside the test inverter 36. Through the on / off control of the six IGBT switches, the test inverter 36 is driven to invert the DC bus voltage into a three-phase AC voltage and output it to the corresponding test motor 39.
[0126] In another specific implementation of this invention, the accompanying test control system 34 is specifically used to, when receiving the accompanying test voltage, current, and power from the i-th step and sending them back to the main test control system 33: The three-phase AC voltage and current output of the test inverter 36 are obtained by voltage and current sensors installed at the inverter output terminal, and used as the corresponding feedback test voltage. and feedback test current And based on the feedback of the test voltage and feedback test current Calculate the corresponding test-taking power ; and the feedback test voltage Feedback test current and the power of the test companion The corresponding i-th step test voltage, current and power are sent back to the main test control system 33.
[0127] This invention provides a power hardware-in-the-loop (HIL) simulation test system for rail transit. As described above, the system includes a remote simulation platform and a traction test bench. The remote simulation platform is connected to the traction test bench via a dedicated Ethernet line. The remote simulation platform includes an ATO (Automatic Train Operation) simulation system, a braking simulation system, a dynamics simulation system, a network simulation system, a data server, a communication server, a first firewall, and a digital model server. The traction test bench includes a second firewall, a communication workstation, a main test control system, a secondary test control system, a traction converter, a secondary test frequency converter, a traction motor, a flywheel, and a secondary test motor. The network simulation system simulates the train's internal network. A secure transmission channel is established via a dedicated Ethernet line connecting the communication server, the first firewall, the second firewall, and the communication workstation. The ATO simulation system, braking simulation system, dynamics simulation system, main test control system, and secondary test control system work together to complete a closed-loop test sequence: signal control, braking simulation, dynamics simulation, traction / secondary test hardware drive, and hardware response data feedback. The data server records test samples throughout the entire test cycle. The digital model server optimizes the parameters of the digital model of the tested traction system based on the accumulated test samples. The system has at least the following technical effects or advantages: it can remotely deploy the simulation platform and traction test bench in different locations; it can protect the data of remotely transmitted messages through dedicated lines and customized encrypted message formats; it can provide security protection for the remotely deployed simulation platform and test bench based on firewalls; it can reduce the construction cost of the overall experimental system and shorten the experimental cycle; and it can complete simulation tests through digital models under the condition that physical experiments are not available.
[0128] The steps of the system methods or algorithms described in conjunction with the embodiments disclosed herein can be implemented in hardware, software modules executed by a processor, or a combination of both. The software modules can be located in random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disks, removable disks, CD-ROMs, or any other form of storage medium known in the art.
[0129] The specific embodiments described above further illustrate the purpose, technical solution, and beneficial effects of the present invention. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.
Claims
1. A power hardware-in-the-loop simulation test system for rail transit, characterized in that, The system includes: a remote simulation platform and a traction test bench; the remote simulation platform is connected to the traction test bench via a dedicated Ethernet line; the remote simulation platform includes an ATO simulation system, a braking simulation system, a dynamics simulation system, a network simulation system, a data server, a communication server, a first firewall, and a digital model server; the traction test bench includes a second firewall, a communication workstation, a main test control system, a secondary test control system, a traction converter, a secondary test frequency converter, a traction motor, a flywheel, and a secondary test motor; The ATO simulation system is used to generate the i-th simulated traction command in the simulation experiment and synchronize it to the data server; 1 ≤ simulation step index i; The braking simulation system is used to simulate the braking force of the i-th step according to the subscribed i-th step simulation traction command; and simultaneously sends the simulation results to the dynamics simulation system and synchronizes them to the data server. The dynamics simulation system is used to simulate the i-th step simulation speed, acceleration, and train position based on the subscribed i-th step feedback speed, torque, and force, as well as the i-th step simulation braking force; and simultaneously synchronizes the simulation results to the data server while sending them to the ATO simulation system. The network simulation system is used to simulate the real-time communication network inside the train and to forward data to the internal nodes of the network through the simulated network; the internal nodes of the network include the ATO simulation system, the braking simulation system, the dynamics simulation system, and the data server; The data server is used to store synchronous data in the form of collection entries; and to push the latest subscription data to the braking simulation system, the dynamics simulation system and the communication server based on the data subscription list; The communication server is used to generate a first message based on the subscribed i-th step simulation traction command, and send it to the communication workstation via the first firewall and the second firewall; and parse the i-th step feedback speed, torque and force from the returned second message and synchronize them with the data server. The communication server is also used to generate a third message based on the subscribed i-th step simulation speed and send it to the communication workstation; and to parse the i-th step simulation speed, feedback traction voltage, feedback traction current, feedback auxiliary voltage, feedback auxiliary current, main test traction power and auxiliary test power from the returned fourth message and synchronize them with the data server. The digital model server is used to construct a corresponding digital model of the traction system consisting of the traction converter and the traction motor; and after the simulation test, the model parameters of the digital model of the traction system are identified based on the accumulated data of the data server. The communication workstation is used to parse the i-th step simulation traction command from the first message and cache it locally on the workstation; send command Q to the main test control system; and generate the second message based on the i-th step feedback speed, torque and force sent by the system, and send it back to the communication server. The communication workstation is also used to parse the i-th step simulation speed from the third message; and send the i-th step simulation traction command and the i-th step simulation speed to the main test control system; and generate the fourth message based on the i-th step simulation speed, feedback traction voltage, feedback traction current, feedback auxiliary test voltage, feedback auxiliary test current, main test traction power and auxiliary test power sent by the system, and send it back to the communication server; The main test control system is used to forward the instruction Q to the auxiliary test control system; and to send the i-th step feedback speed, torque and force sent back by the auxiliary test control system to the communication workstation. The main test control system is also used to calculate the i-th step simulated rotational speed and send it to the auxiliary test control system when it receives the i-th step simulated traction command and the i-th step simulated speed; send the i-th step simulated traction command to the traction converter; obtain the i-th step traction voltage, current and power; and after receiving the i-th step auxiliary test voltage, current and power returned by the auxiliary test control system, generate the i-th step simulated rotational speed, feedback traction voltage, feedback traction current, feedback auxiliary test voltage, feedback auxiliary test current, main test traction power and auxiliary test power and send them to the communication workstation. The accompanying control system is used to obtain the i-th step feedback speed, torque and force through data acquisition and calculation when it receives the instruction Q, and then send it back to the main control system. The accompanying control system is also used to generate a PWM signal G to drive the accompanying frequency converter to do work on the accompanying motor when the simulated speed of step i is received; and to obtain the accompanying voltage, current and power of step i and send them back to the main control system.
2. The rail transit simulation test system based on power hardware-in-the-loop as described in claim 1, characterized in that, The first firewall is connected to the communication server and the second firewall respectively; the communication server is connected to the data server; the data server is connected to the digital model server; the network simulation system is connected to the ATO simulation system, the braking simulation system, the dynamics simulation system and the data server respectively; the dynamics simulation system is also connected to the ATO simulation system and the braking simulation system respectively. The second firewall is connected to the communication workstation; the communication workstation is connected to the main test control system; the main test control system is connected to both the auxiliary test control system and the traction converter; the auxiliary test control system is connected to the auxiliary frequency converter; the traction converter and the auxiliary frequency converter are connected to their respective traction motors and auxiliary motors via power cables; the traction motor, the flywheel, and the auxiliary motor are connected coaxially in series via couplings, or the traction motor, the auxiliary motor, and the flywheel are connected coaxially in series via couplings; the rotational speeds of the traction motor, the flywheel, and the auxiliary motor are kept consistent. The traction converter and the traction motor are actual train traction system components; The flywheel is used to simulate the inertial load during train operation; The test motor is used to simulate the resistance load during train operation; The traction converter and the test frequency converter are both connected to the same DC bus. Both the first firewall and the second firewall have ACL packet filtering, IDS intrusion detection, and IPS intrusion protection functions; The communication server and the communication workstation exchange messages in a server-client manner, with the communication server being the server and the communication workstation being the client. When the communication server or the communication workstation detects a connection loss or data transmission error, it automatically disconnects from the other workstation or server. When the communication workstation detects a connection loss with the communication server, it automatically initiates a reconnection to the communication server. The communication server and the communication workstation use TCP / IP as the transport layer protocol, and the Nagle algorithm is disabled at the TCP / IP protocol layer. The communication server and the communication workstation communicate using WebSocket as the application layer communication message transmission protocol and SFTP as the application layer file transfer protocol, over TCP / IP. The communication message format transmitted between the communication server and the communication workstation is a 4-layer nested structure, specifically: the first layer of the communication message includes the IP protocol header and the IP layer data body; The second nested structure of the IP layer data body includes the TCP protocol header and the TCP layer data body; the third nested structure of the TCP layer data body includes the WebSocket protocol header and the WebSocket layer data body; the fourth nested structure of the WebSocket layer data body is a custom data structure, including message type, message priority, message version, message time, message data body, and message checksum; wherein, the message type includes real-time data message, connection request message, connection feedback message, and other messages; the message priority includes n priorities from high to low, 2 ≤ total number of priorities n ≤ N, where N is the total number of message types; when the message data body is not empty, it is a ciphertext or plaintext byte stream; the message priority corresponding to the real-time data message is always the highest priority, and the corresponding message data body is a ciphertext byte stream; the original byte stream used to generate the message checksum is a byte stream sequentially concatenated from the message type, message priority, message version, message time, and message data body; The message formats of the first message, the second message, the third message, and the fourth message are all encapsulated and parsed according to the four-level nested structure format of the communication message.
3. The power hardware-in-the-loop-based rail transit simulation test system according to claim 2, characterized in that, When the length of the message data body of the communication message transmitted between the communication server and the communication workstation exceeds the preset data block length: On the sender and receiver sides, corresponding send buffers and receive buffers are created respectively. Both the send buffer and the receive buffer are divided into multiple data block sub-areas, and the data length of each data block sub-area is the length of the data block. The sender divides the message data body into multiple sub-data blocks according to the data block length; and stores each sub-data block in the corresponding data block sub-area in the sending buffer. Each sub-data block corresponds one-to-one with the data block sub-area in the sending buffer or the receiving buffer. Based on a multi-threading mechanism, multiple parallel message sending tasks are started on the sender side and multiple parallel message receiving tasks are started on the receiver side. Each message sending task is used to take an unsent sub-data block from the sending buffer, encapsulate it into a new communication message, send it to the receiver, and switch the sending status of the current data block sub-area from unsent to sent after sending. Each message receiving task is used to receive the sub-data blocks sent by the sender and write each received sub-data block into the corresponding data block sub-area in the receiving buffer. On the sending side, a mutex lock mechanism is used to control concurrent access to the data block sub-area of the sending buffer, so that each data block sub-area is not read by two or more message sending tasks at the same time; On the receiving side, a mutex lock mechanism is used to control concurrent access to the data block sub-area of the receiving buffer, so that each data block sub-area is not written to by two or more message receiving tasks at the same time. If, in addition to the real-time synchronization data contained in the first, second, third, and fourth messages, there are other synchronization data items between the communication server and the communication workstation, then a corresponding data scanning frequency f1 and a forced synchronization frequency f2 are set for each type of other synchronization data item, where f1 > f2. A corresponding synchronization initiator and synchronization receiver are selected from the communication server and the communication workstation for each type of other synchronization data item. The synchronization initiator of each other synchronization data item periodically scans for changes in the current data item according to the data scanning frequency f1. If a change is found, the synchronization initiator synchronizes the current data item to the synchronization receiver. The synchronization initiator of each other synchronization data item periodically synchronizes the current data item to the synchronization receiver according to the forced synchronization frequency f2. During each synchronization, it is identified whether the current data item is numerical data. If so, only the numerical change of the current data item is synchronized; otherwise, the entire data of the current data item is synchronized.
4. The rail transit simulation test system based on power hardware-in-the-loop as described in claim 1, characterized in that, The simulated traction command in step i is denoted as: Simulated Traction Command ; The simulated traction command Including patterns And level bit instructions The mode Including traction acceleration mode (PWR), coasting mode (COA), adaptive cruise control (ACC), braking mode (BRK), and emergency braking mode (EMG); the level commands. The value ranges from 0% to 100%. ; The simulated braking force in the i-th step is denoted as: Simulated Braking Force ; The i-th step feedback speed, torque, and force include: feedback speed Feedback torque and feedback force ; At that time, the feedback force It is seen as a feedback pull; At that time, the feedback force It is considered a feedback braking force; The simulated velocity, acceleration, and train position in the i-th step include: simulated velocity Simulated acceleration and simulated train position The simulation speed That is, the simulation speed in the i-th step; The simulated rotational speed, feedback traction voltage, feedback traction current, feedback test voltage, feedback test current, main test traction power, and test power in step i include: simulated rotational speed. Feedback traction voltage Feedback traction current Feedback test voltage Feedback test current Main test traction power , test power ; wherein, the simulated rotational speed That is, the simulated rotational speed in the i-th step; the feedback traction voltage The feedback traction current and the main test traction power The i-th step traction voltage, current, and power are composed of the following: the feedback test voltage. The feedback test current and the power of the accompanying test The test voltage, current, and power in step i are constituted; The data collection items include simulation steps, item type, synchronization time, and synchronization data; the simulation step is a simulation step index; the item type includes 15 categories, namely: simulation speed v sim Simulated acceleration a sim Simulated train position s sim Simulated braking force F sim(br) Simulated traction command C sim Simulated rotational speed ω sim Feedback speed ω rea Feedback torque T rea Feedback force F rea Feedback traction voltage U abc(1) Feedback traction current I abc(1) Feedback test voltage U abc(2) Feedback test current I abc(2) The main test traction power P1 and the auxiliary test power P2; the item type is feedback traction voltage U. abc(1) Feedback test voltage U abc(2) Each of the aforementioned entry data is a set of corresponding three-phase voltages U a U b U c Composition; the entry type is feedback traction current I abc(1) Feedback test current I abc(2) Each of the aforementioned entry data is a set of corresponding three-phase currents I. a I b I c composition; The data subscription list includes multiple data subscription records; each data subscription record includes a subscriber identifier and a data identifier set; the subscriber identifier is a unique identifier corresponding to the braking simulation system, the dynamics simulation system, or the communication server; the data identifier set, when not empty, consists of one or more data identifiers; each data identifier is a unique type identifier for a class of the item types; the data identifier set corresponding to the braking simulation system includes one data identifier, specifically the simulation traction command C. sim The entry type corresponds to the data identifier set of the dynamic simulation system, which includes three data identifiers, specifically the feedback rotational speed ω. rea Feedback torque T rea and feedback force F rea The three item types correspond to each other; the data identifier set corresponding to the communication server includes two data identifiers, specifically the simulation traction command C. sim And simulation speed v sim The two entry types mentioned correspond to each other.
5. The power hardware-in-the-loop-based rail transit simulation test system according to claim 4, characterized in that, The ATO simulation system is specifically used when generating the i-th step simulation traction command: Step 51: Extract the corresponding simulation velocity from the simulation velocity, acceleration, and train position output by the dynamic simulation system in the (i-1)th step of the simulation. Simulated acceleration and simulated train position ; Step 52, based on the simulation speed The simulated acceleration and the simulated train position Estimate current vehicle speed and current train position ; and the current train position Input the current line position into the preset line speed query function to obtain the corresponding line speed. ; in, , ; △t is the preset simulation step interval duration; The line speed query function corresponds to a train running line; the line speed query function is used to identify the target speed corresponding to the current line position based on the input line position and output the identification result as the corresponding line speed. Step 53, calculate speed error ; and use a PID controller based on the speed error Calculate the corresponding target acceleration ; and the target acceleration The acceleration requirement value is obtained by performing a normalization transformation. ; in, like This indicates that there is a demand for traction. like This indicates the existence of a need for lazy driving. like This indicates that there is a braking requirement; Step 54, based on the acceleration requirement value Set the mode and the level bit instruction ; Wherein, the mode The setting rules are as follows: , ; , , , Four preset acceleration requirement thresholds; The level instruction The setting rules are as follows: ; Step 55, from the obtained pattern and the level bit instruction The corresponding simulated traction command ; and the simulated traction command This corresponds to the i-th step of the simulation traction command.
6. The power hardware-in-the-loop-based rail transit simulation test system according to claim 4, characterized in that, The braking simulation system is specifically used when simulating the braking force in the i-th step according to the subscribed i-th step simulation traction command: Step 61: Obtain the simulation traction command pushed by the data server through the data subscription mechanism. ; and based on the simulated traction command The level bit instruction and the preset maximum braking acceleration Estimate the corresponding braking acceleration ; , , ; Where w1 is a preset coefficient factor, 0 < w1 < 1, The preset static level coefficient, ; Step 62, based on the simulated traction command The mode Set brake label B; ; Step 63, based on the braking tag B and the level command and the braking acceleration Estimate the simulated braking force And the simulated braking force Cache the simulated braking force As the corresponding simulated braking force in the i-th step; , ; Where w5 is a preset equivalence factor, M static For the preset static mass of the train, w5×M static The equivalent mass of the train.
7. The rail transit simulation test system based on power hardware-in-the-loop as described in claim 4, characterized in that, The dynamics simulation system is specifically used when simulating the i-th step simulation speed, acceleration, and train position based on the subscribed i-th step feedback speed, torque, and force, as well as the i-th step simulation braking force: Step 71: Obtain the feedback speed, torque, and force pushed by the data server in step i through a data subscription mechanism; and extract the corresponding feedback speed from it. The feedback torque The feedback force ; and extract the corresponding simulation speed from the simulation speed, acceleration, and train position of the (i-1)th step cached by the system. Simulated acceleration and simulated train position ; and the position of the simulated train Inputting the preset line slope and curvature into the current line position, a query function is used to obtain the corresponding line slope. Line curvature ; The line gradient and curvature query function corresponds to a train running line; the line gradient and curvature query function is used to identify the gradient and curvature corresponding to the current line position based on the input line position and output the identification result as the corresponding line gradient and line curvature. Step 72, based on the simulation speed Estimate basic operating resistance ; in, , ; w2 is the preset mechanical resistance constant, w3 is the preset linear resistance constant, and w4 is the preset quadratic resistance constant. Step 73, based on the slope of the line Estimate ramp resistance ; ; Among them, M static Here is the preset static mass of the train, and g is the acceleration due to gravity; when going uphill, , When going downhill, , ; Step 74, based on the curvature of the line Estimating cornering resistance ; , ; Where w6 is the preset curve additional resistance coefficient; Step 75, based on the feedback force The basic operating resistance The aforementioned ramp resistance The aforementioned curve resistance and the simulated braking force Estimating the resultant force ; in, ; Step 76, based on the resultant force Estimate the corresponding simulation speed The simulated acceleration and the simulated train position and locally on the system , and Cache is performed, and the simulation speed is determined. The simulated acceleration and the simulated train position The corresponding simulated velocity, acceleration, and train position in the i-th step are formed; in, , , ; w5 is a preset equivalence factor, w5×M static The equivalent mass of the train is Δt, and the preset simulation step interval is Δt.
8. The rail transit simulation test system based on power hardware-in-the-loop as described in claim 4, characterized in that, The main test control system is specifically used when calculating the simulated speed in the i-th step and sending it to the auxiliary test control system: based on the preset train wheel rolling radius r, gearbox transmission ratio β, and the simulated speed. Calculate the simulated rotational speed And cache it; and the simulated rotational speed The simulated rotational speed in the i-th step is sent to the test control system; wherein... ; Specifically, when the traction voltage, current, and power are obtained in the i-th step, the main control system acquires the three-phase AC voltage and current output by the traction converter as the corresponding feedback traction voltage through voltage and current sensors installed at the converter output terminal. and the feedback traction current And according to the feedback traction voltage and the feedback traction current Calculate the corresponding main test traction power ; and by the feedback traction voltage The feedback traction current and the main test traction power The i-th step consists of the traction voltage, current, and power.
9. The power hardware-in-the-loop-based rail transit simulation test system according to claim 4, characterized in that, Specifically, when the feedback speed, torque, and force obtained through data acquisition and calculation in the i-th step are sent back to the main test control system, the accompanying test control system uses a torque sensor installed at the shaft end of the accompanying test motor to acquire the output speed and torque of the traction motor as the corresponding feedback speed. and the feedback torque ; and based on the feedback torque The feedback force is calculated based on the preset train wheel rolling radius r, the gearbox transmission ratio β, and the mechanical transmission efficiency γ. ; and by the feedback rotation speed The feedback torque and the feedback force The i-th step feedback of speed, torque, and force is sent back to the main test control system; wherein, ; The accompanying control system is specifically used to, when the generated PWM signal G drives the accompanying frequency converter to perform work on the accompanying motor, at the simulated speed... Given a rotational speed, with the feedback rotational speed Given the current rotational speed, the speed difference between the given rotational speed and the current rotational speed is calculated; and a PID controller is used to adjust the target torque of the test motor based on the current speed difference. Calculations are performed; and based on the field-oriented control algorithm, according to the target torque... The excitation component and torque component of the stator current are calculated, and a reference voltage vector is obtained through a current inner-loop PI controller. A space vector pulse width modulation strategy is used to generate six corresponding PWM drive sub-signals to form the PWM signal G. The six PWM drive sub-signals of the PWM signal G control the on / off timing of the six IGBT switches inside the test inverter. Through the on / off control of the six IGBT switches, the test inverter is driven to invert the DC bus voltage into a three-phase AC voltage and output it to the corresponding test motor. Specifically, when the i-th step test voltage, current, and power are sent back to the main test control system, the accompanying test control system uses voltage and current sensors installed at the inverter output terminal to acquire the three-phase AC voltage and current output by the accompanying inverter as the corresponding feedback test voltage. and the feedback test current And based on the feedback test voltage and the feedback test current Calculate the corresponding test-taking power ; and by the feedback test voltage The feedback test current and the power of the accompanying test The corresponding test voltage, current, and power of step i are sent back to the main test control system.
10. The power hardware-in-the-loop-based rail transit simulation test system according to claim 4, characterized in that, The digital model server is specifically used when constructing a corresponding digital model of the traction system for the traction system consisting of the traction converter and the traction motor: The combined model of the cascaded equivalent model of the converter and the equivalent circuit model of the asynchronous motor is used as the digital model of the traction system; the input of the digital model of the traction system includes mode M. ATO Level command λ, DC bus voltage U dc and the specified rotational speed ω assign The output includes three-phase voltage U abc Three-phase current I abc Output torque T out and output speed ω out The model parameters of the traction system digital model include the modulation coefficient k of the converter equivalent model. mod and the stator resistance R of the equivalent circuit model of the asynchronous motor s Rotor resistance R r Stator leakage inductance L sσ Rotor leakage inductance L rσ And excitation inductance L m ; The model expression of the digital model of the traction system is denoted as: , ; This is the parameter set of the digital model of the traction system. This is the model function of the digital model of the traction system; The digital model server is specifically used when identifying the model parameters of the traction system digital model based on the accumulated data from the data server: Step 101: Assemble the collection entries belonging to the current traction system on the data server into a first set; Step 102: Identify the index value range of simulation step index i in the first set, count the total number of indexes N0 in the current index value range, and sequentially encode each simulation step index i in the current index value range in ascending order to obtain the corresponding code q, 1≤q≤N0; Step 103: Each of the given codes q is taken as the current code, and the next code q+1 after the current code is taken as the next code; the simulation step index i corresponding to the current code and the next code is recorded as the current index and the next index; and the simulation steps in the first set that match the current index and whose entry types are simulation traction instructions C are... sim Simulated rotational speed ω sim Feedback traction voltage U abc(1) and feedback traction current I abc(1) The collected items form a corresponding second set, which is formed by matching the simulation step with the next index and the item type being feedback rotational speed ω. rea and feedback torque T rea The collected items form a corresponding third set; and in the current second set, the item type is simulation traction command C. sim The mode of the synchronized data and the level bit instruction As the corresponding mode And level bit instructions The entry types are respectively the simulated rotational speed ω sim Feedback traction voltage U abc(1) and feedback traction current I abc(1) The synchronization data is used as the corresponding specified rotational speed. Voltage label and current label ; and in the current third set, the entry types are feedback rotational speed ω rea and feedback torque T rea The synchronization data serves as the corresponding speed tag. and torque label ; and the corresponding DC bus voltage Set as the DC bus voltage of the current traction system; and determined by the mode corresponding to the current code. The level bit instruction The DC bus voltage The specified rotational speed The voltage tag The current tag The speed tag and the torque tag This forms a corresponding training data record; Step 104, and the obtained N0 training data records form the corresponding model dataset; Step 105, and construct the model objective function O based on the model dataset and the model expression; The objective function O of the model is: , ; Parameter set The constraints are: , , , ; , , , These are preset weighting coefficients for voltage, current, speed, and torque. , , and To make a set of corresponding patterns The level bit instruction The DC bus voltage and the specified rotational speed After inputting the digital model of the traction system, the model outputs a set of three-phase voltages, three-phase currents, output speeds, and output torques. Step 106, satisfying the parameter set Under the constraints, the objective of minimizing the model objective function O is to apply the parameter set... The optimal solution is used to obtain the corresponding parameter set. ; Step 107, set the current parameter set This is used as the model parameter set for the current traction system and saved.
