Background technology
Electronic non-parking (the Electronic Toll Collection that charges automatically; Be called for short ETC), be that a kind of need the parking pays the fees the charging method through charge station, the vehicle that board units has been installed is during through charge station; Board units and roadside unit carry out communication, accomplish transaction.Board units is installed in the car, is the equipment that carries out communication with roadside unit, also stores the information relevant with electric non-stop toll simultaneously, like information such as license plate number, vehicles.Roadside unit is also claimed road side base station, its major function be with track computing machine and vehicle on the board units installed carry out communication, related transmitting information.
In the prior art, the Card Reader mode of board units in stateful transaction is very inconvenient, and as shown in Figure 1, the power supply of IC-card contact processing module 120 does not receive the control of main control module 130 in the board units 100, directly is connected with power circuit 140.When the contact Card Reader is made mistakes; Because the power supply of IC-card contact processing module 120 is normal; The power supply of the contact communication module that IC-card is inner is not disconnected, and the port that IC-card contact processing module 120 is communicated by letter with the wired mode of IC-card is not closed, and it is machine-processed to make board units 100 and IC-card all close the contact Card Reader; When this moment, board units 100 was opened the contactless processing module 110 of IC-cards, the problem that contactless Card Reader is made mistakes will appear in board units 100.As shown in Figure 2; Board units 100 is opened IC-card contact processing module 120 through step S210~S230 and is carried out Card Reader; Judge then whether the contact Card Reader is normal, if the contact Card Reader normally then execution in step S260~S280 needs manual operation if the contact Card Reader is undesired; IC-card is changed a direction insert board units 100; The contact that is about to IC-card and the deck of the IC-card contact processing module of board units 100 are separated and just can close the contact Card Reader mechanism of board units 100 and IC-card, and at this moment, the contactless processing module 110 of board units 100 execution in step S240 unlatching IC-card is carried out Card Reader; Judge then whether contactless Card Reader is normal; If contactless Card Reader normally then execution in step S260~S280, accomplish transaction, execution in step S250, S270, S280 if contactless Card Reader is undesired.If forget that manually IC-card being changed a direction inserts board units 100, because board units 100 is not closed contact Card Reader mechanism with IC-card, the problem that contactless Card Reader is made mistakes will appear then, cause transaction normally not accomplish.
The utility model content
For solving the problem that exists in the prior art; The utility model provides a kind of board units with Card Reader mode automatic switching function, and said board units comprises: power circuit, main control module, IC-card contact processing module, the contactless processing module of IC-card and switching device; Said main control module is connected with the contactless processing module of said IC-card with said IC-card contact processing module respectively; To control said IC-card contact processing module and the contactless processing module of said IC-card; Said power circuit is connected with the contactless processing module of said IC-card with said main control module respectively; Said power circuit also is connected through said switching device with said IC-card contact processing module, and the on off state of said switching device is controlled by said main control module.
Preferably, the COM1 that is connected between said main control module and the said IC-card contact processing module is the port that wired mode is communicated by letter, and comprising: clock signal port, data-signal port and reset signal port.
Preferably; When board units is launched said IC-card contact processing module when the IC-card sheet Card Reader that inserts is made mistakes; Said main control module is according to error signal; Control said switching device to break off of the power supply of said power circuit, send control signal and close the said COM1 that is connected with IC-card said IC-card contact processing module.
Preferably, said error signal comprises: said main control module does not detect the proper reset information that the IC-card sheet returns.
Preferably, the requirement of said proper reset information conforms ISO7816 agreement.
Preferably, when board units adopted contact Card Reader mode, the radio circuit in the said contactless processing module was cut out by said main control module.
Preferably, said contactless processing module meets the ISO14443 protocol requirement.
In the board units with Card Reader mode automatic switching function that the utility model provides, be provided with switching device between power circuit and the IC-card contact processing module, main control module is connected to the control end of switching device; Disconnection and conducting state that can the CS device; When contact Card Reader mode is made mistakes, need not manual operation, main control module promptly can be indicated according to error signal; The cut-off switch device is to break off the power supply to IC-card contact Card Reader mode; And close the port of communicating by letter with the wired mode of IC-card, thus close the contact Card Reader mechanism of board units and IC-card, launch contactless Card Reader mode automatically and carry out normal Card Reader.The utility model has effectively improved the stable and compatible of board units Card Reader mode, is user-friendly to, and reduces the Card Reader error rate, improves trading efficiency.
Embodiment
Describe the preferred embodiment of the utility model in detail below in conjunction with accompanying drawing.
Referring to Fig. 3 and Fig. 4; As shown in Figure 4, the board units with Card Reader mode automatic switching function (hereinafter to be referred as OBU) 400 that the utility model embodiment provides comprises: power circuit 440, main control module 430, IC-card contact processing module 420, the contactless processing module 410 of IC-card and switching device 450; Power circuit 440 is connected with the contactless processing module 410 of main control module 430 and IC-card respectively; Main control module 430 is connected with the contactless processing module 410 of IC-card contact processing module 420 and IC-card respectively; Wherein, Be provided with switching device 450 between power circuit 440 and the IC-card contact processing module 420, said switching device 450 is connected with said main control module 430 simultaneously.
The power supply of IC-card contact processing module 420 can be controlled through switching device 450 by main control module 430.After IC-card inserted OBU, OBU400 at first opened IC-card contact processing module 420, if the contact of IC-card effectively contacts with the deck of IC-card contact processing module 420 each other; Then IC-card is by 420 power supplies of IC-card contact processing module, and this moment, OBU400 launched IC-card contact Card Reader pattern, carried out communicating by letter of wired mode with IC-card; Obtain current card file information; Conclude the business, after transaction is accomplished, the OBU400 power down.When IC-card contact Card Reader mode is made mistakes; The on off state of main control module 430 CS devices 450; Close the power supply of IC-card contact processing module 420, the inner contact module for power supply of IC-card promptly is disconnected, and closes the port that IC-card contact processing module 420 is communicated by letter with the wired mode of IC-card simultaneously; Make OBU400 and IC-card all close contact Card Reader mechanism; This moment, OBU400 opened the contactless processing module 410 of IC-card again, and wherein, the port that IC-card contact processing module 420 is communicated by letter with the wired mode of IC-card comprises clock signal port, data-signal port and reset signal port; If contactless Card Reader is normal, then obtain current card file information, conclude the business, after transaction is accomplished, the OBU400 power down.If contactless Card Reader is undesired, then send out a warning, show after " Card Reader is made mistakes " that give a green light, hummer rings, and shows " remaining sum: XXXXX.XX/ account card " OBU400 power down then.
The OBU400 of the utility model embodiment, its Card Reader mode is switched mainly and is undertaken by following process:
The IC-card sheet is inserted into OBU400, and when the contact of IC-card sheet effectively was connected with the contact deck of OBU400, OBU400 preferentially adopted contact Card Reader mode;
When contact Card Reader mode is made mistakes; Main control module 430 is according to the indication of error signal; Disconnection is to the power supply of IC-card sheet contact Card Reader mode; And close the port of communicating by letter with the wired mode of IC-card, thus close the contact Card Reader mechanism of OBU400 and IC-card, launch contactless Card Reader mode automatically and carry out normal Card Reader.
Concrete, as shown in Figure 3, the Card Reader mode of the OBU400 that the utility model embodiment the provides flow process that automaticallyes switch may further comprise the steps:
S310, plug-in card power on;
The COM1 of S320, initialization main control module 430 and IC-card;
S330, open IC-card contact processing module 420 and carry out Card Reader, judge then whether the contact Card Reader is normal: if the contact Card Reader is normally then execution in step S370~S390, execution in step S340, S350 if the contact Card Reader is undesired;
S340, close IC-card contact processing module 420;
S350, the contactless processing module 410 of unlatching IC-card are carried out Card Reader; Judge then whether contactless Card Reader is normal: if contactless Card Reader is normal; Execution in step S370~S390 then, execution in step S360, S380, S390 if contactless Card Reader is undesired;
S360, send out a warning, show " Card Reader is made mistakes ";
S370, obtain current card file information;
S380, give a green light, hummer rings, and shows " remaining sum: XXXXX.XX/ account card ";
S390, OBU400 power down; This moment, the contact Card Reader was accomplished, and transaction finishes;
Wherein, when OBU400 preferentially adopts contact Card Reader mode: the radio circuit in the contactless Card Reader mode is cut out by main control module 430; Main control module 430 sends reset signal; 430 pairs of main control modules 430 of main control module port of communicating by letter with the wired mode of IC-card detects then; If do not detect the proper reset information that the IC-card sheet returns; Then judge contact Card Reader mode mistake, the requirement of said proper reset information conforms ISO7816 agreement.
Wherein, Main control module 430 is closed the port of communicating by letter with the wired mode of IC-card; Simultaneously, through between IC-card contact processing module 420 and power circuit 440, switching device 450 being set, main control module 430 is according to the indication of error signal; CS device 450 is closed contact Card Reader mechanism with the power supply of 440 pairs of IC-card contacts of interrupting power circuit processing module 420 with this.When the contactless processing module 410 of unlatching IC-card is carried out Card Reader, card is operated according to the ISO14443 agreement.
The utility model is through the detection of main control module to contact Card Reader mode error status, when makeing mistakes; Utilize switching device to cut off power supply automatically, and close the COM1 of contact Card Reader pattern, switch to noncontact Card Reader mode the circuit of contact Card Reader pattern; It is convenient that the Card Reader mode is switched, and can effectively improve the stable and compatible of board units Card Reader mode, is user-friendly to; Reduce the Card Reader error rate, improve trading efficiency.