CN104612531B - The communication response method of track traffic security mask accelerator control system - Google Patents

The communication response method of track traffic security mask accelerator control system Download PDF

Info

Publication number
CN104612531B
CN104612531B CN201410846816.6A CN201410846816A CN104612531B CN 104612531 B CN104612531 B CN 104612531B CN 201410846816 A CN201410846816 A CN 201410846816A CN 104612531 B CN104612531 B CN 104612531B
Authority
CN
China
Prior art keywords
serial ports
module
data
communication card
track
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
CN201410846816.6A
Other languages
Chinese (zh)
Other versions
CN104612531A (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.)
Chongqing Chuanyi Automation Co Ltd
Original Assignee
Chongqing Chuanyi Automation 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 Chongqing Chuanyi Automation Co Ltd filed Critical Chongqing Chuanyi Automation Co Ltd
Priority to CN201410846816.6A priority Critical patent/CN104612531B/en
Publication of CN104612531A publication Critical patent/CN104612531A/en
Application granted granted Critical
Publication of CN104612531B publication Critical patent/CN104612531B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention relates to a kind of communication response method of track traffic security mask accelerator control system, the method communicates response by control system, using specific communication card module module simultaneously as the service end of ethernet communication and the requesting party of serial communication, when the distinct methods of the client-requested to ethernet communication does difference, response is processed, and has improved the communication efficiency of module.

Description

