CN110069955B - Non-contact card swiping method and device and terminal equipment - Google Patents

Non-contact card swiping method and device and terminal equipment Download PDF

Info

Publication number
CN110069955B
CN110069955B CN201810058174.1A CN201810058174A CN110069955B CN 110069955 B CN110069955 B CN 110069955B CN 201810058174 A CN201810058174 A CN 201810058174A CN 110069955 B CN110069955 B CN 110069955B
Authority
CN
China
Prior art keywords
nfc
card swiping
antenna
target
scene
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810058174.1A
Other languages
Chinese (zh)
Other versions
CN110069955A (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.)
China Mobile Communications Group Co Ltd
China Mobile Communications Ltd Research Institute
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Communications Ltd Research Institute
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 China Mobile Communications Group Co Ltd, China Mobile Communications Ltd Research Institute filed Critical China Mobile Communications Group Co Ltd
Priority to CN201810058174.1A priority Critical patent/CN110069955B/en
Publication of CN110069955A publication Critical patent/CN110069955A/en
Application granted granted Critical
Publication of CN110069955B publication Critical patent/CN110069955B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/10009Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves
    • G06K7/10019Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves resolving collision on the communication channels between simultaneously or concurrently interrogated record carriers.
    • G06K7/10108Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves resolving collision on the communication channels between simultaneously or concurrently interrogated record carriers. interrogating only those RFIDs that fulfill a predetermined requirement, e.g. selecting all RFIDs having the same speed and moving in a cloud like fashion, e.g. on the same train; interrogating only RFIDs having a certain predetermined temperature, e.g. in the same fridge, another possibility being the active ignoring of a group of tags that fulfill a predetermined requirement, equivalent to the Boolean NOT operation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/10009Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves
    • G06K7/10297Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves arrangements for handling protocols designed for non-contact record carriers such as RFIDs NFCs, e.g. ISO/IEC 14443 and 18092

