Summary of the invention
The present invention is directed to that the row phenomenon is lost in the transmission that occurs in the present THDS transfer of data and the problem that do not have remedial measure proposes a kind of data message acknowledge and repeating method to THDS.
A kind of data message acknowledge and repeating method to THDS of the present invention specifically comprise following five steps.
Step 1: acquisition station equipment train through the time gather and the train data message of finishing dealing with, when this train data message is uploaded to the SIC of monitoring center, this train data message is stored backup; SIC is writing a Chinese character in simplified form of standard infrared ray center software.
Step 2: in acquisition station self check information, increase the nearest car temporal information of crossing, acquisition station is uploaded self check information and is given monitoring center; To the self check information of two type machines, the nearest car temporal information of crossing of increase comprises: uplink and downlink are nearest spends the car time, uply spend the car time and descendingly spend the car time recently recently; To the self check information of three type machines, the nearest car temporal information excessively of increase is the nearest car time excessively.
Step 3: to each acquisition station; The SIC of monitoring center is according to the nearest car temporal information of crossing in this acquisition station self check information that receives, and spends the car time with nearest in the nearest train data message of this acquisition station of having received and compares, and then issues the retransmission data instruction to this acquisition station if two temporal informations are inconsistent; Getting into step 4 then carries out; If two temporal information unanimities are then waited for the arrival of next train, change step 1 then and carry out.
Step 4: acquisition station is received the retransmission data instruction, and the nearest train data message that backs up is sent to monitoring center.
Step 5: judge whether next train will arrive, if, change step 1 and carry out, if not, change step 2 and carry out.
Advantage of the present invention and good effect are: the inventive method has increased a kind of verification and affirmation from the beginning to the end in the transfer of data of THDS; Thereby set up a cover and retransmitted the mechanism of remedying; Solved the deficiency that exists in the transfer of data in the past; Even had in the data transmission procedure communication equipment aspect fault, (this be in the past with loss of data in the most probable situation of intermediate link) resets; Also can fundamentally avoid losing of data, ensure the traffic safety of rolling stock.
Embodiment
To combine accompanying drawing and embodiment that the present invention is done further detailed description below.
As shown in Figure 1, the monitoring center 1 of THDS uses SIC as monitoring center's software, and monitoring center 1 communicates through data communication network 2 and acquisition station 3.
Several operational modules that acquisition station 3 mainly comprises are following:
A) the master scheduling module 31: system powers on or the back program that resets gets into this module, accomplishes system initialization and along with the process of program is called each operational module respectively and accomplished various tasks.
B) data communication module 32: transmit the self check message to monitoring center when having train to pass through, have train through the time data message that detects passed to monitoring center 1, can receive the order data that monitoring center passes for 1 time simultaneously.
C) train data collection and processing module 33: when train gets into acquisition station 3, accomplish all related column car data signals collecting and subsequent analysis and handle, and data message is uploaded in formation.
D) selftest module 34: when not having train to pass through, equipment is carrying out self check and is forming to upload the self check message incessantly.
As shown in Figure 1; Solid arrow is represented the flow direction of the data of biography down; The flow direction of the data that dotted arrow is represented to upload is in existing data transmission procedure, and train data collection in the acquisition station 3 and processing module 33 are given monitoring center 1 through data communication module 32 and data communication network 2 with data message, self check information uploading with selftest module 34.Generate a spot of command message after the data message that the SIC of monitoring center 1 transmits on receiving and handling, the self check information and be handed down to relevant acquisition station 3; Command message sends the master scheduling module 31 of acquisition station 3 to through data communication network 2 and data communication module 32, and master scheduling module 31 is handled the command message of receiving.
Data message acknowledge of the present invention and repeating method; Be data check and the retransmission mechanism that increases from acquisition station 3 lands the data between nodes transmission course to data,, increase the link of checking of monitoring center 1 and acquisition station 3 through expanding acquisition station 3 self check information; Guarantee the integrality of transfer of data; Solve data loss problem, fundamentally solved the deficiency that exists in the THDS transfer of data, ensure the traffic safety of rolling stock.
The inventive method mainly is applicable to the equipment of these two kinds of models: the HBDS-II type THDS (being called for short two type machines) and the HBDS-III type THDS (being called for short three type machines) that adopts the photon probe that adopt thermosensitive probe.Because the main hardware of these two kinds of equipment is different, also there are very big-difference in the self test mode of hardware device and self check content of message, these two kinds of types are also distinguished in the explanation of embodiment of the present invention described.
Two type machines and three type machines all are bi-directional device, can survey the train of two different traffic directions simultaneously, and these two detection directions are called uplink and downlink respectively.For a particular probe direction of same acquisition station 3, the same time only has a train passes through, and the time of passing through of every train all is unique.The self check data message of two type machines comprises both direction simultaneously, and the self check data message field of three type machines divides up-downgoing only to comprise a direction.The initial designs length of the self check data message of two type machines is shorter; May cause data message to be blocked owing to the compatibility issue of intermediate conveyor software after data length expanded, so adopt binary-coded decimal and ASCII character dual mode to carry out Redundancy Design when crossing the car temporal information recently increasing.The train that passes through of each acquisition station 3 all has the time interval more than at least 5 minutes, and do not have train through the time equipment self-inspection the time interval be no more than 1 minute, the more self check information of the frequency can in time in time upload to monitoring center 1 to the nearest time that crosses car.
A kind of data message acknowledge of the present invention and repeating method may further comprise the steps:
Step 1: acquisition station 3 train through the time gather and handle and obtain the train data message, when uploading this train data message, in EEPROM (EEPROM), store backup.At this moment, until next train passes through, the car time excessively in this train data is exactly the nearest car time excessively.
Step 2: with increasing the nearest car temporal information of crossing in the existing acquisition station 3 self check information, acquisition station 3 is uploaded self check information and is given monitoring center 1.
To two type machines; The nearest car temporal information of crossing that increases comprises: uplink and downlink are nearest spends the car time, uply spend the car time and descendingly spend the car time recently recently; These three information respectively take 8 bytes; Uply spend the car time and the descending nearest form of spending the car time is: MMDDHHMM, an expression month day time-division recently.Nearest this information of car time of crossing of uplink and downlink is to spend the car time so that binary-coded decimal form repetition up-downgoing is nearest; Up nearest car time excessively and descending nearest mistake car time respectively account for 4 bytes; Form is MDHM; Expression month day time-division respectively accounts for 1 byte, content is corresponding adopt the ASCII character form spend the car time and descendingly spend the car time recently up recently; Purpose is to carry out redundancy detection, avoids because the data length of self check information may cause the intercepted problem of data message of self check information owing to the compatibility issue of intermediate conveyor software after expansion.Up nearest car time and descending nearest each 8 of car times totally 16 bytes of crossing crossed.The message format of two type machine self check data after the expansion is as shown in table 1 below, and the message total length is extended for the 42h byte by original 30h byte.
The message format of two type machine self check information after table 1 expands
In the message format of two type machine self check information as shown in table 1, the later part of 30h expands when being the inventive method enforcement.Because of the length of self check information has increased; May can not guarantee that the content intact that increases sends to owing to the reason of intermediate communication link aspect; So done the repetition of binary-coded decimal form in the position of 28h, be that original self check information is reserved from the 28h byte to the part the 30h byte, can not lose.
To three type machines; Because the self check data message is to distinguish uplink and downlink,, take 8 bytes so the nearest car temporal information excessively that in existing self check data message, increases is exactly the up or descending nearest car time excessively; Form is: MMDDHHMM, expression month day time-division.The message format of three type machine self check data after the expansion is as shown in table 2 below, and the message total length still remains the 66h byte.H representes 16 systems.The part that begins from 1eh in the data message of three type machine self check information is reserved, and the total length of self check does not increase, and in transmission course, can not lost.
The message format of three type machine self check information after table 2 expands
Step 3: the SIC of monitoring center 1 judges according to self check information whether the nearest train data message that receives is wrong.The software SIC of monitoring center of THDS receives the self check information of acquisition station 3; Wherein nearest crossed the car temporal information to be compared with mistake car time in the corresponding acquisition station of the having received 3 nearest train data messages; If two temporal informations are inconsistent then from trend acquisition station 3 transmitting order to lower levels; Require acquisition station 3 to retransmit nearest train data message, get into step 4 then and carry out, if two temporal information unanimities; Then wait for the arrival of next train, change step 1 then and carry out.If require to retransmit then transmitting order to lower levels " RET0 " of up train data message, if will retransmit then transmitting order to lower levels " RET1 " of descending train data message.
Monitoring center 1 is directed against the process that each acquisition station 3 all carries out step 3 respectively, guarantees that the train data message that each acquisition station sends does not lack.
For example, use under the situation of two type machines, behind the up or descending car excessively of certain acquisition station; The train data message that SIC receives that this acquisition station sends and the self check information of two type machines; SIC spends up nearest in the self check information that receives the car time or descendingly spends the car time recently, crosses the car time ratio in the nearest train data message that has received with SIC, if the two unanimity; The errorless of train data message transmissions is described; If the two is inconsistent, explain that disappearance appears in this nearest corresponding train data message of car time of crossing in transmission, need should send to SIC by nearest train data message again.
Use the situation of three type machines identical with the situation of the two type machines of use.
Step 4: acquisition station 3 is received the retransmission data instruction, from EEPROM, takes out the train data message of uploading recently and sends to monitoring center 1.
Step 5: judge whether next train will arrive, if, change step 1 and carry out, if not, change step 2 and carry out.
Before next train passes through, repeating above-mentioned checking procedure all the time between acquisition station 3 and the monitoring center 1.Certainly, if through verification, train data is not lost train data with consistent then explanation of the car time that crosses in the self check data in data transmission procedure, need not to retransmit.Sign uniqueness and the train of each acquisition station 3 in whole network guaranteed to cross the car temporal information through verification through the uniqueness of acquisition station time and confirmed whether car data has lose in transmission course.
As shown in Figure 3; When using two type machines or three type machine equipments and gather with transmission course to the Train Wheel axis information; Data message acknowledge of the present invention and repeating method are used wherein; Train data collection in the acquisition station 3 and processing module 33 will be recently crossed the train data message of car and are preserved, and selftest module 34 adds in the self check information and uploads crossing the car temporal information recently when forming self check.The SIC of monitoring center 1 judges according to the nearest car temporal information of crossing in the self check information whether the nearest train data message that receives is wrong; If wrong then to acquisition station 3 transmission retransmission data instructions, acquisition station 3 receives the nearest train data message that will preserve after this retransmission data instruction and is uploaded to monitoring center 1 again.Through check and correction to nearest mistake car temporal information; Detect the situation that transfer of data is lost; Make through retransmission data and to avoid losing of data; Solved that the row phenomenon is lost in the existing transmission that in the THDS transfer of data, occurs and the problem that do not have remedial measure, further ensured the traffic safety of rolling stock.