CN101968762B - NFC-SIM (Near Field Communication-Subscriber Identity Module) card chip simulator - Google Patents
NFC-SIM (Near Field Communication-Subscriber Identity Module) card chip simulator Download PDFInfo
- Publication number
- CN101968762B CN101968762B CN200910057655A CN200910057655A CN101968762B CN 101968762 B CN101968762 B CN 101968762B CN 200910057655 A CN200910057655 A CN 200910057655A CN 200910057655 A CN200910057655 A CN 200910057655A CN 101968762 B CN101968762 B CN 101968762B
- Authority
- CN
- China
- Prior art keywords
- pin
- swp
- nfc
- sim
- control module
- 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
Links
- 238000001514 detection method Methods 0.000 claims abstract 9
- 101100478989 Caenorhabditis elegans swp-1 gene Proteins 0.000 claims abstract 8
- 238000004088 simulation Methods 0.000 abstract 3
- 238000000034 method Methods 0.000 abstract 1
Images
Landscapes
- Telephone Function (AREA)
Abstract
The invention discloses an NFC-SIM (Near Field Communication-Subscriber Identity Module) card chip simulator which comprises a simulation chip and a detection control module, wherein an SWP (Single Wire Protocol)_2 pin of the detection control module is connected with an SWP_1 pin of the simulation chip, a SWP_3 pin of the detection control module is connected with a C6 contact pin 6 of terminal card-reading equipment, and a power-supply detecting pin of the detection control module is connected with a power-supply output pin of the terminal card-reading equipment; the detection control module is used for detecting the level on the power-supply detecting pin, and if the detected level is below 2V, the SWP_2 pin and the SWP_3 pin are directly short-circuited inside the detection control module; and if the detected level is above 2V, a 0V low level is directly output to the SWP_1 pin of the simulation chip. When the SIM function part of a user program is debugged, the NFC-SIM chip simulator can be matched with NFC terminal equipment to normally work without shielding a program segment for detecting an SWP interface in the user program at the real time, satisfies the debugging habit of a user, facilitates the debugging process of the user and benefits the improvement of the debugging efficiency.
Description
Technical field
The present invention relates to IC chip emulator field, particularly relate to a kind of NFC-SIM the core of the card sheet emulator.
Background technology
NFC-SIM the core of the card sheet be a new generation combination NFC (Near Field Communication; Near Field Communication) and the intelligent card chip of SIM (Subscriber Identity Module client identification module) card function; The function of traditional SIM promptly is provided; Comprise the NFC technology again, be mainly used in frontiers such as mobile phone mobile payment.The same with other intelligent card chip; The user program that also has the user to develop in the NFC-SIM the core of the card sheet; But different with user program in the SIM is that the user program in the NFC-SIM the core of the card sheet has comprised realization SIM function and realized the two-part program of NFC function.NFC-SIM the core of the card sheet is when cooperating NFC mobile phone (supporting the mobile phone of NFC technology) work; SIM functional module in the user program is through the SIM module communication of 7816 interfaces (meeting the ISO7816 agreement) with mobile phone; NFC module in the user program (meets the SWP agreement through the SWP interface; Single Wire Protocol, single-wire-protocol standard) with the NFC module communication of mobile phone.The NFC-SIM card is the same with traditional SIM to have C1-C8 totally 8 contacts, and wherein C6 is used for the SWP interface of NFC, and all the other still are used for 7816 interfaces.Whether the user program in the NFC-SIM the core of the card sheet even only carry out the SIM function, also can detect the signal on the SWP interface (C6) at work in real time, be the NFC mobile phone with what judge connection.Even NFC does not work; Still can give the low level of a fixing 0V on the C6 pin of NFC mobile phone; Detect the low level of this 0V, what user program was just thought connection is normal N FC mobile phone, if detect the low level less than this 0V; User program just thinks that the NFC mobile phone that connects is undesired, can do the processing that makes mistakes.
The writing and debugging of user program in the same NFC-SIM the core of the card sheet, employed instrument also is a NFC-SIM the core of the card sheet emulator.Use emulation chip to substitute NFC-SIM card product chips, analog equipment chip functions in the emulator.The same with other intelligent card chips, the user program in the NFC-SIM the core of the card sheet also need be communicated by letter with card-reading apparatus when artificial debugging, so that the debug communications function.When the NFC of debug user programs function, must use the NFC mobile phone.When the SIM of debug user programs function; The NFC mobile phone is a kind of available selection; But common meeting in 7816 the intelligent card chip user program debugging; What the user used basically all is the contact intelligent card CR, uses this type CR debugging 7816 communications familiar in the extreme and convenient as far as the user.Therefore, than the SIM function with NFC mobile phone debugging NFC-SIM the core of the card sheet user program, particularly during 7816 communications portion, most users still tend to use more familiar and contact CR easily.But; Because most contact CRs are only supported 7816 interfaces, do not support the SWP interface of NFC, the C6 pin on the CR is unsettled; So when connecting these CRs, it is the signal level of not stationary state that the SWP of the emulation chip of NFC-SIM the core of the card sheet emulator goes up detected.When NFC-SIM the core of the card sheet emulator connects the SIM function of these CR debug user programs like this; Since in the user program still at the signal that detects in real time on the SWP interface (C6); Detected is the signal level of not stationary state; User program will get into the abnormity processing of makeing mistakes, and causes the SIM funtion part of user program can not use the good debug of contact CR.
Existing solution is; When if the user uses the SIM funtion part of contact CR debug user programs; Need fall all real-time program segment notes (i.e. shielding) that detect the SWP interface in the user program, when connecting NFC mobile phone debugging NFC funtion part, must open these program segments again; Inconvenience has very influenced the efficient of debugging work.
Summary of the invention
The technical matters that the present invention will solve provides a kind of NFC-SIM the core of the card sheet emulator; The SIM funtion part of debug user programs; Need not to mask in the user program program segment that detects the SWP interface in real time, and the operate as normal can cooperate the NFC mobile phone as the terminal card-reading apparatus time.
For solving the problems of the technologies described above; NFC-SIM the core of the card sheet emulator of the present invention; Comprise emulation chip; Said emulation chip has 7816 pins that meet the ISO7816 agreement, comprises the input pin that resets, clock input pin and bi-directional data pin, is connected with the output pin that resets, clock output pin and the bi-directional data pin of terminal card-reading apparatus respectively; The power supply that said emulation chip uses said emulator to provide, and have the SWP_1 pin that meets the SWP agreement;
Comprise that also one detects control module, it has SWP_2 pin and the SWP_3 pin that meets the SWP agreement, and power supply detects pin; Said SWP_2 pin is connected with the SWP_1 pin of emulation chip, and the SWP_3 pin is connected with C6 contact pins on the card-reading apparatus of terminal, and power supply detects pin and is connected with the power supply output pin of terminal card-reading apparatus;
Said detection control module detects said power supply and detects the level on the pin, if the level that detects is below the 2V, then within it portion directly with SWP_2 pin and SWP_3 pin short circuit mutually; If the level that detects is more than the 2V, then directly to the low level of the 0V of SWP_1 output of emulation chip.
Adopt NFC-SIM the core of the card sheet emulator of the present invention; Make the user can use the SIM funtion part of common contact CR debug user programs; Need not to mask the program segment that detects the SWP interface in the user program in real time, the operate as normal when said emulator also can cooperate the NFC mobile phone as the terminal card-reading apparatus simultaneously.Satisfy user's debugging custom, made things convenient for user's debug process, helped to improve the efficient of debugging.
Description of drawings
Below in conjunction with accompanying drawing and embodiment the present invention is done further detailed explanation:
Accompanying drawing is a NFC-SIM the core of the card sheet emulator structural representation of the present invention.
Embodiment
As shown in the figure, NFC-SIM the core of the card sheet emulator 1 of the present invention comprises emulation chip 2, detects control module 3.Described emulation chip 2 is used for the function of analog equipment chip, and user program is carried out in emulation chip 2.Described emulation chip 2 has 7816 pins that meet the ISO7816 agreement; Comprise the input pin RST_IN that resets, clock input pin CLK_IN, bi-directional data pin IO_A; Be connected with the output pin RST_OUT that resets, clock output pin CLK_OUT, the bi-directional data pin IO_B of terminal card-reading apparatus 4 respectively, can carry out 7816 communications.The power supply that described emulation chip 2 uses NFC-SIM the core of the card sheet emulator 1 to provide, the power supply (power supply that product card uses terminal card-reading apparatus 4 to provide) that does not use terminal card-reading apparatus 4 to provide.Described emulation chip 2 meets the SWP pin SWP_1 of SWP agreement in addition.Described detection control module 3 has the SWP_2 pin, and SWP_3 pin, power supply detect pin VCC_IN (not shown).Said SWP_2 pin is connected with the SWP_1 pin of emulation chip 2, and the SWP_3 pin is connected with C6 contact pins on the terminal card-reading apparatus 4, and said power supply detects pin VCC_IN and is connected (not shown) with the power supply output pin VCC_OUT of terminal card-reading apparatus 4.Described detection control module 3 can detect power supply and detect the level on the pin VCC_IN, if detect the level below the 2V, and then direct short circuit SWP_2 of portion and SWP_3 pin within it; If detect the above level of 2V, then directly export the low level of a 0V to the SWP_2 pin.
If terminal card-reading apparatus 4 is NFC mobile phones, then its power supply electrical level all is 1.8V; If terminal card-reading apparatus 4 is contact CRs, then its power supply electrical level is 3.3V or 5V.Like this, when terminal card-reading apparatus 4 is the contact CR, detects control module 3 so and detect detected 3.3V of being exactly or 5V level on the pin VCC_IN at power supply; Detecting control module 3 can be to the low level of a 0V of SWP_2 pin output; When detecting the program segment of SWP interface in real time in the emulation chip 2 run user programs; On the SWP_1 pin, detect the low level of 0V all the time; The user just can cooperate the SIM funtion part of contact CR good debug user program, and need not to mask the program segment that detects the SWP interface in the user program in real time.When terminal card-reading apparatus 4 is the NFC mobile phone; Detect control module 3 so and detect the detected 1.8V of being exactly level on the pin VCC_IN at power supply; Detect control module 3 direct short circuit SWP_2 of portion and SWP_3 pin within it; During emulation chip 2 run user programs, on the SWP_1 pin, just be equivalent to directly connect the C6 contact pins of NFC mobile phone, the user just can cooperate the SIM and the NFC funtion part of NFC mobile phone good debug user program.
More than through embodiment the present invention has been carried out detailed explanation, but these are not to be construed as limiting the invention.Under the situation that does not break away from the principle of the invention, those skilled in the art also can make many distortion and improvement, and these also should be regarded as protection scope of the present invention.
Claims (3)
1. NFC-SIM the core of the card sheet emulator; Comprise emulation chip; It is characterized in that: said emulation chip has 7816 pins that meet the ISO7816 agreement; Comprise the input pin that resets, clock input pin and bi-directional data pin, be connected with the output pin that resets, clock output pin and the bi-directional data pin of terminal card-reading apparatus respectively; The power supply that said emulation chip uses said emulator to provide, and have the SWP_1 pin that meets the SWP agreement;
Comprise that also one detects control module, it has SWP_2 pin and the SWP_3 pin that meets the SWP agreement, and power supply detects pin; Said SWP_2 pin is connected with the SWP_1 pin of emulation chip, and the SWP_3 pin is connected with C6 contact pins on the card-reading apparatus of terminal, and power supply detects pin and is connected with the power supply output pin of terminal card-reading apparatus;
Said detection control module detects said power supply and detects the level on the pin, if the level that detects is below the 2V, then within it portion directly with SWP_2 pin and SWP_3 pin short circuit mutually; If the level that detects is more than the 2V, then directly export the low level of a 0V to the SWP_1 of emulation chip.
2. NFC-SIM the core of the card sheet emulator as claimed in claim 1; It is characterized in that: said terminal card-reading apparatus is the contact CR; When the detection control module detects 3.3V or 5V level on power supply detection pin, then directly export the low level of a 0V to the SWP_1 of emulation chip; When detecting the program segment of SWP interface in real time in the emulation chip run user program; On the SWP_1 pin, detect the low level of 0V all the time; The user cooperates the SIM funtion part of contact CR good debug user program, need not to mask the program segment that detects the SWP interface in the user program in real time.
3. NFC-SIM the core of the card sheet emulator as claimed in claim 1; It is characterized in that: said terminal card-reading apparatus is the NFC mobile phone; Detect control module and detect when detecting the 1.8V level on the pin at power supply, direct short circuit SWP_2 of portion and SWP_3 pin within it are during emulation chip run user program; On the SWP_1 pin, just be equivalent to directly connect the C6 contact pins of NFC mobile phone, the user can cooperate the SIM and the NFC funtion part of NFC mobile phone good debug user program.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN200910057655A CN101968762B (en) | 2009-07-27 | 2009-07-27 | NFC-SIM (Near Field Communication-Subscriber Identity Module) card chip simulator |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN200910057655A CN101968762B (en) | 2009-07-27 | 2009-07-27 | NFC-SIM (Near Field Communication-Subscriber Identity Module) card chip simulator |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN101968762A CN101968762A (en) | 2011-02-09 |
| CN101968762B true CN101968762B (en) | 2012-09-12 |
Family
ID=43547922
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN200910057655A Active CN101968762B (en) | 2009-07-27 | 2009-07-27 | NFC-SIM (Near Field Communication-Subscriber Identity Module) card chip simulator |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN101968762B (en) |
Families Citing this family (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP2629499B1 (en) * | 2012-02-15 | 2014-08-27 | ST-Ericsson SA | Battery management scheme for NFC |
| CN103347105B (en) * | 2013-06-19 | 2017-03-22 | 上海坤锐电子科技有限公司 | Mobile phone radio-frequency SIM card with SWP function in compatible mode |
| FR3020164B1 (en) * | 2014-04-18 | 2020-10-16 | Compagnie Ind Et Financiere Dingenierie Ingenico | EMULATION MODULE OF AT LEAST ONE PAYMENT CARD, METHOD, PAYMENT DEVICE, COMPUTER PROGRAM PRODUCT AND CORRESPONDING STORAGE MEDIUM |
| CN105376758B (en) * | 2015-10-09 | 2019-03-26 | Tcl移动通信科技(宁波)有限公司 | Method and system for detecting SIM card dropping |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101013903A (en) * | 2007-01-12 | 2007-08-08 | 上海复旦微电子股份有限公司 | Near-field communication handset with multi-way switch interface and method of power supply and communication thereof |
| CN101236453A (en) * | 2008-01-30 | 2008-08-06 | 上海华虹集成电路有限责任公司 | Connection structure and communicating method between NFC control chip and SIM card chip |
| CN101465675A (en) * | 2008-12-31 | 2009-06-24 | 中兴通讯股份有限公司 | Enhancement type close range wireless communication eNFC device and implementing method thereof |
-
2009
- 2009-07-27 CN CN200910057655A patent/CN101968762B/en active Active
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101013903A (en) * | 2007-01-12 | 2007-08-08 | 上海复旦微电子股份有限公司 | Near-field communication handset with multi-way switch interface and method of power supply and communication thereof |
| CN101236453A (en) * | 2008-01-30 | 2008-08-06 | 上海华虹集成电路有限责任公司 | Connection structure and communicating method between NFC control chip and SIM card chip |
| CN101465675A (en) * | 2008-12-31 | 2009-06-24 | 中兴通讯股份有限公司 | Enhancement type close range wireless communication eNFC device and implementing method thereof |
Non-Patent Citations (1)
| Title |
|---|
| 石亦欣,李蔚.NFC芯片与SIM卡连接的方案研究.《中国集成电路 》.2007,(第7期),80-84. * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN101968762A (en) | 2011-02-09 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN104063348A (en) | Device and method for realizing compatible USB (Universal Serial Bus) communication and audio communication | |
| CN101968762B (en) | NFC-SIM (Near Field Communication-Subscriber Identity Module) card chip simulator | |
| CN101729676A (en) | Mobile phone with near field communication function | |
| CN101404001A (en) | Serial port signal and USB signal compatible control circuit board and communication data cable | |
| CN107153814B (en) | Fingerprint module data acquisition device | |
| CN102664043A (en) | Device and method for test of smart SD card realizing mobile payment | |
| CN106358179A (en) | SIM (Subscriber Identification Module) card switching circuit and SIM card switching method | |
| CN109358995A (en) | A kind of multifunctional testing backboard and test method | |
| CN203444464U (en) | Intelligent terminal device | |
| WO2016029665A1 (en) | Active 13.56mhz rfid device | |
| CN104331350B (en) | A kind of method and device of IC-card electronic equipment AccessPort | |
| CN103311766A (en) | Mobile equipment switching device and working mode switching method thereof | |
| CN101968761A (en) | Non-contact type intelligent card simulator | |
| CN103226523A (en) | External equipment, mobile terminal, and system comprising external equipment and mobile terminal | |
| CN101329648B (en) | Contact smart card emulator capable of debugging ATR | |
| CN104699644B (en) | A method of driving NFC modules under Android platform | |
| CN106584862B (en) | A kind of the 3D printing WIFI control system and its control method of built-in Web service | |
| CN204288237U (en) | A kind of Network Smart Card Reader-Writer | |
| CN214011769U (en) | On-line power burning circuit | |
| CN101968764A (en) | Emulator with breakpoint function | |
| US20110264958A1 (en) | Test framework for a notebook computer | |
| CN201111122Y (en) | Connection device between double data interface subscriber identification card and non-contact front-end chip | |
| KR100983984B1 (en) | Method for interfacing between a mobile communication uint and a external gender for mobile chip service | |
| CN101136077A (en) | Connection circuit between double data interface subscriber identification card and non-contact front-end chip | |
| CN100514349C (en) | Home appliance control device with dual-interface radio frequency card reader |
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 |