CN102546107B - Method, system and adapter card for data transmission between contact card and card reading device - Google Patents

Method, system and adapter card for data transmission between contact card and card reading device Download PDF

Info

Publication number
CN102546107B
CN102546107B CN201110448413.2A CN201110448413A CN102546107B CN 102546107 B CN102546107 B CN 102546107B CN 201110448413 A CN201110448413 A CN 201110448413A CN 102546107 B CN102546107 B CN 102546107B
Authority
CN
China
Prior art keywords
data
card
port
common
byte
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
CN201110448413.2A
Other languages
Chinese (zh)
Other versions
CN102546107A (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 Watchdata Limited by Share Ltd
Original Assignee
Beijing WatchData System 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 WatchData System Co Ltd filed Critical Beijing WatchData System Co Ltd
Priority to CN201110448413.2A priority Critical patent/CN102546107B/en
Publication of CN102546107A publication Critical patent/CN102546107A/en
Application granted granted Critical
Publication of CN102546107B publication Critical patent/CN102546107B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides a method, a system and an adapter card for data transmission between a contact card and a card reading device. The method is used for connecting the contact card and the adapter card of the card reading device, and the adaptor card comprises a standard 7816 interface and a common input/output (IO) port. The method includes: receiving data from the contact card or the card reading device through the common IO port, or sending data to the contact card or the card reading device through the common IO port. The method for receiving the data from the contact card or the card reading device through the common IO port includes: determining whether the data should be received at present according to conditions in an instruction processing process, and receiving the data through the common IO port according to timing sequence requirements regulated in 7816 transmission protocols when the data which should be received at present are determined. The method for sending the data to the contact card or the card reading device through the common IO port includes: sending the data through the common IO port according to the timing sequence requirements regulated by the 7816 transmission protocols. The method, the system and the adapter card for the data transmission between the contact card and the card reading device can simplify structures of 7816 chips, thereby reducing cost of the 7816 chips.

Description

Data transmission method between contact card and card-reading apparatus, system and adapter
Technical field
The application relates to electronic system technology field, particularly relates to the data transmission method between a kind of contact card and card-reading apparatus, system and a kind of adapter.
Background technology
Smart card (SSC, Smart Storage Chip) is a kind ofly embedded in card in plastic substrate by having storage, encryption and the integrated circuit (IC) chip of data-handling capacity.At present, smart card has been widely used in the fields such as telecommunications, finance, government, traffic, medical treatment, public administration, the Internet.Especially at moving communicating field, SIM card has not only obtained extensively extensive use, but also effectively facilitates fast development and the common application of mobile communication technology.
According to card and extraneous data transfer forms, card can be divided into contact and contact two kinds, wherein, contact card meets contact host-host protocol, as International Organization for standardization (ISO, InternationalStandard Organization) host-host protocol of/International Electrotechnical Commission (IEC, International ElectrotechnicsCommittee) 7816 series standard definition.
At present, transmission side data fado between contact card and card-reading apparatus uses adapter as the chip of two 7816, one group of 7816 interface is connected with card-reading apparatus, another is organized 7816 interfaces and is connected with card, is used for realizing data interception process when issuing data to equipment to card or to the function not needing the instruction of tackling to carry out transparent transmission.
For improving chip competitive advantage commercially and range of application, reducing chip cost is a main developing direction.Because the above-mentioned chip of two 7816 is provided with two standard 7816 interfaces, the chip of single 7816 is provided with standard 7816 interface and common I/O port, and the cost of common I/O port is less than the cost of standard 7816 interface, therefore the cost of the chip of single 7816 is less than the cost of the chip of two 7816.
For reducing chip cost further, a kind of prior art device that integrating external interrupts in the chip of single 7816, the data interception process that the chip that simultaneously can realize above-mentioned pair 7816 has or transparent transmission function.But the device that said external is interrupted adds the triviality of 7816 chip structures, and in addition, although the cost of the device of external interrupt is less than the difference of the cost of standard 7816 interface and common I/O port, the device of external interrupt still can spend certain cost.
In a word, the technical problem needing those skilled in the art urgently to solve is exactly: the triviality that how can reduce by 7816 chip structures, thus reduces the cost of 7816 chips.
Summary of the invention
Technical problems to be solved in this application are to provide data transmission method, system and a kind of adapter between a kind of contact card and card-reading apparatus, and it can simplify 7816 chip structures, thus reduce the cost of 7816 chips.
In order to solve the problem, this application discloses the data transmission method between a kind of contact card and card-reading apparatus, comprise the adapter being applied to and connecting contact card and card-reading apparatus, this adapter comprises standard 7816 interface and common I/O port, described data transmission method comprises by common I/O port from contact card or card-reading apparatus reception data, or, send data by common I/O port to contact card or card-reading apparatus, describedly receive data by common I/O port from contact card or card-reading apparatus and comprise:
Determine currently whether data should be received according to the state in instruction processing pipeline;
Determine current should receive data time, according to the timing requirements specified in 7816 host-host protocols, receive data by described common I/O port;
Describedly send data by common I/O port to contact card or card-reading apparatus and comprise:
According to the timing requirements specified in 7816 host-host protocols, send data by described common I/O port.
Preferably, the timing requirements specified in described foundation 7816 host-host protocol, is received the step of data, comprising by described common I/O port:
Described common I/O port is set to input state;
When the arrival of character start bit being detected, start timing;
When counting (r+0.5 ± 0.2) etu, obtain the data of the r position of character based on sampling, wherein, 1≤r≤9, etu represents a primitive.
Preferably, the state in described foundation instruction processing pipeline determines the current step that whether should receive data, comprising:
When there is any one in following state, determine currently should receive data: send command header and terminate, wait-receiving mode return data, wait-receiving mode order data, wait-receiving mode TIMEOUT, wait-receiving mode return code.
Preferably, the timing requirements specified in described foundation 7816 host-host protocol, is sent the step of data, comprising by described common I/O port:
Described common I/O port is set to output state;
Send character start bit;
When described start bit is sent completely, start timing;
When counting (s ± 0.2) etu, send the data of the s position of this character, wherein, 1≤s≤9.
Preferably, described data transmission method also comprises the handling process that powers on, described in the handling process that powers on comprise:
When this adapter powers on, send repositioning information to described card-reading apparatus, described repositioning information specifically comprises forward repositioning information and reverse repositioning information;
Receive the data from described contact card;
When described repositioning information is forward repositioning information, if the initial byte of described data is direct convention decoding byte, then the data after initial byte in described data is pressed F-rule and receive; If the initial byte of described data is Backward Agreement decoding byte, then the data after initial byte in described data is pressed B-rule and receive;
When described repositioning information is reverse repositioning information, if the initial byte of described data is direct convention decoding byte, then the data after initial byte in described data is pressed B-rule and receive; If the initial byte of described data is Backward Agreement decoding byte, then the data after initial byte in described data is pressed F-rule and receive.
Preferably, described data transmission method also comprises the handling process that powers on, described in the handling process that powers on comprise:
When this adapter powers on, wait for the data from described contact card;
Receive the initial byte from described contact card, and send to described interconnecting device;
Receive the follow-up data from described contact card.
Preferably, described data transmission method also comprises the handling process of interactive instruction data, and the handling process of described interactive instruction data comprises:
The byte data from a side in described contact card and card-reading apparatus is received by common I/O port;
If this byte data is latency request, then this byte data is sent to the opposing party in described contact card and card-reading apparatus by standard 7816 interface, and common I/O port is transferred to the reception that input state prepares data;
If this byte data is not latency request, then according to the length requirement specified in 7816 host-host protocols, the entirety of being carried out corresponding length data by described common I/O port is received, and is sent to the opposing party in described contact card and card-reading apparatus by standard 7816 interface after finishing receiving.
On the other hand, disclosed herein as well is the data transmission system between a kind of contact card and card-reading apparatus, be applied to the adapter connecting contact card and card-reading apparatus, this adapter comprises standard 7816 interface and common I/O port, described data transmission system comprises the data sink for being received data from contact card or card-reading apparatus by common I/O port, or, for being sent the data sending device of data to contact card or card-reading apparatus by common I/O port, described data sink comprises:
Receiving determination module, currently whether should receive data for determining according to the state in instruction processing pipeline; And
Data reception module, for determine current should receive data time, according to the timing requirements specified in 7816 host-host protocols, receive data by described common I/O port;
Described data sending device comprises:
Data transmission blocks, for according to the timing requirements specified in 7816 host-host protocols, sends data by described common I/O port.
Preferably, described data reception module comprises:
Input state arranges submodule, for described common I/O port is set to input state;
First timing submodule, for when the arrival of character start bit being detected, starts timing;
Sampling submodule, for when counting (r+0.5 ± 0.2) etu, obtain the data of the r position of character based on sampling, wherein, 1≤r≤9, etu represents a primitive.
Preferably, specifically for when there is any one in following state in described reception determination module, determine currently should receive data: send command header and terminate, wait-receiving mode order data, wait-receiving mode return data, wait-receiving mode TIMEOUT, wait-receiving mode return code.
Preferably, described data transmission blocks comprises:
Output state arranges submodule, for described common I/O port is set to output state;
Start bit sends submodule, for sending character start bit;
Second timing submodule, for when described start bit is sent completely, starts timing; And
Follow-up transmission submodule, for when counting (s ± 0.2) etu, sends the data of the s position of this character, wherein, and 1≤s≤9.
Preferably, described data transmission system also comprises electrifying processing device, and described electrifying processing device comprises:
Repositioning information sending module, for when this adapter powers on, send repositioning information to described card-reading apparatus, described repositioning information specifically comprises forward repositioning information and reverse repositioning information;
Card data receiver module, for receiving the data from described contact card;
Data after initial byte in described data, for when described repositioning information is forward repositioning information, if the initial byte of described data is direct convention decoding byte, is then pressed F-rule and are received by forward reset processing module; If the initial byte of described data is Backward Agreement decoding byte, then the data after initial byte in described data is pressed B-rule and receive; And
Data after initial byte in described data, for when described repositioning information is reverse repositioning information, if the initial byte of described data is direct convention decoding byte, is then pressed B-rule and are received by reverse reset processing module; If the initial byte of described data is Backward Agreement decoding byte, then the data after initial byte in described data is pressed F-rule and receive.
Preferably, described data transmission system also comprises electrifying processing device, and described electrifying processing device comprises:
Wait for module, for when this adapter powers on, wait for the data from described contact card;
Card initial byte receiver module, for receiving the initial byte from described contact card;
Initial byte sending module, for sending to described interconnecting device by described initial byte; And
Subsequent data reception module, for receiving the follow-up data from described contact card.
Preferably, described data transmission system also comprises the processing unit of interactive instruction data, and the processing unit of described interactive instruction data comprises:
Byte data receiver module, for receiving the byte data from a side in described contact card and card-reading apparatus by common I/O port;
Delay process module, for when this byte data is latency request, is sent to the opposing party in described contact card and card-reading apparatus by standard 7816 interface by this byte data, and common I/O port is transferred to the reception that input state prepares data;
Non-delayed processing module, for when this byte data is not latency request, according to the length requirement specified in 7816 host-host protocols, the entirety of being carried out corresponding length data by described common I/O port is received, and is sent to the opposing party in described contact card and card-reading apparatus by standard 7816 interface after finishing receiving.
On the other hand, disclosed herein as well is a kind of adapter, be connected between contact card and card-reading apparatus, comprise standard 7816 interface, common I/O port and the contact card according to any one of aforementioned claim 8 to 14 and the data transmission system between card-reading apparatus.
Preferably, described standard 7816 interface is connected with described card-reading apparatus, and described common I/O port is connected with described contact card, and described adapter is all connected with the CLK pin of described card-reading apparatus with the CLK pin of contact card.
Compared with prior art, the application has the following advantages:
First, the application only supports 1 cover standard 7816 interface and 1 common I/O port at the hardware device of adapter, and when this common I/O port does not have a spendable external interrupt, the application receives or send by common I/O port the flow process receiving data can meet the timing requirements specified in 7816 host-host protocols, so can ensure the accuracy of sequential; Like this, under the prerequisite of saving the cost that this external interrupt outside spends, the synchronous of transfer of data can be realized; Therefore, it is possible to simplify 7816 chip structures, thus reduce the cost of 7816 chips.
Secondly, accurately identified by card-reading apparatus for enabling contact card, repositioning information can be sent to card-reading apparatus at adapter once powering on by the handling process that powers on of the application, like this, slower contact card is sent for first character joint, can data processing time be greatly reduced, strengthen the compatibility of card; The handling process that powers on of the application directly can also receive the data of contact card transmission when powering on, then issue card-reading apparatus, owing to need not judge forward or Backward Agreement, therefore can reduce data processing time and complexity.
Moreover, the application is when receiving data, the pattern that all data receives can also be adopted, under the pattern received due to described all data can make the common I/O port of adapter be in the treatment state of receiving mode always, just send the mode of a byte relative to reception byte, more can ensure integrality and the reliability of data.
Further, described standard 7816 interface can also be connected with described card-reading apparatus by the application, described common I/O port is connected with described contact card, described adapter is all connected with the CLK pin of described card-reading apparatus with the CLK pin of contact card, to avoid adopting this common I/O port as the impact that enter and wake of the data transmission port between equipment and adapter on the dormancy of contact card.
Accompanying drawing explanation
Fig. 1 is the flow chart of the data transmission method embodiment between a kind of contact card of the application and card-reading apparatus;
Fig. 2 is the hardware configuration schematic diagram of a kind of card-reading apparatus of the application, adapter and contact card;
Fig. 3 is a kind of flow example being received data by common I/O port from contact card or card-reading apparatus of the application;
Fig. 4 is a kind of flow example being sent data by common I/O port to contact card or card-reading apparatus of the application;
Fig. 5 is the flow chart of a kind of handling process example 1 that powers on of the application;
Fig. 6 is the flow chart of a kind of handling process example 2 that powers on of the application;
Fig. 7 is the process chart signal of a kind of interactive instruction data of the application;
Fig. 8 is the structure chart of the data transmission system between a kind of contact card of the application and card-reading apparatus;
Fig. 9 is the structure chart of a kind of adapter embodiment of the application.
Embodiment
For enabling above-mentioned purpose, the feature and advantage of the application more become apparent, below in conjunction with the drawings and specific embodiments, the application is described in further detail.
Present inventor finds under study for action, and the device of external interrupt can spend certain cost, if omit the device of this external interrupt, then can save certain cost.But, when common I/O port does not have spendable external interrupt, when be difficult to know has data to arrive, and, common I/O port needs to reach real-time data receiver effect, must can meet the timing requirements specified in 7816 host-host protocols, ensure the accuracy of sequential, to realize the synchronous of transfer of data.
So, the technical problem that the application will solve is converted into, and only supports 1 cover standard 7816 interface and 1 common I/O port at the hardware device of adapter, and when this common I/O port does not have a spendable external interrupt, ensure the accuracy of sequential, to realize the synchronous of transfer of data.
The core idea of the embodiment of the present application is:
1, according to the state in instruction processing pipeline determine current whether should the data of receives both cards or card-reading apparatus;
Because need the state receiving data mainly to comprise in instruction processing pipeline: send command header and terminate, or wait-receiving mode order data, or wait-receiving mode return data, or wait-receiving mode TIMEOUT (byte), or wait-receiving mode return code (two bytes) etc., therefore, determining currently whether should receive data according to the state in instruction processing pipeline, is the mode that a kind of effective judgement data arrive.
2, data are received according to the timing requirements specified in 7816 host-host protocols.
Such as, for the regulation of character frame in 7816 host-host protocols, before character transmission, I/O interface end should be set to state Z.A character should comprise 10 continuous print moment, and each moment is not be exactly at state A at state Z.
---first moment m1 is placed in state A, and this moment is called initial time.
---these eight moment of m2 ~ m9 transmit 1 byte.
---last moment, m10 guaranteed character parity, and it transmits " parity check bit ".
In each character, if state changes at the end of moment mn, delay then from character rising edge to mn trailing edge should be tn=(n ± 0.2) etu, wherein, n represents the moment, 1≤n≤10, etu represents a primitive (elementary time unit).
The start time of transmit leg be the rising edge of character when a searching character, debit is termly to I/O sampling, and sample time should be less than 0.2etu.
The start time of recipient is in the middle of last point of observation of Z condition and first point of observation of A condition, recipient should confirm m1 before 0.7etu (recipient's time), then m2 should be received at (1.5 ± 0.2) etu, m3 is received in (2.5 ± 0.2), m9 is received in (8.5 ± 0.2), receive m10 in (9.5 ± 0.2), character parity is carried out when not working.
Like this, when as recipient, according to the timing requirements specified in 7816 host-host protocols, the data of each of character can be obtained based on sampling.Due to the timing requirements specified in 7816 host-host protocols can be met, so the accuracy of sequential can be ensured, thus realize the synchronous of transfer of data.
In like manner, when as recipient, also according to the timing requirements specified in 7816 host-host protocols, the data of each of character can be sent continuously, now, also can realize the synchronous of transfer of data.
With reference to Fig. 1, show the flow chart of the data transmission method embodiment between a kind of contact card of the application and card-reading apparatus, it is applied to the adapter connecting contact card and card-reading apparatus, this adapter specifically can comprise standard 7816 interface and common I/O port, described data transmission method may further include and receives data 101 by common I/O port from contact card or card-reading apparatus, or, data 102 are sent to contact card or card-reading apparatus by common I/O port, wherein, describedly receive data 11 by common I/O port from contact card or card-reading apparatus and specifically can comprise:
Step 111, determine currently whether data should be received according to the state in instruction processing pipeline;
Step 112, determine current should receive data time, according to the timing requirements specified in 7816 host-host protocols, receive data by described common I/O port;
Describedly send data 12 by common I/O port to contact card or card-reading apparatus and specifically can comprise:
The timing requirements specified in step 121, foundation 7816 host-host protocols, sends data by described common I/O port.
The embodiment of the present application can be applied to the microprocessor card of various contact, specifically can comprise GSM (global system for mobile communications, Global System of Mobile communication) SIM (user identification module in system, Subscriber Identity Module) card, CDMA (code division multiple access, Code Division Multiple Access) UIM (subscriber identification module in system, UserIdentity Module) card, PHS (personal handhold telephone system, Personal Handy-phone System) PIM (PHS user identification module in system, PHS Subscriber Identity Module) block and 3G (G mobile communication, USIM (Global Subscriber identification module 3rd-generation) in system, Universal Subscriber Identity Module) card etc., certainly, the microprocessor card that can meet the contact specified about the fundamental characteristics of card and function in ISO/IEC7816 series standard can be applicable to the application, and therefore not to repeat here.
1 cover standard 7816 interface and 1 common I/O port is only supported at the hardware device of adapter, and when this common I/O port does not have a spendable external interrupt, the application can receive data by common I/O port from contact card or card-reading apparatus, or, data can be sent to contact card or card-reading apparatus by common I/O port, and the accuracy of sequential can be ensured, to realize the synchronous of transfer of data.
With reference to Fig. 2, show the hardware configuration schematic diagram of a kind of card-reading apparatus of the application, adapter and contact card, wherein, described adapter specifically comprises the common IO that standard 7816 interface and need to be modeled as standard 7816IO.Because this common I/O port can not produce external interrupt, consider if adopt this common I/O port can affect entering and waking up of contact card dormancy as the data transmission port of equipment and adapter, as the preferred embodiment of the application, in fig. 2 described standard 7816IO can be connected with described card-reading apparatus, described common I/O port is connected with described contact card, described adapter is all connected with the CLK pin of described card-reading apparatus with the CLK pin of contact card, described adapter is all connected with the RST pin of described card-reading apparatus with the RST pin of contact card.
As can be seen from the signal wiring figure of Fig. 2, the CLK pin of adapter, contact card is all connected with the CLK pin of card-reading apparatus, traffic rate is all as the criterion with external clock frequency, and therefore the common I/O port of adapter will realize and contact card-to-card communication, must meet timing requirements.In practice, power-up initializing can be passed through, adapter chip is set and adopts external clock frequency work, ensure the clock cycle number of times of the timer counter number of counter with this, to receive and dispatch the clock frequency that the clock frequency of character and the etu of communication process adopt be consistent to adapter IO.
Like this, under the hardware configuration of Fig. 2, the emphasis of the embodiment of the present application is just, how by standard 7816 interface to the data that issue of card-reading apparatus be sent on contact card by common I/O port, and/or, the data how to be returned by common I/O port reception contact card; Above-mentioned transmission or reception should ensure the accuracy of sequential, to realize the synchronous of transfer of data.
Below describe the flow process being received data by common I/O port from contact card or card-reading apparatus in detail.
In a preferred embodiment of the present application, state in described foundation instruction processing pipeline determines the current step that whether should receive data, may further include: when there is any one in following state, determine currently should receive data: send command header and terminate, wait-receiving mode return data, wait-receiving mode TIMEOUT, wait-receiving mode return code.
In another preferred embodiment of the present application, the timing requirements specified in described foundation 7816 host-host protocol, is received the step of data, may further include by described common I/O port:
Described common I/O port is set to input state;
When the arrival of a character start bit being detected, start timing;
When counting (r+0.5 ± 0.2) etu, obtain the data of the r position of character based on sampling, wherein, 1≤r≤9, the 1-8 position of character is byte position, and the 9th of character is check digit, and etu represents a primitive.
In another preferred embodiment of the application, the arrival of a character start bit can be detected as follows:
After described common I/O port is set to input state, whether inquiry has low level to arrive, and if so, then determines that a character start bit arrives.
For making those skilled in the art understand the application better, with reference to Fig. 3, showing a kind of flow example being received data by common I/O port from contact card or card-reading apparatus of the application, specifically can comprise:
Step 301, determine current should receive data time, common I/O port is set to input state;
Whether step 302, the level inquiring about common I/O port are low, if so, then perform step 303, otherwise, repeated execution of steps 302;
Step 303, unlatching counter, carry out the data of the 1st sampling to obtain character after first time counting 1.5 etu, after, sample after each counting 1 etu;
The object of step 303 is to meet when counting (n+0.5 ± 0.2) etu, obtaining the data of n-th of this character based on sampling, wherein, and 1≤n≤9.
Step 304, judge whether 9 samplings complete, if so, then perform step 305, otherwise, return and perform step 303;
The parity values of first 8 in step 305, calculating sampling data, obtains corresponding result of calculation;
Step 306, judge that whether this result of calculation is consistent with last position in sampled data, if so, then perform step 307, otherwise, perform step 308;
Step 307, common I/O port is set to output state, and exports high level;
Step 308, immediately common I/O port is set to output state, and output low level continues 1.5etu, perform step 301.
Receive shown in Fig. 3 in the flow example of data, determine current should receive data time, the common I/O port of adapter is set to input state, when inquiring low level, description character start bit arrives, and start timing, the sampling of the 1st of character is carried out when timing 1.5etu, after, single pass is carried out every 1 etu, scan 9 times (8bit+ parity check bit) altogether, described 9 scannings all meet the timing requirements specified in 7816 host-host protocols, therefore can ensure the accuracy of sequential.
Here, the use of illustratively counter:
According to the regulation of T=0 asynchronous half-duplex character transmission agreement in 7816 host-host protocols, an etu is F/D clock cycle, with F/D be 11 that is traffic rate for 9600bps (bit per second, bitsper second) be example, then an etu is 372 clock cycle, and counter be counted as a clock cycle each time, the level of a bit is held time can the deviation of positive and negative 0.2 etu, so place counter counting can be 372 times.Here, transmission factor F and D is that clock rate conversion factor and baud rate Dynamic gene use in circuit I/O respectively, and because it has defined in 7816 host-host protocols, and therefore not to repeat here.
In order to verify the accuracy of character, after scanning completes, also check value comparison should be carried out, if parity check is correct, can think that reception character is successful, if parity check failure, then send rub-out signal (output low level continues 1.5ETU), wait for that this character transmits again.Because specify in 7816 host-host protocols, delay between two continuation character rising edges is at least 12etu, such as, duration (10 ± 0.2) etu of a character adds the retention time, so, the recipient of the rub-out signal transmit leg of character (also i.e.) should at least just start to resend this byte after 2ETU after being checked through this rub-out signal, and therefore, the application output low level can continue 1.5etu.
Below describe the flow process being sent data by common I/O port to contact card or card-reading apparatus in detail.
In a preferred embodiment of the present application, the timing requirements specified in described foundation 7816 host-host protocol, is sent the step of data, specifically can comprise by described common I/O port:
Described common I/O port is set to output state;
Send character start bit;
When described start bit is sent completely, start timing;
When counting (s ± 0.2) etu, send the data of the s position of this character, wherein, 1≤s≤9, the 1-8 position of character is byte position, and the 9th of character is check digit.
In another preferred embodiment of the present application, the step of described transmission character start bit can be, sends character start bit by output low level.
For making those skilled in the art understand the application better, with reference to Fig. 4, showing a kind of flow example being sent data by common I/O port to contact card or card-reading apparatus of the application, specifically can comprise:
Step 401, common I/O port is set to output state, and sends character start bit by output low level;
Step 402, startup counter start counting;
Whether step 403, query counts device have counted 0.9 etu, if so, then perform step 404;
Step 404, for a byte that will send, from low to high export a position;
Step 405, startup counter start counting;
Whether step 406, query counts device have counted 0.9 etu, if so, then perform step 407;
Step 407, judge whether a byte is sent completely, and if so, then returns step 404, otherwise, perform step 408;
Step 408, calculating even parity bit, and export common I/O port to, start counter, counting 0.9etu;
Step 409, draw high common I/O port;
Step 410, to arrange common I/O port be input state, and whether inquiry has low level to arrive (in the 11st etu), if so, then performs step 411, otherwise, perform step 412;
Step 411, delay 2 etu, return step 401 and resend this byte;
Step 412, draw high common I/O port.
First, sent in the flow process of data to contact card or card-reading apparatus by common I/O port, the running time due to every bar machine code is a clock cycle, and the level of a bit is held time can the deviation of positive and negative 0.2 etu.Consider the time shared by all machine code operations in program, therefore in the embodiment of the present application, preferably, in a byte, the transmission of adjacent bit is spaced apart 0.9etu, and with now, counter should count 0.9*372=335 time simultaneously.
Secondly, when sending a character data by common I/O port to contact card or card-reading apparatus, first common I/O port is set to output state, output low level (character start bit), counter timing low level is used to hold time 0.9 etu (consider the code time of implementation, and in standard 7816 identification character process of transmitting the error of permission ± 0.2etu) here; Then, use the same method and the parity check bit of 8 of data to be sent bit and bit sent continuously.The transmission of described 9 positions all meets the timing requirements specified in 7816 host-host protocols, therefore can ensure the accuracy of sequential.
Moreover, after the transmission completing a character, IO level is needed to draw high, set input state, checks after 1etu on line, whether level is dragged down (continue for 0.5-1.5 ETU), if, then prove that recipient receives wrong, need from receive rub-out signal trailing edge start timing 2 etu, then output low level (character start bit), resends this character.
For enabling contact card accurately be identified by card-reading apparatus, adapter should possess the rigorous handling process that powers on, and can provide the technical scheme of two kinds of handling processes that power in this application:
Scheme one,
The described handling process that powers on specifically can comprise:
When this adapter powers on, send repositioning information to described card-reading apparatus, described repositioning information specifically comprises forward repositioning information and reverse repositioning information;
Receive the data from described contact card;
When described repositioning information is forward repositioning information, if the initial byte of described data is direct convention decoding byte, then the data after initial byte in described data is pressed F-rule and receive; If the initial byte of described data is Backward Agreement decoding byte, then the data after initial byte in described data is pressed B-rule and receive;
When described repositioning information is reverse repositioning information, if the initial byte of described data is direct convention decoding byte, then the data after initial byte in described data is pressed B-rule and receive; If the initial byte of described data is Backward Agreement decoding byte, then the data after initial byte in described data is pressed F-rule and receive.
During reset answer, the delay between the rising edge of two continuation characters that contact card sends should be no more than 9600etu, and this maximum is called as " initial latency ".If exceeded this " initial latency ", then contact card sector-meeting has stopped response because blocking.
Response is stopped because blocking for effectively preventing contact card sector-meeting, repositioning information is sent to card-reading apparatus once powering at adapter one by scheme, like this, sends slower contact card for first character joint, can data processing time be reduced, strengthen the compatibility of card.
In specific implementation, the repositioning information of described transmission can be " 3B " or " 3F ", and wherein, " 3B " represents direct convention, and " 3F " represents Backward Agreement.Like this, when the repositioning information sent is " 3B ", if contact card is the card of Backward Agreement, then adapter Data processing afterwards, all needs that the reverse data received is converted into forward data and issues interconnecting device again; In like manner, when the repositioning information sent is " 3F ", if contact card is the card of direct convention, then adapter Data processing afterwards, all needs that the forward data received is converted into reverse data and issues interconnecting device again.
With reference to Fig. 5, show the flow chart of a kind of handling process example 1 that powers on of the application, specifically can comprise:
Step 501, after adapter powers on, directly to interconnecting device send " 3B ";
The data that step 502, inquiry IO arrive;
Here IO follows consistent with the IO that contact card connects, and can be common I/O port, also can be standard 7816 interface.
Step 503, judge that these data are " 3B " or " 3F ", if " 3B ", then perform step 504, if " 3F ", then perform step 505;
Step 504, by contact card send data all receive by F-rule;
Step 505, by contact card send data all receive by B-rule.
Scheme two,
Scheme one can strengthen the compatibility of card, and when the repositioning information sent is consistent with the direction of contact card, can also reduce data processing time; But when the direction of the repositioning information and the contact card that send is inconsistent, the easily complexity of increase data processing.For this reason, present invention also provides the scheme two of the handling process that powers on, specifically can comprise:
When this adapter powers on, wait for the data from described contact card;
Receive the initial byte from described contact card, and send to described interconnecting device;
Scheme two directly receives the data that contact card sends, then card-reading apparatus is issued, forward or Backward Agreement need not be judged like this, decrease data processing time and complexity, but impact may be had on compatibility for the slower card of transmission first character joint that powers on.
With reference to Fig. 6, show the flow chart of a kind of handling process example 2 that powers on of the application, specifically can comprise:
Namely start after step 601, adapter power on to wait for I/O data;
Here IO follows consistent with the IO that contact card connects, and can be common I/O port, also can be standard 7816 interface.
The data (" 3B " or " 3F ") that step 602, inquiry IO arrive;
Step 603, first (" 3B " or " 3F ") is sent to card-reading apparatus;
Step 604, immediately switching receive the follow-up data of contact card.
In a word, those skilled in the art can according to the actual requirements, and employing scheme one or scheme two carry out upper electric treatment, and the application is not limited this.
For strengthening adapter end to the protection receiving data integrity, in a preferred embodiment of the present application, described data transmission method can also comprise the handling process of interactive instruction data, and the handling process of described interactive instruction data specifically can comprise:
The byte data from a side in described contact card and card-reading apparatus is received by common I/O port; Here, if common I/O port is connected with contact card, then data receiver is contact card, if common I/O port is connected with card-reading apparatus, then transmit leg is card-reading apparatus.
If this byte data is latency request, then this byte data is sent to the opposing party in described contact card and card-reading apparatus by standard 7816 interface, and common I/O port is transferred to the reception that input state prepares data;
If this byte data is not latency request, then according to the length requirement specified in 7816 host-host protocols, the entirety of being carried out corresponding length data by described common I/O port is received, and is sent to the opposing party in described contact card and card-reading apparatus by standard 7816 interface after finishing receiving.
To receive the response data from contact card, when adapter receives the response data of contact card transmission, first latency request (whether byte data is 0x60) will be determined whether, if, then immediately this byte is sent to card-reading apparatus by standard 7816 interface, and transfers common I/O port the pending datas such as to accepting state continuation fast; If not latency request, then the entirety that the length specified according to agreement carries out corresponding length data receives, and is sent to card-reading apparatus again after completing by standard 7816 interface.Under the pattern received due to above-mentioned all data can make the common I/O port of adapter be in the treatment state of receiving mode always, just send the mode of a byte relative to reception byte, more can ensure integrality and the reliability of data.
With reference to Fig. 7, show the process chart signal of a kind of interactive instruction data of the application, specifically can comprise:
The first byte CLA in the order header that step 701, reception card-reading apparatus send;
Providing as follows about order header in ISO/IEC7816 series standard:
Card-reading apparatus transmits a header by five successive bytes, and these five bytes are appointed as CLA, INS, P1, P2, P3.
---CLA is classes of instructions, value ' FF ' be PTS retain.
---INS is the instruction code in classes of instructions.Instruction code only have when the highest effective half-word joint be not ' 6 ' and ' 9 ' time just effectively.
---P1, P2 are reference symbols (such as address) completing instruction code.
---P3 encodes to the number n of the data byte be transmitted between order period (D1...Dn).In the transmission command exporting data, P3=0 represents the data from card transmission 256 bytes.In the transmission command of input data, P3=0 represents countless according to input.
Like this, after 5 byte header transmission, card-reading apparatus waits for a process byte.
Step 702, start to receive from the data except the first byte of card-reading apparatus;
If the data of step 703 card-reading apparatus arrive, then receive residue 4 byte data except CLA: INS, P1, P2, P3;
Step 704, adapter send order header to contact card;
The byte data that step 705, wait contact card return;
Step 706, judge whether this byte data is 0x60, if so, then perform step 707, otherwise, perform step 708;
Step 707, to card-reading apparatus send 0x60;
Step 708, judge whether this byte data is INS, if so, then perform step 709, otherwise, perform step 710;
Step 709, INS is returned to card-reading apparatus, and perform step 711;
Step 710, receive a byte data again, return to card-reading apparatus above together with the byte received;
(which side carrys out digital proof which side data to the data of step 711, wait-receiving mode card-reading apparatus or contact card, receive by P3), the data receiving card-reading apparatus then issue contact card, and the data receiving contact card then send to card-reading apparatus, and return step 701.
Corresponding to aforementioned data transmission method, disclosed herein as well is the data transmission system between a kind of contact card and card-reading apparatus, be applied to the adapter connecting contact card and card-reading apparatus, this adapter comprises standard 7816 interface and common I/O port, with reference to the structure chart shown in Fig. 8, described data transmission system specifically can comprise the data sink 801 for being received data from contact card or card-reading apparatus by common I/O port, or, for being sent the data sending device 802 of data to contact card or card-reading apparatus by common I/O port, wherein, described data sink 801 specifically can comprise:
Receiving determination module 811, currently whether should receive data for determining according to the state in instruction processing pipeline; And
Data reception module 812, for determine current should receive data time, according to the timing requirements specified in 7816 host-host protocols, receive data by described common I/O port;
Described data sending device 802 may further include:
Data transmission blocks 821, for according to the timing requirements specified in 7816 host-host protocols, sends data by described common I/O port.
In a preferred embodiment of the present application, described data reception module 812 may further include:
Input state arranges submodule, for described common I/O port is set to input state;
First timing submodule, for when the arrival of character start bit being detected, starts timing;
Sampling submodule, for when counting (r+0.5 ± 0.2) etu, obtain the data of the r position of character based on sampling, wherein, 1≤r≤9, etu represents a primitive.
In the embodiment of the present application, preferably, described data sink 801 can also comprise: first detection module, for detecting the arrival of character start bit:
Described first detection module, comprising:
Inquiry submodule, for after described common I/O port is set to input state, whether inquiry has low level to arrive, and if so, then determines that character start bit arrives.
In the embodiment of the present application example, preferably, described reception determination module 811, can specifically for when there is any one in following state, determine currently should receive data: send command header and terminate, wait-receiving mode order data, wait-receiving mode return data, wait-receiving mode TIMEOUT, wait-receiving mode return code.
In another preferred embodiment of the present application, described data transmission blocks 802 may further include:
Output state arranges submodule, for described common I/O port is set to output state;
Start bit sends submodule, for sending character start bit;
Second timing submodule, for when described start bit is sent completely, starts timing; And
Follow-up transmission submodule, for when counting (s ± 0.2) etu, sends the data of the s position of this character, wherein, and 1≤s≤9.
In the embodiment of the present application, preferably, described start bit sends submodule, can specifically for sending character start bit by output low level.
In another preferred embodiment of the application, described data transmission system can also comprise electrifying processing device, and described electrifying processing device specifically can comprise:
Repositioning information sending module, for when this adapter powers on, send repositioning information to described card-reading apparatus, described repositioning information specifically comprises forward repositioning information and reverse repositioning information;
Card data receiver module, for receiving the data from described contact card;
Data after initial byte in described data, for when described repositioning information is forward repositioning information, if the initial byte of described data is direct convention decoding byte, is then pressed F-rule and are received by forward reset processing module; If the initial byte of described data is Backward Agreement decoding byte, then the data after initial byte in described data is pressed B-rule and receive; And
Data after initial byte in described data, for when described repositioning information is reverse repositioning information, if the initial byte of described data is direct convention decoding byte, is then pressed B-rule and are received by reverse reset processing module; If the initial byte of described data is Backward Agreement decoding byte, then the data after initial byte in described data is pressed F-rule and receive.
In a preferred embodiment of the present application, described data transmission system can also comprise electrifying processing device, and described electrifying processing device may further include:
Wait for module, for when this adapter powers on, wait for the data from described contact card;
Card initial byte receiver module, for receiving the initial byte from described contact card;
Initial byte sending module, for sending to described interconnecting device by described initial byte; And
Subsequent data reception module, for receiving the follow-up data from described contact card.
In a preferred embodiment of the present application, described data transmission system can also comprise the processing unit of interactive instruction data, and the processing unit of described interactive instruction data may further include:
Byte data receiver module, for receiving the byte data from a side in described contact card and card-reading apparatus by common I/O port;
Delay process module, for when this byte data is latency request, is sent to the opposing party in described contact card and card-reading apparatus by standard 7816 interface by this byte data, and common I/O port is transferred to the reception that input state prepares data; And
Non-delayed processing module, for when this byte data is not latency request, according to the length requirement specified in 7816 host-host protocols, the entirety of being carried out corresponding length data by described common I/O port is received, and is sent to the opposing party in described contact card and card-reading apparatus by standard 7816 interface after finishing receiving.
For system embodiment, due to itself and embodiment of the method basic simlarity, so description is fairly simple, relevant part illustrates see the part of embodiment of the method.
With reference to Fig. 9, show the structure chart of a kind of adapter embodiment of the application, it is connected between contact card and card-reading apparatus, specifically can comprise standard 7816 interface 901, common I/O port 902 and the data transmission system 903 between aforesaid contact card and card-reading apparatus.
Because this common I/O port can not produce external interrupt, consider if adopt this common I/O port can affect entering and waking up of contact card dormancy as the data transmission port between equipment and adapter, therefore in a preferred embodiment of the present application, described standard 7816 interface is connected with described card-reading apparatus, described common I/O port is connected with described contact card, and described adapter is all connected with the CLK pin of described card-reading apparatus with the CLK pin of contact card.
Be appreciated that can also arrange other structures such as counter in adapter, the application's other concrete structure to adapter is not limited when performing the data transmission method flow process between contact card and card-reading apparatus.
Each embodiment in this specification all adopts the mode of going forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, between each embodiment identical similar part mutually see.
Data transmission method, system and a kind of adapter between a kind of contact card above the application provided and card-reading apparatus, be described in detail, apply specific case herein to set forth the principle of the application and execution mode, the explanation of above embodiment is just for helping data transmission method and the core concept thereof of understanding the application; Meanwhile, for one of ordinary skill in the art, according to the thought of the application, all will change in specific embodiments and applications, in sum, this description should not be construed as the restriction to the application.

Claims (12)

1. the data transmission method between a contact card and card-reading apparatus, it is characterized in that, comprise the adapter being applied to and connecting contact card and card-reading apparatus, this adapter comprises standard 7816 interface and common I/O port, described common I/O port does not have spendable external interrupt, described data transmission method comprises by common I/O port from contact card or card-reading apparatus reception data, or, send data by common I/O port to contact card or card-reading apparatus, describedly receive data by common I/O port from contact card or card-reading apparatus and comprise:
Determine currently whether data should be received according to the state in instruction processing pipeline;
Determine current should receive data time, according to the timing requirements specified in 7816 host-host protocols, receive data by described common I/O port;
Describedly send data by common I/O port to contact card or card-reading apparatus and comprise:
According to the timing requirements specified in 7816 host-host protocols, send data by described common I/O port;
Wherein, the timing requirements specified in described foundation 7816 host-host protocol, is received the step of data, comprising by described common I/O port:
Described common I/O port is set to input state;
When the arrival of character start bit being detected, start timing;
When counting (r+0.5 ± 0.2) etu, obtain the data of the r position of character based on sampling, wherein, 1≤r≤9, etu represents a primitive;
The timing requirements specified in described foundation 7816 host-host protocol, is sent the step of data, comprising by described common I/O port:
Described common I/O port is set to output state;
Send character start bit;
When described start bit is sent completely, start timing;
When counting (s ± 0.2) etu, send the data of the s position of this character, wherein, 1≤s≤9.
2. data transmission method as claimed in claim 1, is characterized in that, the state in described foundation instruction processing pipeline determines the current step that whether should receive data, comprising:
When there is any one in following state, determine currently should receive data: send command header and terminate, wait-receiving mode return data, wait-receiving mode order data, wait-receiving mode TIMEOUT, wait-receiving mode return code.
3. data transmission method as claimed in claim 1, it is characterized in that, described data transmission method also comprises the handling process that powers on, described in the handling process that powers on comprise:
When this adapter powers on, send repositioning information to described card-reading apparatus, described repositioning information specifically comprises forward repositioning information and reverse repositioning information;
Receive the data from described contact card;
When described repositioning information is forward repositioning information, if the initial byte of described data is direct convention decoding byte, then the data after initial byte in described data is pressed F-rule and receive; If the initial byte of described data is Backward Agreement decoding byte, then the data after initial byte in described data is pressed B-rule and receive;
When described repositioning information is reverse repositioning information, if the initial byte of described data is direct convention decoding byte, then the data after initial byte in described data is pressed B-rule and receive; If the initial byte of described data is Backward Agreement decoding byte, then the data after initial byte in described data is pressed F-rule and receive.
4. data transmission method as claimed in claim 1, it is characterized in that, described data transmission method also comprises the handling process that powers on, described in the handling process that powers on comprise:
When this adapter powers on, wait for the data from described contact card;
Receive the initial byte from described contact card, and send to card-reading apparatus;
Receive the follow-up data from described contact card.
5. data transmission method as claimed in claim 1, it is characterized in that, described data transmission method also comprises the handling process of interactive instruction data, and the handling process of described interactive instruction data comprises:
The byte data from a side in described contact card and card-reading apparatus is received by common I/O port;
If this byte data is latency request, then this byte data is sent to the opposing party in described contact card and card-reading apparatus by standard 7816 interface, and common I/O port is transferred to the reception that input state prepares data;
If this byte data is not latency request, then according to the length requirement specified in 7816 host-host protocols, the entirety of being carried out corresponding length data by described common I/O port is received, and is sent to the opposing party in described contact card and card-reading apparatus by standard 7816 interface after finishing receiving.
6. the data transmission system between a contact card and card-reading apparatus, it is characterized in that, be applied to the adapter connecting contact card and card-reading apparatus, this adapter comprises standard 7816 interface and common I/O port, described common I/O port does not have spendable external interrupt, described data transmission system comprises the data sink for being received data from contact card or card-reading apparatus by common I/O port, or, for being sent the data sending device of data to contact card or card-reading apparatus by common I/O port, described data sink comprises:
Receiving determination module, currently whether should receive data for determining according to the state in instruction processing pipeline; And
Data reception module, for determine current should receive data time, according to the timing requirements specified in 7816 host-host protocols, receive data by described common I/O port;
Described data sending device comprises:
Data transmission blocks, for according to the timing requirements specified in 7816 host-host protocols, sends data by described common I/O port;
Wherein, described data reception module comprises:
Input state arranges submodule, for described common I/O port is set to input state;
First timing submodule, for when the arrival of character start bit being detected, starts timing;
Sampling submodule, for when counting (r+0.5 ± 0.2) etu, obtains the data of the r position of character based on sampling, wherein, 1≤r≤9, etu represents a primitive;
Described data transmission blocks comprises:
Output state arranges submodule, for described common I/O port is set to output state;
Start bit sends submodule, for sending character start bit;
Second timing submodule, for when described start bit is sent completely, starts timing; And
Follow-up transmission submodule, for when counting (s ± 0.2) etu, sends the data of the s position of this character, wherein, and 1≤s≤9.
7. data transmission system as claimed in claim 6, it is characterized in that, described reception determination module, specifically for when there is any one in following state, determine currently should receive data: send command header and terminate, wait-receiving mode order data, wait-receiving mode return data, wait-receiving mode TIMEOUT, wait-receiving mode return code.
8. data transmission system as claimed in claim 6, it is characterized in that, described data transmission system also comprises electrifying processing device, and described electrifying processing device comprises:
Repositioning information sending module, for when this adapter powers on, send repositioning information to described card-reading apparatus, described repositioning information specifically comprises forward repositioning information and reverse repositioning information;
Card data receiver module, for receiving the data from described contact card;
Data after initial byte in described data, for when described repositioning information is forward repositioning information, if the initial byte of described data is direct convention decoding byte, is then pressed F-rule and are received by forward reset processing module; If the initial byte of described data is Backward Agreement decoding byte, then the data after initial byte in described data is pressed B-rule and receive; And
Data after initial byte in described data, for when described repositioning information is reverse repositioning information, if the initial byte of described data is direct convention decoding byte, is then pressed B-rule and are received by reverse reset processing module; If the initial byte of described data is Backward Agreement decoding byte, then the data after initial byte in described data is pressed F-rule and receive.
9. data transmission system as claimed in claim 6, it is characterized in that, described data transmission system also comprises electrifying processing device, and described electrifying processing device comprises:
Wait for module, for when this adapter powers on, wait for the data from described contact card;
Card initial byte receiver module, for receiving the initial byte from described contact card;
Initial byte sending module, for sending to card-reading apparatus by described initial byte; And
Subsequent data reception module, for receiving the follow-up data from described contact card.
10. data transmission system as claimed in claim 6, it is characterized in that, described data transmission system also comprises the processing unit of interactive instruction data, and the processing unit of described interactive instruction data comprises:
Byte data receiver module, for receiving the byte data from a side in described contact card and card-reading apparatus by common I/O port;
Delay process module, for when this byte data is latency request, is sent to the opposing party in described contact card and card-reading apparatus by standard 7816 interface by this byte data, and common I/O port is transferred to the reception that input state prepares data;
Non-delayed processing module, for when this byte data is not latency request, according to the length requirement specified in 7816 host-host protocols, the entirety of being carried out corresponding length data by described common I/O port is received, and is sent to the opposing party in described contact card and card-reading apparatus by standard 7816 interface after finishing receiving.
11. 1 kinds of adapters, are connected between contact card and card-reading apparatus, it is characterized in that, comprise standard 7816 interface, common I/O port and the contact card according to any one of aforementioned claim 6 to 10 and the data transmission system between card-reading apparatus.
12. adapters as claimed in claim 11, it is characterized in that, described standard 7816 interface is connected with described card-reading apparatus, and described common I/O port is connected with described contact card, and described adapter is all connected with the CLK pin of described card-reading apparatus with the CLK pin of contact card.
CN201110448413.2A 2011-12-28 2011-12-28 Method, system and adapter card for data transmission between contact card and card reading device Active CN102546107B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110448413.2A CN102546107B (en) 2011-12-28 2011-12-28 Method, system and adapter card for data transmission between contact card and card reading device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110448413.2A CN102546107B (en) 2011-12-28 2011-12-28 Method, system and adapter card for data transmission between contact card and card reading device

Publications (2)

Publication Number Publication Date
CN102546107A CN102546107A (en) 2012-07-04
CN102546107B true CN102546107B (en) 2015-04-22

Family

ID=46352134

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110448413.2A Active CN102546107B (en) 2011-12-28 2011-12-28 Method, system and adapter card for data transmission between contact card and card reading device

Country Status (1)

Country Link
CN (1) CN102546107B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102930306B (en) * 2012-11-01 2016-07-06 北京华大信安科技有限公司 Identify the method for IC-card logic appointment, terminal and system
CN103093169B (en) * 2012-12-28 2016-06-01 北京握奇数据系统有限公司 A kind of Intelligent card switching device and method
CN104393993B (en) * 2014-10-24 2018-05-29 国家电网公司 A kind of safety chip and its implementation for electricity-selling terminal
CN105701057A (en) * 2016-01-14 2016-06-22 北京握奇数据系统有限公司 Communication rate matching method and system for 7816 interface and UART interface
CN109683512B (en) * 2018-12-07 2022-04-12 四川航天烽火伺服控制技术有限公司 Adapter card applied to rudder system
CN109726604B (en) * 2018-12-27 2022-04-15 艾体威尔电子技术(北京)有限公司 Data exchange communication method between contact card and terminal
CN113286357B (en) * 2021-04-07 2022-11-25 东信和平科技股份有限公司 Communication method and device between intelligent cards and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101588643A (en) * 2008-05-19 2009-11-25 上海锦诺信息科技有限公司 A kind of card with mobile phone application software development platform
CN101739582A (en) * 2008-11-13 2010-06-16 上海复旦微电子股份有限公司 Multi-interface data memory card

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6776339B2 (en) * 2002-09-27 2004-08-17 Nokia Corporation Wireless communication device providing a contactless interface for a smart card reader

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101588643A (en) * 2008-05-19 2009-11-25 上海锦诺信息科技有限公司 A kind of card with mobile phone application software development platform
CN101739582A (en) * 2008-11-13 2010-06-16 上海复旦微电子股份有限公司 Multi-interface data memory card

Also Published As

Publication number Publication date
CN102546107A (en) 2012-07-04

Similar Documents

Publication Publication Date Title
CN102546107B (en) Method, system and adapter card for data transmission between contact card and card reading device
CN101441724B (en) IC card, information processing device, communication type identification device and method, and computer program product
CN100573563C (en) A kind of contactless IC card universal encoding-decoding and read-write equipment and method
CN101730295B (en) Coordination processing method for application collision of radio frequency SIM card interface
CN101221550A (en) Method and chip for serial communication
CN107291647A (en) The method that DSP reads receiving channel data in extended serial port
CN100468440C (en) Method and device for information interaction between host and smart card
CN105527633A (en) USB-based portable Beidou/GPS navigation time service device and method
WO2010083679A1 (en) Method for communication and negotiation between a mobile terminal and a smart card and mobile terminal thereof
CN101561894B (en) Smart card and method for determining communication speed of second controller
US20080075102A1 (en) Interface
CN109726604B (en) Data exchange communication method between contact card and terminal
CN100414556C (en) Method and apparatus for host machine and smart card to conduct information interaction
CN101354752B (en) Method and system for transporting information of smart card module
MY184196A (en) Smart chip and method for smart chip data communications
CN102201829B (en) Circuit structure and method for realizing data parsing of SIM/USIM ((Subscriber Identity Module/Universal Subscriber Identity Module) card in digital baseband communication chip
CN102931988B (en) Complex programmable logic device (CPLD) programme based test system of analog-to-digital (AD) converter
CN104853356A (en) NFC (Near Field Communication) system intelligent recognition method
CN100356359C (en) Connector between processor and user recognition card
CN102005115A (en) Infrared meter reading method
CN103679257B (en) A kind of contactless payment telecommunications integrated circuit card and implementation method
CN102122362B (en) Method for improving communication rate of contact-type intelligent card
Jiang et al. Design of Digital Baseband Communication Link for ISO18000-6C RFID Reader Based on Zynq-7000 All Programmable SoCs
CN104917736A (en) Session establishing method, terminal and system
CN104202064A (en) Data transmission module and method based on GPRS network

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
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 100015 Beijing city Chaoyang District Dongzhimen West eight Street No. 2 room Wanhong Yan Dong Business Garden

Patentee after: Beijing Watchdata Limited by Share Ltd

Address before: 100015 Beijing city Chaoyang District Dongzhimen West eight Street No. 2 room Wanhong Yan Dong Business Garden

Patentee before: Beijing Woqi Data System Co., Ltd.