The communication response method of track traffic security mask accelerator control system
Technical field
The present invention relates to a kind of communication and ring correlation method, particularly a kind of communication response method of track traffic security mask accelerator control system.
Background technology
Subway and light rail are as the instrument of urban transportation, and its major function is the pressure that alleviates the instrument of traffic above-ground. Along with urban track traffic is day by day fast-developing, many new techniques have obtained application, platform screen door is the facility of a kind of advanced person in modern city railway traffic engineering, is the track traffic new and high technology of the specialties such as a machinery, communication signal, electromechanical equipment monitoring. It is by train and the railway platform zone isolation of waiting, it not only can prevent that passenger from falling or jumping off causing danger of track, and can also be as energy-conservation in operation process, the high-tech technology of the functions of Environmental Safety, reduce the exchange of hot and cold air between Yu Guihang district of platform district, reduced the operation energy consumption of environment and saved operation cost.
In the facility of current many track traffics, adopt track traffic security mask door. The control of track traffic security mask door adopts control system control. In the time of the state of control system control track traffic security mask door, track controller is receiving after the order that PC sends, according to the data of order acquisition trajectory DCU module, return to PC, the operating personnel that are PC understand the state of rail safety shield door by the data returned, thereby the control such as implement to open the door, close the door.
Track controller cannot direct command track DCU module, must realize data acquisition by special specific communication card module. Special specific communication card module, after the request that receives track controller, all passes through serial ports from end by the RS485 port of serial ports main side, waits for and receives serial ports after the data of end reply, then reply to track controller. Special specific communication card module passes through Ethernet, the request receiving from track controller, all pass through track DCU module by serial ports, after special specific communication card module is made reply, then the reply data of track DCU module are sent to track controller by form by Ethernet in parking orbit DCU module. The request that this method does not receive track controller is classified, a client-requested track DCU module of scanning (each track DCU module is corresponding with the Yishanmen in compartment) of ethernet communication needs 4ms, taking a train as 6 joint compartments as example, if having swept 24 track DCU modules (is that every joint compartment has two fan doors, there are 24 fan doors in 6 joint compartments), need 96ms, its length consuming time, be unfavorable for that operating personnel make control timely and effectively, have significant limitation to realizing greater functionality.
Summary of the invention
The object of this invention is to provide a kind of communication response method of track traffic security mask accelerator control system, the method is using specific communication card module module simultaneously as the service end of ethernet communication and the requesting party of serial communication, when the distinct methods of the client-requested to ethernet communication does difference, response is processed, and has improved the communication efficiency of module.
Technical scheme of the present invention is:
The communication response method of rail safety screen door control system, the method communicates response by control system, described control system comprises PC controller, track controller, the specific communication card module that contains I/O function and track DCU module, the specific communication card module of this system is simultaneously as Ethernet service end and serial ports main side, track DCU module as serial ports from end, track controller is as ethernet client, and the method has following steps:
Step 1, track controller receives the instruction of PC controller and sends in the specific communication card module state of intercepting and while other function of executable module, and specific communication card module receives instruction, judgement:
Step 1.1, if this instruction has packet, receives packet, judges according to step 1.2, intercepts otherwise continue to return;
Step 1.2, when the instruction of reception contains packet, when these data are surrounded by the data of issuing local port,, according to step 1.3 analyzing and processing data, intercepts otherwise return;
Step 1.3, when packet is the data of issuing local port, determines whether common request, if, store the memory block of specific communication card module into, and by the data packing of specific communication card module memory block, send to track controller by ethernet communication; If not, be particular request, and preserve UDP link information, this particular request mark is set to 1, judge according to step 2;
Step 2, ethernet client judges whether client particular request mark is 1, if not 1, serial ports sends frame type and is made as general mode, judges according to step 3; If 1, be particular request, process according to step 2.1;
Step 2.1, when serial ports sends frame type while being special pattern, by clear client distinctive mark 0, customer in response end request flag is set to 1, and serial ports sends frame type and is made as client-requested pattern, judges according to step 3;
Step 3:
Judge that serial ports sends whether frame type is general mode, the common transmission frame of if so, packing, carries out according to step 3.1; If not, judging that serial ports sends whether client-requested pattern of frame type, the client-requested of if so, packing sends frame, carries out according to step 3.1, if not, enter circulation next time;
Step 3.1:
Open serial ports and send interruption, if send, open serial ports receive interruption, judge according to step 4;
Step 4:
If judgement serial ports receives, close serial ports, the data that analyzing and processing serial ports receives, if customer in response end is masked as 1, utilize the link information of preserving in step 1.3, data packing is sent to client by ethernet communication, then disconnect, bundling port, continues to intercept; If customer in response end mark is not 1, data are stored in specific communication card module memory block, circulate next time;
And so forth, specific communication card module constantly receives the instruction of PC controller, carries out above-mentioned communication response.
Ethernet interface is the ethernet interface of track controller and specific communication card module, and RS485 interface is the serial communication interface of specific communication card module and DCU module.
Described general mode is the pattern that communication card independently cycles through serial ports collection DCU data, and data will be kept in communication card memory block.
When serial ports sends frame type while being made as general mode, communication card in successively with the communication cycle state of each track DCU module.
Ethernet communication is ModbusUDP agreement and Extended Protocol.
The method of the invention was sorted out frequency and the response time of the various requests of client (track controller), be divided into common request and particular request, different requests has been done to different response processing, that is: server (special specific communication card module) is high to request frequency, the speed of response requires high data, by serial ports, DCU is carried out to reading of cyclic periodicity, and serial ports is saved in to memory space from the data of end response, once client has the request of this respect, just read and return to client from memory space immediately; And to the not high data of request frequency immediately from serial ports from end reading out data and return to client, the situation of this request is just to there will be in the time that PC has manual operation. This communication process mode has not only ensured real-time, and has greatly shortened DCU sweep time (scan 24 DCU and only need 14ms), and has greatly dwindled the limitation to realizing multi-functional control. Make client track controller can faster data parameters be given to upper strata PC controller, thereby control more quickly and accurately track DCU, and control switch and the various state of track shield door, during as open and close door, occur artificial half-open, off status etc.
The method of the invention, through practical proof, in the time that client is common requirement, scans equally 24 DCU and only needs 14ms; In the time of the non-service end storage area data of data of client-requested (particular request), service end is obtained data and is returned to client from end DCU to serial ports by serial ports, under the condition that is 115200bps in baud rate, maximum duration be 17.8ms(usually occur in PC manual operation time), control and reserved the sufficient time for other functions (as lamp etc. is installed on door), and provide sizable possibility to Function Extension.
The method of the invention needs experiment in track PLC device, and continuous communiction does not go out error 1,000,000 times, therefore has advantages of that dependability is high.
The method of the invention, easy to operate in addition, traffic rate and efficiency advantages of higher.
Brief description of the drawings
Fig. 1 is control system frame diagram;
Fig. 2 is the specific communication module frame chart that contains I/O function;
Fig. 3 is track specific communication card module flow chart;
Fig. 4 is the judgement of ethernet communication module status and switching function flow chart;
Fig. 5 is that serial ports transmission frame type arranges module status judgement and switching function flow chart;
Fig. 6 is serial data packing and the judgement of sending module state and switching function flow chart;
Fig. 7 is that serial ports receives data processing and the judgement of customer in response end request module state and customer in response end request function flow chart;
Fig. 8 is the duty for the treatment of the data register of specific communication card module request in DCU.
Detailed description of the invention
The communication response method of track traffic security mask accelerator control system adopts control system to communicate response. Described control system comprises PC controller, track controller, the specific communication card module that contains I/O function and track DCU module. Wherein track controller is as ethernet client, and specific communication card module is simultaneously as Ethernet service end and serial ports main side, and track DCU module is that serial ports is from end (referring to Fig. 1). Ethernet interface is the ethernet interface of track controller and specific communication card module, and RS485 interface is the serial communication interface (referring to Fig. 2) of specific communication card module and DCU module. Specific communication card module comprises that ethernet communication (Software for Design) module, serial ports send frame type module, serial data packing and sending module, serial ports reception data processing and customer in response end request module (referring to Fig. 3) are set. Below track controller is called for short to controller and also claims client, track specific communication card module is called for short communication card and also claims service end, and track DCU module is called for short DCU.
Ethernet interface is the ethernet interface of track controller and specific communication card module, and RS485 interface is the serial communication interface of specific communication card module and DCU module.
The ethernet communication that the present invention adopts is ModbusUDP agreement and Extended Protocol.
The communication response method of track traffic security mask accelerator control system, carry out according to following steps:
Ethernet communication Software for Design module. State judgement and switching function flow process as shown in Figure 4, are regularly called this function in major cycle.
Step 1, when track controller receives the instruction of PC controller and sends in the specific communication card module state of intercepting and while other function of executable module, specific communication card module receives instruction, judgement:
Step 1.1, if this instruction has packet, receives packet, judges according to step 1.2, intercepts otherwise continue to return; Described packet is 1 frame data.
Step 1.2, when the instruction of reception contains packet, when these data be surrounded by issue local port (specific communication card module of the present invention is as Ethernet service end, employing be udp protocol transmission, used IP address and udp port. Receive after data in step 1.1, first judge the port information comprising in data, whether corresponding with the port of local (being specific communication card module), if, prove that data send to specific communication card module, just carry out analyzing and processing) data,, according to step 1.3 analyzing and processing data, intercept otherwise return;
Step 1.3, when packet is the data of issuing local port, determines whether common request, if, store the memory block of specific communication card module into, and by the data packing of specific communication card module memory block, send to track controller by ethernet communication; If not, be particular request, and preserve UDP link information, this particular request mark is set to 1, judge according to step 2.
It is for sending when frame Rule of judgment is provided to serial port setting that client particular request mark is set to 1, thereby transmission frame type is set to client-requested pattern. Preserving UDP link information is pack and send to track controller module to prepare by Ethernet for the data that communication card comes up serial ports collection.
Referring to Fig. 5, step 2, ethernet client judges whether client particular request mark is 1, if not 1, serial ports sends frame type and is made as general mode, judges according to step 3; If 1, be particular request, process according to step 2.1;
Described general mode is the pattern that communication card independently cycles through serial ports collection DCU data, and data will be kept in communication card memory block.
When serial ports sends frame type while being made as general mode, communication card in successively with the communication cycle state of each track DCU module.
Step 2.1, when serial ports sends frame type while being special pattern, by clear client distinctive mark 0, customer in response end request flag is set to 1, and serial ports sends frame type and is made as client-requested pattern, judges according to step 3;
Step 3:
Referring to Fig. 6, judge that serial ports sends whether frame type is general mode, the common transmission frame of if so, packing, carries out according to step 3.1; If not, judging that serial ports sends whether client-requested pattern of frame type, the client-requested of if so, packing sends frame, carries out according to step 3.1, if not, enter circulation next time;
Step 3.1:
Open serial ports and send interruption, if send, open serial ports receive interruption, judge according to step 4;
Step 4:
Referring to Fig. 7, if judgement serial ports receives, close serial ports, the data that analyzing and processing serial ports receives, if customer in response end is masked as 1, utilize the link information of preserving in step 1.3, data packing is sent to client by ethernet communication, then disconnect, bundling port, continues to intercept; If customer in response end mark is not 1, data are stored in specific communication card module memory block, circulate next time.
When general mode communication card in successively with the communication cycle state of each track DCU module, the datacycle of address card memory block is upgraded, and has ensured the real-time of the data that client common request receives.
And so forth, specific communication card module constantly receives the instruction of PC controller, carries out above-mentioned communication response.
Embodiment:
In DCU, treat the data register of specific communication card module request as shown in Figure 8.
In figure: 01,02,03 ... Deng being byte number. A DCU register comprises two bytes. The data that front 5 DCU registers are front ten bytes are by the automatic circulating request of specific communication card module and store the data in memory space into so that when controller common request, specific communication card module according to ModbusUDP Extended Protocol packing reply. Since i.e. (the 6th register) of the 11st byte, specific communication card module, in the time of controller particular request arrival by the time, just removes to read and write these registers, and result packing is replied to controller. Controller is passed to PC through processing, and PC is for further processing, and result is reflected on display, and engineer can, by showing that result judges, carry out next step action.
The controller that specific communication card is received is given the order coming and is comprised: 03 read register order, 16 write register command and explosion command: 50,51,52,65. 50,51,52 is configuration specific communication card command. 65 for forbidding or enable infrared ray order. Wherein need the order of specific communication card transparent transmission to comprise: 03 read register order, 16 write register command, and 65 forbid or enable infrared ray order.
Note: specific communication card module is ModbusUDP agreement and the Extended Protocol of use to upper ethernet communication, under serial communication protocol be ModbusRS485 agreement and Extended Protocol.

