CN118075720A - NFC-based communication method, device and storage medium - Google Patents
NFC-based communication method, device and storage medium Download PDFInfo
- Publication number
- CN118075720A CN118075720A CN202211484910.2A CN202211484910A CN118075720A CN 118075720 A CN118075720 A CN 118075720A CN 202211484910 A CN202211484910 A CN 202211484910A CN 118075720 A CN118075720 A CN 118075720A
- Authority
- CN
- China
- Prior art keywords
- nfc
- card
- application program
- terminal
- data channel
- 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.)
- Pending
Links
- 238000004891 communication Methods 0.000 title claims abstract description 71
- 238000000034 method Methods 0.000 title claims abstract description 66
- 230000004044 response Effects 0.000 claims abstract description 39
- 238000004590 computer program Methods 0.000 claims description 17
- 230000002618 waking effect Effects 0.000 claims description 11
- 230000003993 interaction Effects 0.000 abstract description 39
- 230000001360 synchronised effect Effects 0.000 description 9
- 238000010586 diagram Methods 0.000 description 7
- 230000008569 process Effects 0.000 description 5
- 235000019800 disodium phosphate Nutrition 0.000 description 4
- 230000005291 magnetic effect Effects 0.000 description 4
- 230000003068 static effect Effects 0.000 description 4
- 230000006870 function Effects 0.000 description 2
- 230000002452 interceptive effect Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000004549 pulsed laser deposition Methods 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 230000005294 ferromagnetic effect Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W8/00—Network data management
- H04W8/18—Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
- H04W8/183—Processing at user equipment or user record carrier
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The application discloses a communication method, equipment and storage medium based on NFC. The method comprises the following steps: the NFC terminal provided with the SIM card sends a card reading request to the electronic equipment based on a first application program in a Reader mode; the card reading request enables the electronic equipment to wake up the second application program, and an NFC data channel is established between the first application program and the second application program; receiving a service instruction from the electronic device based on the NFC data channel; and sending the service instruction to the SIM card, and sending a service response returned by the SIM card to the electronic equipment through the NFC data channel. Therefore, based on the interaction mode between the NFC terminal in the Reader mode and the electronic equipment in the card mode, the limitation that the SIM card is required to open an NFC interaction interface when the traditional NFC terminal works in the card mode to interact with the outside is broken, and the coverage rate of NFC application based on the SIM card is greatly improved.
Description
Technical Field
The present application relates to the field of data traffic, and in particular, to a Communication method, device, and storage medium based on NFC (NEAR FIELD Communication).
Background
In the related art, NFC applications based on SIM (Subscriber Identity Module ) cards have been popular, for example, a user holds an NFC mobile phone terminal equipped with a SWP (SINGLE WIRE Protocol) -SIM card to a POS (Point of sale) terminal supporting NFC to swipe a card for transaction, so that payment can be completed, which is very convenient and fast.
At present, data interaction based on NFC is often that an NFC terminal works in a card mode, a POS terminal works in a Reader mode, an NFC interaction interface is required to be opened by a SIM card in the NFC terminal, however, in part of NFC terminals, the NFC interaction interface of the SIM card is not opened, so that an interaction flow cannot be realized, and the coverage rate of NFC applications based on the SIM card of the NFC terminal is affected.
Disclosure of Invention
In view of this, the embodiments of the present application provide a communication method, device and storage medium based on NFC, which aim to be compatible with data interaction of NFC applications of an NFC terminal based on an NFC interaction interface of an unopened SIM card.
The technical scheme of the embodiment of the application is realized as follows:
In a first aspect, an embodiment of the present application provides an NFC-based communication method, which is applied to an NFC terminal configured with a SIM card, where the method includes:
In a Reader mode, sending a card reading request to an electronic device providing NFC service based on a first application program; the card reading request enables the electronic equipment to wake up a second application program, and an NFC data channel is established between the first application program and the second application program;
receiving a service instruction from the electronic equipment based on the NFC data channel;
And sending the service instruction to the SIM card, and sending a service response returned by the SIM card to the electronic equipment through the NFC data channel.
In the above scheme, the method further comprises:
and setting the NFC terminal to the Reader mode in response to the first application program being started.
In the above solution, the sending, based on the first application program, a card reading request to an electronic device that provides NFC service includes:
And under the condition that the distance between the NFC terminal and the electronic equipment falls into the NFC communication distance, sending a card reading request to the electronic equipment based on the mode that the first application program accesses the first NFC controller arranged in the NFC terminal.
In the above scheme, the first application program interacts with the SIM card based on a preset communication mode, where the preset communication mode includes at least one of the following: the set-card interface communication, an independent bearer protocol (Bearer Independent Protocol, BIP), a data short message and bluetooth communication.
In a second aspect, an embodiment of the present application provides an NFC-based communication method, applied to an electronic device, where the method includes:
in a card mode, receiving a card reading request sent by an NFC terminal;
Waking up a second application program based on the card reading request, and establishing an NFC data channel between the second application program and a first application program of the NFC terminal;
sending a service instruction to the NFC terminal based on the NFC data channel;
And receiving a service response returned by the NFC terminal based on the NFC data channel.
In the above scheme, the method further comprises:
In response to an operation request, the electronic device is set to the card mode.
In the above scheme, waking up the second application program based on the card reading request includes:
and routing the card reading request to card equipment of the electronic equipment through a second NFC controller built in the electronic equipment, and waking up the second application program based on an NFC event of the card equipment.
In the above aspect, the card device includes at least one of: security chip, SIM card and host card emulation software.
In a third aspect, an embodiment of the present application provides an NFC-based communication device, applied to an NFC terminal configured with a SIM card, where the communication device includes:
The sending module is used for sending a card reading request to the electronic equipment providing the NFC service based on the first application program in the Reader mode; the card reading request enables the electronic equipment to wake up a second application program, and an NFC data channel is established between the first application program and the second application program;
A receiving module, configured to receive a service instruction from the electronic device based on the NFC data channel;
the sending module is further configured to send the service instruction to the SIM card, and send a service response returned by the SIM card to the electronic device through the NFC data channel.
In a fourth aspect, an embodiment of the present application provides an NFC-based communication device, applied to an electronic apparatus, where the communication device includes:
The receiving module is used for receiving a card reading request sent by the NFC terminal in a card mode;
The control module is used for waking up a second application program based on the card reading request, and an NFC data channel is established between the second application program and the first application program of the NFC terminal;
The sending module is used for sending a service instruction to the NFC terminal based on the NFC data channel;
and the receiving module is further used for receiving a service response returned by the NFC terminal based on the NFC data channel.
In a fifth aspect, an embodiment of the present application provides an NFC terminal, including: a processor and a memory for storing a computer program capable of running on the processor, wherein the processor is adapted to perform the steps of the method according to the first aspect of the embodiments of the application when the computer program is run.
In a sixth aspect, an embodiment of the present application provides an electronic device, including: a processor and a memory for storing a computer program capable of running on the processor, wherein the processor is adapted to perform the steps of the method according to the first aspect of the embodiments of the application when the computer program is run.
In a seventh aspect, embodiments of the present application provide a computer storage medium having a computer program stored thereon, which when executed by a processor, implements the steps of the method according to any of the embodiments of the present application.
According to the technical scheme provided by the embodiment of the application, the NFC terminal provided with the SIM card sends a card reading request to the electronic equipment providing NFC service based on the first application program in the Reader mode; the card reading request enables the electronic equipment to wake up the second application program, and an NFC data channel is established between the first application program and the second application program; receiving a service instruction from the electronic device based on the NFC data channel; and sending the service instruction to the SIM card, and sending a service response returned by the SIM card to the electronic equipment through the NFC data channel. Therefore, based on the interaction mode between the NFC terminal in the Reader mode and the electronic equipment in the card mode, the limitation that the SIM card is required to open an NFC interaction interface when the traditional NFC terminal works in the card mode to interact with the outside is broken, and further data interaction of NFC application based on the SIM card of the NFC terminal which is not provided with the NFC interaction interface of the SIM card can be compatible, and coverage rate of NFC application based on the SIM card is greatly improved.
Drawings
Fig. 1 is a schematic diagram of a principle of establishing data interaction between an NFC mobile phone terminal and a POS terminal in the related art;
Fig. 2 is a flow chart of a communication method based on NFC at the NFC terminal side according to an embodiment of the present application;
Fig. 3 is a schematic flow chart of a communication method based on NFC at the electronic device side according to an embodiment of the present application;
Fig. 4 is a schematic diagram of a network structure between an NFC mobile phone terminal and a POS terminal in an application example of the present application;
Fig. 5 is a schematic diagram of an interaction flow between a POS terminal and an NFC mobile terminal according to an embodiment of the present application;
Fig. 6 is a schematic structural diagram of an NFC-based communication device according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a communication device based on NFC according to another embodiment of the present application;
fig. 8 is a schematic structural diagram of an NFC terminal according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the application.
Detailed Description
The present application will be described in further detail with reference to the accompanying drawings and examples.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein in the description of the application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application.
In the related art, data interaction based on NFC often is that an NFC terminal works in a card mode, a POS terminal works in a Reader mode, and taking NFC-based data interaction between an NFC mobile phone terminal and a POS terminal as an example, as shown in fig. 1, a specific flow is as follows:
1. An operator of the POS terminal initiates a transaction, and an APP (application program) of the POS terminal initiates a request to an NFC mobile phone terminal through an NFC Controller;
2. The NFC Controller of the NFC mobile phone terminal receives the NFC request and sends an instruction to the SIM card;
3. The SIM card processing instruction returns a response through the original path;
4. the entire transaction is completed through 1 or more such interactive processes.
In the above interaction method, the SIM card in the NFC terminal needs to open the NFC interaction interface, however, in some NFC terminals, the NFC interaction interface of the SIM card is not open, so that the above interaction flow cannot be realized, and the coverage rate of NFC applications of the NFC terminal based on the SIM card is affected.
Based on this, the embodiment of the application provides a communication method based on NFC, which is applied to an NFC terminal configured with an SIM card, wherein the NFC terminal can be portable terminal equipment such as a mobile phone, a smart bracelet and the like, and the SIM card can be understood as a super SIM card at least supporting NFC application.
As shown in fig. 2, the communication method based on NFC in the embodiment of the present application includes:
Step 201, in a Reader mode, sending a card reading request to an electronic device providing an NFC service based on a first application program; the card reading request enables the electronic equipment to wake up a second application program, and an NFC data channel is established between the first application program and the second application program.
For example, the NFC terminal may set the NFC terminal to the Reader mode in response to a first application being launched, i.e. an application loaded by the NFC terminal.
It should be noted that, the NFC terminal supports a communication mechanism of a card mode and a Reader mode, where if the NFC terminal is in the card mode, the NFC terminal may be understood as a simulated contactless card, and the electronic device may collect data from the NFC terminal and transmit the data to the application system for processing, so as to satisfy applications in a scene such as payment, ticketing, entrance guard, attendance, and the like; if the NFC terminal is in the Reader mode, data can be collected from the non-contact card through near field communication, and the data is collected and sent to a corresponding application to be processed.
For example, a user of the NFC terminal may open a first application program, thereby setting the NFC terminal to a Reader mode, and send a card reading request to the electronic device based on a "card attaching" operation, that is, an operation of approaching the electronic device providing the NFC service. Specifically, if the distance between the NFC terminal and the electronic device is within the NFC communication distance, the first application is triggered to send a card reading request to the electronic device in a manner of accessing a first NFC controller built in the NFC terminal.
In an example, the electronic device may be a POS terminal, and the POS terminal is in a card mode, at this time, the POS terminal routes the received card reading request to a local card device through a second NFC controller, and wakes up a second application of the POS terminal based on an NFC event generated by the card device, so that an NFC data channel is established between the first application of the NFC terminal side and the second application of the POS terminal side.
It may be appreciated that, in other examples, the electronic device may also be an electronic device that provides services such as access control and attendance checking based on NFC, which is not limited in the embodiments of the present application.
Step 202, receiving a service instruction from the electronic device based on the NFC data channel.
It may be understood that after the above NFC data channel is established between the NFC terminal and the electronic device, the electronic device may carry a service instruction in a return response to the card reading request, and the return response may be transferred to the NFC terminal by using the path of the above NFC data channel, that is, the first application of the NFC terminal receives the return response transferred by the electronic device based on the NFC data channel, and obtains the service instruction.
And step 203, the service instruction is sent to the SIM card, and a service response returned by the SIM card is sent to the electronic device through the NFC data channel.
It can be understood that after receiving a service instruction from the electronic device, the NFC terminal sends the service instruction to the SIM card by using the first application, and sends a service response returned by the SIM card to the electronic device through the NFC data channel, so that related services based on NFC can be completed through one or more interactions.
It should be noted that, the SIM card is internally provided with an NFC application, after receiving a service instruction, the SIM card performs data processing by the corresponding NFC application and generates a service response, and the SIM card returns the service response to the first application program and sends the service response to the second application program on the electronic device side through the NFC data channel by the first application program.
According to the NFC-based communication method, the NFC terminal provided with the SIM card sends a card reading request to the electronic equipment providing NFC service based on a mode that a first application program accesses a first NFC controller arranged in the NFC terminal in a Reader mode; the card reading request enables the electronic equipment to wake up the second application program, and an NFC data channel is established between the first application program and the second application program; receiving a service instruction from the electronic device based on the NFC data channel; and sending the service instruction to the SIM card, and sending a service response returned by the SIM card to the electronic equipment through the NFC data channel. Therefore, the limitation that the NFC interaction interface is required to be opened by the SIM card when the traditional NFC terminal works in the card mode to interact with the outside is broken, and further data interaction of NFC application based on the SIM card of the NFC terminal which does not have the NFC interaction interface of the SIM card can be compatible, and coverage rate of NFC application based on the SIM card is greatly improved.
The foregoing service instruction sent to the SIM card and the service response returned by the SIM card are implemented by the first application program on the NFC terminal side based on interaction with the SIM card by a preset communication manner, where the preset communication manner includes, but is not limited to, at least one of the following: the set-card interface communication, an independent bearer protocol (Bearer Independent Protocol, BIP), a data short message and bluetooth communication.
In an example, the first application of the NFC terminal communicates with the SIM Card via a set-Card interface, for example, via an APP-Card interface.
In another example, the interaction between the first application of the NFC terminal and the SIM card may be via BIP, which is a connection oriented transport protocol proposed in 3gpp TS 31.111. The super SIM card supports the HTTPS (Hypertext Transfer Protocol Secure, hyperText transfer Security protocol) mode of BIP for interaction, mainly to allow the SIM card and the server to establish an IP-based data connection.
In yet another example, the interaction between the first application of the NFC terminal and the SIM card may be via a data short message.
In yet another example, if the SIM card supports bluetooth communication, interaction may be performed between the first application of the NFC terminal and the SIM card via bluetooth communication.
The embodiment of the application also provides a communication method based on NFC, which is applied to electronic equipment, wherein the electronic equipment is electronic equipment for providing NFC service, for example, the electronic equipment comprises but not limited to the POS terminal, the electronic equipment for providing access control, attendance checking and other services based on NFC.
As shown in fig. 3, the communication method based on NFC in the embodiment of the present application includes:
In step 301, in the card mode, a card reading request sent by the NFC terminal is received.
For example, the electronic device may set the electronic device to the card mode in response to an operation request.
For example, an operator of the POS terminal may initiate a transaction request, the POS terminal may set the NFC mode to the card mode based on the operation request, and wait for access by the Reader.
Step 302, wake up a second application program based on the card reading request, and establish an NFC data channel between the second application program and the first application program of the NFC terminal.
Illustratively, waking a second application based on the card read request includes:
and routing the card reading request to card equipment of the electronic equipment through a second NFC controller built in the electronic equipment, and waking up the second application program based on an NFC event of the card equipment.
In an example, the electronic device may be a POS terminal, and the POS terminal is in a card mode, at this time, the POS terminal routes the received card reading request to a local card device through a second NFC controller, and wakes up a second application of the POS terminal based on an NFC event generated by the card device, so that an NFC data channel is established between the first application of the NFC terminal side and the second application of the POS terminal side.
Step 303, sending a service instruction to the NFC terminal based on the NFC data channel.
It may be understood that after the above NFC data channel is established between the NFC terminal and the electronic device, the electronic device may carry a service instruction in a return response to the card reading request, and the return response may be transferred to the NFC terminal by using the path of the above NFC data channel, that is, the first application of the NFC terminal receives the return response transferred by the electronic device based on the NFC data channel, and obtains the service instruction.
And step 304, receiving a service response returned by the NFC terminal based on the NFC data channel.
It can be understood that after receiving a service instruction from the electronic device, the NFC terminal sends the service instruction to the SIM card by using the first application, and sends a service response returned by the SIM card to the electronic device through the NFC data channel. Thus, the related service based on NFC can be completed through one or more interactions.
Illustratively, the card device of the electronic device includes, but is not limited to, at least one of: secure Element (SE), SIM card and host card emulation software (Host Card Emulation APP, HCE APP).
The form of the card device on the local side of the electronic device may be the above-mentioned security chip, SIM card, HCE APP, or the like. The card device is preferably in the form of HCE APP, so that hardware configuration can be omitted, compatibility with various existing electronic devices is facilitated, and convenience and simplicity in implementation are realized.
The NFC-based communication method according to the embodiment of the present application is described below with reference to an application example.
Fig. 4 shows a network architecture of the present application example, where the NFC terminal is an NFC mobile phone terminal and the electronic device is a POS terminal.
It should be noted that the POS terminal may operate in a card mode, for example, the APP of the POS terminal may set the NFC mode to the card mode; NFC mobile phone terminal works in Reader mode, this Reader mode can be set up by NFC mobile phone terminal's APP, NFC mobile phone terminal's APP is through Reader mode and POS terminal interaction, and NFC mobile phone terminal's APP can realize with the interaction of SIM Card through APP-Card interface, this interface can also support modes such as BIP, data SMS besides the local machine Card interface, perhaps realize bluetooth interaction through the SIM Card that supports bluetooth. An NFC data channel can be established between the APP (corresponding to the first application program) of the NFC mobile phone terminal and the APP (corresponding to the second application program) of the POS terminal through an NFC Controller, so that safe interaction between the APP of the POS terminal and the SIM card of the NFC mobile phone terminal is realized.
As shown in fig. 5, the interaction flow between the POS terminal and the NFC mobile phone terminal specifically includes:
1) An operator of the POS terminal initiates a transaction, an APP of the POS terminal sets an NFC mode to a card mode, and waits for access of a Reader;
2) Opening an APP (application program) by a user of the NFC mobile phone terminal, selecting NFC transaction (set to a Reader mode), and performing card sticking operation, wherein the APP sends a card reading request through a terminal NFC Controller;
3) The POS terminal receives the card reading request, routes the card reading request to local card equipment through the NFC Controller, the card equipment can be SE, SIM card, HCE APP and the like, and then pulls up the APP of the POS terminal through NFC events; thus, an NFC data channel between the APP of the POS terminal and the APP of the NFC mobile phone terminal is established;
4) The APP of the POS terminal returns a response to the APP of the mobile phone terminal through the original path, wherein the response comprises a POS transaction instruction, namely a transaction instruction sent by the POS terminal to the card in a normal NFC transaction flow;
5) The APP of the mobile phone terminal sends a transaction instruction to the SIM Card through an APP-Card interface, and after the SIM Card finishes processing, the APP of the mobile phone terminal sends a response to the APP of the mobile phone terminal;
6) The entire transaction is completed through 1 or more of the above interactive processes.
As can be seen from the above description, the transaction method of the application example adopts the method of backward interaction between the NFC mobile phone terminal and the POS terminal, breaks through the limitation that the SIM card is required to open the NFC interaction interface when the conventional NFC terminal works in the card mode to interact with the outside, further can be compatible with the data interaction of the NFC application of the NFC terminal based on the SIM card without opening the NFC interaction interface of the SIM card, and greatly improves the coverage rate of the NFC application based on the SIM card.
In order to implement the method of the embodiment of the present application, the embodiment of the present application further provides an NFC-based communication device, which is applied to an NFC terminal configured with a SIM card, as shown in fig. 6, where the communication device includes: a first transmitting module 601 and a first receiving module 602. The first sending module 601 is configured to send a card reading request to an electronic device that provides NFC services based on a first application in a Reader mode; the card reading request enables the electronic equipment to wake up a second application program, and an NFC data channel is established between the first application program and the second application program; the first receiving module 602 is configured to receive a service instruction from the electronic device based on the NFC data channel; the first sending module 601 is further configured to send the service instruction to the SIM card, and send a service response returned by the SIM card to the electronic device through the NFC data channel.
In some embodiments, the communication device further comprises a first control module 603 for setting the NFC terminal to the Reader mode in response to the first application being launched.
In some embodiments, the first sending module 601 sends a card reading request to an electronic device that provides NFC services based on a first application program, including:
And under the condition that the distance between the NFC terminal and the electronic equipment falls into the NFC communication distance, sending a card reading request to the electronic equipment based on the mode that the first application program accesses the first NFC controller arranged in the NFC terminal.
In some embodiments, the first application interacts with the SIM card based on a preset communication scheme, where the preset communication scheme includes at least one of: the machine card interface communication, the independent bearer protocol (BIP), the data short message and the Bluetooth communication.
In practical application, the first transmitting module 601, the first receiving module 602, and the first control module 603 may be implemented by a processor of the NFC terminal. Of course, the processor needs to run a computer program in memory to implement its functions.
In order to implement the method of the embodiment of the present application, the embodiment of the present application further provides an NFC-based communication device, which is applied to an electronic device, as shown in fig. 7, and the communication device includes: a second transmitting module 701, a second receiving module 702 and a second control module 703. The second receiving module 703 is configured to receive a card reading request sent by the NFC terminal in a card mode; the second control module 703 is configured to wake up a second application program based on the card reading request, and establish an NFC data channel between the second application program and the first application program of the NFC terminal; the second sending module 701 is configured to send a service instruction to the NFC terminal based on the NFC data channel; the second receiving module 702 is further configured to receive a service response returned by the NFC terminal based on the NFC data channel.
In some embodiments, the second control module 703 is further configured to:
In response to an operation request, the electronic device is set to the card mode.
In some embodiments, the second control module 703 wakes up the second application based on the card read request, including:
and routing the card reading request to card equipment of the electronic equipment through a second NFC controller built in the electronic equipment, and waking up the second application program based on an NFC event of the card equipment.
In some embodiments, the card device comprises at least one of: security chip, SIM card and host card emulation software.
In practical application, the second sending module 701, the second receiving module 702, and the second control module 703 may be implemented by a processor of the electronic device. Of course, the processor needs to run a computer program in memory to implement its functions.
It should be noted that: in the communication device provided in the above embodiment, only the division of each program module is used for illustration, and in practical application, the process allocation may be performed by different program modules according to needs, that is, the internal structure of the device is divided into different program modules, so as to complete all or part of the processes described above. In addition, the communication device and the communication method provided in the foregoing embodiments belong to the same concept, and specific implementation processes of the communication device and the communication method are detailed in the method embodiments and are not described herein again.
In order to implement the method of the embodiment of the application, the embodiment of the application also provides an NFC terminal. The NFC terminal is configured with a SIM card. Fig. 8 shows only an exemplary structure of the NFC terminal, not all of which may be implemented as needed.
As shown in fig. 8, an NFC terminal 800 provided in an embodiment of the present application includes: at least one processor 801, memory 802, a user interface 803, and at least one network interface 804. The various components in NFC terminal 800 are coupled together by bus system 805. It is appreciated that the bus system 805 is used to enable connected communications between these components. The bus system 805 includes a power bus, a control bus, and a status signal bus in addition to the data bus. But for clarity of illustration, the various buses are labeled as bus system 805 in fig. 8.
The user interface 803 may include, among other things, a display, keyboard, mouse, trackball, click wheel, keys, buttons, touch pad, or touch screen, etc.
The memory 802 in the embodiment of the present application is used to store various types of data to support the operation of the NFC terminal. Examples of such data include: any computer program for operating on an NFC terminal.
The communication method based on NFC disclosed in the embodiments of the present application may be applied to the processor 801 or implemented by the processor 801. The processor 801 may be an integrated circuit chip with signal processing capabilities. In implementation, the steps of the NFC-based communication method may be accomplished by instructions in the form of integrated logic circuits or software in hardware in the processor 801. The Processor 801 may be a general purpose Processor, a digital signal Processor (DSP, digital Signal Processor), or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. The processor 801 may implement or perform the methods, steps, and logic blocks disclosed in embodiments of the present application. The general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed in the embodiment of the application can be directly embodied in the hardware of the decoding processor or can be implemented by combining hardware and software modules in the decoding processor. The software module may be located in a storage medium, where the storage medium is located in a memory 802, and the processor 801 reads information in the memory 802, and in combination with its hardware, performs the steps of the NFC-based communication method provided by the embodiments of the present application.
In an exemplary embodiment, the NFC terminal may be implemented by one or more Application Specific Integrated Circuits (ASICs), DSPs, programmable logic devices (PLDs, programmable Logic Device), complex programmable logic devices (CPLDs, complex Programmable Logic Device), field programmable gate arrays (FPGAs, field Programmable GATE ARRAY), general purpose processors, controllers, microcontrollers (MCUs, micro Controller Unit), microprocessors (microprocessors), or other electronic elements for performing the aforementioned methods.
In order to realize the method of the embodiment of the application, the embodiment of the application also provides electronic equipment. The electronic device is an electronic device that provides services based on NFC. Fig. 9 shows only an exemplary structure of the electronic device, not all of the structure, and part or all of the structure shown in fig. 9 may be implemented as needed.
As shown in fig. 9, an electronic device 900 provided in an embodiment of the present application includes: at least one processor 901, memory 902, a user interface 903, and at least one network interface 904. The various components in the electronic device 900 are coupled together by a bus system 905. It is appreciated that the bus system 905 is used to enable connected communications between these components. The bus system 905 includes a power bus, a control bus, and a status signal bus in addition to the data bus. But for clarity of illustration the various buses are labeled as bus system 905 in fig. 9.
The user interface 903 may include, among other things, a display, keyboard, mouse, trackball, click wheel, keys, buttons, touch pad, or touch screen, etc.
The memory 902 in embodiments of the application is used to store various types of data to support the operation of the electronic device. Examples of such data include: any computer program for operating on an electronic device.
The communication method based on NFC disclosed in the embodiments of the present application may be applied to the processor 901 or implemented by the processor 901. Processor 901 may be an integrated circuit chip with signal processing capabilities. In an implementation, the steps of the NFC-based communication method may be accomplished by instructions in the form of integrated logic circuits or software of hardware in the processor 901. The Processor 901 may be a general purpose Processor, a digital signal Processor (DSP, digital Signal Processor), or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. Processor 901 may implement or perform the methods, steps and logic blocks disclosed in embodiments of the present application. The general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed in the embodiment of the application can be directly embodied in the hardware of the decoding processor or can be implemented by combining hardware and software modules in the decoding processor. The software module may be located in a storage medium, where the storage medium is located in the memory 902, and the processor 901 reads information in the memory 902, and in combination with hardware thereof, performs the steps of the NFC-based communication method provided by the embodiment of the present application.
In an exemplary embodiment, the electronic device 900 may be implemented by one or more ASIC, DSP, PLD, CPLD, FPGA, general-purpose processors, controllers, MCU, microprocessor, or other electronic components for performing the foregoing methods.
It will be appreciated that the memory 802, 902 can be either volatile memory or nonvolatile memory, and can include both volatile and nonvolatile memory. The non-volatile Memory may be, among other things, a Read Only Memory (ROM), a programmable Read Only Memory (PROM, programmable Read-Only Memory), erasable programmable Read-Only Memory (EPROM, erasable Programmable Read-Only Memory), electrically erasable programmable Read-Only Memory (EEPROM, ELECTRICALLY ERASABLE PROGRAMMABLE READ-Only Memory), Magnetic random access Memory (FRAM, ferromagnetic random access Memory), flash Memory (Flash Memory), magnetic surface Memory, optical disk, or compact disk-Only (CD-ROM, compact Disc Read-Only Memory); the magnetic surface memory may be a disk memory or a tape memory. The volatile memory may be random access memory (RAM, random Access Memory) which acts as external cache memory. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM, static Random Access Memory), synchronous static random access memory (SSRAM, synchronous Static Random Access Memory), dynamic random access memory (DRAM, dynamic Random Access Memory), synchronous dynamic random access memory (SDRAM, synchronous Dynamic Random Access Memory), and, Double data rate synchronous dynamic random access memory (DDRSDRAM, double Data Rate Synchronous Dynamic Random Access Memory), enhanced synchronous dynamic random access memory (ESDRAM, enhanced Synchronous Dynamic Random Access Memory), synchronous link dynamic random access memory (SLDRAM, syncLink Dynamic Random Access Memory), Direct memory bus random access memory (DRRAM, direct Rambus Random Access Memory). The memory described by embodiments of the present application is intended to comprise, without being limited to, these and any other suitable types of memory.
In an exemplary embodiment, the present application further provides a computer storage medium, specifically a computer readable storage medium, for example, including a memory 802 storing a computer program, where the computer program may be executed by the processor 801 of the NFC terminal to perform the steps described in the method of the embodiment of the present application; as another example, a memory 902 storing a computer program executable by the processor 901 of the electronic device to perform the steps described by the methods of embodiments of the present application is included. The computer readable storage medium may be ROM, PROM, EPROM, EEPROM, flash Memory, magnetic surface Memory, optical disk, or CD-ROM.
It should be noted that: "first," "second," etc. are used to distinguish similar objects and not necessarily to describe a particular order or sequence.
In addition, the embodiments of the present application may be arbitrarily combined without any collision.
The foregoing is merely illustrative of the present application, and the present application is not limited thereto, and any person skilled in the art will readily recognize that variations or substitutions are within the scope of the present application. Therefore, the protection scope of the application is subject to the protection scope of the claims.
Claims (12)
1. A communication method based on near field communication NFC, which is applied to an NFC terminal configured with a subscriber identity module SIM card, the method comprising:
In a Reader mode, sending a card reading request to an electronic device providing NFC service based on a first application program; the card reading request enables the electronic equipment to wake up a second application program, and an NFC data channel is established between the first application program and the second application program;
receiving a service instruction from the electronic equipment based on the NFC data channel;
And sending the service instruction to the SIM card, and sending a service response returned by the SIM card to the electronic equipment through the NFC data channel.
2. The method according to claim 1, wherein the method further comprises:
and setting the NFC terminal to the Reader mode in response to the first application program being started.
3. The method of claim 1, wherein the sending, based on the first application, the card read request to the electronic device providing the NFC service comprises:
And under the condition that the distance between the NFC terminal and the electronic equipment falls into the NFC communication distance, sending a card reading request to the electronic equipment based on the mode that the first application program accesses the first NFC controller arranged in the NFC terminal.
4. The method of claim 1, wherein the first application interacts with the SIM card based on a preset communication scheme, wherein the preset communication scheme includes at least one of card interface communication, bearer independent protocol BIP, data text message, and bluetooth communication.
5. A communication method based on NFC, applied to an electronic device, the method comprising:
in a card mode, receiving a card reading request sent by an NFC terminal;
Waking up a second application program based on the card reading request, and establishing an NFC data channel between the second application program and a first application program of the NFC terminal;
sending a service instruction to the NFC terminal based on the NFC data channel;
And receiving a service response returned by the NFC terminal based on the NFC data channel.
6. The method of claim 5, wherein the method further comprises:
In response to an operation request, the electronic device is set to the card mode.
7. The method of claim 5, wherein waking a second application based on the card read request comprises:
Routing the card reading request to card equipment of the electronic equipment through a second NFC controller built in the electronic equipment, and waking up the second application program based on an NFC event of the card equipment;
Wherein the card device comprises at least one of: security chip, SIM card and host card emulation software.
8. An NFC-based communication device, for application to an NFC terminal configured with a SIM card, the communication device comprising:
The sending module is used for sending a card reading request to the electronic equipment providing the NFC service based on the first application program in the Reader mode; the card reading request enables the electronic equipment to wake up a second application program, and an NFC data channel is established between the first application program and the second application program;
A receiving module, configured to receive a service instruction from the electronic device based on the NFC data channel;
the sending module is further configured to send the service instruction to the SIM card, and send a service response returned by the SIM card to the electronic device through the NFC data channel.
9. An NFC-based communication device, for application to an electronic apparatus, the communication device comprising:
The receiving module is used for receiving a card reading request sent by the NFC terminal in a card mode;
The control module is used for waking up a second application program based on the card reading request, and a data channel is established between the second application program and the first application program of the NFC terminal;
The sending module is used for sending a service instruction to the NFC terminal based on the NFC data channel;
and the receiving module is further used for receiving a service response returned by the NFC terminal based on the NFC data channel.
10. An NFC terminal, comprising: a processor and a memory for storing a computer program capable of running on the processor, wherein,
The processor being adapted to perform the steps of the method of any of claims 1 to 4 when the computer program is run.
11. An electronic device, comprising: a processor and a memory for storing a computer program capable of running on the processor, wherein,
The processor being adapted to perform the steps of the method of any of claims 5 to 7 when the computer program is run.
12. A computer storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method according to any of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211484910.2A CN118075720A (en) | 2022-11-24 | 2022-11-24 | NFC-based communication method, device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211484910.2A CN118075720A (en) | 2022-11-24 | 2022-11-24 | NFC-based communication method, device and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN118075720A true CN118075720A (en) | 2024-05-24 |
Family
ID=91101091
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211484910.2A Pending CN118075720A (en) | 2022-11-24 | 2022-11-24 | NFC-based communication method, device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN118075720A (en) |
-
2022
- 2022-11-24 CN CN202211484910.2A patent/CN118075720A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9420409B2 (en) | Near field communication device | |
US11068676B2 (en) | Service processing method, device and apparatus | |
US8181867B1 (en) | Transit card credit authorization | |
US20230054157A1 (en) | Near field communication nfc communication method and apparatus, and electronic device | |
US9209866B2 (en) | Securing of a telecommunication device equipped with a near-field communication module | |
US20120089507A1 (en) | Device, system and transaction method for integrating payment function and receipt function | |
US11113684B2 (en) | Device, system, and method for creating virtual credit card | |
CN104933555B (en) | Moade setting method and device | |
KR101389468B1 (en) | Method for issuing mobile credit card in portable terminal using credit card and credit card for the same | |
US20020016186A1 (en) | Mobile phone | |
JP2005202914A (en) | Secure device and information processor | |
CN106503986B (en) | Virtual resource transfer method and device | |
CN105577375A (en) | Identity authentication method and device | |
WO2012037791A1 (en) | Method, device and system for displaying radio frequency identification application information | |
JPWO2005059816A1 (en) | Information display method, portable information device, and contactless communication device | |
CN107005575A (en) | A kind of smart card and its method of work with dynamic token OTP functions | |
US9665414B2 (en) | Communication protocol bridge for card computing devices | |
CN118075720A (en) | NFC-based communication method, device and storage medium | |
WO2018210271A1 (en) | Card writing method and device, terminal, server, and storage medium | |
CN112613872A (en) | Type 4NFC tag as protocol interface | |
CN114707985A (en) | Resource allocation method, device and system | |
KR101755095B1 (en) | System for operating virtual electronic cashbox using automatic teller machine and method thereof | |
CN214475113U (en) | Function expanding device | |
CN107959923A (en) | A kind of information processing method and device | |
KR20140142996A (en) | Method for processing data of applet included in a plurity of secure element and apparatus for the same |
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 |