CN109729003A - A kind of passenger train time data transmission method and system - Google Patents

A kind of passenger train time data transmission method and system Download PDF

Info

Publication number
CN109729003A
CN109729003A CN201811619459.4A CN201811619459A CN109729003A CN 109729003 A CN109729003 A CN 109729003A CN 201811619459 A CN201811619459 A CN 201811619459A CN 109729003 A CN109729003 A CN 109729003A
Authority
CN
China
Prior art keywords
message
message body
queue
transmitting terminal
time data
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.)
Granted
Application number
CN201811619459.4A
Other languages
Chinese (zh)
Other versions
CN109729003B (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.)
Jinan Railway Information Technology Co Ltd
Original Assignee
Jinan Railway Information 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 Jinan Railway Information Technology Co Ltd filed Critical Jinan Railway Information Technology Co Ltd
Priority to CN201811619459.4A priority Critical patent/CN109729003B/en
Publication of CN109729003A publication Critical patent/CN109729003A/en
Application granted granted Critical
Publication of CN109729003B publication Critical patent/CN109729003B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention provides a kind of passenger train time data transmission methods, and the method includes: S1: database is periodically executed the message body, message header and the message queue transmitting path that generate data file and formed by storing process;S2: windows proprietary message queue is written in message body, message header by transmitting terminal;S3: transmitting terminal reads message body from windows proprietary message queue, starts a thread, message body is sent to the receiving end specified in service profiles;S4: it after reception terminates to and transmits handshake, receives message body and is stored in buffer area, send receipt to transmitting terminal;S5: after transmitting terminal receives receipt, confirmation is sent to.This method may insure that message body is correctly transmitted between the two systems.In addition, the present invention also provides a kind of passenger train time data Transmission systems.

Description