Claims (5)

1. the communication response method of a track traffic security mask accelerator control system, it is characterized in that, the method communicates response by control system, described control system comprises PC controller, track controller, the specific communication card module that contains I/O function and track DCU module, the specific communication card module of this system is simultaneously as Ethernet service end and serial ports main side, track DCU module is as serial ports from end, and track controller is as ethernet client, and the method has following steps:
Step 1, track controller receives the instruction of PC controller and sends in the specific communication card module state of intercepting and while other function of executable module, and specific communication card module receives instruction, judgement:
Step 1.1, if this instruction has packet, receives packet, judges according to step 1.2, intercepts otherwise continue to return;
Step 1.2, when the instruction of reception contains packet, when these data are surrounded by the data of issuing local port,, according to step 1.3 analyzing and processing data, intercepts otherwise return;
Step 1.3, when packet is the data of issuing local port, determines whether common request, if so,, by the data packing of specific communication card module memory block, sends to track controller by ethernet communication; If not, be particular request, and preserve UDP link information, this particular request mark is set to 1, judge according to step 2;
Step 2, ethernet client judges whether client particular request mark is 1, if not 1, serial ports sends frame type and is made as general mode, judges according to step 3; If 1, be particular request, process according to step 2.1;
Step 2.1, when serial ports sends frame type while being special pattern, by clear client distinctive mark 0, customer in response end request flag is set to 1, and serial ports sends frame type and is made as client-requested pattern, judges according to step 3;
Step 3:
Judge that serial ports sends whether frame type is general mode, the common transmission frame of if so, packing, carries out according to step 3.1; If not, judging that serial ports sends whether client-requested pattern of frame type, the client-requested of if so, packing sends frame, carries out according to step 3.1, if not, finish, enter next step and read ID and write DO module, repeat major cycle;
Step 3.1:
Open serial ports and send interruption, if send, open serial ports receive interruption, judge according to step 4;
Step 4:
If judgement serial ports receives, close serial ports, the data that analyzing and processing serial ports receives, if customer in response end is masked as 1, utilize the link information of preserving in step 1.3, data packing is sent to client by ethernet communication, then disconnect, bundling port, continues to intercept; If customer in response end mark is not 1, data are stored in specific communication card module memory block, finish, enter next step and read ID and write DO module, repeat major cycle;
And so forth, specific communication card module constantly receives the instruction of PC controller, carries out above-mentioned communication response.
2. method according to claim 1, is characterized in that: Ethernet interface is the ethernet interface of track controller and specific communication card module, and RS485 interface is the serial communication interface of specific communication card module and DCU module.
3. method according to claim 1, is characterized in that: general mode is the pattern that communication card independently cycles through serial ports collection DCU data, and data will be kept in communication card memory block.
4. method according to claim 1, is characterized in that: when serial ports sends frame type while being made as general mode, communication card in successively with the communication cycle state of each track DCU module.
5. method according to claim 1, is characterized in that: ethernet communication is ModbusUDP agreement and Extended Protocol.
CN201410846816.6A 2014-12-31 2014-12-31 The communication response method of track traffic security mask accelerator control system Active CN104612531B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410846816.6A CN104612531B (en) 2014-12-31 2014-12-31 The communication response method of track traffic security mask accelerator control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410846816.6A CN104612531B (en) 2014-12-31 2014-12-31 The communication response method of track traffic security mask accelerator control system

