CN101908952A - Offline data self-detection retransmission method - Google Patents

Offline data self-detection retransmission method Download PDF

Info

Publication number
CN101908952A
CN101908952A CN 201010245671 CN201010245671A CN101908952A CN 101908952 A CN101908952 A CN 101908952A CN 201010245671 CN201010245671 CN 201010245671 CN 201010245671 A CN201010245671 A CN 201010245671A CN 101908952 A CN101908952 A CN 101908952A
Authority
CN
China
Prior art keywords
data
offline data
detection
ack
line
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
Application number
CN 201010245671
Other languages
Chinese (zh)
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.)
SUNTEK TECHNOLOGY Co Ltd
Original Assignee
SUNTEK 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 SUNTEK TECHNOLOGY Co Ltd filed Critical SUNTEK TECHNOLOGY Co Ltd
Priority to CN 201010245671 priority Critical patent/CN101908952A/en
Publication of CN101908952A publication Critical patent/CN101908952A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Communication Control (AREA)

Abstract

The invention provides an offline data self-detection retransmission method, and provides an improved method for processing offline data of a rail transit automatic ticket sales and inspection system by using a reliable message retransmission method and an offline data self-detection method. The method eliminates the probability of triviality and errors during manual maintenance of offline data, improves the integrity of the offline data and reduces the maintenance cost of stations.

Description

