CN108601005B - Near field communication method, near field communication module, terminal and storage medium - Google Patents

Near field communication method, near field communication module, terminal and storage medium Download PDF

Info

Publication number
CN108601005B
CN108601005B CN201810390041.4A CN201810390041A CN108601005B CN 108601005 B CN108601005 B CN 108601005B CN 201810390041 A CN201810390041 A CN 201810390041A CN 108601005 B CN108601005 B CN 108601005B
Authority
CN
China
Prior art keywords
notification event
terminal
event message
message
nfc module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810390041.4A
Other languages
Chinese (zh)
Other versions
CN108601005A (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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201810390041.4A priority Critical patent/CN108601005B/en
Publication of CN108601005A publication Critical patent/CN108601005A/en
Application granted granted Critical
Publication of CN108601005B publication Critical patent/CN108601005B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07FCOIN-FREED OR LIKE APPARATUS
    • G07F7/00Mechanisms actuated by objects other than coins to free or to actuate vending, hiring, coin or paper currency dispensing or refunding apparatus
    • G07F7/08Mechanisms actuated by objects other than coins to free or to actuate vending, hiring, coin or paper currency dispensing or refunding apparatus by coded identity card or credit card or other personal identification means
    • G07F7/086Mechanisms actuated by objects other than coins to free or to actuate vending, hiring, coin or paper currency dispensing or refunding apparatus by coded identity card or credit card or other personal identification means by passive credit-cards adapted therefor, e.g. constructive particularities to avoid counterfeiting, e.g. by inclusion of a physical or chemical security-layer
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The disclosure relates to a near field communication method, a near field communication module, a terminal and a storage medium, and belongs to the technical field of near field communication. The near field communication method is applied to a first terminal and comprises the following steps: when receiving a first notification event message sent by a second terminal, wherein the second terminal is other than the first terminal; acquiring notification event information carried by the first notification event message; generating a notification event according to the notification event information; and sending the notification event to an output device so as to enable the output device to output the notification event information. Different second terminals can send notification event information when carrying out near field communication with first terminal for the notification event no longer binds with the card type, and it is more nimble to use, and application range is wider. Meanwhile, the related content of the notification event is not required to be written in the program of the near field communication module, and the program in the near field communication module is simplified.

Description

Near field communication method, near field communication module, terminal and storage medium
Technical Field
The present disclosure relates to the field of near field communication, and in particular, to a near field communication method, a near field communication module, a terminal, and a storage medium.
Background
Near Field Communication (NFC) is an emerging technology, and devices (such as mobile terminals like mobile phones) equipped with an NFC module can exchange data when they are close to each other. The standard NFC module supports three modes: card emulation, card readers, and peer-to-peer communication. The card simulation means that the NFC module is simulated to be a card to receive access of the card swiping terminal.
In the card simulation mode, after the card swiping terminal and the NFC module in the mobile terminal complete data interaction, the NFC module in the mobile terminal may send a notification Event to the processing unit of the mobile terminal by using a Host Controller interface Event (HCI Event) mechanism, and the processing unit of the mobile terminal may display the notification Event on the screen after receiving the notification Event. For example, if the NFC module in the mobile terminal is used to simulate a bus card, the notification event may include the balance of the bus card, and after the processing unit of the mobile terminal receives the notification event, the balance of the bus card is displayed on the screen.
At present, a notification event is bound with the type of a card simulated by an NFC module, and only an NFC module program corresponding to a card of a preset type contains a program for triggering an HCI event mechanism, so that the application is not flexible enough, and the application range is limited.
Disclosure of Invention
In order to overcome the problems that in the related art, a notification event is bound with the type of a card simulated by an NFC module, only an NFC module program corresponding to a preset type of card contains a program for triggering an HCI event mechanism, the application is not flexible enough, and the use range is limited, the near field communication method, the near field communication module, the terminal and the storage medium are provided.
According to a first aspect of the embodiments of the present disclosure, there is provided a near field communication method applied to a first terminal, the near field communication method including: receiving a first notification event message sent by a second terminal, wherein the second terminal is other than the first terminal; acquiring notification event information carried by the first notification event message; generating a notification event according to the notification event information; and sending the notification event to an output device so as to enable the output device to output the notification event information.
In the embodiment of the present disclosure, the notification event information is acquired by receiving the notification event message sent by the second terminal, then the notification event is generated according to the notification event information, and then the notification event is sent to the output device for outputting the notification event information. In the process, the notification event is generated according to the notification event message, the notification event message is sent by the second terminal, and different second terminals can send the notification event information when performing near field communication with the first terminal, so that the notification event is not bound with the card type any more, the application is more flexible, and the application range is wider. Meanwhile, the related content of the notification event is not required to be written in the program of the NFC module, so that the program in the NFC module is simplified.
The first terminal is a terminal device with an NFC module, such as a mobile terminal; the second terminal is a card swiping terminal, such as bus card swiping equipment, bank card swiping equipment, access control card swiping equipment and the like.
The output device may be the first terminal, or may be another terminal connected to the first terminal, for example, a wearable device wirelessly connected to the first terminal.
The output mode of the notification event message includes, but is not limited to, screen display, voice broadcast, and the like.
In one implementation of the present disclosure, the method further comprises: when receiving a second notification event message sent by the second terminal, performing at least one of the following actions: discarding the second notification event message, and sending an error report message; the second notification event message is a notification event message which does not meet a preset condition; the first notification event message is a notification event message meeting a preset condition.
In order to ensure the validity of the notification message and avoid outputting an illegal or unsatisfied notification event, whether the received notification event message meets the requirement or not can be determined by a preset condition, and actions such as discarding and error reporting can be performed if the preset condition is not met. And if the conditions are met, performing subsequent processing.
In another implementation manner of the present disclosure, the preset condition includes at least one of: the number of the notification event messages received in the primary communication process with the second terminal is less than a number threshold; the second terminal that transmitted the notification event message has been authenticated; notifying that the length of the event message is less than the length threshold; the format of the notification event message is a preset message format; and the coding rule of the notification event message is a preset coding rule.
In this implementation, the preset condition includes multiple ways, for example, the number of times that the communication event messages received by the first terminal and the second terminal in one communication process are limited to be less than a quantity threshold, so that the notification event is prevented from being frequently displayed in one communication process, and normal use of the user is prevented from being affected; for another example, the second terminal is limited to be authenticated, and the display of illegal notification events sent by the second terminal is avoided; for another example, the length of the notification event message is limited, so that excessive communication traffic is avoided; for another example, the format and the encoding rule of the notification event message are defined, so that the first terminal cannot decompress and identify the notification event message.
In another implementation manner of the present disclosure, the acquiring notification event information carried in the first notification event message includes: decompressing the first notification event message according to a preset coding rule; and acquiring the notification event information from the decompressed first notification event message.
In the embodiment of the present disclosure, the second terminal carries notification event information through the notification event message, and accordingly, the first terminal needs to acquire the notification event information from the notification event message according to a preset encoding rule, and further generates a notification event through the notification event message and sends the notification event to the output device.
In another implementation manner of the present disclosure, the generating a notification event according to the notification event information includes: and packaging the notification event information according to a preset format to generate a notification event.
In this implementation, the first terminal encapsulates the notification event information obtained from the notification event message according to a predetermined format, that is, fills the notification event information into a data frame of the predetermined format to generate a notification event, and then sends the notification event to the output device.
According to a second aspect of the embodiments of the present disclosure, there is provided a near field communication method applied to a second terminal, the near field communication method including: generating a notification event message, the notification event message including notification event information; and sending the notification event message to a first terminal, wherein the notification event message is used for indicating the first terminal to generate a notification event according to the notification event information, and the notification event is used for indicating an output device to output notification event information.
In the embodiment of the disclosure, the notification event information is transmitted by sending the notification event message to the first terminal, so that the first terminal can generate the notification event according to the notification event information and send the notification event to the output device to output the notification event information. Meanwhile, the related content of the notification event is not required to be written in the program of the NFC module, so that the program in the NFC module is simplified.
According to a third aspect of the embodiments of the present disclosure, an NFC module applied to a first terminal is provided, where the NFC module includes: a receiving unit, configured to receive a first notification event message sent by a second terminal, where the second terminal is a terminal other than the first terminal; an obtaining unit, configured to obtain notification event information carried by the first notification event message; the generating unit is used for generating a notification event according to the notification event information; and the sending unit is used for sending the notification event to output equipment so as to enable the output equipment to output the notification event information.
In one implementation manner of the present disclosure, the NFC module further includes: a processing unit, configured to, upon receiving a second notification event message sent by the second terminal, perform at least one of the following actions: discarding the second notification event message, and sending an error report message; the second notification event message is a notification event message which does not meet a preset condition; the first notification event message is a notification event message meeting a preset condition.
In another implementation manner of the present disclosure, the preset condition includes at least one of: the number of the notification event messages received in the primary communication process with the second terminal is less than a number threshold; the second terminal that transmitted the notification event message has been authenticated; notifying that the length of the event message is less than the length threshold; the format of the notification event message is a preset message format; and the coding rule of the notification event message is a preset coding rule.
In another implementation manner of the present disclosure, the obtaining unit is configured to decompress the first notification event message according to a preset encoding rule; and acquiring the notification event information from the decompressed first notification event message.
In another implementation manner of the present disclosure, the generating unit is configured to package the notification event information according to a predetermined format, and generate a notification event.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a terminal including the NFC module according to any one of the third aspects.
According to a fifth aspect of the embodiments of the present disclosure, there is provided a terminal, including: a generating unit, configured to generate a notification event message, where the notification event message includes notification event information; a sending unit, configured to send the notification event message to a first terminal, where the notification event message is used to instruct the first terminal to generate a notification event according to the notification event information, and the notification event is used to instruct an output device to output notification event information.
According to a sixth aspect of the embodiments of the present disclosure, there is provided a terminal, including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to: receiving a first notification event message sent by another terminal, wherein the another terminal is other than the terminal; acquiring notification event information carried by the first notification event message; generating a notification event according to the notification event information; and sending the notification event to an output device so as to enable the output device to output the notification event information.
According to a seventh aspect of embodiments of the present disclosure, there is provided a storage medium having instructions that, when executed by a processor of a terminal, enable the terminal to perform the near field communication method according to any one of the first aspect.
According to an eighth aspect of the embodiments of the present disclosure, there is provided a terminal, including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to: generating a notification event message, the notification event message including notification event information; sending the notification event message by another terminal, wherein the other terminal is other than the terminal; the notification event message is used for instructing the other terminal to generate a notification event according to the notification event information, and the notification event is used for instructing an output device to output notification event information.
According to a ninth aspect of embodiments of the present disclosure, there is provided a storage medium having instructions that, when executed by a processor of a terminal, enable the terminal to perform the near field communication method according to the second aspect.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
in the embodiment of the present disclosure, the notification event information is acquired by receiving the notification event message sent by the second terminal, then the notification event is generated according to the notification event information, and then the notification event is sent to the output device for outputting the notification event information. In the process, the notification event is generated according to the notification event message, the notification event message is sent by the second terminal, and different second terminals can send the notification event information when performing near field communication with the first terminal, so that the notification event is not bound with the card type any more, the application is more flexible, and the application range is wider. Meanwhile, the related content of the notification event is not required to be written in the program of the NFC module, so that the program in the NFC module is simplified.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a schematic block diagram of a near field communication system according to an exemplary embodiment;
FIG. 2 is a diagram illustrating a communication process between a mobile terminal and a card swipe terminal according to an example embodiment;
FIG. 3 is a flow chart illustrating a near field communication method in accordance with an exemplary embodiment;
FIG. 4 is a flow chart illustrating a near field communication method in accordance with an exemplary embodiment;
FIG. 5 is a flow chart illustrating a near field communication method in accordance with an exemplary embodiment;
fig. 6 is a schematic structural diagram of an NFC module according to an exemplary embodiment;
FIG. 7 is a block diagram illustrating a terminal in accordance with an exemplary embodiment;
FIG. 8 is a block diagram illustrating a terminal in accordance with an exemplary embodiment;
FIG. 9 is a block diagram illustrating a terminal in accordance with an exemplary embodiment;
fig. 10 is a block diagram illustrating a terminal according to an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
In order to facilitate understanding of the technical solutions provided by the embodiments of the present disclosure, the following description first describes a near field communication technology:
the standard NFC module supports three modes: card simulation, card reader and point-to-point communication, wherein in the card reader mode, the NFC module can read and write any supported NFC label and read data in the NFC label in the NFC data format standard; in the point-to-point communication mode, the two NFC modules may exchange data, for example, data such as virtual business cards or digital photos may be exchanged between the NFC modules; in the card emulation mode, the NFC module plays the role of a card, and can be used as a tag or a read wireless card. The present disclosure is primarily directed to a card simulation mode therein.
Fig. 1 is a schematic structural diagram of a near field communication system according to an embodiment of the present disclosure, where an NFC module 101 in a mobile terminal 100 communicates with a card swiping terminal (POS) 200 in a card emulation mode, for example, emulates a bus card, a bank card, and the like, and in this process, the NFC module 101 in the mobile terminal 100 performs information interaction with a processing unit 102 in the mobile terminal 100.
In the conventional communication process, the communication process between the mobile terminal 100 and the card swiping terminal 200 is as shown in fig. 2:
and S1, the card swiping terminal 200 and the NFC module 101 of the mobile terminal 100 perform information interaction.
In the card simulation mode, the mobile terminal 100 operates in the passive communication mode, that is, the card swiping terminal 200 provides a radio frequency field in the whole communication process, the card swiping terminal 200 can select a transmission speed and send data to the NFC module 101 of the mobile terminal 100, the NFC module 101 of the mobile terminal 100 does not need to generate a radio frequency field, and the induced electromotive force is used to provide a power supply required by operation, and data is received and sent by using a modulation technology according to the same transmission speed.
In the above information exchange process, the structure of the data frame is corresponding to the transmission speed, for example, at a rate of 106kb/s, there are three frame structures: short frames (communication initialization), standard frames (data exchange), detection frames (for collision detection); at rates of 212kb/s and 424kb/s, there is only one frame structure for the three effects described above, which consists of preamble, sync code, payload length, payload and check code in order.
Taking a bus card as an example, the information interaction between the NFC module 101 of the mobile terminal 100 and the card swiping terminal 200 includes: the card swiping terminal 200 firstly sends a card balance sending request to the NFC module 101 of the mobile terminal 100; the NFC module 101 of the mobile terminal 100 sends the card balance to the card swiping terminal 200; after deducting the bus card, the card swiping terminal 200 sends the balance after deduction to the NFC module 101 of the mobile terminal 100.
S2, NFC module 101 of mobile terminal 100 sends a notification Event to processing unit 102 of mobile terminal 100 through HCI Event mechanism.
The notification event refers to a message carrying data of the card simulated by the NFC module 101. For example, the NFC module 101 simulating a bus card may send the balance before and after the deduction to the processing unit 102 of the mobile terminal 100 through a notification event after the NFC module 101 of the mobile terminal 100 obtains the balance after the deduction.
S3, the processing unit 102 of the mobile terminal 100 displays the notification event on the screen of the mobile terminal.
The processing unit 102 of the mobile terminal 100 displays the balance before and after the deduction on the screen of the mobile terminal. Of course, the processing unit 102 of the mobile terminal 100 may also calculate the money deduction amount according to the balance before and after the money deduction, and display the money deduction amount and the balance before and after the money deduction on the screen of the mobile terminal.
Because the sending process of the notification event is realized by executing the program fixed in the NFC module, the notification event is bound with the card which simulates the preset kind of the NFC module. For example, when the bus card application of the mobile terminal selects the NFC module to work in the card simulation mode, and the NFC module is used as the bus card, the executed program in the NFC module sends a notification event to the processing unit of the mobile terminal through the communication component of the NFC module after the data interaction between the NFC module and the card swiping terminal is completed. Therefore, only the NFC module program corresponding to the predetermined kind of card includes the program for triggering the HCI event mechanism, and the application is not flexible enough and the application range is limited.
In order to solve the above problem, embodiments of the present disclosure provide a near field communication method, a near field communication module, a terminal, and a storage medium, which are described in detail in the following embodiments.
Fig. 3 is a flowchart illustrating a near field communication method according to an exemplary embodiment, which is executed by an NFC module in a card emulation mode and applied to a first terminal, and referring to fig. 3, the near field communication method includes:
in step S11, the first notification event message sent by the second terminal is received.
Wherein the second terminal is a terminal other than the first terminal.
The first terminal is a terminal device with an NFC module, such as a mobile terminal; the second terminal is a card swiping terminal, such as bus card swiping equipment, bank card swiping equipment, access control card swiping equipment and the like.
The output device may be the first terminal, or may be another terminal connected to the first terminal, for example, a wearable device wirelessly connected to the first terminal.
In step S12, the notification event information carried by the first notification event message is acquired.
The notification event information may include data of the card simulated by the NFC module. Taking a bus card as an example, the notification event information may include the balance before and after deduction. The notification event information may further include output parameters, such as a display format and a display duration, when the output device outputs the data of the card simulated by the NFC module.
In the disclosed embodiment, the notification event message may be in a standard frame format, i.e. the same frame format as used by the data exchange process. The notification event message may carry an identifier (for example, carried in a payload) for indicating a type of the message, or the second terminal sends an indication message (indicating that the notification event message is to be sent) before sending the notification event message, so that the first terminal may determine whether the received message is the notification event message. In other embodiments, the notification event message may also adopt other frame formats, which is not limited by this disclosure.
In the embodiment of the present disclosure, step S12 may include: and decoding the notification event message, and then acquiring notification event information from the decoded notification event message according to the format of the standard frame.
In step S13, a notification event is generated based on the notification event information.
In the embodiment of the present disclosure, step S13 may include: and packaging the notification event information according to a preset format to generate a notification event. For example, the notification Event information is encapsulated in the HCI Event frame format to generate a notification Event.
In step S14, the notification event is sent to an output device to cause the output device to output the notification event information.
The output device may be the first terminal, or may be another terminal connected to the first terminal, for example, a wearable device wirelessly connected to the first terminal. When the output device may be the first terminal, step S14 may include: sending the notification event to a processing unit of the mobile terminal so that the processing unit of the mobile terminal outputs notification event information through an output component; when the output device may be another terminal, step S14 may include: and sending the notification event to a processing unit of the mobile terminal, and transmitting the notification event to other terminals by the processing unit, wherein the transmission mode can be a wireless transmission mode such as Bluetooth and the like.
The output mode of the notification event message includes, but is not limited to, screen display, voice broadcast, and the like.
The notification event information includes part or all of the information of the output notification content on the output device, that is, the notification content output by the output device is wholly or partially from the notification event information. Taking the example that the notification content part output by the output device is from the notification event information, the output device displays the data of the card in the notification event information, and also displays other data, such as the type of the card.
Generally, when different cards are simulated by using the NFC module, the first terminal may start different application programs, and the notification event information may be output through the corresponding application program, for example, displayed on an application program interface for a user to view.
In the embodiment of the present disclosure, the notification event information is acquired by receiving the notification event message sent by the second terminal, then the notification event is generated according to the notification event information, and then the notification event is sent to the output device for outputting the notification event information. In the process, the notification event is generated according to the notification event message, the notification event message is sent by the second terminal, and different second terminals can send the notification event information when performing near field communication with the first terminal, so that the notification event is not bound with the card type any more, the application is more flexible, and the application range is wider. Meanwhile, the related content of the notification event is not required to be written in the program of the NFC module, so that the program in the NFC module is simplified.
Fig. 4 is a flowchart illustrating a near field communication method performed by a second terminal (card swiping terminal) according to an exemplary embodiment, referring to fig. 4, the near field communication method comprising:
in step S21, a notification event message is generated, the notification event message including notification event information.
Step S21 may include obtaining notification event information, where the notification event information may include data of a card simulated by the NFC module; and generating a notification event message according to the notification event information. Taking a bus card as an example, the notification event information may include the balance before and after deduction.
The data of the card is obtained according to the data that can be obtained from the NFC module, for example, a bus card, the second terminal may obtain the balance before deduction from the NFC module (see step S1 in fig. 2), and the balance after deduction may be calculated according to the balance before deduction and the amount to be deducted (known to the second terminal).
The notification event information may further include output parameters, such as a display format and a display duration, when the output device outputs the data of the card simulated by the NFC module.
Generating a notification event message according to the notification event information may include: and packaging the notification event information to obtain a notification event message. The frame structure for encapsulating the notification event information may be determined according to a transmission speed, which is a transmission speed between the second terminal and the first terminal.
In step S22, the notification event message is sent to the first terminal, where the notification event message is used to instruct the first terminal to generate a notification event according to the notification event information, and the notification event is used to instruct an output device to output notification event information.
The first terminal is a terminal device with an NFC module, such as a mobile terminal; the second terminal is a card swiping terminal, such as bus card swiping equipment, bank card swiping equipment, access control card swiping equipment and the like.
The output device may be the first terminal, or may be another terminal connected to the first terminal, for example, a wearable device wirelessly connected to the first terminal.
The output device may be the first terminal, or may be another terminal connected to the first terminal, for example, a wearable device wirelessly connected to the first terminal.
The output mode of the notification event message includes, but is not limited to, screen display, voice broadcast, and the like.
In the embodiment of the present disclosure, step S22 may include sending the notification event message to the NFC module of the first terminal according to a predetermined transmission speed.
In the embodiment of the disclosure, the notification event information is transmitted by sending the notification event message to the first terminal, so that the first terminal can generate the notification event according to the notification event information and send the notification event to the output device to output the notification event information. Meanwhile, the related content of the notification event is not required to be written in the program of the NFC module, so that the program in the NFC module is simplified.
Fig. 5 is a flowchart illustrating a near field communication method according to an exemplary embodiment, where the method is performed by a first terminal and a second terminal, the first terminal is a terminal device having an NFC module, and the first terminal and the second terminal perform information transmission through near field communication, and referring to fig. 5, the near field communication method includes:
in step S31, the second terminal performs an anti-collision detection process.
The purpose of anti-collision detection is to avoid interference with other NFC devices that are operating or other types of devices that operate in the same frequency band. When implemented, the anti-collision detection can be implemented as follows: detecting the size of the radio frequency field of the set NFC frequency band, when the detected radio frequency field of the NFC frequency band is smaller than the threshold value, the second terminal may execute step S32, and when the detected radio frequency field of the NFC frequency band is not smaller than the threshold value, re-detecting the size of the radio frequency field of the NFC frequency band after a certain time interval.
The first terminal may be a mobile terminal, such as a mobile phone, a wearable device, or the like; the second terminal is a card swiping terminal, such as bus card swiping equipment, bank card swiping equipment, access control card swiping equipment and the like.
The output device may be the first terminal, or may be another terminal connected to the first terminal, for example, a wearable device wirelessly connected to the first terminal.
This step S31 is an optional step, and the second terminal may not perform this step and directly interact with the first terminal.
In step S32, the NFC module of the first terminal performs information interaction with the second terminal.
The details of step S32 can be referred to step S1 in fig. 2, which is not described herein again.
In step S33, the second terminal generates a notification event message including notification event information.
Wherein, the step S33 may include: acquiring notification event information, wherein the notification event information can comprise data of a card simulated by an NFC module; and generating a notification event message according to the notification event information. Taking a bus card as an example, the notification event information may include the balance before and after deduction.
The data of the card is obtained according to the data obtained from the NFC module, for example, the bus card, the second terminal may obtain the balance before deduction from the NFC module (see step S1 in fig. 2), and the balance after deduction may be calculated according to the balance before deduction and the amount to be deducted (known to the second terminal).
The notification event information may further include output parameters, such as a display format and a display duration, when the output device outputs the data of the card simulated by the NFC module.
Generating a notification event message according to the notification event information may include: and packaging the notification event information to obtain a notification event message. The frame structure for encapsulating the notification event information may be determined according to a transmission speed, which is a transmission speed between the second terminal and the first terminal. For example, the notification event message may be in the format of a standard frame, i.e. the same frame format as used by the data exchange process.
In the embodiment of the present disclosure, a timing for the second terminal to generate the notification event message is not limited, for example, the timing may be during the information interaction between the NFC module of the first terminal and the second terminal, or after the information interaction between the NFC module of the first terminal and the second terminal is completed.
In step S34, the second terminal sends the first notification event message to the NFC module of the first terminal; and the NFC module of the first terminal receives a first notification event message sent by the second terminal.
And the second terminal sends the notification event message to the NFC module of the first terminal according to a preset transmission speed.
In one implementation of the present disclosure, the method further comprises:
when the NFC module of the first terminal receives the second notification event message sent by the second terminal, at least one of the following actions is executed: discarding the second notification event message, and sending an error report message; when the received notification event message satisfies a preset condition, step S35 is performed.
The second notification event message is a notification event message which does not meet a preset condition; the first notification event message is a notification event message meeting a preset condition.
In implementation, whether the received notification event message meets the requirement or not can be determined by setting a preset condition, and actions such as discarding and error reporting can be performed if the preset condition is not met, so that subsequent processing is not performed. And if the condition is met, performing subsequent processing on the notification event message. The validity of the notification message is ensured, and illegal or unsatisfied notification events are prevented from being output.
The sending of the error message may be sending the error message to the output device, or sending the error message to the second terminal or other devices. Taking sending the error message to the output device as an example, when the output device receives the error message, the error message is output, for example, the error message is displayed or is voice-broadcasted.
In another implementation of the disclosure, the preset condition includes at least one (e.g., any one, or a combination of any two or even more) of the following:
the number of the notification event messages received in the primary communication process with the second terminal is less than a number threshold;
the second terminal that transmitted the notification event message has been authenticated;
notifying that the length of the event message is less than the length threshold;
the format of the notification event message is a preset message format;
and the coding rule of the notification event message is a preset coding rule.
In this implementation, the preset condition includes multiple ways, for example, the number of times that the communication event message is received by the first terminal and the second terminal in one communication process (from the time the second terminal approaches the first terminal to the time the data interaction can be started to the time the second terminal is far away from the first terminal to the time the data interaction cannot be continued) is limited to be less than a quantity threshold, so that the notification event is prevented from being frequently displayed in one communication process and normal use of the user is prevented from being influenced; for another example, the second terminal is limited to be authenticated, and the display of illegal notification events sent by the second terminal is avoided; for another example, the length of the notification event message is limited, so that excessive communication traffic is avoided; for another example, the format and the encoding rule of the notification event message are defined, so that the first terminal cannot decompress and identify the notification event message.
The first terminal is provided with a security module for performing authentication of the second terminal, and the authentication manner is not limited in the embodiment of the present disclosure, for example, the authentication may be key authentication, and the key authentication may be completed in a data interaction process). Taking the mobile terminal as an example, the NFC module of the mobile terminal includes an embedded Secure Element (eSE) for authenticating the second terminal.
In step S35, the NFC module of the first terminal acquires notification event information carried in the first notification event message.
In the embodiment of the present disclosure, step S35 may include: and the NFC module of the first terminal decompresses the notification event message according to a preset coding rule and acquires the notification event information from the decompressed notification event message. The step of acquiring the notification event information from the decompressed notification event message means that the notification event information is acquired from the decoded notification event message according to a preset message format. The preset message format indicates the position of the notification event information in the notification event message, and the notification event information is acquired from the notification event message according to the position indicated by the preset message format. The preset message format may be a standard frame format, the notification event information is carried in a load field of the standard frame, and the notification event information may be acquired from the load field according to the standard frame format.
In step S36, the NFC module of the first terminal generates a notification event according to the first notification event information.
In the embodiment of the present disclosure, step S36 may include: and packaging the notification event information according to a preset format to generate a notification event. The NFC module of the first terminal encapsulates the notification Event information obtained from the notification Event message according to a predetermined format, that is, fills the notification Event information into a predetermined frame format (for example, an HCI Event frame format), generates a notification Event, and then sends the notification Event to the output device.
In step S37, the NFC module of the first terminal sends the notification event to the output device.
The output device may be the first terminal (fig. 5 does not show the case), or may be another terminal connected to the first terminal (fig. 5 only shows the case), such as a wearable device wirelessly connected to the first terminal. When the output device may be the first terminal, step S37 may include: the NFC module sends the notification event to a processing unit of the mobile terminal so that the processing unit of the mobile terminal outputs notification event information through an output component; when the output device may be another terminal, step S37 may include: and the NFC module sends the notification event to a processing unit of the mobile terminal, and the notification event is transmitted to other terminals by the processing unit, wherein the transmission mode can be a Bluetooth or other wireless transmission modes.
Optionally, the method may further include: before step S37, the NFC module of the first terminal receives a notification event sending instruction sent by the output device; when the NFC module of the first terminal receives the notification event sending instruction, step S37 is executed. That is to say, in the present disclosure, the NFC module of the first terminal may have two operating modes, one is to actively send the acquired notification event to the output device, and the other is to send the acquired notification event to the output device when receiving a notification event sending instruction sent by the output device.
In the disclosed embodiment, the output device outputs notification event information when receiving a notification event.
The output mode of the notification event message includes, but is not limited to, screen display, voice broadcast, and the like.
The notification event information includes part or all of the information of the output notification content on the output device, that is, the notification content output by the output device is wholly or partially from the notification event information. Taking the example that the notification content part output by the output device is from the notification event information, the output device displays the data of the card in the notification event information, and also displays other data, such as the type of the card.
Generally, when different cards are simulated by using the NFC module, the first terminal may start different application programs, and the notification event information may be output through the corresponding application program, for example, displayed on an application program interface for a user to view.
Optionally, the first terminal may further store the notification event information to generate a notification event information record. Taking the example that the NFC module simulates the bus card, the second terminal sends a notification event message to the NFC module of the first terminal after finishing data interaction with the NFC module of the first terminal; the NFC module of the first terminal transmits the notification event carried in the notification event message to a processing unit of the first terminal; and the processing unit of the first terminal displays the notification event information on a screen, stores the notification event information and generates a notification event record.
Fig. 6 is a schematic structural diagram of an NFC module according to an exemplary embodiment, which is applied to a first terminal, and referring to fig. 6, the NFC module includes: a receiving unit 401, an acquiring unit 402, a generating unit 403, and a transmitting unit 404.
A receiving unit 401, configured to receive a first notification event message sent by a second terminal, where the second terminal is a terminal other than the first terminal; an obtaining unit 402, configured to obtain notification event information carried in the first notification event message; a generating unit 403, configured to generate a notification event according to the notification event information; a sending unit 404, configured to send the notification event to an output device, so that the output device outputs the notification event information.
In one implementation manner of the present disclosure, the NFC module further includes: the processing unit 405 is further configured to, upon receiving the second notification event message sent by the second terminal, perform at least one of the following actions: discarding the second notification event message, and sending an error report message; the second notification event message is a notification event message which does not meet a preset condition; the first notification event message is a notification event message meeting a preset condition.
In another implementation manner of the present disclosure, the preset condition includes at least one of:
the number of the notification event messages received in the primary communication process with the second terminal is less than a number threshold;
the second terminal transmitting the notification event message has been authenticated by the key;
notifying that the length of the event message is less than the length threshold;
the format of the notification event message is a preset message format;
and the coding rule of the notification event message is a preset coding rule.
In another implementation manner of the present disclosure, the obtaining unit 402 is configured to decompress the first notification event message according to a preset encoding rule; and acquiring the notification event information from the decompressed first notification event message.
In another implementation manner of the present disclosure, the generating unit 403 is configured to encapsulate the notification event information according to a predetermined format, and generate a notification event.
The manner in which the receiving unit 401 receives the notification event message may be seen in step S34; the manner in which the acquisition unit 402 acquires notification event information may be seen in step S35; the manner in which the generation unit 403 generates the notification event may be seen in step S36; the manner in which the sending unit 404 sends the notification event may be seen in step S37; the manner in which the processing unit 405 processes may be referred to in step S34, and a detailed description is omitted here.
Fig. 7 is a schematic structural diagram of a terminal according to an exemplary embodiment, where the terminal includes an NFC module 501 and a processing unit 502, where the NFC module 501 is the NFC module 501 shown in fig. 6.
The processing unit 502 may be configured to control an output component (e.g., a display screen) to output notification event information according to the notification event sent by the NFC module 501, or control the transmission unit to send the notification event to another device.
Fig. 8 is a schematic structural diagram of a terminal according to an exemplary embodiment, and referring to fig. 8, the terminal includes: generating section 601 and transmitting section 602.
The generating unit 601 is configured to generate a notification event message, where the notification event message includes notification event information; a sending unit 602, configured to send the notification event message to a first terminal, where the notification event message is used to instruct the first terminal to generate a notification event according to the notification event information, and the notification event is used to instruct an output device to output notification event information.
The manner in which the generation unit 601 generates the notification event message may be seen in step S33; the manner in which the sending unit 602 sends the notification event message may be referred to step S34, and a detailed description is omitted here.
Fig. 9 is a block diagram illustrating a terminal 900, which may be a mobile terminal, such as a cell phone, wearable device, etc., according to an example embodiment. Referring to fig. 9, terminal 900 can include one or more of the following components: a processing component 902, a memory 904, a power component 906, a multimedia component 908, an audio component 910, an input/output (I/O) interface 912, a sensor component 914, and a communication component 916.
Processing component 902 generally controls overall operation of terminal 900, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. Processing component 902 may include one or more processors 920 to execute instructions to perform all or a portion of the steps of the methods described above. Further, processing component 902 can include one or more modules that facilitate interaction between processing component 902 and other components. For example, the processing component 902 can include a multimedia module to facilitate interaction between the multimedia component 908 and the processing component 902.
Memory 904 is configured to store various types of data to support operation at terminal 900. Examples of such data include instructions for any application or method operating on terminal 900, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 904 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power component 906 provides power to the various components of terminal 900. Power components 906 can include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for terminal 900.
The multimedia components 908 include a screen providing an output interface between the terminal 900 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 908 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the terminal 900 is in an operation mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 910 is configured to output and/or input audio signals. For example, audio component 910 includes a Microphone (MIC) configured to receive external audio signals when terminal 900 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 904 or transmitted via the communication component 916. In some embodiments, audio component 910 also includes a speaker for outputting audio signals.
I/O interface 912 provides an interface between processing component 902 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 914 includes one or more sensors for providing various aspects of state assessment for the terminal 900. For example, sensor assembly 914 can detect an open/closed state of terminal 900, a relative positioning of components, such as a display and keypad of terminal 900, a change in position of terminal 900 or a component of terminal 900, the presence or absence of user contact with terminal 900, an orientation or acceleration/deceleration of terminal 900, and a change in temperature of terminal 900. The sensor assembly 914 may include a proximity sensor configured to detect the presence of a nearby object in the absence of any physical contact. The sensor assembly 914 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 914 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
Communication component 916 is configured to facilitate communications between terminal 900 and other devices in a wired or wireless manner. In the embodiment of the present disclosure, the communication component 916 includes the NFC module. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies. Terminal 900 can access a wireless network based on a communication standard, such as WiFi, 2G, or 3G, or a combination thereof. In an exemplary embodiment, the communication component 916 receives a broadcast signal or broadcast associated information from an external broadcast management system via a broadcast channel.
In an exemplary embodiment, the terminal 900 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described near field communication methods.
In an exemplary embodiment, a non-transitory computer readable storage medium, such as memory 904, including instructions executable by processor 920 of terminal 900 to perform method steps of receiving a notification event and displaying the notification event is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Fig. 10 is a block diagram illustrating a terminal 1000 according to an exemplary embodiment, the terminal 100 may be a card swipe terminal. Referring to FIG. 10, terminal 1000 can include one or more of the following components: processing component 1002, memory 1004, power component 1006, multimedia component 1008, audio component 1010, interface to input/output (I/O) 1012, and communications component 1016.
Processing component 1002 generally controls overall operation of terminal 1000, such as operations associated with data communication and recording operations. The processing components 1002 may include one or more processors 1020 to execute instructions to perform all or a portion of the steps of the methods described above. Further, processing component 1002 may include one or more modules that facilitate interaction between processing component 1002 and other components. For example, the processing component 1002 may include a multimedia module to facilitate interaction between the multimedia component 1008 and the processing component 1002.
Memory 1004 is configured to store various types of data to support operation at terminal 1000. Examples of such data include instructions for any application or method operating on terminal 1000, communication data, and the like. The memory 1004 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power components 1006 provide power to the various components of terminal 1000. Power components 1006 can include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for terminal 1000.
The multimedia component 1008 includes a screen that provides an output interface between the terminal 1000 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 1008 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera can receive external multimedia data when the terminal 1000 is in an operation mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 1010 is configured to output and/or input audio signals. For example, audio component 1010 includes a Microphone (MIC) configured to receive external audio signals when terminal 1000 is in an operational mode, such as call mode, record mode, and voice recognition mode. The received audio signal may further be stored in the memory 1004 or transmitted via the communication component 1016. In some embodiments, audio component 1010 also includes a speaker for outputting audio signals.
I/O interface 1012 provides an interface between processing component 1002 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
Communications component 1016 is configured to facilitate communications between terminal 1000 and other devices in a wired or wireless manner. Terminal 1000 can access a wireless network based upon a near field communication standard, and communication component 1016 can include a Near Field Communication (NFC) module, which can be implemented based upon Radio Frequency Identification (RFID) technology.
In an exemplary embodiment, terminal 1000 can be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described near field communication methods.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as memory 1004, that are executable by processor 1020 of terminal 1000 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (17)