Landscapes

  • Engineering & Computer Science (AREA)
  • Toxicology (AREA)
  • Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Electromagnetism (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • General Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a method and a device for swiping a card in a non-contact manner and terminal equipment, wherein the method for swiping the card in the non-contact manner comprises the following steps: the method comprises the steps of determining a card swiping scene of the terminal equipment, determining a target NFC device corresponding to the card swiping scene according to a preset corresponding relation between the card swiping scene and the target NFC device, activating the target NFC device to serve as a device for communicating with the card swiping equipment, and connecting the terminal equipment with a plurality of NFC devices. According to the scheme of the invention, under the condition that a plurality of NFC devices exist, the plurality of NFC devices are prevented from carrying out non-contact communication with the card swiping equipment, and card swiping failure is avoided.

Description

Non-contact card swiping method and device and terminal equipment
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for swiping a card in a non-contact manner, and a terminal device.
Background
At present, most of Near Field payment services mainly use a Near Field Communication (NFC) terminal and an NFC-SIM card as service carriers, wherein an NFC antenna and an NFC chip are integrated on the NFC terminal, the NFC antenna is used to receive and send a contactless 13.56MHz radio frequency signal, the NFC chip is used to modulate and demodulate the signal and process an NFC Communication protocol (according to international standard ISO 14443), a security module (SE) is integrated on the NFC-SIM card and is used to store application logic and user information of a contactless service, and the NFC terminal and the NFC-SIM card cooperate to complete contactless card swiping with a card swiping device, such as a POS machine, so as to implement related service functions.
With the diversified development of the near field payment technology, NFC full-function mobile phones, NFC full-function SIM cards, NFC wearable devices (watches and bracelets), and the like appear in the market at present, and an NFC antenna, an NFC chip, and an SE are all integrated into a single product. With the market popularization of various products, a user may own a plurality of payment products at the same time, for example, the user owns an NFC full-function mobile phone and an NFC full-function SIM card at the same time. Because a plurality of full function payment products are independent each other, can both carry out non-contact communication with equipment of punching the card when punching the card, and partial equipment of punching the card can interrupt the transaction in order to avoid the mistake to punch the card when detecting a plurality of NFC products in order to guarantee transaction safety, consequently leads to the failure of user's normal process of punching the card often.
Disclosure of Invention
The embodiment of the invention provides a non-contact card swiping method, a non-contact card swiping device and terminal equipment, and aims to solve the problem that card swiping failure is often caused under the condition that a plurality of NFC devices exist in the existing non-contact card swiping method.
In a first aspect, an embodiment of the present invention provides a method for swiping a card in a contactless manner, where the method is applied to a terminal device, and the terminal device is connected to multiple NFC apparatuses, and the method includes:
determining a card swiping scene of the terminal equipment;
determining a target NFC device corresponding to a card swiping scene according to a corresponding relation between a preset card swiping scene and the target NFC device;
activating the target NFC device as a means of communicating with a card swiping device.
Optionally, before determining the card swiping scene of the terminal device, the method further includes:
acquiring performance parameters of card swiping equipment in a card swiping scene;
selecting a target NFC chip and an antenna from a plurality of NFC chips and antennas of the plurality of NFC devices according to the performance parameters, and selecting a target security module from a plurality of security modules of the plurality of NFC devices according to the performance parameters;
and establishing a corresponding relation between the card swiping scene and a target NFC device comprising the target NFC chip, the antenna and the target security module.
Optionally, the performance parameters include an antenna size, an operating field strength, and a load modulation depth, and selecting a target NFC chip and an antenna from multiple NFC chips and antennas of the multiple NFC devices according to the performance parameters includes:
calculating the scores of the NFC chip and the antenna of each NFC device according to the following formula;
Score1=w1×(S practice of /S)+w2×(H Practice of /H)+w3×(U/U Practice of )
Selecting the NFC chip and the antenna with the highest scores from the plurality of NFC chips and the antennas as the target NFC chip and the target antenna;
where w1 is the weight of the antenna size, S In fact The size of the antenna required by the card swiping equipment is S, the size of the antenna corresponding to the NFC chip and the antenna is S, w2 is the weight of the working field intensity, H Practice of The working field intensity required by the card swiping equipment, H is the working field intensity corresponding to the NFC chip and the antenna, w3 is the weight of the load modulation depth, and U Practice of And U is the load modulation depth required by the card swiping equipment, and U is the load modulation depth corresponding to the NFC chip and the antenna.
Optionally, the selecting, according to the performance parameter, a target security module from a plurality of security modules of the NFC apparatus includes:
calculating a score of a security module of each NFC device according to the following formula;
Score2=w4×(SAK in fact /SAK)+w5×(FWI Practice of /FWI)+w6×(SFGI Practice of /SFGI)
Selecting a security module with the highest score from the plurality of security modules as the target security module;
wherein w4 is the weight of the selection confirmation value of Type A, SAK Practice of The card swiping equipment needs a Type A selective acknowledgement value, SAK is the Type A selective acknowledgement value corresponding to the security module, w5 is the weight of the frame waiting time integer value, and FWI Practice of The frame waiting time integral value required by the card swiping equipment, FWI (FWI) is the frame waiting time integral value corresponding to the security module, w6 is the weight of the starting frame protection time integral value, and SFGI (Small form-factor pluggable) is Practice of And the SFGI is the starting frame protection time integral value corresponding to the security module.
Optionally, before determining the card swiping scene of the terminal device, the method further includes:
receiving registration request messages sent by the plurality of NFC devices respectively;
registering the plurality of NFC devices according to the registration request message;
the registration request message carries the NFC function and performance parameters of the corresponding NFC device, whether the NFC radio frequency function of the device itself is supported to be shared, and whether the NFC radio frequency functions of other NFC devices need to be used.
In a second aspect, an embodiment of the present invention further provides a device for contactless card swiping, which is applied to a terminal device, where the terminal device is connected to multiple NFC devices, and the device includes:
the first determining module is used for determining a card swiping scene of the terminal equipment;
the second determining module is used for determining a target NFC device corresponding to a card swiping scene according to a corresponding relation between a preset card swiping scene and the target NFC device;
and the activation module is used for activating the target NFC device to be used as a device for communicating with the card swiping equipment.
Optionally, the apparatus further comprises:
the acquisition module is used for acquiring the performance parameters of the card swiping equipment in a card swiping scene;
a selecting module, configured to select a target NFC chip and an antenna from the multiple NFC chips and antennas of the multiple NFC devices according to the performance parameter, and select a target security module from the multiple security modules of the multiple NFC devices according to the performance parameter;
and the establishing module is used for establishing the corresponding relation between the card swiping scene and a target NFC device comprising the target NFC chip, the antenna and the target security module.
Optionally, the performance parameters include an antenna size, an operating field strength, and a load modulation depth, and the selecting module includes:
the first calculating unit is used for calculating the scores of the NFC chip and the antenna of each NFC device according to the following formula;
Score1=w1×(S practice of /S)+w2×(H Practice of /H)+w3×(U/U Practice of )
The first selection unit is used for selecting the NFC chip and the antenna with the highest grade from the plurality of NFC chips and the antennas as the target NFC chip and the target antenna;
where w1 is the weight of the antenna size, S Practice of The size of the antenna required by the card swiping equipment is S, the size of the antenna corresponding to the NFC chip and the antenna is S, w2 is the weight of the working field intensity, H In fact The working field intensity required by the card swiping equipment, H is the working field intensity corresponding to the NFC chip and the antenna, w3 is the weight of the load modulation depth, and U In fact And U is the load modulation depth required by the card swiping equipment, and U is the load modulation depth corresponding to the NFC chip and the antenna.
Optionally, the performance parameter includes a selection confirmation value of Type a, a frame waiting time integer value, and a starting frame protection time integer value, where the selecting module includes:
a second calculation unit for calculating a score of the security module of each NFC device according to the following formula;
Score2=w4×(SAK practice of /SAK)+w5×(FWI Practice of /FWI)+w6×(SFGI Practice of /SFGI)
The second selection unit is used for selecting the security module with the highest score from the plurality of security modules as the target security module;
wherein w4 is the weight of the selected confirmation value of Type A, SAK Practice of The card swiping equipment needs a Type A selective acknowledgement value, SAK is the Type A selective acknowledgement value corresponding to the security module, w5 is the weight of the frame waiting time integer value, and FWI In fact The frame waiting time integral value required by the card swiping equipment, FWI (FWI) is the frame waiting time integral value corresponding to the security module, w6 is the weight of the starting frame protection time integral value, and SFGI (Small form-factor pluggable) is In fact And the SFGI is the starting frame protection time integral value corresponding to the security module.
Optionally, the apparatus further comprises:
a receiving module, configured to receive registration request messages sent by the multiple NFC devices respectively;
a registration module, configured to register the plurality of NFC devices according to the registration request message;
the registration request message carries the NFC function and performance parameters of the corresponding NFC device, whether the NFC radio frequency function of the device itself is supported to be shared, and whether the NFC radio frequency functions of other NFC devices need to be used.
In a third aspect, an embodiment of the present invention further provides a terminal device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the computer program, when executed by the processor, implements the steps of the above-mentioned contactless card swiping method.
In a fourth aspect, the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the above-mentioned method for contactless card swiping.
Compared with the existing non-contact card swiping method, the non-contact card swiping method provided by the embodiment of the invention has the following beneficial effects that the target NFC device is determined and activated to be used as a device for communicating with the card swiping equipment:
(1) Under the condition that a plurality of NFC devices exist, the target NFC device can be activated to communicate with the card swiping equipment, so that the plurality of NFC devices can be prevented from performing non-contact communication with the card swiping equipment, and card swiping failure is avoided;
(2) Under the condition that a plurality of NFC devices exist, the radio frequency performance of different NFC devices may be different, so that the card swiping distances of different NFC devices may be different for the same card swiping equipment, and the card swiping experience of a user is affected.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required to be used in the embodiments of the present invention will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive labor.
FIG. 1 is a flow chart of a method for contactless card swiping according to an embodiment of the invention;
fig. 2 is a schematic diagram of an NFC handset connected to a plurality of NFC devices according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating a registration process of an NFC full-function SIM card according to an embodiment of the present invention;
fig. 4 is a flowchart of establishing a correspondence between a card swiping scenario and a target NFC device in an embodiment of the present invention;
FIG. 5 is a schematic structural diagram of a contactless card reading apparatus according to an embodiment of the present invention;
FIG. 6 is a second schematic structural diagram of a contactless card swiping device according to an embodiment of the invention;
fig. 7 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, an embodiment of the present invention provides a method for swiping a card in a contactless manner, which is applied to a terminal device, and includes the following steps:
step 101: and determining a card swiping scene of the terminal equipment.
In the embodiment of the invention, the terminal equipment is connected with a plurality of NFC devices, and each NFC device comprises an NFC chip, an antenna, a security module and the like. The connection of the terminal device to the NFC apparatus can be realized by a registration request of the NFC apparatus. The terminal equipment can determine the card swiping scene of the terminal equipment through the operation of the user on the related client side. For example, after the user selects a subway card swiping scene when entering a subway, the terminal device may determine that its own card swiping scene is the subway card swiping scene.
The terminal device may be, for example, a cell phone, a sports bracelet, a sports watch, or other wearable device, etc. The NFC device connected to the terminal device may be, for example, an NFC full-function SIM card, an NFC device in a cell phone, an NFC device in a moving bracelet, an NFC device in a sports watch, etc. The card swiping scene of the terminal device can be, for example, a subway card swiping scene, a mall card swiping scene, an overtime card swiping scene, a taxi card swiping scene, a bus card swiping scene and the like.
Step 102: and determining the target NFC device corresponding to the card swiping scene according to the preset corresponding relation between the card swiping scene and the target NFC device.
The corresponding relation between the card swiping scene and the target NFC device is pre-established in the terminal equipment according to the performance parameters of the card swiping equipment in the actual card swiping scene. And, the target NFC device includes a target NFC chip and antenna that are one of a plurality of NFC chips and antennas of a plurality of NFC devices and a target security module that is one of a plurality of security modules of a plurality of NFC devices.
That is to say, according to the performance parameters of the card swiping device in the actual card swiping scene, the target NFC chip and the antenna in the target NFC device may be any one of the multiple NFC chips and antennas of the multiple NFC devices, the target security module in the target NFC device may be one of the multiple security modules of the multiple NFC devices, and the target NFC chip, the antenna and the target security module may belong to one NFC device or may belong to different NFC devices.
Step 103: the target NFC device is activated as a means of communicating with the card swiping device.
After the target NFC device corresponding to the card swiping scene is determined, the target NFC device can be activated, and non-contact card swiping is carried out by using the target NFC device.
Compared with the existing non-contact card swiping method, the non-contact card swiping method provided by the embodiment of the invention has the following beneficial effects that the target NFC device is determined and activated to be used as a device for communicating with the card swiping equipment:
(1) Under the condition that a plurality of NFC devices exist, the target NFC device can be activated to communicate with the card swiping equipment, so that the plurality of NFC devices can be prevented from performing non-contact communication with the card swiping equipment, and card swiping failure is avoided;
(2) Under the condition that a plurality of NFC devices exist, the radio frequency performance of different NFC devices may be different, so that the card swiping distances of different NFC devices may be different for the same card swiping equipment, and the card swiping experience of a user is affected.
In the embodiment of the invention, the connection between the terminal equipment and the NFC device can be realized through a registration request of the NFC device. Specifically, before step 101, the method may further include:
the terminal equipment receives registration request messages sent by a plurality of NFC devices respectively; the registration request message carries an NFC function and performance parameters of a corresponding NFC device, whether the NFC radio frequency function of the corresponding NFC device is supported to be shared, whether the NFC radio frequency function of other NFC devices needs to be used and the like, wherein the NFC function and performance parameters comprise NFC antenna size, working field strength, load modulation depth range, NFC protocol parameters and the like;
and the terminal equipment registers the plurality of NFC devices according to the registration request message.
In this way, the connection of the terminal device with the plurality of NFC devices can be realized through the registration request process of the plurality of NFC devices.
In the embodiment of the present invention, the correspondence between the card swiping scene and the target NFC device is pre-established in the terminal device, and the pre-establishment process may be:
the method comprises the steps that terminal equipment obtains performance parameters of card swiping equipment in a card swiping scene; the performance parameter is obtained by the terminal equipment through communication with the card swiping equipment;
the terminal equipment selects a target NFC chip and an antenna from a plurality of NFC chips and antennas of a plurality of NFC devices according to the performance parameters, and selects a target security module from a plurality of security modules of the plurality of NFC devices according to the performance parameters;
the terminal equipment establishes a corresponding relation between a card swiping scene and a target NFC device comprising a target NFC chip, an antenna and a target security module.
Specifically, when the performance parameters include the size of the antenna, the operating field strength, and the load modulation depth, considering from the aspect of the non-contact radio frequency signal, the process of selecting the target NFC chip and the target antenna from the multiple NFC chips and the antennas of the multiple NFC devices by the terminal device according to the performance parameters may be:
calculating the scores of the NFC chip and the antenna of each NFC device according to the following formula I;
Score1=w1×(S practice of /S)+w2×(H Practice of /H)+w3×(U/U Practice of ) Formula one
And selecting the NFC chip and the antenna with the highest grade from the plurality of NFC chips and the antennas as a target NFC chip and an antenna.
Where w1 is the weight of the antenna size, S Practice of The size of an antenna required by the card swiping equipment, S is the size of the antenna corresponding to the NFC chip and the antenna, w2 is the weight of the working field intensity, and H Practice of The working field intensity required by the card swiping equipment, H is the working field intensity corresponding to the NFC chip and the antenna, w3 is the weight of the load modulation depth, and U Practice of And U is the load modulation depth corresponding to the NFC chip and the antenna. The specific values of w1, w2 and w3 can be determined according to actual conditions.
For example, the card swiping device in subway card swiping scene, the S adopted Practice of Approximately 10 x 10cm, H Practice of Less than or equal to 2A/m, U Practice of Greater than or equal to 22/H 0.5 (operating field strength) mv;
card swiping equipment in business excess card swiping scene, and S adopted by card swiping equipment Practice of Approximately 8 x 6cm, H In fact Less than or equal to 1.5A/m, U In fact Greater than or equal to 22/H 0.5 (operating field strength) mv;
swiping device in taxi/handheld POS swiping scene, S adopted In fact Approximately 5 x 4cm, H In fact Less than or equal to 1A/m, U Practice of Greater than or equal to 22/H 0.5 (operating field strength) mv;
in this case, the first equation can be expressed as:
Score1=0.7×(S practice of /S)+0.2×(H In fact /H)+0.1×(U/U Practice of )
Like this, select the NFC chip and the antenna that grade is the highest as target NFC chip and antenna, be favorable to forming the target NFC device that matches with the equipment of punching the card and carry out non-contact communication with the equipment of punching the card to reinforcing non-contact effect of punching the card promotes user's the experience of punching the card.
Specifically, when the performance parameter includes a selection confirmation value of Type a, a frame waiting time integer value, and a start frame protection time integer value, considering from the aspect of the contactless protocol, the process of the terminal device selecting, according to the performance parameter, a target security module from a plurality of security modules of the plurality of NFC apparatuses may be:
calculating the score of the security module of each NFC device according to the following formula II; score2= w4 × (SAK) Practice of /SAK)+w5×(FWI Practice of /FWI)+w6×(SFGI In fact /SFGI) formula two
And selecting the security module with the highest score from the plurality of security modules as a target security module.
Wherein w4 is the weight of the selection confirmation value of Type A, SAK Practice of The selection confirmation value of Type A required by the card swiping equipment, SAK (Security application Key) is the selection confirmation value of Type A corresponding to the security module, w5 is the weight of the frame waiting time integer value, FWI (full Fidelity interface) Practice of The frame waiting time integral value required by the card swiping equipment, FWI is the frame waiting time integral value corresponding to the security module, w6 is the weight of the starting frame protection time integral value, SFGI Practice of And the SFGI is the starting frame protection time integral value corresponding to the security module. For w4, w5 and w6The specific value can be determined according to the actual situation.
For example, card swiping equipment in subway card swiping scene, and adopted FWI Practice of Less than or equal to F (which is a 16-ary value), SFGI Practice of Less than or equal to F, SAK Practice of Equal to 0X or 2X;
card swiping equipment in business excess card swiping scene, and FWI adopted by card swiping equipment Practice of Less than or equal to 7,SFGI Practice of Less than or equal to 7,SAK Practice of Equal to 2X;
card swiping equipment under taxi/handheld POS (point of sale) card swiping scene and FWI (full flash architecture) adopted by card swiping equipment Practice of Equal to 7,SFGI Practice of Equal to 0,SAK Practice of Equal to 2X;
in this case, the second formula can be expressed as:
Score2=0.7×(SAK practice of /SAK)+0.2×(FWI Practice of /FWI)+0.1×(SFGI Practice of /SFGI)
Like this, select the security module that grades the highest as target security module, be favorable to forming and carry out non-contact communication with equipment of punching the card with the target NFC device of equipment of punching the card best matching to reinforcing non-contact effect of punching the card, promote user's the experience of punching the card.
It should be noted that, in order to implement the non-contact card swiping process according to the embodiment of the present invention, an operating system of the terminal device may be improved, for example, a registration module, a management module, an Application Programming Interface (API) and the like for multiple NFC devices are added, and an NFC function configuration module is added to the NFC device connected to the terminal device to collect information such as its own NFC function and performance parameters, whether to support sharing its own NFC radio frequency function and whether to use an NFC radio frequency function of another NFC device, and to control an NFC function switch, an SE switch and the like.
Next, a contactless card swiping process according to an embodiment of the present invention is described with reference to fig. 2 to 4.
In a specific example of the present invention, referring to fig. 2, the terminal device is an NFC mobile phone, and the NFC device connected to the NFC mobile phone includes an NFC device in the NFC mobile phone, an NFC full-function SIM card, and an NFC device in an NFC wearable device. In addition, the NFC mobile phone further comprises a client for swiping a card and an improved Operating System (OS), wherein the improved OS comprises an NFC protocol stack, and an API, a registration module and a management module aiming at multiple NFC are added. The NFC device connected with the NFC mobile phone comprises an NFC chip, an antenna and a safety module SE, wherein the NFC chip and the antenna comprise an NFC protocol module and an NFC radio frequency module, and an NFC function configuration module aiming at multiple NFC is added to complete corresponding functions.
The connection between the NFC mobile phone and the NFC device needs to be realized through a registration request of the NFC device, and the connection cannot be realized if the NFC mobile phone is not registered. Taking an NFC full-function SIM card as an example, as shown in fig. 3, a specific registration request process is:
step 301: an NFC function configuration module in the NFC full-function SIM card collects information such as NFC functions and performance parameters of corresponding NFC devices, whether the NFC radio frequency functions of the NFC devices are supported to be shared and whether NFC radio frequency functions of other NFC devices need to be used;
step 302: the NFC function configuration module sends a registration request message to a plurality of NFC APIs in the NFC mobile phone, wherein the registration request message carries the collected information;
step 303: the multi-NFC API sends registration information to the multi-NFC registration module;
step 304: the multi-NFC registration module prompts registration information to a user;
step 305: the multi-NFC registration module receives confirmation and setting information of a user on the NFC device;
step 306: binding and storing the NFC device and the setting information;
step 307: the multi-NFC registration module returns a registration result to the multi-NFC API;
step 308: and the multi-NFC API returns a registration result to the NFC function configuration module so as to complete the registration process.
In the specific example of the present invention, the correspondence between the card swiping scene and the target NFC device is pre-established, where for example, the NFC full-function SIM card and the NFC wearable device are used, and the pre-establishment process is as follows:
step 401: a user selects a card swiping scene on a client for swiping a card in an NFC mobile phone;
step 402: the client sends the selection result to a plurality of NFC APIs in the NFC mobile phone;
step 403: calling multiple NFC management modules in the NFC mobile phone by the multiple NFC APIs;
step 404: the multi-NFC management module selects a target NFC chip and an antenna with the most appropriate radio frequency performance from the NFC full-function SIM card and the NFC wearable equipment according to the selected card swiping scene;
step 405: if the target NFC chip and the antenna selected by the multiple NFC management modules are located in the NFC full-function SIM card, sending an NFC radio frequency activation request message to an NFC function configuration module in the NFC full-function SIM card;
step 406: the NFC function configuration module opens an NFC function switch;
step 407: the NFC function configuration module returns an NFC radio frequency activation result to the multi-NFC management module;
step 408: the multi-NFC management module selects the most appropriate target SE from the NFC full-function SIM card and the NFC wearable equipment according to the selected card swiping scene;
step 409: if the target SE selected by the multiple NFC management modules is located in the NFC wearable device, sending an SE activation request message to an NFC function configuration module in the NFC wearable device;
step 410: the NFC function configuration module opens an SE switch;
step 411: the NFC function configuration module returns an SE activation result to the multi-NFC management module;
step 412: updating the activated NFC function and SE condition by the multiple NFC management modules, and establishing a corresponding relation between a card swiping scene and a target NFC device comprising a target NFC chip, an antenna and a target SE;
step 413: the multi-NFC management module returns a calling result (namely the pre-established corresponding relation) to the multi-NFC API;
step 414: and the multiple NFC APIs return corresponding processing results to the client.
Therefore, when a user carries the NFC mobile phone to enter a subway, a subway card swiping scene can be selected on a client side in the NFC mobile phone, the NFC mobile phone determines that the card swiping scene is the subway card swiping scene, determines a target NFC device corresponding to the subway card swiping scene according to the corresponding relation between the preset card swiping scene and the target NFC device, and activates the target NFC device to serve as a device for communicating with the subway card swiping machine.
Referring to fig. 5, an embodiment of the present invention provides a device for swiping a card in a non-contact manner, where the device is applied to a terminal device, the terminal device is connected to multiple NFC devices, and the device includes:
a first determining module 51, configured to determine a card swiping scenario of the terminal device;
a second determining module 52, configured to determine, according to a preset correspondence between a card swiping scene and a target NFC device, the target NFC device corresponding to the card swiping scene;
an activation module 53, configured to activate the target NFC apparatus as a device for communicating with a card swiping device.
Compared with the existing non-contact card swiping method, the non-contact card swiping device of the embodiment of the invention has the following beneficial effects that the target NFC device is determined and activated to be used as a device for communicating with the card swiping equipment:
(1) Under the condition that a plurality of NFC devices exist, the target NFC device can be activated to communicate with the card swiping equipment, so that the plurality of NFC devices can be prevented from performing non-contact communication with the card swiping equipment, and card swiping failure is avoided;
(2) Under the condition that a plurality of NFC devices exist, the radio frequency performance of different NFC devices may be different, so that the card swiping distances of different NFC devices may be different for the same card swiping equipment, and the card swiping experience of a user is affected.
In the embodiment of the present invention, referring to fig. 6, the apparatus further includes:
the obtaining module 54 is configured to obtain a performance parameter of a card swiping device in a card swiping scene;
a selecting module 55, configured to select a target NFC chip and an antenna from the multiple NFC chips and antennas of the multiple NFC devices according to the performance parameter, and select a target security module from the multiple security modules of the multiple NFC devices according to the performance parameter;
an establishing module 56, configured to establish a corresponding relationship between the card swiping scene and a target NFC device including the target NFC chip and the antenna, and the target security module.
Further, the performance parameters include antenna size, operating field strength and load modulation depth, and as shown in fig. 6, the selecting module 55 may include:
a first calculating unit 551, configured to calculate a score of the NFC chip and the antenna of each NFC device according to the following formula;
Score1=w1×(S practice of /S)+w2×(H Practice of /H)+w3×(U/U Practice of )
A first selecting unit 552, configured to select, from the multiple NFC chips and antennas, an NFC chip and antenna with the highest score as the target NFC chip and antenna;
where w1 is the weight of the antenna size, S In fact The size of the antenna required by the card swiping equipment is S, the size of the antenna corresponding to the NFC chip and the antenna is S, w2 is the weight of the working field intensity, H Practice of The working field intensity required by the card swiping equipment is H, the working field intensity corresponding to the NFC chip and the antenna is H, w3 is the weight of the load modulation depth, and U Practice of And U is the load modulation depth required by the card swiping equipment, and U is the load modulation depth corresponding to the NFC chip and the antenna.
Further, the performance parameter includes a selection confirmation value of Type a, a frame waiting time integer value, and a starting frame protection time integer value, as shown in fig. 6, the selecting module 55 may further include:
a second calculation unit 553 for calculating a score of the security module of each NFC device according to the following formula;
Score2=w4×(SAK practice of /SAK)+w5×(FWI Practice of /FWI)+w6×(SFGI Practice of /SFGI)
A second selecting unit 554, configured to select a security module with a highest score from the multiple security modules as the target security module;
wherein w4 is the weight of the selection confirmation value of Type A, SAK In fact The card swiping equipment needs a Type A selective acknowledgement value, SAK is the Type A selective acknowledgement value corresponding to the security module, w5 is the weight of the frame waiting time integer value, and FWI Practice of The frame waiting time integral value required by the card swiping equipment, FWI (FWI) is the frame waiting time integral value corresponding to the security module, w6 is the weight of the starting frame protection time integral value, and SFGI (Small form-factor pluggable) is In fact And the SFGI is the starting frame protection time integral value corresponding to the security module.
Further, referring to fig. 6, the apparatus may further include:
a receiving module 57, configured to receive registration request messages sent by the multiple NFC devices respectively;
a registration module 58, configured to register the plurality of NFC apparatuses according to the registration request message;
the registration request message carries the NFC function and performance parameters of the corresponding NFC device, whether the NFC radio frequency function of the device itself is supported to be shared, and whether the NFC radio frequency functions of other NFC devices need to be used.
In addition, an embodiment of the present invention further provides a terminal device, which includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor, where the computer program, when executed by the processor, can implement each process of the foregoing non-contact card swiping method embodiment, and can achieve the same technical effect, and is not described herein again to avoid repetition.
Specifically, referring to fig. 7, the embodiment of the present invention further provides a terminal device, where the terminal device includes a bus 71, a transceiver 72, an antenna 73, a bus interface 74, a processor 75, and a memory 76.
In this embodiment of the present invention, the terminal device further includes: a computer program stored on the memory 76 and executable on the processor 75, in particular, the computer program when executed by the processor 75 may implement the steps of:
determining a card swiping scene of the terminal equipment;
determining a target NFC device corresponding to a card swiping scene according to a corresponding relation between a preset card swiping scene and the target NFC device;
activating the target NFC device as a means of communicating with a card swiping device.
In fig. 7, a bus architecture (represented by bus 71), bus 71 may include any number of interconnected buses and bridges, bus 71 linking together various circuits including one or more processors, represented by processor 75, and memory, represented by memory 76. The bus 71 may also link together various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. A bus interface 74 provides an interface between the bus 71 and the transceiver 72. The transceiver 72 may be one element or a plurality of elements, such as a plurality of receivers and transmitters, providing a means for communicating with various other apparatus over a transmission medium. The data processed by the processor 75 is transmitted over a wireless medium via the antenna 73, and further, the antenna 73 receives the data and transmits the data to the processor 75.
The processor 75 is responsible for managing the bus 71 and general processing and may also provide various functions including timing, peripheral interfaces, voltage regulation, power management, and other control functions. And the memory 76 may be used to store data used by the processor 75 in performing operations.
Alternatively, the processor 75 may be a CPU, ASIC, FPGA or CPLD.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements each process of the foregoing non-contact card swiping method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
Computer-readable media, which include both non-transitory and non-transitory, removable and non-removable media, may implement the information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Disks (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising a component of' 8230; \8230;" does not exclude the presence of another like element in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are only for description, and do not represent the advantages and disadvantages of the embodiments.
Through the description of the foregoing embodiments, it is clear to those skilled in the art that the method of the foregoing embodiments may be implemented by software plus a necessary general hardware platform, and certainly may also be implemented by hardware, but in many cases, the former is a better implementation. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (7)

1. A non-contact card swiping method is applied to terminal equipment, and is characterized in that the terminal equipment is connected with a plurality of Near Field Communication (NFC) devices, and the method comprises the following steps:
determining a card swiping scene of the terminal equipment;
determining a target NFC device corresponding to a card swiping scene according to a corresponding relation between a preset card swiping scene and the target NFC device;
activating the target NFC device as a means to communicate with a card swiping device;
before determining the card swiping scene of the terminal device, the method further comprises:
acquiring performance parameters of card swiping equipment in a card swiping scene;
selecting a target NFC chip and an antenna from a plurality of NFC chips and antennas of the plurality of NFC devices according to the performance parameters, and selecting a target security module from a plurality of security modules of the plurality of NFC devices according to the performance parameters;
establishing a corresponding relation between the card swiping scene and a target NFC device comprising the target NFC chip, the antenna and the target security module;
wherein the performance parameters include antenna size, operating field strength and load modulation depth, and selecting a target NFC chip and antenna from a plurality of NFC chips and antennas of the plurality of NFC devices according to the performance parameters includes:
calculating the scores of the NFC chip and the antenna of each NFC device according to the following formula;
Score1=w1×(S in fact /S)+w2×(H Practice of /H)+w3×(U/U Practice of )
Selecting the NFC chip and the antenna with the highest scores from the plurality of NFC chips and the antennas as the target NFC chip and the target antenna;
where w1 is the weight of the antenna size, S In fact The size of the antenna required by the card swiping equipment is S, the size of the antenna corresponding to the NFC chip and the antenna is S, w2 is the weight of the working field intensity, H In fact The working field intensity required by the card swiping equipment is H, the working field intensity corresponding to the NFC chip and the antenna is H, w3 is the weight of the load modulation depth, and U In fact And U is the load modulation depth required by the card swiping equipment, and U is the load modulation depth corresponding to the NFC chip and the antenna.
2. The method of claim 1, wherein the performance parameters further include a Type a selection acknowledgement value, a frame latency integer value, and an initiation frame protection time integer value, and wherein selecting a target security module from among the plurality of security modules of the plurality of NFC devices according to the performance parameters comprises:
calculating a score of a security module of each NFC device according to the following formula;
Score2=w4×(SAK practice of /SAK)+w5×(FWI Practice of /FWI)+w6×(SFGI Practice of /SFGI)
Selecting a security module with the highest score from the plurality of security modules as the target security module;
wherein w4 is the weight of the selection confirmation value of Type A, SAK In fact The card swiping equipment needs a Type A selective confirmation value, the SAK is the Type A selective confirmation value corresponding to the security module, the w5 is the weight of the frame waiting time integer value, and the FWI In fact FWI is a frame waiting time integer value corresponding to the security module, w6 is a weight of a starting frame protection time integer value, and SFGI is a frame waiting time integer value required by the card swiping device Practice of Is the brushAnd the SFGI is the starting frame protection time integral value corresponding to the security module.
3. The method according to claim 1, wherein before determining the card swiping scene of the terminal device, the method further comprises:
receiving registration request messages sent by the plurality of NFC devices respectively;
registering the plurality of NFC devices according to the registration request message;
the registration request message carries the NFC function and performance parameters of the corresponding NFC device, whether the NFC radio frequency function of the device itself is supported to be shared, and whether the NFC radio frequency functions of other NFC devices need to be used.
4. A non-contact card swiping device applied to terminal equipment, wherein the terminal equipment is connected with a plurality of NFC devices, and the device comprises:
the first determining module is used for determining a card swiping scene of the terminal equipment;
the second determining module is used for determining a target NFC device corresponding to a card swiping scene according to a corresponding relation between a preset card swiping scene and the target NFC device;
an activation module for activating the target NFC device as a means of communicating with a card swiping device;
wherein the apparatus further comprises:
the acquisition module is used for acquiring the performance parameters of the card swiping equipment in a card swiping scene;
a selecting module, configured to select a target NFC chip and an antenna from the multiple NFC chips and antennas of the multiple NFC devices according to the performance parameter, and select a target security module from the multiple security modules of the multiple NFC devices according to the performance parameter;
the establishment module is used for establishing a corresponding relation between the card swiping scene and a target NFC device comprising the target NFC chip, the antenna and the target security module;
the performance parameters comprise antenna size, working field strength and load modulation depth, and the selection module comprises the following modules according to the performance parameters:
the first calculating unit is used for calculating the scores of the NFC chip and the antenna of each NFC device according to the following formula;
Score1=w1×(S practice of /S)+w2×(H Practice of /H)+w3×(U/U Practice of )
The first selection unit is used for selecting the NFC chip and the antenna with the highest scores from the multiple NFC chips and the antennas as the target NFC chip and the antenna;
where w1 is the weight of the antenna size, S In fact The size of the antenna required by the card swiping equipment is S, the size of the antenna corresponding to the NFC chip and the antenna is S, w2 is the weight of the working field intensity, and H Practice of The working field intensity required by the card swiping equipment is H, the working field intensity corresponding to the NFC chip and the antenna is H, w3 is the weight of the load modulation depth, and U Practice of And U is the load modulation depth required by the card swiping equipment, and U is the load modulation depth corresponding to the NFC chip and the antenna.
5. The apparatus of claim 4, further comprising:
a receiving module, configured to receive registration request messages sent by the multiple NFC devices respectively;
a registration module, configured to register the plurality of NFC devices according to the registration request message;
the registration request message carries the NFC function and performance parameters of the corresponding NFC device, whether the NFC radio frequency function of the device itself is supported to be shared, and whether the NFC radio frequency functions of other NFC devices need to be used.
6. Terminal device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the computer program, when executed by the processor, carries out the steps of the method of contactless swiping of a card according to any one of claims 1 to 3.
7. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of contactless card swiping according to any one of the claims 1 to 3.
CN201810058174.1A 2018-01-22 2018-01-22 Non-contact card swiping method and device and terminal equipment Active CN110069955B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810058174.1A CN110069955B (en) 2018-01-22 2018-01-22 Non-contact card swiping method and device and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810058174.1A CN110069955B (en) 2018-01-22 2018-01-22 Non-contact card swiping method and device and terminal equipment

Publications (2)

Publication Number Publication Date
CN110069955A CN110069955A (en) 2019-07-30
CN110069955B true CN110069955B (en) 2023-01-13

Family

ID=67365076

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810058174.1A Active CN110069955B (en) 2018-01-22 2018-01-22 Non-contact card swiping method and device and terminal equipment

Country Status (1)

Country Link
CN (1) CN110069955B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110381443B (en) 2019-09-05 2022-04-22 北京小米移动软件有限公司 Near field communication card activation method and device
CN110807502B (en) * 2019-10-31 2024-04-09 天星数科科技有限公司 NFC intelligent card configuration method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101373510A (en) * 2007-08-23 2009-02-25 索尼株式会社 Electronic wallet device and communication method
CN103632264A (en) * 2012-08-24 2014-03-12 三星电子株式会社 Method and apparatus for determining item based on interaction environment
WO2017127874A1 (en) * 2016-01-29 2017-08-03 Xard Group Pty Ltd Apparatus and method for externally controlling a digital transaction processing unit (dtpu)
CN107153958A (en) * 2017-04-19 2017-09-12 北京小米移动软件有限公司 NFC payment and equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104156741B (en) * 2005-03-07 2018-05-01 诺基亚技术有限公司 Method and mobile terminal device including smart card module and near field communication means
EP2821948A1 (en) * 2013-07-03 2015-01-07 BlackBerry Limited Mobile device for managing e-tickets and payment transactions
CN107273147A (en) * 2016-04-08 2017-10-20 ***通信有限公司研究院 A kind of many SE management method and device
CN206402224U (en) * 2017-01-22 2017-08-11 广东欧珀移动通信有限公司 NFC antenna component and terminal device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101373510A (en) * 2007-08-23 2009-02-25 索尼株式会社 Electronic wallet device and communication method
CN103632264A (en) * 2012-08-24 2014-03-12 三星电子株式会社 Method and apparatus for determining item based on interaction environment
WO2017127874A1 (en) * 2016-01-29 2017-08-03 Xard Group Pty Ltd Apparatus and method for externally controlling a digital transaction processing unit (dtpu)
CN107153958A (en) * 2017-04-19 2017-09-12 北京小米移动软件有限公司 NFC payment and equipment

Also Published As

Publication number Publication date
CN110069955A (en) 2019-07-30

Similar Documents

Publication Publication Date Title
CN101233699B (en) Method and equipment for executing NFC
CN108604342B (en) NFC-based data transmission method and mobile device
EP2672735B1 (en) Near field communication application identification routing in card emulation
US20010007815A1 (en) Method and system for establishing a short-range radio link
CN114462560B (en) Analog card switching method, electronic equipment and communication system
US20160299754A1 (en) Method for Updating Application Program, and Terminal
US20170154327A1 (en) Mobile Payment Method and Apparatus and Near Field Communication Device
CN103095342B (en) Communication method and device between near field communication terminal and card reader
CN105263140A (en) System and method for realizing remote authentication of subscriber identity module (SIM) card
CN105321330A (en) Smart home equipment, binding method, device and system thereof and mobile terminal
CN113643020A (en) Electronic transaction method and terminal
CN110069955B (en) Non-contact card swiping method and device and terminal equipment
EP3387581A1 (en) Systems and methods for a cloud connected transponder
CN105099522A (en) Wearable device, and user information exchange method based on wearable device
US9697396B2 (en) Interactive processing method and device and electronic apparatus
EP2355368B1 (en) Telecommunication component and wireless communication system for coupling a cellular mobile telecommunication device to an NFC terminal
KR100734693B1 (en) Information processing system, interrogator and method for reading ic tag
KR20110115264A (en) Mobile communication terminal, method and system for partial payment service using the same
CN110992048A (en) Transaction fraud determination method and device
EP2360987B1 (en) Device and method for coupling a cellular telecommunication device to an NFC terminal
US20140379568A1 (en) Transaction system, transaction support apparatus, and user apparatus
CN109428965B (en) Method for data communication, related device and system and storage medium
CN106685485B (en) Signal processing method and device based on Near Field Communication (NFC)
EP4068821B1 (en) Vsim module for portable apparatus and portable apparatus
CN210627378U (en) Borrow machine based on NFC technique

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant