CN103281219A - Method and device for listening into ISOIEC7816-3 interface data interaction - Google Patents

Method and device for listening into ISOIEC7816-3 interface data interaction Download PDF

Info

Publication number
CN103281219A
CN103281219A CN2013102180076A CN201310218007A CN103281219A CN 103281219 A CN103281219 A CN 103281219A CN 2013102180076 A CN2013102180076 A CN 2013102180076A CN 201310218007 A CN201310218007 A CN 201310218007A CN 103281219 A CN103281219 A CN 103281219A
Authority
CN
China
Prior art keywords
data
data acquisition
interface
interfaces
transfer
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.)
Granted
Application number
CN2013102180076A
Other languages
Chinese (zh)
Other versions
CN103281219B (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.)
Eastcompeace Technology Co Ltd
Tianyi Electronic Commerce Co Ltd
Original Assignee
Eastcompeace Technology Co Ltd
Tianyi Electronic Commerce 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 Eastcompeace Technology Co Ltd, Tianyi Electronic Commerce Co Ltd filed Critical Eastcompeace Technology Co Ltd
Priority to CN201310218007.6A priority Critical patent/CN103281219B/en
Publication of CN103281219A publication Critical patent/CN103281219A/en
Priority to EP14170824.8A priority patent/EP2811308A1/en
Application granted granted Critical
Publication of CN103281219B publication Critical patent/CN103281219B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Systems (AREA)

Abstract

The invention provides a method and device for listening into ISOIEC7816-3 interface data interaction. The method includes the steps that a data collection request is judged whether to be received or not, a first judgment result is obtained, and the data collection request corresponds to an interface with signal changes and is used for requesting a processor to carry out data collection on the interface with the signal changes; when the first judgment result shows that the data collection request is received, the interface on which the data collection is carried out is determined through the data collection request so that a data collection module can collect data from the interface; the collected data are stored; the stored data are transmitted to a terminal device for follow-up processing. The method and device can listen into signal changes of all 7816-3 interfaces and collect the data from the interface with the signal changes. Compared with the prior art, the method and device are more complete and comprehensive in collected data, can reflect the state of the interface more really and are favorable for analyzing and processing of follow-up data.

Description

