Control method, device and equipment of train gating redundancy system and storage medium
By receiving signals from relays and main gaters and using mathematical models to determine the target main gaters, the problem that the control unit in the prior art needs to process the status information of multiple main gaters is solved, reducing the degree of logical complexity and development costs. , improves system efficiency and reliability.
Patent Information
- Application Number
- CN202411230664.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-03
- Publication Date
- 2024-11-12
AI Technical Summary
In the control method of the existing train gated redundant system, the control unit needs to communicate with multiple main gated controllers at the same time and process the status information of multiple main gated controllers, resulting in high logical complexity and high development costs.
By receiving the contact opening and closing status sent by the relay and the self-test signal of the main gate controller, the preset mathematical model is used to calculate the lowest address bit of the main gate controller, thereby determining the target main gate controller. The control unit only passes the target main gate controller through the target main The door control and condition monitoring reduce the logical complexity of the control unit.
The control unit does not need to poll multiple main gates, but only needs to set the address of the target main gate, which reduces the logical complexity and development costs, and improves the efficiency and reliability of the system.
Smart Images

Figure CN118938642A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of rail transit technology, and in particular to a control method, device, equipment and storage medium for a train door control redundancy system. Background Art
[0002] In a rail transit vehicle, each carriage is provided with a door controller for controlling the door of the rail transit vehicle. A carriage can usually be provided with multiple main door controllers to switch between the multiple main door controllers.
[0003] In the prior art, a control unit is connected to multiple master door controllers, and the multiple master door controllers respectively send their own status information to the control unit. The control unit processes the status information of the multiple master door controllers, selects a current master door controller, and controls the vehicle door through the current master door controller.
[0004] However, in the prior art, the control unit needs to communicate with multiple master door controllers at the same time and process status information of the multiple master door controllers at the same time, which increases the logic complexity and development cost of the control unit. Summary of the invention
[0005] The present application provides a control method, device, equipment and storage medium for a train gate control redundant system, which solves the problems of high logic complexity and high development cost of the control unit in the existing control method for the train gate control redundant system.
[0006] In a first aspect, the present application provides a control method for a train door control redundant system, comprising: receiving the opening and closing state of the first contact sent by the relay; generating a self-test signal of the first master door controller through a communication function self-test, the self-test signal of the first master door controller being used to indicate whether the communication function of the first master door controller is abnormal; receiving a self-test signal of the second master door controller, the self-test signal of the second master door controller being used to indicate whether the communication function of the second master door controller is abnormal; inputting the opening and closing state of the first contact, the self-test signal of the first master door controller and the self-test signal of the second master door controller into a preset mathematical model to obtain the lowest bit of the address of the first master door controller and the lowest bit of the address of the second master door controller; determining a target master door controller from the first master door controller and the second master door controller according to the lowest bit of the address of the first master door controller and the lowest bit of the address of the second master door controller, so that the control unit performs door control and status monitoring through the target master door controller.
[0007] In one possible design, the opening and closing state of the first contact, the self-test signal of the first master gate controller, and the self-test signal of the second master gate controller are input into a preset mathematical model to obtain the lowest address bit of the first master gate controller and the lowest address bit of the second master gate controller, including: obtaining the opening and closing state of the second contact according to the opening and closing state of the first contact; inputting the opening and closing state of the first contact, the self-test signal of the first master gate controller, and the self-test signal of the second master gate controller into a preset mathematical model to obtain the lowest address bit of the first master gate controller; inputting the opening and closing state of the second contact, the self-test signal of the second master gate controller, and the self-test signal of the first master gate controller into a preset mathematical model to obtain the lowest address bit of the second master gate controller.
[0008] In a possible design, the opening and closing state of the first contact, the self-test signal of the first master gate controller, and the self-test signal of the second master gate controller are input into a preset mathematical model to obtain the lowest bit of the address of the first master gate controller, including: when the opening and closing state of the first contact is in a disconnected state, the self-test signal of the first master gate controller is abnormal, and the self-test signal of the second master gate controller is abnormal, the lowest bit of the address of the first master gate controller is the lowest bit of the second address; when the opening and closing state of the first contact is in a disconnected state, the self-test signal of the first master gate controller is abnormal, and the self-test signal of the second master gate controller is normal, the lowest bit of the address of the first master gate controller is the lowest bit of the second address; when the opening and closing state of the first contact is in a disconnected state, the self-test signal of the first master gate controller is normal, and the self-test signal of the second master gate controller is abnormal, the lowest bit of the address of the first master gate controller is the lowest bit of the second address; when the opening and closing state of the first contact is in a disconnected state, the self-test signal of the first master gate controller is normal, and the self-test signal of the second master gate controller is abnormal, the lowest bit of the address of the first master gate controller is the lowest bit of the second address; When the self-test signal of the second master gate controller is normal, the lowest bit of the address of the first master gate controller is the lowest bit of the first address; when the opening and closing state of the first contact is a closed state, the self-test signal of the first master gate controller is abnormal, and the self-test signal of the second master gate controller is abnormal, the lowest bit of the address of the first master gate controller is the lowest bit of the second address; when the opening and closing state of the first contact is a closed state, the self-test signal of the first master gate controller is abnormal, and the self-test signal of the second master gate controller is normal, the lowest bit of the address of the first master gate controller is the lowest bit of the second address; when the opening and closing state of the first contact is a closed state, the self-test signal of the first master gate controller is normal, and the self-test signal of the second master gate controller is abnormal, the lowest bit of the address of the first master gate controller is the lowest bit of the first address; when the opening and closing state of the first contact is a closed state, the self-test signal of the first master gate controller is normal, and the self-test signal of the second master gate controller is abnormal, the lowest bit of the address of the first master gate controller is the lowest bit of the first address.
[0009] In a possible design, the opening and closing state of the second contact, the self-test signal of the second main gate controller, and the self-test signal of the first main gate controller are input into a preset mathematical model to obtain the lowest bit of the address of the second main gate controller, including: when the opening and closing state of the second contact is a closed state, the self-test signal of the second main gate controller is normal, and the self-test signal of the first main gate controller is normal, the lowest bit of the address of the second main gate controller is the lowest bit of the first address; when the opening and closing state of the second contact is a closed state, the self-test signal of the second main gate controller is abnormal, and the self-test signal of the first main gate controller is normal, the lowest bit of the address of the second main gate controller is the lowest bit of the second address; when the opening and closing state of the second contact is a closed state, the self-test signal of the second main gate controller is normal, and the self-test signal of the first main gate controller is abnormal, the lowest bit of the address of the second main gate controller is the lowest bit of the first address; when the opening and closing state of the second contact is a closed state, the self-test signal of the second main gate controller is normal, and the self-test signal of the first main gate controller is abnormal, the lowest bit of the address of the second main gate controller is the lowest bit of the first address; when the opening and closing state of the second contact is a closed state, the self-test signal of the second main gate controller is abnormal, and the self-test signal of the first main gate controller is abnormal When the self-test signal of the master gate controller is abnormal, the lowest bit of the address of the second master gate controller is the lowest bit of the second address; when the opening and closing state of the second contact is in the disconnected state, the self-test signal of the second master gate controller is normal, and the self-test signal of the first master gate controller is normal, the lowest bit of the address of the second master gate controller is the lowest bit of the first address; when the opening and closing state of the second contact is in the disconnected state, the self-test signal of the second master gate controller is abnormal, and the self-test signal of the first master gate controller is normal, the lowest bit of the address of the second master gate controller is the lowest bit of the second address; when the opening and closing state of the second contact is in the disconnected state, the self-test signal of the second master gate controller is normal, and the self-test signal of the first master gate controller is abnormal, the lowest bit of the address of the second master gate controller is the lowest bit of the second address; when the opening and closing state of the second contact is in the disconnected state, the self-test signal of the second master gate controller is abnormal, and the self-test signal of the first master gate controller is abnormal, the lowest bit of the address of the second master gate controller is the lowest bit of the second address.
[0010] In a possible design, the target master gate controller is determined from the first master gate controller and the second master gate controller according to the lowest bit of the address of the first master gate controller and the lowest bit of the address of the second master gate controller, so that the control unit performs door control and status monitoring through the target master gate controller, including: when the lowest bit of the address of the first master gate controller is the lowest bit of the first address, and the lowest bit of the address of the second master gate controller is the lowest bit of the second address, the first master gate controller is the target master gate controller, and the second master gate controller is a non-target master gate controller; when the lowest bit of the address of the first master gate controller is the lowest bit of the second address, and the lowest bit of the address of the second master gate controller is the lowest bit of the first address, the second master gate controller is the target master gate controller, and the first master gate controller is the non-target master gate controller; when the lowest bit of the address of the first master gate controller is the lowest bit of the second address, and the lowest bit of the address of the second master gate controller is the lowest bit of the second address, the first master gate controller and the second master gate controller are both the non-target master gate controllers.
[0011] In a second aspect, the present application provides a control device for a train door control redundant system, comprising: a first receiving module, used to receive the opening and closing state of the first contact sent by the relay; a self-test module, used to generate a self-test signal of the first master door controller through a communication function self-test, the self-test signal of the first master door controller is used to indicate whether the communication function of the first master door controller is abnormal; a second receiving module, used to receive the self-test signal of the second master door controller, the self-test signal of the second master door controller is used to indicate whether the communication function of the second master door controller is abnormal; a calculation module, used to input the opening and closing state of the first contact, the self-test signal of the first master door controller and the self-test signal of the second master door controller into a preset mathematical model to obtain the lowest address bit of the first master door controller and the lowest address bit of the second master door controller; a determination module, used to determine the target master door controller from the first master door controller and the second master door controller according to the lowest address bit of the first master door controller and the lowest address bit of the second master door controller, so that the control unit performs door control and status monitoring through the target master door controller.
[0012] In one possible design, the calculation module includes: a first determination unit, used to obtain the opening and closing state of the second contact according to the opening and closing state of the first contact; a first calculation unit, used to input the opening and closing state of the first contact, the self-test signal of the first master gate controller, and the self-test signal of the second master gate controller into a preset mathematical model to obtain the lowest bit of the address of the first master gate controller; a second calculation unit, used to input the opening and closing state of the second contact, the self-test signal of the second master gate controller, and the self-test signal of the first master gate controller into a preset mathematical model to obtain the lowest bit of the address of the second master gate controller.
[0013] In one possible design, the first calculation unit includes: a first calculation component, which is used to, when the opening and closing state of the first contact is in an open state, the self-test signal of the first master gate controller is abnormal, and the self-test signal of the second master gate controller is abnormal, the lowest bit of the address of the first master gate controller is the lowest bit of the second address; a second calculation component, which is used to, when the opening and closing state of the first contact is in an open state, the self-test signal of the first master gate controller is abnormal, and the self-test signal of the second master gate controller is normal, the lowest bit of the address of the first master gate controller is the lowest bit of the second address; a third calculation component, which is used to, when the opening and closing state of the first contact is in an open state, the self-test signal of the first master gate controller is normal, and the self-test signal of the second master gate controller is abnormal, the lowest bit of the address of the first master gate controller is the lowest bit of the second address; a fourth calculation component, which is used to, when the opening and closing state of the first contact is in an open state, the self-test signal of the first master gate controller is normal, and the self-test signal of the second master gate controller is normal, the lowest bit of the address of the first master gate controller is the lowest bit of the second address is the lowest bit of the first address; a fifth calculation component, used for when the opening and closing state of the first contact is a closed state, the self-test signal of the first master gate controller is abnormal, and the self-test signal of the second master gate controller is abnormal, the lowest bit of the address of the first master gate controller is the lowest bit of the second address; a sixth calculation component, used for when the opening and closing state of the first contact is a closed state, the self-test signal of the first master gate controller is abnormal, and the self-test signal of the second master gate controller is normal, the lowest bit of the address of the first master gate controller is the lowest bit of the second address; a seventh calculation component, used for when the opening and closing state of the first contact is a closed state, the self-test signal of the first master gate controller is normal, and the self-test signal of the second master gate controller is abnormal, the lowest bit of the address of the first master gate controller is the lowest bit of the first address; an eighth calculation component, used for when the opening and closing state of the first contact is a closed state, the self-test signal of the first master gate controller is normal, and the self-test signal of the second master gate controller is normal, the lowest bit of the address of the first master gate controller is the lowest bit of the first address.
[0014] In one possible design, the second calculation unit includes: a ninth calculation component, which is used for, when the opening and closing state of the second contact is a closed state, the self-test signal of the second main gate controller is normal, and the self-test signal of the first main gate controller is normal, the lowest bit of the address of the second main gate controller is the lowest bit of the first address; a tenth calculation component, which is used for, when the opening and closing state of the second contact is a closed state, the self-test signal of the second main gate controller is abnormal, and the self-test signal of the first main gate controller is normal, the lowest bit of the address of the second main gate controller is the lowest bit of the second address; an eleventh calculation component, which is used for, when the opening and closing state of the second contact is a closed state, the self-test signal of the second main gate controller is normal, and the self-test signal of the first main gate controller is abnormal, the lowest bit of the address of the second main gate controller is the lowest bit of the first address; a twelfth calculation component, which is used for, when the opening and closing state of the second contact is a closed state, the self-test signal of the second main gate controller is abnormal, and the self-test signal of the first main gate controller is abnormal, the lowest bit of the address of the second main gate controller is the lowest bit of the first address the lowest bit of the second address; a thirteenth calculation component, which is used for when the opening and closing state of the second contact is the disconnected state, the self-test signal of the second main gate controller is normal, and the self-test signal of the first main gate controller is normal, the lowest bit of the address of the second main gate controller is the lowest bit of the first address; a fourteenth calculation component, which is used for when the opening and closing state of the second contact is the disconnected state, the self-test signal of the second main gate controller is abnormal, and the self-test signal of the first main gate controller is normal, the lowest bit of the address of the second main gate controller is the lowest bit of the second address; a fifteenth calculation component, which is used for when the opening and closing state of the second contact is the disconnected state, the self-test signal of the second main gate controller is normal, and the self-test signal of the first main gate controller is abnormal, the lowest bit of the address of the second main gate controller is the lowest bit of the second address; a sixteenth calculation component, which is used for when the opening and closing state of the second contact is the disconnected state, the self-test signal of the second main gate controller is abnormal, and the self-test signal of the first main gate controller is abnormal, the lowest bit of the address of the second main gate controller is the lowest bit of the second address.
[0015] In one possible design, the determination module includes: a second determination unit, which is used to determine that when the lowest bit of the address of the first master gate controller is the lowest bit of the first address and the lowest bit of the address of the second master gate controller is the lowest bit of the second address, the first master gate controller is the target master gate controller and the second master gate controller is the non-target master gate controller; a third determination unit, which is used to determine that when the lowest bit of the address of the first master gate controller is the lowest bit of the second address and the lowest bit of the address of the second master gate controller is the lowest bit of the first address, the second master gate controller is the target master gate controller and the first master gate controller is the non-target master gate controller; a fourth determination unit, which is used to determine that when the lowest bit of the address of the first master gate controller is the lowest bit of the second address and the lowest bit of the address of the second master gate controller is the lowest bit of the second address, the first master gate controller and the second master gate controller are both the non-target master gate controllers.
[0016] In a third aspect, the present application provides an electronic device, which can be the aforementioned first main door controller, comprising: at least one processor and a memory; the memory stores computer execution instructions; the at least one processor executes the computer execution instructions stored in the memory, so that the at least one processor executes the control method of the train door control redundant system as described in the first aspect.
[0017] In a fourth aspect, the present application provides a computer storage medium, wherein the computer storage medium stores computer execution instructions. When a processor executes the computer execution instructions, the control method of the train door control redundant system as described in the first aspect is implemented.
[0018] In a fifth aspect, the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the control method of the train door control redundancy system as described in the first aspect.
[0019] The present application provides a control method, device, equipment and storage medium for a train door control redundancy system. According to the lowest bit of the address of the first master door controller and the lowest bit of the address of the second master door controller, a target master door controller is determined from the first master door controller and the second master door controller. The control unit performs door control and status monitoring through the target master door controller. The control unit does not need to poll multiple master door controllers, but only needs to set the address of the target master door controller, thereby reducing the logical complexity of the control unit. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0021] Figure 1 It is a schematic diagram of an application scenario of a control method for a train door control redundancy system provided in an embodiment of the present application;
[0022] Figure 2 A flow chart of a control method for a train door control redundancy system provided by one embodiment of the present application;
[0023] Figure 3 A flow chart of a control method for a train door control redundancy system provided by another embodiment of the present application;
[0024] Figure 4 A flow chart of a control method for a train door control redundancy system provided by another embodiment of the present application;
[0025] Figure 5 A flow chart of a control method for a train door control redundancy system provided by another embodiment of the present application;
[0026] Figure 6 A flow chart of a control method for a train door control redundancy system provided by another embodiment of the present application;
[0027] Figure 7 A schematic diagram of the structure of a control device for a train door control redundancy system provided by one embodiment of the present application;
[0028] Figure 8 A schematic diagram of the hardware structure of an electronic device provided for one embodiment of the present application. DETAILED DESCRIPTION
[0029] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0030] The present disclosure is specifically used in rail transit scenarios and can be used to switch the working state of vehicle door controllers. In the existing control scheme of the train door control redundancy system, the control unit needs to poll multiple master door controllers in real time, and set a target master door controller according to the status information of the multiple master door controllers, and control the doors through the master door controller. However, the real-time monitoring of the status information of the master door controller in the control scheme of this train door control redundancy system and the mechanism of setting the target master door controller according to the status information of multiple master door controllers increase the logic complexity and development cost of the control unit.
[0031] In order to solve the above technical problems, the embodiment of the present application proposes the following technical solutions: the first master door controller is connected to the first contact of the relay, the second master door controller is connected to the second contact of the relay, and the target master door controller is determined from the first master door controller and the second master door controller according to the lowest address bit of the first master door controller and the lowest address bit of the second master door controller, and the control unit controls the door and monitors the state through the target master door controller. The control unit does not need to poll multiple master door controllers, but only needs to set the address of the target master door controller, which reduces the logic complexity of the control unit.
[0032] Figure 1 Schematic diagram of the application scenario of the control method of the train door control redundancy system provided in the embodiment of the present application. Figure 1 As shown, the first contact of the relay 101 is connected to the first master gate controller 103, and the second contact of the relay 101 is connected to the second master gate controller 104. The first master gate controller 103 receives the opening and closing signal ACTIVE_EN of the first contact sent by the relay 101, receives the self-test signal of the second master gate controller 104 through the DO port, and generates the self-test signal of the first master gate controller 103 through the communication function self-test. The first master gate controller 103 calculates the lowest bit of the address of the first master gate controller 103 according to the opening and closing signal of the first contact, the self-test signal of the second master gate controller 104 and the self-test signal of the first master gate controller 103, and determines the target master gate controller according to the lowest bit of the address of the first master gate controller 103 and the lowest bit of the address of the second master gate controller 104. When the first master door controller 103 is the target master door controller, the vehicle control unit (VCU) controls the doors and monitors the states of multiple local vehicle control units (LDCU) through the first master door controller 103 .
[0033] Figure 2 A flow chart of a control method for a train door control redundancy system provided by an embodiment of the present application. The execution subject of this embodiment may be Figure 1 The first master gate controller in the embodiment shown is not particularly limited in this embodiment. Figure 2 As shown, the method includes:
[0034] S201: Receive the opening and closing status of the first contact sent by the relay.
[0035] The open / closed state is used to indicate whether the first contact is in an open state or in a closed state. When in an open state, the first main door controller and the relay are disconnected; when in a closed state, the first main door controller is connected to the relay through the first contact.
[0036] Specifically, the open / closed state of the first contact sent by the relay can be received by wired transmission. For example, the normally open contact of the relay is connected to the first main gate controller by wires. When the relay is powered on, the first main gate controller receives a closing signal of the normally open contact, and when the relay is powered off, the first main gate controller receives an opening signal of the normally open contact.
[0037] Specifically, a wireless transmission method can be used to receive the open / closed state of the first contact sent by the relay. For example, the normally closed contact of the relay is connected to the Bluetooth module through a digital signal conversion circuit. When the normally closed contact of the relay is closed or opened, the Bluetooth module will receive the corresponding digital signal.
[0038] S202: Generate a self-test signal of the first master gate controller through a communication function self-test, where the self-test signal of the first master gate controller is used to indicate whether the communication function of the first master gate controller is abnormal.
[0039] Specifically, a polling request can be periodically sent to the first master gate controller to inquire about its communication status. After receiving the polling request, the first master gate controller immediately replies with a response signal. If no response is received within the set time, or the content of the response is incorrect, it is considered that the communication function of the first master gate controller is abnormal, and a self-test abnormality signal is generated. For example, a polling request is sent to the first master gate controller every 10 seconds. After receiving the request, the first master gate controller immediately replies OK. If no reply is received from the first master gate controller within 20 seconds, or the received reply is not OK, it is determined that the communication function of the first master gate controller is abnormal, and a self-test abnormality signal is generated.
[0040] Specifically, the communication function self-check can be performed by sending a data packet between the first master gate controller and the monitoring unit to generate a self-check signal of the first master gate controller. For example, the first master gate controller can periodically send a data packet to the monitoring unit, and the monitoring unit receives the data packet. If the data packet is received within the specified time, it is considered that the communication function is normal and a self-check normal signal is generated; if the data packet is received outside the specified time, it is considered that the communication function is abnormal and a self-check abnormal signal is generated.
[0041] S203: receiving a self-test signal from the second master door controller, where the self-test signal from the second master door controller is used to indicate whether a communication function of the second master door controller is abnormal.
[0042] The self-test signal of the second master gate controller may also be obtained by the second master gate controller through a self-test function.
[0043] Specifically, a wired connection method can be used to receive the self-test signal of the second master gate controller. For example, a wired communication interface between the first master gate controller and the second master gate controller is determined, and after the second master gate controller performs self-test, the second master gate controller sends the self-test signal to the first master gate controller through the wired communication interface. The first master gate controller obtains the self-test signal of the second master gate controller through the corresponding interface.
[0044] Specifically, a wireless connection method can be used to receive the self-test signal of the second master gate controller. For example, after the second master gate controller performs self-test, it encodes the self-test result into a wireless data packet. The second master gate controller sends the wireless data packet to the first master gate controller through the wireless module. The first master gate controller receives the wireless data packet through its wireless module and decodes the wireless data packet to obtain the self-test signal of the second master gate controller.
[0045] S204: Input the open / closed state of the first contact, the self-test signal of the first master gate controller and the self-test signal of the second master gate controller into a preset mathematical model to obtain the lowest bit of the address of the first master gate controller and the lowest bit of the address of the second master gate controller.
[0046] The port address of the first master gate controller is a set of 12-bit numbers, and the lowest bit of the address is the rightmost number of the 12-bit numbers. The lowest bit of the address is used to indicate whether the first master gate controller is to switch the working state. For example, the port address of the first master gate controller is 101100110001, and the lowest bit of the address is the rightmost number 1 of the 12-bit numbers.
[0047] Specifically, the above mathematical model is used to perform logical operations on the opening and closing state of the first contact, the self-test signal of the first master gate controller, and the self-test signal of the second master gate controller to obtain the lowest bit of the address of the first master gate controller and the lowest bit of the address of the second master gate controller. The mathematical model can be a logical expression, that is, the opening and closing state A of the first contact (the open state is 0, the closed state is 1), the self-test signal B of the first master gate controller (the communication function is normal is 1, the communication function is abnormal is 0) and the self-test signal C of the second master gate controller (the communication function is normal is 1, the communication function is abnormal is 0) can be input into the logical expression to obtain the lowest bit D of the address of the first master gate controller. For example, the logical expression is: D = B&& (C||A), when A = 1, B = 1, C = 0, substitute into the model to get D = 1, therefore, the lowest bit D of the address of the first master gate controller is 1.
[0048] S205: Determine a target master door controller from the first master door controller and the second master door controller according to the lowest address bit of the first master door controller and the lowest address bit of the second master door controller, so that the control unit performs door control and status monitoring through the target master door controller.
[0049] Specifically, which gate controller should be used as the target master gate controller can be determined based on the parity of the lowest address bit of the first master gate controller. If the lowest address bit is an odd number, the first master gate controller is selected; if it is an even number, the second master gate controller is selected. For example, if the address of the first master gate controller is 00000001 and its lowest address bit is 1 (odd number), then according to the rule, the first master gate controller is determined as the target master gate controller, and the control unit will control the door through it. If the address of the first master gate controller is 00000010 and the lowest address bit is 0 (even number), the second master gate controller is selected as the target master gate controller.
[0050] Specifically, which gate controller should be used as the target master gate controller can be determined according to the priority of the lowest bit of the address of the first master gate controller. Different values of the lowest bit of the address are mapped to different priorities to determine the target master gate controller. For example, the gate controller with the lowest bit of the address set to 0 has a higher priority. The address of the first master gate controller is 00000010, and the lowest bit of the address is 0. The address of the second master gate controller is 00000001, and the lowest bit of the address is 1. Since the lowest bit of the address of the first master gate controller is 0, it will be given a higher priority and selected as the target master gate controller.
[0051] In summary, according to the lowest address bit of the first master door controller and the lowest address bit of the second master door controller, the target master door controller is determined from the first master door controller and the second master door controller, and the control unit controls the door and monitors the state through the target master door controller. The control unit no longer needs to communicate with multiple master door controllers at the same time, but only needs to communicate with the target master door controller; at the same time, the control unit only needs to set the address of the target master door controller, which reduces the logic complexity of the control unit.
[0052] Figure 3 A flow chart of a control method for a train door control redundancy system provided in another embodiment of the present application. Figure 2 Based on the provided embodiment, this embodiment focuses on the specific process of inputting the open and closed state of the first contact, the self-test signal of the first master gate controller and the self-test signal of the second master gate controller into a preset mathematical model to obtain the lowest bit of the address of the first master gate controller and the lowest bit of the address of the second master gate controller, including:
[0053] S301: Obtaining the opening and closing state of the second contact according to the opening and closing state of the first contact.
[0054] Specifically, the first contact and the second contact are respectively the normally open contact and the normally closed contact of the relay, and after obtaining the open / closed state of the first contact, the open / closed state of the second contact can be obtained by performing an inversion operation. For example, when the open / closed state of the first contact is 0, the open / closed state of the second contact is 1.
[0055] S302: Input the open / closed state of the first contact, the self-test signal of the first master gate controller and the self-test signal of the second master gate controller into a preset mathematical model to obtain the lowest bit of the address of the first master gate controller.
[0056] Specifically, a logical expression can be defined to represent the open and closed state of the first contact, the self-test signal of the first master gate controller and the self-test signal of the second master gate controller with 0 or 1, and then the open and closed state of the first contact, the self-test signal of the first master gate controller and the self-test signal of the second master gate controller are input into the logical expression to obtain the lowest bit of the address of the first master gate controller.
[0057] S303: Input the open / closed state of the second contact, the self-test signal of the second master gate controller and the self-test signal of the first master gate controller into a preset mathematical model to obtain the lowest bit of the address of the second master gate controller.
[0058] Specifically, a logical expression can be defined to represent the open and closed state of the second contact, the self-test signal of the second master gate controller, and the self-test signal of the first master gate controller with 0 or 1, and then the open and closed state of the second contact, the self-test signal of the second master gate controller, and the self-test signal of the first master gate controller are input into the logical expression to obtain the lowest bit of the address of the second master gate controller.
[0059] In summary, using a preset mathematical model, combining the open and closed state of the contacts and the self-test signal of the main gate controller to determine the lowest bit of the address can make the calculation process more accurate.
[0060] Figure 4 A flow chart of a control method for a train door control redundancy system provided in another embodiment of the present application. Figure 3 Based on the embodiments provided, this embodiment focuses on the specific process of inputting the open and closed state of the first contact, the self-test signal of the first master gate controller and the self-test signal of the second master gate controller into a preset mathematical model to obtain the lowest bit of the address of the first master gate controller, including:
[0061] S401: When the opening and closing state of the first contact is disconnected, the self-test signal of the first master gate controller is abnormal, and the self-test signal of the second master gate controller is abnormal, the lowest bit of the address of the first master gate controller is the lowest bit of the second address.
[0062] Specifically, the lowest bit of the address of the first master gate controller can be calculated using a logical expression. For example, assuming that the opening and closing state of the first contact is A (the open state is 0, and the closed state is 1), the self-test signal of the first master gate controller is B (0 indicates abnormality, 1 indicates normality), the self-test signal of the second master gate controller is C (0 indicates abnormality, 1 indicates normality), and the lowest bit of the address of the first master gate controller is D (0 indicates the lowest bit of the second address, 1 indicates the lowest bit of the second address), a logical expression is set as: D = B&&(C||A), now A is 0, B is 0, C is 0, the values of A, B and C are input into the logical expression, and D is 0, that is, the lowest bit of the address of the first master gate controller is the lowest bit of the second address.
[0063] Specifically, a programmable logic device can be used to obtain the lowest bit of the address of the first master gate controller. For example, a design is created on a field programmable gate array (FPGA), which includes three inputs: the open and closed state A of the first contact (the open state is 0, the closed state is 1), the self-test signal B of the first master gate controller (0 indicates abnormality, 1 indicates normality), and the self-test signal C of the second master gate controller (0 indicates abnormality, 1 indicates normality), and an output: the lowest bit D of the address of the first master gate controller (0 indicates the lowest bit of the second address, 1 indicates the lowest bit of the second address). Use the hardware description language Verilog to write code, and when A is 0, B is 0, and C is 0, assign a value of 0 to D. Compile and download the code to the FPGA to implement the required logical functions.
[0064] S402: When the opening and closing state of the first contact is disconnected, the self-test signal of the first master gate controller is abnormal, and the self-test signal of the second master gate controller is normal, the lowest bit of the address of the first master gate controller is the lowest bit of the second address.
[0065] Specifically, the lowest bit of the address of the first master gate controller can be calculated using a logical expression. For example, a logical expression is set as: D = B&&(C||A), now A is 0, B is 0, and C is 1. The values of A, B, and C are input into the logical expression, and D is 0, that is, the lowest bit of the address of the first master gate controller is the lowest bit of the second address.
[0066] Specifically, a programmable logic device can be used to obtain the lowest bit of the address of the first master gate controller. For example, a design with the same input and output as the above design is created on the FPGA, and the code is written using the hardware description language Verilog. When A is 0, B is 0, and C is 1, the value of 0 is assigned to D. The code is compiled and downloaded to the FPGA to implement the required logic function.
[0067] S403: When the opening and closing state of the first contact is disconnected, the self-test signal of the first master gate controller is normal, and the self-test signal of the second master gate controller is abnormal, the lowest bit of the address of the first master gate controller is the lowest bit of the second address.
[0068] Specifically, the lowest bit of the address of the first master gate controller can be calculated using a logical expression. For example, a logical expression is set as: D = B&&(C||A), now A is 0, B is 1, and C is 0. The values of A, B, and C are input into the logical expression, and D is 0, that is, the lowest bit of the address of the first master gate controller is the lowest bit of the second address.
[0069] Specifically, a programmable logic device can be used to obtain the lowest bit of the address of the first master gate controller. For example, a design with the same input and output as the above design is created on the FPGA, and the code is written using the hardware description language Verilog. When A is 0, B is 1, and C is 0, the value of 0 is assigned to D. The code is compiled and downloaded to the FPGA to implement the required logic function.
[0070] S404: When the opening and closing state of the first contact is disconnected, the self-test signal of the first master gate controller is normal, and the self-test signal of the second master gate controller is normal, the lowest bit of the address of the first master gate controller is the lowest bit of the first address.
[0071] Specifically, the lowest bit of the address of the first master gate controller can be calculated using a logical expression. For example, a logical expression is set as: D = B&&(C||A), now A is 0, B is 1, and C is 1. The values of A, B, and C are input into the logical expression, and D is 1, that is, the lowest bit of the address of the first master gate controller is the lowest bit of the first address.
[0072] Specifically, a programmable logic device can be used to obtain the lowest bit of the address of the first master gate controller. For example, a design with the same input and output as the above design is created on the FPGA, and the code is written using the hardware description language Verilog. When A is 0, B is 1, and C is 1, the value of 1 is assigned to D. The code is compiled and downloaded to the FPGA to implement the required logic function.
[0073] S405: When the opening and closing state of the first contact is closed, the self-test signal of the first master gate controller is abnormal, and the self-test signal of the second master gate controller is abnormal, the lowest bit of the address of the first master gate controller is the lowest bit of the second address.
[0074] Specifically, the lowest bit of the address of the first master gate controller can be calculated using a logical expression. For example, a logical expression is set as: D = B&&(C||A), now A is 1, B is 0, and C is 0. The values of A, B, and C are input into the logical expression, and D is 0, that is, the lowest bit of the address of the first master gate controller is the lowest bit of the second address.
[0075] Specifically, a programmable logic device can be used to obtain the lowest bit of the address of the first master gate controller. For example, a design with the same input and output as the above design is created on the FPGA, and the code is written using the hardware description language Verilog. When A is 1, B is 0, and C is 0, the value of 0 is assigned to D. The code is compiled and downloaded to the FPGA to implement the required logic function.
[0076] S406: When the opening and closing state of the first contact is closed, the self-test signal of the first master gate controller is abnormal, and the self-test signal of the second master gate controller is normal, the lowest bit of the address of the first master gate controller is the lowest bit of the second address.
[0077] Specifically, the lowest bit of the address of the first master gate controller can be calculated using a logical expression. For example, a logical expression is set as: D = B&&(C||A), now A is 1, B is 0, and C is 1. The values of A, B, and C are input into the logical expression, and D is 0, that is, the lowest bit of the address of the first master gate controller is the lowest bit of the second address.
[0078] Specifically, a programmable logic device can be used to obtain the lowest bit of the address of the first master gate controller. For example, a design with the same input and output as the above design is created on the FPGA, and the code is written using the hardware description language Verilog. When A is 1, B is 0, and C is 1, the value of 0 is assigned to D. The code is compiled and downloaded to the FPGA to implement the required logic function.
[0079] S407: When the opening and closing state of the first contact is closed, the self-test signal of the first master gate controller is normal, and the self-test signal of the second master gate controller is abnormal, the lowest bit of the address of the first master gate controller is the lowest bit of the first address.
[0080] Specifically, the lowest bit of the address of the first master gate controller can be calculated using a logical expression. For example, a logical expression is set as: D = B&&(C||A), now A is 1, B is 1, and C is 0. The values of A, B, and C are input into the logical expression, and D is 1, that is, the lowest bit of the address of the first master gate controller is the lowest bit of the first address.
[0081] Specifically, a programmable logic device can be used to obtain the lowest bit of the address of the first master gate controller. For example, a design with the same input and output as the above design is created on the FPGA, and the code is written using the hardware description language Verilog. When A is 1, B is 1, and C is 0, the value of 1 is assigned to D. The code is compiled and downloaded to the FPGA to implement the required logic function.
[0082] S408: When the opening and closing state of the first contact is closed, the self-test signal of the first master gate controller is normal, and the self-test signal of the second master gate controller is normal, the lowest bit of the address of the first master gate controller is the lowest bit of the first address.
[0083] Specifically, the lowest bit of the address of the first master gate controller can be calculated using a logical expression. For example, a logical expression is set as: D = B&&(C||A), now A is 1, B is 1, and C is 1. The values of A, B, and C are input into the logical expression, and D is 1, that is, the lowest bit of the address of the first master gate controller is the lowest bit of the first address.
[0084] Specifically, a programmable logic device can be used to obtain the lowest bit of the address of the first master gate controller. For example, a design with the same input and output as the above design is created on the FPGA, and the code is written using the hardware description language Verilog. When A is 1, B is 1, and C is 1, the value of 1 is assigned to D. The code is compiled and downloaded to the FPGA to implement the required logic function.
[0085] In summary, by inputting the opening and closing state of the first contact, the self-test signal of the first master gate controller and the self-test signal of the second master gate controller into a preset mathematical model, the lowest bit of the address of the first master gate controller is obtained, which facilitates the subsequent determination of the target master gate controller based on the lowest bit of the address of the first master gate controller and the lowest bit of the address of the second master gate controller. There is no need to determine the target master gate controller through the status information of the first master gate controller and the second master gate controller, thereby reducing the logical complexity of the control unit.
[0086] Figure 5 A flow chart of a control method for a train door control redundancy system provided in another embodiment of the present application. Figure 3 Based on the provided embodiment, this embodiment focuses on the specific process of inputting the open and closed state of the second contact, the self-test signal of the second master gate controller and the self-test signal of the first master gate controller into a preset mathematical model to obtain the lowest bit of the address of the second master gate controller, including:
[0087] S501: When the opening and closing state of the second contact is closed, the self-test signal of the second master gate controller is normal, and the self-test signal of the first master gate controller is normal, the lowest bit of the address of the second master gate controller is the lowest bit of the first address.
[0088] Specifically, a programmable logic device can be used to obtain the lowest bit of the address of the second master gate controller. For example, a design is created on the FPGE, which includes three inputs: the open and closed state E of the second contact (the open state is 0, and the closed state is 1), the self-test signal B of the first master gate controller (0 indicates abnormality, 1 indicates normality), and the self-test signal C of the second master gate controller (0 indicates abnormality, 1 indicates normality), and an output: the lowest bit F of the address of the second master gate controller (0 indicates the lowest bit of the second address, 1 indicates the lowest bit of the second address). Use the hardware description language Verilog to write code, and when E is 1, B is 1, and C is 1, assign a value of 1 to F. Compile and download the code to the FPGE to implement the required logical functions.
[0089] S502: When the opening and closing state of the second contact is closed, the self-test signal of the second master gate controller is abnormal, and the self-test signal of the first master gate controller is normal, the lowest bit of the address of the second master gate controller is the second address lowest bit.
[0090] Specifically, a programmable logic device can be used to obtain the lowest bit of the address of the second master gate controller. For example, a design with the same input and output as the above design is created on the FPGA, and the code is written using the hardware description language Verilog. When E is 1, C is 0, and B is 1, the value of 0 is assigned to F. The code is compiled and downloaded to the FPGA to implement the required logic function.
[0091] S503: When the second contact is in the closed state, the self-test signal of the second master gate controller is normal, and the self-test signal of the first master gate controller is abnormal, the lowest bit of the address of the second master gate controller is the lowest bit of the first address.
[0092] Specifically, a programmable logic device can be used to obtain the lowest bit of the address of the second master gate controller. For example, a design with the same input and output as the above design is created on the FPGA, and the code is written using the hardware description language Verilog. When E is 1, C is 1, and B is 0, the value of 1 is assigned to F. The code is compiled and downloaded to the FPGA to implement the required logic function.
[0093] S504: When the opening and closing state of the second contact is closed, the self-test signal of the second master gate controller is abnormal, and the self-test signal of the first master gate controller is abnormal, the lowest bit of the address of the second master gate controller is the second address lowest bit.
[0094] Specifically, a programmable logic device can be used to obtain the lowest bit of the address of the second master gate controller. For example, a design with the same input and output as the above design is created on the FPGA, and the code is written using the hardware description language Verilog. When E is 1, C is 0, and B is 0, the value of 0 is assigned to F. The code is compiled and downloaded to the FPGA to implement the required logic function.
[0095] S505: When the opening and closing state of the second contact is disconnected, the self-test signal of the second master gate controller is normal, and the self-test signal of the first master gate controller is normal, the lowest bit of the address of the second master gate controller is the lowest bit of the first address.
[0096] Specifically, a programmable logic device can be used to obtain the lowest bit of the address of the second master gate controller. For example, a design with the same input and output as the above design is created on the FPGA, and the code is written using the hardware description language Verilog. When E is 0, C is 1, and B is 1, the value of 1 is assigned to F. The code is compiled and downloaded to the FPGA to implement the required logic function.
[0097] S506: When the opening and closing state of the second contact is disconnected, the self-test signal of the second master gate controller is abnormal, and the self-test signal of the first master gate controller is normal, the lowest bit of the address of the second master gate controller is the second address lowest bit.
[0098] Specifically, a programmable logic device can be used to obtain the lowest bit of the address of the second master gate controller. For example, a design with the same input and output as the above design is created on the FPGA, and the code is written using the hardware description language Verilog. When E is 0, C is 0, and B is 1, the value of 0 is assigned to F. The code is compiled and downloaded to the FPGA to implement the required logic function.
[0099] S507: When the opening and closing state of the second contact is disconnected, the self-test signal of the second master gate controller is normal, and the self-test signal of the first master gate controller is abnormal, the lowest bit of the address of the second master gate controller is the second address lowest bit.
[0100] Specifically, a programmable logic device can be used to obtain the lowest bit of the address of the second master gate controller. For example, a design with the same input and output as the above design is created on the FPGA, and the code is written using the hardware description language Verilog. When E is 0, C is 1, and B is 0, the value of 0 is assigned to F. The code is compiled and downloaded to the FPGA to implement the required logic function.
[0101] S508: When the opening and closing state of the second contact is disconnected, the self-test signal of the second master gate controller is abnormal, and the self-test signal of the first master gate controller is abnormal, the lowest bit of the address of the second master gate controller is the second address lowest bit.
[0102] Specifically, a programmable logic device can be used to obtain the lowest bit of the address of the second master gate controller. For example, a design with the same input and output as the above design is created on the FPGA, and the code is written using the hardware description language Verilog. When E is 0, C is 0, and B is 0, the value of 0 is assigned to F. The code is compiled and downloaded to the FPGA to implement the required logic function.
[0103] In summary, by inputting the opening and closing state of the second contact, the self-test signal of the second master gate controller and the self-test signal of the first master gate controller into a preset mathematical model, the lowest bit of the address of the second master gate controller is obtained, which facilitates the subsequent determination of the target master gate controller based on the lowest bit of the address of the first master gate controller and the lowest bit of the address of the second master gate controller. There is no need to determine the target master gate controller through the status information of the first master gate controller and the second master gate controller, thereby reducing the logical complexity of the control unit.
[0104] Figure 6 A flow chart of a control method for a train door control redundancy system provided in another embodiment of the present application. Figure 2 Based on the provided embodiment, this embodiment focuses on describing a specific process of determining a target master gate controller from the first master gate controller and the second master gate controller according to the lowest bit of the address of the first master gate controller and the lowest bit of the address of the second master gate controller, including:
[0105] S601: When the lowest bit of the address of the first master gate controller is the lowest bit of the first address and the lowest bit of the address of the second master gate controller is the lowest bit of the second address, the first master gate controller is the target master gate controller and the second master gate controller is the non-target master gate controller.
[0106] Specifically, a rule may be preset to set the target master gate controller in different situations, and then the target master gate controller is determined according to the value of the lowest bit of the address of the first master gate controller and the lowest bit of the address of the second master gate controller. For example, assume that the lowest bit of the first address is 1 and the lowest bit of the second address is 0. If the lowest bit of the address of the first master gate controller is 1 (the lowest bit of the first address) and the lowest bit of the address of the second master gate controller is 0 (the lowest bit of the second address), according to the rule, the first master gate controller is determined as the target master gate controller.
[0107] S602: When the lowest bit of the address of the first master gate controller is the lowest bit of the second address and the lowest bit of the address of the second master gate controller is the lowest bit of the first address, the second master gate controller is the target master gate controller and the first master gate controller is the non-target master gate controller.
[0108] Specifically, a rule may be preset to set the target master gate controller in different situations, and then the target master gate controller is determined according to the value of the lowest bit of the address of the first master gate controller and the lowest bit of the address of the second master gate controller. For example, assume that the lowest bit of the first address is 1 and the lowest bit of the second address is 0. If the lowest bit of the address of the first master gate controller is 0 (the lowest bit of the second address), and the lowest bit of the address of the second master gate controller is 1 (the lowest bit of the first address), according to the rule, the second master gate controller is determined as the target master gate controller.
[0109] S603: When the lowest bit of the address of the first master gate controller is the lowest bit of the second address and the lowest bit of the address of the second master gate controller is the lowest bit of the second address, both the first master gate controller and the second master gate controller are non-target master gate controllers.
[0110] Specifically, a rule may be preset to set the target master gate controller in different situations, and then the target master gate controller may be determined according to the value of the lowest bit of the address of the first master gate controller and the lowest bit of the address of the second master gate controller. For example, assume that the lowest bit of the first address is 1 and the lowest bit of the second address is 0. If the lowest bit of the address of the first master gate controller is 0 (the lowest bit of the second address), and the lowest bit of the address of the second master gate controller is 0 (the lowest bit of the second address), according to the rule, both the first master gate controller and the second master gate controller are non-target master gate controllers.
[0111] In summary, by determining the target master gate controller according to the lowest bit of the address of the master gate controller, the control unit does not need to process the status information of multiple master gate controllers at the same time, thereby reducing the logic complexity of the control unit.
[0112] Figure 7 A schematic diagram of the structure of a control device for a train door control redundancy system provided by an embodiment of the present application. Figure 7 As shown, the control device of the train door control redundant system includes: a first receiving module 701, a self-checking module 702, a second receiving module 703, a calculating module 704 and a determining module 705.
[0113] The first receiving module 701 is used to receive the open / close state of the first contact sent by the relay.
[0114] The self-check module 702 is used to generate a self-check signal of the first master gate controller through a self-check of the communication function. The self-check signal of the first master gate controller is used to indicate whether the communication function of the first master gate controller is abnormal.
[0115] The second receiving module 703 is used to receive a self-test signal from the second master door controller, where the self-test signal from the second master door controller is used to indicate whether the communication function of the second master door controller is abnormal.
[0116] The calculation module 704 is used to input the open and closed state of the first contact, the self-test signal of the first master gate controller and the self-test signal of the second master gate controller into a preset mathematical model to obtain the lowest address bit of the first master gate controller and the lowest address bit of the second master gate controller.
[0117] The determination module 705 is used to determine the target master door controller from the first master door controller and the second master door controller according to the lowest address bit of the first master door controller and the lowest address bit of the second master door controller, so that the control unit performs door control and status monitoring through the target master door controller.
[0118] In one embodiment, the calculation module 704 includes: a first determination unit, used to obtain the opening and closing state of the second contact according to the opening and closing state of the first contact; a first calculation unit, used to input the opening and closing state of the first contact, the self-test signal of the first master gate controller and the self-test signal of the second master gate controller into a preset mathematical model to obtain the lowest bit of the address of the first master gate controller; a second calculation unit, used to input the opening and closing state of the second contact, the self-test signal of the second master gate controller and the self-test signal of the first master gate controller into a preset mathematical model to obtain the lowest bit of the address of the second master gate controller.
[0119] In one embodiment, the first calculation unit includes: a first calculation component, which is used to set the lowest bit of the address of the first master gate controller to the lowest bit of the second address when the opening and closing state of the first contact is in the disconnected state, the self-test signal of the first master gate controller is abnormal, and the self-test signal of the second master gate controller is abnormal; a second calculation component, which is used to set the lowest bit of the address of the first master gate controller to the lowest bit of the second address when the opening and closing state of the first contact is in the disconnected state, the self-test signal of the first master gate controller is abnormal, and the self-test signal of the second master gate controller is normal; a third calculation component, which is used to set the lowest bit of the address of the first master gate controller to the lowest bit of the second address when the opening and closing state of the first contact is in the disconnected state, the self-test signal of the first master gate controller is normal, and the self-test signal of the second master gate controller is abnormal; a fourth calculation component, which is used to set the lowest bit of the address of the first master gate controller to the lowest bit of the second address when the opening and closing state of the first contact is in the disconnected state, the self-test signal of the first master gate controller is normal, and the self-test signal of the second master gate controller is normal. is the lowest bit of the first address; a fifth calculation component, used for when the opening and closing state of the first contact is a closed state, the self-test signal of the first master gate controller is abnormal, and the self-test signal of the second master gate controller is abnormal, the lowest bit of the address of the first master gate controller is the lowest bit of the second address; a sixth calculation component, used for when the opening and closing state of the first contact is a closed state, the self-test signal of the first master gate controller is abnormal, and the self-test signal of the second master gate controller is normal, the lowest bit of the address of the first master gate controller is the lowest bit of the second address; a seventh calculation component, used for when the opening and closing state of the first contact is a closed state, the self-test signal of the first master gate controller is normal, and the self-test signal of the second master gate controller is abnormal, the lowest bit of the address of the first master gate controller is the lowest bit of the first address; an eighth calculation component, used for when the opening and closing state of the first contact is a closed state, the self-test signal of the first master gate controller is normal, and the self-test signal of the second master gate controller is normal, the lowest bit of the address of the first master gate controller is the lowest bit of the first address.
[0120] In one embodiment, the second calculation unit includes: a ninth calculation component, which is used for when the opening and closing state of the second contact is a closed state, the self-test signal of the second master gate controller is normal, and the self-test signal of the first master gate controller is normal, the lowest bit of the address of the second master gate controller is the lowest bit of the first address; a tenth calculation component, which is used for when the opening and closing state of the second contact is a closed state, the self-test signal of the second master gate controller is abnormal, and the self-test signal of the first master gate controller is normal, the lowest bit of the address of the second master gate controller is the lowest bit of the second address; an eleventh calculation component, which is used for when the opening and closing state of the second contact is a closed state, the self-test signal of the second master gate controller is normal, and the self-test signal of the first master gate controller is abnormal, the lowest bit of the address of the second master gate controller is the lowest bit of the first address; a twelfth calculation component, which is used for when the opening and closing state of the second contact is a closed state, the self-test signal of the second master gate controller is abnormal, and the self-test signal of the first master gate controller is abnormal, the lowest bit of the address of the second master gate controller is the lowest bit of the second address; a thirteenth calculation component, which is used for when the opening and closing state of the second contact is in the disconnected state, the self-test signal of the second master gate controller is normal, and the self-test signal of the first master gate controller is normal, the lowest bit of the address of the second master gate controller is the lowest bit of the first address; a fourteenth calculation component, which is used for when the opening and closing state of the second contact is in the disconnected state, the self-test signal of the second master gate controller is abnormal, and the self-test signal of the first master gate controller is normal, the lowest bit of the address of the second master gate controller is the lowest bit of the second address; a fifteenth calculation component, which is used for when the opening and closing state of the second contact is in the disconnected state, the self-test signal of the second master gate controller is normal, and the self-test signal of the first master gate controller is abnormal, the lowest bit of the address of the second master gate controller is the lowest bit of the second address; a sixteenth calculation component, which is used for when the opening and closing state of the second contact is in the disconnected state, the self-test signal of the second master gate controller is abnormal, and the self-test signal of the first master gate controller is abnormal, the lowest bit of the address of the second master gate controller is the lowest bit of the second address.
[0121] In one embodiment, the determination module 705 includes: a second determination unit, which is used to determine that when the lowest bit of the address of the first master gate controller is the lowest bit of the first address and the lowest bit of the address of the second master gate controller is the lowest bit of the second address, the first master gate controller is the target master gate controller and the second master gate controller is the non-target master gate controller; a third determination unit, which is used to determine that when the lowest bit of the address of the first master gate controller is the lowest bit of the second address and the lowest bit of the address of the second master gate controller is the lowest bit of the first address, the second master gate controller is the target master gate controller and the first master gate controller is the non-target master gate controller; a fourth determination unit, which is used to determine that when the lowest bit of the address of the first master gate controller is the lowest bit of the second address and the lowest bit of the address of the second master gate controller is the lowest bit of the second address, the first master gate controller and the second master gate controller are both non-target master gate controllers.
[0122] The device provided in this embodiment can be used to execute the technical solution of the above method embodiment. Its implementation principle and technical effect are similar, and this embodiment will not be repeated here.
[0123] Figure 8 FIG. 1 is a schematic diagram of the hardware structure of an electronic device provided in one embodiment of the present application, and the electronic device may be the aforementioned first master gate controller. Figure 8 As shown, the electronic device of this embodiment includes: at least one processor 801 and a memory 802; the memory stores computer execution instructions; at least one processor executes the computer execution instructions stored in the memory, so that at least one processor executes the control method of the train gate control redundant system as above.
[0124] Optionally, the memory 802 may be independent or integrated with the processor 801 .
[0125] When the memory 802 is independently provided, the service device further includes a bus 803 for connecting the memory 802 and the processor 801 .
[0126] An embodiment of the present application also provides a computer storage medium, in which computer execution instructions are stored. When a processor executes the computer execution instructions, the control method of the train door control redundant system as described above is implemented.
[0127] An embodiment of the present application also provides a computer program product, including a computer program, which, when executed by a processor, implements the control method of the train door control redundancy system as described above.
[0128] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules is only a logical function division, and there may be other division methods in actual implementation, such as multiple modules can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or modules, which can be electrical, mechanical or other forms.
[0129] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to implement the solution of this embodiment.
[0130] In addition, each functional module in each embodiment of the present application can be integrated into one processing unit, or each module can exist physically separately, or two or more modules can be integrated into one unit. The above-mentioned module-composed unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
[0131] The above-mentioned integrated module implemented in the form of a software function module can be stored in a computer-readable storage medium. The above-mentioned software function module is stored in a storage medium, including a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to perform some steps of the methods of various embodiments of the present application.
[0132] It should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the invention may be directly implemented as being executed by a hardware processor, or may be implemented by a combination of hardware and software modules in the processor.
[0133] The memory may include a high-speed RAM memory, and may also include a non-volatile storage NVM, such as at least one disk memory, and may also be a USB flash drive, a mobile hard disk, a read-only memory, a magnetic disk or an optical disk, etc.
[0134] The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus in the drawings of the present application is not limited to only one bus or one type of bus.
[0135] The above storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The storage medium can be any available medium that can be accessed by a general or special purpose computer.
[0136] An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an application specific integrated circuit (ASIC). Of course, the processor and the storage medium can also exist as discrete components in an electronic device or a main control device.
[0137] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.
[0138] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A control method for a train door control redundant system, characterized in that: The train door control redundancy system includes a first main door controller, a second main door controller, a relay and a control unit, the first main door controller is connected to a first contact of the relay, the first contact is a normally open contact or a normally closed contact, the second contact of the relay is connected to the second main door controller, and the method includes: receiving an open / closed state of the first contact sent by the relay; Generate a self-test signal of the first master gate controller through a communication function self-test, wherein the self-test signal of the first master gate controller is used to indicate whether the communication function of the first master gate controller is abnormal; receiving a self-test signal from the second master gate controller, where the self-test signal from the second master gate controller is used to indicate whether a communication function of the second master gate controller is abnormal; Inputting the open / closed state of the first contact, the self-test signal of the first master gate controller and the self-test signal of the second master gate controller into a preset mathematical model to obtain the lowest bit of the address of the first master gate controller and the lowest bit of the address of the second master gate controller; According to the least significant bit of the address of the first master door controller and the least significant bit of the address of the second master door controller, a target master door controller is determined from the first master door controller and the second master door controller, so that the control unit performs door control and status monitoring through the target master door controller.
2. The method according to claim 1, characterized in that The step of inputting the open / closed state of the first contact, the self-test signal of the first master gate controller, and the self-test signal of the second master gate controller into a preset mathematical model to obtain the lowest bit of the address of the first master gate controller and the lowest bit of the address of the second master gate controller includes: According to the open / closed state of the first contact, obtaining the open / closed state of the second contact; Inputting the open / closed state of the first contact, the self-test signal of the first master gate controller and the self-test signal of the second master gate controller into a preset mathematical model to obtain the lowest bit of the address of the first master gate controller; The open / closed state of the second contact, the self-test signal of the second master gate controller and the self-test signal of the first master gate controller are input into a preset mathematical model to obtain the lowest bit of the address of the second master gate controller.
3. The method according to claim 2, characterized in that The step of inputting the open / closed state of the first contact, the self-test signal of the first master gate controller, and the self-test signal of the second master gate controller into a preset mathematical model to obtain the lowest bit of the address of the first master gate controller includes: When the opening and closing state of the first contact is an open state, the self-test signal of the first master gate controller is abnormal, and the self-test signal of the second master gate controller is abnormal, the lowest bit of the address of the first master gate controller is the lowest bit of the second address; When the opening and closing state of the first contact is an open state, the self-test signal of the first master gate controller is abnormal, and the self-test signal of the second master gate controller is normal, the lowest bit of the address of the first master gate controller is the lowest bit of the second address; When the opening and closing state of the first contact is an open state, the self-test signal of the first master gate controller is normal, and the self-test signal of the second master gate controller is abnormal, the lowest bit of the address of the first master gate controller is the lowest bit of the second address; When the opening and closing state of the first contact is an open state, the self-test signal of the first master gate controller is normal, and the self-test signal of the second master gate controller is normal, the lowest bit of the address of the first master gate controller is the lowest bit of the first address; When the opening and closing state of the first contact is a closed state, the self-test signal of the first master gate controller is abnormal, and the self-test signal of the second master gate controller is abnormal, the lowest bit of the address of the first master gate controller is the lowest bit of the second address; When the opening and closing state of the first contact is a closed state, the self-test signal of the first master gate controller is abnormal, and the self-test signal of the second master gate controller is normal, the lowest bit of the address of the first master gate controller is the lowest bit of the second address; When the opening and closing state of the first contact is a closed state, the self-test signal of the first master gate controller is normal, and the self-test signal of the second master gate controller is abnormal, the lowest bit of the address of the first master gate controller is the lowest bit of the first address; When the opening and closing state of the first contact is closed, the self-test signal of the first master gate controller is normal, and the self-test signal of the second master gate controller is normal, the lowest bit of the address of the first master gate controller is the lowest bit of the first address.
4. The method according to claim 2, characterized in that: The step of inputting the open / closed state of the second contact, the self-test signal of the second master gate controller, and the self-test signal of the first master gate controller into a preset mathematical model to obtain the lowest bit of the address of the second master gate controller includes: When the opening and closing state of the second contact is a closed state, the self-test signal of the second master gate controller is normal, and the self-test signal of the first master gate controller is normal, the lowest bit of the address of the second master gate controller is the lowest bit of the first address; When the opening and closing state of the second contact is the closed state, the self-test signal of the second master gate controller is abnormal, and the self-test signal of the first master gate controller is normal, the lowest bit of the address of the second master gate controller is the lowest bit of the second address; When the opening and closing state of the second contact is a closed state, the self-test signal of the second master gate controller is normal, and the self-test signal of the first master gate controller is abnormal, the lowest bit of the address of the second master gate controller is the lowest bit of the first address; When the opening and closing state of the second contact is a closed state, the self-test signal of the second master gate controller is abnormal, and the self-test signal of the first master gate controller is abnormal, the lowest bit of the address of the second master gate controller is the lowest bit of the second address; When the opening and closing state of the second contact is an open state, the self-test signal of the second master gate controller is normal, and the self-test signal of the first master gate controller is normal, the lowest bit of the address of the second master gate controller is the lowest bit of the first address; When the opening and closing state of the second contact is an open state, the self-test signal of the second master gate controller is abnormal, and the self-test signal of the first master gate controller is normal, the lowest bit of the address of the second master gate controller is the lowest bit of the second address; When the opening and closing state of the second contact is an open state, the self-test signal of the second master gate controller is normal, and the self-test signal of the first master gate controller is abnormal, the lowest bit of the address of the second master gate controller is the lowest bit of the second address; When the second contact is in an open state, the self-test signal of the second master gate controller is abnormal, and the self-test signal of the first master gate controller is abnormal, the lowest bit of the address of the second master gate controller is the lowest bit of the second address.
5. The method according to any one of claims 1 to 2, characterized in that The method of determining a target master door controller from the first master door controller and the second master door controller according to the least significant bit of the address of the first master door controller and the least significant bit of the address of the second master door controller, so that the control unit performs door control and status monitoring through the target master door controller, includes: When the lowest bit of the address of the first master gate controller is the lowest bit of the first address, and the lowest bit of the address of the second master gate controller is the lowest bit of the second address, the first master gate controller is the target master gate controller, and the second master gate controller is a non-target master gate controller; When the lowest bit of the address of the first master gate controller is the lowest bit of the second address, and the lowest bit of the address of the second master gate controller is the lowest bit of the first address, the second master gate controller is the target master gate controller, and the first master gate controller is the non-target master gate controller; When the lowest address bit of the first master gate controller is the lowest address bit of the second address and the lowest address bit of the second master gate controller is the lowest address bit of the second address, both the first master gate controller and the second master gate controller are the non-target master gate controllers.
6. A control device for a train door control redundancy system, characterized in that: The train door control redundancy system includes a first main door controller, a second main door controller, a relay and a control unit, wherein the first main door controller is connected to a first contact of the relay, the first contact is a normally open contact or a normally closed contact, and the second contact of the relay is connected to the second main door controller, including: A first receiving module, used for receiving the opening and closing state of the first contact sent by the relay; A self-check module, configured to generate a self-check signal of the first master gate controller through a self-check of the communication function, wherein the self-check signal of the first master gate controller is used to indicate whether the communication function of the first master gate controller is abnormal; A second receiving module, used for receiving a self-test signal of a second master gate controller, wherein the self-test signal of the second master gate controller is used for indicating whether a communication function of the second master gate controller is abnormal; a calculation module, configured to input the open / closed state of the first contact, the self-test signal of the first master gate controller, and the self-test signal of the second master gate controller into a preset mathematical model to obtain the lowest bit of the address of the first master gate controller and the lowest bit of the address of the second master gate controller; A determination module is used to determine a target master door controller from the first master door controller and the second master door controller according to the lowest bit of the address of the first master door controller and the lowest bit of the address of the second master door controller, so that the control unit performs vehicle door control and status monitoring through the target master door controller.
7. An electronic device, characterized in that: include: at least one processor and memory; The memory stores computer-executable instructions; The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the control method of the train door control redundancy system according to any one of claims 1 to 5.
8. A computer storage medium, characterized in that: The computer storage medium stores computer execution instructions. When the processor executes the computer execution instructions, the control method of the train door control redundant system as described in any one of claims 1 to 5 is implemented.
9. A computer program product, characterized in that It comprises a computer program, which, when executed by a processor, implements the control method of the train door control redundant system as claimed in any one of claims 1 to 5.
