Summary of the invention
For the problems referred to above that prior art middle rolling car walking direction exists, now provide a kind of and be intended to judge that the one of direction of traffic judges direction of traffic method by detecting distance contrast.
Concrete technical scheme is as follows:
One judges direction of traffic method and system, specifically comprises the following steps:
The AP (AccessPoint, wireless access node) that step S1, headend equipment associate to correspondence sends multiple range finding message continuously;
The AP of step S2, described headend equipment correspondence association is corresponding respectively after the multiple range finding messages receiving the transmission of described headend equipment sends multiple reply range finding message extremely described headend equipment;
Step S3 until described headend equipment completes roaming calculates when being associated to next AP and describedly send range finding message time and receive the described time difference of replying range finding message time, through calculating multiple distance values of described headend equipment and the corresponding AP distance associated;
Step S4, the multiple described distance value drawn by headend equipment described in analytical calculation, the described headend equipment that distance value constantly increases is at the tailstock, and the described headend equipment that distance value reduces always is at headstock.
Preferably, described headend equipment sends multiple range finding message and the transmitting time of each described range finding message of corresponding record to the AP that correspondence associates.
Preferably, what described headend equipment sended in the AP receiving the association of described headend equipment correspondence multiplely replys range finding message and each described time of receptions of replying range finding message of corresponding record.
Preferably, described headend equipment comprises the first headend equipment and the second headend equipment.
Preferably, described first headend equipment and described second headend equipment are set up by a switching equipment and are communicated.
Preferably, described headend equipment is car-mounted terminal.
Preferably, in described step S3, described headend equipment comprises the first headend equipment and the second headend equipment, comprises the following steps:
Step S31, described first headend equipment and described second headend equipment correspondence complete roaming and are associated to next AP;
Step S32, described first headend equipment and described second headend equipment are corresponding respectively calculates the described time difference sending range finding message time and receive described reply range finding message time,
Step S33, described first headend equipment and described second headend equipment, respectively according to the aerial transmission speed of radio wave and respectively corresponding multiple time differences, calculate multiple distance values of multiple distance value of described first headend equipment and the corresponding AP associated and described second headend equipment and the corresponding AP associated respectively.
Preferably, described AP is wireless base station wireless access node.
Technique scheme tool has the following advantages or beneficial effect: sent multiple range finding message by headend equipment continuously to the AP that correspondence associates and send multiple reply after multiple range finding messages of sending in receiving front-end equipment of the AP of headend equipment correspondence association and find range message to headend equipment, headend equipment records the time of each transmission range finding message and the time of each reply detection messages of record reception respectively, calculate the distance value of many group headend equipments and the corresponding AP associated, thus compare and show that headend equipment that distance value increases always is in tailstock work, the headend equipment that distance value reduces always is in headstock work, thus solve need not by the signal of automatic train monitor to judge direction of traffic, decrease that with the degree of coupling of PIS system, operation more simply to be judged more accurate.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art obtain under the prerequisite of not making creative work, all belongs to the scope of protection of the invention.
It should be noted that, when not conflicting, the embodiment in the present invention and the feature in embodiment can combine mutually.
Below in conjunction with the drawings and specific embodiments, the invention will be further described, but not as limiting to the invention.
Technical solution of the present invention comprises one and judges direction of traffic method.
As shown in Figure 1, a kind of embodiment judging direction of traffic method.
One judges direction of traffic method and system, specifically comprises the following steps:
Step S1, headend equipment send multiple range finding message continuously to the AP that correspondence associates;
Correspondingly respectively after multiple range finding messages that the AP of step S2, headend equipment correspondence association sends in receiving front-end equipment send multiple reply and find range message to headend equipment;
Step S3 until headend equipment completes roaming calculates when being associated to next AP and send range finding message time and receive the time difference of replying range finding message time, through calculating multiple distance values of headend equipment and the corresponding AP distance associated;
Step S4, the multiple distance values drawn by analytical calculation headend equipment, the headend equipment that distance value constantly increases is at the tailstock, and the headend equipment that distance value reduces always is at headstock.
In a particular embodiment, headend equipment comprises the first headend equipment and the second headend equipment, first headend equipment sends multiple range finding message with the second headend equipment respectively to the AP correspondence associated, first headend equipment and the second headend equipment respectively corresponding AP associated send multiple reply range finding message to the first headend equipment and the second headend equipment after receiving the first headend equipment and the second headend equipment, first headend equipment and the second headend equipment respectively corresponding record send the time of each range finding message and after receiving multiple reply range finding message, record each reception reply range finding message time, thus draw and organize the time difference more, and be associated to next corresponding AP in the first headend equipment and the roaming of the second headend equipment, calculate the distance value between many groups the first headend equipment with the second headend equipment to the corresponding AP associated, and analyze many groups distance value of the first headend equipment and many groups distance value of the second headend equipment, thus the increasing headend equipment of judging distance value is at the tailstock, the more and more less headend equipment of distance value is at headstock, thus solve need not by the signal of automatic train monitor to judge direction of traffic, decrease that with the degree of coupling of PIS system, operation more simply to be judged more accurate.
On such scheme basis, further, headend equipment can send multiple range finding message and the transmitting time of each range finding message of corresponding record to the AP of correspondence association.
On such scheme basis, further, headend equipment in receiving front-end equipment correspondence association AP send over multiple reply range finding message and corresponding record each reply range finding message time of receptions.
On such scheme basis, further, headend equipment can comprise the first headend equipment and the second headend equipment.
On such scheme basis, further, the first headend equipment and the second headend equipment are set up by a switching equipment and are communicated.
On such scheme basis, further, headend equipment can be car-mounted terminal.
On such scheme basis, further, in step s3, as shown in Figure 2, headend equipment can comprise the first headend equipment and the second headend equipment, comprises the following steps:
Step S31, the first headend equipment and the second headend equipment correspondence complete roaming and are associated to next AP;
Step S32, the first headend equipment and the second headend equipment respectively corresponding calculating send range finding message time and receive the time difference of replying range finding message time,
Step S33, the first headend equipment and the second headend equipment, respectively according to the aerial transmission speed of radio wave and respectively corresponding multiple time differences, calculate many groups distance value of many groups distance value of the first headend equipment and the corresponding AP associated and the second headend equipment and the corresponding AP associated respectively.
On such scheme basis, further, AP is wireless base station wireless access node.
Technique scheme tool has the following advantages or beneficial effect: sent multiple range finding message by headend equipment continuously to the AP that correspondence associates and send multiple reply after multiple range finding messages of sending in receiving front-end equipment of the AP of headend equipment correspondence association and find range message to headend equipment, headend equipment records the time of each transmission range finding message and the time of each reply detection messages of record reception respectively, calculate the distance value of many group headend equipments and the corresponding AP associated, thus compare and show that headend equipment that distance value increases always is in tailstock work, the headend equipment that distance value reduces always is in headstock work, thus solve need not by the signal of automatic train monitor to judge direction of traffic, decrease that with the degree of coupling of PIS system, operation more simply to be judged more accurate.
The foregoing is only preferred embodiment of the present invention; not thereby embodiments of the present invention and protection range is limited; to those skilled in the art; should recognize and all should be included in the scheme that equivalent replacement done by all utilizations specification of the present invention and diagramatic content and apparent change obtain in protection scope of the present invention.