A kind of passenger train time data transmission method and system
Technical field
The present invention relates to the communication fields of the railway system, and in particular to a kind of passenger train time data transmission method and is System.
Background technique
Passenger traffic broadcasting system generallys use data-interface mode as an important subsystem of railway passenger service system The train time or station that reception higher level is transmitted set announcer and are broadcasted according to order command manual switching.Assigning train time When data, it is to be ensured that real-time, the integrality of data, also to take into account passenger traffic broadcasting system with guidance system coordination it is synchronous, because This is more demanding to data format definition and transmission.
Existing message transmissions mechanism mostly uses multicast, and it is more which generally occupies resource, and lacks effective Control, it cannot be guaranteed that message transmission quality.
Summary of the invention
To solve the above-mentioned problems, this application provides a kind of passenger train time data transmission method and systems, it is ensured that Message body is correctly transmitted between the two systems.
The invention discloses following technical solutions:
The embodiment of the invention provides a kind of passenger train time data transmission method, the method includes:
S1: database is by the message body for being periodically executed generation data file formation of storing process, message header and disappears Cease queue transmitting path;
S2: windows proprietary message queue is written in message body, message header by transmitting terminal;
S3: transmitting terminal reads message body from windows proprietary message queue, starts a thread, message body is sent The receiving end specified into service profiles;
S4: it after reception terminates to and transmits handshake, receives message body and is stored in buffer area, send receipt to transmitting terminal;
S5: after transmitting terminal receives receipt, confirmation is sent to.
Further, in step S2, message body, message header are written by the storing process of CLR format for transmitting terminal Windows proprietary message queue.
Further, in step S3, message body is sent to service profiles by UDP or ICP/IP protocol by transmitting terminal In specify receiving end.
Further, in step S4, after receiving end receives message body, it is also necessary to it is predefined to be converted to message queue ASCII or UNICODE message body format starts a thread, and message body is written the machine proprietary message queue, path queue by Service profiles are specified.
The embodiment of the invention also provides a kind of passenger train time data Transmission systems, and the system is for realizing above-mentioned Method, the system include:
The data storage end for storing data, and generates disappearing for data file formation by being periodically executed for storing process Cease body, message header and message queue transmitting path;
Transmitting terminal, message body, message header for being generated the data storage end using windows proprietary message queue are sent out It send to receiving end;
Receiving end for receiving message body, the message header of transmitting terminal transmission, and feeds back to transmitting terminal.
Further, the transmitting terminal includes:
Preparatory unit is sent, is used for according to message queue transmitting path, message body, message header write-in windows is special Use message queue;
Transmission unit is sent, for reading message body from windows proprietary message queue, starts a thread, disappearing Breath body is sent to the receiving end specified in service profiles;
Confirmation unit is sent, for receiving the feedback of receiving end, confirmation transmission result.
Further, the receiving end includes:
Preparatory unit is received, the handshake transmitted for receiving soldier's confirmation transmitting terminal;
Transmission unit is received, for receiving message body deposit buffer area;
Feedback unit is received, for transmitting and receiving receipt to receiving end.
Further, the receiving end further include:
Preparatory unit is accessed, is disappeared for received message body to be converted to message queue predefined ASCII or UNICODE Physique formula is ceased, starts a thread, the machine proprietary message queue is written into message body, path queue is referred to by service profiles It is fixed.
The advantageous effect of the invention are as follows:
Using windows message queue mechanism between host asynchronous transfer of data message, and be stored in specified folder It is middle to be accessed for peer-to-peer system.After peer-to-peer system receives the data message assigned, receipt is transmitted and received, and journey is serviced by windows Sequence confirms after receiving to be sent to.Ensure that message body is accurately sent to, avoids confusion caused by information transmission errors.
Detailed description of the invention
Fig. 1 is the flow chart of present invention method;
Fig. 2 is the functional block diagram of system of the embodiment of the present invention.
Specific embodiment
To keep the technical problem to be solved in the present invention, technical solution and advantage clearer, below in conjunction with attached drawing and tool Body embodiment is described in detail.Those skilled in the art should know following specific embodiments or specific embodiment are these The set-up mode for the series of optimum enumerated Wei specific summary of the invention is explained further is invented, and between those set-up modes Can be combined with each other or it is interrelated use, unless the present invention clearly propose some of them or a certain specific reality Setting can not be associated or be used in conjunction with other embodiments or embodiment by applying example or embodiment.Meanwhile it is following Specific embodiment or embodiment are only as the set-up mode optimized, and not as the reason limited the scope of protection of the present invention Solution.
Embodiment
As shown in Figure 1, the embodiment of the invention provides a kind of passenger train time data transmission method, the method makes With windows message queue mechanism between host asynchronous transfer of data message, and be stored in specified folder for opposite end system System access.
The detailed schematic of the mechanism are as follows:
1) database is periodically executed the message body, message header and the message that generate data file and formed by storing process Queue transmitting path.
2) by the storing process of CLR format proprietary message queue is written in message body, message header by transmitting terminal.
3) transmitting terminal reads message body from windows proprietary message queue, starts a thread, passes through UDP or TCP/ IP agreement is sent to message body the opposite end specified in service profiles and receives address.
4) it receives after terminating to UDP the or TCP/IP handshake that transmitting terminal transmits, receives data message and be stored in buffer area, Receipt is sent to transmitting terminal.
In this process, for the ease of transmission next time or access, for the message body received, it is also necessary to be converted to message The predefined ASCII or UNICODE message body format of queue, starts a thread, and the machine specific messages team is written in message body Column, path queue are specified by service profiles.
5) after transmitting terminal receives receipt, confirmation is sent to.
As shown in Fig. 2, the embodiment of the invention also provides a kind of passenger train time data Transmission system, which is used for Realize that above-mentioned method, the system include the data storage end, transmitting terminal, receiving end.
The data storage end for storing data, and generates data file shape by being periodically executed for storing process At message body, message header and message queue transmitting path.
The transmitting terminal, message body, message for being generated the data storage end using windows proprietary message queue Title is sent to receiving end.
The transmitting terminal includes: transmission preparatory unit, is used for according to message queue transmitting path, by message body, message Windows proprietary message queue is written in title;Transmission unit is sent, for reading message from windows proprietary message queue Body starts a thread, message body is sent to the receiving end specified in service profiles;Confirmation unit is sent, for connecing Receive the feedback of receiving end, confirmation transmission result.
The receiving end for receiving message body, the message header of transmitting terminal transmission, and feeds back to transmitting terminal.
The receiving end includes: reception preparatory unit, the handshake transmitted for receiving soldier's confirmation transmitting terminal;It receives Transmission unit, for receiving message body deposit buffer area;Feedback unit is received, for transmitting and receiving receipt to receiving end.
For subsequent access and transmission, the receiving end further includes access preparatory unit, is used for received message Body is converted to the predefined ASCII or UNICODE message body format of message queue, starts a thread, this is written in message body Machine proprietary message queue, path queue are specified by service profiles.
It should be pointed out that specific embodiment described above can make those skilled in the art that the present invention be more fully understood Specific structure, but do not limit the invention in any way create.Therefore, although specification and drawings and examples are to the present invention Creation has been carried out detailed description, it will be understood by those skilled in the art, however, that still can repair to the invention Change or equivalent replacement;And the technical solution and its improvement of all spirit and scope for not departing from the invention, cover In the protection scope of the invention patent.