1. A near field communication method is applied to a first terminal, and is characterized by comprising the following steps:
after the information interaction between the NFC module of the first terminal and a second terminal is completed, receiving a first notification event message sent by the second terminal, wherein the second terminal is other terminals except the first terminal;
acquiring notification event information carried by the first notification event message, wherein the notification event information comprises data of a card simulated by the NFC module and output parameters when output equipment outputs the data of the card simulated by the NFC module;
generating a notification event according to the notification event information;
and sending the notification event to an output device so as to enable the output device to output the notification event information.
2. The near field communication method of claim 1, further comprising:
when receiving a second notification event message sent by the second terminal, performing at least one of the following actions: discarding the second notification event message, and sending an error report message;
the second notification event message is a notification event message which does not meet a preset condition; the first notification event message is a notification event message meeting a preset condition.
3. Near field communication method according to claim 2, characterized in that said preset conditions comprise at least one of the following:
the number of the notification event messages received in the primary communication process with the second terminal is less than a number threshold;
the second terminal that transmitted the notification event message has been authenticated;
notifying that the length of the event message is less than the length threshold;
the format of the notification event message is a preset message format;
and the coding rule of the notification event message is a preset coding rule.
4. A near field communication method according to any of claims 1 to 3, wherein said obtaining notification event information carried by the first notification event message comprises:
decompressing the first notification event message according to a preset coding rule;
and acquiring the notification event information from the decompressed first notification event message.
5. A near field communication method according to any of claims 1 to 3, wherein said generating a notification event according to said notification event information comprises:
and packaging the notification event information according to a preset format to generate a notification event.
6. A near field communication method is applied to a second terminal, and is characterized by comprising the following steps:
after the information interaction between the NFC modules of the second terminal and the first terminal is completed, generating a notification event message, wherein the notification event message comprises notification event information, and the notification event information comprises data of the card simulated by the NFC module and output parameters when the output equipment outputs the data of the card simulated by the NFC module;
and sending the notification event message to the first terminal, wherein the notification event message is used for indicating the first terminal to generate a notification event according to the notification event information, and the notification event is used for indicating an output device to output notification event information.
7. The utility model provides a near field communication module, is applied to first terminal, its characterized in that, near field communication module includes:
the receiving unit is used for receiving a first notification event message sent by a second terminal after information interaction between the NFC module of the first terminal and the second terminal is completed, wherein the second terminal is other than the first terminal;
an obtaining unit, configured to obtain notification event information carried in the first notification event message, where the notification event information includes data of a card simulated by an NFC module and an output parameter when an output device outputs the data of the card simulated by the NFC module;
the generating unit is used for generating a notification event according to the notification event information;
and the sending unit is used for sending the notification event to output equipment so as to enable the output equipment to output the notification event information.
8. The near field communication module of claim 7, further comprising:
a processing unit, configured to, upon receiving a second notification event message sent by the second terminal, perform at least one of the following actions: discarding the second notification event message, and sending an error report message;
the second notification event message is a notification event message which does not meet a preset condition; the first notification event message is a notification event message meeting a preset condition.
9. The NFC module of claim 8, wherein the preset conditions include at least one of:
the number of the notification event messages received in the primary communication process with the second terminal is less than a number threshold;
the second terminal that transmitted the notification event message has been authenticated;
notifying that the length of the event message is less than the length threshold;
the format of the notification event message is a preset message format;
and the coding rule of the notification event message is a preset coding rule.
10. The nfc module according to any one of claims 7 to 9, wherein the obtaining unit is configured to decompress the first notification event message according to a preset encoding rule; and acquiring the notification event information from the decompressed first notification event message.
11. The nfc module according to any one of claims 7 to 9, wherein the generating unit is configured to encapsulate the notification event information according to a predetermined format to generate a notification event.
12. A terminal, characterized in that it comprises a near field communication module according to any of claims 7 to 11.
13. A terminal, characterized in that the terminal comprises:
the generating unit is used for generating a notification event message after the NFC modules of the terminal and the first terminal complete information interaction, wherein the notification event message comprises notification event information, and the notification event information comprises data of a card simulated by the NFC module and output parameters when the output equipment outputs the data of the card simulated by the NFC module;
a sending unit, configured to send the notification event message to the first terminal, where the notification event message is used to instruct the first terminal to generate a notification event according to the notification event information, and the notification event is used to instruct an output device to output notification event information.
14. A terminal, characterized in that the terminal comprises:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
after the information interaction between the NFC module of the terminal and another terminal is completed, receiving a first notification event message sent by the other terminal, wherein the other terminal is other terminals except the terminal;
acquiring notification event information carried by the first notification event message, wherein the notification event information comprises data of a card simulated by the NFC module and output parameters when output equipment outputs the data of the card simulated by the NFC module;
generating a notification event according to the notification event information;
and sending the notification event to an output device so as to enable the output device to output the notification event information.
15. A storage medium, characterized in that instructions in the storage medium, when executed by a processor of a terminal, enable the terminal to perform the near field communication method of any one of claims 1 to 5.
16. A terminal, characterized in that the terminal comprises:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
after the information interaction between the NFC module of the other terminal and the terminal is completed, generating a notification event message, wherein the notification event message comprises notification event information, and the notification event information comprises data of the card simulated by the NFC module and output parameters when the output equipment outputs the data of the card simulated by the NFC module;
transmitting the notification event message to the other terminal, wherein the other terminal is a terminal other than the terminal; the notification event message is used for instructing the other terminal to generate a notification event according to the notification event information, and the notification event is used for instructing an output device to output notification event information.
17. A storage medium, characterized in that instructions in the storage medium, when executed by a processor of a terminal, enable the terminal to perform the near field communication method of claim 6.
CN201810390041.4A 2018-04-27 2018-04-27 Near field communication method, near field communication module, terminal and storage medium Active CN108601005B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810390041.4A CN108601005B (en) 2018-04-27 2018-04-27 Near field communication method, near field communication module, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810390041.4A CN108601005B (en) 2018-04-27 2018-04-27 Near field communication method, near field communication module, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN108601005A CN108601005A (en) 2018-09-28
CN108601005B true CN108601005B (en) 2021-12-28

