A kind of intelligent transportation bus or train route high-speed communication system based on Wi-Fi
Technical field
The present invention relates to intelligent transportation system field, refer in particular to a kind of intelligent transportation car based on Wi-FiRoad high-speed communication system.
Background technology
In recent years, the technical development of Wi-Fi obtains very fast, except data communication is fast and easily provided, be also widely used in power monitoring, the Internet of Things fields such as environmental bydraulic engineering monitoring. Wi-Fi follows IEEE802.11 agreement, it has defined the equipment of two types. One is work station, another kind of titleFor WAP. Wi-Fi network has two kinds of mode of operations: infrastructure pattern and aD-hoc pattern. As be arranged to infrastructure pattern, so in this wireless network extremelyA rare WAP being connected with cable network, can comprise multiple wireless work simultaneouslyStand. Ad-hoc pattern, also referred to as ad hoc mode or IBSS, in networking, each equipment isBe equal to direct communication mutually.
Under infrastructure pattern, work station with WAP data communication before, mustMust be through authentication and association phase, only ability data communication after being successfully associated. CertificationWith association process sometimes need to spend several seconds tens seconds even. In addition in work station and nothingIn the process of line access point communication, work station must regularly be received WAP beacon frame, asDo not receive in time beacon frame, association will finish, and data communication is interrupted thereupon. As will be againRecover communication, pass through again authentication and association process, take a long time again.
Because the signal transmission environment of Wi-Fi is more complicated, be easy to be subject to various spacing wavesDisturb, as adjacent-channel interference, multipath interference etc., if work station and its WAPDistance a bit, that radio signal quality will become is very poor, can not ensure each messageSuccess sends. And specify in IEEE802.11 agreement, send to the designated equipment data message mustMust receive the confirmation message of opposite endAfter, could continue to send next message, as do not received confirmation message in official hour, the MAC layer of transmitting terminal is just thought and was sent last time unsuccessfully, can resend. If what resend is inferiorCounted to default thresholding, sent and just stop, communication will be interrupted.
From the communication process of Wi-Fi, can find out, intensity and the quality of RFDC to signal hasHigher requirement. In order to ensure that communicating by letter of work station and access point keeps certain stablizing, workStand except must, in the primary service area of WAP, preferably be positioned at certain in communication processIndividual fixed position, remains static.
With infrastructure Pattern Class seemingly, Ad-hoc pattern also had one before point-to-point communicationThe administrative message interaction of series, the time of cost also more than second level, data communication steadyFixed intensity and the quality that also depends on wireless signal.
Can find out from above discussion, no matter in infrastructure pattern or ad-hoc pattern, the work station of a fast moving be can not and near WAP it carry out effectivelyData communication. Reason is that this work station has only stopped in the service area of this WAPTens seconds, work station is at all not free associated with WAP foundation, or has just builtAfter vertical association, work station just leaves LiaoBSS district, cannot carry out data communication subsequently, even if thisThe data message of individual needs communication is very short. But no matter be in fact, that work station or access point existIn those tens short seconds, really can receive the pipe that (maybe can receive a part) the other side sendsReason message.
In urban transportation, these short messages with transport information are really extremely important. One is drivenThe person of sailing, if vehicle has been installed Wi-Fi equipment, this equipment can be received and be arranged in real timeThe short message that the WAP of trackside is sent, tells the traffic conditions of his road ahead, heBe certain to, according to this real-time transport information, dynamically select traffic route. When now a lot ofTime is to only have the row as driverWhile sailing near traffic congestion, just know the traffic congestion situation in this place, at this moment he does not have except being blockedThere are other to select. And the transport information that radio station is reported is because time delay is too large, to driver's sideHelp very limited.
The chip price of Wi-Fi is very cheap at present, designs a vehicle-mounted Wi-Fi work station and becomesThis can be very not high. Itself just has Wi-Fi function the smart mobile phone that for example driver carries, and expandsThe Wi-Fi function of filling it just can allow smart mobile phone have the communication capacity of transport information. But,According to IEEE802.11 agreement, be that work station or WAP are not supported short messageData communication.
China Patent Publication No. CN102622869A, in open day on August 1st, 2012, name is called " oneKind alleviate urban transportation stop up method " in disclose a kind of alleviate urban transportation stop up methodAnd device, automobile utilizes GPS location technology, and automobile is adopted from the coordinate figure travelling on roadSend to the signal repeater that is arranged on each main traffic crossing by the mode of FM signal, letterBreath transponder changes the coordinate figure of automobile into data word signal and is transferred to data service center, dataAfter service centre processes the signal of receiving, more in good time traffic information link is crossed to frequency modulation letterNumber mode send to each automobile, with play alleviate urban transportation stop up object. The present invention adoptsUse GPS location technology, the gps coordinate value of automobile sent by the mode of FM signal,After reception & disposal, recycle existing the Internet broadband transmission technology and send to data processingProcess at center, then in good time traffic conditions radio broadcasting radio station is fed back to car steeringMember, makes driver can select rational traffic route, avoids causing traffic jam. This patent is notFoot part is, GPS there will be the inaccurate situation in location, and feeds back by radio broadcasting radio stationMethod also there will be the situation that time delay is larger.
Summary of the invention
The object of the invention is to overcome in prior art the efficiency that automobile in intelligent transportation obtains traffic informationLower, prior art cannot provide traffic information to automobile fast and effectively, and intelligent transportation systemSystem is collected everyThe slower shortcoming of information rate of individual automobile, provides a kind of intelligent transportation bus or train route based on Wi-Fi fastSpeed communication system, automobile can quick obtaining traffic information, and intelligent transportation system can be received fastThe information that Ji Lu gets on the car also feeds back to each automobile.
The object of the invention is to be achieved by following technical proposals:
An intelligent transportation bus or train route high-speed communication system based on Wi-Fi, comprises the work being located on automobileStand and be located at WAP, described WAP and the traffic-information service center in roadsideConnect, WAP is also connected by Wi-Fi with work station; Work station and WAP are equalInclude the software frame based on Wi-Fi communication protocol, in software frame, be provided with short message and process mouldPiece, short-message protocol module and system call interfaces, short message processing module and short-message protocolModule is connected, and short-message protocol module is connected with system call interfaces, and short message is processed mouldPiece is also connected with supervisory packet distributor, and supervisory packet distributor is connected with MAC layer, and MAC layer alsoBe connected with physical layer. The WAP in roadside by Wi-Fi to the work station on automobile with extensivelyThe form of broadcasting sends the short message with transport information, and work station is informed automobile after receiving short messageOn driver and conductor; Meanwhile, work station becomes short message to pass through Wi the information editing of own vehicle-Fi is sent to the WAP in roadside, the wireless access in roadside name a person for a particular job multiple vehicles information convergeCollection is to the traffic-information service center on backstage. At the WAP in roadside and the work station of automobileSet up in the effective time of tens seconds of communication, because short message communication does not need to manage reportCivilian is mutual, does not need certification with associated, and short message is because be that short message sends receptionTime is very short, and the wireless bandwidth taking is little, and WAP and work station can have enoughIt is mutual that time communicates, and the driver and conductor on automobile can obtain traffic information fast, withTime traffic-information service center can grasp accurately and effectively traffic information, intelligent transportation in timeProperty and validity improve greatly.
As a kind of preferred version, the software frame based on Wi-Fi communication protocol also includes supervisory packet and dividesHair device, supervisory packet distributor is connected with Wi-Fi protocol stack with short message processing module simultaneously, pipeReason bagDistributor is also connected with MAC, the short message communication that short message processing module is carried out and Wi-Fi associationThe broadband data communication that view stack carries out is worked simultaneously. Supervisory packet distributor is used for identifying receivedMessage whether be short message, if so, send to short message processing module, if not, thisDeliver to Wi-Fi protocol stack. By the work of supervisory packet distributor, can retain Wi-Fi merit completelyCan, can realize again the communication of short message simultaneously, the cost of expansion is lower, with Wi-Fi functionEquipment all can be realized.
As a kind of preferred version, the supervisory packet of the software frame based on Wi-Fi communication protocol of work stationDistributor receives the administrative message that sends of WAP, the communicating by letter based on Wi-Fi of WAPThe management frames that the supervisory packet distributor receiving workstation of the software frame of agreement sends.
As a kind of preferred version, management frames is information transferring frames, detect claim frame or probe response frame, described administrative message is beacon frame.
Beacon frame is the one of administrative message, and it is a broadcasting packet, initiatively fixed by WAPTime send, the transmission cycle is default is 100 milliseconds. Work station at any time can receive fromNear the beacon frame of WAP. In beacon frame, each field order has strict demand,Its last field is producer's custom field, and maximum length is 1024 bytes. We knowRoad, in city, the extensive Wi-Fi equipment of laying is all wireless router now, is wireless accessPoint. Work station is responsible for burst and is received, and collects, integration, verification, give on then corresponding shouldUse program. Like this, by this custom field that Real-time Traffic Information is embedded into beacon frameIn the mechanism in batches broadcasted away, near the driver just can allowing understands friendship above in real timeThereby logical situation is made corresponding selection. Consider that beacon frame is that fixed time broadcast sends, soTransport information can repeat to upgrade and report.
As a kind of preferred version, front 24 bytes of information transferring frames are with to detect claim frame identical, itsRemaining data comprise identity, speed, position and the directional information of vehicle itself; Information transferring framesMaximum length be 512 bytes. 24 byte frame heads and detect claim frame one before information transferring framesSample, but belowData content is self-defining completely. Information transferring frames is a broadcasting packet, can not make mistakes heavilySend out, also do not need confirmation of receipt. It is a short message, and maximum length is 512 bytes.
As a kind of preferred version, the maximum length of beacon frame is 512 bytes. Consider transmitting efficiency andReliable reception, the maximum length length of beacon frame can not exceed 512 bytes. If transport information is longDegree is greater than 512 bytes, and user application should be responsible for fractionation, and segmentation is embedded in beacon frame goes.
The invention has the beneficial effects as follows, by loading and connect in the software frame based on Wi-Fi communication protocolTransmit and receive message function module, automobile can quick obtaining traffic information, intelligent transportation systemThe information of can quick collection road getting on the car also feeds back to each automobile. And the present invention only need to beOn the existing equipment with Wi-Fi function, do simple transformation, be easy to realization and cost lower.
Brief description of the drawings
Fig. 1 is the software frame figure based on Wi-Fi communication protocol of the present invention;
Fig. 2 is the software frame figure based on Wi-Fi communication protocol of prior art;
Fig. 3 is the schematic diagram of information transferring frames form of the present invention.
Detailed description of the invention
Below in conjunction with drawings and Examples, the present invention is further described.
Embodiment: a kind of intelligent transportation bus or train route high-speed communication system based on Wi-Fi, comprises and be located at automobileOn work station and be located at the WAP in roadside, described WAP and transport informationService centre connects, and WAP is also connected by Wi-Fi with work station; Work station and wirelessAccess point includes the software frame based on Wi-Fi communication protocol, based on Wi-Fi communication protocolSoftware frame figure as shown in Figure 1, with the software frame based on Wi-Fi communication protocol of prior artFrame figure (as Fig. 2) compares, softIn part framework, be also provided with supervisory packet distributor, short message processing module, short-message protocol module andSystem call interfaces, short message processing module is connected with short-message protocol module, short message associationView module is connected with system call interfaces, short message processing module and the Wi-Fi protocol stack while withSupervisory packet distributor is connected, and supervisory packet distributor is also connected with MAC, short message processing moduleThe broadband data communication that the short message communication carrying out and Wi-Fi protocol stack carry out is worked simultaneously.
The supervisory packet distributor of the software frame based on Wi-Fi communication protocol of work station receives wireless accessThe beacon frame that point sends, the management of the software frame based on Wi-Fi communication protocol of WAPThe information transferring frames that bag distributor receiving workstation sends. The schematic diagram of the form of information transferring framesShown in 3, front 24 bytes are with to detect claim frame identical, and remaining data comprises the ma of 4 bytesRker and vehicle specifying information, comprise identity, speed, position and the directional information of vehicle itself; The maximum length of information transferring frames is 512 bytes.
The mode of operation of the WAP in roadside is that receiving type when supervisory packet distributor is to detect to askWhile asking frame, further check and in frame entity, in assigned address, whether comprise specific markerCharacter string, if any, illustrate that this is an information transferring frames, only issues the short message processing on upper strataModule. Other frame that does not meet above-mentioned condition is all delivered to Wi-Fi protocol stack.
The mode of operation of the work station of automobile is, in the time that supervisory packet distributor is received beacon frame, to enter oneWhether step inspection comprises specific character string in frame entity in assigned address, if any, this is describedBe the beacon frame with user profile, then carry out two steps:
A. user profile is extracted, issue the short message processing module on upper strata.
B. do not have the beacon frame of user profile to deliver to the Wi-Fi protocol stack on upper strata this.
If the beacon frame of receiving does not comprise specific character string on inspection, directly give upper strataWi-Fi protocol stack. Other frame in addition is all delivered to Wi-Fi protocol stack.
The method of testing of maximum short message transmission range is, allows the work station of automobile slowly away from roadsideWAP, in this process, the WAP in roadside transmission short message per second information,Work station receives until no longer receive message position, and test result is as follows:
Drawn by form, the distance of communication is substantially more than 1000 meters, and work station and WAP haveTime enough communicates.
The method of testing of maximum wideband data transmitting range is to allow the work station of automobile slowly away from roadsideWAP, in this process, the wireless interface in the continuous ping of the computer of work station roadsideEnter computer a little, until cannot lead to by ping, test result is as follows:
Channel |
165(5.825GHz) |
Communication distance |
600m |
Can find out from above-mentioned two tests, maximum short message propagation distance is than the maximum data distance of communicating by letterFrom being twice. Reason is that short message mechanism of transmission only need be operated in the second layer, work station and nothingLine access point does not need to connect, and must be based upon work station and wireless interface and two computers ping is logicalUnder the basis that enters a little to connect, the administrative message between work station and WAP must be heldReceive continuously.
The dynamic testing method that short message is propagated is as follows, and the vehicle of work station is with the speed of 60km/hSail out of WAP, check that work station short message has or not packet loss phenomenon, test result is as follows:
Can be found out by form, in the time that Vehicle Speed is 60km/h, the dynamic acceptance of short messageCan under different Wi-Fi channels, there is excellent performance.