CN100561498C - Be used for radio frequency non-contact smart card CPU and handle the method that receives data - Google Patents

Be used for radio frequency non-contact smart card CPU and handle the method that receives data Download PDF

Info

Publication number
CN100561498C
CN100561498C CNB2007100986769A CN200710098676A CN100561498C CN 100561498 C CN100561498 C CN 100561498C CN B2007100986769 A CNB2007100986769 A CN B2007100986769A CN 200710098676 A CN200710098676 A CN 200710098676A CN 100561498 C CN100561498 C CN 100561498C
Authority
CN
China
Prior art keywords
cpu
data
frequency
byte
clock
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CNB2007100986769A
Other languages
Chinese (zh)
Other versions
CN101295344A (en
Inventor
张建平
张玉禄
余秋芳
许珊琳
田勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing CEC Huada Electronic Design Co Ltd
Original Assignee
Beijing CEC Huada Electronic Design Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing CEC Huada Electronic Design Co Ltd filed Critical Beijing CEC Huada Electronic Design Co Ltd
Priority to CNB2007100986769A priority Critical patent/CN100561498C/en
Publication of CN101295344A publication Critical patent/CN101295344A/en
Application granted granted Critical
Publication of CN100561498C publication Critical patent/CN100561498C/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Power Sources (AREA)

Abstract

The present invention is used for radio frequency non-contact smart card CPU and handles the method that receives data.When card reader and radio-frequency card communication, radio-frequency card receives the data that card reader sends, and behind the demodulation sign indicating number, sends the data of reception and handles to CPU.But in the contactless smart card agreement of following ISO14443 type A, coded system is the miller sign indicating number, and carrier wave is modulated by the miller sign indicating number, almost all has carrier wave to suspend (pause) in each code element or the character.Chip did not have carrier signal when carrier wave suspended, and chip does not have the external power source energy, may not have clock yet.So CPU is difficult to handle to the data (character) of exporting to CPU after decoding.The present invention uses comparatively novel method, the next one after each byte of having decoded receive byte by demodulation or decoding in, make CPU be operated in the suitable frequency previous byte that fast processing receives of getting off, just can realize that so the edge joint of data is received the limit processing.

Description

Be used for radio frequency non-contact smart card CPU and handle the method that receives data
Technical field
A kind of method of CPU processing reception data in the radio-frequency card that realizes relates to digital processing field, relates in particular to a kind of implementation method of CPU deal with data.
Background technology
IC (integrated circuit) smart card and is incorporating the main flow of current infotech, and it is with the information integration of its height, the security of height, and just day by day it is brilliant and magnificent.
Along with the continuous development of financial industry, socioeconomic making rapid progress, particularly public transport industry, wireless communication field, health-care industry, closed site management, identification, telephone communication, building security system or the like, what people were more and more many begins acceptance and uses the IC smart card.Bank service system particularly, IC smart card substitute ancient magnetic card and to serve masses day by day ripe.And " all-purpose card ", one card for multiple uses has brought very big raising for our quality of life.The automatic ammeter ' s reading meter of IC smart card system, coal gas/tap water kilowatt meter reading-out system, public transport/subway automatic ticketing/ticket-checking system, IC intelligent SIM card or the like in the mobile communication mobile phone, the IC smart card is more and more pressed close to our life, becomes us and divides in a step of life." swipe the card " and become a part indispensable in people's daily life.
In recent years, because the contact type CPU card in the IC smart card and the high safety confidentiality of non-contact IC intelligent RF card (built-in MCU, ASIC etc.) are a dark horse it in the IC field of intelligent cards, become the popular pet in the current IC smart card, application prospect is very wide.Abroad to the research of smart card with use early, particularly in the U.S., European countries etc.Smart card spreads all over each every aspect of society.Just as in the U.S., 20% ~ the ~ 30% of national consumption total value is finished by " swiping the card " consumption, this shows the degree that the IC smart card is popular and use.
Compare with contact intelligent card, contactless smart IC radio-frequency card (built-in MCU, ASIC etc.) has more superiority, and non-contact IC intelligent RF card (particularly contactless smart CPU card) has been represented the developing direction of whole intellective IC card, has a bright future.
But along with development of integrated circuits, smart card is more and more stricter to the requirement of area and power consumption, and the area of being pursued is more and more littler, and power consumption is more and more lower, and this is a challenge greatly to the deviser.In radio-frequency card, CPU handles the method that the general fashion that receives data adopts FIFO, and the space of using FIFO is after receiving all data, and CPU is just unified to be handled, but it is evident that the great chip occupying area of this meeting, the consumption power consumption that the thing followed also can be too much.The present invention is directed to this point, adopted a kind of relatively more novel method, make CPU handle the data that received better, and additionally do not increase chip area, and be implemented in that CPU has also handled data when receiving data.
Summary of the invention
In the contactless smart card agreement, carrier wave is modulated by the miller sign indicating number, almost all has carrier wave to suspend (pause) in each code element or the character, and in this case, chip does not have carrier signal, and then does not have clock, the decoded data of CPU intractable.The present invention is directed to this situation, the method that provides can solve CPU well and be difficult to handle decoded data problem.The present invention can additionally not increase chip area simultaneously on the basis of dealing with problems, and has realized finishing the processing of CPU to data in decoding.
The invention discloses a kind of method (with reference to the synoptic diagram of Fig. 1) of a kind of CPU to the back data processing of decoding.It can solve existence owing to pause in the carrier wave well and make the become problem of difficulty of CPU deal with data.Method of the present invention mainly contains four processes: clock switches-wakes up CPU-〉data processing-dispose.
Described clock switching is meant because CPU needs in a short period of time (receiving relatively) to handle the data of a byte, so needs higher frequency of operation in the CPU deal with data.Before the CPU deal with data, its frequency of operation to be switched on the higher frequency.
The described CPU of waking up is meant that wake CPU up in the suitable moment goes to handle decoded data.The moment that this method selection wakes CPU up is to wake CPU up behind the back to back pause after receiving a byte data.
Described data processing is meant that CPU correctly handles the decoded data in front in the time of necessity.
Described disposing is meant after CPU handles the data of decoding previously and can enters battery saving mode, can lower power consumption.
The present invention has the following advantages:
(1) the present invention has realized not increasing again when CPU handles decoded data the extra chip area of expense.
(2) the present invention has realized the function that handle on edge joint receipts data limit on the angle of data stream.
(3) the present invention can realize supporting the speed of the 848Kbps that stipulates in the contactless smart card agreement of ISO14443 type A in theory.
(4) the present invention does not adopt the mode that relatively more conventional CPU handles decoded data, has reduced hard-wired complexity and cost.
Description of drawings
Fig. 1 is the synoptic diagram of this method
Fig. 2 is the synoptic diagram under mode one situation during this method is used
Fig. 3 is the synoptic diagram under mode two situations during this method is used
Embodiment
With reference to the accompanying drawings, providing this concrete method implements to describe.
When using this method, need improve cpu clock frequency, and there are two kinds of situations available the opportunity of raising cpu clock frequency:
Mode one: after receiving each byte data, switch clock frequency (with reference to the synoptic diagram of Fig. 2).
The concrete operations mode is as follows:
Produce clock frequency switching signal a when receiving after the situation of a byte data back when also having data: CIF receives the data of a byte, behind back to back pause, produce CPU wake-up signal b afterwards.After CPU was waken up, the frequency of operation of CPU improved through clock switch circuit.Under higher frequency, CPU handles the data of previous byte in the regular hour.After CPU handles data, can enter battery saving mode, and the frequency of operation of CPU is switched back under the original frequency.
When receiving a byte data but the situation of back when no longer including data: CIF produces clock frequency switching signal a after receiving the data of a byte, produce CPU wake-up signal b receiving the end signal back of arriving afterwards.After CPU was waken up, the frequency of operation of CPU improved through clock switch circuit.Under higher frequency, CPU handles the data of previous byte in the regular hour.After CPU handles data, can enter battery saving mode, and the frequency of operation of CPU is switched back under the original frequency.
When data are discontented with a byte but the situation of reception end: CIF can't produce the clock frequency switching signal in advance in this case, it can only produce simultaneously with the CPU wake-up signal, promptly produces clock frequency switching signal a and CPU wake-up signal b after receiving the end signal arrival.In such cases, the back no longer includes data and arrives, even do not improve the frequency of operation of CPU, CPU also can have sufficient time deal with data, and therefore, the frequency of operation that also can select to improve CPU is handled the data of front.
Mode two: switch in the start bit of frame data, keep switching the higher clock frequency in back in the frame process always, the frequency of operation of CPU is switched back original frequency (with reference to the synoptic diagram of Fig. 3) at the stop bit of this frame.
The concrete operations mode is as follows: at the start bit SOF that detects frame data, CIF produces clock frequency switching signal a, and this moment, the clock with CPU switched under the higher frequency.After whenever receiving the data of a byte, CIF behind back to back pause, produces CPU wake-up signal b.Wake CPU up, under higher frequency of operation, handle the data of previous byte, before next pause comes, dispose.Can enter battery saving mode handle the data of previous byte as CPU after.Byte CPU of every reception just handles once, has so just realized the limit processing of edge joint receipts.When detecting the stop bit EOF of frame, CIF produces a clock frequency switching signal again, and the clock frequency of CPU is switched back original frequency.

Claims (2)

1. one kind is used for the method that radio frequency non-contact smart card CPU handles the reception data, it is characterized in that CPU utilizes the carrier energy and the clock of subsequent symbol under suitable frequency, handle the previous decoded data that received, in processing procedure, need to improve the frequency of operation of CPU, according to the different opportunitys of switching clock frequency, the clock frequency that improves CPU has two kinds of processing modes:
Mode one: noncontact protocol processes interface module produces the clock frequency switching signal after receiving the data of each byte, by clock switch circuit, improves the frequency of operation of CPU; Its concrete operations are as follows:
(1) when receiving a byte data back when also having data, noncontact protocol processes interface module produces the clock frequency switching signal after receiving a byte data, produces a CPU wake-up signal afterwards after back to back carrier wave suspends; When receiving a byte data but back when no longer including data, noncontact protocol processes interface module produces the clock frequency switching signal after receiving a byte data, produces the CPU wake-up signal receiving the end signal back of arriving afterwards; Be discontented with a byte but the reception end when the data that receive, after the reception end signal arrives, produce the signal and the CPU wake-up signal of clock frequency switching simultaneously;
(2) after CPU is waken up, the frequency of operation of CPU improves through clock switch circuit, and CPU handles the data of previous byte in the regular hour afterwards;
(3) after CPU handled the data of a byte, CPU entered battery saving mode, and the frequency of operation of CPU is switched back original frequency;
Mode two: noncontact protocol processes interface module just produces the clock frequency switching signal in the start bit that detects frame data, improves the frequency of operation of CPU by clock switch circuit; Its concrete operations are as follows:
(1) after noncontact protocol processes interface module receives the data of a byte, suspends the back at back to back carrier wave and produce a CPU wake-up signal;
(2) after CPU is waken up, the frequency of operation of CPU improves through clock switch circuit, and CPU handled the data of previous byte before next carrier wave time-out comes afterwards;
(3) when detecting the stop bit of frame data, noncontact protocol processes interface module is switched back original frequency with the frequency of operation of CPU again.
2. the method that is used for radio frequency non-contact smart card CPU processing reception data according to claim 1 is characterized in that, in mode one, when receiving the discontented byte of data but receiving end, does not produce the clock frequency switching signal.
CNB2007100986769A 2007-04-25 2007-04-25 Be used for radio frequency non-contact smart card CPU and handle the method that receives data Active CN100561498C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2007100986769A CN100561498C (en) 2007-04-25 2007-04-25 Be used for radio frequency non-contact smart card CPU and handle the method that receives data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2007100986769A CN100561498C (en) 2007-04-25 2007-04-25 Be used for radio frequency non-contact smart card CPU and handle the method that receives data

Publications (2)

Publication Number Publication Date
CN101295344A CN101295344A (en) 2008-10-29
CN100561498C true CN100561498C (en) 2009-11-18

Family

ID=40065624

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2007100986769A Active CN100561498C (en) 2007-04-25 2007-04-25 Be used for radio frequency non-contact smart card CPU and handle the method that receives data

Country Status (1)

Country Link
CN (1) CN100561498C (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI425366B (en) 2009-03-30 2014-02-01 Mstar Semiconductor Inc Method and apparatus for executing data access according to protocol handling
CN101853366B (en) * 2009-04-03 2014-02-19 晨星软件研发(深圳)有限公司 Method and device for executing data access according to communication protocol processing
CN101847200B (en) * 2010-02-05 2012-07-04 谭洪舟 Groove identification device of RFID (Radio Frequency Identification Device) label chip
CN102968657B (en) * 2011-08-31 2016-07-06 北京中电华大电子设计有限责任公司 A kind of high-frequency intelligent card realizes the circuit of the accurate timing of FDT
CN104242954B (en) * 2013-06-21 2017-03-15 上海华虹集成电路有限责任公司 Twin subcarrier mode signal decoder
CN105404552A (en) * 2015-12-23 2016-03-16 恒宝股份有限公司 Non-contact card data processing method and device
CN112469141B (en) * 2020-11-27 2022-08-26 维沃移动通信有限公司 Wireless connection method, device, equipment and readable storage medium

Also Published As

Publication number Publication date
CN101295344A (en) 2008-10-29

Similar Documents

Publication Publication Date Title
CN100561498C (en) Be used for radio frequency non-contact smart card CPU and handle the method that receives data
CN100448174C (en) Mobile terminal circuit including an rfid tag and wireless identification method using the same
CN101739583A (en) Radio frequency SIM card, radio frequency card reader and magnetic induction control method for radio frequency communication
CN201780639U (en) Passive magnetic card reader
CN101742619A (en) Method for reducing stand-by power consumption of radio-frequency SIM (subscriber identity module) card by sequential trigger
CN101908157B (en) NFC-SIM (Near Field Communication-Subscriber Identity Module) chip
CN103218638B (en) A kind of method that MCU of utilization and double interface C PU realize the transmission of different radio frequency data
US20060086806A1 (en) Dual-mode smart card
CN203301561U (en) Cellphone shell with functions of fingerprint identification and NFC
CN203552291U (en) Active non-contact intelligent card
CN102347626A (en) Power supply control device and method as well as mobile device using same
CN101964067A (en) Wireless communication card, contactless card reading device and wireless communication system
CN202632322U (en) Electronic tag two-dimension code conversion equipment
CN201974816U (en) Radio frequency card reading equipment for achieving near-field communication
CN201608912U (en) Radio-frequency mobile communication card and mobile terminal
CN210181678U (en) Intelligent door lock system based on RFID remote sensing
CN101493879A (en) Mobile phone wireless radio frequency recognition device
CN204143477U (en) Support the radio-frequency SIM card that NFC terminal front end and card internal antenna automatically switch
CN201903903U (en) Dual-interface IC card device
CN203465772U (en) IC (integrated chip) card door control management system
CN201919053U (en) Mobile phone pendant
CN206297969U (en) A kind of refuse classification processes punched-card machine
CN202159344U (en) Cell phone card reader based on SIM card
CN202043160U (en) Mobile phone with radio frequency card function
CN203299836U (en) Three-in-one card reader circuit of multifunctional mobile business terminal partner

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C56 Change in the name or address of the patentee
CP03 Change of name, title or address

Address after: Beijing City, Chaoyang District Lize two Road No. 2, Wangjing science and Technology Park A block five Beijing Zhongdian Huada Electronic Design Co. Ltd.

Patentee after: Beijing CEC Huada Electronic Design Co., Ltd.

Address before: Beijing city Chaoyang District Gaojiayuan No. 1

Patentee before: Beijing CEC Huada Electronic Design Co., Ltd.

C56 Change in the name or address of the patentee
CP02 Change in the address of a patent holder

Address after: 102209 Beijing, Beiqijia, the future of science and technology in the south area of China electronic network security and information technology industry base C building,

Patentee after: Beijing CEC Huada Electronic Design Co., Ltd.

Address before: 100102 Beijing City, Chaoyang District Lize two Road No. 2, Wangjing science and Technology Park A block five Beijing Zhongdian Huada Electronic Design Co. Ltd.

Patentee before: Beijing CEC Huada Electronic Design Co., Ltd.