CN101968762A - 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 PDF

Info

Publication number
CN101968762A
CN101968762A CN2009100576551A CN200910057655A CN101968762A CN 101968762 A CN101968762 A CN 101968762A CN 2009100576551 A CN2009100576551 A CN 2009100576551A CN 200910057655 A CN200910057655 A CN 200910057655A CN 101968762 A CN101968762 A CN 101968762A
Authority
CN
China
Prior art keywords
pin
swp
nfc
sim
card
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
CN2009100576551A
Other languages
Chinese (zh)
Other versions
CN101968762B (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.)
Shanghai Huahong Integrated Circuit Co Ltd
Original Assignee
Shanghai Huahong Integrated Circuit 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 Shanghai Huahong Integrated Circuit Co Ltd filed Critical Shanghai Huahong Integrated Circuit Co Ltd
Priority to CN200910057655A priority Critical patent/CN101968762B/en
Publication of CN101968762A publication Critical patent/CN101968762A/en
Application granted granted Critical
Publication of CN101968762B publication Critical patent/CN101968762B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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

NFC-SIM the core of the card sheet emulator
Technical field
The present invention relates to integrated circuit (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 combine 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 card 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 card is that the user program in the NFC-SIM the core of the card sheet has comprised realization SIM card 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 by the SIM card module communication of 7816 interfaces (meeting the ISO7816 agreement) with mobile phone, NFC module in the user program (meets the SWP agreement by 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 card 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 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 needs to communicate 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 substantially all is the contact intelligent card card reader, uses these class card reader debugging 7816 communications familiar in the extreme and convenient for 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 card reader easily.But, because most contact card reader are only supported 7816 interfaces, do not support the SWP interface of NFC, the C6 pin on the card reader is unsettled, so when connecting these card reader, 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 card reader 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 enter the abnormity processing of makeing mistakes, and causes the SIM funtion part of user program can not use the good debug of contact card reader.
Existing solution is, when if the user uses the SIM funtion part of contact card reader 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 problem to be solved in the present invention 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, described 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 described emulation chip uses described 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; Described SWP_2 pin is connected with the SWP_1 pin of emulation chip, and the SWP_3 pin is connected with C6 contact pin on the terminal card-reading apparatus, and power supply detects pin and is connected with the power supply output pin of terminal card-reading apparatus;
Described detection control module detects described power supply and detects 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 card reader 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 described 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
The present invention is further detailed explanation below in conjunction with the drawings and specific embodiments:
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 the 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).Described SWP_2 pin is connected with the SWP_1 pin of emulation chip 2, and the SWP_3 pin is connected with C6 contact pin on the terminal card-reading apparatus 4, and described 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 level on the pin VCC_IN, if detect the following level of 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 card reader, then its power supply electrical level is 3.3V or 5V.Like this, when terminal card-reading apparatus 4 is the contact card reader, 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 card reader 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, just be equivalent to directly connect the C6 contact pin of NFC mobile phone on the SWP_1 pin, the user just can cooperate the SIM and the NFC funtion part of NFC mobile phone good debug user program.
More than by embodiment the present invention is had been described in detail, 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 considered 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: described 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 described emulation chip uses described 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; Described SWP_2 pin is connected with the SWP_1 pin of emulation chip, and the SWP_3 pin is connected with C6 contact pin on the terminal card-reading apparatus, and power supply detects pin and is connected with the power supply output pin of terminal card-reading apparatus;
Described detection control module detects described power supply and detects 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.
2. NFC-SIM the core of the card sheet emulator as claimed in claim 1, it is characterized in that: described terminal card-reading apparatus is the contact card reader, detect control module and detect when detecting 3.3V or 5V level on the pin at power supply, then directly to the low level of the 0V of SWP_1 output 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 card reader 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: described terminal card-reading apparatus is the NFC mobile phone, when the detection control module detects the 1.8V level on power supply detection pin, direct short circuit SWP_2 of portion and SWP_3 pin within it, during emulation chip run user program, just be equivalent to directly connect the C6 contact pin of NFC mobile phone on the SWP_1 pin, the user can cooperate the SIM and the NFC funtion part of NFC mobile phone good debug user program.
CN200910057655A 2009-07-27 2009-07-27 NFC-SIM (Near Field Communication-Subscriber Identity Module) card chip simulator Active CN101968762B (en)

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 true CN101968762A (en) 2011-02-09
CN101968762B 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)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103347105A (en) * 2013-06-19 2013-10-09 上海坤锐电子科技有限公司 Mobile phone radio-frequency SIM card with SWP function in compatible mode
CN104205788A (en) * 2012-02-15 2014-12-10 意法爱立信有限公司 Battery management scheme for nfc
CN105376758A (en) * 2015-10-09 2016-03-02 Tcl移动通信科技(宁波)有限公司 An SIM card disconnection detection method and system
US20170185995A1 (en) * 2014-04-18 2017-06-29 Ingenico Group Module for emulating at least one payment card, corresponding method, payment device, computer program product and storage medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI579784B (en) * 2016-03-30 2017-04-21 Non-contact wafer card reader with hybrid multi-core parallel verification processing

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100590989C (en) * 2007-01-12 2010-02-17 上海复旦微电子股份有限公司 Near-field communication handset with multi-way switch interface and method of power supply and communication thereof
CN100580613C (en) * 2008-01-30 2010-01-13 上海华虹集成电路有限责任公司 Connection and communicating method between NFC control chip and SIM card chip
CN101465675B (en) * 2008-12-31 2013-02-27 中兴通讯股份有限公司 Enhancement type close range wireless communication eNFC device and implementing method thereof

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104205788A (en) * 2012-02-15 2014-12-10 意法爱立信有限公司 Battery management scheme for nfc
CN104205788B (en) * 2012-02-15 2016-04-20 意法爱立信有限公司 For the battery management method of near-field communication
CN103347105A (en) * 2013-06-19 2013-10-09 上海坤锐电子科技有限公司 Mobile phone radio-frequency SIM card with SWP function in compatible mode
US20170185995A1 (en) * 2014-04-18 2017-06-29 Ingenico Group Module for emulating at least one payment card, corresponding method, payment device, computer program product and storage medium
CN105376758A (en) * 2015-10-09 2016-03-02 Tcl移动通信科技(宁波)有限公司 An SIM card disconnection detection method and system
CN105376758B (en) * 2015-10-09 2019-03-26 Tcl移动通信科技(宁波)有限公司 A kind of detection SIM card falls the method and system of card

