CN113282280A - Function-extensible-oriented universal signal equipment interaction method, equipment and medium - Google Patents
Function-extensible-oriented universal signal equipment interaction method, equipment and medium Download PDFInfo
- Publication number
- CN113282280A CN113282280A CN202110675404.0A CN202110675404A CN113282280A CN 113282280 A CN113282280 A CN 113282280A CN 202110675404 A CN202110675404 A CN 202110675404A CN 113282280 A CN113282280 A CN 113282280A
- Authority
- CN
- China
- Prior art keywords
- wsic
- message
- interface
- member variable
- function
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 57
- 230000003993 interaction Effects 0.000 title claims abstract description 9
- 238000012545 processing Methods 0.000 claims abstract description 13
- 230000006870 function Effects 0.000 claims description 52
- 239000011800 void material Substances 0.000 claims description 24
- 230000003068 static effect Effects 0.000 claims description 15
- 238000004590 computer program Methods 0.000 claims description 7
- 230000008569 process Effects 0.000 claims description 7
- 238000013459 approach Methods 0.000 claims description 3
- 238000012423 maintenance Methods 0.000 claims description 3
- 230000000737 periodic effect Effects 0.000 claims description 3
- 230000004048 modification Effects 0.000 abstract description 6
- 230000008859 change Effects 0.000 abstract description 4
- 238000012986 modification Methods 0.000 abstract description 4
- 238000013461 design Methods 0.000 description 7
- 238000004891 communication Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 3
- 238000011161 development Methods 0.000 description 2
- 230000007547 defect Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000011664 signaling Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/20—Software design
- G06F8/24—Object-oriented
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/31—Programming languages or programming paradigms
- G06F8/315—Object-oriented languages
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computing Systems (AREA)
- Telephone Function (AREA)
Abstract
The invention relates to a function-extensible universal signal equipment interaction method, equipment and a medium, wherein the method comprises the following steps: step 101, designing a general data structure through software, and storing basic information and state values of different types of signal equipment; 102, designing a corresponding interface configuration file according to interface definition between signal systems; 103, designing an internal message structure according to the interface configuration file and the universal message interface; 104, expanding and configuring interfaces among signal systems with the same structure; 105, if the number of the devices of the same signal system interface changes, directly expanding and configuring the interface configuration file; and step 106, if only a new device type is introduced, modifying the software to increase the processing flow of the device. Compared with the prior art, the invention has higher flexibility, and under the condition that no new equipment type is introduced, the expansion of the signal equipment does not need to modify software, and the interface change can be realized through configuration modification.
Description
Technical Field
The invention relates to a train signal control system, in particular to a function-extensible universal signal equipment interaction method, equipment and a medium.
Background
The signal system of urban rail transit is huge and complex, the information interaction between subsystems is frequent and changeable, if the interface change occurs in the current stage, the software modification is basically realized, but the software modification has the following key technical problems:
1) the development and test costs are high.
2) The more modifications, the greater the chance of error.
3) And the readability and maintainability of the code are low.
In order to solve the above problems, enterprises put higher demands on the generalization of system interfaces, but no better solution exists at present.
Disclosure of Invention
The invention aims to overcome the defects in the prior art and provide a function-oriented extensible universal signal equipment interaction method, equipment and medium, and by combining the characteristics of relatively fixed equipment types and more equipment quantity changes of a rail transit signal system, the function-oriented universal extension function of the signal equipment is realized through software data structure design and interface file configuration.
The purpose of the invention can be realized by the following technical scheme:
according to a first aspect of the present invention, there is provided a function-extensible universal signal device interaction method, comprising the steps of:
step 101, designing a general data structure through software, and storing basic information and state values of different types of signal equipment;
102, designing a corresponding interface configuration file according to interface definition between signal systems;
103, designing an internal message structure according to the interface configuration file and the universal message interface;
104, expanding and configuring interfaces among signal systems with the same structure;
105, if the number of the devices of the same signal system interface changes, directly expanding and configuring the interface configuration file;
and step 106, if only a new device type is introduced, modifying the software to increase the processing flow of the device.
As a preferred technical solution, the interface configuration file in step 102 includes a device type, a number, a message field type, and a length.
As a preferred technical solution, for the ATS signal system, the data structure common to design includes:
MessageItem, defining an interface message entry class;
StatusMessage, status message definition class;
WSICStatus, interface status information of the WSIC system and the ATS system;
WSICControl, interface control information of the WSIC system and the ATS system;
WSICInterface, WSIC interface class, maintains all control and state with the WSIC.
As a preferred technical solution, the MessageItem includes:
a member variable, major Type string;
a member variable, SubType SubType ═ string;
a member variable, namely equipment number Id string;
a member variable, wherein the length of an occupied code bit BitCount is BYTE;
the member variable, the current Value UINT.
As a preferred technical solution, the StatusMessage includes:
the member variable status content, the structural definition of the message;
a member variable status length is USHORT, a cache length of the current state message;
a member variable status BUFFER is BYTE [ MAX _ MSG _ BUFFER _ LEN ], and the current message is cached;
the member function vritual int readfrompbuffer (string buffer) is 0, and a pure-virtual function reads the message content from a cache, successfully returns 0, and unsuccessfully returns an error code smaller than 0.
As a preferred technical solution, the WSICStatus includes: and the member function vritual int ReadFromBuffer (string buffer) reads the WSIC state message content from a cache, successfully returns 0, and unsuccessfully returns an error code smaller than 0.
As a preferred technical solution, the WSICControl includes:
a WSIC controls a message structure, with a member variable controlContent being a messageitemtarray;
controlling the cache length of code bits by a member variable controlLength as USHORT;
controlling the code bit caching by a member variable controlBuffer (BYTE [ MAX _ MSG _ BUFFER _ LEN ]);
acquiring a control message of the current WSIC by using a member function string GetControlString ();
a member function int ControlBitSetting (USHORT openBitmap) sets a relative control code bit in the control message according to the bit number of the operation code, successfully returns 0, and unsuccessfully returns an error code smaller than 0;
a member function int ControlBitUnsetting (USHORT operBitmap) resets a relative control code bit in the control message according to the bit number of the operation code, successfully returns 0, and unsuccessfully returns an error code smaller than 0;
a member function void SetControlBufferLength (USHORT buffer Length) is used for setting the cache length of the control message;
and a member function, namely, a pool control bitget (USHORT openBitmap), acquires whether a certain control code bit is set or not.
As a preferred technical solution, the wsici nterface includes:
the member variable ID is USHORT, ID of WSIC;
a member variable commandManager, which is a WSIC commandManager, WSIC interface command management class;
the member variable wsicStatus is WSICStatus, and the status message information of the WSIC;
the member variable wsicControl is WSICControl, and the WSIC controls message information;
a member function void IntializaeWSICControl (WSICControl & wsICControl), which initializes the wsICControl variable of the WSIC;
a member function void IntializaeWSICStatus (WSICStatus & wsicStatus) initializes a wsicStatus variable of the WSIC;
a member function void process WSICStatus (string status string) processes a state message sent by the WSIC;
a member function void ProcessWSICControl (AtsWSICCommand & command) for processing an operation command aiming at the WSIC device;
a member function void ProcessCycleoperation (), which is used for processing the event that the WSIC needs periodic operation;
the member function void SendControl () sends a control message to the WSIC;
and the member function void forward status () sends the state message to the master control server.
As a preferred technical solution, the step 102 specifically comprises the following steps:
step 1021, configuring signal system type, serial number and message type;
step 1022, configuring the type, subtype, device ID, and length of code occupation bit of the interface device;
in step 1023, an internal message structure is designed.
As a preferred technical solution, for the traffic signal, the designing the internal message structure includes:
ATSDevice, ATS device base class;
SwichDevice, turnout device class;
ATSDeviceArray, ATS device class set;
ATSDeviceTypeMap, each device set with device type as main key;
ATSDeviceWSIC, each type of equipment set with WSIC number as a main key;
ATSDeviceManager, ATS equipment maintenance class.
As a preferred technical solution, the ATSDevice includes:
the member variable Type is UINT, device Type;
the member variable Name string, the device Name;
the member variable StaionId is USHORT, and the equipment belongs to a small station;
the member variable WSICId USHORT, WSIC to which the device belongs.
As a preferred technical solution, the SwichDevice includes:
a member variable SetNormal ═ UINT, the positioning opcode bit number;
a member variable setrevser ═ UINT, inverted opcode bit number;
a member variable CalledOrmal which is UINT, and the number of the positioning operation feedback code bit;
a member variable CalledReverse is UINT, and the number of the bit of the feedback code of the inverted operation is the same as that of the bit of the UINT;
a member variable DetectNormal ═ UINT, and the number of the positioning state code bits;
the member variable detecteverse, UINT, inverted status code bit number.
As a preferred technical solution, the atsdevicemomager includes:
a static member variable _ ATSDevices ═ ATSDeviceWSIC, a device of the maintained full-line WSIC;
loading a function of ATS equipment in the interface file by using a static global method int Load (), successfully returning 0, and otherwise, returning an error code smaller than 0;
the method comprises the steps that (1) a static global method int Clear () is used, relevant resources are released when software exits, 0 is successfully returned, and otherwise, an error code smaller than 0 is returned;
static Global approach Switchdevice GetSwitchdevice (USHORT wsicld, USHORT bitmap)
Acquiring a turnout equipment pointer according to the wsic number and the equipment code bit;
and loading turnout equipment by using a static private method int LoadSwitch () and successfully returning to 0, otherwise, returning an error code smaller than 0.
As a preferred technical solution, for a signal system, only increasing the number of subsystems can expand a plurality of subsystems in a configuration file, and if signal devices of the same type are added, a plurality of signal devices can also be configured and expanded.
According to a second aspect of the invention, there is provided an electronic device comprising a memory having stored thereon a computer program and a processor implementing the method when executing the program.
According to a third aspect of the invention, a computer-readable storage medium is provided, on which a computer program is stored which, when being executed by a processor, carries out the method.
Compared with the prior art, the invention has higher flexibility, and under the condition that no new equipment type is introduced, the expansion of the signal equipment does not need to modify software, and the interface change can be realized through configuration modification, thereby reducing the development cost.
Drawings
FIG. 1 is a flow chart of the method of the present invention.
FIG. 2 is a diagram of the data structure of the interface between signal systems.
FIG. 3 is a raster diagram of an interface configuration file.
Fig. 4 is a diagram of the internal data structure of the signaling system.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, shall fall within the scope of protection of the present invention.
The invention relates to a function-extensible universal signal equipment interaction method, which comprises the following steps:
step 101, designing a general data structure through software, and storing basic information and state values of different types of signal equipment;
102, designing a corresponding interface configuration file according to interface definition between signal systems;
103, designing an internal message structure according to the interface configuration file and the universal message interface;
104, expanding and configuring interfaces among signal systems with the same structure;
105, if the number of the devices of the same signal system interface changes, directly expanding and configuring the interface configuration file;
and step 106, if only a new device type is introduced, modifying the software to increase the processing flow of the device.
1: designing a software general signal equipment interface:
the MessageItem defines an interface message entry class that includes:
member variable major Type string
SubType ═ string of member variable SubType
Member variable device number Id string
Member variable occupation code bit length BitCount ═ BYTE
The current Value of the member variable, Value ═ UINT
MessageItemArray interface message entry class set (an interface message definition)
typedef vector<MessageItem>;
StatusMessage status message definition class
The member variable status content, the structural definition of the message;
a member variable status length is USHORT, a cache length of the current state message;
a member variable status BUFFER is BYTE [ MAX _ MSG _ BUFFER _ LEN ], and the current message is cached;
a member function vritual int readfrompbuffer (string buffer) is 0, a pure-virtual function reads message content from a cache, successfully returns 0, and unsuccessfully returns an error code smaller than 0;
interface status information class of WSICStatus, WSIC system and ATS system
A member function vritual int readfrompbuffer (string buffer) reads the content of the WSIC state message from a cache, successfully returns 0, and unsuccessfully returns an error code smaller than 0;
interface control information class of WSICControl, WSIC system and ATS system
A WSIC controls a message structure, with a member variable controlContent being a messageitemtarray;
controlling the cache length of code bits by a member variable controlLength as USHORT;
controlling the code bit caching by a member variable controlBuffer (BYTE [ MAX _ MSG _ BUFFER _ LEN ]);
acquiring a control message of the current WSIC by using a member function string GetControlString ();
a member function int ControlBitSetting (USHORT openBitmap) sets a relative control code bit in the control message according to the bit number of the operation code, successfully returns 0, and unsuccessfully returns an error code smaller than 0;
a member function int ControlBitUnsetting (USHORT operBitmap) resets a relative control code bit in the control message according to the bit number of the operation code, successfully returns 0, and unsuccessfully returns an error code smaller than 0;
a member function void SetControlBufferLength (USHORT buffer Length) is used for setting the cache length of the control message;
a member function, namely, a pool control bitget (USHORT openBitmap) to obtain whether a certain control code bit is set or not;
WSICInterface, WSIC interface class, maintain all control and state with WSIC
The member variable ID is USHORT, ID of WSIC;
a member variable commandManager, which is a WSIC commandManager, WSIC interface command management class;
the member variable wsicStatus is WSICStatus, and the status message information of the WSIC;
the member variable wsicControl is WSICControl, and the WSIC controls message information;
a member function void IntializaeWSICControl (WSICControl & wsICControl), which initializes the wsICControl variable of the WSIC;
a member function void IntializaeWSICStatus (WSICStatus & wsicStatus) initializes a wsicStatus variable of the WSIC;
a member function void process WSICStatus (string status string) processes a state message sent by the WSIC;
a member function void ProcessWSICControl (AtsWSICCommand & command) for processing an operation command aiming at the WSIC device;
a member function void ProcessCycleoperation (), which is used for processing the event that the WSIC needs periodic operation;
the member function void SendControl () sends a control message to the WSIC;
and the member function void forward status () sends the state message to the master control server.
The design between the ATS and other systems can be multiplexed, and the relative method can be modified.
2. According to the interface document between signal systems and general design definition interface configuration file,
a. configuring a signal system type, a number and a message type;
b. configuring interface device type, subtype, device ID, length of occupied code bit
3. Designing an internal message structure, taking a signal machine as an example:
ATSDevice, ATS device base class
The member variable Type is UINT, device Type;
the member variable Name string, the device Name;
the member variable StaionId is USHORT, and the equipment belongs to a small station;
a member variable WSICId is USHORT, and the device belongs to WSIC;
SwichDevice, Turnout device class
A member variable SetNormal ═ UINT, the positioning opcode bit number;
a member variable setrevser ═ UINT, inverted opcode bit number;
a member variable CalledOrmal which is UINT, and the number of the positioning operation feedback code bit;
a member variable CalledReverse is UINT, and the number of the bit of the feedback code of the inverted operation is the same as that of the bit of the UINT;
a member variable DetectNormal ═ UINT, and the number of the positioning state code bits;
a member variable detectreesserse ═ UINT, the inverted state code bit number;
ATSDeviceArray, ATS device class set
typedef vector<ATSDevice*>;
ATSDeviceTypeMap, device set with device type as primary key
typedef map<USHORT,ATSDeviceArray>;
ATSDeviceWSIC, various types of equipment sets with WSIC number as main key
typedef map<USHORT,ATSDeviceTypeMap>
ATSDeviceManager ATS device maintenance class;
a static member variable _ ATSDevices ═ ATSDeviceWSIC, a device of the maintained full-line WSIC;
loading a function of ATS equipment in the interface file by using a static global method int Load (), successfully returning 0, and otherwise, returning an error code smaller than 0;
the method comprises the steps that (1) a static global method int Clear () is used, relevant resources are released when software exits, 0 is successfully returned, and otherwise, an error code smaller than 0 is returned;
static Global approach Switchdevice GetSwitchdevice (USHORT wsicld, USHORT bitmap)
Acquiring a turnout equipment pointer according to the wsic number and the equipment code bit;
loading turnout equipment by using a static private method int LoadSwitch () and successfully returning to 0, otherwise, returning an error code smaller than 0;
4. for a signal system, only the number of newly added subsystems can be increased by referring to S2 in a configuration file, for example, a plurality of subsystems are newly added with the same type of signal devices, or a plurality of signal devices are configured and increased by referring to S2.
The invention provides a function-oriented extensible universal signal equipment interaction method, which is characterized in that according to the characteristics of fixed equipment types and frequent equipment quantity change of a rail transit signal system, a system interface is subjected to universal structural design, an internal structure is subjected to structural design aiming at equipment, and the extensible function of signal equipment is realized.
The invention is further illustrated with reference to fig. 1, the method of the invention comprising the following implementation steps:
1. according to the characteristics of interfaces between systems, interface message entry classes are defined, including message types, sub-types, device numbers, code bit lengths, and state values, one interface message defines an interface message entry set, different information classes are defined according to state messages and command messages, and finally a system interface class is defined for maintaining and managing all messages related to the system, which can refer to fig. 2.
2. Defining interface configuration files including signal system types, numbers and message types according to interface documents among signal systems and general design; interface device type, subtype, device number, occupied length. Reference may be made to fig. 3.
3. According to the step 1 and the step 2, defining an internal message structure, and adding the device type, the device method and the subsystem information of the device. Reference may be made to fig. 4.
4. If the number of the devices needing to be newly added is larger than the number of the devices needing to be newly added, the devices can be directly added in the configuration file according to the existing format without modifying software.
The above is a description of method embodiments, and the scheme of the present invention is further illustrated below by means of apparatus embodiments.
The inventive apparatus comprises a Central Processing Unit (CPU) which may perform various suitable actions and processes in accordance with computer program instructions stored in a Read Only Memory (ROM) or loaded from a storage unit into a Random Access Memory (RAM). In the RAM, various programs and data required for the operation of the device can also be stored. The CPU, ROM, and RAM are connected to each other via a bus. An input/output (I/O) interface is also connected to the bus.
A plurality of components in the device are connected to the I/O interface, including: an input unit such as a keyboard, a mouse, etc.; an output unit such as various types of displays, speakers, and the like; storage units such as magnetic disks, optical disks, and the like; and a communication unit such as a network card, modem, wireless communication transceiver, etc. The communication unit allows the device to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
The processing unit executes the respective methods and processes described above, for example, methods S101 to S106. For example, in some embodiments, methods S101-S106 may be implemented as a computer software program tangibly embodied in a machine-readable medium, such as a storage unit. In some embodiments, part or all of the computer program may be loaded and/or installed onto the device via ROM and/or the communication unit. When the computer program is loaded into RAM and executed by the CPU, one or more of the steps of methods S101-S106 described above may be performed. Alternatively, in other embodiments, the CPU may be configured to perform methods S101-S106 by any other suitable means (e.g., by way of firmware).
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), an Application Specific Standard Product (ASSP), a system on a chip (SOC), a load programmable logic device (CPLD), and the like.
Program code for implementing the methods of the present invention may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
While the invention has been described with reference to specific embodiments, the invention is not limited thereto, and various equivalent modifications and substitutions can be easily made by those skilled in the art within the technical scope of the invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (16)
1. A function-extensible universal signal equipment interaction method is characterized by comprising the following steps:
step 101, designing a general data structure through software, and storing basic information and state values of different types of signal equipment;
102, designing a corresponding interface configuration file according to interface definition between signal systems;
103, designing an internal message structure according to the interface configuration file and the universal message interface;
104, expanding and configuring interfaces among signal systems with the same structure;
105, if the number of the devices of the same signal system interface changes, directly expanding and configuring the interface configuration file;
and step 106, if only a new device type is introduced, modifying the software to increase the processing flow of the device.
2. The method as claimed in claim 1, wherein the interface configuration file in step 102 includes device type, number, message field type, and length.
3. The method for interacting function-oriented extensible universal signal device according to claim 1, wherein for the ATS signal system, the designing a universal data structure comprises:
MessageItem, defining an interface message entry class;
StatusMessage, status message definition class;
WSICStatus, interface status information of the WSIC system and the ATS system;
WSICControl, interface control information of the WSIC system and the ATS system;
WSICInterface, WSIC interface class, maintains all control and state with the WSIC.
4. The function-extensible universal signal device interaction method of claim 3, wherein the MessageItem comprises:
a member variable, major Type string;
a member variable, SubType SubType ═ string;
a member variable, namely equipment number Id string;
a member variable, wherein the length of an occupied code bit BitCount is BYTE;
the member variable, the current Value UINT.
5. The method of claim 3, wherein the StatusMessage comprises:
the member variable status content, the structural definition of the message;
a member variable status length is USHORT, a cache length of the current state message;
a member variable status BUFFER is BYTE [ MAX _ MSG _ BUFFER _ LEN ], and the current message is cached;
the member function vritual int readfrompbuffer (string buffer) is 0, and a pure-virtual function reads the message content from a cache, successfully returns 0, and unsuccessfully returns an error code smaller than 0.
6. The function-extensible universal signal device interaction method of claim 3, wherein the WSICStatus comprises: and the member function vritual int ReadFromBuffer (string buffer) reads the WSIC state message content from a cache, successfully returns 0, and unsuccessfully returns an error code smaller than 0.
7. The function-extensible generic signal device interaction method of claim 3, wherein the WSICControl comprises:
a WSIC controls a message structure, with a member variable controlContent being a messageitemtarray;
controlling the cache length of code bits by a member variable controlLength as USHORT;
controlling the code bit caching by a member variable controlBuffer (BYTE [ MAX _ MSG _ BUFFER _ LEN ]);
acquiring a control message of the current WSIC by using a member function string GetControlString ();
a member function int ControlBitSetting (USHORT openBitmap) sets a relative control code bit in the control message according to the bit number of the operation code, successfully returns 0, and unsuccessfully returns an error code smaller than 0;
a member function int ControlBitUnsetting (USHORT operBitmap) resets a relative control code bit in the control message according to the bit number of the operation code, successfully returns 0, and unsuccessfully returns an error code smaller than 0;
a member function void SetControlBufferLength (USHORT buffer Length) is used for setting the cache length of the control message;
and a member function, namely, a pool control bitget (USHORT openBitmap), acquires whether a certain control code bit is set or not.
8. The function-extensible universal signal device interaction method according to claim 3, wherein the WSICInterface comprises:
the member variable ID is USHORT, ID of WSIC;
a member variable commandManager, which is a WSIC commandManager, WSIC interface command management class;
the member variable wsicStatus is WSICStatus, and the status message information of the WSIC;
the member variable wsicControl is WSICControl, and the WSIC controls message information;
a member function void IntializaeWSICControl (WSICControl & wsICControl), which initializes the wsICControl variable of the WSIC;
a member function void IntializaeWSICStatus (WSICStatus & wsicStatus) initializes a wsicStatus variable of the WSIC;
a member function void process WSICStatus (string status string) processes a state message sent by the WSIC;
a member function void ProcessWSICControl (AtsWSICCommand & command) for processing an operation command aiming at the WSIC device;
a member function void ProcessCycleoperation (), which is used for processing the event that the WSIC needs periodic operation;
the member function void SendControl () sends a control message to the WSIC;
and the member function void forward status () sends the state message to the master control server.
9. The method according to claim 1, wherein step 102 specifically comprises the following steps:
step 1021, configuring signal system type, serial number and message type;
step 1022, configuring the type, subtype, device ID, and length of code occupation bit of the interface device;
in step 1023, an internal message structure is designed.
10. The method of claim 9, wherein the designing the internal message structure for the traffic signal comprises:
ATSDevice, ATS device base class;
SwichDevice, turnout device class;
ATSDeviceArray, ATS device class set;
ATSDeviceTypeMap, each device set with device type as main key;
ATSDeviceWSIC, each type of equipment set with WSIC number as a main key;
ATSDeviceManager, ATS equipment maintenance class.
11. The method of claim 10, wherein the ATSDevice comprises:
the member variable Type is UINT, device Type;
the member variable Name string, the device Name;
the member variable StaionId is USHORT, and the equipment belongs to a small station;
the member variable WSICId USHORT, WSIC to which the device belongs.
12. The method of claim 10, wherein the SwichDevice comprises:
a member variable SetNormal ═ UINT, the positioning opcode bit number;
a member variable setrevser ═ UINT, inverted opcode bit number;
a member variable CalledOrmal which is UINT, and the number of the positioning operation feedback code bit;
a member variable CalledReverse is UINT, and the number of the bit of the feedback code of the inverted operation is the same as that of the bit of the UINT;
a member variable DetectNormal ═ UINT, and the number of the positioning state code bits;
the member variable detecteverse, UINT, inverted status code bit number.
13. The function-extensible generic signal device interaction method of claim 10, wherein the atsdevicemomager comprises:
a static member variable _ ATSDevices ═ ATSDeviceWSIC, a device of the maintained full-line WSIC;
loading a function of ATS equipment in the interface file by using a static global method int Load (), successfully returning 0, and otherwise, returning an error code smaller than 0;
the method comprises the steps that (1) a static global method int Clear () is used, relevant resources are released when software exits, 0 is successfully returned, and otherwise, an error code smaller than 0 is returned;
static Global approach Switchdevice GetSwitchdevice (USHORT wsicld, USHORT bitmap)
Acquiring a turnout equipment pointer according to the wsic number and the equipment code bit;
and loading turnout equipment by using a static private method int LoadSwitch () and successfully returning to 0, otherwise, returning an error code smaller than 0.
14. The method as claimed in claim 10, wherein the number of subsystems is increased to expand multiple subsystems in the configuration file, and if the same type of signal device is added, multiple signal devices can be configured to expand.
15. An electronic device comprising a memory and a processor, the memory having stored thereon a computer program, wherein the processor, when executing the program, implements the method of any of claims 1-14.
16. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, carries out the method according to any one of claims 1 to 14.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110675404.0A CN113282280A (en) | 2021-06-18 | 2021-06-18 | Function-extensible-oriented universal signal equipment interaction method, equipment and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110675404.0A CN113282280A (en) | 2021-06-18 | 2021-06-18 | Function-extensible-oriented universal signal equipment interaction method, equipment and medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113282280A true CN113282280A (en) | 2021-08-20 |
Family
ID=77284850
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110675404.0A Pending CN113282280A (en) | 2021-06-18 | 2021-06-18 | Function-extensible-oriented universal signal equipment interaction method, equipment and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113282280A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113918132A (en) * | 2021-12-13 | 2022-01-11 | 珠海市新德汇信息技术有限公司 | Equipment standardization management method, system, working method, device and storage medium |
CN114954585A (en) * | 2022-04-14 | 2022-08-30 | 通号城市轨道交通技术有限公司 | Method and device for expanding signal system equipment and route identification |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101515929A (en) * | 2009-03-24 | 2009-08-26 | 成都市华为赛门铁克科技有限公司 | Message format conversion method, network device and agent device |
CN109039754A (en) * | 2018-08-20 | 2018-12-18 | 新华三技术有限公司 | A kind of management method and device of the network equipment |
CN109032577A (en) * | 2018-06-27 | 2018-12-18 | 中国直升机设计研究所 | A kind of data simulation method |
CN109062617A (en) * | 2018-06-26 | 2018-12-21 | 百富计算机技术(深圳)有限公司 | A kind of application method, the mobile terminal of platform that supporting polymorphic type equipment |
CN109150631A (en) * | 2018-10-16 | 2019-01-04 | 湖南中车时代通信信号有限公司 | Rail hands over signal system emulation interface management server |
-
2021
- 2021-06-18 CN CN202110675404.0A patent/CN113282280A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101515929A (en) * | 2009-03-24 | 2009-08-26 | 成都市华为赛门铁克科技有限公司 | Message format conversion method, network device and agent device |
CN109062617A (en) * | 2018-06-26 | 2018-12-21 | 百富计算机技术(深圳)有限公司 | A kind of application method, the mobile terminal of platform that supporting polymorphic type equipment |
CN109032577A (en) * | 2018-06-27 | 2018-12-18 | 中国直升机设计研究所 | A kind of data simulation method |
CN109039754A (en) * | 2018-08-20 | 2018-12-18 | 新华三技术有限公司 | A kind of management method and device of the network equipment |
CN109150631A (en) * | 2018-10-16 | 2019-01-04 | 湖南中车时代通信信号有限公司 | Rail hands over signal system emulation interface management server |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113918132A (en) * | 2021-12-13 | 2022-01-11 | 珠海市新德汇信息技术有限公司 | Equipment standardization management method, system, working method, device and storage medium |
CN114954585A (en) * | 2022-04-14 | 2022-08-30 | 通号城市轨道交通技术有限公司 | Method and device for expanding signal system equipment and route identification |
CN114954585B (en) * | 2022-04-14 | 2024-04-12 | 通号城市轨道交通技术有限公司 | Method and device for expanding signal system equipment and route identification |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9104818B2 (en) | Accelerator management device, accelerator management method, and input-output device | |
CN113282280A (en) | Function-extensible-oriented universal signal equipment interaction method, equipment and medium | |
CN110019498B (en) | Log synchronization method and device, storage medium and electronic equipment | |
CN109446202A (en) | Identifier allocation method, device, server and storage medium | |
CN114358921A (en) | System switching method, apparatus, device, medium, and program product | |
CN114371914A (en) | Container IP address configuration method and device, storage medium and electronic equipment | |
CN113779004A (en) | Data verification method and device | |
CN111124291A (en) | Data storage processing method and device of distributed storage system and electronic equipment | |
CN114070889B (en) | Configuration method, traffic forwarding device, storage medium, and program product | |
CN111970349B (en) | Communication system, method, device, equipment and medium based on remote procedure call | |
US20220083485A1 (en) | Data frame interface network device | |
CN111880831A (en) | Method and device for synchronously updating server, computer equipment and storage medium | |
CN112350921A (en) | Message processing method, terminal and storage medium | |
US20040213277A1 (en) | Method and related circuit for increasing network transmission efficiency by increasing a data updating rate of a memory | |
CN116821117B (en) | Stream data processing method, system, equipment and storage medium | |
CN117527833B (en) | Data synchronization method | |
US11435912B2 (en) | Method, electronic device, and computer program product for data storage | |
CN117170722B (en) | Address discontinuity firmware upgrading method, device and system | |
CN110262756B (en) | Method and device for caching data | |
CN116821081A (en) | Method, device, equipment and storage medium for reducing network bandwidth occupation of distributed database | |
CN112003800B (en) | Method and device for exchanging and transmitting messages of ports with different bandwidths | |
CN117271666A (en) | Data synchronization method, distributed system, storage medium and electronic device | |
CN117010022A (en) | Data access control method and device, terminal equipment and storage medium | |
JPH10187523A (en) | Method and system for sharing terminal information for loosely coupled system | |
CN117785425A (en) | Method, device, equipment and storage medium for optimizing cloud data node scheduling |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20210820 |