A kind of mutual method of ISOIEC7816-3 interface data and device monitored
Technical field
The present invention relates to communication technical field, relate in particular to a kind of ISOIEC7816-3 of monitoring interface data mutual method and device.
Background technology
Along with the arrival in Internet of Things epoch, the application scenarios of Universal Integrated Circuit Card (UICC, Universal Integrated Circuit Card) is more and more, become increasingly complex, and singly not the mobile phone application, also have mobile payment, fields such as financial IC card.The UICC card is a kind of removable smart card, it is used for information such as storing subscriber information, KI, telephone directory, short message, and the user only need take out the UICC card and be inserted into another terminal from a terminal and just can easily user's CAMEL-Subscription-Information be transferred to another terminal from a terminal.UICC is the general name that has defined the smart card of physical characteristic, and the interface of UICC and terminal all is standard.SIM card is a kind of application of UICC card.
Be example with SIM card and portable terminal, in order to guarantee that SIM card and portable terminal can carry out normal data interaction, need the data interaction between SIM card and the portable terminal is monitored, SIM card and portable terminal carry out data interaction by the ISOIEC7816-3 interface usually.In the prior art, monitor SIM card and and portable terminal between in the process of data interaction, when the level of 7816_CLK interface and 7816_IO interface changes, processor carries out 3 samplings by its inner timer to 7816_CLK interface and the 7816_IO interface that level changes, if there are 2 sampled level to change, then think to be a state, the data of gathering are deposited in the external memory storage, be sent to terminal equipment when treating the free time and analyze and handle.
The inventor finds in the process that realizes the invention: the mutual method of monitoring ISOIEC7816-3 interface data of the prior art can only listen to the variation of 7816_CLK interface and 7816_IO interface level, correspondingly, can only collect the data of 7816_CLK interface and 7816_IO interface, the imperfection of image data has had a strong impact on follow-up analysis to data and processing.
Summary of the invention
In view of this, the invention provides a kind of ISOIEC7816-3 of monitoring interface data mutual method and device, monitor the data that the mutual method of ISOIEC7816-3 interface data can only collect 7816_CLK interface and 7816_IO interface in the prior art in order to solve, the imperfection of the data of gathering, had a strong impact on the problem of follow-up analysis and processing to data, its technical scheme is as follows:
On the one hand, a kind of mutual method of ISOIEC7816-3 interface data of monitoring is applied to processor, and described method comprises:
Judge whether to receive the data acquisition request, obtain first judged result, described data acquisition request is corresponding with 7816 interfaces that signal changes, and is used for the described processor of request 7816 interfaces that described signal changes are carried out data acquisition;
When described first judged result shows when receiving described data acquisition request, determine 7816 interfaces that need carry out data acquisition by described data acquisition request, so that the 7816 interface image data of data acquisition module from determining;
Store the data that described data acquisition module is gathered from 7816 interfaces of determining;
With the storage transfer of data to terminal equipment, so that terminal equipment is handled described data.
Wherein, described data acquisition request is for when the level of 7816 interfaces changes, and the universal input/output interface GPIO by described processor is to the interrupt requests of described processor transmission;
Judge whether to receive the data acquisition solicited message, the process that obtains first judged result comprises: judge whether to receive the interrupt requests from the GPIO of described processor, obtain first judged result;
When described first judged result shows when receiving described data acquisition request, the process of determining to carry out 7816 interfaces of data acquisition by described data acquisition request comprises: when described first judged result shows the interrupt requests that receives from the GPIO of described processor, determine 7816 interfaces that need carry out data acquisition by the interrupt requests of described GPIO.
Preferably, described processor inside is provided with the memory space as the transfer of data buffering;
Storing described data acquisition module comprises from the process of the data of the 7816 interface collections determined: the data of described data acquisition module from the 7816 interface collections determined are stored to the inner memory space as the transfer of data buffering that arranges of described processor.
Wherein, when described processor is in idle condition, transfer of data to the process of terminal equipment of storage is comprised:
Whether judge has as yet the not data of transmission, obtain second judged result in the described memory space;
When described second judged result shows the data that not transmission is arranged in the described memory space as yet, with in the described memory space as yet not the transfer of data of transmission to terminal equipment.
With the transfer of data of described storage to the process of terminal equipment, if receive the data acquisition request, then interrupt the transmission of data, respond described data acquisition request, carry out the data acquisition operations, when described data acquisition operation is finished, continue to carry out data transfer operation, with transfer of data that will storage to terminal equipment.
Preferably, the process that the data of storage are sent to terminal equipment comprises: the data of storage are transferred to terminal equipment by USB2.0.
On the other hand, a kind of mutual device of ISOIEC7816-3 interface data of monitoring is applied to processor, and described device comprises:
First judge module, be used for judging whether to receive the data acquisition request, obtain first judged result, wherein, described data acquisition request is corresponding with 7816 interfaces that signal changes, and is used for the described processor of request 7816 interfaces that described signal changes are carried out data acquisition;
The interface determination module is used for showing when receiving described data acquisition request when described first judged result, by definite 7816 interfaces that need carry out data acquisition of described data acquisition request, so that the 7816 interface image data of data acquisition module from determining;
Data memory module is used for the data that the described data acquisition module of storage is gathered from 7816 interfaces of determining;
Data transmission module, the transfer of data that is used for storing is to terminal equipment, so that terminal equipment is handled described data.
Wherein, described data acquisition request is for when the level of 7816 interfaces changes, and the universal input/output interface GPIO by described processor is to the interrupt requests of described processor transmission;
Described first judge module comprises:
First judges submodule, and the interrupt requests for judging whether to receive from the GPIO of described processor obtains first judged result;
Described interface determination module comprises:
Interface is determined submodule, is used for when described first judged result shows the interrupt requests that receives from the GPIO of described processor, by definite 7816 interfaces that need carry out data acquisition of the interrupt requests of described GPIO.
Preferably, described processor inside is provided with the memory space as the transfer of data buffering;
Described data memory module comprises:
The data sub module stored is used for described data acquisition module is stored to the inner memory space as the transfer of data buffering that arranges of described processor from the data of the 7816 interface collections determined.
Preferably, described data transmission module comprises:
Second judges submodule, is used for judging whether described memory space has as yet the not data of transmission, obtains second judged result;
The transfer of data submodule is used for when described second judged result shows that described memory space has as yet not the data of transmission, with the transfer of data do not transmitted as yet in the described memory space to terminal equipment.
Technique scheme has following beneficial effect:
Mutual method and the device of monitoring ISOIEC7816-3 interface data provided by the invention, when the signal of 7816 interfaces changes, processor can receive the data acquisition request, and by definite 7816 interfaces that need carry out data acquisition of data acquisition request, make the 7816 interface image data of data acquisition module from determining, store the data that data acquisition module is gathered from 7816 interfaces of determining then, with the storage transfer of data to terminal equipment, so that terminal equipment is handled data.Mutual method and the device of monitoring ISOIEC7816-3 interface data provided by the invention, can listen to the variation of voltage interface 7816_VCC, clock interface 7816_CLK, reseting interface 7816_RST and the data input/output interface 7816_IO signal of 7816-3, and the interface image data that changes from signal, compared with prior art, the data of gathering by method and apparatus provided by the invention are more complete, more comprehensively, more can truly reflect the state of interface, be conducive to analysis and the processing of follow-up data.In addition, the data of gathering are stored to the inner memory space as the transfer of data buffering that arranges of processor, make the transmission speed of data improve, and, adopt the data of the memory space storage of collected of processor inside, and without external memorizer, reduced cost.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, to do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art below, apparently, accompanying drawing in describing below only is embodiments of the invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to the accompanying drawing that provides.
The schematic flow sheet of the method that the monitoring ISOIEC7816-3 interface data that Fig. 1 provides for the embodiment of the invention one is mutual;
The schematic flow sheet of the method that the monitoring ISOIEC7816-3 interface data that Fig. 2 provides for the embodiment of the invention two is mutual;
The structural representation of the device that the monitoring ISOIEC7816-3 interface data that Fig. 3 provides for the embodiment of the invention three is mutual;
The structural representation of the device that the monitoring ISOIEC7816-3 interface data that Fig. 4 provides for the embodiment of the invention four is mutual.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
Embodiment one
See also Fig. 1, the schematic flow sheet of the method that a kind of ISOIEC7816-3 of the monitoring interface data that provides for the embodiment of the invention one is mutual, this method is applied to processor, and this method can comprise:
Step S101: judge whether to receive the data acquisition request, obtain first judged result.
Wherein, the data acquisition request is corresponding with 7816 interfaces that signal changes, and is used for request processor 7816 interfaces that signal changes are carried out data acquisition.
7816 interfaces in the present embodiment comprise: voltage interface 7816_VCC, clock interface 7816_CLK, reseting interface 7816_RST and data input/output interface 7816_IO.
Step S102: when first judged result shows when receiving the data acquisition request, determine 7816 interfaces that need carry out data acquisition by the data acquisition request, so that the 7816 interface image data of data acquisition module from determining.
Be example with voltage interface 7816_VCC: when the signal of voltage interface 7816_VCC changes, processor can receive the data acquisition request corresponding with voltage interface 7816_VCC, this data acquisition request comprises the interface message of voltage interface 7816_VCC, processor can be determined 7816 interfaces that signal changes by this interface message, and 7816 interfaces that this signal changes are 7816 interfaces that need carry out data acquisition.
Step S103: the data that the storage data acquisition module is gathered from 7816 interfaces of determining.
Step S104: with the storage transfer of data to terminal equipment, so that terminal equipment is handled these data.
The mutual method of monitoring ISOIEC7816-3 interface data that the embodiment of the invention provides, when the signal of 7816 interfaces changes, processor can receive the data acquisition request, and by definite 7816 interfaces that need carry out data acquisition of data acquisition request, make the 7816 interface image data of data acquisition module from determining, store the data that data acquisition module is gathered from 7816 interfaces of determining then, with the storage transfer of data to terminal equipment, so that terminal equipment is handled data.The mutual method of monitoring ISOIEC7816-3 interface data that the embodiment of the invention provides can listen to the variation of voltage interface 7816_VCC, clock interface 7816_CLK, reseting interface 7816_RST and the data input/output interface 7816_IO signal of 7816-3, and the interface image data that changes from signal, compared with prior art, the data that the method that provides by the embodiment of the invention is gathered are more complete, more comprehensively, more can truly reflect the state of interface, be conducive to analysis and the processing of follow-up data.
Embodiment two
See also Fig. 2, the schematic flow sheet of the method that a kind of ISOIEC7816-3 of the monitoring interface data that provides for the embodiment of the invention two is mutual, this method is applied to processor, and this method can comprise:
Step S201: judge whether to receive the interrupt requests of the universal input/output interface (GPIO, General-Purpose Input/Output Ports) of from processor, obtain first judged result.
Wherein, interrupt requests is for when the level of 7816 interfaces changes, and the GPIO by processor is to the interrupt requests of processor transmission.Be example with portable terminal and SIM card, when portable terminal and SIM card generation data interaction, the level of 7816 interfaces can change.
7816 interfaces in the present embodiment comprise: voltage interface 7816_VCC, clock interface 7816_CLK, reseting interface 7816_RST and data input/output interface 7816_IO.
Step S202: when first judged result shows the interrupt requests of the GPIO that receives from processor, by definite 7816 interfaces that need carry out data acquisition of the interrupt requests of GPIO, so that the 7816 interface image data of data acquisition module from determining.
Be example with voltage interface 7816_VCC: when the level of voltage interface 7816_VCC changes, the GPIO mouth of processor has level to be changed, this variation causes that this interface is to the interrupt requests of processor, 7816 interfaces that processor can determine to carry out data acquisition by this interrupt requests are voltage interface 7816_VCC, and namely this interrupt requests can notify which 7816 interface of CPU to have data to arrive.
Step S203: the data that the storage data acquisition module is gathered from 7816 interfaces of determining.
Wherein, the data of data acquisition module from 7816 interface collections can be stored to the external memorizer, as FLASH, SDRAM, SRAM, EEPROM etc.Yet, on the one hand, consider and store data into external memorizer, again with the transfer of data in the external memorizer to terminal equipment, the transmission speed of data is slower, efficiency of transmission is lower, on the other hand, consider that external memorizer can cause cost to increase, the processor inside in the present embodiment is provided as the memory space of transfer of data buffering specially, and processor is stored to the data of data collecting module collected in its inner memory space as the transfer of data buffering that arranges.
In the present embodiment, the storage data acquisition module comprises from the process of the data of the 7816 interface collections determined: the data acquisition module is handled from the data of the 7816 interface collections determined, particularly, the marking head of 7816 interfaces that level changes given the data of gathering by corresponding interrupt function by processor, and definite corresponding check byte, marking head, the data of 7816 interfaces, the check byte of 7816 interfaces are formed Frame, Frame is saved in the memory space of processor inside as the transfer of data buffering.
Table 1 to table 4 is respectively the Frame of input/output interface 7816_IO, reseting interface 7816_RST, voltage interface 7816_VCC and clock interface 7816_CLK.Need to prove that the XX in the table is 7816 interface data.
When the 7816_IO level changes, enter 7816_IO and interrupt handling function, give 7816_IO marking head 0xFB, the highest four BIT7-BIT4 of a next byte by extracting high level or low level sign, minimum four BIT3-BIT0 be the classification of card, and then 2 numbers that byte data is CLK, the CLK number adopts the timer internal of processor to catch and counts to get, and last byte is check byte 0xEA.
Need to prove, except the timer internal by processor calculates the CLK number, also can calculate the CLK number by the state variation that reads GPIO at the external one or more counters of the GPIO of processor.
When 7816_RST changes, enter 7816_RST and interrupt handling function, give 7816_RST marking head 0xFC, the byte BIT7-BIT4 in back reserves, BIT3-BIT0 is identified by grasping high level or low level, and last byte is check byte 0xEA.
When 7816_VCC changes, enter 7816_VCC and interrupt handling function, give 7816_VCC marking head 0xFD, the highest four BIT7-BIT4 of the byte in back reserve, minimum four BIT3-BIT0 are identified by grasping high level or low level, and last byte is check byte 0xEA.
When 7816_CLK changes, and clock sampling sign gCLKSamplingfLag equals at 1 o'clock, enter 7816_CLK and interrupt handling function, give 7816_CLK marking head 0xFE, the highest four BIT7-BIT4 of a next byte are that 7816_CLK starting of oscillation failure of oscillation sign, minimum four BIT3-BIT0 are identified by grasping high level or low level, and last byte is check byte 0xEA.
Table 1
Figure BDA00003298531700081
Figure BDA00003298531700091
Table 2
Figure BDA00003298531700092
Table 3
Figure BDA00003298531700093
Table 4
Figure BDA00003298531700094
Step S204: with the storage transfer of data to terminal equipment, so that terminal equipment is handled these data.
In the present embodiment, when processor is in idle condition, just can carry out the transmission of data, its transfer of data of just storing to the process of terminal equipment comprises: judge in its inner memory space as the transfer of data buffering that arranges whether the not data of transmission are arranged as yet, obtain second judged result; When second judged result shows the data that not transmission is arranged in the memory space as yet, with in the memory space as yet not the transfer of data of transmission to terminal equipment.
Need to prove, the priority of data acquisition is higher than transfer of data, that is, will the storage transfer of data to the process of terminal equipment, if receive the data acquisition request, then interrupt the transmission of data, the data acquisition operations is carried out in response data collection request, after the data acquisition operation is finished, continue to carry out data transfer operation again, with transfer of data that will storage to terminal equipment.
Present embodiment can be by USB2.0 with the transfer of data of storage to terminal equipment, in addition, the equipment of using the method that present embodiment provides can be by the charging of USB2.0 interface, and without external power supply.Need to prove that present embodiment does not limit by USB2.0 transmission data, can also be by USB1.0, USB3.0, serial ports, parallel port, Ethernet interface, CAN bus, 2.4GHZ is wireless carries out transfer of data.
The mutual method of monitoring ISOIEC7816-3 interface data that the embodiment of the invention provides, when the signal of 7816 interfaces changes, processor can receive the data acquisition request, and by definite 7816 interfaces that need carry out data acquisition of data acquisition request, make the 7816 interface image data of data acquisition module from determining, store the data that data acquisition module is gathered from 7816 interfaces of determining then, with the storage transfer of data to terminal equipment, so that terminal equipment is handled data.The mutual method of monitoring ISOIEC7816-3 interface data that the embodiment of the invention provides can listen to the variation of voltage interface 7816_VCC, clock interface 7816_CLK, reseting interface 7816_RST and the data input/output interface 7816_IO signal of 7816-3, and the interface image data that changes from signal, compared with prior art, the data that the method that provides by the embodiment of the invention is gathered are more complete, more comprehensively, more can truly reflect the state of interface, be conducive to analysis and the processing of follow-up data.In addition, the data of gathering are stored to the inner memory space as the transfer of data buffering that arranges of processor, make the transmission speed of data improve, and, adopt the data of the memory space storage of collected of processor inside, and without external memorizer, reduced cost.
Embodiment three
See also Fig. 3, the structural representation of the device that a kind of ISOIEC7816-3 of the monitoring interface data that provides for the embodiment of the invention three is mutual, be applied to processor, this device can comprise: first judge module 101, interface determination module 102, data memory module 103 and data transmission module 104.Wherein:
First judge module 101 is used for judging whether to receive the data acquisition request, obtains first judged result.Wherein, the data acquisition request is corresponding with 7816 interfaces that signal changes, and 7816 interfaces that change for request processor docking port signal carry out data acquisition.
7816 interfaces in the present embodiment comprise: voltage interface 7816_VCC, clock interface 7816_CLK, reseting interface 7816_RST and data input/output interface 7816_IO.
Interface determination module 102 is used for showing when receiving the data acquisition request when first judged result, by definite 7816 interfaces that need carry out data acquisition of data acquisition request, so that the 7816 interface image data of data acquisition module from determining.
Data memory module 103 is used for the data that the storage data acquisition module is gathered from 7816 interfaces of determining.
Data transmission module 104, the transfer of data that is used for storing is to terminal equipment, so that terminal equipment is handled described data.
The mutual device of monitoring ISOIEC7816-3 interface data that the embodiment of the invention provides, when the signal of 7816 interfaces changes, can receive the data acquisition request, and by definite 7816 interfaces that need carry out data acquisition of data acquisition request, make the 7816 interface image data of data acquisition module from determining, store the data that data acquisition module is gathered from 7816 interfaces determined then, with the transfer of data of storage to terminal equipment, so that terminal equipment is handled data.The mutual device of monitoring ISOIEC7816-3 interface data that the embodiment of the invention provides can listen to the variation of voltage interface 7816_VCC, clock interface 7816_CLK, reseting interface 7816_RST and the data input/output interface 7816_IO signal of 7816-3, and the interface image data that changes from signal, compared with prior art, the data that the device that provides by the embodiment of the invention is gathered are more complete, more comprehensively, more can truly reflect the state of interface, be conducive to analysis and the processing of follow-up data.
Embodiment four
See also Fig. 4, the structural representation of the device that a kind of ISOIEC7816-3 of the monitoring interface data that provides for the embodiment of the invention four is mutual, be applied to processor, this device can comprise: first judge module 101, interface determination module 102, data memory module 103 and data transmission module 104.Wherein:
First judge module 101, be used for judging whether to receive the data acquisition request, obtain first judged result, wherein, the data acquisition request is corresponding with 7816 interfaces that signal changes, and 7816 interfaces that change for request processor docking port signal carry out data acquisition.
In the present embodiment, 7816 interfaces comprise: voltage interface 7816_VCC, clock interface 7816_CLK, reseting interface 7816_RST and data input/output interface 7816_IO.When the data acquisition request can change for the level when 7816 interfaces, the interrupt requests that the universal input/output interface GPIO by described processor sends to processor.
Further, first judge module 101 comprises that first judges submodule 1011.First judges submodule 1011, is used for judging whether receiving the interrupt requests of the GPIO of from processor, obtains first judged result.
Interface determination module 102 is used for showing when receiving the data acquisition request when first judged result, by definite 7816 interfaces that need carry out data acquisition of data acquisition request, so that the 7816 interface image data of data acquisition module from determining.
Further, interface determination module 102 comprises that interface determines submodule 1021.Interface is determined submodule 1021, is used for when first judged result shows the interrupt requests of the GPIO that receives from processor, determines 7816 interfaces that need carry out data acquisition by the interrupt requests of GPIO.
Data memory module 103 is used for the data that the storage data acquisition module is gathered from 7816 interfaces of determining.
In the present embodiment, processor inside is provided with the memory space as the transfer of data buffering.Further, data memory module 103 comprises: data sub module stored 1031.Data sub module stored 1031 is used for data acquisition module is stored to the inner memory space as the transfer of data buffering that arranges of processor from the data of the 7816 interface collections determined.
Data transmission module 104, the transfer of data that is used for storing is to terminal equipment, so that terminal equipment is handled these data.
Further, data transmission module 104 comprises: second judges submodule 1041 and transfer of data submodule 1042.Wherein, second judges submodule 1041, and whether have as yet the not data of transmission, obtain second judged result if being used for the inner memory space as the transfer of data buffering that arranges of decision processor; Transfer of data submodule 1042 is used for when second judged result shows that memory space has as yet not the data of transmission, with the transfer of data do not transmitted as yet in the memory space to terminal equipment.
The mutual device of monitoring ISOIEC7816-3 interface data that the embodiment of the invention provides, when the signal of 7816 interfaces changes, can receive the data acquisition request, and by definite 7816 interfaces that need carry out data acquisition of data acquisition request, make the 7816 interface image data of data acquisition module from determining, store the data that data acquisition module is gathered from 7816 interfaces determined then, with the transfer of data of storage to terminal equipment, so that terminal equipment is handled data.The mutual device of monitoring ISOIEC7816-3 interface data that the embodiment of the invention provides can listen to the variation of voltage interface 7816_VCC, clock interface 7816_CLK, reseting interface 7816_RST and the data input/output interface 7816_IO signal of 7816-3, and the interface image data that changes from signal, compared with prior art, the data that the device that provides by the embodiment of the invention is gathered are more complete, more comprehensively, more can truly reflect the state of interface, be conducive to analysis and the processing of follow-up data.In addition, the data of gathering are stored to the inner memory space as the transfer of data buffering that arranges of processor, make the transmission speed of data improve, and, adopt the data of the memory space storage of collected of processor inside, and without external memorizer, reduced cost.
Each embodiment adopts the mode of going forward one by one to describe in this specification, and what each embodiment stressed is and the difference of other embodiment that identical similar part is mutually referring to getting final product between each embodiment.For the disclosed device of embodiment, because it is corresponding with the embodiment disclosed method, so description is fairly simple, relevant part partly illustrates referring to method and gets final product.
The method of describing in conjunction with embodiment disclosed herein or the step of algorithm can directly use the software module of hardware, processor execution, and perhaps the combination of the two is implemented.Software module can place the storage medium of any other form known in random asccess memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or the technical field.
To the above-mentioned explanation of the disclosed embodiments, make this area professional and technical personnel can realize or use the present invention.Multiple modification to these embodiment will be apparent concerning those skilled in the art, and defined General Principle can realize under the situation that does not break away from the spirit or scope of the present invention in other embodiments herein.Therefore, the present invention will can not be restricted to these embodiment shown in this article, but will meet the wideest scope consistent with principle disclosed herein and features of novelty.

