A kind of utilization
MCU
With double interfaces
CPU
The method realizing the transmission of different radio frequency data
Technical field
The present invention relates to Technology of Radio Frequency Card field, particularly relate to the system approach of a kind of different radio frequency frequency range data transmission.
Background technology
Along with the fast development of expressway construction, domestic a lot of provinces build networking charging system based on IC-card.Existing IC-card Fare Collection System relies on registration of vehicle to implement to split between charge and highway owner account by expressway entrance and exit information and critical path method (CPM).Along with freeway net is gradually improved, ambiguity path identification problem is increasingly severe, and existing IC-card Fare Collection System cannot meet and accurately splits account, has a strong impact on the distribution of interests of highway owner.
In order to solve ambiguity path identification problem, currently existing scheme mainly installs road-side identification station on a highway, when vehicle passes through, in the radio-frequency card carry road section information write, is read the road section information in radio-frequency card by card reader at expressway exit.Owing to road-side identification station uses radio frequency band (the DSRC i.e. Dedicated Short of DSRC (ISM5.8GHz, 915MHz, 2.45GHz, DSRC frequency range)
Range Communications, DSRC technology), and existing IC-card Fare Collection System all uses the card reader of 13.56MHz, in order to be able to the road section information reading in radio-frequency card, the IC-card card reader of existing 13.56MHz must be changed, this can cause existing IC-card to be continuing with, and increases the input of highway tolling system construction cost, will affect the enthusiasm of highway owner.
Summary of the invention
It is an object of the invention to provide a kind of MCU of utilization and double interface C PU realizes the method that different radio frequency data are transmitted, based on the present invention, it can well realize the data of the card reader sampling DSRC radio frequency band of 13.56MHz.
The present invention solves a kind of method that above technical problem be the technical scheme is that MCU of utilization and double interface C PU realize the transmission of different radio frequency data, including DSRC frequency range dual-mode antenna, DSRC frequency range RF transceiver, MCU, double interface C PU, 13.56MHz RF transceiver and 13.56MHz dual-mode antenna;
Described DSRC frequency range dual-mode antenna is connected to described DSRC frequency range RF transceiver, and described DSRC RF transceiver is rabbeted in described MCU;Described 13.56MHz dual-mode antenna is connected with described 13.56MHz RF transceiver, and described 13.56MHz RF transceiver is rabbeted in described Dual Interface;Described DSRC frequency range RF transceiver is connected with described MCU;Described 13.56MHz RF transceiver is connected with described Dual Interface;Described MCU is connected with described pair of interface C PU contact interface by GPIO mouth.
Described DSRC frequency range dual-mode antenna is for receiving the routing information data that DSRC frequency range radiofrequency launcher sends, and transfers data to described DSRC frequency range RF transceiver, then by DSRC frequency range RF transceiver, by spi bus, data is transferred to described MCU;
The data that described DSRC frequency range RF transceiver transmits are stored its memory element by described MCU, then utilize ISO/IEC7816 agreement data to be exported to described pair of interface C PU;
Described pair of interface C PU receives the data that described MCU sends over, and stores in its memory element, then passes data to 13.56MHz RF transceiver by spi bus, then output data to 13.56MHz dual-mode antenna by 13.56MHz RF transceiver;
After described 13.56MHz dual-mode antenna receives the data that described 13.56MHz RF transceiver transmits, by ISO/IEC14443 agreement, data are exported to the card reader of 13.56MHz.
The control MCU most of the time is in the resting state of super low-power consumption, only just enter normal mode of operation when being waken up, be received data, and the routing information received is dumped in Dual Interface chip, after data are disposed, MCU is again introduced into resting state.
The job step of described MCU is,
Step one, initializes the port of MCU, and clock frequency is arranged;Configuration DSRC frequency range RF transceiver is in interruption reception state;Arrange MCU and double interface C PU power supplys controlling the GPIO mouth voltage that mouth is connected is height, and the power supply blocking double interface C PU supplies;Then control MCU and enter low power sleep mode;
Step 2, double-frequency card enters when waking up region up of DSRC frequency range radio-frequency transmissions antenna, and MCU is waken up signal and wakes up up, departs from sleep pattern and enters mode of operation, receives the routing information that DSRC frequency range radio-frequency transmissions antenna sends;When routing information is correctly received then, the GPIO mouth voltage described in MCU meeting setting steps one is low, opens the power supply supply of double interface C PU;Now MCU is written to received routing information in double-interface card by the contact pin of double interface C PU;Data storage is complete, closes the power supply of double interface C PU;When routing information cannot be successfully received, after a period of time, MCU intervalometer can overflow, and is automatically switched off the power supply of double interface C PU afterwards, and MCU is forwarded to sleep pattern.
Step 3, controls double-frequency card and is again introduced into low power sleep mode.
Described MCU and double interface C PU are transmitted by ISO/IEC7816 protocol realization different radio frequency frequency range data, utilize the universal input output GPIO interface of MCU to realize the communication protocol of ISO/IEC7816 interface.
Described MCU with the job step of double interface C PU data transmission is,
Step one, controls mouth by power supply and powers to double interface C PU;
Step 2, activates double interface C PU, receives ATR information;
Step 3, selects double interface C PU master file;
Step 4, obtains double interface C PU random number;
Double interface C PU are carried out external authentication by step 5, if external authentication failure, turn error handling processing;
Step 6, selects double interface C PU routing information file;
Step 7, utilizes triple des AES encryption path information;
Step 8, updates double interface C PU routing information file;
Step 9, double interface C PU of dormancy;
Step 10, controls mouth to double interface C PU power-off by power supply.
The invention has the beneficial effects as follows: transmitted by ISO/IEC7816 protocol realization different radio frequency frequency range data by MCU and double interface C PU, process DSRC frequency range and 13.56MHz signal can be received simultaneously, existing IC-card is so facilitated to be continuing with, reduce the input of highway tolling system construction cost, it is possible to meet Fare Collection System and accurately split account.
Accompanying drawing explanation
Fig. 1 is the simple structure schematic diagram utilizing MCU and double interface C PU to realize the transmission of different radio frequency frequency range data in the present invention;
Fig. 2 is double interface C PU and the GPIO hardware interface schematic diagram of MCU in the present invention;
Fig. 3 is MCU and the I/O sequential chart of double interface C PU in the present invention;
Fig. 4 is that in the present invention, MCU Yu DSRC frequency range radiofrequency launcher carries out data transmission flow chart;
Fig. 5 is that in the present invention, double interface C PU carry out data transmission flow chart with 13.56MHz card reader;
Fig. 6 is MCU and double interface C PU transmitting data stream journey figures in the present invention.
Detailed description of the invention
A kind of method that MCU of utilization and double interface C PU realize the transmission of different radio frequency data, including DSRC frequency range dual-mode antenna, DSRC frequency range RF transceiver, MCU, double interface C PU, 13.56MHz RF transceiver and 13.56MHz dual-mode antenna;
Described DSRC frequency range dual-mode antenna is connected to described DSRC frequency range RF transceiver, and described DSRC RF transceiver is rabbeted in described MCU;Described 13.56MHz dual-mode antenna is connected with described 13.56MHz RF transceiver, and described 13.56MHz RF transceiver is rabbeted in described Dual Interface;Described DSRC frequency range RF transceiver is connected with described MCU;Described 13.56MHz RF transceiver is connected with described Dual Interface;Described MCU is connected with described pair of interface C PU contact interface by GPIO mouth.
Described DSRC frequency range dual-mode antenna is for receiving the routing information data that DSRC frequency range radiofrequency launcher sends, and transfers data to described DSRC frequency range RF transceiver, then by DSRC frequency range RF transceiver, by spi bus, data is transferred to described MCU;
The data that described DSRC frequency range RF transceiver transmits are stored its memory element by described MCU, then utilize ISO/IEC7816 agreement data to be exported to described pair of interface C PU;
Described pair of interface C PU receives the data that described MCU sends over, and stores in its memory element, then passes data to 13.56MHz RF transceiver by spi bus, then output data to 13.56MHz dual-mode antenna by 13.56MHz RF transceiver;
After described 13.56MHz dual-mode antenna receives the data that described 13.56MHz RF transceiver transmits, by ISO/IEC14443 agreement, data are exported to the card reader of 13.56MHz.
The control MCU most of the time is in the resting state of super low-power consumption, only just enter normal mode of operation when being waken up, be received data, and the routing information received is dumped in Dual Interface chip, after data are disposed, MCU is again introduced into resting state.
MCU and double interface C PU are transmitted by ISO/IEC7816 protocol realization different radio frequency frequency range data as shown in Figure 2, utilize the universal input output GPIO interface of MCU to realize the communication protocol of ISO/IEC7816 interface;
GPIO0, GPIO1, GPIO2 port of hardware interface: MCU is connected respectively on CLK, IO and RST of Dual Interface, and MCU controls powering on and lower electricity of Dual Interface by controlling the switch of metal-oxide-semiconductor.The GPIO3 of MCU is connected to the grid of metal-oxide-semiconductor, and the drain electrode of metal-oxide-semiconductor is linked to the VCC port of Dual Interface, and the source electrode of metal-oxide-semiconductor is connected to supply voltage.The GPIO1 pin sequential chart of I/O Yu MCU of Dual Interface is as shown in Figure 3.
Job step after MCU receives DSRC frequency range rf data as shown in Figure 4:
Step one, when not receiving DSRC frequency range radio-frequency transmissions antenna wake-up signal, configuration DSRC frequency range RF transceiver is in interruption reception state, initialize the port of MCU, clock frequency is set, MCU being set and controls the GPIO3 in the GPIO(figure that mouth (the voltage-controlled pole of metal-oxide-semiconductor) is connected with double interface C PU power supplys) mouth is height, as in figure 2 it is shown, the power supply supply of double interface C PU of blocking-up (now cannot transmit data by MCU to double interface C PU).Then control MCU and enter low power sleep mode.
Step 2, when double-frequency card receives the wake-up signal of DSRC frequency range radio-frequency transmissions antenna, MCU can be waken up signal and wake up up, departs from sleep pattern and enters mode of operation, receives the routing information that DSRC frequency range radio-frequency transmissions antenna sends.When routing information is correctly received then, it is low that MCU arranges the GPIO3 voltage of the voltage-controlled end of metal-oxide-semiconductor, opens the power supply supply of double interface C PU.Now enter MCU received routing information is written in double-interface card by the contact pin of double interface C PU.
Step 3, MCU opens metal-oxide-semiconductor switch, starts to power to Dual Interface, and Dual Interface is activated.MCU by the DSRC frequency range routing information that receives after triple des is encrypted, by simulation ISO/IEC7816 agreement by the memory element of double interface C PU of routing information write after encryption.
Step 4, after completing routing information transmission, the GPIO3 pin of configuration MCU is high level, turns off MOS switch and powers to Dual Interface, controlling double-frequency card and be again introduced into low power sleep mode, wait DSRC frequency range radio-frequency antenna next time or 13.56MHz card reader wakes up and receives storage data up
Step 5, after the wake-up signal receiving 13.56MHz card reader, is sent to card reader by the path signal in Dual Interface, and the routing information completing DSRC frequency range is transferred to 13.56MHz card reader.Control double-frequency card and be again introduced into low power sleep mode.
Fig. 5 is that the step of double whole work of interface C PU is similar with the MCU job step of Fig. 4.
The most described MCU with the job step of double interface C PU data transmission is,
Step one, controls mouth by power supply and powers to double interface C PU;
Step 2, activates double interface C PU, receives ATR information;
Step 3, selects double interface C PU master file;
Step 4, obtains double interface C PU random number;
Double interface C PU are carried out external authentication by step 5, if external authentication failure, turn error handling processing;
Step 6, selects double interface C PU routing information file;
Step 7, utilizes triple des AES encryption path information;
Step 8, updates double interface C PU routing information file;
Step 9, double interface C PU of dormancy;
Step 10, controls mouth to double interface C PU power-off by power supply.
The foregoing is only the present invention preferably implements use-case, is not intended to limit the protection model figure of the present invention.All within the spirit and principles in the present invention, any amendment, equivalent and the improvement etc. made, should be included within the scope of the present invention.