CN105404552A - Non-contact card data processing method and device - Google Patents

Non-contact card data processing method and device Download PDF

Info

Publication number
CN105404552A
CN105404552A CN201510981266.3A CN201510981266A CN105404552A CN 105404552 A CN105404552 A CN 105404552A CN 201510981266 A CN201510981266 A CN 201510981266A CN 105404552 A CN105404552 A CN 105404552A
Authority
CN
China
Prior art keywords
data
receiving
interruption function
card
receive
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.)
Pending
Application number
CN201510981266.3A
Other languages
Chinese (zh)
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.)
Hengbao Co Ltd
Original Assignee
Hengbao 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 Hengbao Co Ltd filed Critical Hengbao Co Ltd
Priority to CN201510981266.3A priority Critical patent/CN105404552A/en
Publication of CN105404552A publication Critical patent/CN105404552A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4812Task transfer initiation or dispatching by interrupt, e.g. masked
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
    • G06K19/067Record carriers with conductive marks, printed circuits or semiconductor circuit elements, e.g. credit or identity cards also with resonating or responding marks without active components
    • G06K19/07Record carriers with conductive marks, printed circuits or semiconductor circuit elements, e.g. credit or identity cards also with resonating or responding marks without active components with integrated circuit chips
    • G06K19/0723Record carriers with conductive marks, printed circuits or semiconductor circuit elements, e.g. credit or identity cards also with resonating or responding marks without active components with integrated circuit chips the record carrier comprising an arrangement for non-contact communication, e.g. wireless communication circuits on transponder cards, non-contact smart cards or RFIDs

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computer Hardware Design (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a non-contact card data processing method and a device thereof. The method comprises the steps of 1, modifying a receiving interrupt function and adding a receiving program in a receiving interrupt function; 2, starting receiving data by means of a non-contact card; 3, automatically triggering the receiving interrupt function after receiving one byte; 4, processing the data of the received byte; 5, after processing the data, repeating to continue the step 2 till all data are received.

Description

A kind of non-contact card data processing method and device
Technical field
The application relates to the information processing technology, particularly relates to a kind of non-contact card data processing method and device.
Background technology
Smart card (smartcard) is a kind of IC-card for realizing the functions such as identity verify, data signature, access control being built-in with storer and/or microprocessor etc. and forming in plastic cards.Because it is easy to carry and use, be widely used in daily life, such as, the identify label (badge) in company, SIM (subscriber identity module) card in gsm communication system, electronic ID card, EMV (Eurocard-Mastercard-Visa) card or so-called stored value card (e-purse) etc.
Smart card can be divided into from the angle of communication mode: contact card (contactcard) and non-contact card (contactlesscard).Contact card needs to be inserted in card reader and operates.When using contact card, the interface of card reader and the contact on card, to be powered to contact card by these contacts and communicate with.Non-contact card is communicated with miscellaneous equipment (card reader) by radio frequency interface.When in the effective range entering card reader antenna, non-contact card will be activated and carry out radio communication by built-in antenna and card reader.
Non-contact card, owing to being mutual by radio communication and miscellaneous equipment, therefore has lot of advantages.Such as, because in use without the need to taking out from wallet or school bag and inserting card reader, therefore user uses easily, improves operating speed, reduce the risk of loss and can not be worn and torn by card reader, extend serviceable life.
But also there is many technical restrictions in non-contact card.In the process that non-contact card communicates with the external world, card automatic reception data, in DRP data reception process, based on the consideration of power consumption, require that non-contact card enters into park mode and do not do any operation, receive and completed by hardware, after data receiver completes, by interrupt or the mode of event to be waken up card and started follow-up work again.Which results in sleep procedure, card carries out without any operation, so the subsequent treatment of card will start after the process of automatic reception completes.
Although above-mentioned processing mode has saved power consumption to a certain extent, because the reception of data and the processing procedure of data are serials, thus the response time of contactless card is caused to increase.
Summary of the invention
In view of this, the application provides a kind of non-contact card data processing method, comprising:
S1, amendment receive interruption function, adds in receive interruption function by reception program;
S2, contactless card starts to receive data;
S3, receive a byte complete after automatic triggering receive interruption function;
S4, processes the data of the byte received;
Does S5, determine that total data finishes receiving? if not, then S2 is jumped to; If so, then S6 is performed;
S6, terminates.
In the application's preferred embodiment, reception program adds in receive interruption function to be included in receiving course and parallelly carries out other computings by described amendment receive interruption function, carries out the pre-service of code, shortens card to the response time of instruction.
In the application's preferred embodiment, parallelly in described receiving course carry out other computings and comprise: the park mode cancelling contactless card when being stuck in data receiver, makes to process data in the process of data receiver.
In the application's preferred embodiment, the described data of a byte to receiving are carried out process and are comprised described process and comprise deciphering and use process function to process.
Present invention also provides a kind of non-contact card data processing equipment, this device comprises:
Receiving-member, for receiving data;
Processing element, comprising:
Amendment unit: amendment receive interruption function, adds in receive interruption function by reception program;
Running unit: run receive interruption function, automatically triggers receive interruption function after reception byte completes;
Operating unit: the data of the byte received are processed;
Control module: control above unit, triggers receiving-member and continues to receive data after operating unit process completes.
In the application's preferred embodiment, reception program adds in receive interruption function to be included in receiving course and parallelly carries out other computings by described amendment receive interruption function, carries out the pre-service of code, shortens card to the response time of instruction.
In the application's preferred embodiment, parallelly in described receiving course carry out other computings and comprise: the park mode cancelling contactless card when being stuck in data receiver, makes to process data in the process of data receiver.
In the application's preferred embodiment, the described data of a byte to receiving are carried out process and are comprised described process and comprise deciphering and use process function to process.
In the application's preferred embodiment, the described receiving-member continuation reception data that trigger after operating unit process completes are specially: after the data processing of the byte received, determine whether total data finishes receiving, if not, then notify that receiving element receives next byte; If so, then end process.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present application or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, the accompanying drawing that the following describes is only some embodiments recorded in the application, for those of ordinary skill in the art, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is untouchable data processing method process flow diagram in the application;
Fig. 2 is untouchable data processing equipment structural drawing in the application.
Embodiment
A kind of untouchable data processing method and device thereof are disclosed in the application, its by cancel contactless be stuck in data receiver time the park mode of card, make also to process data in the process of data receiver, thus solve contactless card response time long problem.
Specifically, the application (utilizes the contactless communication of use 14443 agreement) in contactless communication process, utilize the function of automatic reception in card receiving course, the partial data realized in receiving course card receives carries out advanced processing, to be used for breaking through the restriction of response time performance.
Disclose a kind of untouchable data processing method in the application, the method comprises:
Step S1, amendment receive interruption function, add to reception program in receive interruption function.
Described receive interruption function is preset at smartcard internal, and smartcard internal provides spendable interruption under given conditions, can forward to correspondingly at interrupt function according to interrupt vector table.
In normal receiving course, based on the consideration of power consumption, be all generally that card is set to dormancy or low-power consumption mode.It is the peak value of power consumption in process due to reception, carry out the power consumption that other operations can increase power plant, in the present invention, amendment receive interruption function is: walk abreast in receiving course and carry out other computings, carry out the pre-service of code, shorten card to the response time of instruction.
The false code of amendment receiving terminal function is:
By above-mentioned codes implement cancel contactless be stuck in data receiver time the park mode of card, make to process data in the process of data receiver.
Step S2, contactless card start to receive data.
Automatic triggering receive interruption function after step S3, a reception byte complete.
Step S4, the data of a byte received to be processed.
Described process comprises deciphering and uses process function to process.
Data due to whole transmission are all through encryption, are encrypt datas, only have the data that could use after deciphering and receive.Meanwhile, decrypting process is also a proof procedure, if the key that deciphering uses is wrong, the data decrypted are incorrect, and subsequent treatment can not proceed.
Do step S5, total data receive? if not, then process current byte and become to continue step S2, if so, then perform S6.
Step S6, end.
Present invention also provides a kind of data processing equipment of non-contact card, this device comprises:
Receiving-member 1: receive data;
Processing element 2, comprising:
Amendment unit 21: amendment receive interruption function, adds to reception program in receive interruption function.
Described receive interruption function is preset at smartcard internal, and smartcard internal provides spendable interruption under given conditions, can forward to correspondingly at interrupt function according to interrupt vector table.
In normal receiving course, based on the consideration of power consumption, be all generally that card is set to dormancy or low-power consumption mode.It is the peak value of power consumption in process due to reception, carry out the power consumption that other operations can increase power plant, in the present invention, amendment receive interruption function is: walk abreast in receiving course and carry out other computings, carry out the pre-service of code, shorten card to the response time of instruction.
The false code of amendment receiving terminal function is:
By above-mentioned codes implement cancel contactless be stuck in data receiver time the park mode of card, make to process data in the process of data receiver.
Running unit 22: run receive interruption function, automatically triggers receive interruption function after reception byte completes;
Operating unit 23: the data of the byte received are processed (comprise deciphering and use process function to process);
Control module 24: control above unit, triggers receiving-member and continues to receive data after operating unit process completes.
Do are the described receiving-member continuation reception data that trigger after operating unit process completes specially: after the data processing of the byte received, determine that total data finishes receiving? if not, then notify that receiving element receives next byte; If so, then end process.
It will be understood by those skilled in the art that the embodiment of the application can be provided as method, device (equipment) or computer program.Therefore, the application can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.And the application can adopt in one or more form wherein including the upper computer program implemented of computer-usable storage medium (including but not limited to magnetic disk memory, CD-ROM, optical memory etc.) of computer usable program code.
The application describes with reference to according to the process flow diagram of the method for the embodiment of the present application, device (equipment) and computer program and/or block scheme.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block scheme and/or square frame and process flow diagram and/or block scheme and/or square frame.These computer program instructions can being provided to the processor of multi-purpose computer, special purpose computer, Embedded Processor or other programmable data processing device to produce a machine, making the instruction performed by the processor of computing machine or other programmable data processing device produce device for realizing the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer-readable memory that works in a specific way of vectoring computer or other programmable data processing device, the instruction making to be stored in this computer-readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
These computer program instructions also can be loaded in computing machine or other programmable data processing device, make on computing machine or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computing machine or other programmable devices is provided for the step realizing the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
Although described the preferred embodiment of the application, those skilled in the art once obtain the basic creative concept of cicada, then can make other change and amendment to these embodiments.So claims are intended to be interpreted as comprising preferred embodiment and falling into all changes and the amendment of the application's scope.Obviously, those skilled in the art can carry out various change and modification to the application and not depart from the spirit and scope of the application.Like this, if these amendments of the application and modification belong within the scope of the application's claim and equivalent technologies thereof, then the application is also intended to comprise these change and modification.

Claims (9)

1. a non-contact card data processing method, the method comprises the following steps:
S1, amendment receive interruption function, adds in receive interruption function by reception program;
S2, contactless card starts to receive data;
S3, receive a byte complete after automatic triggering receive interruption function;
S4, processes the data of the byte received;
Does S5, determine that total data finishes receiving? if not, then S2 is jumped to; If so, then S6 is performed;
S6, terminates.
2. the method for claim 1, is characterized in that:
Described amendment receive interruption function, adds to reception program in receive interruption function to be included in receiving course and parallelly carries out other computings, carry out the pre-service of code, shorten card to the response time of instruction.
3. method as claimed in claim 2, is characterized in that:
Parallelly in described receiving course carry out other computings and comprise: the park mode cancelling contactless card when being stuck in data receiver, makes to process data in the process of data receiver.
4. the method for claim 1, is characterized in that:
The described data of a byte to receiving are carried out process and are comprised described process and comprise deciphering and use process function to process.
5. a non-contact card data processing equipment, this device comprises:
Receiving-member, for receiving data;
Processing element, comprising:
Amendment unit: amendment receive interruption function, adds in receive interruption function by reception program;
Running unit: run receive interruption function, automatically triggers receive interruption function after reception byte completes;
Operating unit: the data of the byte received are processed;
Control module: control above unit, triggers receiving-member and continues to receive data after operating unit process completes.
6. device as claimed in claim 5, is characterized in that:
Described amendment receive interruption function, adds to reception program in receive interruption function to be included in receiving course and parallelly carries out other computings, carry out the pre-service of code, shorten card to the response time of instruction.
7. device as claimed in claim 6, is characterized in that:
Parallelly in described receiving course carry out other computings and comprise: the park mode cancelling contactless card when being stuck in data receiver, makes to process data in the process of data receiver.
8. device as claimed in claim 5, is characterized in that:
The described data of a byte to receiving are carried out process and are comprised described process and comprise deciphering and use process function to process.
9. device as claimed in claim 8,
The described receiving-member continuation reception data that trigger after operating unit process completes are specially: after the data processing of the byte received, determine whether total data finishes receiving, if not, then notify that receiving element receives next byte; If so, then end process.
CN201510981266.3A 2015-12-23 2015-12-23 Non-contact card data processing method and device Pending CN105404552A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510981266.3A CN105404552A (en) 2015-12-23 2015-12-23 Non-contact card data processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510981266.3A CN105404552A (en) 2015-12-23 2015-12-23 Non-contact card data processing method and device

Publications (1)

Publication Number Publication Date
CN105404552A true CN105404552A (en) 2016-03-16

Family

ID=55470051

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510981266.3A Pending CN105404552A (en) 2015-12-23 2015-12-23 Non-contact card data processing method and device

Country Status (1)

Country Link
CN (1) CN105404552A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114416317A (en) * 2022-01-20 2022-04-29 科东(广州)软件科技有限公司 Inter-core interrupt execution method, inter-core interrupt processing device, inter-core interrupt equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1512295A (en) * 2002-12-26 2004-07-14 上海华虹集成电路有限责任公司 Power saving processing method of non-contact IC card receiving and transmitting signal
US20060113385A1 (en) * 2004-11-30 2006-06-01 International Business Machines Corporation Contactless card reader and information processing system
CN101295344A (en) * 2007-04-25 2008-10-29 北京中电华大电子设计有限责任公司 Method for CPU processing received data in radio frequency non-contact smart card
US20090203315A1 (en) * 2008-02-08 2009-08-13 Renesas Technology Corp. Detector, rf circuit with detector, and mobile device with rf circuit
CN101673220A (en) * 2009-09-09 2010-03-17 恒宝股份有限公司 Method for improving work parallelism of dual-interface SIM card

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1512295A (en) * 2002-12-26 2004-07-14 上海华虹集成电路有限责任公司 Power saving processing method of non-contact IC card receiving and transmitting signal
US20060113385A1 (en) * 2004-11-30 2006-06-01 International Business Machines Corporation Contactless card reader and information processing system
CN101295344A (en) * 2007-04-25 2008-10-29 北京中电华大电子设计有限责任公司 Method for CPU processing received data in radio frequency non-contact smart card
US20090203315A1 (en) * 2008-02-08 2009-08-13 Renesas Technology Corp. Detector, rf circuit with detector, and mobile device with rf circuit
CN101673220A (en) * 2009-09-09 2010-03-17 恒宝股份有限公司 Method for improving work parallelism of dual-interface SIM card

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114416317A (en) * 2022-01-20 2022-04-29 科东(广州)软件科技有限公司 Inter-core interrupt execution method, inter-core interrupt processing device, inter-core interrupt equipment and storage medium
CN114416317B (en) * 2022-01-20 2022-12-02 科东(广州)软件科技有限公司 Inter-core interrupt execution method, inter-core interrupt processing device, inter-core interrupt equipment and storage medium

Similar Documents

Publication Publication Date Title
EP3258611B1 (en) Mobile device having near field wireless communication function
KR100705522B1 (en) Ic card with built-in coprocessor for auxiliary arithmetic, and control method thereof
CN103929526A (en) Mobile phone, method and system for radio frequency identification
US20170154327A1 (en) Mobile Payment Method and Apparatus and Near Field Communication Device
CN102810191A (en) Near field communication (NFC) system and mobile payment and charge methods thereof
CN101853370A (en) Card container and matched radio-frequency SIM card
CN109426324B (en) Power-on control method, AP chip and mobile terminal
CN103581404A (en) Mobile phone with theft prevention function and mobile phone theft prevention method
CN103544114A (en) Multiple M1 card control system based on single CPU card and control method thereof
CN105404552A (en) Non-contact card data processing method and device
CN101216899B (en) SIM card chip compatible with non-contact logic encryption card
CN105512716A (en) Multifunctional IC card
EP2717193B1 (en) IC card, portable electronic device, and reader/ writer
CN104408516A (en) Novel dual-chip intelligent card and control method thereof
CN109815749B (en) System, method and chip for controlling SE
JP6092342B2 (en) Non-contact portable electronic device and method for issuing non-contact portable electronic device
EP2299414B1 (en) Portable electronic apparatus, control method for portable electronic apparatus, and IC card
CN105894078A (en) NFC chip provided with dynamic password
KR101570906B1 (en) Ic card, portable electronic device and reader/writer for ic card
JP2014186385A (en) Ic card and ic card control method
CN214744818U (en) Mobile ultrahigh frequency Bluetooth read-write equipment fixing device and data acquisition system
JP2010225055A (en) Processing device for portable electronic device, portable electronic device, and processing system for portable electronic device
JP5875772B2 (en) Portable electronic device, control method for portable electronic device, and processing system for portable electronic device
EP3435237A1 (en) Information processing device and information processing method
CN102930306B (en) Identify the method for IC-card logic appointment, terminal and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160316

RJ01 Rejection of invention patent application after publication