CN102664043A - 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
CN102664043A
CN102664043A CN2012100907931A CN201210090793A CN102664043A CN 102664043 A CN102664043 A CN 102664043A CN 2012100907931 A CN2012100907931 A CN 2012100907931A CN 201210090793 A CN201210090793 A CN 201210090793A CN 102664043 A CN102664043 A CN 102664043A
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.)
Granted
Application number
CN2012100907931A
Other languages
Chinese (zh)
Other versions
CN102664043B (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

Images

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, relate in particular to the device and method of the intelligent SD card test that realizes mobile payment.
Background technology
Mobile-phone payment is claimed in mobile payment again; Be one of focus of present emerging payment technology, its core concept is with closely contactless smart card and mobile phone terminal combine; Realize the on-site payment function through mobile phone simulated intelligence card, and utilize the network communication of mobile phone to realize the remote payment function; Simultaneously, utilize the high security of intelligent card chip to ensure the safety of payment information and payment process.That mobile-phone payment possesses is easy-to-use, safety and characteristic efficiently, is the development trend of following e-finance payment.
Aspect the mobile payment solution, China Unionpay, telecom operators and third party pay the industrial advantage that company all combines oneself and have released scheme and the product that meets self-growth.Wherein the intelligent SD card scheme of mobile operator SIM (Subscriber Identity Module) card has been selected not to be subject to by China Unionpay; And released the intelligent SD card of only supporting remote payment in 2010; Released the NFC-SD card of supporting remote payment and near field payment (Near Field Payment) simultaneously in 2011 again; And issued relevant technical standard and standard, just on market, widely popularize at present.
Intelligent SD card is meant the novel intelligent SD card that forms afterwards at the inner safety intelligent card chip (SE) that embeds the finance level of traditional SD card, and its framework is as shown in Figure 1; It as long as make that most mobile phones has the function that SD card slot just possesses mobile-phone payment on the market, thereby is beneficial to the professional expansion of mobile-phone payment under the prerequisite that does not change the hardware designs of mobile phone own.Intelligent SD card is divided into two kinds, and a kind of is the SD card of not supporting 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 the remote payment function, can't support the on-site payment function; Another kind is a SD card of supporting the SWP interface; Be called NFC-SD card or SWP-SD card; This SD card can be used on the intelligent terminal of specific support close range wireless communication (NFC, Near Field Communication) function, can support remote payment and on-site payment function.
At present; Similarly protocol conversion device only limits to the conversion of physical aspect aspect; Convert Plug-in lesser calorie (like the SIM that uses in the regular handset) or 3FF lesser calorie (like the SIM of the smaller szie that uses on the iphone mobile phone) into like the kilocalorie (such as mass transit card, interchanger etc.) of ID-1 standard; This kind equipment is the adaptive conversion of interface form, and connecting line adopts direct-connected mode, does not carry out the conversion of software protocol aspect and adaptive.
Have again; It with the Unionpay long-range financial intelligent SD card (abbreviation NFC-SD card or the SWP-SD card) product with on-the-spot mobile payment service of the support promoted of main body; This product has been expanded two pin PIN9 that are exclusively used in the near field payment interface on the original standard pin of SD card basis; PIN10, as shown in Figure 1; Wherein, PIN9 is the SWP interface, is used for that (the SWP interface of (being non-contact front-end, Contact-Less Front-end) chip links to each other with NFC portable terminal CLF; PIN10 then is used to connect power supply, is used to the chip operation power supply on the intelligent SD card.Because PIN9 is directly to be connected with intelligent card chip (Smart IC) in SD card inside with PIN10, and without the processing that blocks the SD controller, so can't carry out the conversion of protocol level and adaptive.So the needs of some producer in order to test; Be connected to three lines of the PIN9 of SD card, PIN10 and GND (ground wire) on the C6, C1, C5 interface of SIM; This conversion equipment also is to adopt the direct-connected mode of connecting line; Do not carry out the conversion of protocol level and adaptive yet, only can be used in the adaptive test of SWP interface, can not carry out communication with the ISO7816 interface of smart card in the SD card.The characteristics of above interface conversion equipment are, just carry out the interface conversion of physical aspect, and circuit-line adopts direct-connected mode, does not carry out the conversion of software protocol aspect, does not also have the participation of main control chip, so, all there is certain limitation.
This shows that existing intelligent SD card converts the interfacing equipment of SIM into, only can realize the conversion of SWP interface; And be the interface conversion of physical aspect; Circuit-line adopts direct-connected mode, does not carry out the conversion of software protocol aspect, does not also have the participation of main control chip.So, can't the adaptive existing testing apparatus that possesses the SIM interface to the intelligent SD card product of present popularization, like TC3 equipment, can not be used on the NFC mobile phone of only supporting SWP SIM scheme and test.Therefore; Need to propose a kind of device and method of realizing the intelligent SD card test of mobile payment; Can be through the intelligent SD card interface conversion being become the interface of SIM from the hardware and software protocol level, and with mobile phone or testing apparatus with SIM interface intelligent SD card each item function is tested easily.
Summary of the invention
Technical matters to be solved by this invention provides a kind of device and method of the intelligent SD card test that realizes mobile payment, can be easily with mobile phone or have the testing apparatus test intelligent SD card of SIM interface.
In order to solve the problems of the technologies described above, the invention provides a kind of device of realizing the intelligent SD card test of mobile payment, comprise SD card extender and SIM interface board, the SD card extender comprises SD card deck and main control module, wherein:
SD card deck is used to insert tested intelligent SD card, and adopts SD host mode interface to be connected with main control module;
Main control module is used for control SD host mode interface conversion is become ISO7816 slave mode interface, and adopts ISO7816 slave mode interface to be connected with the SIM interface board;
The SIM interface board is used to insert in the SIM deck of testing apparatus.
Further; Main control module on the SD card extender comprises a main control chip and on this main control chip, moves: 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:
The SD card interface module; Be used for control hardware driving interface module and receive or send the application interface file data that meet SD host mode interface format to intelligent SD card from intelligent SD card, and respectively through the inputoutput buffer buffer memory data having received or waited to send out correspondingly; SD host mode interface comprises one or more in SD interface or serial device interfaces or the multimedia storage card interface;
7816 interface modules after being used for listening to the Application Protocol Data Unit command request of testing apparatus through the ISO7816 interface, receive enabled instruction to order transceiver module output command; Control hardware driving interface module receives or sends the data that meet the ISO7816 interface format to testing apparatus from testing apparatus, and respectively through the inputoutput buffer buffer memory data having received or waited to send out correspondingly;
The hardware driving interface module is used under the control of SD card interface module or 7816 interface modules carrying out information interaction through relevant hardware driving interface and tested intelligent SD card and testing apparatus;
SD file access module; Be connected with the SD card interface module; Be used for Application Protocol Data Unit order with the packing output of SD application processing module and write application interface file and send, and/or the result data packing of said this order of intelligent SD card response that the SD card interface module the is received content that writes application interface file passes to the SD application processing module after reading through the SD card interface module;
The SD application processing module is used for ordering packing and exporting to SD file access module according to the Application Protocol Data Unit that SD host mode interface format will order transceiver module to receive; The result who perhaps SD file access module is parsed response command from the content that application interface file reads exports to the order transceiver module;
The order transceiver module also is connected with 7816 interface modules, be used for starting the order of 7816 interface modules reception Application Protocol Data Unit according to the order reception enabled instruction of input, and the SD application processing module is exported in this order that will receive; And/or the result data of this order of response of SD application processing module output exported to 7816 interface modules according to the ISO7816 interface format.
Further, main control module also comprises:
SD card initialization module is connected with the SD card interface module, is used at back initialization main control chip SD host mode interface and the related register of powering on; Initialization intelligent SD card simultaneously, comprise SD controller in this intelligent SD card electrification reset, obtain version number, obtain resetting and the protocol negotiation process of unique sequence number and safety intelligent card chip;
7816 interface initialization modules are used at the power on ISO7816 interface of back initialization main control chip of SIM interface board, make main control chip accomplish the protocol negotiation process with testing apparatus.
Further; SD card deck on the master control card extender comprises 10 pin PIN1 to PIN10; SD card deck is directly selected the PIN10 pin; Be used for connecting as power supply signal the C1 pin of ISO7816 interface on the SIM interface board, PIN1 to PIN8 pin is connected with corresponding SD host mode interface respectively according to SD host mode interface shape; The PIN9 pin is used to transmit the single-wire-protocol signal, directly with the SIM interface board on the C6 pin of ISO7816 interface be connected.
Further,
Main control chip in the main control module is supported SD host mode interface, supports ISO7816 slave mode interface simultaneously;
Testing apparatus comprises mobile phone and the special test equipment with SIM deck.
In order to solve the problems of the technologies described above; The invention provides a kind of method that realizes the intelligent SD card test of mobile payment; Relate to the tested intelligent SD card and the main control module that insert SD card deck on SIM interface board and the SD card extender of the SIM deck that inserts testing apparatus, this method comprises:
Main control module is received the order that meets the ISO7816 slave mode that testing apparatus is sent, and presses this command context of SD host mode interface format packing, and the command context of packing is written in the application interface file; When judge from application interface file, read in have renewal, then go out the result data of tested intelligent SD card response command, and export to testing apparatus by ISO7816 slave mode interface from the Context resolution that reads.
Further, before main control module is received the order that meets the ISO7816 slave mode that testing apparatus sends, also comprise:
With said SD host mode interface, the interface initialization of ISO7816 slave mode of main control module, will survey the intelligent SD card initialization; Wherein SD host mode interface comprises one or more in SD interface or serial device interfaces or the multimedia storage card interface.
Further, main control module is received the order that meets the ISO7816 slave mode that testing apparatus is sent, and presses this command context of SD host mode interface format packing, and the command context of packing is written in the application interface file, specifically comprises:
Main control module receives the Application Protocol Data Unit order that meets ISO7816 slave mode interface format that testing apparatus is sent through the hardware driving interface; And after order carried out completeness check; According to SD host mode interface format with the packing of this order data, with the pattern of written document be written to the order data of packing newly-built or the application interface file opened in.
Further, main control module when judge from application interface file, read in have renewal, then go out the result data that tested intelligent SD card responds said order, and export to testing apparatus by ISO7816 slave mode interface from the Context resolution that reads, specifically comprise:
After the SD controller monitoring has write operation to the application interface file of memory block in the intelligent SD card, read the content that writes and resolve to, be transmitted to safety intelligent card chip processing in the intelligent SD card with after the protocol Data Unit order; The response data that the safety intelligent card chip is carried out after the Application Protocol Data Unit instruction is given SD controller, and the response data that will be ordered by the SD controller is written back in the application interface file;
Main control module reads the content of application interface file, if judge the file content that reads renewal is arranged, and then the file content that reads is stored in the output buffers of SD host mode interface; If the file content that reads does not upgrade, then postpone a period of time continued and read, till reading meaningful renewal or reading above maximum latency;
Main control module parses the response data of order from the file content that output buffers reads by SD host mode interface format; And after this response data carried out completeness check, according to the call format of ISO7816 slave mode interface through hardware driving interface output testing apparatus.
Further, this method also comprises:
Testing apparatus is received the exectorial response data of safety intelligent card chip and is handled; All accomplish if judge test event, then write down, show and analyze the result of whole test events, otherwise send next bar test command, proceed the test of next test event to tested intelligent SD card.
The present invention is through becoming the intelligent SD card interface conversion from the hardware and software protocol level interface of SIM; Promptly adopt the cooperation of hardware unit and software protocol; Automatically the SD interface protocol and the ISO7816 interface protocol of intelligent SD card are changed; Be implemented in based on the tracking and testing that on the general purpose test equipment of ISO7816 interface protocol the intelligent SD card product is carried out signaling; Be particularly useful for the trace debug positioning analysis problem in the research and development of products stage of intelligent SD card, the problem that also can be used for after product puts it into commercial operation is complained analysis.Consider the compatibility of test intelligent SD card and various CLF chip solution simultaneously, can be easily all kinds of intelligent SD cards be converted in the SIM slot that is inserted into mobile phone behind the SIM interface shape and carry out the functional test of SD card.
Description of drawings
Fig. 1 is the inside structure synoptic diagram of existing intelligent SD card;
Fig. 2 is the structural representation of device embodiment of the intelligent SD card test of realization mobile payment of the present invention;
Fig. 3 is the inner structure synoptic diagram of main control module among the device embodiment shown in Figure 2;
Fig. 4 is the process flow diagram of method embodiment of the intelligent SD card test of realization mobile payment of the present invention.
Embodiment
Below in conjunction with accompanying drawing and preferred embodiment technical scheme of the present invention is at length set forth.Should be appreciated that following listed examples only is used for explanation and explains the present invention, and do not constitute the restriction to technical scheme of the present invention.
The device embodiment of the intelligent SD card test of realization mobile payment provided by the invention, its structure is as shown in Figure 2, comprises SD card extender and SIM interface board, and wherein, the SD card extender comprises SD card deck and main control module, wherein:
SD card deck is used to insert tested intelligent SD card, and adopts SD host mode interface to be connected with main control module;
Main control module is used for control SD host mode interface conversion is become ISO7816 slave mode interface, and adopts ISO7816 slave mode interface to be connected with the SIM interface board;
The SIM interface board is used to insert in the SIM deck of testing apparatus (mobile phone or have the testing apparatus of SIM interface).
In said apparatus embodiment, the main control module on the SD card extender is actually on a main control chip that operation one interface conversion software constitutes.The structure of this main control module embodiment is 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:
The SD card interface module; Be used for control hardware driving interface module and receive or send application interface file (SCIF) data that meet SD host mode interface format to intelligent SD card from intelligent SD card, and respectively through the inputoutput buffer buffer memory data having received or waited to send out correspondingly; SD host mode interface comprises one or more in SD interface or serial device interfaces (SPI, Serial Peripheral Interface) or multimedia storage card (MMC, the Multi Media Card) interface;
7816 interface modules are used for listen to APDU (application protocol processing unit) command request of testing apparatus through the ISO7816 interface after, receive enabled instruction to order transceiver module output command; Receive or send the data that meet the ISO7816 interface format from testing apparatus to testing apparatus, and respectively through the inputoutput buffer buffer memory data having received or waited to send out correspondingly;
The hardware driving interface module is used for carrying out information interaction through the data transmit-receive and the tested intelligent SD card of SD card interface module, carries out information interaction through the data transmit-receive and the testing apparatus of 7816 interface modules;
SD file access module; Be used for the SCIF that APDU order with SD application processing module packing writes intelligent SD card memory block (flash memory) and send, and/or pass to the SD application processing module after the content that the result data packing that the intelligent SD card that the SD card interface module receives responds said order writes SCIF read through the SD card interface module;
The SD application processing module is used for packing according to the APDU order that the SD interface format will order transceiver module to receive, and submits to SD file access module to carry out the SCIF write operation; The result that perhaps will go out to respond the APDU order from the SCIF Context resolution that SD file access module reads exports to the order transceiver module;
Order transceiver module, also be connected, be used for receiving enabled instruction and start output buffer reception APDU order from 7816 interface modules according to order from the input of 7816 interface modules with 7816 interface modules; The SD application processing module is exported in the APDU order that receives; And/or the result that the response APDU that the SD application processing module is exported is ordered exports to 7816 interface modules according to the ISO7816 interface format.
In said apparatus embodiment, main control module also comprises:
SD card initialization module is connected with the SD card interface module, is used at back initialization main control chip SD host mode interface and the related register of powering on; The tested intelligent SD card of initialization simultaneously, comprise the SD controller electrification reset, obtain version number, obtain resetting and the protocol negotiation process of unique sequence number and SE.
7816 interface initialization modules are used for initialization main control chip ISO7816 interface after the SIM interface board powers on, and make the protocol negotiation process of main control chip completion and testing apparatus.
In said apparatus embodiment,
Main control module is through the command interaction of the realization of the SCIF in the intelligent SD card memory block with SE.SD file access module through open, reading and writing and one or more operations of closing among the SCIF conduct interviews to SCIF.
The present invention for compatibility not with the SWP interface with have the intelligent SD card of two types SWP interfaces; Directly select the PIN10 pin through SD card deck on the master control card extender; Be used for connecting as power supply signal the C1 pin of ISO7816 interface on the SIM interface board, PIN1~PIN8 pin then is connected (being no more than 8 pins at most) respectively according to the SD/SPI/MMC interface shape of main control module with corresponding interface; The PIN9 pin then is used to transmit the SWP signal, directly connects the C6 pin of ISO7816 interface on the SIM interface board.
Main control module (main control chip of runnable interface switching software) is the core devices of whole SD card extender, and the communications protocol conversion of controlling intelligent SD card and SIM (testing apparatus) is connected with physical interface.Wherein, the type selecting of main control chip need satisfy externally can support SD/SPI/MMC host mode interface on the interface, supports ISO7816 slave mode interface simultaneously, and this type of chip is more on the market, and price is more cheap, is easy to buy.Main control chip links to each other with the PIN1~PIN8 pin of SD card deck through the SD/SPI/MMC interface, and the C1, C2, C3, C5, C7 that pass through ISO7816 interface and SIM interface board totally five pins link to each other, the C4 of SIM interface board, C8 pin are put sky.After the power supply of main control chip is inserted into testing apparatus through the SIM interface board; By testing apparatus is that the C1 and the C5 pin of SIM interface board powers on; C1 and C5 pin directly provide power supply for ISO7816 interface in 7816 interface modules of main control module, and then make the main control module operate as normal.
The SIM interface board is used for being inserted in the testing apparatus of mobile phone or special use in the device of intelligent SD card test of the present invention; Like TC3 equipment; 8 pins of SIM interface board directly link to each other with 8 pins of testing apparatus, carry out communication through ISO7816 interface and SWP interface protocol;
Tested intelligent SD card belongs to plug-in device, can be inserted into during test in the SD card deck, extracts when not testing.
The present invention is according to said apparatus embodiment; The method embodiment of the intelligent SD card test that realizes mobile payment correspondingly also is provided, has related to SD card deck, main control module and SIM interface board on the SD card extender, its flow process is as shown in Figure 4; It is the SIM deck that inserts testing apparatus at the SIM interface board; Intelligent SD card inserts SD card deck, and the back startup that powers 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 begins the initialization of ISO7816 interface and SD interface; Wherein the ISO7816 standard criterion is followed in the ISO7816 interface initialization; Mainly comprise three links: reset and protocol negotiation process (PPS) control; The control hardware driving interface realizes the transmitting-receiving operation of initialized information, accomplishes the electrification reset and the PPS of main control module and SIM interface board; The initialization of SD interface comprises SD/SPI/MMC interface initialization and related register setting, and the SD controller of accomplishing intelligent SD card resets, obtains version number, obtains unique sequence number, and accomplishes resetting and operation such as PPS of SE; Make tested intelligent SD card, main control module and SIM interface board (testing apparatus) reach normal operating conditions.
It should be noted that; Because the operating voltage range of 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 because electricity shortage and can't operate as normal, so should carry voltage parameter in the repositioning information when carrying out the ISO7816 interface initialization and notify testing apparatus that the supply voltage of 2.7V~3.3V is provided.
120: main control module is received the APDU order that meets the ISO7816 interface format that testing apparatus is sent, and presses this command context of SD interface format packing, and the command context of packing is written among the SCIF;
Main control module receives the APDU command request that meets the ISO7816 interface format that testing apparatus is sent through the hardware driving interface; And after it is carried out completeness check; According to the SD interface format APDU order packing is handled, the order data after will packing with the pattern of written document is written to newly-built or opens in the SCIF file.
130: whether the content that master control module judges reads from SCIF has renewal, be then to carry out next step, otherwise the execution of delay a period of time (as postponing 100ms) this step of continued;
SD controller monitoring in the intelligent SD card after reading the content that writes automatically and resolving to the APDU order, is transmitted to the interior SE processing of card after to the SCIF file of memory block write operation being arranged; SE gives SD controller the command response data after executing the APDU instruction, by the SD controller command response data is written back in the SCIF file;
Main control module reads the SCIF file content, if the file content that reads has renewal, then is stored in the output buffers of SD interface; If the file content that reads does not upgrade, then postpone a period of time continued and read (such as execution in step 120 continued read), till reading meaningful renewal or reading above maximum latency.
140: main control module is resolved the result data of SE response APDU order on the intelligent SD card from the file content that upgrades, export to the SIM interface board according to the ISO7816 interface format through the hardware driving interface;
Main control module reads the file content of renewal from the output buffers of SD interface; From the file that reads, parse APDU command response data by the SD interface format; And after these data are carried out completeness check, require through the output of hardware driving interface according to the ISO7816 interface format.
150: testing apparatus is received the result data of SE response APDU order through the SIM interface board and is handled;
160: testing apparatus judges whether test event is accomplished, be then write down, demonstration and analytical test result, otherwise continue to give next bar test command, return execution in step 120.
More than explanation is merely the preferable embodiment of the present invention; But protection scope of the present invention is not limited thereto; Any technician who is familiar with the present technique field is in the technical scope that the present invention discloses, and the variation 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 (10)

1. a device of realizing the intelligent SD card test of mobile payment is characterized in that comprise SD card extender and SIM interface board, said SD card extender comprises SD card deck and main control module, wherein:
SD card deck is used to insert tested intelligent SD card, and adopts SD host mode interface to be connected with main control module;
Main control module is used for control said SD host mode interface conversion is become ISO7816 slave mode interface, and adopts said ISO7816 slave mode interface to be connected with the SIM interface board;
The SIM interface board is used to insert in the SIM deck of testing apparatus.
2. according to the described device of claim 1; It is characterized in that; Main control module on the said SD card extender comprises a main control chip and on this main control chip, moves: 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:
The SD card interface module; Be used for control hardware driving interface module and receive or send the application interface file data that meet said SD host mode interface format to said intelligent SD card from said intelligent SD card, and respectively through the inputoutput buffer buffer memory data having received or waited to send out correspondingly; Said SD host mode interface comprises one or more in SD interface or serial device interfaces or the multimedia storage card interface;
7816 interface modules after being used for listening to the Application Protocol Data Unit command request of said testing apparatus through the ISO7816 interface, receive enabled instruction to order transceiver module output command; Control hardware driving interface module receives or sends the data that meet the ISO7816 interface format to said testing apparatus from said testing apparatus, and respectively through the inputoutput buffer buffer memory data having received or waited to send out correspondingly;
The hardware driving interface module is used under the control of SD card interface module or 7816 interface modules carrying out information interaction through relevant hardware driving interface and said tested intelligent SD card and said testing apparatus;
SD file access module; Be connected with the SD card interface module; Be used for Application Protocol Data Unit order with the packing output of SD application processing module and write application interface file and send, and/or pass to the SD application processing module after the content that the result data packing that the said intelligent SD card that the SD card interface module receives responds said order writes application interface file read through the SD card interface module;
The SD application processing module is used for ordering packing and exporting to SD file access module according to the said Application Protocol Data Unit that said SD host mode interface format will order transceiver module to receive; Perhaps SD file access module is parsed the result who responds said order from the content that said application interface file reads and export to the order transceiver module;
The order transceiver module also is connected with 7816 interface modules, be used for starting 7816 interface modules according to the said order reception enabled instruction of importing and receive said Application Protocol Data Unit order, and the SD application processing module is exported in the said order that will receive; And/or the result data of the said order of response of SD application processing module output exported to 7816 interface modules according to the ISO7816 interface format.
3. according to the described device of claim 2, it is characterized in that said main control module also comprises:
SD card initialization module is connected with said SD card interface module, is used at SD host mode interface and the related register described in the said main control chip of back initialization that power on; The said intelligent SD card of initialization simultaneously, comprise SD controller in this intelligent SD card electrification reset, obtain version number, obtain resetting and the protocol negotiation process of unique sequence number and safety intelligent card chip;
7816 interface initialization modules are used at the power on ISO7816 interface of back initialization said main control chip of said SIM interface board, make said main control chip accomplish the protocol negotiation process with testing apparatus.
4. according to the described device of claim 2, it is characterized in that,
Said SD card deck on the said master control card extender comprises 10 pin PIN1 to PIN10; Said SD card deck is directly selected the PIN10 pin; Be used for connecting as power supply signal the C1 pin of ISO7816 interface on the said SIM interface board, PIN1 to PIN8 pin is connected with corresponding SD host mode interface respectively according to said SD host mode interface shape; The PIN9 pin is used to transmit the single-wire-protocol signal, directly with said SIM interface board on the C6 pin of ISO7816 interface be connected.
5. according to the described device of claim 2, it is characterized in that,
Said main control chip in the said main control module is supported said SD host mode interface, supports said ISO7816 slave mode interface simultaneously;
Said testing apparatus comprises mobile phone and the special test equipment with said SIM deck.
6. the method for an intelligent SD card test that realizes mobile payment is characterized in that, relates to the tested intelligent SD card and the main control module of insertion SD card deck on SIM interface board and the SD card extender of the SIM deck that inserts testing apparatus, and this method comprises:
Main control module is received the order that meets the ISO7816 slave mode that testing apparatus is sent, and presses this command context of SD host mode interface format packing, and the command context of packing is written in the application interface file; When judge from said application interface file, read in have renewal, then go out the result data that said tested intelligent SD card responds said order, and export to said testing apparatus by ISO7816 slave mode interface from the said Context resolution that reads.
7. according to the described method of claim 6, it is characterized in that, before said main control module is received the order that meets the ISO7816 slave mode that testing apparatus sends, also comprise:
With said SD host mode interface, the interface initialization of said ISO7816 slave mode of said main control module, with the initialization of said survey intelligent SD card; Wherein said SD host mode interface comprises one or more in SD interface or serial device interfaces or the multimedia storage card interface.
8. according to the described method of claim 7; It is characterized in that; Said main control module is received the order that meets the ISO7816 slave mode that testing apparatus is sent; Press said this command context of SD host mode interface format packing, and the command context of packing be written in the application interface file, specifically comprise:
Said main control module receives the Application Protocol Data Unit order that meets said ISO7816 slave mode interface format that said testing apparatus is sent through the hardware driving interface; And after said order carried out completeness check; According to said SD host mode interface format with the packing of this order data, the said order data that will pack with the pattern of written document be written to newly-built or the application interface file opened in.
9. according to the described method of claim 8; It is characterized in that; Said main control module when judge from said application interface file, read in have renewal; Then go out the result data that said tested intelligent SD card responds said order, and export to said testing apparatus, specifically comprise by ISO7816 slave mode interface from the said Context resolution that reads:
After the SD controller monitoring has write operation to the said application interface file of memory block in the said intelligent SD card, after reading the content that writes and resolving to said Application Protocol Data Unit order, be transmitted to safety intelligent card chip processing in the said intelligent SD card; The response data that said safety intelligent card chip is carried out after the said Application Protocol Data Unit instruction is given said SD controller, is written back in the said application interface file by the response data of said SD controller with said order;
Said main control module reads the content of said application interface file, if judge the file content that reads renewal is arranged, and then the said file content that reads is stored in the output buffers of said SD host mode interface; If the file content that reads does not upgrade, then postpone a period of time continued and read, till reading meaningful renewal or reading above maximum latency;
Said main control module parses the response data of said order from the file content that said output buffers reads by said SD host mode interface format; And after this response data carried out completeness check, export said testing apparatus through the hardware driving interface according to the call format of ISO7816 slave mode interface.
10. according to the described method of claim 9, it is characterized in that, also comprise:
Said testing apparatus receives that said safety intelligent card chip carries out the response data of said order and handle; All accomplish if judge test event, then write down, show and analyze the result of whole test events, otherwise send next bar test command, proceed the test of next test event to tested intelligent SD card.
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 true CN102664043A (en) 2012-09-12
CN102664043B 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)

Cited By (7)

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

Citations (4)

* 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
JP2006172200A (en) * 2004-12-16 2006-06-29 Dainippon Printing Co Ltd Ic card issue system, issue method and ic card
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

Patent Citations (4)

* 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
JP2006172200A (en) * 2004-12-16 2006-06-29 Dainippon Printing Co Ltd Ic card issue system, issue method and ic card
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

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103324560A (en) * 2013-06-28 2013-09-25 深圳市江波龙电子有限公司 Testing method and device of flash memory
CN103324560B (en) * 2013-06-28 2016-05-25 深圳市江波龙电子有限公司 A kind of flash memories method of testing and device
CN105068910A (en) * 2015-08-13 2015-11-18 大唐微电子技术有限公司 Testing method and apparatus for smart card
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
CN106788790A (en) * 2017-01-17 2017-05-31 新智数字科技有限公司 A kind of test system of Bluetooth intelligent card
CN106841984A (en) * 2017-01-17 2017-06-13 新智数字科技有限公司 The method of testing and device of a kind of Bluetooth intelligent card
CN106788790B (en) * 2017-01-17 2021-02-26 新智数字科技有限公司 Test system of bluetooth smart card
CN109033891A (en) * 2018-06-21 2018-12-18 北京智芯微电子科技有限公司 Equipment and its security attack test method for SPI interface chip secure attack test
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

Also Published As

Publication number Publication date
CN102664043B (en) 2015-01-21

Similar Documents

Publication Publication Date Title
CN100382065C (en) Intelligent card reading and writing method based on USB interface and its reading and writing device
CN102664043B (en) Device and method for test of smart SD card realizing mobile payment
EP2590107B1 (en) Method of managing incoming commands related to contactless applications within a wireless apparatus such as a NFC enabled mobile phone
CN101639960B (en) Electronic payment device for personal use
EP3174215A1 (en) Double-frequency multi-protocol multifunctional near field communication integrated system and application method
EP2251986A1 (en) A near field communication device
CN102325210A (en) Universal mobile payment terminal compatible with multiple operators and implementation method thereof
CN101770594B (en) Multi-chip intelligent card and data processing method
CN102054190B (en) Smart card and card writing terminal
CN207995406U (en) A kind of system that parameter configuration is carried out based on NFC communication module
CN102402744A (en) Data processing method and system for mobile equipment and mobile equipment
CN104239829A (en) Near-field communication device and method thereof
CN105068910A (en) Testing method and apparatus for smart card
CN102163273A (en) Card reading equipment supporting SW-protocol-based mobile payment SD card
WO2010118612A1 (en) Method for installing contactless payment application, smart card and mobile terminal
CN101968762B (en) NFC-SIM (Near Field Communication-Subscriber Identity Module) card chip simulator
CN2904116Y (en) Smart card reader-writer based on USB interface
CN201242752Y (en) Apparatus for reading and writing smart card
CN205453691U (en) Dual -frenquency near field communication integrated system of quick -witted many cards
CN101799881A (en) TD-SCDMA communication card of SD card interface
CN201674037U (en) Switching device and card reader
CN204288237U (en) A kind of Network Smart Card Reader-Writer
CN100394359C (en) Interface for intelligent card simulative debugging system
CN103679257B (en) A kind of contactless payment telecommunications integrated circuit card and implementation method
CN104699644B (en) A method of driving NFC modules under Android platform

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