Claims (8)

1. a kind of passenger train time data transmission method, which is characterized in that the method includes:
S1: database is periodically executed the message body, message header and the message team that generate data file and formed by storing process Column transmitting path;
S2: windows proprietary message queue is written in message body, message header by transmitting terminal;
S3: transmitting terminal reads message body from windows proprietary message queue, starts a thread, and message body is sent to clothes The receiving end specified in business configuration file;
S4: it after reception terminates to and transmits handshake, receives message body and is stored in buffer area, send receipt to transmitting terminal;
S5: after transmitting terminal receives receipt, confirmation is sent to.
2. a kind of passenger train time data transmission method according to claim 1, which is characterized in that in step S2, hair By the storing process of CLR format windows proprietary message queue is written in message body, message header by sending end.
3. a kind of passenger train time data transmission method according to claim 1, which is characterized in that in step S3, hair Message body is sent to the receiving end specified in service profiles by UDP or ICP/IP protocol by sending end.
4. a kind of passenger train time data transmission method according to claim 1 to 3, which is characterized in that step In rapid S4, after receiving end receives message body, it is also necessary to be converted to predefined ASCII or UNICODE message body of message queue Format, starts a thread, the machine proprietary message queue is written in message body, path queue is specified by service profiles.
5. a kind of passenger train time data Transmission system, which arranges for realizing a kind of passenger traffic described in claim 1-4 Vehicle time data transmission method, which is characterized in that the system includes:
The data storage end, for storing data, and by storing process be periodically executed generate data file formed message body, Message header and message queue transmitting path;
Transmitting terminal, for being sent to message body that the data storage end generates, message header using windows proprietary message queue Receiving end;
Receiving end for receiving message body, the message header of transmitting terminal transmission, and feeds back to transmitting terminal.
6. a kind of passenger train time data Transmission system according to claim 5, which is characterized in that the transmitting terminal Include:
Preparatory unit is sent, windows is dedicated to disappear for according to message queue transmitting path, message body, message header to be written Cease queue;
It sends transmission unit and starts a thread, message body for reading message body from windows proprietary message queue It is sent to the receiving end specified in service profiles;
Confirmation unit is sent, for receiving the feedback of receiving end, confirmation transmission result.
7. a kind of passenger train time data Transmission system according to claim 6, which is characterized in that the receiving end Include:
Preparatory unit is received, the handshake transmitted for receiving soldier's confirmation transmitting terminal;
Transmission unit is received, for receiving message body deposit buffer area;
Feedback unit is received, for transmitting and receiving receipt to receiving end.
8. a kind of passenger train time data Transmission system according to claim 7, which is characterized in that the receiving end Further include:
Preparatory unit is accessed, for received message body to be converted to predefined ASCII or UNICODE message body of message queue Format, starts a thread, the machine proprietary message queue is written in message body, path queue is specified by service profiles.
CN201811619459.4A 2018-12-28 2018-12-28 Passenger train time data transmission method and system Active CN109729003B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811619459.4A CN109729003B (en) 2018-12-28 2018-12-28 Passenger train time data transmission method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811619459.4A CN109729003B (en) 2018-12-28 2018-12-28 Passenger train time data transmission method and system

Publications (2)

Publication Number Publication Date
CN109729003A true CN109729003A (en) 2019-05-07
CN109729003B CN109729003B (en) 2021-05-18

Family

ID=66296718

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811619459.4A Active CN109729003B (en) 2018-12-28 2018-12-28 Passenger train time data transmission method and system

Country Status (1)

