CN102664043B - Device and method for test of smart SD card realizing mobile payment - Google Patents

Device and method for test of smart SD card realizing mobile payment Download PDF

Info

Publication number
CN102664043B
CN102664043B CN201210090793.1A CN201210090793A CN102664043B CN 102664043 B CN102664043 B CN 102664043B CN 201210090793 A CN201210090793 A CN 201210090793A CN 102664043 B CN102664043 B CN 102664043B
Authority
CN
China
Prior art keywords
interface
card
module
main control
intelligent
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
CN201210090793.1A
Other languages
Chinese (zh)
Other versions
CN102664043A (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.)
Datang Microelectronics Technology Co Ltd
Original Assignee
Datang Microelectronics Technology 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 Datang Microelectronics Technology Co Ltd filed Critical Datang Microelectronics Technology Co Ltd
Priority to CN201210090793.1A priority Critical patent/CN102664043B/en
Publication of CN102664043A publication Critical patent/CN102664043A/en
Application granted granted Critical
Publication of CN102664043B publication Critical patent/CN102664043B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a device and a method for a test of a smart SD card realizing mobile payment. The device is characterized in that a test smart SD is inserted into a SD card base and a SD host mode interface is connected to a main control module; the SD host mode interface is converted into an ISO7816 slave mode interface by control of the main control module and the ISO7816 slave mode interface is connected to a SIM card interface board; and the SIM card interface board is inserted into a SIM card base of test equipment. The device and the method realizes the automatic conversion between a SD card interface protocol and an ISO7816 interface protocol of a smart SD card and also realizes a signal trace test of a smart SD card product by general test equipment based on the ISO7816 interface protocol. In addition, through the device and the method, interface forms of various smart SD cards are converted into a SIM card interface form and then the smart SD cards are inserted into SIM card slots and then are subjected to a SD card functional test.

Description

