Embodiment
Adopt FFF S coding strategy (Form Fit Function Specification Coding Strategy), comprise two kinds of patterns: long code (1023) and short code (341), its structure as shown in Figure 4, bit is designated bn-1, bn-2 ..., b1, b0, the left side is high-order, the right is low level.
In CTCS system, all adopt at present long messages, the message that adopts FFFS coding strategy to generate, is characterized in repetitive cycling coding, so from the beginning the transmission of message do not need (or tail) to transmit, and can start transmission from any of message.
The method of the definite response device message error rate disclosed by the invention, can detect the bit that error code occurs in transponder message, and calculates the message error rate, and then weighs the performance quality of transponder.
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills are not making under creative work prerequisite, and the every other embodiment obtaining, belongs to protection range of the present invention.
Embodiment mono-
Referring to Fig. 1, Fig. 1 is the flow chart of the method for the disclosed definite response device of the embodiment of the present invention one message error rate.Comprise:
Step S1: 1023 bits that the transponder message highest order from receiving is started, as current message segment, carry out decoding to current message segment.
Step S2: judge that current message segment whether can correct decoding, when current message segment can not correct decoding, execution step S3.
Step S3: using from time high-order 1023 bits that start of current message segment as current message segment, current message segment is carried out to decoding.
Step S4: when current message segment can not correct decoding, repeated execution of steps S3, until obtain the message segment of correct decoding.
The message that transponder sends is encoded according to FFFS coding strategy, if error code does not occur 1023 of arbitrary continuation bits in message, the message segment that can form these 1023 bits carries out correct decoding, and without the head or tail of finding message.Start from message highest order 1023 bits are carried out to decoding; If current message segment can not correct decoding, to low level, move one, using from time high-order 1023 bits that start of current message segment as current message segment; Current message segment is carried out to decoding, if still can not correct decoding, using from time high-order 1023 bits that start of current message segment as current message segment; Current message segment is carried out to decoding, if still can not correct decoding, repeat the above-mentioned step that moves a laggard row decoding to low level, until obtain correct message segment.
Step S5: comparison is positioned at the message segment and the message segment of correct decoding before the message segment of correct decoding, determines that the bit of error code occurs the message segment before of message segment that is arranged in correct decoding.
After obtaining correct message segment, also to further determine and be arranged in this correct message segment message segment before have how many bits that error code has occurred.Concrete process is, the lowest order of the message segment before being arranged in this correct message segment starts to compare by turn, be arranged in the lowest order of the message segment before this correct message segment and the lowest order of correct message segment is compared, be arranged in the inferior low level of the message segment before this correct message segment and the inferior low level of correct message segment is compared, by that analogy, to being arranged in each bit of this correct message segment message segment before, compare respectively, determine the quantity that the bit of error code occurs in this message segment.
Step S6: after the message segment of correct judgment decoding, whether also have bit, while there is no bit after the message segment of correct decoding, execution step S7.
Step S7: determine the total amount of bit in the transponder message receiving, according to quantity and the total amount definite response device message error rate that the bit of error code occurs.
If there is no other bit after the message segment of correct decoding, 1023 of this correct decoding bits are last 1023 of the transponder message that receives, before the bit that error code now occurs in whole transponder message is all positioned at the message segment of this correct decoding, be arranged in the quantity that the bit of error code occurs message segment before this correct decoding message segment and be the quantity that the bit of error code occurs whole transponder message, according to the total amount of bit in transponder message, and the quantity that the bit of error code occurs, the error rate that just can definite response device message.
Embodiment bis-
Referring to Fig. 2, Fig. 2 is the flow chart of the method for the disclosed definite response device of the embodiment of the present invention two message error rate.Comprise:
Step S1 is consistent with the particular content of corresponding steps in embodiment mono-to the particular content of step S5, does not repeat them here.
Step S6: after the message segment of correct judgment decoding, whether also have bit, while also having bit after the message segment of correct decoding, execution step S8.
Step S8: using time high-order 1023 bits that start of the message segment from correct decoding as current message segment, current message segment is carried out to decoding.
Step S9: judge that current message segment whether can correct decoding, when can correct decoding, execution step S6, when cannot correct decoding, execution step S10.
Step S10: whether the quantity that judgement is arranged in the message segment bit after current message segment is less than 1022, when the quantity of the message segment bit after being arranged in current message segment is less than 1022, execution step S11.
Step S11: the message segment that comparison is positioned at the last correct decoding and the message segment being positioned at after the message segment of the last correct decoding, determine that the bit of error code, execution step S7 occur the message segment after the message segment that is arranged in the last correct decoding.
Step S7: determine the total amount of bit in the transponder message receiving, according to quantity and the total amount definite response device message error rate that the bit of error code occurs.
If while also having bit after the message segment of correct decoding, whether the bit that needs further judgement to be arranged in the message segment after the message segment of correct decoding there is error code.
Using time high-order 1023 bits that start of the message segment from correct decoding as current message segment, if current message segment can be correctly decoded, and also have bit after current message segment,, by usining 1023 bits that current message segment starts as current message segment, repeat said process.That is to say, if current message segment can correct decoding, just to low level, move by turn, and current data section is carried out to decoding.
Using time high-order 1023 bits that start of the message segment from correct decoding as current message segment, if current message segment can not be correctly decoded, and during 1022 of bit less thaies after current message segment, according to the message segment of the last correct decoding, determine whether each bit after the message segment that is positioned at the last correct decoding error code occurs, concrete, the highest order of the message segment after being arranged in the message segment of the last correct decoding starts to compare by turn, being arranged in the highest order of message segment after the message segment of the last correct decoding and the highest order of the message segment of the last correct decoding compares, being arranged in an inferior high position for message segment after the message segment of the last correct decoding and an inferior high position for the message segment of the last correct decoding compares, by that analogy, to being arranged in each bit of the message segment after the message segment of the last correct decoding, compare respectively, determine the quantity that the bit of error code occurs in this message segment.
The quantity of the bit of the generation error code in transponder message is to be arranged in message segment before the message segment of correct decoding for the first time the bit of error code to occur and be arranged in the quantity sum that the bit of error code occurs for message segment after the message segment of the last correct decoding.According to the total amount of transponder message with the error rate that the quantity of the bit of error code just can definite response device message occurs.
Embodiment tri-
Referring to Fig. 3, Fig. 3 is the flow chart of the method for the disclosed definite response device of the embodiment of the present invention three message error rate.Comprise:
Step S1 is consistent with the particular content of corresponding steps in embodiment bis-to the particular content of step S9, does not repeat them here.
Step S10: whether the quantity that judgement is arranged in the message segment bit after current message segment is less than 1022, when the quantity of the message segment bit after being arranged in current message segment is less than 1022, execution step S11, when the quantity of the message segment bit after being arranged in current message segment is not less than 1022, execution step S12.
Step S11: the message segment that comparison is positioned at the last correct decoding and the message segment being positioned at after the message segment of the last correct decoding, determine that the bit of error code, execution step S7 occur the message segment after the message segment that is arranged in the last correct decoding.
Step S12: using 1023 bits that start from current message segment lowest order as current message segment, current message segment is carried out to decoding;
Step S13: judge that current message segment whether can correct decoding, when can correct decoding, execution step S6, when cannot correct decoding, execution step S14;
Step S14: judge after current message segment whether also have bit, while there is no bit after current message segment, execution step S11, while also having bit after current message segment, execution step S15.
Step S15: using from current message segment time high-order 1023 bits that start as current message segment, current message segment is carried out to decoding.
Step S16: judge that current message segment whether can correct decoding, when can correct decoding, execution step S17, otherwise, execution step S14.
Step S17:: the message segment between the message segment at the last correct decoding and the message segment of a front correct decoding and the message segment of the last correct decoding are compared, determine the bit that error code occurs in the message segment between the message segment of the last correct decoding and the message segment of a front correct decoding, execution step S6.
Using time high-order 1023 bits that start of the message segment from correct decoding as current message segment, if current message segment can not be correctly decoded and current message segment after bit be no less than 1022, now cause the reason that current message segment can not correct decoding to have two kinds: one, error code has occurred the lowest order of current message segment; Two, the lowest order of current message segment is the beginning of next group data.
1023 bits that lowest order from current message segment is started, as current message segment, carry out decoding to it.
If can correct decoding, illustrate from the highest order of current message segment and start to transmit new data, turn to step S6, carry out follow-up operation.
If cannot correct decoding, and the bit that there is no other after current message segment, now to determine that the bit of error code occurs the message segment being arranged in after the message segment of the last correct decoding, be specially, the highest order of the message segment after being arranged in the message segment of the last correct decoding starts to compare by turn, being arranged in the highest order of message segment after the message segment of the last correct decoding and the highest order of the message segment of the last correct decoding compares, being arranged in an inferior high position for message segment after the message segment of the last correct decoding and an inferior high position for the message segment of the last correct decoding compares, by that analogy, to being arranged in each bit of the message segment after the message segment of the last correct decoding, compare respectively, determine the quantity that the bit of error code occurs in this message segment.
If cannot correct decoding, and after current message segment, also has other bit, now will be using 1023 bits of time high-order beginning from current message segment as current message segment, it is carried out to decoding, if again obtained the message segment of correct decoding after carrying out one or many shifting function, now to determine the bit that error code occurs in the message segment between the message segment of the last correct decoding and the message segment of a front correct decoding, concrete, from the lowest order of the message segment between the message segment of twice correct decoding, start to compare by turn, lowest order in the lowest order of the message segment between the message segment of twice correct decoding and the message segment of the last correct decoding is compared, inferior low level in the inferior low level of the message segment between the message segment of twice correct decoding and the message segment of the last correct decoding is compared, by that analogy, respectively each bit of the message segment between the message segment of twice correct decoding is compared, determine the quantity that the bit of error code occurs in this message segment, return to afterwards execution step S6.
The quantity of the bit of error code occurs in transponder message, is in the message segment occurring in the message segment before the message segment of correct decoding for the first time between the bit of error code, the message segment at twice correct decoding, the bit of error code to occur and be arranged in the quantity sum that the bit of error code occurs for message segment after the message segment of the last correct decoding.According to the total amount of transponder message with the error rate that the quantity of the bit of error code just can definite response device message occurs.
In method disclosed by the invention, from the highest order of transponder message, the message segment that 1023 bits are formed carries out decoding, after obtaining the message segment of correct decoding, to low level, move by turn, in the time can not carrying out correct decoding to message segment, by can not the message segment of correct decoding by this and the message segment of correct decoding compare, in definite response device message, there is the bit of error code, afterwards according to the error rate of the quantity definite response device message of the bit of the total amount of bit in transponder message and generation error code, and then the performance of weighing transponder is fine or not.
In this specification, each embodiment adopts the mode of going forward one by one to describe, and each embodiment stresses is the difference with other embodiment, between each embodiment identical similar part mutually referring to.For the disclosed device of embodiment, because it corresponds to the method disclosed in Example, so description is fairly simple, relevant part partly illustrates referring to method.
It will be understood by those skilled in the art that and can represent information, message and signal with much different technique and any one in technology.For example, the message of mentioning in above-mentioned explanation, information can be expressed as voltage, electric current, electromagnetic wave, magnetic field or magnetic particle, light field or above combination in any.