Country Link
CN (1) CN109729003B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110618881A (en) * 2019-09-19 2019-12-27 中国银行股份有限公司 Method and system for simulating message queue
CN115426209A (en) * 2022-11-07 2022-12-02 湖南三湘银行股份有限公司 High-reliability message queue broadcast control method based on message processing

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101159711A (en) * 2007-11-27 2008-04-09 航天东方红卫星有限公司 Self-adaptive real time message subscribing and issuing system and method
CN103645942A (en) * 2013-12-12 2014-03-19 北京奇虎科技有限公司 Message queue based write and read method and system of shared memory
US20140304440A1 (en) * 2013-04-05 2014-10-09 William Marsh Rice University System and method for managing input/output data of peripheral devices
CN106713018A (en) * 2016-12-08 2017-05-24 中国电信股份有限公司物联网分公司 Message queue business data scheduling method and message queue implementation method
CN107239380A (en) * 2017-05-10 2017-10-10 杭州铭师堂教育科技发展有限公司 A kind of message queue monitoring method based on zabbix
CN108234606A (en) * 2017-12-15 2018-06-29 浪潮软件股份有限公司 A kind of information management method and managing device
CN108667719A (en) * 2018-04-26 2018-10-16 广州品唯软件有限公司 A kind of real-time Message Passing method and system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101159711A (en) * 2007-11-27 2008-04-09 航天东方红卫星有限公司 Self-adaptive real time message subscribing and issuing system and method
US20140304440A1 (en) * 2013-04-05 2014-10-09 William Marsh Rice University System and method for managing input/output data of peripheral devices
CN103645942A (en) * 2013-12-12 2014-03-19 北京奇虎科技有限公司 Message queue based write and read method and system of shared memory
CN106713018A (en) * 2016-12-08 2017-05-24 中国电信股份有限公司物联网分公司 Message queue business data scheduling method and message queue implementation method
CN107239380A (en) * 2017-05-10 2017-10-10 杭州铭师堂教育科技发展有限公司 A kind of message queue monitoring method based on zabbix
CN108234606A (en) * 2017-12-15 2018-06-29 浪潮软件股份有限公司 A kind of information management method and managing device
CN108667719A (en) * 2018-04-26 2018-10-16 广州品唯软件有限公司 A kind of real-time Message Passing method and system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110618881A (en) * 2019-09-19 2019-12-27 中国银行股份有限公司 Method and system for simulating message queue
CN110618881B (en) * 2019-09-19 2022-04-12 中国银行股份有限公司 Method and system for simulating message queue
CN115426209A (en) * 2022-11-07 2022-12-02 湖南三湘银行股份有限公司 High-reliability message queue broadcast control method based on message processing
CN115426209B (en) * 2022-11-07 2023-02-10 湖南三湘银行股份有限公司 High-reliability message queue broadcast control method based on message processing

Also Published As

Publication number Publication date
CN109729003B (en) 2021-05-18

Similar Documents

Publication Publication Date Title
US10659572B2 (en) Handling different protocol data unit types in a device to device communication system
CN101677264B (en) Method of transmitting acknowledge character (ACK)
CN109729003A (en) A kind of passenger train time data transmission method and system
CN102739541A (en) Method, device and system for starting routing function and transmitting data
CN113595621B (en) End-to-end communication method, ground gateway station, satellite-borne UPF and system
CN109921967A (en) Command processing method and system, gateway and computer readable storage medium
DE112005002242T5 (en) Device and method for sending / receiving a packet in a mobile communication system
KR100913280B1 (en) Broadcast type communication data distribution device and broadcast type communication system
CN102065372B (en) Method for transmitting data in broadcast mode and related device
US11457094B2 (en) Network system and conversion apparatus crossing different transmission protocols
US20090003295A1 (en) Ad-hoc network device with reduced data loss
EP0986880A1 (en) A communications network end station
WO2022127448A1 (en) Message transmission method, terminals and storage medium
CN106612307A (en) Always-on service implementation method and device
CN101924736B (en) Method and device for transmitting dynamic host configuration protocol message
CN101617509B (en) Method for transferring data to a plurality of control appliances
CN101409611B (en) Communication method for IP scheduling
CN101510901B (en) Communication method, communication apparatus and system between distributed equipment
CN101132299A (en) Method for improving broadcast quality of multimedia data
CN110475288B (en) Method, device and system for transmitting signaling message of satellite network preferentially
CN109819418B (en) A kind of platooning's reliable information transfer method towards mobile ad hoc network
CN102104915B (en) A kind of QoS control method based on PMIP and system
CN112702369A (en) Information confirmation method, electronic device and medium
CN108876492A (en) billing method and billing system
CN113794771B (en) Transaction distribution method, transaction distribution gateway and device based on TCP (Transmission control protocol) request message

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