Realize the device and method of the intelligent SD card test of mobile payment
Technical field
The present invention relates to a kind of mobile payment testing apparatus and method, particularly relate to the device and method of the intelligent SD card test realizing mobile payment.
Background technology
Mobile payment is also known as mobile-phone payment, be one of focus of current emerging payment technology, its core concept is by closely contactless smart card and mobile phone terminal combine, realize on-site payment function by mobile phone simulated intelligence card, and utilize the network communication of mobile phone to realize remote payment function; Meanwhile, utilize the high security of intelligent card chip to ensure the safety of payment information and payment process.Mobile-phone payment possesses easy-to-use, safety and characteristic efficiently, is the development trend that following e-finance pays.
In mobile payment solution, China Unionpay, telecom operators and Third-party payment company are all proposed in conjunction with the industrial advantage of oneself scheme and product that meet self-growth.Wherein China Unionpay have selected the intelligent SD card scheme not being limited to mobile operator SIM (Subscriber Identity Module) and blocking, and be proposed in 2010 the intelligent SD card only supporting remote payment, within 2011, be proposed again and support that remote payment and near field pay the NFC-SD card of (Near Field Payment) simultaneously, and promulgated relevant technique standard and criterion, just commercially widely popularize at present.
Intelligent SD card, refer to the novel intelligent SD card formed after traditional SD card inside embeds the safety intelligent card chip (SE) of financial level, its framework is as shown in Figure 1; It is under the prerequisite not changing the hardware design of mobile phone own, as long as make mobile phones most on market have the function that SD card slot just possesses mobile-phone payment, thus is beneficial to the expansion of mobile-phone payment business.Intelligent SD card is divided into two kinds, one does not support the SD card of single-wire-protocol (SWP, Single Wire Protocol) interface, and this SD card can be used on the intelligent terminal of any band SD draw-in groove, but it only supports remote payment function, on-site payment function cannot be supported; Another kind is the SD card supporting SWP interface, be called NFC-SD card or SWP-SD card, this SD card can be used in specifically support close range wireless communication (NFC, Near Field Communication) function intelligent terminal on, remote payment and on-site payment function can be supported.
At present, similar protocol conversion device is only limitted to the conversion of physical aspect aspect, kilocalorie (such as mass transit card, interchanger etc.) as ID-1 standard is converted to Plug-in lesser calorie (SIM card as used in regular handset) or 3FF lesser calorie (SIM card of smaller szie as iphone mobile phone uses), this kind equipment is the adaptation conversion of interface form, connecting line adopts the mode directly connected, and does not carry out conversion and the adaptation of software protocol aspect.
Have again, take Unionpay as financial intelligent SD card (abbreviation NFC-SD card or the SWP-SD card) product of the long-range and on-the-spot mobile payment service of support that main body is promoted, this product extends the pin PIN9 that two are exclusively used near field payment interface on SD card original standard pin basis, PIN10, as shown in Figure 1; Wherein, PIN9 is SWP interface, for (the SWP interface of (i.e. non-contact front-end, Contact-Less Front-end) chip is connected with NFC mobile terminal CLF; PIN10 then for connecting power supply, for powering for the chip operation on intelligent SD card.Because PIN9 with PIN10 is directly be connected with intelligent card chip (Smart IC) in SD card inside, not through the process of SD controller on card, therefore conversion and the adaptation of protocol level cannot be carried out.So the needs of some producer in order to test, PIN9, PIN10 and GND of SD card (ground wire) three lines are connected on C6, C1, C5 interface of SIM card, this conversion equipment is also the mode adopting connecting line directly to connect, also conversion and the adaptation of protocol level is not carried out, only can be used in the adaptation test of SWP interface, communication can not be carried out with the ISO7816 interface of smart card in SD card.The feature of above interface conversion equipment is, just carries out the interface conversion of physical aspect, and circuit-line adopts the mode directly connected, and does not carry out the conversion of software protocol aspect, does not also have the participation of main control chip, so, all have some limitations.
As can be seen here, existing intelligent SD card is converted to the interfacing equipment of SIM card, only can realize the conversion of SWP interface, and be the interface conversion of physical aspect, circuit-line adopts the mode directly connected, and does not carry out the conversion of software protocol aspect, does not also have the participation of main control chip.So, cannot the adaptive existing testing apparatus possessing SIM card interface for the intelligent SD card product promoted at present, as TC3 equipment, can not be used in and only support the NFC mobile phone of SWP SIM scheme is tested.Therefore, need to propose a kind of device and method realizing the intelligent SD card test of mobile payment, can by intelligent SD card interface conversion being become from hardware and software protocol level the interface of SIM card, and by mobile phone or the testing apparatus with SIM card interface, intelligent SD card various functions is tested easily.
Summary of the invention
Technical matters to be solved by this invention is to provide a kind of device and method realizing the intelligent SD card test of mobile payment, can easily with mobile phone or the testing apparatus test intelligent SD card with SIM card interface.
In order to solve the problems of the technologies described above, the invention provides a kind of device realizing the intelligent SD card test of mobile payment, comprise SD card extender and SIM card interface board, SD card extender comprises SD card deck and main control module, wherein:
SD card deck, for inserting tested intelligent SD card, and adopts SD host mode interface to be connected with main control module;
Main control module, becomes ISO7816 slave mode interface for controlling by SD host mode interface conversion, and adopts ISO7816 slave mode interface to be connected with SIM card interface board;
SIM card interface board, for inserting in the SIM card deck of testing apparatus.
Further, main control module on SD card extender comprises a main control chip and runs on this main control chip: comprise the SD card interface module, hardware driving interface module and 7816 interface modules that are connected successively, also comprise the SD file access module, SD application processing module and the order transceiver module that connect successively, wherein:
SD card interface module, receive from intelligent SD card for control hardware driving interface module or send to intelligent SD card and meet the application interface file data of SD host mode interface format, and respectively by inputoutput buffer correspondingly buffer memory received or data pending; SD host mode interface comprise in SD interface or serial device interfaces or multimedia storage card interface one or more;
7816 interface modules, for listened to testing apparatus by ISO7816 interface Application Protocol Data Unit command request after, export order to order transceiver module and receive enabled instruction; Control hardware driving interface module receives from testing apparatus or sends to testing apparatus and meets the data of ISO7816 interface format, and respectively by inputoutput buffer correspondingly buffer memory received or data pending;
Hardware driving interface module, for carrying out information interaction by corresponding hardware driving interface and tested intelligent SD card and testing apparatus under the control of SD card interface module or 7816 interface modules;
SD file access module, be connected with SD card interface module, Application Protocol Data Unit order write application interface file for the packing of SD application processing module being exported also is sent by SD card interface module, and/or the content of the result data packing write application interface file described intelligent SD card that SD card interface module receives being responded this order read after pass to SD application processing module;
SD application processing module, for pack the Application Protocol Data Unit order that order transceiver module receives according to SD host mode interface format and export to SD file access module; Or result SD file access module being parsed from the content that application interface file reads response command exports to order transceiver module;
Order transceiver module, is also connected with 7816 interface modules, starts 7816 interface modules reception Application Protocol Data Unit orders, and SD application processing module is exported in this order received for receiving enabled instruction according to the order of input; And/or the result data of this order of response of SD application processing module output is exported to 7816 interface modules according to ISO7816 interface format.
Further, main control module also comprises:
SD card initialization module, is connected with SD card interface module, for SD host mode interface and related register in initialization main control chip after the power-up; The intelligent SD card of initialization simultaneously, comprises the electrification reset of SD controller in this intelligent SD card, acquisition version number, the reset obtaining unique sequence numbers and safety intelligent card chip and protocol negotiation procedure;
7816 interface initialization modules, for the ISO7816 interface of initialization main control chip after SIM card interface board powers on, make main control chip complete the protocol negotiation procedure with testing apparatus.
Further, SD card deck on master control card extender comprises 10 pin PIN1 to PIN10, SD card deck directly selects PIN10 pin, for connecting the C1 pin of ISO7816 interface on SIM card interface board as power supply signal, PIN1 to PIN8 pin is connected with corresponding SD host mode interface respectively according to SD host mode interface shape; PIN9 pin, for transmitting single-wire-protocol signal, is directly connected with the C6 pin of ISO7816 interface on SIM card interface board.
Further,
Main control chip in main control module supports SD host mode interface, supports ISO7816 slave mode interface simultaneously;
Testing apparatus comprises mobile phone and has the special test equipment of SIM card deck.
In order to solve the problems of the technologies described above, the invention provides a kind of method realizing the intelligent SD card test of mobile payment, relate to insert testing apparatus the SIM card interface board of SIM card deck and SD card extender on insert tested intelligent SD card and the main control module of SD card deck, the method comprises:
Main control module receives the order meeting ISO7816 slave mode that testing apparatus sends, and to pack this command context, and be written in application interface file by the command context of packing by SD host mode interface format; In judging to read from application interface file, have renewal, then go out the result data of tested intelligent SD card response command from the Context resolution read, and export to testing apparatus by ISO7816 slave mode interface.
Further, main control module receive that testing apparatus sends meet the order of ISO7816 slave mode before, also comprise:
By the described SD host mode interface of main control module, the interface initialization of ISO7816 slave mode, intelligent SD card initialization will be surveyed; Wherein SD host mode interface comprises one or more in SD interface or serial device interfaces or multimedia storage card interface.
Further, main control module receives the order meeting ISO7816 slave mode that testing apparatus sends, and to pack this command context, and is written in application interface file by the command context of packing, specifically comprise by SD host mode interface format:
The Application Protocol Data Unit order meeting ISO7816 slave mode interface format that main control module is sent to testing apparatus by hardware driving interface, and after completeness check is carried out to order, according to SD host mode interface format, this order data is packed, with the pattern of written document, the order data of packing is written in application interface file that is newly-built or that open.
Further, main control module has renewal in judging to read from application interface file, then go out from the Context resolution of reading the result data that tested intelligent SD card responds described order, and export to testing apparatus by ISO7816 slave mode interface, specifically comprise:
After in intelligent SD card, SD controller monitoring has write operation to the application interface file of memory block, the content reading write also resolves to after protocol Data Unit order, is transmitted to safety intelligent card chip process in intelligent SD card; Response data after safety intelligent card chip performs Application Protocol Data Unit instruction gives SD controller, is written back in application interface file by SD controller by the response data of this order;
Main control module reads the content of application interface file, if judge, the file content read has renewal, be then stored in by the file content of reading in the output buffer memory of SD host mode interface; If the file content read does not upgrade, then postpone a period of time follow-up resuming studies and get, until read meaningful renewal or reading exceedes maximum latency;
Main control module parses the response data of order from the file content exporting buffer memory reading by SD host mode interface format, and after completeness check is carried out to this response data, export testing apparatus according to the call format of ISO7816 slave mode interface by hardware driving interface.
Further, the method also comprises:
Testing apparatus receives the exectorial response data of safety intelligent card chip and processes; If judge, test event all completes, then record, show and analyze the result of whole test event, otherwise sends next test command to tested intelligent SD card, proceeds the test of next test event.
The present invention is by becoming the interface of SIM card by intelligent SD card interface conversion from hardware and software protocol level, namely the cooperation of hardware unit and software protocol is adopted, automatically the SD interface protocol of intelligent SD card and ISO7816 interface protocol are changed, realize tracking and testing intelligent SD card product being carried out to signaling on the general purpose test equipment based on ISO7816 interface protocol, be particularly useful for the trace debug positioning analysis problem in the research and development of products stage at intelligent SD card, also can be used for product put it into commercial operation after problem complain analyze.Consider the compatibility of test intelligent SD card and various CLF chip solution simultaneously, be inserted in the SIM card slot of mobile phone after easily all kinds of intelligent SD card can being converted to SIM card interface shape and carry out the functional test of SD card.
Accompanying drawing explanation
Fig. 1 is the inside structure schematic diagram of existing intelligent SD card;
Fig. 2 is the structural representation realizing the device embodiment of the intelligent SD card test of mobile payment of the present invention;
Fig. 3 is the inner structure schematic diagram of main control module in the device embodiment shown in Fig. 2;
Fig. 4 is the process flow diagram realizing the embodiment of the method for the intelligent SD card test of mobile payment of the present invention.
Embodiment
Below in conjunction with accompanying drawing and preferred embodiment, technical scheme of the present invention is set forth in detail.Should be appreciated that the embodiment below enumerated only for instruction and explanation of the present invention, and does not form the restriction to technical solution of the present invention.
The device embodiment realizing the intelligent SD card test of mobile payment provided by the invention, its structure as shown in Figure 2, comprises SD card extender and SIM card interface board, and wherein, SD card extender comprises SD card deck and main control module, wherein:
SD card deck, for inserting tested intelligent SD card, and adopts SD host mode interface to be connected with main control module;
Main control module, becomes ISO7816 slave mode interface for controlling by SD host mode interface conversion, and adopts ISO7816 slave mode interface to be connected with SIM card interface board;
SIM card interface board, for inserting in the SIM card deck of testing apparatus (mobile phone or the testing apparatus with SIM card interface).
In said apparatus embodiment, the main control module on SD card extender is actually on a main control chip, runs an interface conversion software sharing.The structure of this main control module embodiment as shown in Figure 3, comprise the SD card interface module, hardware driving interface module and 7816 interface modules that connect successively, also comprise the SD file access module, SD application processing module and the order transceiver module that connect successively, wherein:
SD card interface module, receive from intelligent SD card for control hardware driving interface module or send to intelligent SD card and meet application interface file (SCIF) data of SD host mode interface format, and respectively by inputoutput buffer correspondingly buffer memory received or data pending; SD host mode interface comprise in SD interface or serial device interfaces (SPI, Serial Peripheral Interface) or multimedia storage card (MMC, Multi Media Card) interface one or more;
7816 interface modules, for after listened to APDU (application protocol processing unit) command request of testing apparatus by ISO7816 interface, are exported order to order transceiver module and receive enabled instruction; Receive from testing apparatus or send to testing apparatus and meet the data of ISO7816 interface format, and respectively by inputoutput buffer correspondingly buffer memory received or data pending;
Hardware driving interface module, for carrying out information interaction by the data transmit-receive of SD card interface module and tested intelligent SD card, carries out information interaction by the data transmit-receive of 7816 interface modules and testing apparatus;
SD file access module, sent by SD card interface module for the SCIF in APDU order write intelligent SD card memory block (flash memory) that SD application processing module is packed, and/or the content of the result data packing write SCIF intelligent SD card that SD card interface module receives being responded described order read after pass to SD application processing module;
SD application processing module, for the APDU order packing received by order transceiver module according to SD interface format, and submits to SD file access module to carry out SCIF write operation; Or the result that the SCIF Context resolution read from SD file access module goes out to respond APDU order is exported to order transceiver module;
Order transceiver module, is also connected with 7816 interface modules, receives APDU order for receiving enabled instruction startup according to the order from 7816 interface module inputs from the output buffer of 7816 interface modules; SD application processing module is exported in the APDU order of reception; And/or the result of the response APDU order of SD application processing module output is exported to 7816 interface modules according to ISO7816 interface format.
In said apparatus embodiment, main control module also comprises:
SD card initialization module, is connected with SD card interface module, for SD host mode interface and related register in initialization main control chip after the power-up; The tested intelligent SD card of initialization simultaneously, comprises the electrification reset of SD controller, acquisition version number, the reset obtaining unique sequence numbers and SE and protocol negotiation procedure.
7816 interface initialization modules, for initialization main control chip ISO7816 interface after SIM card interface board powers on, make main control chip complete the protocol negotiation procedure with testing apparatus.
In said apparatus embodiment,
Main control module realizes the command interaction with SE by the SCIF in intelligent SD card memory block.SD file access module by opening, reading and writing and one or more operations of closing in SCIF conduct interviews to SCIF.
The present invention is not in order to compatibility is with SWP interface and the intelligent SD card with SWP interface two type, PIN10 pin is directly selected by SD card deck on master control card extender, for connecting the C1 pin of ISO7816 interface on SIM card interface board as power supply signal, PIN1 ~ PIN8 pin is then connected with corresponding interface (being no more than at most 8 pins) respectively according to the SD/SPI/MMC interface shape of main control module; PIN9 pin, then for transmitting SWP signal, directly connects the C6 pin of ISO7816 interface on SIM card interface board.
Main control module (main control chip of runnable interface switching software) is the core devices of whole SD card extender, controls intelligent SD card and is connected with physical interface with the communications protocol conversion of SIM card (testing apparatus).Wherein, the type selecting of main control chip need meet can support SD/SPI/MMC host mode interface on external interface, and support ISO7816 slave mode interface, this type of chip is more on the market simultaneously, and price is comparatively cheap, is easy to buy.Main control chip is connected by PIN1 ~ PIN8 pin of SD/SPI/MMC interface with SD card deck, and by C1, C2, C3, C5, C7 of ISO7816 interface and SIM card interface board totally five pins be connected, C4, C8 pin of SIM card interface board puts sky.After the power supply of main control chip is inserted into testing apparatus by SIM card interface board, C1 and the C5 pin being SIM card interface board by testing apparatus powers on, C1 and C5 pin directly provides power supply for ISO7816 interface in 7816 interface modules of main control module, and then main control module is normally worked.
In the device of intelligent SD card test of the present invention, SIM card interface board is for being inserted in testing apparatus in mobile phone or special, as TC3 equipment, 8 pins of SIM card interface board are directly connected with 8 pins of testing apparatus, carry out communication by ISO7816 interface and SWP interface protocol;
Tested intelligent SD card belongs to plug-in device, can be inserted in SD card deck, extract when not testing during test.
The present invention is according to said apparatus embodiment, correspondingly additionally provide the embodiment of the method for the intelligent SD card test realizing mobile payment, relate to SD card deck, main control module and SIM card interface board on SD card extender, its flow process as shown in Figure 4, it is the SIM card deck inserting testing apparatus at SIM card interface board, intelligent SD card inserts SD card deck, and start after powering on, comprise the steps:
110: the SD host mode interface of main control module, the interface initialization of ISO7816 slave mode, tested intelligent SD card initialization;
Main control module starts the initialization of ISO7816 interface and SD interface, wherein ISO7816 standard criterion is followed in ISO7816 interface initialization, mainly comprise three links: reset and protocol negotiation procedure (PPS) control, control hardware drives the transmitting-receiving operation of the initialized information of Interface realization, completes electrification reset and the PPS of main control module and SIM card interface board; The initialization of SD interface comprises SD/SPI/MMC interface initialization and related register is arranged, and the SD controller completing intelligent SD card resets, obtain version number, obtain unique sequence numbers, and completes the operations such as the reset of SE and PPS; Tested intelligent SD card, main control module and SIM card interface board (testing apparatus) is made to reach normal operating conditions.
It should be noted that, operating voltage range due to intelligent SD card is 2.7V ~ 3.3V, and main control chip generally can be operated in lower voltage levvl, in order to prevent intelligent SD card from cannot normally work due to electricity shortage, so should voltage parameter be carried in repositioning information when carrying out ISO7816 interface initialization and notify that testing apparatus provides the supply voltage of 2.7V ~ 3.3V.
120: main control module receives the APDU order meeting ISO7816 interface format that testing apparatus sends, to pack this command context by SD interface format, and the command context of packing is written in SCIF;
The APDU command request meeting ISO7816 interface format that main control module is sent to testing apparatus by hardware driving interface, and after completeness check is carried out to it, according to SD interface format by APDU order packing process, with the pattern of written document, the order data after packing is written to newly-built or opens in SCIF file.
130: whether the content that master control module judges reads from SCIF has renewal, is, performs next step, otherwise the execution postponing that a period of time (as postponed 100ms) continues this step afterwards;
After SD controller monitoring in intelligent SD card has write operation to the SCIF file of memory block, the content automatically reading write, also after resolving to APDU order, is transmitted to the interior SE process of card; After SE executes APDU instruction, give SD controller command response data, by SD controller by command response write back data in SCIF file;
Main control module reads SCIF file content, if the file content read has renewal, is then stored in the output buffer memory of SD interface; If the file content read does not upgrade, then postpone a period of time follow-up resuming studies and get (such as perform step 120 follow-up resuming studies get), until read meaningful renewal or reading exceedes maximum latency.
140: main control module is resolved SE on intelligent SD card and responded the result data of APDU order from the file content upgraded, and exports to SIM card interface board according to ISO7816 interface format by hardware driving interface;
Main control module reads the file content of renewal from the output buffer memory of SD interface, from the file read, APDU command response data are parsed by SD interface format, and after carrying out completeness check to these data, require to be exported by hardware driving interface according to ISO7816 interface format.
150: testing apparatus receives SE by SIM card interface board and responds the result data of APDU order and process;
160: testing apparatus judges whether test event completes, and is, records, shows and analytical test result, otherwise continue to next test command, return and perform step 120.
More than illustrate and be only the present invention's preferably embodiment; but protection scope of the present invention is not limited thereto; anyly be familiar with those skilled in the art in the technical scope that the present invention discloses, the change that can expect easily or replacement, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection domain of claims.

Claims (8)

1. realize a device for the intelligent SD card test of mobile payment, it is characterized in that, comprise SD card extender and SIM card interface board, described SD card extender comprises SD card deck and main control module, wherein:
SD card deck, for inserting tested intelligent SD card, and adopts SD host mode interface to be connected with main control module;
Main control module, becomes ISO7816 slave mode interface for controlling by described SD host mode interface conversion, and adopts described ISO7816 slave mode interface to be connected with SIM card interface board;
SIM card interface board, for inserting in the SIM card deck of testing apparatus;
Main control module on described SD card extender comprises a main control chip and runs on this main control chip: comprise the SD card interface module, hardware driving interface module and 7816 interface modules that are connected successively, also comprise the SD file access module, SD application processing module and the order transceiver module that connect successively, wherein:
SD card interface module, to receive from described intelligent SD card for control hardware driving interface module or send to described intelligent SD card the application interface file data meeting described SD host mode interface format, and respectively by inputoutput buffer correspondingly buffer memory received or data pending; Described SD host mode interface comprise in SD interface or serial device interfaces or multimedia storage card interface one or more;
7816 interface modules, for listened to described testing apparatus by ISO7816 interface Application Protocol Data Unit command request after, export order to order transceiver module and receive enabled instruction; Control hardware driving interface module receives from described testing apparatus or sends to described testing apparatus the data meeting ISO7816 interface format, and respectively by inputoutput buffer correspondingly buffer memory received or data pending;
Hardware driving interface module, for carrying out information interaction by corresponding hardware driving interface and described tested intelligent SD card and described testing apparatus under the control of SD card interface module or 7816 interface modules;
SD file access module, be connected with SD card interface module, Application Protocol Data Unit order write application interface file for the packing of SD application processing module being exported also is sent by SD card interface module, and/or the content of the result data packing write application interface file described intelligent SD card that SD card interface module receives being responded described order read after pass to SD application processing module;
SD application processing module, the described Application Protocol Data Unit order for being received by order transceiver module according to described SD host mode interface format is packed and is exported to SD file access module; Or SD file access module is parsed from the content that described application interface file reads the result responding described order and export to order transceiver module;
Order transceiver module, is also connected with 7816 interface modules, receives described Application Protocol Data Unit order, and SD application processing module is exported in the described order received for starting 7816 interface modules according to the described order reception enabled instruction of input; And/or the result data of the described order of response of SD application processing module output is exported to 7816 interface modules according to ISO7816 interface format.
2. according to device according to claim 1, it is characterized in that, described main control module also comprises:
SD card initialization module, is connected with described SD card interface module, for the host mode interface of SD described in main control chip and related register described in initialization after the power-up; Intelligent SD card described in initialization simultaneously, comprises the electrification reset of SD controller in this intelligent SD card, acquisition version number, the reset obtaining unique sequence numbers and safety intelligent card chip and protocol negotiation procedure;
7816 interface initialization modules, for the ISO7816 interface of main control chip described in initialization after described SIM card interface board powers on, make described main control chip complete the protocol negotiation procedure with testing apparatus.
3., according to device according to claim 1, it is characterized in that,
Described SD card deck comprises 10 pin PIN1 to PIN10, described SD card deck directly selects PIN10 pin, for connecting the C1 pin of ISO7816 interface on described SIM card interface board as power supply signal, PIN1 to PIN8 pin is connected with corresponding SD host mode interface respectively according to described SD host mode interface shape; PIN9 pin, for transmitting single-wire-protocol signal, is directly connected with the C6 pin of ISO7816 interface on described SIM card interface board.
4., according to device according to claim 1, it is characterized in that,
Described main control chip in described main control module supports described SD host mode interface, supports described ISO7816 slave mode interface simultaneously;
Described testing apparatus comprises mobile phone and has the special test equipment of described SIM card deck.
5. realize a method for the intelligent SD card test of mobile payment, it is characterized in that, relate to insert testing apparatus the SIM card interface board of SIM card deck and SD card extender on insert tested intelligent SD card and the main control module of SD card deck, the method comprises:
Main control module receives the order meeting ISO7816 slave mode that testing apparatus sends, and to pack this command context, and be written in application interface file by the command context of packing by SD host mode interface format; In judging to read from described application interface file, have renewal, then go out from the Context resolution of described reading the result data that described tested intelligent SD card responds described order, and export to described testing apparatus by ISO7816 slave mode interface;
Described main control module receive that testing apparatus sends meet the order of ISO7816 slave mode before, also comprise:
By the described SD host mode interface of described main control module, the interface initialization of described ISO7816 slave mode, by described tested intelligent SD card initialization; Wherein said SD host mode interface comprise in SD interface or serial device interfaces or multimedia storage card interface one or more.
6. in accordance with the method for claim 5, it is characterized in that, described main control module receives the order meeting ISO7816 slave mode that testing apparatus sends, to pack this command context by described SD host mode interface format, and the command context of packing is written in application interface file, specifically comprise:
The Application Protocol Data Unit order meeting described ISO7816 slave mode interface format that described main control module is sent to described testing apparatus by hardware driving interface, and after completeness check is carried out to described order, according to described SD host mode interface format, this order data is packed, be written in application interface file that is newly-built or that open with the described order data of the pattern of written document by packing.
7. in accordance with the method for claim 6, it is characterized in that, described main control module has renewal in judging to read from described application interface file, then go out from the Context resolution of described reading the result data that described tested intelligent SD card responds described order, and export to described testing apparatus by ISO7816 slave mode interface, specifically comprise:
After in described intelligent SD card, SD controller monitoring has write operation to the described application interface file of memory block, the content reading write also, after resolving to described Application Protocol Data Unit order, is transmitted to safety intelligent card chip process in described intelligent SD card; Response data after described safety intelligent card chip performs described Application Protocol Data Unit instruction gives described SD controller, is written back in described application interface file by described SD controller by the response data of described order;
Described main control module reads the content of described application interface file, if judge, the file content read has renewal, be then stored in by the file content of described reading in the output buffer memory of described SD host mode interface; If the file content read does not upgrade, then postpone a period of time follow-up resuming studies and get, until read meaningful renewal or reading exceedes maximum latency;
Described main control module parses the response data of described order from the file content that described output buffer memory reads by described SD host mode interface format, and after completeness check is carried out to this response data, export described testing apparatus according to the call format of ISO7816 slave mode interface by hardware driving interface.
8. in accordance with the method for claim 7, it is characterized in that, also comprise:
Described testing apparatus receives described safety intelligent card chip and performs the response data of described order and process; If judge, test event all completes, then record, show and analyze the result of whole test event, otherwise sends next test command to tested intelligent SD card, proceeds the test of next test event.
CN201210090793.1A 2012-03-30 2012-03-30 Device and method for test of smart SD card realizing mobile payment Active CN102664043B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210090793.1A CN102664043B (en) 2012-03-30 2012-03-30 Device and method for test of smart SD card realizing mobile payment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210090793.1A CN102664043B (en) 2012-03-30 2012-03-30 Device and method for test of smart SD card realizing mobile payment

Publications (2)

Publication Number Publication Date
CN102664043A CN102664043A (en) 2012-09-12
CN102664043B true CN102664043B (en) 2015-01-21

Family

ID=46773506

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210090793.1A Active CN102664043B (en) 2012-03-30 2012-03-30 Device and method for test of smart SD card realizing mobile payment

Country Status (1)

Country Link
CN (1) CN102664043B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103324560B (en) * 2013-06-28 2016-05-25 深圳市江波龙电子有限公司 A kind of flash memories method of testing and device
CN105068910B (en) * 2015-08-13 2017-11-17 大唐微电子技术有限公司 The method of testing and device of a kind of smart card
CN106680625A (en) * 2016-12-14 2017-05-17 新智数字科技有限公司 Electronic card test method and test mainboard
CN106788790B (en) * 2017-01-17 2021-02-26 新智数字科技有限公司 Test system of bluetooth smart card
CN106841984A (en) * 2017-01-17 2017-06-13 新智数字科技有限公司 The method of testing and device of a kind of Bluetooth intelligent card
CN109033891B (en) * 2018-06-21 2020-05-19 北京智芯微电子科技有限公司 Equipment for security attack test of SPI interface chip and security attack test method thereof
CN109495353A (en) * 2018-12-29 2019-03-19 广西程天电子科技有限公司 A kind of Internet of Things card batch detection device and method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1773528A (en) * 2004-11-12 2006-05-17 厦门盛华电子科技有限公司 Mobile telephone smart card with radio-frequency communication function and peripheral processing device
CN101009898A (en) * 2007-01-25 2007-08-01 凤凰微电子(中国)有限公司 The handset supporting the novel smart card
CN101689160A (en) * 2007-06-27 2010-03-31 桑迪士克以色列公司 Memory interface card with sim functions

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006172200A (en) * 2004-12-16 2006-06-29 Dainippon Printing Co Ltd Ic card issue system, issue method and ic card

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1773528A (en) * 2004-11-12 2006-05-17 厦门盛华电子科技有限公司 Mobile telephone smart card with radio-frequency communication function and peripheral processing device
CN101009898A (en) * 2007-01-25 2007-08-01 凤凰微电子(中国)有限公司 The handset supporting the novel smart card
CN101689160A (en) * 2007-06-27 2010-03-31 桑迪士克以色列公司 Memory interface card with sim functions

Also Published As

Publication number Publication date
CN102664043A (en) 2012-09-12

Similar Documents

Publication Publication Date Title
CN102664043B (en) Device and method for test of smart SD card realizing mobile payment
CN100382065C (en) Intelligent card reading and writing method based on USB interface and its reading and writing device
CN101894290B (en) Non-contact communication device
EP3174215A1 (en) Double-frequency multi-protocol multifunctional near field communication integrated system and application method
CN101639960B (en) Electronic payment device for personal use
CN102054190B (en) Smart card and card writing terminal
EP2251986A1 (en) A near field communication device
CN101877070B (en) Non-contact IC card reader-writer and card searching method thereof
CN101916950B (en) Safety chip concentrator
CN101329739B (en) Read-write converting device and method of radio frequency smart card
CN111641427B (en) Multifunctional SIM card, card operation method and terminal
CN101770594A (en) Multi-chip intelligent card and data processing method
CN105068910A (en) Testing method and apparatus for smart card
CN102324050A (en) Method and dedicated device for recording information of home appliance controller by using RFID (Radio Frequency Identification Device) chip
CN2904116Y (en) Smart card reader-writer based on USB interface
CN102968830A (en) Attendance machine of Internet of Things
CN205453691U (en) Dual -frenquency near field communication integrated system of quick -witted many cards
CN104699644B (en) A method of driving NFC modules under Android platform
CN105611668A (en) Intelligent lighting control system and method for acquiring networking data
CN111626068A (en) Device and method for dynamically allocating protocol interface
CN101923631B (en) CPLD-based low-frequency ID card real-time simulator
CN201741169U (en) RFID reader based on mobile 7816 interface
CN106778400A (en) A kind of social security card reader
CN203773959U (en) Wireless memory card testing device
CN219320772U (en) Circuit capable of identifying two smart cards and corresponding electronic 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
C14 Grant of patent or utility model
GR01 Patent grant
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20120912

Assignee: Beijing Datang Smart Card Co., Ltd.

Assignor: Datang Microelectronics Technology Co., Ltd.

Contract record no.: 2016110000008

Denomination of invention: Device and method for test of smart SD card realizing mobile payment

Granted publication date: 20150121

License type: Common License

Record date: 20160422

LICC Enforcement, change and cancellation of record of contracts on the licence for exploitation of a patent or utility model