Summary of the invention
In view of this, present invention is primarily targeted at a kind of method determining IC-card holding power of offer and OBU, it is possible to avoid the impact on radio frequency unit of the OBU medium-high frequency unit, improve OBU and receive the success rate of data, and then improved the recognition rate of car.
For reaching above-mentioned purpose, the technical scheme is that and be achieved in that:
A kind of method determining that IC-card keeps power, including:
After A, vahicles label OBU carry out first time read operation to IC-card, using current IC-card to keep power to carry out IC-card holding, described current IC-card keeps the initial value of power to be a preset value;
B, described OBU judge that second time read operation is the most successful, it is determined that read operation success for the second time, it is determined that current IC-card keeps power to be that the IC-card used in subsequent process keeps power;Described OBU judges that second time read operation keeps power to lead to the failure because of IC-card and current IC-card keeps the power high-frequency operation power less than described OBU, current IC-card then keep power plus a Grad preset, keep power as new current IC-card, return step A
Wherein, after OBU carries out first time read operation to IC-card, after keeping described IC-card Preset Time, then carry out second time read operation.
After described OBU judges second time read operation success, the method also includes:
Described OBU judges whether to store the holding failure record of described IC-card, it is determined that storage has the holding failure record of described IC-card, it is determined that the high-frequency operation power of described OBU is that the IC-card used in subsequent process keeps power;Judge not store the holding failure record of described IC-card, it is determined that current IC-card keeps power to be that the IC-card used in subsequent process keeps power.
After described OBU judges second time read operation success, the method also includes:
Judge whether second time read operation duration exceedes default time threshold, it is determined that read operation duration exceedes default time threshold for the second time, it is determined that the high-frequency operation power of described OBU is that the IC-card used in subsequent process keeps power;Judge that second time read operation duration is not less than default time threshold, it is determined that current IC-card keeps power to be that the IC-card used in subsequent process keeps power.
The method also includes: described OBU judges that second time read operation failure and current IC-card keep the power high-frequency operation power not less than described OBU, then judge IC-card fault.
The method also includes:
Keep power to cause IC-card operation failure because of IC-card during subsequent transaction, and described IC-card keeps the power high-frequency operation power less than described OBU, then use the high-frequency operation power of described OBU to keep power as IC-card.
The method also includes: occurred in process of exchange that the most described OBU preserved the holding failure record of described IC-card during pulling out card or in sleep procedure because IC-card keeps power to cause the situation of IC-card operation failure.
Described first time read operation is the operation read and select application catalogue, and described second time read operation is the operation reading IC-card essential information.
A kind of OBU, this OBU at least include: microprocessor unit MCU and high frequency unit,
Described MCU, for after IC-card being carried out first time read operation by high frequency unit, uses current IC-card to keep power to carry out IC-card holding, and described current IC-card keeps the initial value of power to be a preset value;Judge that second time read operation is the most successful afterwards, it is determined that read operation success for the second time, it is determined that current IC-card keeps power to be that the IC-card used in subsequent process keeps power;Judge that second time read operation keeps power to lead to the failure because of IC-card and current IC-card keeps the power high-frequency operation power less than described OBU, current IC-card then keep power plus a Grad preset, power is kept as new current IC-card, return and perform read operation for the first time, wherein, after MCU carries out first time read operation to IC-card, after keeping described IC-card Preset Time, then carry out second time read operation;
Described high frequency unit, for operating IC-card according to the control of MCU.
This OBU also includes memory element,
Described MCU, it is additionally operable to after judging second time read operation success, judge whether memory element stores the holding failure record of described IC-card, it is determined that storage has the holding failure record of described IC-card, it is determined that the high-frequency operation power of described OBU is that the IC-card used in subsequent process keeps power;Judge not store the holding failure record of described IC-card, it is determined that current IC-card keeps power to be that the IC-card used in subsequent process keeps power;
Described memory element, for storing the holding failure record of each IC-card.
Described MCU, it is additionally operable to after judging second time read operation success, judge whether second time read operation duration exceedes default time threshold, judge that second time read operation duration exceedes default time threshold, it is determined that the high-frequency operation power of described OBU is that the IC-card used in subsequent process keeps power;Judge that second time read operation duration is not less than default time threshold, it is determined that current IC-card keeps power to be that the IC-card used in subsequent process keeps power.
Described MCU, is additionally operable to when judging that second time read operation failure and current IC-card keep the power high-frequency operation power not less than described OBU, it is determined that IC-card fault.
Described MCU, is additionally operable to because IC-card keeps power to cause IC-card operation failure during subsequent transaction, and when described IC-card keeps the power high-frequency operation power less than described OBU, uses the high-frequency operation power of described OBU to keep power as IC-card.
Process of exchange occurred, because IC-card keeps power to cause the situation of IC-card operation failure, the most described MCU, be additionally operable to during pulling out card or in sleep procedure the holding failure record of described IC-card is stored memory element.
Described first time read operation is the operation read and select application catalogue, and described second time read operation is the operation reading IC-card essential information.
The invention provides and a kind of determine that IC-card keeps the method for power and OBU, OBU to carry out IC-card, for the first time after read operation, using current IC-card to keep power to carry out IC-card holding, described current IC-card keeps the initial value of power to be a preset value;Described OBU judges that second time read operation is the most successful, it is determined that read operation success for the second time, it is determined that current IC-card keeps power to be that the IC-card used in subsequent process keeps power;Described OBU judges that second time read operation keeps power to lead to the failure because of IC-card and current IC-card keeps the power high-frequency operation power less than described OBU, current IC-card then keep power plus a Grad preset, keep power as new current IC-card, come back for read operation for the first time.Pass through the present invention, IC-card can be kept power to be adjusted by OBU, so that IC-card during high frequency unit idle condition keeps power can maintain the state of IC-card, will not interfere radio frequency unit again, thus improve OBU and receive the success rate of data, and then improved the recognition rate of car.
Detailed description of the invention
The basic thought of the present invention is: after OBU carries out first time read operation to IC-card, uses current IC-card to keep power to carry out IC-card holding, and described current IC-card keeps the initial value of power to be a preset value;Described OBU judges that second time read operation is the most successful, it is determined that read operation success for the second time, it is determined that current IC-card keeps power to be that the IC-card used in subsequent process keeps power;Described OBU judges that second time read operation keeps power to lead to the failure because of IC-card and current IC-card keeps the power high-frequency operation power less than described OBU, current IC-card then keep power plus a Grad preset, keep power as new current IC-card, come back for read operation for the first time.
Fig. 1 is that the embodiment of the present invention is a kind of determines that IC-card keeps the method flow schematic diagram of power, as it is shown in figure 1, the method includes:
After step 101:OBU carries out first time read operation to IC-card, using current IC-card to keep power to carry out IC-card holding, described current IC-card keeps the initial value of power to be a preset value;
Here, OBU determines that in power up the high frequency that inserted IC-card uses at process of exchange keeps power, starts to perform the operation of the present invention the most after the power-up.Current IC-card keeps the initial value of power to be typically based on actual hardware OBU veneer measured value to be provided, and different OBU veneers is different according to itself hardware shield performance, and the initial value of current IC-card holding power may be different.
Step 102:OBU judges that second time read operation is the most successful, it is determined that read operation success for the second time, performs step 103;Judge that second time read operation keeps power to lead to the failure because of IC-card and current IC-card keeps the power high-frequency operation power less than described OBU, then perform step 104.
Here, after OBU carries out first time read operation to IC-card, after keeping described IC-card Preset Time, then carry out second time read operation.It should be noted that described Preset Time both should can verify the holding effect of IC-card state by long enough, whole detection process will not be made again long, affect the Consumer's Experience of OBU power up.Preferably, this Preset Time is set as 100ms, can adjust according to actual OBU situation.
After OBU keeps described IC-card Preset Time, using high-frequency operation power to read IC-card file, if run succeeded, determining that current IC-card keeps power to be that the IC-card used in subsequent process keeps power;If performing failure, needing to judge failure cause, performing the most directly to exit detection (i.e. determining that IC-card keeps the flow process of power), display Card Reader failure if IC itself, keeping the most again detecting process if high frequency.
Step 103: determine that current IC-card keeps power to be that the IC-card used in subsequent process keeps power.
It should be noted that the high-frequency operation power of OBU is high frequency unit power of output when performing IC-card instruction, typically this power directly uses the peak power of high frequency unit.IC-card holding power is generally lower than or equal to operating power during high frequency unit operation IC-card.This IC-card keeps power to need the own situation according to different IC to obtain, the compatibility of high-frequency operation to be kept.It addition, this IC-card keeps power i.e. to obtain, if obtaining delay exchange hour in process of exchange or causing Fail Transaction before ETC concludes the business.
Step 104: current IC-card keeps power plus a Grad preset, keeps power as new current IC-card, return step 101.
It should be noted that the selection of described Grad can not be too small, otherwise affect the detection time of entirety.If it find that keep power also to perform failure, then explanation IC existing problems when being high-frequency operation power, exit detection, display Card Reader failure.If current IC-card keeps power to exceed high-frequency operation power plus a Grad preset, then the value after being added takes high-frequency operation power.
Fig. 2 is that embodiment of the present invention another kind determines that IC-card keeps the method flow schematic diagram of power, as in figure 2 it is shown, after OBU described in step 102 judges second time read operation success, the method also includes:
Step 105: described OBU judges whether to store the holding failure record of described IC-card, it is determined that storage has the holding failure record of described IC-card, then perform step 106;Judge not store the holding failure record of described IC-card, then perform step 103, determine that current IC-card keeps power to be that the IC-card used in subsequent process keeps power.
Step 106: determine the IC-card that high-frequency operation power is use in the subsequent process holding power of described OBU.
It should be noted that, OBU powers on and automatically determines IC-card holding power when, the sense command used is file reading order basic for IC, is limited to the key trade system of ETC, and OBU oneself cannot use trade command in process of exchange to carry out IC-card holding power detection.Here there is the basic reading order of some IC-card to remain successful but the possibility of trade command operation failure, so, process of exchange adjusts to keep transaction success rate just to have again the needs of IC-card holding power.If process of exchange trade command is unsuccessfully because IC-card and keeps that power is too low causes, the most directly adjust IC-card and keep power to be high-frequency operation power.
Fig. 3 be the embodiment of the present invention another determine IC-card keep power method flow schematic diagram, as it is shown on figure 3, OBU described in step 102 judge second time read operation success after, the method also includes:
Step 107: judge whether second time read operation duration exceedes default time threshold, it is determined that read operation duration exceedes default time threshold for the second time, then perform step 106;Judge that second time read operation duration not less than default time threshold, then performs step 103, determine that current IC-card keeps power to be that the IC-card used in subsequent process keeps power.
It should be noted that keep after power Fail Transaction because of IC-card in process of exchange, OBU is follow-up have two kinds may actions, one is that user pulls out IC-card and manually swipes the card and pass through track;Two be reexchange successfully after by track, OBU natural dormancy.So, this IC-card number and holding failure record write OBU information district can be provided Rule of judgment for again going up electro-detection (corresponding step 105), shorten the detection time before pulling out card or dormancy by OBU.
If second time read operation duration exceedes default time threshold, then illustrate that this IC-card needs the long period from hold mode to execution state.Even if order runs succeeded, but this IC-card keeps power the most unusable, and otherwise process of exchange can directly result in transaction time-out, keeps power to be high-frequency operation power so needing to adjust IC-card.
The additional technical characteristic of above-mentioned two embodiment also can connected applications, corresponding method flow schematic diagram is as shown in Figure 4.
It should be noted that in described embodiment, OBU judges when second time read operation failure and current IC-card keep the power high-frequency operation power not less than described OBU, then to judge IC-card fault.
Optionally, in an embodiment, the method also includes:
Keep power to cause IC-card operation failure because of IC-card during subsequent transaction, and described IC-card keeps the power high-frequency operation power less than described OBU, then use the high-frequency operation power of described OBU to keep power as IC-card.The detail flowchart of this embodiment is as it is shown in figure 5, need to go to two trade command at process of exchange medium-high frequency unit: consumption initialization command and execution are withholdd order.After every order performs, if run succeeded, continue normal process flow process;If performing failure, then judge failure cause, if normal IC-card operation failure, then normal process, lead to the failure if keeping power, the most directly adjusting IC-card keeps power to be high-frequency operation power, and identifies appearance too high frequency and keeps unsuccessfully (such as, by failure information preservation in the buffer).
The scheme that the present embodiment is used is adjusted by power on automatically detection, process of exchange of OBU and is pulled out card or three processes of dormancy record form.OBU powers on automatically to detect and obtains preliminary minimum IC-card holding power;Process of exchange adjusts and keeps power to be adjusted IC-card by the actual situation performing trade command of process of exchange;Pulling out card or dormancy recording process keeps power to determine flow process reference for follow-up IC-card record holding information.The present embodiment can at utmost make high frequency unit use minimum IC-card to keep power at process of exchange, to avoid receiving sensitivity to deteriorate, guarantees that IC-card operates success rate simultaneously, obtains both in the balance ensured in transaction recognition rate.
Optionally, in an embodiment, the method also includes: occurred in process of exchange that the most described OBU preserved the holding failure record of described IC-card during pulling out card or in sleep procedure because IC-card keeps power to cause the situation of IC-card operation failure.The detail flowchart of this embodiment is as shown in Figure 6, after transaction adjustment process, second time transaction shows as failure, crossing the possible sight of parking lot scape one at the scene is: pulls out IC-card and manually swipes the card and pass through track, in the case of Gai, during pulling out card, OBU checks whether high frequency failure occurred, if had, by IC-card number and the information area (i.e. memory element) of holding failure record write OBU, for powering on, automatic detection process judges;After transaction adjustment process, second time transaction shows as failure, crossing the sight two that parking lot scape is likely to occur at the scene is: need not pull out card, successfully pass after reversing transaction again, OBU normal hibernation, in the case of being somebody's turn to do, OBU is checking whether high frequency failure occurred before dormancy, if having IC-card number and keeping failure record to write the information area of OBU, for powering on, automatic detection process judges.
Here, the information keeping failure record to relate to can include IC-card number and keep unsuccessfully identifying, and IC-card number judges for the verification of IC-card.Because same car may use multiple IC-cards, information area design should store and organize record more.
Optionally, described first time read operation is the operation read and select application catalogue, and described second time read operation is the operation reading IC-card essential information.
The present invention the most correspondingly proposes a kind of OBU, this OBU and at least includes: microprocessor unit MCU and high frequency unit,
Described MCU, for after IC-card being carried out first time read operation by high frequency unit, uses current IC-card to keep power to carry out IC-card holding, and described current IC-card keeps the initial value of power to be a preset value;Judge that second time read operation is the most successful afterwards, it is determined that read operation success for the second time, it is determined that current IC-card keeps power to be that the IC-card used in subsequent process keeps power;Judge that second time read operation keeps power to lead to the failure because of IC-card and current IC-card keeps the power high-frequency operation power less than described OBU, current IC-card then keep power plus a Grad preset, power is kept as new current IC-card, return and perform read operation for the first time, wherein, after MCU carries out first time read operation to IC-card, after keeping described IC-card Preset Time, then carry out second time read operation;
Described high frequency unit, for operating IC-card according to the control of MCU.
General, negative high frequency unit blames operation non-contact IC card, is divided into the leisure state performed between the duty of IC-card instruction and instruction execution in the process of exchange of ETC.Being also required to output in leisure state and keep IC-card state, high frequency unit keeps power at the i.e. IC-card of power being used for keeping the state of IC-card performing to export between IC-card instruction.In addition, it is necessary to explanation, the radio frequency unit of OBU is mainly responsible for communicating with roadside device (RSU), is completed transmission and the reception of ETC space interface signaling.In the process of exchange of ETC, except high frequency unit operation IC-card time be closed, other time be in normal reception state, wait data of eating dishes without rice or wine to be received.
Optionally, this OBU also includes memory element,
Described MCU, it is additionally operable to after judging second time read operation success, judge whether memory element stores the holding failure record of described IC-card, it is determined that storage has the holding failure record of described IC-card, it is determined that the high-frequency operation power of described OBU is that the IC-card used in subsequent process keeps power;Judge not store the holding failure record of described IC-card, it is determined that current IC-card keeps power to be that the IC-card used in subsequent process keeps power;
Described memory element, for storing the holding failure record of each IC-card.
Optionally, described MCU, it is additionally operable to after judging second time read operation success, judge whether second time read operation duration exceedes default time threshold, judge that second time read operation duration exceedes default time threshold, it is determined that the high-frequency operation power of described OBU is that the IC-card used in subsequent process keeps power;Judge that second time read operation duration is not less than default time threshold, it is determined that current IC-card keeps power to be that the IC-card used in subsequent process keeps power.
Optionally, described MCU, it is additionally operable to when judging that second time read operation failure and current IC-card keep the power high-frequency operation power not less than described OBU, it is determined that IC-card fault.
Optionally, described MCU, it is additionally operable to because IC-card keeps power to cause IC-card operation failure during subsequent transaction, and when described IC-card keeps the power high-frequency operation power less than described OBU, uses the high-frequency operation power of described OBU to keep power as IC-card.
Optionally, occurred, because IC-card keeps power to cause the situation of IC-card operation failure, the most described MCU, being additionally operable to during pulling out card or in sleep procedure the holding failure record of described IC-card is stored memory element in process of exchange.
Optionally, described first time read operation is the operation read and select application catalogue, and described second time read operation is the operation reading IC-card essential information.
By the invention it is possible to IC-card when making high frequency unit idle condition keeps power can maintain the state of IC-card, radio frequency unit will not be interfered again, thus avoid radio frequency reception link sensitivity to deteriorate, substantially increase the recognition rate of OBU.
The above, only presently preferred embodiments of the present invention, it is not intended to limit protection scope of the present invention.