The method, apparatus and system that a kind of version information of electronic tag updates
Technical field
The present invention relates to moving communicating field, more particularly to a kind of electronic tag version information update method, equipment
And system.
Background technology
With developing rapidly for China's economy, the construction of highway gradually tends to intelligent, intelligentized highway
Billing technology is the Typical Representative that express highway intelligentization is built.Because there is country in terms of construction in China's highway
Build situation about being combined with private investment, then the income between country and individual is allocated according to the ratio of agreement.With
The increase of expressway construction quantity so that road network becomes to become increasingly complex, it is high from the entrance of a highway to one
The outlet of fast highway, often has mulitpath, and this different path may belong to different investors, utilize current receipts
Charge system can not judge the path that vehicle passes through, therefore there is the problem of distribution of interests is uneven.
In order to solve the above problems, path identifying system is produced therewith.The path identifying system is exactly in existing charge
Vehicle paths traversed is recorded on the basis of system, and vehicle paths traversed is determined when being charged, is entered
And determine vehicle through the relation between path and collection of charges.In path identifying system, contain road side base station, track and read
Card device and electronic tag, specific works method is:
First, when certain vehicle is prepared to enter into highway, the entrance for the highway that track card reader passes through vehicle
Information is write in an electronic tag, wherein, between identification information and run routing information that vehicle is generated in electronic tag
Corresponding relation, and the working condition of electronic tag is changed to timing working state, carrying the electronic tag by the vehicle is carried out
Highway;
Secondly, during vehicle is travelled on a highway, the electronic tag timing receipt road side base station of carrying is sent
The routing information for carrying road side base station position, determine the identification information of each routing information received and vehicle
Between corresponding relation, and the corresponding relation of determination is stored in locally;
Finally, when vehicle reaches the outlet of highway, track card reader is read from electronic tag to be stored in locally
Vehicle identification information and the routing information that receives between corresponding relation, determine the routing information of vehicle traveling, and
The data processing that application system carries out next step is reported, meanwhile, the working condition of the electronic tag is updated to inoperative shape
State.
In above-mentioned path identifying system, electronic tag uses totally-enclosed Technology design, can only pass through the mode of eating dishes without rice or wine(I.e. without
Line communication technology mode)Information exchange is carried out between track card reader, road side base station, meanwhile, this electronic tag can not be more
Change battery and require working life more than 5 years, therefore, electronic tag employs low power dissipation design.Under normal circumstances, in electricity
Before subtab is packed, built-in software version has been cured, that is to say, that the software version of electronic tag is not after encapsulation
It can change.But, in some cases, update electronic tag version information be it is necessary, for example:The version letter of electronic tag
Breath changes debugging repeatedly under whole machine state;Again for example:Software version failure under extreme case is, it is necessary to update electronics mark comprehensively
The version information of the software of label.
In the prior art, realize that the mode that the version information of each electronic tag is updated is:Using track Card Reader
Letter closely is carried out between question-response mode between device and electronic tag, i.e. track card reader and each electronic tag
Breath interaction so that each electronic tag obtains the version information after updating from the card reader of track, and completes itself version letter
The renewal of breath.Under the update mode of this version information, each electronic tag is required for carrying out between the card reader of track
Multiple data question and answer, and track card reader can only once carry out data question and answer, this use between an electronic tag
Man-to-man interrogation reply system realizes the renewal of the version information of electronic tag so that the version information of electronic tag updates efficiency
It is low.
The content of the invention
The embodiments of the invention provide a kind of method, apparatus and system of the renewal of the version information of electronic tag, it is used for
Solve electronic tag in the prior art version updating efficiency it is low the problem of.
A kind of update method of the version information of electronic tag, methods described includes:
Version information to be updated is obtained from track card reader, the version information includes:Version number, the total frame of edition data
Number;
Receive the corresponding edition data frame of the version number of road side base station broadcast;
When it is determined that the quantity of the edition data frame received is identical with the edition data totalframes, reception is utilized
Version information is updated to edition data frame.
A kind of more new equipment of the version information of electronic tag, the equipment includes:
Acquisition module, for obtaining version information to be updated from track card reader, the version information includes:Version
Number, edition data totalframes;
Receiver module, the corresponding edition data frame of the version number for receiving road side base station broadcast;
Update module, for it is determined that the quantity and the edition data totalframes phase of the edition data frame received
Meanwhile, update version information using edition data frame is received.
A kind of more new equipment of the version information of electronic tag, the equipment includes:
Acquisition module, for obtaining version information to be updated from track card reader, the version information includes:Version
Number, edition data totalframes;
Receiver module, the corresponding edition data frame of the version number for receiving road side base station broadcast;
Update module, for it is determined that the quantity and the edition data totalframes phase of the edition data frame received
Meanwhile, update version information using edition data frame is received.
A kind of more new system of the version information of electronic tag, the system includes:
Track card reader, the version information to be updated for sending;
Road side base station, for the corresponding edition data frame of broadcast version number;
The more new equipment of the version information of electronic tag, for obtaining version information to be updated, institute from track card reader
Stating version information includes:Version number, edition data totalframes, and receive the corresponding version of the version number of road side base station broadcast
Data frame, when it is determined that the quantity of the edition data frame received is identical with the edition data totalframes, utilizes reception
Version information is updated to edition data frame.
The present invention has the beneficial effect that:
The data of electronic tag version information to be updated are transmitted electron by the embodiment of the present invention using the mode of broadcast
Label, it is synchronous make it that multiple electronic tags obtain the edition data frame, and using the edition data frame received to electronic tag
Version updating operation is carried out, the efficiency of electronic tag version information renewal is improved.
Brief description of the drawings
Fig. 1 is a kind of flow chart of the method for the renewal of the version information of electronic tag of the embodiment of the present invention one;
Fig. 2 is a kind of flow chart of the method for the renewal of the version information of electronic tag of the embodiment of the present invention two;
Fig. 3 is a kind of structure chart of the more new equipment of the version information of electronic tag of the embodiment of the present invention three;
Fig. 4 is a kind of structure chart of the more new system of the version information of electronic tag of the embodiment of the present invention four.
Embodiment
In order to realize the purpose of the present invention, the embodiments of the invention provide a kind of renewal of the version information of electronic tag
Method, apparatus and system, by obtaining version information to be updated from track card reader, wherein, the version information includes:Version
This number, edition data totalframes, and the corresponding edition data frame of the version number of road side base station broadcast is received, it is determined that receiving
When the quantity of the edition data frame arrived is identical with the edition data totalframes, updated using the edition data frame received
The version information of electronic tag.
Compared with prior art, the data of electronic tag version information to be updated are sent to electricity using the mode of broadcast
Subtab, it is synchronous make it that multiple electronic tags obtain the edition data frame, and using the edition data frame received to electronics mark
Label carry out version updating operation, improve the efficiency of electronic tag version information renewal.
Various embodiments of the present invention are described in detail with reference to Figure of description.
Embodiment one:
As shown in figure 1, the flow of the method for a kind of renewal of the version information of electronic tag of the embodiment of the present invention one
Figure.Methods described is specifically included:
Step 101:Version information to be updated is obtained from track card reader.
Wherein, the version information includes:Version number, edition data totalframes, edition data frame identifying code etc..
In a step 101, track card reader is when it is determined that the version information of electronic tag needs to update, and track card reader is led to
The working condition of at least one electronic tag is switched to version information download state by the mode for crossing radio signal transmission, i.e., in real time
Working condition.
It should be noted that the working condition of electronic tag is in addition to instantaneous operating conditions, also including timing working state.
Electronic tag, can be according to two neighboring in timing working state during the routing information that road side base station is sent is received
The distance between road side base station determines the time cycle of electronic tag timing working, this ensure that electronic tag reaches one
It is accurate to receive the routing information needed when in road side base station covering range of signal, meanwhile, so also comply with the low work(of electronic tag
The design of consumption, extends the use time of electronic tag internal battery.
When the working condition of electronic tag switches to version information to download working condition by timing working state, electronics mark
Sign and version information to be updated is obtained at the card reader of track, the version information includes:The version of the version information of the renewal
Number, the edition data totalframes of version information to be updated and edition data frame identifying code etc..
Wherein, electronic tag obtains the mode of version information to be updated at the card reader of track and can be, but not limited to:With
Track card reader carries out short-range communication, i.e., usually said radio frequency short haul connection without being in contact;Can also profit
The information exchange between track card reader and electronic tag is realized with communication network.
Specifically, electronic tag actively asks to send version information to be updated, or track Card Reader to track card reader
Device is carried to be updated when the working condition of electronic tag is switched into version information download state to electronic tag transmission
The more new command of version information.
Step 102:Receive the corresponding edition data frame of the version number of road side base station broadcast.
In a step 102, the mode for receiving the corresponding edition data frame of the version number of broadcast can be, but not limited to:Will
Working condition switches to the electronic tag of version information download state to prepare to connect in the range of being placed on the covering of road side base station signal
Receive the edition data frame of road side base station broadcast;Can also be electronic tag as vehicle is during highway driving, from
The road side base station of received path message synchronously receives the corresponding edition data frame of the version number of broadcast.
Included in the edition data frame:Version number and edition data frame number;
The edition data frame is broadcasting frequency and number of broadcast times of the road side base station according to each edition data frame, and according to same
The ascending ordering protocol of the corresponding edition data frame number of one version number.
Wherein, the broadcasting frequency of setting can be determined based on experience value;The number of times of each frame of broadcast is according to all electricity
Road side base station number of broadcast times minimum value is determined when subtab can all receive all edition data frames.
Specifically, each edition data frame of road side base station broadcast includes:Version number and edition data frame number, each version
When the number of broadcast times of notebook data frame reaches setting number of times, when broadcasting next edition data frame, edition data frame number Jia 1 automatically.
Specifically, the version number included in the edition data frame for receiving road side base station broadcast from track card reader with obtaining
When the version number taken is identical, determine road side base station broadcast edition data frame be from track card reader obtain version number it is corresponding
Edition data frame.
Step 103:When it is determined that the quantity of the edition data frame received is identical with the edition data totalframes,
Utilize the version information for receiving edition data frame renewal electronic tag.
In step 103, receive the frame in edition data frame each time due to electronic tag, receive version each time
During notebook data frame, according to the edition data frame number included in edition data frame, the local identical version that whether has been stored with is judged
Data frame number, if not having, it is determined that be not received by the corresponding edition data frame of the edition data frame number, and will receive
The edition data frame number and corresponding edition data frame be stored in locally.
Specifically, electronic tag judges whether the edition data frame number of the present frame received is total with the edition data
Frame number is identical, if identical, it is determined that have been received by the corresponding all edition data frames of the version number;Otherwise, continue to down
The edition data frame of one frame.
Specifically, the edition data frame number included in the edition data frame received and the edition data totalframes
When numerically identical, it is determined that the quantity for the edition data frame having been received by is identical with the edition data totalframes.
When it is determined that having been received by the version sequence number corresponding all edition data frames, the data frame identifying code is utilized
And checking algorithm is verified to the edition data frame received, the result of checking be by when, current state is believed
Breath is sent to track card reader, wherein, it is corresponding all that status information represents whether electronic tag has been received by the version number
Edition data frame.
Track card reader issues activation instruction when receiving status information, for activating the version that electronic tag is received
Notebook data frame, i.e., resetted the version information that electronic tag is received, and updates the version information in electronic tag.
After version information in activation electronic tag, the corresponding version number of edition data frame after activation is treated with described
The version number included in the version information of renewal is compared, and when comparative result is identical, determines the version information of electronic tag
It is updated successfully, completes the renewal of version information.
By the scheme of embodiment one, version information to be updated is obtained from track card reader, wherein, the version information
Including:Version number, edition data totalframes, and the corresponding edition data frame of the version number of road side base station broadcast is received,
It is determined that when the quantity of the edition data frame received is identical with the edition data totalframes, utilizing the version number received
The version information of electronic tag is updated according to frame.
Compared with prior art, the data of electronic tag version information to be updated are sent to electricity using the mode of broadcast
Subtab, it is synchronous make it that multiple electronic tags obtain the edition data frame, and using the edition data frame received to electronics mark
Label carry out version updating operation, improve the efficiency of electronic tag version information renewal.
Embodiment two:
As shown in Fig. 2 the method flow diagram of the renewal for a kind of version information of electronic tag of the embodiment of the present invention two.
The embodiment of the present invention two is the detailed description of each step in the embodiment of the present invention one, and methods described includes:
Step 201:Track card reader sends the service order of version updating to electronic tag.
Wherein, working condition switching command is contained in the service order and key instruction is read.
Step 202:Reading key instruction of the electronic tag in the service order received, judges track card reader body
Whether part is legal, if legal, performs step 203;Otherwise, the working condition switching command in refusal respond service order.
In step 202., reading key instruction of the electronic tag in the service order received, judges track Card Reader
The whether legal concrete mode of device identity is:
The first step:Electronic tag generates random verification code after the reading key instruction that track card reader is sent is received.
Second step:Key instruction to reading carries out obtaining the first access key after computing, and is visited using first obtained
Ask that computing is encrypted to the random verification code of generation in key, obtain the first result of cryptographic calculation, and the key of reading is referred to
Order and random verification code are sent to track card reader.
Wherein, the algorithm of the cryptographic calculation can be, but not limited to 3DES encryption algorithm or irreversible Hash
Algorithm.
It should be noted that it is local and key pair is locally stored in electronic tag in track card reader in advance, can be to reading
Key instruction carry out computing obtain the first access key, so improve the information interaction of track card reader and electronic tag
Security.
3rd step:The second result that track card reader is sent is received, second result is that track card reader utilizes reception
To key ordering calculation after obtain the second access key, and the random verification code received is carried out using the second access key
What cryptographic calculation was obtained.
4th step:Compare the first result and the second result, when comparative result is identical, by the legal of track card reader
Property certification, and perform step 203;Otherwise, the legitimacy certification to track card reader is not passed through.
Step 203:Version information to be updated is obtained from track card reader.
In step 203, the working condition switching command in electronic tag response service order, by present timing working
State switches to instantaneous operating conditions, and obtains version information to be updated from the card reader of track, wherein, it is described to be updated
Version information includes:Version number, edition data totalframes and edition data identifying code etc..
Step 204:Receive the corresponding edition data frame of the version number of road side base station broadcast.
In step 204, the new version information of electronic tag is resolved into data one by one by road side base station, as
Broadcast signal broadcast, electronic tag receives the broadcast letter for including version number and edition data frame number that road side base station is sent
Number, and according to the edition data frame number received, the local edition data frame for whether having stored same sequence number is judged, if having deposited
Storage, then skip the corresponding edition data frame of the edition data frame number;If the edition data frame number no, is being locally stored
Corresponding edition data frame.
Specifically, the version number included in the edition data frame for receiving road side base station broadcast from track card reader with obtaining
When the version number taken is identical, determine road side base station broadcast edition data frame be from track card reader obtain version number it is corresponding
Edition data frame.
Step 205:Judge the corresponding edition data frame number of current version data frame that receives whether with the version
Data totalframes is identical, if identical, performs step 206;Otherwise, the corresponding edition data frame of next frame number is continued to
In step 205, because road side base station is in the data frame of broadcast version information, the frame taken is repeatedly
Afterwards, then next frame is broadcasted, so often broadcasted once, the frame number of the data frame frame of version information adds 1, so when working as receiving
When the edition data frame number of previous frame is identical with the edition data totalframes in the version information to be updated received, illustrate
Receive the corresponding all edition data frames of the version number.
Specifically, the edition data frame number included in the edition data frame received and the edition data totalframes
When numerically identical, it is determined that the quantity for the edition data frame having been received by is identical with the edition data totalframes.
Step 206:The edition data frame received is verified using the data frame identifying code, and is being verified
When, perform step 207;Otherwise, step 203 is performed.
In step 206, the process verified using data frame identifying code is identical with existing verification mode, here not
It is specifically limited.
Step 207:The version state information of itself is changed to receive by electronic tag, and the release status is believed
Breath is sent to track card reader.
Step 208:Electronic tag receives the activation instruction that track card reader is issued, and using the activation instruction to receiving
Edition data frame enter line activating.
Before step 208, certification, the mode and step of certification are needed also exist between track card reader and electronic tag
202 mode is identical, is not described in detail here.
Step 209:The corresponding version number of edition data frame after activation in the version information to be updated with including
Version number it is identical when, complete version information renewal.
Embodiment three:
As shown in figure 3, the structure chart of the more new equipment for a kind of version information of electronic tag of the present embodiment three.It is described
Equipment includes:Acquisition module 11, receiver module 12 and update module 13, wherein:
Acquisition module 11, for obtaining version information to be updated from track card reader, the version information includes:Version
Number, edition data totalframes;
Receiver module 12, the corresponding edition data frame of the version number for receiving road side base station broadcast;
Update module 13, for it is determined that the quantity and the edition data totalframes of the edition data frame received
When identical, version information is updated using edition data frame is received.
More preferably, the version information also includes:Edition data frame identifying code.
Specifically, the update module 13, is additionally operable to using the data frame identifying code to the edition data frame that receives
Verified, and when being verified, perform the operation for the version information for updating electronic tag.
More preferably, the equipment also includes:First authentication module 14, wherein:
First authentication module 14, for receiving the reading key instruction that track card reader is sent, and generates random verification code;
The instruction of the key of reading is carried out to obtain the first access key after computing, and using first obtained access key to generation with
Computing is encrypted in machine identifying code, obtains the first result of cryptographic calculation, and the key instruction of reading is sent out with random verification code
Give track card reader;The second result that track card reader is sent is received, second result is that track card reader utilizes reception
To key ordering calculation after obtain the second access key, and the random verification code received is carried out using the second access key
What cryptographic calculation was obtained;
When the first result is identical with the second result, by the legitimacy certification to track card reader, and track reading is responded
Card device working condition switching command.
Specifically, the receiver module 12, specifically for being included in the edition data frame for receiving road side base station broadcast
Version number it is identical with the version number obtained from track card reader when, determine road side base station broadcast edition data frame be from track
The corresponding edition data frame of version number that card reader is obtained.
The update module 13, specifically for the edition data frame number included in the edition data frame received and institute
State edition data totalframes it is numerically identical when, it is determined that the quantity and the edition data of the edition data frame having been received by are total
Frame number is identical.
The update module 13, specifically for receiving the activation instruction that track card reader is issued, and utilizes the activation instruction
Line activating is entered to the edition data frame received;The corresponding version number of edition data frame and the version to be updated after activation
When the version number included in this information is identical, the renewal of version information is completed.
It should be noted that the more new equipment of the version information of electronic tag can be the logical block in electronic tag,
The software program in electronic tag with above-mentioned functions can also be integrated in, is not specifically limited here.
Example IV:
As shown in figure 4, the structure of the system for a kind of renewal of the version information of electronic tag of the embodiment of the present invention six
Figure.The system includes:The more new equipment 43 of the version information of track card reader 41, road side base station 42 and electronic tag, wherein:
Track card reader 41, the version information to be updated for sending;
Road side base station 42, for the corresponding edition data frame of broadcast version number;
The more new equipment 43 of the version information of electronic tag, for obtaining version information to be updated from track card reader,
The version information includes:Version number, edition data totalframes, and receive the corresponding version of the version number of road side base station broadcast
Notebook data frame, when it is determined that the quantity of the edition data frame received is identical with the edition data totalframes, using connecing
Receive edition data frame and update version information.
Specifically, the track card reader 41, specifically for obtaining the second visit after utilizing the key ordering calculation received
Key is asked, and computing is encrypted to the random verification code received using the second access key and obtains the second result, and is sent
The more new equipment of the version information of electron label.
Obviously, those skilled in the art can carry out the essence of various changes and modification without departing from the present invention to the present invention
God and scope.So, if these modifications and modification of the present invention belong to the scope of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to comprising including these changes and modification.