Also Published As

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

Similar Documents

Publication Publication Date Title
CN101968762B (en) NFC-SIM (Near Field Communication-Subscriber Identity Module) card chip simulator
WO2011079606A1 (en) Mobile phone with near-field communication function
CN104063348A (en) Device and method for realizing compatible USB (Universal Serial Bus) communication and audio communication
CN102664043B (en) Device and method for test of smart SD card realizing mobile payment
CN106358179B (en) Switching circuit and switching method for Subscriber Identity Module (SIM) card
CN102339405A (en) Data card
CN211718896U (en) Burning and testing device for eSIM card
CN104111359A (en) Contact card reliability testing system
US9785591B2 (en) Smartcard interface conversion device, embedded system having the same device and method for transferring data signal used in the same device
CN102999742A (en) Central processing unit (CPU) card reader
CN104699644B (en) A method of driving NFC modules under Android platform
CN204288237U (en) A kind of Network Smart Card Reader-Writer
CN100533474C (en) Connecting circuit for connecting double data interface user recognizing card with non-contact front-end chip
US20110264958A1 (en) Test framework for a notebook computer
CN102801848B (en) Mobile phone with NFC (Near Field Communication) function
CN101968764A (en) Emulator with breakpoint function
CN105260755A (en) Integrated double-frequency card reader device
CN201364581Y (en) Equipment for realizing communication of contact type card and non-contact type reader
CN204188647U (en) Contact card reliability test system
CN219370339U (en) Practical and expandable USB Type-C interface
KR100983984B1 (en) Method for interfacing between a mobile communication uint and a external gender for mobile chip service
CN107704052A (en) A kind of fingerprint identification device and desktop computer based on platform of soaring
CN204229427U (en) Intelligence Kato
CN201741169U (en) RFID reader based on mobile 7816 interface
CN203800968U (en) External device of mobile terminal

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