Claims (10)

1. monitor the mutual method of ISOIEC7816-3 interface data for one kind, it is characterized in that, be applied to processor, described method comprises:
Judge whether to receive the data acquisition request, obtain first judged result, described data acquisition request is corresponding with 7816 interfaces that signal changes, and is used for the described processor of request 7816 interfaces that described signal changes are carried out data acquisition;
When described first judged result shows when receiving described data acquisition request, determine 7816 interfaces that need carry out data acquisition by described data acquisition request, so that the 7816 interface image data of data acquisition module from determining;
Store the data that described data acquisition module is gathered from 7816 interfaces of determining;
With the storage transfer of data to terminal equipment, so that terminal equipment is handled described data.
2. method according to claim 1 is characterized in that, described data acquisition request is for when the level of 7816 interfaces changes, and the universal input/output interface GPIO by described processor is to the interrupt requests of described processor transmission;
Judge whether to receive the data acquisition solicited message, the process that obtains first judged result comprises: judge whether to receive the interrupt requests from the GPIO of described processor, obtain first judged result;
When described first judged result shows when receiving described data acquisition request, the process of determining to carry out 7816 interfaces of data acquisition by described data acquisition request comprises: when described first judged result shows the interrupt requests that receives from the GPIO of described processor, determine 7816 interfaces that need carry out data acquisition by the interrupt requests of described GPIO.
3. method according to claim 1 is characterized in that, described processor inside is provided with the memory space as the transfer of data buffering;
Storing described data acquisition module comprises from the process of the data of the 7816 interface collections determined: the data of described data acquisition module from the 7816 interface collections determined are stored to the inner memory space as the transfer of data buffering that arranges of described processor.
4. method according to claim 3 is characterized in that, when described processor is in idle condition, transfer of data to the process of terminal equipment of storage is comprised:
Whether judge has as yet the not data of transmission, obtain second judged result in the described memory space;
When described second judged result shows the data that not transmission is arranged in the described memory space as yet, with in the described memory space as yet not the transfer of data of transmission to terminal equipment.
5. method according to claim 1, it is characterized in that, with the transfer of data of described storage to the process of terminal equipment, if receive the data acquisition request, then interrupt the transmission of data, respond described data acquisition request, carry out the data acquisition operations, when described data acquisition operation is finished, continue to carry out data transfer operation, with transfer of data that will storage to terminal equipment.
6. method according to claim 1 is characterized in that, the process that the data of storing is sent to terminal equipment comprises: the data of storage are transferred to terminal equipment by USB2.0.
7. monitor the mutual device of ISOIEC7816-3 interface data for one kind, it is characterized in that, be applied to processor, described device comprises:
First judge module, be used for judging whether to receive the data acquisition request, obtain first judged result, wherein, described data acquisition request is corresponding with 7816 interfaces that signal changes, and is used for the described processor of request 7816 interfaces that described signal changes are carried out data acquisition;
The interface determination module is used for showing when receiving described data acquisition request when described first judged result, by definite 7816 interfaces that need carry out data acquisition of described data acquisition request, so that the 7816 interface image data of data acquisition module from determining;
Data memory module is used for the data that the described data acquisition module of storage is gathered from 7816 interfaces of determining;
Data transmission module, the transfer of data that is used for storing is to terminal equipment, so that terminal equipment is handled described data.
8. device according to claim 7 is characterized in that, described data acquisition request is for when the level of 7816 interfaces changes, and the universal input/output interface GPIO by described processor is to the interrupt requests of described processor transmission;
Described first judge module comprises:
First judges submodule, and the interrupt requests for judging whether to receive from the GPIO of described processor obtains first judged result;
Described interface determination module comprises:
Interface is determined submodule, is used for when described first judged result shows the interrupt requests that receives from the GPIO of described processor, by definite 7816 interfaces that need carry out data acquisition of the interrupt requests of described GPIO.
9. device according to claim 7 is characterized in that, described processor inside is provided with the memory space as the transfer of data buffering;
Described data memory module comprises:
The data sub module stored is used for described data acquisition module is stored to the inner memory space as the transfer of data buffering that arranges of described processor from the data of the 7816 interface collections determined.
10. device according to claim 9 is characterized in that, described data transmission module comprises:
Second judges submodule, is used for judging whether described memory space has as yet the not data of transmission, obtains second judged result;
The transfer of data submodule is used for when described second judged result shows that described memory space has as yet not the data of transmission, with the transfer of data do not transmitted as yet in the described memory space to terminal equipment.
CN201310218007.6A 2013-06-04 2013-06-04 A kind of monitor the method and device that ISOIEC7816-3 interface data is mutual Active CN103281219B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201310218007.6A CN103281219B (en) 2013-06-04 2013-06-04 A kind of monitor the method and device that ISOIEC7816-3 interface data is mutual
EP14170824.8A EP2811308A1 (en) 2013-06-04 2014-06-02 Method and system for tracing and processing smart card interactive data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310218007.6A CN103281219B (en) 2013-06-04 2013-06-04 A kind of monitor the method and device that ISOIEC7816-3 interface data is mutual