A kind of offline data self-detection retransmission method
Technical field
The invention belongs to the track traffic electronic information technical field, particularly a kind of off-line data self check check weighing passes, and the application of this method in automatic ticket selling system for rail traffic.
Technical background
Along with the urban construction fast development, track traffic has become the most important basic vehicles in the urban life.Therefore track traffic relies on higher to automatic ticket-selling system because the stream of people is big.Rail traffic ticket automatic selling and checking system comprises station equipment, station centre's computer, subsystems such as wire center computer.Wherein station equipment comprises automatic machine, gate, equipment such as semi-automatic box office ticket machine.The TCP/IP mode of passing through between each subsystem and the equipment realizes interconnected, to realize the control to equipment, functions such as the transmission of data.
Rail traffic ticket automatic selling and checking system requires station equipment, and station centre's computer can work alone, promptly at network failure, in the time of some device fails, still can independently carry out automatic ticketing, the function of ticket checking makes the normal vote buying of passenger unaffected by bus automatically.Under the equipment off-line situation, the ticketing that equipment produces, transaction data such as ticket checking can't be uploaded by network communication mode, and present solution is, in operation during end of day, use movable storage device to sell on the ticket-check equipment copy transaction record to the station by the station staff and upload.The problem that this mode occurs easily has: manual operation is easy to generate error, and data have the mistakes and omissions situation and take place; If equipment network in a period of time interrupts, and has recovered the network connection, the data in break period are in time uploaded, and the real-time of data is affected.
Along with the progress of science and technology, how to design and a kind ofly can keep off-line data integrality and accuracy, can realize the method that automatic ticket selling system for rail traffic provides off-line data self check check weighing to pass, be that relevant departments expect, have broad application prospects.
Summary of the invention
The objective of the invention is at existing automatic ticket selling system for rail traffic under the equipment off-line situation, the ticketing that equipment produces, problems such as transaction data such as ticket checking can't be uploaded by network communication mode, data are imperfect, accuracy is low, provide a kind of high efficiency, high stability, high completeness in the solution of one, can well guarantee to keep under the automatic ticket-selling system off-line state data integrity and accuracy.
In order to realize goal of the invention, the technical scheme of employing is as follows:
A kind of offline data self-detection retransmission method, its former reason is based on the authentic data repeating method with based on the detection method certainly of the reliable retransmission method formation that combines.
The overtime retransmission mechanism of authentic data repeating method imitation TCP.The purpose of reliable news transmission be guarantee message do not have lose, do not have repetition, ensuring escapement from confliction is sent to the other side.
At first explanation, the reliable news transmission principle of Communication Layer (Transmission Control Protocol).The target of Transmission Control Protocol is to guarantee reliability of data transmission on insecure IP agreement basis.For this reason, Transmission Control Protocol is numbered byte stream, appends check code and pack to mail to destination host, by the ACK that destination host returns, confirms whether data arrive.The data of being confirmed by ACK do not mail to destination host again by Transmission Control Protocol.Do not interrupt if the TCP communication connects, Transmission Control Protocol itself can guarantee have under the situations such as packet loss, data collision, error in data at communication link, and data reliably, inerrably are sent to the other side always.
Because the characteristics of " the Communication Layer reliable transmission " of Transmission Control Protocol, the Internet protocol of operation is substantially based on Transmission Control Protocol at present.The reliable news transmission is reached the purpose of " application layer reliable transmission " with the principle of similar Transmission Control Protocol.Reliable news is transmitted in application layer ACK and sequence number is set, and guarantees that data not only do not have to lose, do not have repetition, do not have conflict and be transferred to peer, and is finished dealing with by peer.
In order to prevent information drop-out, transfer of data was divided into for 5 steps:
1. send data to destination host
2. destination host is handled and is stored the data of receiving, if the data processing failure, then retry is 3 times.If still do not have
Method storage data change abnormality processing over to.In the case, do not send ACK.
3. transmitting terminal is not received ACK, data retransmission.
4. destination host is replied ACK
5. transmitting terminal receives ACK, confirms that data send successfully.
Network under the unrecovered situation, is promptly entering off-line mode with destination host in the time of agreement.
Being divided into based on the detection method certainly of reliable retransmission method is to finish in two stages.
At first, carry out the off-line data sign.As shown in Figure 1 based on the reliable retransmission method to the data processing of classifying, the package identification of receiving ACK is for uploading data, otherwise is masked as off-line data.Data qualification is stored in the file.
Secondly, carrying out off-line data detects and retransmits.When device network recovers as shown in Figure 2, upload classified off-line data in described.Because the packet of not receiving ACK causes the recipient to handle, and then do not send ACK because of the packet data mistake, therefore needed packet is detected verification msg packet format legitimacy before last time in data.Be verified as normal packet and upload, reuse phase I off-line data sign packet is reclassified.
Description of drawings
Fig. 1 is an off-line data sign schematic diagram of the present invention;
Fig. 2 is that off-line data of the present invention detects and the re-transmission flow chart;
Fig. 3 is automatic machine communication module signal of the present invention;
Fig. 4 is the schematic flow sheet that communicates to connect of the present invention;
Fig. 5 is a real time data flow process schematic diagram of the present invention.
Embodiment
For above-mentioned purpose of the present invention, feature and advantage can be become apparent more, the present invention is further detailed explanation below in conjunction with the drawings and specific embodiments.Obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that is obtained under the creative work prerequisite.
Example 1: automatic machine communication module application the present invention carries out the equipment transmission of transaction data as shown in Figure 3.Wherein said system comprises 1. automatic machines, for data receiver 2. station centre's computers are the data receiver.
Described automatic machine is by communication module, and transaction modules, file system etc. are partly formed.Described automatic machine communication module has been used method provided by the invention.Described transaction modules is a Data Source.Described file system is used for storage.
Described automatic box office ticket machine and described station centre computer connection procedure are referring to Fig. 4, and detailed process is as follows:
1. the box office ticket machine connects station centre's computer automatically
2. successful connection then begins to detect off-line data
3. have under the off-line data situation, send off-line data
4. send and successfully then delete the off-line data file
5. do not have to forward the processing real time data under the off-line data situation
6. send network in above each step and interrupt situation, got back to for the 1st step
Handle the real time data flow process described in Fig. 4 referring to Fig. 5, detailed process is as follows:
1. handle the transaction data that produces from transaction modules.
2. transmission transaction data.
3. send under the transaction data success situation, storage has been uploaded transaction data and has been got back to step 1.
4. send under the transaction data failure scenarios, resend.
5. send under 3 situations of transaction data failure, be saved in the off-line trading data file.
6. disconnect connection, get back to the described step 1 of connection procedure among Fig. 4.
7. network takes place in above each step interrupt situation, transaction is saved in the off-line trading data file, and gets back to the described step 1 of connection procedure among Fig. 4.
Above Fig. 4 and Fig. 5 have illustrated that automatic machine is connected and the transmission of transaction data process with the network of station centre computer, and this process can amplify equally and be avail data, transmission such as audit data.Simultaneously, described automatic machine as data receiver is replaceable to be gate, station equipments such as semi-automatic box office ticket machine.Replaceable as station centre's computer of data receiver is data processing centres such as circuit central computer.

Claims (4)

