CN114872765B - Scattered equipment control method and device based on general input/output module - Google Patents

Scattered equipment control method and device based on general input/output module Download PDF

Info

Publication number
CN114872765B
CN114872765B CN202210395094.1A CN202210395094A CN114872765B CN 114872765 B CN114872765 B CN 114872765B CN 202210395094 A CN202210395094 A CN 202210395094A CN 114872765 B CN114872765 B CN 114872765B
Authority
CN
China
Prior art keywords
state
bit number
group number
output module
determining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210395094.1A
Other languages
Chinese (zh)
Other versions
CN114872765A (en
Inventor
韩冰倩
宿秀元
侯金川
刘鲁鹏
骆正新
郑志敏
张楠乔
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
CRSC Urban Rail Transit Technology Co Ltd
Original Assignee
CRSC Urban Rail Transit Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by CRSC Urban Rail Transit Technology Co Ltd filed Critical CRSC Urban Rail Transit Technology Co Ltd
Priority to CN202210395094.1A priority Critical patent/CN114872765B/en
Publication of CN114872765A publication Critical patent/CN114872765A/en
Application granted granted Critical
Publication of CN114872765B publication Critical patent/CN114872765B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B61RAILWAYS
    • B61LGUIDING RAILWAY TRAFFIC; ENSURING THE SAFETY OF RAILWAY TRAFFIC
    • B61L27/00Central railway traffic control systems; Trackside control; Communication systems specially adapted therefor
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B61RAILWAYS
    • B61LGUIDING RAILWAY TRAFFIC; ENSURING THE SAFETY OF RAILWAY TRAFFIC
    • B61L27/00Central railway traffic control systems; Trackside control; Communication systems specially adapted therefor
    • B61L27/04Automatic systems, e.g. controlled by train; Change-over to manual control
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Mechanical Engineering (AREA)
  • Programmable Controllers (AREA)
  • Selective Calling Equipment (AREA)

Abstract

The invention provides a scattered equipment control method and a scattered equipment control device based on a general input/output module, wherein the scattered equipment control method based on the general input/output module comprises the following steps: acquiring group number and bit number information through a general input/output module; and based on the group number and the bit number information, the target equipment corresponding to the group number and the bit number information is acquired or driven, so that the construction cost of the equipment is reduced.

Description

Scattered equipment control method and device based on general input/output module
Technical Field
The invention relates to the technical field of urban rail transit, in particular to a scattered equipment control method and device based on a general input/output module.
Background
In a communication-based train control (Communication Based Train Control, CBTC) system for urban rail transit, an interlock system is required to control sporadic equipment such as a screen door, a flood gate, a garage door, a car washer, an operation lockout switch (Staff Protection Key Switch, SPKS), and the like. The existing interlocking system controls the scattered devices through the relay circuit, and the problems of mixed wire, broken wire and the like are easy to occur due to the fact that the relay circuit is complex in structure and a large amount of manual wiring exists. And the relay used by the existing interlocking system is high in price, and the combined frame for placing the relay occupies a large amount of machine room area, so that the cost of urban rail transit construction is increased. Therefore, how to collect and drive scattered equipment at low cost is a problem to be solved.
Disclosure of Invention
The invention provides a scattered equipment control method and device based on a general input/output module, which are used for solving the defect of overhigh control cost of scattered equipment in the prior art and realizing reduction of the control cost of the scattered equipment.
The invention provides a scattered equipment control method based on a general input/output module, which comprises the following steps:
acquiring group number and bit number information through a general input/output module;
and based on the group number and the bit number information, collecting or driving the target equipment corresponding to the group number and the bit number information.
According to the scattered equipment control method based on the general input/output module, the general input/output module comprises a general input module;
the obtaining the group number and the bit number information through the general input/output module comprises the following steps:
acquiring a first group number, a first bit number, a second group number and a second bit number corresponding to target equipment through a general input module;
the step of collecting or driving the target device corresponding to the group number and the bit number information based on the group number and the bit number information comprises the following steps:
determining a front node state based on the first group number and the first bit number if the first group number and the first bit number are determined to be valid;
determining a post node state based on the second group number and the second bit number if the second group number and the second bit number are determined to be valid;
and determining the acquisition state of the target equipment based on the front node state and the rear node state.
According to the method for controlling the scattered equipment based on the general input/output module, the method for determining the acquisition state of the equipment based on the front node state and the rear node state comprises the following steps:
determining that the acquisition state of the target equipment is a suction state under the condition that the front node state is closed and the rear node state is not closed; or,
determining that the acquisition state of the target equipment is a falling state under the condition that the front node state is non-closed and the rear node state is closed; or,
and determining the acquisition state of the target equipment as a third state.
The invention provides a scattered equipment control method based on a general input/output module, which further comprises the following steps:
determining an acquisition state of a target device based on the front node state if the second group number and the second bit number are determined to be invalid;
the determining the acquisition state of the target device based on the front node state includes:
under the condition that the front node state is closed, determining that the acquisition state of the target equipment is a suction state; or,
and under the condition that the front node state is not closed, determining that the acquisition state of the target equipment is a falling state.
The invention provides a scattered equipment control method based on a general input/output module, which further comprises the following steps:
and under the condition that the first group number and the first bit number are invalid, determining that the acquisition state of the target equipment is a falling state.
According to the scattered equipment control method based on the general input/output module, the general input/output module comprises a general output module;
the obtaining the group number and the bit number information through the general input/output module comprises the following steps:
acquiring a target group number and a target bit number which are output by a general output module;
the control collection or driving of the target device corresponding to the group number and the bit number information based on the group number and the bit number information comprises the following steps:
determining a control node corresponding to the target group number and the target bit number, and determining a driving command corresponding to the control node;
and sending the driving command to the universal output module, wherein the driving command is suction or falling, and the driving command is used for driving the control node.
The invention also provides a scattered equipment control device based on the general input/output module, which comprises:
the acquisition module is used for acquiring the group number and the bit number information through the general input/output module;
and the control module is used for collecting or driving the target equipment corresponding to the group number and the bit number information based on the group number and the bit number information.
The invention also provides an electronic device, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor realizes the scattered device control method based on the general input/output module when executing the program.
The present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a method of controlling a discrete device based on a universal input output module as described in any one of the above.
The invention also provides a computer program product comprising a computer program which when executed by a processor implements a method of controlling a sporadic device based on a universal input output module as described in any one of the above.
According to the scattered equipment control method and device based on the general input/output module, the general input/output module is used for acquiring the group number and the bit number information, determining the target equipment according to the group number and the bit number information, acquiring or driving the target equipment, reducing the use of relays and combined frames, and reducing the construction cost of the equipment.
Drawings
In order to more clearly illustrate the invention or the technical solutions of the prior art, the following description will briefly explain the drawings used in the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are some embodiments of the invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic flow chart of a method for controlling a piece of scattered equipment based on a general input/output module;
FIG. 2 is a schematic diagram of a prior art IO flooding configuration;
fig. 3 is a schematic structural diagram of a universal input/output module mining driver provided by the present invention;
FIG. 4 is a second flow chart of the method for controlling a distributed device based on a general purpose input/output module according to the present invention;
FIG. 5 is a third flow chart of the method for controlling a distributed device based on a general purpose input/output module according to the present invention;
FIG. 6 is a schematic flow chart of a method for controlling a piece of scattered equipment based on a general purpose input/output module;
fig. 7 is a schematic structural diagram of a scattered equipment control device based on a general input/output module provided by the invention;
fig. 8 is a schematic structural diagram of an electronic device provided by the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
According to the scattered equipment control method based on the general input/output module, the execution main body can be a CBTC system or a subsystem in the CBTC system, such as an interlocking system in the CBTC system. The execution body is not limited to the present invention.
As shown in fig. 1, the method for controlling the scattered equipment based on the general input/output module comprises a step 100 and a step 102.
Step 100, obtaining the group number and the bit number information through the general input/output module.
The general purpose input/output module is one module in a System On Chip (SOC), and is a "bridge" in which an internal circuit communicates with the outside.
As shown in fig. 2, in the related art, an interlocking system is connected with scattered equipment through an interface function, that is, a relay circuit, and a sampling and driving mode of the interlocking system is adopted by an Input Output (IO) sampling and driving mode, so as to collect the sucking or dropping states of the relays of the scattered equipment, such as a shielding door, a flood gate, a garage door, a car washer, an SPKS switch and the like; the control relay circuit operates the relay to drive the sucking or falling action of the relay of the related scattered equipment. Because the relay is high in price, the combined frame for placing the relay occupies a large amount of machine room area, and the cost of urban rail transit construction is increased.
According to the scattered equipment control method, the scattered equipment is interacted through the general input and output module, as shown in fig. 3, the interlocking system comprises a man-machine conversation layer, a logic operation layer and an execution representation layer, wherein the execution representation layer is directly interacted with the scattered equipment, and state information of the scattered equipment is collected.
And 101, acquiring or driving target equipment corresponding to the group number and the bit number information based on the group number and the bit number information.
The target device may be any of a variety of devices such as a screen door, a flood gate, a garage door, a car washer, an SPKS switch, and the like, and is not specifically limited herein. The SPKS switch is only used for collecting and is not driven.
The group number and the bit number corresponding to each node of each relay in the target device are different, that is, the group number and the bit number have a one-to-one correspondence, and a unique node can be determined to correspond to the group number and the bit number according to the group number and the bit number, and similarly, each node has the uniquely determined group number and the bit number to correspond to the node.
Based on the group number and the bit number information, the target device corresponding to the group number and the bit number information is collected or driven, which may include collecting the state of the target device and controlling the state of the target device.
According to the scattered equipment control method based on the general input/output module, the general input/output module is used for acquiring the group number and the bit number information, the target equipment is determined according to the group number and the bit number information, the target equipment is acquired or driven, the use of relays and a combined frame is reduced, the usability of a system is improved, and the construction cost of the equipment is reduced.
In some embodiments, the universal input output module comprises a universal input module.
Step 100 includes step 400; step 101 includes step 401, step 402, and step 403.
As shown in fig. 4, the method for controlling the scattered equipment based on the general input/output module includes a step 400, a step 401, a step 402 and a step 403.
Step 400, a first group number, a first bit number, a second group number and a second bit number corresponding to the target device are obtained through the general input module.
The general input module is a sub-module in the general input/output module.
The first group number and the first bit number correspond to a front node of the relay of the target device, and specific group numbers and bit numbers can be customized, for example, the first group number is group number 1, and the first bit number is bit number 1.
The second group number and the second bit number correspond to the back node of the relay of the target device, and the specific group number and the bit number can be customized, for example, the second group number is group number 2, and the second bit number is bit number 2.
Step 401, determining a front node state based on the first group number and the first bit number, if it is determined that the first group number and the first bit number are valid.
It should be noted that, the front node of the relay has two states, closed or not, and in these two states, the group number and the bit number information collected by the general input module are different, so that the state of the front node can be determined according to the group number and the bit number information.
However, since the information collected by the hardware may be in error, the collected group number and bit number information may have invalid states, that is, in the case that the first group number and the first bit number are invalid, the state of the front node cannot be determined according to the first group number and the first bit number; the state of the front node can be determined from the first group number and the first bit number only if it is determined that the first group number and the first bit number are valid.
Step 402, in the case that the second group number and the second bit number are determined to be valid, determining a post node state based on the second group number and the second bit number.
Similarly, the rear node of the relay has two states, namely closed state or not, and the group number and the bit number information acquired by the general input module correspondingly are different in the two states, so that the state of the rear node can be determined according to the group number and the bit number information.
Because the information collected by the hardware may be in error, the collected group number and bit number information may have invalid states, that is, in the case that the second group number and the second bit number are invalid, the state of the rear node cannot be determined according to the second group number and the second bit number; the state of the back node can be determined from the second group number and the second bit number only if the second group number and the second bit number are determined to be valid.
Step 403, determining an acquisition state of the target device based on the front node state and the rear node state.
The relay is connected before the front node, namely the front node is closed under the suction state; in the falling state, the relay is connected with the rear node, namely the rear node is closed. Therefore, according to the front node state and the rear node state, whether the relay is sucked up or closed can be determined, and the acquisition state of the target equipment is obtained.
According to the scattered equipment control method based on the general input/output module, the group number and the bit number corresponding to the target equipment are acquired through the general input/output module, the general input module is adopted for acquiring information, the use of a relay is reduced, the state acquisition cost of the scattered equipment is reduced, the front node state and the rear node state are obtained according to the corresponding relation between the group number and the bit number and the front node state and the rear node state of the relay of the target equipment, the acquisition state of the target equipment is obtained by combining the front node state and the rear node state, and the reliability of the acquisition state is improved.
In some embodiments, step 403 specifically includes three cases:
1. and under the condition that the front node state is closed and the rear node state is not closed, determining that the acquisition state of the target equipment is a suction state.
It can be understood that the acquisition state refers to a state of the target device acquired by the system, and is obtained by processing and judging by the system according to the acquired information. The system can perform some internal logic processing according to the acquisition state of the device, that is, the closer the acquisition state is to the real state of the device, the higher the reliability of the system.
Because of the possibility of errors in the acquired information, the acquisition state is determined under the condition that only the front node is closed or the rear node is not closed, and the reliability of the obtained result is not high enough.
Only if the front node state is judged to be closed and the rear node state is judged to be non-closed, the acquisition state of the target device can be determined to be the suction state. And the acquisition state of the target equipment is judged according to the information of the two nodes, so that the reliability of the acquisition state is improved.
2. And determining that the acquisition state of the target equipment is a falling state under the condition that the front node state is non-closed and the rear node state is closed.
Likewise, the acquisition state of the target device can be determined to be the falling state only if the front node state is determined to be non-closed and the rear node state is determined to be closed. And the acquisition state of the target equipment is judged according to the information of the two nodes, so that the reliability of the acquisition state is improved.
3. And under the condition that the conditions of the first and the second are not met, determining the acquisition state of the target equipment as a third state.
It can be understood that, in the case where the states of the front node and the rear node are both closed, or the states of the front node and the rear node are both non-closed, it is not possible to determine whether the acquisition state of the target device is the suction state or the falling state at this time, and in this case, the acquisition state of the target device is recorded as the third state. The third state is a state other than the suck-up and the drop-down.
According to the scattered equipment control method based on the general input/output module, under the condition that the front node state is closed and the rear node state is non-closed, the acquisition state of the target equipment is determined to be a suction state; under the condition that the front node state is non-closed and the rear node state is closed, determining that the acquisition state of the target equipment is a falling state; and under the other conditions, the acquisition state of the target equipment is determined to be the third state, so that the situation that the finally determined acquisition state is wrong due to the error of the acquired information is effectively avoided, and the accuracy and reliability of the acquisition state are improved.
In some embodiments, the method for controlling the sporadic equipment based on the general input/output module further comprises:
and in the case that the second group number and the second bit number are determined to be invalid, determining the acquisition state of the target device based on the front node state.
It should be noted that the second group number and the second bit number are invalid, which indicates that the state of the rear node cannot be determined according to the second group number and the second bit number, and in this case, the acquisition state of the target device may be determined according to the state of the front node.
Determining the acquisition state of the target device based on the front node state includes two cases:
1. and under the condition that the front node state is closed, determining that the acquisition state of the target equipment is a suction state.
In the suction state, the relay is connected before the front node, namely, the front node is closed, so that the acquisition state of the target equipment can be determined to be the suction state under the condition that the front node state is determined to be closed.
2. And under the condition that the front node state is not closed, determining that the acquisition state of the target equipment is a falling state.
In the falling state, the relay is connected before the rear node, namely, the front node is closed before the rear node, and the front node is not closed, so that the acquisition state of the target equipment can be determined to be the falling state under the condition that the front node state is determined to be non-closed.
According to the scattered equipment control method based on the general input/output module, under the condition that the second group number and the second number are invalid, the acquisition state of the target equipment can still be determined based on the state of the front node, and the efficiency of acquiring the state of the scattered equipment is improved.
In some embodiments, the method for controlling the sporadic equipment based on the general input/output module further comprises:
and under the condition that the first group number and the first bit number are invalid, determining that the acquisition state of the target equipment is a falling state.
In the case where the first group number and the first bit number are invalid, it is described that the state of the previous node cannot be determined according to the first group number and the first bit number, in this case, if the system cannot acquire the acquisition state of the target device, the system cannot perform subsequent logic processing, so that the acquisition state of the target device can be set to the security side, that is, the acquisition state of the target device is determined to be the falling state, so that the system can perform subsequent logic processing.
According to the scattered equipment control method based on the general input/output module, under the condition that the first group number and the first bit number are invalid, the acquisition state of the target equipment is determined to be the falling state, and under the condition that the first group number and the first bit number are invalid, the system can still acquire the state information of the target equipment, so that the efficiency of acquiring the state of the scattered equipment is improved.
In some embodiments, as shown in fig. 5, the method for controlling a discrete device based on a general purpose input/output module includes steps 500, 501, 502, 503 and 504.
Step 500, the group number 1 and the bit number 1 are obtained through the general input module, and whether the group number 1 and the bit number 1 are valid or not is judged.
Step 501, in the case that the group number 1 and the bit number 1 are invalid, determining that the acquisition state of the target device is a falling state.
Step 502, under the condition that the group number 1 and the bit number 1 are valid, determining the state of the front node based on the group number 1 and the bit number 1, acquiring the group number 2 and the bit number 2 through the universal input module, and judging whether the group number 2 and the bit number 2 are valid or not.
It should be noted that, step 501 and step 502 only perform one of the steps.
Step 503, in the case that the group number 2 and the bit number 2 are invalid, determining the acquisition state of the target device according to the state of the previous node.
Step 504, in the case that the group number 2 and the bit number 2 are valid, determining a rear node state based on the group number 2 and the bit number 2, and determining an acquisition state of the target device based on the front node state and the rear node state.
It should be noted that, step 503 and step 504 are only performed in the case where step 502 is performed, and step 503 and step 504 only perform one of the steps.
According to the scattered equipment control method based on the general input and output module, the group number and the bit number corresponding to the target equipment are acquired through the general input module, the general input module is adopted for acquiring information, the use of a relay is reduced, the state acquisition cost of the scattered equipment is reduced, the front node state and the rear node state are obtained according to the corresponding relation between the group number and the bit number and the front node state and the rear node state of the relay of the target equipment, the acquisition state of the target equipment is obtained by combining the front node state and the rear node state, in addition, under the condition that the first group number and the first bit number are invalid, the system can assume the state information of the target equipment, under the condition that the second group number and the second bit number are invalid, the acquisition state of the target equipment can be still determined based on the front node state, and the acquisition efficiency of the scattered equipment state is improved.
In some embodiments, the universal input output module comprises a universal output module, step 100 comprises step 600, and step 101 comprises step 601 and step 602.
As shown in fig. 6, the method for controlling the sporadic equipment based on the general input/output module includes a step 600, a step 601 and a step 602.
Step 600, the target group number and the target bit number output by the general output module are obtained.
The general output module is a sub-module in the general input/output module.
Step 601, determining a control node corresponding to the target group number and the target bit number, and determining a driving command corresponding to the control node;
the group number and the bit number corresponding to each node in each relay are different, that is, the group number and the bit number have a one-to-one correspondence, and a unique node can be determined to correspond to the group number and the bit number according to the group number and the bit number, and likewise, each node has a unique determined group number and bit number to correspond to the node.
When the states of the nodes are collected, the corresponding states of the nodes can be determined according to the information of the group numbers and the bit numbers, and when the states of the nodes are driven, the nodes needing to be driven can be determined according to the group numbers and the bit numbers.
According to the target group number and the target bit number, which node of which relay is controlled can be determined, and a driving command corresponding to the control node is determined.
Step 602, sending the driving command to the general output module.
The driving command is to suck or drop, and the driving command is used for driving the control node.
If the driving command is sucking, driving the control node to suck through the general output module; if the driving command is falling, the control node is driven to fall through the general output module.
According to the scattered equipment control method based on the general input and output module, the group number and the bit number information are acquired through the general output module, the target equipment is determined according to the group number and the bit number information, the target equipment is controlled, the use of relays and a combined frame is reduced, the usability of a system is improved, and the construction cost of the equipment is reduced.
The general input/output module-based scattered equipment control device provided by the invention is described below, and the general input/output module-based scattered equipment control device described below and the general input/output module-based scattered equipment control method described above can be referred to correspondingly.
As shown in fig. 7, the scattered equipment control device 700 based on the general input/output module includes an acquisition module 710 and a control module 720.
An acquisition module 710, configured to acquire group number and bit number information through the general input/output module;
and the control module 720 is configured to collect or drive the target device corresponding to the group number and the bit number information based on the group number and the bit number information.
Optionally, the universal input/output module includes a universal input module;
the acquisition module 710 is also configured to
Acquiring a first group number, a first bit number, a second group number and a second bit number corresponding to target equipment through a general input module;
the control module 720 is further configured to:
determining a front node state based on the first group number and the first bit number if the first group number and the first bit number are determined to be valid;
determining a post node state based on the second group number and the second bit number if the second group number and the second bit number are determined to be valid;
and determining the acquisition state of the target equipment based on the front node state and the rear node state.
Optionally, the control module 720 is further configured to:
determining that the acquisition state of the target equipment is a suction state under the condition that the front node state is closed and the rear node state is not closed; or,
determining that the acquisition state of the target equipment is a falling state under the condition that the front node state is non-closed and the rear node state is closed; or,
and determining the acquisition state of the target equipment as a third state.
Optionally, the control module 720 is further configured to:
determining an acquisition state of a target device based on the front node state if the second group number and the second bit number are determined to be invalid;
the determining the acquisition state of the target device based on the front node state includes:
under the condition that the front node state is closed, determining that the acquisition state of the target equipment is a suction state; or,
and under the condition that the front node state is not closed, determining that the acquisition state of the target equipment is a falling state.
Optionally, the control module 720 is further configured to:
and under the condition that the first group number and the first bit number are invalid, determining that the acquisition state of the target equipment is a falling state.
Optionally, the general input/output module includes a general output module;
the obtaining module 710 is further configured to:
and obtaining the target group number and the target bit number output by the general output module.
The control module 720 is further configured to:
determining a control node corresponding to the target group number and the target bit number, and determining a driving command corresponding to the control node;
and sending the driving command to the universal output module, wherein the driving command is suction or falling, and the driving command is used for driving the control node.
The scattered equipment control device based on the general input/output module provided by the invention can realize each process realized by the method embodiments of fig. 1-6 and achieve the same technical effect, and is not repeated here for avoiding repetition.
Fig. 8 illustrates a physical structure diagram of an electronic device, as shown in fig. 8, which may include: processor 810, communication interface (Communications Interface) 820, memory 830, and communication bus 840, wherein processor 810, communication interface 820, memory 830 accomplish communication with each other through communication bus 840. The processor 810 may invoke logic instructions in the memory 830 to perform a general purpose input output module based method of sporadic device control, the method comprising:
acquiring group number and bit number information through a general input/output module;
and based on the group number and the bit number information, collecting or driving the target equipment corresponding to the group number and the bit number information.
Further, the logic instructions in the memory 830 described above may be implemented in the form of software functional units and may be stored in a computer-readable storage medium when sold or used as a stand-alone product. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In another aspect, the present invention also provides a computer program product, where the computer program product includes a computer program, where the computer program can be stored on a non-transitory computer readable storage medium, and when the computer program is executed by a processor, the computer can execute a method for controlling a scattered device based on a universal input output module provided by the above methods, and the method includes:
acquiring group number and bit number information through a general input/output module;
and based on the group number and the bit number information, collecting or driving the target equipment corresponding to the group number and the bit number information.
In still another aspect, the present invention further provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, is implemented to perform the method for controlling a discrete device based on a universal input output module provided by the above methods, the method comprising:
acquiring group number and bit number information through a general input/output module;
and based on the group number and the bit number information, collecting or driving the target equipment corresponding to the group number and the bit number information.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the respective embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (9)

1. A scattered equipment control method based on a general input/output module is characterized by comprising the following steps:
acquiring group number and bit number information through a general input/output module;
based on the group number and the bit number information, collecting or driving target equipment corresponding to the group number and the bit number information;
the general input/output module comprises a general input module;
the obtaining the group number and the bit number information through the general input/output module comprises the following steps:
acquiring a first group number, a first bit number, a second group number and a second bit number corresponding to target equipment through a general input module;
the step of collecting or driving the target device corresponding to the group number and the bit number information based on the group number and the bit number information comprises the following steps:
determining a front node state based on the first group number and the first bit number if the first group number and the first bit number are determined to be valid;
determining a post node state based on the second group number and the second bit number if the second group number and the second bit number are determined to be valid;
and determining the acquisition state of the target equipment based on the front node state and the rear node state.
2. The method for controlling a distributed device based on a universal input/output module according to claim 1, wherein the determining the collection status of the device based on the front node status and the rear node status comprises:
determining that the acquisition state of the target equipment is a suction state under the condition that the front node state is closed and the rear node state is not closed; or,
determining that the acquisition state of the target equipment is a falling state under the condition that the front node state is non-closed and the rear node state is closed; or,
and determining the acquisition state of the target equipment as a third state.
3. The method for controlling a distributed device based on a universal input/output module according to claim 1, further comprising:
determining an acquisition state of a target device based on the front node state if the second group number and the second bit number are determined to be invalid;
the determining the acquisition state of the target device based on the front node state includes:
under the condition that the front node state is closed, determining that the acquisition state of the target equipment is a suction state; or,
and under the condition that the front node state is not closed, determining that the acquisition state of the target equipment is a falling state.
4. A method for controlling a distributed device based on a universal input output module according to any one of claims 1 to 3, further comprising:
and under the condition that the first group number and the first bit number are invalid, determining that the acquisition state of the target equipment is a falling state.
5. The general purpose input/output module based scattered equipment control method of claim 1, wherein the general purpose input/output module comprises a general purpose output module;
the obtaining the group number and the bit number information through the general input/output module comprises the following steps:
acquiring a target group number and a target bit number which are output by a general output module;
the step of collecting or driving the target device corresponding to the group number and the bit number information based on the group number and the bit number information comprises the following steps:
determining a control node corresponding to the target group number and the target bit number, and determining a driving command corresponding to the control node;
and sending the driving command to the universal output module, wherein the driving command is suction or falling, and the driving command is used for driving the control node.
6. Scattered equipment controlling means based on general input output module, characterized by comprising:
the acquisition module is used for acquiring the group number and the bit number information through the general input/output module;
the control module is used for collecting or driving target equipment corresponding to the group number and the bit number information based on the group number and the bit number information;
the general input/output module comprises a general input module;
the obtaining the group number and the bit number information through the general input/output module comprises the following steps:
acquiring a first group number, a first bit number, a second group number and a second bit number corresponding to target equipment through a general input module;
the step of collecting or driving the target device corresponding to the group number and the bit number information based on the group number and the bit number information comprises the following steps:
determining a front node state based on the first group number and the first bit number if the first group number and the first bit number are determined to be valid;
determining a post node state based on the second group number and the second bit number if the second group number and the second bit number are determined to be valid;
and determining the acquisition state of the target equipment based on the front node state and the rear node state.
7. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the general purpose input output module based discrete device control method as claimed in any one of claims 1 to 5 when executing the program.
8. A non-transitory computer readable storage medium having stored thereon a computer program, wherein the computer program when executed by a processor implements the general purpose input output module based sporadic device control method according to any one of claims 1 to 5.
9. A computer program product comprising a computer program, characterized in that the computer program, when executed by a processor, implements a method for controlling a sporadic device based on a universal input output module according to any one of claims 1 to 5.
CN202210395094.1A 2022-04-14 2022-04-14 Scattered equipment control method and device based on general input/output module Active CN114872765B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210395094.1A CN114872765B (en) 2022-04-14 2022-04-14 Scattered equipment control method and device based on general input/output module

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210395094.1A CN114872765B (en) 2022-04-14 2022-04-14 Scattered equipment control method and device based on general input/output module

Publications (2)

Publication Number Publication Date
CN114872765A CN114872765A (en) 2022-08-09
CN114872765B true CN114872765B (en) 2024-01-02

Family

ID=82668587

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210395094.1A Active CN114872765B (en) 2022-04-14 2022-04-14 Scattered equipment control method and device based on general input/output module

Country Status (1)

Country Link
CN (1) CN114872765B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201026898Y (en) * 2007-04-25 2008-02-27 北京康吉森交通技术有限公司 Interlocking spread module of modular computer
CN106444553A (en) * 2016-11-29 2017-02-22 卡斯柯信号有限公司 Scattered collection driving system based on double 2-vote-2 architecture
WO2017166646A1 (en) * 2016-03-29 2017-10-05 乐视控股(北京)有限公司 In-vehicle voice control method and device, and apparatus
CN108061852A (en) * 2017-11-10 2018-05-22 北京全路通信信号研究设计院集团有限公司 Relay control supervision method and device and computer storage medium
DE102018122269A1 (en) * 2018-09-12 2020-03-12 Phoenix Contact Gmbh & Co. Kg Relay module
WO2020248401A1 (en) * 2019-06-12 2020-12-17 北京全路通信信号研究设计院集团有限公司 Train door and platform door joint control method and system applied to high speed rail
CN114135188A (en) * 2021-11-12 2022-03-04 通号城市轨道交通技术有限公司 Platform door control circuit, method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201026898Y (en) * 2007-04-25 2008-02-27 北京康吉森交通技术有限公司 Interlocking spread module of modular computer
WO2017166646A1 (en) * 2016-03-29 2017-10-05 乐视控股(北京)有限公司 In-vehicle voice control method and device, and apparatus
CN106444553A (en) * 2016-11-29 2017-02-22 卡斯柯信号有限公司 Scattered collection driving system based on double 2-vote-2 architecture
CN108061852A (en) * 2017-11-10 2018-05-22 北京全路通信信号研究设计院集团有限公司 Relay control supervision method and device and computer storage medium
DE102018122269A1 (en) * 2018-09-12 2020-03-12 Phoenix Contact Gmbh & Co. Kg Relay module
WO2020248401A1 (en) * 2019-06-12 2020-12-17 北京全路通信信号研究设计院集团有限公司 Train door and platform door joint control method and system applied to high speed rail
CN114135188A (en) * 2021-11-12 2022-03-04 通号城市轨道交通技术有限公司 Platform door control circuit, method and device

Also Published As

Publication number Publication date
CN114872765A (en) 2022-08-09

Similar Documents

Publication Publication Date Title
US11848755B2 (en) Anomaly detection device, anomaly detection method, and recording medium
DE102013223704A1 (en) Vehicle with an Ethernet bus system and method for operating such a bus system
KR20190060782A (en) Door controller of integrated data collection transfer device and its processing transfer method
CN106476855A (en) Realize the system and method for control handing-over between rolling stock section and test run line
CN113635947B (en) Interlocking simulation model design method applied to urban rail and interlocking simulation model
CN103425081B (en) Diesel locomotive controls logic electronics method and system thereof
CN114872765B (en) Scattered equipment control method and device based on general input/output module
KR101544887B1 (en) Apparatus And Method for diagnosing CAN communication error
CN104554346A (en) Train operation parameter real-time monitoring system
CN106909111A (en) Multifunctional control panel and multifunctional control method
CN114275009B (en) Method, equipment and medium for preventing route error unlocking based on full-electronic interlocking
CN113911169A (en) Computer interlocking system for quickly switching execution representation layer and switching method thereof
CN102427423A (en) Method and device for tracking network traffic and positioning fault
JP3628042B2 (en) Multiple communication method
CN111510352B (en) Bus system with inquiry barrier and heartbeat state report applied to large-scale parking space management
CN105700507B (en) A kind of vehicle network diagnosis control method and device
CN106056684A (en) ETC and MTC hybrid lane system and control method
CN108983751A (en) Diagnose the method and server of connector abnormality processing
CN115695153A (en) CAN communication monitoring and automatic abnormal recovery method
CN107239068B (en) Mobile block train control method, device and system
CN209700696U (en) Adaptive axis-counting device and adaptometer axle system
CN113703839A (en) Method for managing unmanned vehicle based on mobile human-computer interaction equipment
CN114771602B (en) Method and device for setting driving turnout
JP4967791B2 (en) Elevator automatic recovery device during earthquake
CN114740814A (en) Finished automobile control method based on cloud control system, cloud control system and electric framework

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant