Summary of the invention
The embodiment of the invention provides a kind of NFC device and NFC communication means, can only support a kind of technical problem of mobile payment scheme to solve existing portable terminal.
A kind of NFC device comprises:
The NFC controller, security module, and switch unit;
Described security module comprises the first security module on the mainboard of being located at portable terminal, is located at the second security module on the user identity identification SIM card, and is located at the 3rd security module on the safe digital SD card;
Described switch unit is used for selecting in the described the first, the second or the 3rd security module any one to be connected with described NFC controller.
A kind of NFC communication means comprises:
Detection security module tabulation, described security module comprises: be located at the first security module on the mainboard of portable terminal, be located at the second security module on the SIM card, and be located at the 3rd security module on the SD card;
Obtain the security module configuration information, be set to the current safety module according to described security module configuration information with one in the described the first, the second or the 3rd security module;
Select described current safety module to be connected with the NFC controller by switch unit.
The NFC device of the embodiment of the invention adopts and on cell phone mainboard, SIM card and SD card independently security module is set separately, and the technical scheme that can between each security module, switch arbitrarily, so that portable terminal can be supported multiple NFC mobile payment scheme, improved the availability of portable terminal.
Embodiment
The embodiment of the invention provides a kind of NFC device, and this device can be supported multiple NFC mobile payment scheme, can solve the technical problem that existing portable terminal can only be supported a kind of mobile payment scheme.The embodiment of the invention also provides corresponding NFC communication means.Below be elaborated respectively.
Embodiment one,
Please refer to Fig. 1, the embodiment of the invention provides a kind of NFC device, and this device comprises:
NFC controller 100, security module (SE) 200, and switch unit 300;
Described security module comprises the first security module 201 on the mainboard of being located at portable terminal, is located at the second security module 202 on the user identity identification SIM card, and is located at the 3rd security module 203 on the safe digital SD card;
Described switch unit 300 is used for selecting in the described the first, the second or the 3rd security module any one to be connected with described NFC controller 100.
Optionally, described switch unit 300 comprises electronic switch, described electronic switch is used for making described NFC controller set up first with described SIM card and is connected, perhaps sets up second with described SD card and be connected, and can switch between described the first connection and second connects.
Optionally, described electronic switch comprises a control connection end and two selection links, the single-wire-protocol input and output of described control connection end and described NFC controller (single wire input output, SWIO) interface connects, select in the links one to be connected with the SWIO interface of described SIM card for described two, another is connected with the SWIO interface of described SD card.
Optionally, described NFC controller inside is integrated with power management chip, described power management chip offers described SIM card or described SD card for the electric energy of the mainboard that will come from portable terminal, and when described mainboard power down, starting the field energy powering mode provides electric energy for described SIM card or described SD card.
To sum up, the embodiment of the invention provides a kind of NFC device, this device arranges independently security module separately on cell phone mainboard, SIM card and SD card, and can between each security module, switch arbitrarily, so that this NFC device and the portable terminal that comprises this NFC device can be supported multiple NFC mobile payment scheme, improved the availability of portable terminal.
Security module in the NFC device (SE) comprises is located at SIM card, is located at the SD card and is located at three kinds of set-up modes of cell phone mainboard.Three kinds of modes can be expanded use more, and advantage is separately arranged.The advantage of SIM card or SD card set-up mode is that hair fastener is flexible, can satisfy different hair fasteners and be organized in different phase is sent out different safety class according to the hair fastener demand of oneself card.Be located at the mainboard of portable terminal, that is, the advantage of built-in chip mode is that cost is low, and is compatible high.The NFC device that the embodiment of the invention provides combines the advantage of above-mentioned variety of way.
Embodiment two,
The present embodiment is described as example to use the NFC device at mobile phone.
In the present embodiment, described NFC controller can adopt the PN65N chip.Described security module especially adopts the mainboard of being located at portable terminal, that is, the first security module that the built-in chip mode arranges can adopt the integrated P5CD081 chip of PN65N chip internal.The P5CD081 chip is the powerful intelligent card chip of a 80K, can be used in the fields such as finance, E-Passport, ID card, Java card, safe Key and integrated security module, can satisfy various mobile payment application demands.The structure of PN65N chip please refer to Fig. 2.Described SIM card can adopt the SWP scheme, SWP(Single Wire Protocol, single-wire-protocol with SD card and being connected of NFC controller) be the single line connectivity scenario based on the C6 pin that is proposed by Gemalto company.Support SIM card or the SD card of SWP can be called SWP-SIM card or SWP-SD card.
As shown in Figure 3, cell phone mainboard enables control by universal input/output interface (GPIO) to the PN65N chip; By I2C(Inter-Integrated Circuit) bus and PN65N chip transmission of data; By Vcc(Volt Current Condenser, power supply) port provides electric energy to the PN65N chip.The SWIO interface of PN65N chip is connected being connected with SWP-SIM with SWP-SD respectively by electronic switch, switch unit can switch being connected between NFC chip and SWP-SD and the SWP-SIM by GPIO interface control electronic switch, and user profile all is stored in SWP-SD or SWP-SIM intelligent chip inside.Can also be integrated with special-purpose power management chip in the NFC controller, in order to press different mode to SWP(single wire protocol, single-wire-protocol)-SD or SWP-SIM power supply, and under the mobile phone power-down mode, switch to PBF(power by field field energy power supply) pattern, realize mobile phone power down function of swiping card.
Embodiment three,
Please refer to Fig. 4, the embodiment of the invention provides a kind of NFC communication means, comprising:
401, detect the security module tabulation, described security module comprises: be located at the first security module on the mainboard of portable terminal, be located at the second security module on the SIM card, and be located at the 3rd security module on the SD card;
402, obtain the security module configuration information, be set to the current safety module according to described security module configuration information with one in the described the first, the second or the 3rd security module;
403, select described current safety module to be connected with the NFC controller by switch unit.
Optionally, described switch unit comprises electronic switch, and is described 403, select described current safety module to be connected and can to comprise with the NFC controller by switch unit:
Be set to second or during the 3rd security module in described current safety module, control being connected of described NFC controller and described SIM card or described SD card by described electronic switch.
Optionally, described 401, can also comprise before detecting the security module tabulation:
Read the security module historical record;
If read successfully, from described security module historical record, select a security module to be set to historical security module;
If read failure, from described the first security module and the second security module and the 3rd security module, select one to be set to default security module.
Please refer to Fig. 5, the present embodiment has provided the concrete application examples of said method.
In the present embodiment, detect the security module tabulation and security module is set and to carry out at the JNI layer.General N FC mobile phone can carry out the security module setting at the JAVA layer.But the JNI layer is the bridge of linking up between JAVA layer and the hardware dynamic storehouse, and hardware will could be followed the communication of JAVA layer by the JNI layer, therefore at the JNI layer security module is set and can makes the speed of setting faster.
To sum up, the embodiment of the invention provides a kind of NFC communication means, the method adopts and on cell phone mainboard, SIM card and SD card independently security module is set separately, and the technical scheme that can between each security module, switch arbitrarily, so that NFC device and the portable terminal that comprises this NFC device can be supported multiple NFC mobile payment scheme, improved the availability of portable terminal.
Security module in the NFC device (SE) comprises is located at SIM card, is located at the SD card and is located at three kinds of set-up modes of cell phone mainboard.Three kinds of modes can be expanded use more, and advantage is separately arranged.The advantage of SIM card or SD card set-up mode is that hair fastener is flexible, can satisfy different hair fasteners and be organized in different phase is sent out different safety class according to the hair fastener demand of oneself card.Be located at the mainboard of portable terminal, that is, the advantage of built-in chip mode is that cost is low, and is compatible high.The NFC device that the embodiment of the invention provides combines the advantage of above-mentioned variety of way.
One of ordinary skill in the art will appreciate that all or part of step in the whole bag of tricks of above-described embodiment can finish by hardware, also can finish by the relevant hardware of program command, this program can be stored in the computer-readable recording medium, and storage medium can comprise: read-only memory, random-access memory, disk or CD etc.
Above NFC device and the communication means that the embodiment of the invention is provided is described in detail, and understands method of the present invention and core concept thereof but the explanation of above embodiment just is used for help, should not be construed as limitation of the present invention.Those skilled in the art are 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.