Publications (2)

Publication Number Publication Date
CN103281219A true CN103281219A (en) 2013-09-04
CN103281219B CN103281219B (en) 2016-08-10

Family

ID=49063675

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310218007.6A Active CN103281219B (en) 2013-06-04 2013-06-04 A kind of monitor the method and device that ISOIEC7816-3 interface data is mutual

Country Status (1)

Country Link
CN (1) CN103281219B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103679236A (en) * 2013-12-26 2014-03-26 东信和平科技股份有限公司 Method and system for tracking and processing interactive data of smart card
CN106353595A (en) * 2016-08-31 2017-01-25 成都市和平科技有限责任公司 High-performance spectrum analyzer and spectrum analysis method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1222988A (en) * 1996-04-15 1999-07-14 尤比克公司 System and apparatus for smart card personalization
US20040206815A1 (en) * 2003-04-16 2004-10-21 Tarnovsky George V. System for testing, verifying legitimacy of smart card in-situ and for storing data therein
CN101101312A (en) * 2007-07-23 2008-01-09 北京派瑞根科技开发有限公司 IC card test system
CN101140548A (en) * 2007-10-23 2008-03-12 北京握奇数据系统有限公司 Method for operating data file by card operating system and smart card thereof
CN101529262A (en) * 2005-05-19 2009-09-09 奈克斯测试系统公司 System for testing smart cards and method for same

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1222988A (en) * 1996-04-15 1999-07-14 尤比克公司 System and apparatus for smart card personalization
US20040206815A1 (en) * 2003-04-16 2004-10-21 Tarnovsky George V. System for testing, verifying legitimacy of smart card in-situ and for storing data therein
CN101529262A (en) * 2005-05-19 2009-09-09 奈克斯测试系统公司 System for testing smart cards and method for same
CN101101312A (en) * 2007-07-23 2008-01-09 北京派瑞根科技开发有限公司 IC card test system
CN101140548A (en) * 2007-10-23 2008-03-12 北京握奇数据系统有限公司 Method for operating data file by card operating system and smart card thereof

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103679236A (en) * 2013-12-26 2014-03-26 东信和平科技股份有限公司 Method and system for tracking and processing interactive data of smart card
CN103679236B (en) * 2013-12-26 2017-02-15 东信和平科技股份有限公司 Method and system for tracking and processing interactive data of smart card
CN106353595A (en) * 2016-08-31 2017-01-25 成都市和平科技有限责任公司 High-performance spectrum analyzer and spectrum analysis method

