Background technology
Electronic charging system without parking (Electronic Toll Collection, be called for short ETC,) be to make great efforts a kind of automatic fare collection system that is used for highway, bridge and tunnel of promoting in the world, the bridge and the tunnel that are particularly suitable for highway or heavy traffic adopt.In this Fare Collection System, vehicle need be installed the equipment that is referred to as electronic tag that a system can unique identification, and on the track of charge station or the antenna system and the corresponding calculated machine Fare Collection System of this electronic tag of read/writable be set on the highway.When vehicle passes through toll station, the driver needn't be stopped and be paid dues, only need to pass through with the speed that system was allowed, the vehicle electronics label just can carry out message exchange with the antenna system that is installed on trackside or the door frame automatically, charge computer is collected and is passed through information of vehicles, and give background server with the information uploading collected, background server goes out road user according to these information Recognition, deducts toll automatically from the account of road user then.If the active user has problems (as not having label, Fail Transaction or account deficiency etc.), the party will be blocked or its license plate taken pictures and store, and be convenient to handle afterwards.
The core of ETC system is that mobile unit (is called for short: OBE).Mobile unit be a kind of be installed on the vehicle possess security module, carry information of vehicles (as vehicle information such as type of vehicle, license plate numbers), can carry out automatic vehicle identification and the safety mobile communications device of paying the fees.Have following function and characteristics:
One, has 5.8GHz microwave receiving, radiating circuit and data processing and control function.
Two, can carry out two-way communication according to the DSRC communication protocol of regulation with trackside read-write controller RSE.
Three, possess the required data signal modulation of wireless sending and receiving information and separating and be in harmonious proportion coding, decoding function.
Four, certain information stores space is arranged, and possess and other storage medium (as various integrated circuit cards, CPU card etc.) communication interface.
The LCD that five, acousto-optic suggestion device and display message are arranged.
Six, volume small and exquisite, meet industrial design, easy for installation, use powered battery, low in energy consumption.
Seven, possess sleep for electricity saving, excite arousal function.Dispose a constant volume and big few lithium battery that is fit to, the average non-maintaining time is not less than 2 years (calculating by 10 transaction every day).
Along with masses to the cognition of ETC and the expansion of ETC construction scale, the original function of ETC nucleus equipment-mobile unit can not satisfy user's user demand.Many users wish that ETC equipment can not only provide the various facilities of non-parking charge, can also use with traffic and combine closely.Especially in taxi trade, because present ETC mobile unit can not provide the toll bill for the passenger, so seriously restricted ETC using and promoting in taxi trade.This is by the application characteristic of ETC institute extremely, cause the fee evasion dispute in order to prevent big or small vehicle change and the information relevant from being distorted with charge, the powering mode of present international and domestic ETC mobile unit is a non-removable battery powered mode basically, well-known printing function hardware link power consumption is big, drag with battery in the practical application that to print link unrealistic, this has just limited ETC equipment substantially and has carried the Design Mode of printing link, so the present international and domestic ETC equipment that uses does not substantially possess printing function, just can not provide the toll bill then and there for the passenger yet.Because ETC equipment does not possess printing function, can not provide corresponding toll reimbursement voucher for the cab-getter, therefore restricted ETC and hired out using and promoting of industry.
Summary of the invention
For addressing the above problem, the objective of the invention is to disclose a kind of ETC mobile unit provides method from toll data to taximeter; Send toll data to fee register by the ETC mobile unit, print the charge bill after integrating out hire charge and road and bridge tolls by fee register then, thus for the cab-getter provide road and bridge the toll bill.
For achieving the above object, the present invention is by the following technical solutions:
A kind of ETC mobile unit provides the method for toll data to taximeter, may further comprise the steps:
Step 1: the mobile unit of electronic charging system without parking is waken up by the microwave signal that the roadside device of the lane in which the drivers should pay fees is launched, and communicates with roadside device that link links, the release of communication transaction, communication link, finishes the toll transaction;
Step 2: the mobile unit of electronic charging system without parking sends a toll transmission interrupt request to taximeter;
Step 3: the mobile unit of electronic charging system without parking starts overtime timer, if timer overflows, then return step 2, if before timer overflows, the mobile unit of electronic charging system without parking has been received the toll message package that reads from fee register, and then execution in step 4;
Step 4: the mobile unit of electronic charging system without parking is resolved the toll message package that reads from fee register, resolving is: after judging that initial code and end code are all correct, with received check code is that verification initial value and received packet content are according to CRC check sign indicating number create-rule inverse initial value, if the inverse result is not an initial value, then think transmission abnormality, do unusual repeat requests, return step 2; If the inverse result is an initial value, then verification is passed through, and then command word is judged, if command word is first about definite value, then thinks the packets of information that reads toll from fee register, and then execution in step 5; If command word is not first about definite value, then the execute exception repeat requests is returned step 2;
Step 5: the mobile unit of electronic charging system without parking is organized loading toll message package, at first fills in initial code; Then command word is changed to second about definite value, represents that current bag is the packets of information that has loaded toll; From read toll message package, extract current time information afterwards, and squeeze into loading toll message package; Respectively communication expense and mobile unit numbering are inserted loading toll message package again; Be proof test value then with the initial value, with the content of packet according to CRC check sign indicating number create-rule calculation check sign indicating number; Fill in end code, finish the tissue of loading toll message package;
Step 6: the mobile unit of electronic charging system without parking sends loading toll message package to taximeter;
Step 7: the mobile unit of electronic charging system without parking starts overtime timer, if timer overflows, then return step 6, if before timer overflows, the mobile unit of electronic charging system without parking has been received the toll response packet from fee register, and then execution in step 8;
Step 8: after the mobile unit of electronic charging system without parking receives above-mentioned toll response packet from fee register, after judging that initial code and end code are all correct, with received check code is that packet content in verification initial value and the toll response packet is according to CRC check sign indicating number create-rule inverse initial value, if the inverse result is not an initial value, then think transmission abnormality, do unusual repeat requests, return step 6; If the inverse result is an initial value, then verification is passed through, and then command word is judged, if command word is the 3rd about definite value, just think the packets of information that reads toll from fee register, then execution in step 9, if command word is not the 3rd about definite value, then the execute exception repeat requests is returned step 6;
Step 9: the mobile unit of electronic charging system without parking is organized toll ending message bag; At first fill in initial code; Then command word is changed to the 4th about definite value, represent current bag for notice fee register this toll transmittance process can normal termination packets of information; Be proof test value afterwards with the initial value, with the content of packet according to CRC check sign indicating number create-rule calculation check sign indicating number; Fill in end code, finish the tissue of toll ending message bag;
Step 10: the mobile unit of electronic charging system without parking sends toll ending message bag to fee register.
The realization of this method need be done following improvement to the mobile unit OBE of ETC: need to increase the online expansion interface of OBE and fee register on the hardware, this interface can be wired communication interface, also can be wireless communication interface.
The mobile unit OBE of ETC is in charged deep sleep state when flat.When vehicle process ETC charge station or the lane in which the drivers should pay fees, mobile unit OBE charged the microwave signal that the roadside device in track launches and wakes up, the transaction of charging of beginning and roadside device, the charge process of exchange comprises the release of communication link link, communication transaction, communication link.After whole charge process of exchange was finished, OBE entered dormancy once more, was waken up up to next time and carried out new round charge transaction.
The ETC mobile unit provides the flow process of toll bill to produce influence on any flow process to waking up with process of exchange of OBE by taximeter, just OBE before entering dormancy, to finish earlier and the taxi valuation between the transmission of toll.Be that the original process of concluding the business of charging with roadside device of ETC remains unchanged fully, so the original operation flow of ETC is not given unnecessary details here.
Embodiment
Please refer to Fig. 1, the present invention is a kind of ETC mobile unit provides the method for toll data to taximeter, may further comprise the steps:
Step 1: electronic non-parking is received the microwave signal that the mobile unit OBE of the ETC of system launches by the roadside device of the lane in which the drivers should pay fees and is waken up, communicates with roadside device that link links, the release of communication transaction, communication link, finishes the toll transaction;
Step 2: the mobile unit OBE that electronic non-parking is received the ETC of system sends a toll transmission interrupt request to taximeter;
Step 3: the mobile unit OBE that electronic non-parking is received the ETC of system starts overtime timer, if timer overflows, then return step 2, if before timer overflows, ETC mobile unit OBE has received the request of reading toll message package FeeSubmitCmd.rq. from taximeter, and then execution in step 4;
The form that reads toll message package FeeSubmitCmd.rq is:
Initial code |
Packet |
Check code |
End code |
Initial code: 2 bytes, CCH CCH;
Packet: order is different, herein content difference (the packet details of each command information bag sees below);
Check code: 2 bytes, CRC check, the full name of CRC is (Cyclic Redundancy Check), Chinese is: cyclic redundancy check (CRC), check polynomial are X
16+ X
12+ X
5+ 1, the initial value that uses is FFFFH;
End code: 2 bytes, B3H B3H.
The packet that reads among the toll message package FeeSubmitCmd.rq is 5 bytes
The form of packet is:
Command word (1 byte) |
Time (4 byte) |
Command word: 1 byte, the communication expense order is read in command word=01;
Time: the UNIX time of 4 bytes, be the fee register current time.The UNIX time is to count from 1970, with the time of adding up second.
In the present embodiment, the particular content of toll message package FeeSubmitCmd.rq is:
CCH CCH 01H 00H 00H 9CH 7AH 05H 6AH B3H B3H wherein
CCH CCH is the initial code of two bytes;
01H is a command word;
00H 00H 9CH 7AH represents the current time 2009-9-2 11:40:33 from fee register;
05H 6AH is a check code;
B3H B3H is the end code of two bytes.
Step 4: the mobile unit OBE that electronic non-parking is received the ETC of system resolves and reads toll message package FeeSubmitCmd.rq from fee register, resolving is: after judging that initial code CCH and end code B3H are all correct, with received check code is that verification initial value and received packet content are carried out verification according to CRC check sign indicating number create-rule and calculated, and is X with same polynomial expression still
16+ X
12+ X
5+ 1, just variation has taken place in the verification initial value, communication one side makes initial value with 0xFFFF, after communication the opposing party receives the other side's packets of information, remove inverse the other side's initial value with the check code that the other side generated again as initial value, if result of calculation is not initial value FFH FFH, then verification is not passed through, think transmission abnormality, do unusual repeat requests, return step 2; If the inverse result is initial value FFH FFH, then verification is passed through, and then command word is judged, if command word is first about definite value 01H, then thinks the packets of information that reads toll from fee register, and then execution in step 5; If command word is not first about definite value 01H, then the execute exception repeat requests is returned step 2;
Step 5: the mobile unit OBE that electronic non-parking is received the ETC of system organizes loading toll message package FeeSubmitCmd.rs, at first fills in initial code; Then command word is changed to second about definite value 02H, represents that current bag is the packets of information that has loaded toll; From read toll message package FeeSubmitCmd.rq, extract current time information afterwards, and squeeze into loading toll message package FeeSubmitCmd.rs; The passback fee register communicates reliability demonstration as one of authorization information for fee register, and this temporal information is retained in the temporal information that log record is made in mobile unit OBE inside simultaneously.Respectively communication expense and mobile unit OBE device numbering are inserted loading toll message package again; With initial value FFHFFH is proof test value, with the content of packet according to CRC check sign indicating number create-rule calculation check sign indicating number; Fill in end code, finish the tissue of loading toll message package FeeSubmitCmd.rs;
The form of loading toll message package FeeSubmitCmd.rs is:
Initial code |
Packet |
Check code |
End code |
Packet among the loading toll message package FeeSubmitCmd.rs is 13 bytes: the form of packet is:
Command word (1 byte) |
Time (4 byte) |
Toll (4 byte) |
OBE device numbering (4 byte) |
Command word: 1 byte, command word=02, its implication is to read the communication expense command response;
Time: the UNIX time of 4 bytes is from the fee register current time, obtains from read toll message package FeeSubmitCmd.rq.
Toll: 4 bytes, unit is " branch ";
The OBE device numbering: 4 bytes, this numbering is unique, and this numbering finally is embodied on the bill that fee register prints directly or indirectly.
In the present embodiment, the particular content of loading toll message package FeeSubmitCmd.rs is: CCHCCH 02H 00H 00H 9CH 7AH 00H 00H 01H F4H 00H 00H 00H 01H 01HC6H B3H B3H, wherein:
CCH CCH is the initial code of two bytes;
02H is a command word;
00H 00H 9CH 7AH represents current time 2009-9-2 11:40:33;
00H 00H 01H F4H represents that the ETC toll is 5 yuan, and unit is for dividing;
00H 00H 00H 01H representative is numbered 1 OBE device numbering;
01H C6H is a check code;
B3H B3H is the end code of two bytes.
Step 6: the mobile unit OBE that electronic non-parking is received the ETC of system sends loading toll message package FeeSubmitCmd.rs to taximeter;
Step 7: the mobile unit OBE that electronic non-parking is received the ETC of system starts overtime timer, if timer overflows, then returns step 6, if before timer overflows, ETC mobile unit OBE has received the toll response packet FeeSubmitStatus.rq from fee register, and then execution in step 8
The form of toll response packet FeeSubmitStatus.rq is:
Initial code |
Packet |
Check code |
End code |
Packet among the toll response packet FeeSubmitStatus.rq is 1 byte:
The form of packet is:
Command word: 1 byte, command word=03, fee register correctly obtains the state of communication expense and replys;
In the present embodiment, the particular content of toll response packet FeeSubmitStatus.rq is: CCHCCH 03H 0AH 6AH B3H B3H; Wherein:
CCH CCH is the initial code of two bytes;
03H is a command word;
0AH 6AH is a check code;
B3H B3H is the end code of two bytes.
Step 8: after the mobile unit OBE of the electronic non-parking receipts ETC of system receives above-mentioned toll response packet FeeSubmitStatus.rq from fee register, after judging that initial code CCH and end code B3H are all correct, with received check code is that packet content among verification initial value and the toll response packet FeeSubmitStatus.rq is according to CRC check sign indicating number create-rule inverse initial value, if the inverse result is not initial value FFH FFH, then think transmission abnormality, do unusual repeat requests, return step 6; If the inverse result is initial value FFH FFH, then verification is passed through, then command word is judged, if command word is the 3rd about definite value 03H, just think the packets of information that reads the OBE toll from fee register, then execution in step 9, if command word is not the 3rd about definite value 03H, then the execute exception repeat requests is returned step 6;
Step 9: the mobile unit OBE that electronic non-parking is received the ETC of system organizes toll ending message bag FeeSubmitStatus.rs; At first fill in initial code; Then command word is changed to the 4th about definite value 04H, represent current bag for notice fee register this toll transmittance process can normal termination packets of information; Be proof test value with initial value FFH FFH afterwards, with the content of packet according to CRC check sign indicating number create-rule calculation check sign indicating number; Fill in end code, finish the tissue of toll ending message bag FeeSubmitStatus.rs;
The form of toll ending message bag FeeSubmitStatus.rs is:
Initial code |
Packet |
Check code |
End code |
Packet among the toll ending message bag FeeSubmitStatus.rs is 1 byte:
The form of packet is:
Command word: 1 byte, command word=04, the implication of this command word is that the transmittance process of the current toll of notice fee register is normally finished.
In the present embodiment, the particular content of toll ending message bag FeeSubmitStatus.rs is: CCHCCH 04H 0DH C5H B3H B3H; Wherein
CCH CCH is the initial code of two bytes;
04H is a command word;
0DH C5H is a check code;
B3H B3H is the end code of two bytes.
Step 10: the mobile unit OBE that electronic non-parking is received the ETC of system sends toll ending message bag FeeSubmitStatus.rs to fee register.
If the passenger takes the not road (bridge) through using ETC to collect the charges of taxi, then the workflow of taximeter will be constant fully, and the output of taximeter bill still is: license plate number, pick-up time, time getting off, waiting time, operation mileage, unit price, the amount of money, date.
If the taxi that the passenger takes has passed through the road (bridge) of using ETC to collect the charges, then the workflow of taximeter changes to shown in Figure 2.That is: increase toll reciprocal process with the OBE of ETC when idle chargeing, and after the passenger arrives purpose, before the printed tickets, hire out the integration of expense and toll earlier, and then carry out bill printing.
At this moment taxi bill data output will increase by two of " the toll amount of money " and " exchange hour " information on the original information basis.Be that data output will comprise license plate number, pick-up time, time getting off, waiting time, operation mileage, unit price, the amount of money, the toll amount of money, exchange hour, date.
Please refer to Fig. 2, will increase following several steps in the program that taximeter uses:
Step 3: if when the interrupt request of mobile unit OBE of ETC is arranged, then the interrupt request of the mobile unit OBE of taximeter response ETC reads toll message package FeeSubmitCmd.rq.;
The form that reads toll message package FeeSubmitCmd.rq is:
Initial code |
Packet |
Check code |
End code |
Initial code: 2 bytes, CCH CCH;
Packet: order is different, herein content difference (the packet details of each command information bag sees below);
Check code: 2 bytes, CRC check, check polynomial is X
16+ X
12+ X
5+ 1, the initial value that uses is FFFFH;
End code: 2 bytes, B3H B3H.
The packet that reads among the toll message package FeeSubmitCmd.rq is 5 bytes
The form of packet is:
Command word (1 byte) |
Time (4 byte) |
Command word: 1 byte, command word=01, the communication expense order is read in representative;
Time: the UNIX time of 4 bytes, be the fee register current time.
In the present embodiment, the particular content of toll message package FeeSubmitCmd.rq is:
CCH CCH 01H 00H 00H 9CH 7AH 05H 6AH B3H B3H wherein
CCH CCH is the initial code of two bytes;
01H is a command word;
00H 00H 9CH 7AH represents the current time 2009-9-2 11:40:33 from fee register;
05H 6AH is a check code;
B3H B3H is the end code of two bytes.
Step 4: behind the loading toll message package FeeSubmitCmd.rs that the mobile unit OBE of taximeter reception ETC sends, just resolve, resolving is: after judging that initial code CCH and end code B3H are all correct, with received check code is that verification initial value and received packet content are carried out verification according to CRC check sign indicating number create-rule and calculated, if result of calculation is not initial value FFH FFH, then verification is not passed through, and thinks transmission abnormality, does abnormality processing; If the inverse result is initial value FFH FFH, then verification is passed through, and then command word is judged, if command word is second about definite value 02H, has then thought from the loading of OBE the packets of information of toll, and then execution in step 5; If command word is not second about definite value 02H, then execute exception is handled;
Step 5: taximeter sends communication expense to the ETC mobile unit and receives response packet FeeSubmitStatus.rq, and the form of toll response packet FeeSubmitStatus.rq is:
Initial code |
Packet |
Check code |
End code |
Packet among the toll response packet FeeSubmitStatus.rq is 1 byte:
The form of packet is:
Command word: 1 byte, command word=03, fee register correctly obtains the state of communication expense and replys;
In the present embodiment, the particular content of toll response packet FeeSubmitStatus.rq is: CCHCCH 03H 0AH 6AH B3H B3H; Wherein:
CCH CCH is the initial code of two bytes;
03H is a command word;
0AH 6AH is a check code;
B3H B3H is the end code of two bytes.
Step 6: taximeter receives the toll ending message bag FeeSubmitStatus.rs that the ETC mobile unit sends; And resolve, resolving is: after judging that initial code CCH and end code B3H are all correct, with received check code is that packet content among verification initial value and the toll response packet FeeSubmitStatus.rs is according to CRC check sign indicating number create-rule inverse initial value, if the inverse result is not initial value FFH FFH, then think transmission abnormality; If the inverse result is initial value FFH FFH, then verification is passed through, and then command word is judged, if command word is the 4th about definite value 04H, just thinks the toll ending message bag from fee register.The original function that the taximeter program is finished will keep.