1. offline data self-detection retransmission method, it is characterized in that having adopted described reliable news retransmit mode in conjunction with described off-line data from the detection method;
2. reliable news repeating method according to claim 1 is characterized in that adopting the ACK banner message successfully to handle, to the communication means of not receiving that ACK retransmits;
3. whether reliable news repeating method according to claim 1 is characterized in that using data validity detection validation validity, use the off-line data flag data successfully to send;
4. data validity detection method according to claim 3, its protection feature is using protection point 2 described ACK to indicate the method for off-line data.
CN 201010245671 2010-08-05 2010-08-05 Offline data self-detection retransmission method Pending CN101908952A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010245671 CN101908952A (en) 2010-08-05 2010-08-05 Offline data self-detection retransmission method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010245671 CN101908952A (en) 2010-08-05 2010-08-05 Offline data self-detection retransmission method

Publications (1)

Publication Number Publication Date
CN101908952A true CN101908952A (en) 2010-12-08

Family

ID=43264280

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010245671 Pending CN101908952A (en) 2010-08-05 2010-08-05 Offline data self-detection retransmission method

Country Status (1)

Country Link
CN (1) CN101908952A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106980920A (en) * 2017-02-17 2017-07-25 阿里巴巴集团控股有限公司 A kind of execution method and device of Internet service
CN110798530A (en) * 2019-11-07 2020-02-14 四川长虹电器股份有限公司 Improved method based on self-service vending system data uploading

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1351450A (en) * 2000-10-27 2002-05-29 清华大学 Method for retransmitting lost packets in fading channel
CN1734997A (en) * 2004-08-11 2006-02-15 华为技术有限公司 Data transmission method
CN101159520A (en) * 2007-10-29 2008-04-09 中兴通讯股份有限公司 Data transmission method
EP2096783A2 (en) * 2008-02-28 2009-09-02 Fujitsu Limited Collision detection for a radio communication system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1351450A (en) * 2000-10-27 2002-05-29 清华大学 Method for retransmitting lost packets in fading channel
CN1734997A (en) * 2004-08-11 2006-02-15 华为技术有限公司 Data transmission method
CN101159520A (en) * 2007-10-29 2008-04-09 中兴通讯股份有限公司 Data transmission method
EP2096783A2 (en) * 2008-02-28 2009-09-02 Fujitsu Limited Collision detection for a radio communication system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106980920A (en) * 2017-02-17 2017-07-25 阿里巴巴集团控股有限公司 A kind of execution method and device of Internet service
CN110798530A (en) * 2019-11-07 2020-02-14 四川长虹电器股份有限公司 Improved method based on self-service vending system data uploading

Similar Documents

Publication Publication Date Title
CN105491084B (en) Car networking system and its control method based on OTA agreement
JP4951766B2 (en) ACARS message transmission method via IP network
CN102143073A (en) Data transmission method and system
CN101227483B (en) Data processing method and apparatus of wireless link control layer
US8976814B2 (en) Method of transporting data from sending node to destination node
CN102770324B (en) Vehicle transmitting machine transponder device and reliability confirmation method thereof
CN101507318B (en) Radio communication device and method used in mobile communication system
CN102025474A (en) Network data transmission method
CN102211600A (en) Temporary speed-limiting method, server and system
CN101022473B (en) Method for automatic, identifying plate card configration and generating local data in exchanger
CN101562507B (en) Data transmission method
CN103716139B (en) A kind of information pushing treating method and apparatus
CN101908952A (en) Offline data self-detection retransmission method
CN103227976B (en) Based on mobile phone and the vehicle of RFID and the binding tracking system of driver and method
CN103067895B (en) The repeating method of long SMS and communication terminal
CN104601299B (en) A kind of data transmission system and method based on two-way confirmation
CN110769443B (en) Vehicle-vehicle communication performance analysis system based on stochastic Petri network
CN101001213B (en) Short message transmission system and method
An et al. Scalable Service Oriented V2X Data Format over 5G-NR-V2X
JP2001069156A (en) System for reliably transferring data between at least two stations mutually connected through radio information transmission network
CN104243107A (en) Data transmission method, device, terminal, server and system
CN117873514A (en) Online updating system, method, equipment and medium for secure computer platform
CN111130705A (en) Method and equipment for sending data packet
CN108173904B (en) Reliable interaction method for scheduling commands
CN115118628B (en) Abnormal message processing method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20101208