Also Published As

Publication number Publication date
CN103281219B (en) 2016-08-10

Similar Documents

Publication Publication Date Title
CN111163018B (en) Network equipment and method for reducing transmission delay thereof
CN104185141A (en) Bluetooth beacon device based system and method for detecting stay time of user in area
CN102768648B (en) Gatherer, the system with this gatherer and correlation technique are interrupted in low delay
CN107005062A (en) Charging method, mobile terminal and charging device
CN107087247A (en) A kind of bluetooth processing method and processing device
CN104412565A (en) Method for socket management involving a bearer independent protocol
CN104917645A (en) Method and device for detecting message transmission overtime on line
CN103281219A (en) Method and device for listening into ISOIEC7816-3 interface data interaction
CN107729860B (en) Recognition of face calculation method and Related product
CN117201340A (en) Message feature recognition method, device, equipment and storage medium
CN109120731B (en) Universal communication method, system and device
CN103064887A (en) Method and device for recommending information
CN106095290A (en) Sensor calls method for closing and the device of function
CN106657544A (en) Incoming call recording method and terminal equipment
CN203204494U (en) Multifunctional high-stability slot structure and multifunctional card insertion module combined system
WO2019001333A1 (en) Application interface display method, apparatus and electronic device
EP2811308A1 (en) Method and system for tracing and processing smart card interactive data
CN102769658A (en) Method and device for restoring network files
CN102867060A (en) Method, device and system for data fast search
CN107145375A (en) Kernel loads method, device, system, user terminal and storage medium
CN109120665B (en) High-speed data packet acquisition method and device
CN110362603B (en) Feature redundancy analysis method, feature selection method and related device
CN104765703B (en) Method for collecting data messages on FPGA platform
CN206892872U (en) A kind of computer big data storage system
CN110417514A (en) Data transmission method for uplink and device, data receiver method and device

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