Publications (2)

Publication Number Publication Date
CN104612531A CN104612531A (en) 2015-05-13
CN104612531B true CN104612531B (en) 2016-05-04

Family

ID=53147156

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410846816.6A Active CN104612531B (en) 2014-12-31 2014-12-31 The communication response method of track traffic security mask accelerator control system

Country Status (1)

Country Link
CN (1) CN104612531B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105653487B (en) * 2015-12-09 2019-01-25 重庆川仪自动化股份有限公司 Serial ports redundancy switching method, the apparatus and system of security mask accelerator control system
CN111007714B (en) * 2019-12-06 2022-10-28 重庆川仪自动化股份有限公司 Linux Ethernet-based redundant switching method for rail safety shielding door controller

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1200613A (en) * 1997-02-14 1998-12-02 株式会社电装 Method and system for data communications using synchronizing signals of different data length
CN101232506A (en) * 2008-01-24 2008-07-30 中国科学院计算技术研究所 System and method for collocating safe field programmable gate array network
CA2804974A1 (en) * 2010-06-16 2011-12-22 Delphian Systems, LLC Wireless device enabled locking system
CN103338261A (en) * 2013-07-04 2013-10-02 北京泰乐德信息技术有限公司 Storage and processing method and system of rail transit monitoring data

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090031381A1 (en) * 2007-07-24 2009-01-29 Honeywell International, Inc. Proxy video server for video surveillance

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1200613A (en) * 1997-02-14 1998-12-02 株式会社电装 Method and system for data communications using synchronizing signals of different data length
CN101232506A (en) * 2008-01-24 2008-07-30 中国科学院计算技术研究所 System and method for collocating safe field programmable gate array network
CA2804974A1 (en) * 2010-06-16 2011-12-22 Delphian Systems, LLC Wireless device enabled locking system
CN103338261A (en) * 2013-07-04 2013-10-02 北京泰乐德信息技术有限公司 Storage and processing method and system of rail transit monitoring data

