The invention discloses a portable car coupler reconnection
simulation test device and a control method, a main control module in the device is internally provided with
control logic in a test process, and the main control module comprises a priority hierarchical scheduling mechanism, a dual
mutual exclusion lock mechanism and a state real-
time synchronization mechanism. The control method comprises the following steps: configuring a GPIO (
General Purpose Input / Output) interface, UART communication and a
mutual exclusion lock of the main control module; triggering an operation instruction based on the instruction interaction module, and performing priority division on the triggered operation instruction; based on the double
interlocking safety state, performing
mutual exclusion judgment on an operation instruction being executed; constructing a real state
mirror image, and synchronously updating the
physical control point and the
virtual control point which are subjected to state change; input acquisition and output control of reconnection
train level signals are executed based on the acquisition output module, and state information display is synchronously performed on the HMI
serial port screen module. The device is portable, easy to use and low in operation threshold, and the efficient and safe debugging requirements of the
rail transit vehicle are comprehensively met.