Family

ID=63610058

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810390041.4A Active CN108601005B (en) 2018-04-27 2018-04-27 Near field communication method, near field communication module, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN108601005B (en)

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101599191B (en) * 2008-06-04 2012-07-04 中国移动通信集团公司 Method and mobile terminal equipment for displaying trading information
KR102053901B1 (en) * 2012-08-16 2019-12-09 삼성전자주식회사 Method and server for managing schedule and mobile terminal thereof
CN102855562A (en) * 2012-09-11 2013-01-02 守望者科技(北京)有限公司 NFC (near field communication) mobile terminal and payment method
US9247399B2 (en) * 2013-03-14 2016-01-26 Google Technology Holdings LLC Alert peripheral for notification of events occuring on a programmable user equipment with communication capabilities
US9887949B2 (en) * 2014-05-31 2018-02-06 Apple Inc. Displaying interactive notifications on touch sensitive devices
CN105550872A (en) * 2016-02-03 2016-05-04 宁波大学 Mobile payment method based on near field communication
KR20180072389A (en) * 2016-12-21 2018-06-29 삼성전자주식회사 Method for providing content corresponding to an accessory and electronic device thereof

Also Published As

Publication number Publication date
CN108601005A (en) 2018-09-28

Similar Documents

Publication Publication Date Title
EP3188066B1 (en) A method and an apparatus for managing an application
EP3001637B1 (en) Methods and devices for authorizing operation
EP3032412B1 (en) Method and device for upgrading firmware
CN107315609B (en) Switching method and device of card simulation function
KR101642019B1 (en) Method, apparatus, program, and recording medium of verifying terminal
US20180053177A1 (en) Resource transfer method, apparatus and storage medium
US20170171321A1 (en) Methods and devices for managing accounts
CN106157027B (en) Payment method, device and system
CN106454392A (en) Live broadcast processing method, device and terminal
EP3076745B1 (en) Methods and apparatuses for controlling wireless access point
CN104469714A (en) Short message sending method and device
CN110400405B (en) Method, device and medium for controlling access control
US20120173744A1 (en) Wireless connection method and apparatus using image recognition in mobile communication terminal
CN105049219B (en) Flow booking method and system, mobile terminal and server
CN105653165A (en) Method and device for regulating character display
CN104967966B (en) A kind of method and device of binding bluetooth equipment
CN108601005B (en) Near field communication method, near field communication module, terminal and storage medium
US10681533B2 (en) Information writing method and device
CN107087254A (en) Give out a contract for a project method, device and bluetooth low energy consumption slave unit
US20230037475A1 (en) Network connection method and device and readable storage medium
US10671827B2 (en) Method and device for fingerprint verification
CN112651012B (en) Information processing method and device
CN111383364A (en) Method, device and equipment for testing automobile data recorder and storage medium
CN112351131B (en) Control method and device of electronic equipment, electronic equipment and storage medium
US10019604B2 (en) Method and apparatus of verifying terminal and medium

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