Also Published As

Publication number Publication date
CN104612531A (en) 2015-05-13

Similar Documents

Publication Publication Date Title
CN104880725B (en) Railway locomotive Precise Position System
CN109835369A (en) A kind of the on-vehicle safety maintenance communications platform and its implementation of the train protection warning function based on LTE-R network
CN106302535A (en) The attack emulation mode of power system, device and attack emulator
CN102915636A (en) Traffic signal instrument control strategy comprehensive performance validity test system and method
CN104516334A (en) Closed-loop control system and method for positive and reverse isolators
CN104612531B (en) The communication response method of track traffic security mask accelerator control system
CN102984042A (en) Deterministic scheduling method and system for realizing bus communication
CN107359698A (en) A kind of distribution web area intelligent terminal
CN101853409A (en) RFID (Radio Frequency Identification) system, reader and data transmission method
CN105654565A (en) Method for improving ETC (Electronic Toll Collection) transaction efficiency
CN104717104B (en) A kind of monitoring method based on time triggered Ethernet
CN108696535A (en) Network security protection system based on SDN and method
CN103166677B (en) Relay method for banded topology low-voltage power line carrier communication
CN103236910A (en) Low speed data delay response method for dedicated short-range communication protocol
CN103973530A (en) Catching technology based information interaction bus data reliable-transmission method
CN113055473A (en) Regional security prevention and control method and system based on Internet of things and security cloud
CN103916271B (en) Method and device for switching multiple ONU authentication modes in PON system
CN206672201U (en) A kind of passageway gate machine system
CN208939584U (en) A kind of novel intelligent power distribution network terminal safety access system
CN105978642B (en) Wireless monitor station analysis site selecting method and system based on interference big data
CN110535962A (en) Method of data synchronization, device, equipment and storage medium based on authenticating device
CN206533391U (en) Main website type special line encryption authentication device
CN204946131U (en) Track gate inhibition loop network control system
CN106408673A (en) Vehicle-mounted unit applied to path identification system and safe method of vehicle-mounted unit
CN107276845B (en) A kind of real time data dispatching method with fault tolerance of field of track traffic

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant