The debugging simulation system and the method that are used for the remote monitoring terminal of subway safe door systemTechnical field
The present invention relates to subway safe door system, relate to be used for the debugging simulation system and the method for the remote monitoring terminal of subway safe door system in particular.
Background technology
In the debug process of the remote monitoring terminal of the subway safe door of routine, some emergency exits 1, main supervisory control system 2, remote monitoring terminal 3, material object need be set up debugging enironment usually, as shown in Figure 1.The data of each emergency exit 1 and the data of unit (PEDC) controller below emergency exit master supervisory control system 2 will be gathered by bus are handled then and state information are sent to remote monitoring terminal 3, show on the screen of remote monitoring terminal 3.So way has caused a lot of inconveniences, for example:
1, the investment of equipment
At least needing cover door control devices and one is that core " the main supervisory control system " formed is as data source by the technical grade computer.
2, influence the construction cycle
Debugging is when " terminal monitors terminal ", and the material object assembling that needs to wait for " main supervisory control system " finishes, and with the technical grade computer networking of " terminal monitor " after can carry out, and can not be with the exploitation of " main supervisory control system " parallel or in advance.
3, debugging inconvenience
Because " main supervisory control system " is the one group of electric material object that comprises operating software that is positioned at industry spot, contain: technical grade computer and control cubicle, several door machine controllers, networking component etc., during debugging " remote monitoring terminal ", must dock just and can finish with " main supervisory control system ", cause programmer's work under bad environment, development efficiency is low.
4, arbitrarily create signal
Because the signal of " main supervisory control system " is to be produced by hardware, the generation of signal produces according to the rule of the normal operation of screen door, be not easy to imitate fault or produce signal fast, be difficult to do the data processing test of mass data input like this, can't know the load-bearing capacity of system.And utilize analogue system that logic OR generation signal at random can be arranged, and the speed length that can control signal produces, so just effectively coupled system is tested.
Summary of the invention
The technical problem to be solved in the present invention is, need the defective of debugging enironment in kind at the debugging of the remote monitoring terminal of existing subway emergency exit, provide a kind of and need not to build debugging enironment in kind, be used for the analogue system of the remote monitoring terminal debugging of subway safe door system.
Another technical problem to be solved by this invention is, need the defective of debugging enironment in kind at the adjustment method of the remote monitoring terminal of existing subway emergency exit, provide a kind of and need not to build debugging enironment in kind, be used for the emulation mode of the remote monitoring terminal debugging of subway safe door system.
The technical solution adopted for the present invention to solve the technical problems is: construct a kind of debugging simulation system that is used for the remote monitoring terminal of subway safe door system, comprising:
Signal simulator is used to simulate the safety door system signal that produces described subway safe door; And
Signal converter is used for becoming signal message to import described remote monitoring terminal into the safety door system conversion of signals that described signal simulator produces.
In debugging simulation system of the present invention, described signal converter is serial ports/Ethernet transducer; Described serial ports/Ethernet transducer is connected communication by serial ports with described signal simulator, and is connected communication by Ethernet interface with described remote monitoring terminal.
In debugging simulation system of the present invention, described signal simulator comprises:
Manually input module is used for manually importing described safety door system signal;
The logic generation module is used for generating described safety door system signal by setting logic; And
Generation module is used for generating at random described safety door system signal at random.
The present invention solves the technical scheme that its another technical problem adopts: construct a kind of debugging emulation method that is used for the remote monitoring terminal of subway safe door system, may further comprise the steps:
S1: generate the safety door system signal by signal simulator;
S2: according to request signal described safety door system signal is packaged into correct signal message, perhaps forms the signal message that reports an error;
S3: utilize PORT COM to be sent to the remote monitoring terminal of emergency exit described signal message, simulate supervision and debugging.
In debugging emulation method of the present invention, in described step S1,, generate described safety door system signal by manual input signal; Perhaps, generate described safety door system signal by the logic of setting; Perhaps, by generating described safety door system signal at random.
In debugging emulation method of the present invention, in described step S2, the network communication protocol according to selecting is packaged into signal message with described safety door system signal; In described step S3, the PORT COM by corresponding with described network communication protocol is sent to described remote monitoring terminal with described signal message.
In debugging emulation method of the present invention, in described step S2, described safety door system signal sends to serial ports/Ethernet transducer by serial ports, and converts described safety door system signal encapsulation to the ethernet signal message by described serial ports/Ethernet transducer;
In described step S3, described ethernet signal message is sent to described remote monitoring terminal by ethernet port.
In debugging emulation method of the present invention, described emulation mode also comprises step S4: described remote monitoring terminal regularly sends request signal to described signal simulator;
S5: described signal simulator compares request signal and the described safety door system signal that receives, when described request signal and described safety door system aligned phase signal, carry out described step S2, described safety door system signal is packaged into correct signal message; When described request signal and described safety door system signal are inconsistent, carry out described step S2, described signal simulator forms the signal message that reports an error.
In debugging emulation method of the present invention, comprise emergency exit function code sign in the described safety door system signal; Described request signal comprises the interrogation function marking code; In described step S5,, judge whether described request signal is consistent with described safety door system signal by contrasting described emergency exit function code sign and interrogation function marking code.
Adopt analogue system and the method that is used for the remote monitoring terminal debugging of subway safe door system of the present invention to have following beneficial effect: to produce the safety door system signal by the signal simulator simulation, and import conversion of signals into remote monitoring terminal by signal converter, remote monitoring terminal is debugged, the defective of having avoided prior art need build debugging enironment in kind has that equipment investment is few, the construction cycle is short, debugging is convenient and can arbitrarily produce the advantage that the safety door system signal is debugged.
Description of drawings
The invention will be further described below in conjunction with drawings and Examples, in the accompanying drawing:
Fig. 1 is the upper location supervisory schematic network structure;
Fig. 2 is a signal formation logic internal structure schematic diagram;
Fig. 3 is a monitoring terminal debugging simulation system schematic flow sheet.
Embodiment
As shown in Figure 2, be first embodiment of analogue system of the present invention, be used for the debugging of theremote monitoring terminal 30 of subway safe door system.This analogue system comprisessignal simulator 10 and signal converter 20.Signal simulator 10 is used to simulate the safety door system signal that produces subway safe door, bysignal converter 20 conversions, importsremote monitoring terminal 30 then into, carries out the debugging toremote monitoring terminal 30.
In the present embodiment, thissignal simulator 10 comprisesmanual input module 11,logic generation module 12 andgeneration module 13 at random.Wherein, manuallyinput module 11 is by manual operation input safety door system signal, and the user can select to generate specific signal as required;Logic generation module 12, generate the safety door system signal by setting logic, for example according to real system operation conditions braiding logic voluntarily, for example train arrival interval, emergency exit fault produce interval, train arrival time departure or the like, produce periodic signal, the normal operation of emulation subway is used for emulation and normally moves debugging; Andgeneration module 13 at random, periodic automated randomized generation safety door system signal is used for power system capacity and load debugging.
The safety door system signal that generates has replaced the existing debugging enironment of setting up in kind, thereby has reduced investment that input in kind brings, has shortened the construction cycle, made things convenient for debugging, and can generate signal as required, carries out the debugging of different conditions.Wherein the safety door system signal can be the issuable signal of various existing safety door systems, and table 1 has been listed the data of part safety door system signal, generates bysignal simulator 10.
The tabulation of table 1 safety door system signal
The safety door system conversion of signals one-tenth thatsignal converter 20 is used for thatsignal simulator 10 is produced meets the signal of network communication protocol, importsremote monitoring terminal 30 into by network interface again.In the present embodiment,signal converter 20 adopts serial ports/Ethernet commutator, is connected communication by serial ports withsignal simulator 10, and is connected communication by Ethernet interface withremote monitoring terminal 30, and its network communication protocol adopts the Modbus communications protocol.Signalsimulator 10 is as slave station, andremote monitoring terminal 30 is as main website.The safety door system signal thatsignal simulator 10 generates is sent to serial ports/Ethernet transducer by serial ports, serial ports/Ethernet transducer is packaged into signal message with the safety door system signal according to the Modbus communications protocol, be sent toremote monitoring terminal 30 by Ethernet interface, simulate supervision, debugging byremote monitoring terminal 30.
Understandable, because subway safe door system may be used variety of protocol, as Profibus, Modbus, ArcNet ... these different agreements have different packaged types, and according to the signal communication interface standard certain packing rule is arranged also, thereby safety door system signal demand process encapsulation process, promptly the safety door system signal is formed the signal message of a string length by protocol format.In addition, the signal message of formation can select port to send according to different connecting mode, Ethernet interface for example, com port, parallel port, special Communication Card etc.
In one embodiment,signal simulator 10,signal converter 20 andremote monitoring terminal 30 are arranged in same the computer, by general serial communicationcable signal simulator 10 is connected withsignal converter 20, utilizes the receipts certainly of serial ports spontaneous, realize the transmission of signal message.Understandable,signal simulator 10 also can be arranged in the different computers withsignal converter 20, and the PORT COM by correspondence connects communication, can realize the present invention equally.
As shown in Figure 3, be an idiographic flow of debugging emulation method of the present invention.
At first, generate safety door system signal (step S3-1) by signal simulator.The safety door system signal can according to reality debug demand, generate or generate at random corresponding safety door system signal by manual input or by the logic of setting.
Then, the safety door system signal is packaged into correct signal message, perhaps forms the signal message that reports an error according to request signal.At last signal message is utilized PORT COM to be sent to the remote monitoring terminal of emergency exit, simulate supervision and debugging.In the present embodiment, signal converter adopts serial ports/Ethernet transducer, and adopt the Modsbus communications protocol to carry out communication, thereby, the safety door system signal that signal simulator generates sends by serial ports, serial ports/Ethernet transducer converts the safety door system signal that serial ports sends over to the ethernet signal message according to the Modsbus communications protocol, via ethernet port the ethernet signal message is sent to remote monitoring terminal.
Understandable, communications protocol can be selected Profibus, Modbus, any among the ArcNet etc. for use; And PORT COM can be selected Ethernet interface for use, com port, parallel port, any in the special Communication Card etc.; Signal simulator can be sent to signal converter with the safety door system signal by in serial ports, bus, the parallel port etc. any.Communications protocol, PORT COM, connectivity port etc. can be selected according to the actual needs.
In the present embodiment, because remote monitoring terminal is a main website, and signal simulator is as slave station.Therefore, remote monitoring terminal with the time of setting (for example 500 milliseconds) regular send request signal (step S3-2) to signal simulator; Signal simulator is when receiving request signal, the safety door system signal of request signal and generation is compared, for example, the interrogation function marking code is set in request signal, emergency exit function code sign is set in the safety door system signal, by contrast interrogation function marking code and emergency exit function code sign, judge request signal and safety door system signal whether consistent (step S3-3).When request signal and safety door system aligned phase signal, signal converter is packaged into correct signal message (step S3-4) with the safety door system signal, sends to remote monitoring terminal (step S3-6); When request signal and safety door system signal were inconsistent, signal simulator formed the signal message (step S3-5) that reports an error, and was sent to remote monitoring terminal (step S3-6) by the signal converter conversion.
Understandable, remote monitoring terminal can be made as slave station, and signal simulator is made as main website, the signal simulator generation safety door system signal that will continue so, and convert sending that signal message continues to remote monitoring terminal by signal converter, monitor and debug by remote monitoring terminal.