CN104657144A - Novel method for realizing data tracking of smart card - Google Patents
Novel method for realizing data tracking of smart card Download PDFInfo
- Publication number
- CN104657144A CN104657144A CN201510100239.0A CN201510100239A CN104657144A CN 104657144 A CN104657144 A CN 104657144A CN 201510100239 A CN201510100239 A CN 201510100239A CN 104657144 A CN104657144 A CN 104657144A
- Authority
- CN
- China
- Prior art keywords
- intelligent card
- interface
- smart card
- storehouse
- novel method
- 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
Links
Landscapes
- Stored Programmes (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention provides a novel method for realizing data tracking of a smart card. The novel method comprises the following steps: analyzing the type of a smart card reader which can be used by a smart card application program to further determine a real interface library of the smart card reader; developing a proxy interface library according to the real interface library; outputting input and output parameters, a function return value and other information while the proxy interface library the real interface library interact, thereby achieving the aim of performing data tracking on the smart card, and realizing the use effect of a smart card tracker. According to the novel method disclosed by the invention, the development cost of products can be reduced to a great degree, and the popularization and the use of the products are facilitated.
Description
Technical field
The present invention relates to technical field of intelligent card, what be specifically related to is a kind of novel method realizing intelligent card data tracking.
Background technology
Smart card is also known as " integrated circuit card ", and English name is " Integrated Circuit Card " or " SmartCard ".At present, the application of smart card is more and more extensive.When one run on the operation of the smart card application software in computer system to smart card go wrong time, in order to the convenience investigating problem usually adopts hardware device (as oscillograph, smart card tracker etc.) smart card to be carried out to the method for data tracking.
Method one: use oscillograph to carry out the tracking of smart card electric signal thus interaction problems between analysis and solve smart card and other equipment.
Method two: use smart card hardware tracker to carry out following the tracks of thus interaction problems between analysis and solve smart card and other equipment.
Shortcoming:
Method one: although oscillograph is professional, mostly very heavy, and line between other equipment is also very complicated.What follow the tracks of is more original electric signal, and problem analysis is more loaded down with trivial details and consuming time.
Method two: hardware tracker is small and exquisite more also or a hardware device uses it to be not only inconvenient to carry, but also needs to carry out physical connection with computing machine, smart card and read write line.Loose contact sometimes between hardware device also can cause interference to tracking results, uses inconvenience.
PC/SC specification is that the PC/SC working group that Microsoft and smart card manufacturer that some are famous form proposes, and provides a standard, the open DLL (dynamic link library) (API) based on WINDOWS platform.Therefore, the intelligent card read/write device meeting PC/SC specification has good versatility, and most of smart card application software can use the read write line meeting PC/SC specification to carry out operative intelligence card.
Summary of the invention
Because described in background technology, the object of this invention is to provide a kind of method that novel intelligent card data is followed the tracks of, with low cost, additionally do not adopt hardware device, and the result of use the same with hardware tracker can be reached.
The object of the invention is to be achieved through the following technical solutions:
The novel method realizing smart card tracking, it comprises the following steps:
Study certain application program of intelligent card;
Analyze the type of the operable intelligent card read/write device of described application program of intelligent card, judge whether described intelligent card read/write device belongs to the intelligent card read/write device meeting PC/SC specification;
If judged result is yes, then the file in " real interface storehouse " is called winscard.dll;
If judged result is no, continue to judge whether this intelligent card read/write device has the application and development interface API and interface function statement providing dynamic base or similar dynamic base form;
The result judged as continued is yes, then this application and development interface API is exactly " real interface storehouse ";
A dynamic base is developed according to " real interface storehouse ", be referred to as in " proxy interface storehouse ", filename is identical with " real interface storehouse ", and which includes the interface function identical with " real interface storehouse " to state, while the homonymous interfaces function that " proxy interface storehouse " calls in " real interface storehouse ", input, output parameter and function return value etc. are outputted to a specific file as tracking results;
By in described " proxy interface storehouse " catalogue stored in application program of intelligent card place.
According to said method, run described application program of intelligent card, tracking results to be just automatically recorded in specific file thus to reach the object that intelligent card data follows the tracks of.Such as, follow the tracks of the APDU instruction that the interface function performing APDU can obtain input, the intelligent card state word of output and response, the effect just as use hardware tracker.
Described input, output parameter and function return value are exactly generally the content such as APDU instruction, response, status word in Application Protocol Data Unit.
If judge that this intelligent card read/write device does not provide application and development interface API and the interface function statement of dynamic base form, or the interface API provided is not the form of dynamic base or similar dynamic base, then do not meet precondition of the present invention.
Therefore, adopt method of the present invention, have following advantage:
(1) do not increase the result of use that any hardware device and physical connection can realize smart card tracker in addition, avoid use hardware device to cause carry, the various problems of the aspect such as connection.
(2) tracking results generates in real time, has no effect to tracing object, avoids the data delay phenomenon of the appearance such as the hardware device that uses hardware tracker and the interference problem to tracing object.
(3) the smart card tracker that realizes of the present invention is without the exploitation of hardware device and manufacturing cost, only software development cost, with low cost, is easy to promote.
Accompanying drawing explanation
Fig. 1 is the system principle diagram of the embodiment of the present invention;
Fig. 2 is the workflow diagram of the embodiment of the present invention.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
The present embodiment provides a kind of novel method realizing smart card tracking, does not additionally adopt any hardware device, just can reach and adopt the technique effect that smart card hardware tracker is the same at present.
Refer to shown in Fig. 1 and Fig. 2, the method for the present embodiment comprises the following steps:
Study certain application program of intelligent card;
Analyze the type of the operable intelligent card read/write device of described application program of intelligent card, judge whether described intelligent card read/write device belongs to the intelligent card read/write device meeting PC/SC specification;
If judged result is yes, then the file in " real interface storehouse " is called winscard.dll;
If judged result is no, continue to judge whether this intelligent card read/write device has the application and development interface API and interface function statement providing dynamic base or similar dynamic base form;
If judged result is yes, then this application and development interface API is exactly " real interface storehouse "; If judge that this intelligent card read/write device does not provide application and development interface API and the interface function statement of dynamic base form, or the interface API provided is not the form of dynamic base or similar dynamic base, then do not meet precondition of the present invention;
A dynamic base is developed according to " real interface storehouse ", be referred to as in " proxy interface storehouse ", filename is identical with " real interface storehouse ", and which includes the interface function identical with " real interface storehouse " to state, while the homonymous interfaces function that " proxy interface storehouse " calls in " real interface storehouse ", input, output parameter and function return value etc. are outputted to a specific file as tracking results; Described input/output argument and function return value are exactly generally the content such as APDU instruction, response, status word in Application Protocol Data Unit (APDU); Therefore can reach the object that intelligent card data is followed the tracks of, realize the result of use of hardware tracker;
By in described " proxy interface storehouse " catalogue stored in application program of intelligent card place.
Use said method, run application program of intelligent card, tracking results to be just automatically recorded in specific file thus to reach the object that intelligent card data follows the tracks of, and realizes the result of use of hardware tracker.Such as, follow the tracks of the APDU instruction that the interface function performing APDU can obtain input, the intelligent card state word of output and response, the effect just as use hardware tracker.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any amendments done within the spirit and principles in the present invention, equivalent replacement and improvement etc., all should be included within protection scope of the present invention.
Claims (3)
1. the novel method realizing intelligent card data tracking, is characterized in that: it comprises the following steps:
Study certain application program of intelligent card;
Analyze the type of the operable intelligent card read/write device of described application program of intelligent card, judge whether described intelligent card read/write device belongs to the intelligent card read/write device meeting PC/SC specification;
If judged result is yes, then the file in " real interface storehouse " is called winscard.dll;
If judged result is no, continue to judge whether this intelligent card read/write device has the application and development interface API and interface function statement providing dynamic base or similar dynamic base form;
The result judged as continued is yes, then this application and development interface API is exactly " real interface storehouse ";
A dynamic base is developed according to " real interface storehouse ", be referred to as in " proxy interface storehouse ", filename is identical with " real interface storehouse ", and which includes the interface function identical with " real interface storehouse " to state, while the homonymous interfaces function that " proxy interface storehouse " calls in " real interface storehouse ", input, output parameter and function return value etc. are outputted to a specific file as tracking results;
By in described " proxy interface storehouse " catalogue stored in application program of intelligent card place.
2. the novel method realizing intelligent card data tracking according to claim 1, is characterized in that:
Described input, output parameter and function return value are exactly generally the content such as APDU instruction, response, status word in Application Protocol Data Unit.
3. the novel method realizing intelligent card data tracking according to claim 1, it is characterized in that: if judge that this intelligent card read/write device does not provide application and development interface API and the interface function statement of dynamic base form, or the interface API provided is not the form of dynamic base or similar dynamic base, then do not meet precondition of the present invention, directly terminate.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510100239.0A CN104657144B (en) | 2015-03-06 | 2015-03-06 | A kind of method for realizing intelligent card data tracking |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510100239.0A CN104657144B (en) | 2015-03-06 | 2015-03-06 | A kind of method for realizing intelligent card data tracking |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104657144A true CN104657144A (en) | 2015-05-27 |
CN104657144B CN104657144B (en) | 2018-02-13 |
Family
ID=53248330
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510100239.0A Active CN104657144B (en) | 2015-03-06 | 2015-03-06 | A kind of method for realizing intelligent card data tracking |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104657144B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101126793A (en) * | 2007-09-18 | 2008-02-20 | 东信和平智能卡股份有限公司 | Intelligent card test system and method |
CN101192141A (en) * | 2006-11-20 | 2008-06-04 | 北京书生国际信息技术有限公司 | Method for packaging UOML into application program interface |
US20090039153A1 (en) * | 2005-08-12 | 2009-02-12 | Pharma-Smart Llc | Deactivatable/reactivatable smart card recording apparatus |
CN102495797A (en) * | 2011-11-25 | 2012-06-13 | 大唐微电子技术有限公司 | Smart card testing device and method |
CN102520272A (en) * | 2011-11-24 | 2012-06-27 | 大唐微电子技术有限公司 | Test system of power down protection function of smart card and method |
-
2015
- 2015-03-06 CN CN201510100239.0A patent/CN104657144B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090039153A1 (en) * | 2005-08-12 | 2009-02-12 | Pharma-Smart Llc | Deactivatable/reactivatable smart card recording apparatus |
CN101192141A (en) * | 2006-11-20 | 2008-06-04 | 北京书生国际信息技术有限公司 | Method for packaging UOML into application program interface |
CN101126793A (en) * | 2007-09-18 | 2008-02-20 | 东信和平智能卡股份有限公司 | Intelligent card test system and method |
CN102520272A (en) * | 2011-11-24 | 2012-06-27 | 大唐微电子技术有限公司 | Test system of power down protection function of smart card and method |
CN102495797A (en) * | 2011-11-25 | 2012-06-13 | 大唐微电子技术有限公司 | Smart card testing device and method |
Also Published As
Publication number | Publication date |
---|---|
CN104657144B (en) | 2018-02-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107291438B (en) | Automatic script generation method and device and electronic equipment | |
CA2967251C (en) | Intelligent code differencing using code clone detection | |
CN103164300A (en) | Mobile terminal touch screen automatic testing method and device | |
CN102541731B (en) | Platform-agnostic diagnostic data collection and display | |
CN104778033A (en) | Construction method and device of building block type software | |
CN113127361B (en) | Application development method and device, electronic equipment and storage medium | |
CN104375933A (en) | Unit testing method and device | |
CN104049974A (en) | Dynamic control assembly method and system | |
CN105335285A (en) | Implementation method of double-interface smart card test system compatible with multiple test platforms | |
CN105204832A (en) | System and method for achieving script engine | |
CN104598267A (en) | Application calling method and device | |
US11036527B2 (en) | Class splitting in object-oriented environments | |
CN102081520B (en) | Method and system for establishing graphical user interface of embedded digital video recorder | |
US20140189526A1 (en) | Changing log file content generation | |
CN114048415A (en) | Form generation method and device, electronic equipment and computer readable storage medium | |
CN105653441A (en) | Method and system for UI traversal testing | |
CN104063306A (en) | Automatic login method, device and system in intelligent terminal software testing | |
CN108667902B (en) | Remote control system, method, device and equipment of iOS equipment | |
CN110609703A (en) | Performance detection tool implementation method and device, readable storage medium and terminal equipment | |
CN108984221B (en) | Method and device for acquiring multi-platform user behavior logs | |
CN104657144A (en) | Novel method for realizing data tracking of smart card | |
CN110465093B (en) | Method and device for analyzing inclusion redundant resources based on Unity | |
CN112181407B (en) | Service realization processing method, device, system, electronic equipment and storage medium | |
US8495033B2 (en) | Data processing | |
CN107562373B (en) | Multi-system USB flash disk reading method and device, readable storage medium and computer equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |