CN117155426A - Data transmission method for NFC device, NFC device and storage medium - Google Patents

Data transmission method for NFC device, NFC device and storage medium Download PDF

Info

Publication number
CN117155426A
CN117155426A CN202311413163.8A CN202311413163A CN117155426A CN 117155426 A CN117155426 A CN 117155426A CN 202311413163 A CN202311413163 A CN 202311413163A CN 117155426 A CN117155426 A CN 117155426A
Authority
CN
China
Prior art keywords
data
notification
nfc controller
nfc
reported
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202311413163.8A
Other languages
Chinese (zh)
Other versions
CN117155426B (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 Unigroup Tsingteng Microsystems Co Ltd
Original Assignee
Beijing Unigroup Tsingteng Microsystems 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 Unigroup Tsingteng Microsystems Co Ltd filed Critical Beijing Unigroup Tsingteng Microsystems Co Ltd
Priority to CN202311413163.8A priority Critical patent/CN117155426B/en
Publication of CN117155426A publication Critical patent/CN117155426A/en
Application granted granted Critical
Publication of CN117155426B publication Critical patent/CN117155426B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup

Abstract

The disclosure relates to the technical field of near field communication, and discloses a data transmission method for NFC equipment, the NFC equipment and a storage medium, wherein the data transmission method comprises the following steps: the NFC controller sends a data reading notification to the equipment host under the condition that the security element has data to be reported; after receiving the data reading notification, the device host reads the data to be reported from the secure element. By using a notification mechanism between the NFC controller and the equipment host, under the condition that the safety element has data to be reported, the equipment host is informed of the existence of the data to be reported by the safety element by sending a data acquisition notification by means of the NFC controller, so that the equipment host can timely read the data to be reported, the instantaneity of the equipment host for acquiring the data to be reported in the safety element is improved, and the efficiency of reporting the data by the safety element is also improved.

Description

Data transmission method for NFC device, NFC device and storage medium
Technical Field
The present disclosure relates to the field of near field communication technology, for example, to a data transmission method for an NFC device, and a storage medium.
Background
NFC (Near Field Communication ) is a short-range high-frequency wireless communication technology, and devices using the NFC technology can exchange data in the vicinity of each other. NFC devices include Device Hosts (DH), NFC controllers (NFCCs), secure Elements (SE), and the like. The device host may be communicatively coupled to the device host and the secure element, the device host obtaining corresponding data in the secure element by polling.
In the related art, some secure elements only passively accept polling of the device host, and cannot actively report data to the device host or actively request the device host to acquire the data. For such a secure element, when the secure element has data to be reported, the data to be reported cannot be generally acquired by the device host in real time, and only the data to be reported can be acquired by the device host when the device host waits for the next polling. Therefore, the related art has a problem that the device host of the NFC device cannot acquire the data to be reported in the secure element in real time.
It should be noted that the information disclosed in the above background section is only for enhancing understanding of the background of the present disclosure and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
The following presents a simplified summary in order to provide a basic understanding of some aspects of the disclosed embodiments. This summary is not an extensive overview, and is intended to neither identify key/critical elements nor delineate the scope of such embodiments, but is intended as a prelude to the more detailed description that follows.
The embodiment of the disclosure provides a data transmission method for NFC equipment, NFC equipment and storage medium, which can enable an equipment host of the NFC equipment to acquire data to be reported in a security element in real time.
According to a first aspect of the present disclosure, there is provided a data transmission method for an NFC device, the NFC device including a device host, an NFC controller and a secure element, the device host being communicatively connected to the NFC controller and the secure element, respectively, the NFC controller being also communicatively connected to the secure element, the data transmission method for the NFC device comprising:
the NFC controller sends a data reading notification to the equipment host under the condition that the security element has data to be reported;
after receiving the data reading notification, the device host reads the data to be reported from the secure element.
In some embodiments, in the event that the secure element has data to be reported, the NFC controller sends a data read notification to the device host, comprising:
under the condition that the security element has data to be reported, the security element sends a notification sending instruction to the NFC controller;
after receiving the notification sending instruction, the NFC controller sends a data reading notification to the equipment host.
In some embodiments, after receiving the notification sending instruction, the NFC controller sends a data reading notification to the device host, including:
after receiving the notification sending instruction, the NFC controller creates a data reading notification based on the notification sending instruction;
in case of successful creation of the data read notification, the NFC controller sends the data read notification to the device host.
In some embodiments, the NFC device includes a plurality of secure elements, each secure element communicatively coupled with the device host and the NFC controller, respectively; creating a data read notification based on the notification send instruction, comprising:
the NFC controller determines target identity information associated with the notification transmission instruction, wherein the target identity information is the identity information of a security element transmitting the notification transmission instruction;
a data read notification associated with the target identity is created.
In some embodiments, the NFC device includes a plurality of secure elements, each secure element communicatively coupled with the device host and the NFC controller, respectively; reading data to be reported from a secure element, comprising:
the device host determines target identity information associated with the data read notification, wherein the target identity information is the identity information of the secure element that sent the notification sending instruction;
and the equipment host reads the data to be reported from the security element corresponding to the target identity information.
In some embodiments, before the NFC controller sends the data read notification to the device host, further comprising: the security element stores the data to be reported in a buffer unit corresponding to a preset interface, wherein the preset interface is an interface used when the equipment host is in communication connection with the security unit;
reading data to be reported from a secure element, comprising: the equipment host reads the data to be reported from a cache unit of the security element corresponding to the preset interface.
In some embodiments, the device host is communicatively coupled to the secure element via a serial peripheral interface.
In some embodiments, the secure element is an embedded secure chip.
According to a second aspect of the present disclosure, there is provided an NFC device, the NFC device comprising a device host, an NFC controller and a secure element, the device host being communicatively connected to the NFC controller and the secure element, respectively, the NFC controller being further communicatively connected to the secure element;
the NFC controller is configured to: the NFC controller sends a data reading notification to the equipment host under the condition that the security element has data to be reported;
the device host is configured to: and after receiving the data reading notification, reading the data to be reported from the security element.
In some embodiments, the secure element is configured to: under the condition that the security element has data to be reported, the security element sends a notification sending instruction to the NFC controller;
the NFC controller is configured to: and after receiving the notification sending instruction, sending a data reading notification to the equipment host.
In some embodiments, the NFC device includes a plurality of secure elements, each secure element communicatively coupled with the device host and the NFC controller, respectively;
the NFC controller is configured to: determining target identity information associated with the notification transmission instruction, wherein the target identity information is the identity information of the secure element that transmitted the notification transmission instruction; creating a data reading notification associated with the target identity, and sending the data reading notification to the device host;
the device host is configured to: and determining target identity information associated with the data reading notification, and reading data to be reported from the security element corresponding to the target identity information.
According to a third aspect of the present disclosure, there is provided a computer readable storage medium storing program instructions that, when executed, are configured to cause a computer to perform the data transmission method for NFC devices provided in the first aspect of the present disclosure.
The data transmission method for the NFC device, the NFC device and the storage medium provided by the embodiment of the disclosure can realize the following technical effects:
according to the method and the device for reporting the data, the notification mechanism between the NFC controller and the device host is utilized, under the condition that the security element has the data to be reported, the device host is informed of the fact that the security element has the data to be reported by means of sending a data acquisition notification by the NFC controller, so that the device host can timely read the data to be reported, the instantaneity of the device host for acquiring the data to be reported in the security element is improved, and the efficiency of reporting the data by the security element can also be improved.
The foregoing general description and the following description are exemplary and explanatory only and are not intended to limit the present disclosure.
Drawings
One or more embodiments are illustrated by way of example and not limitation in the figures of the accompanying drawings, in which like references indicate similar elements, and in which like reference numerals refer to similar elements, and in which:
fig. 1 is a schematic diagram of an NFC device provided in an embodiment of the present disclosure;
fig. 2 is a data transmission method for an NFC device provided in an embodiment of the present disclosure;
fig. 3 is another data transmission method for an NFC device provided in an embodiment of the present disclosure;
fig. 4 is another data transmission method for an NFC device provided in an embodiment of the present disclosure;
fig. 5 is a schematic diagram of another NFC device provided by an embodiment of the present disclosure;
fig. 6 is another data transmission method for an NFC device provided in an embodiment of the present disclosure.
Detailed Description
So that the manner in which the features and techniques of the disclosed embodiments can be understood in more detail, a more particular description of the embodiments of the disclosure, briefly summarized below, may be had by reference to the appended drawings, which are not intended to be limiting of the embodiments of the disclosure. In the following description of the technology, for purposes of explanation, numerous details are set forth in order to provide a thorough understanding of the disclosed embodiments. However, one or more embodiments may still be practiced without these details. In other instances, well-known structures and devices may be shown simplified in order to simplify the drawing.
The terms first, second and the like in the description and in the claims of the embodiments of the disclosure and in the above-described figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate in order to describe embodiments of the present disclosure. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion.
The term "plurality" means two or more, unless otherwise indicated.
In the embodiment of the present disclosure, the character "/" indicates that the front and rear objects are an or relationship. For example, A/B represents: a or B.
The term "and/or" is an associative relationship that describes an object, meaning that there may be three relationships. For example, a and/or B, represent: a or B, or, A and B.
The term "corresponding" may refer to an association or binding relationship, and the correspondence between a and B refers to an association or binding relationship between a and B.
NFC is a short-range high-frequency wireless communication technology, and devices using the NFC technology can exchange data in a state of being close to each other. The NFC device includes a device host, an NFC controller, a secure element, and the like. The device host may be communicatively coupled to the device host and the secure element, the device host obtaining corresponding data in the secure element by polling.
In the related art, some secure elements only passively accept polling of the device host, and cannot actively report data to the device host or actively request the device host to acquire the data. For example, in the case where the secure element is an embedded secure chip (embedded Security Element, eSE) and the device host is communicatively connected to the secure element through a serial peripheral interface (Serial Peripheral Interface, SPI), data in the secure element can be acquired by the device host only when the device host polls, and the secure element cannot actively report data to the device host through the serial peripheral interface or actively notify the device host to acquire data through the serial peripheral interface.
For such a secure element, when the secure element has data to be reported, the data to be reported cannot be generally acquired by the device host in real time, and only the data to be reported can be acquired by the device host when the device host waits for the next polling. Therefore, the related art has a problem in that data in a secure element of the NFC device cannot be reported in real time.
The embodiment of the disclosure provides an NFC device 100, where the NFC device 100 may improve accuracy of application selection results. NFC device 100 may be a mobile terminal, a computer, etc., and the mobile device may include, for example, a mobile phone, a PAD, a wearable device, a virtual reality device, an internet of things device, a payment device, an access control device, etc., or any combination thereof, where the wearable device includes, for example: smart watches, smart bracelets, pedometers, etc. The NFC device 100 may be applied in the context of mobile payment, identity authentication, or smart entry and public transportation ticketing.
As shown in connection with fig. 1, the NFC Device 100 includes a Device Host (DH) 101, an NFC Controller (NFCC) 102, and a Security Element (SE) 103. The device host 101 is respectively connected to the NFC controller 102 and the secure element 103 in a communication manner, and the NFC controller 102 is also connected to the secure element 103 in a communication manner, wherein the NFC controller 102 and the secure element 103 may be separated or physically integrated into a module.
In some embodiments, the device host 101 is communicatively coupled to the secure element 103 via a serial peripheral interface (Serial Peripheral Interface, SPI).
In some embodiments, NFC controller 102 may be communicatively coupled by way of a serial peripheral interface, a single wire protocol (Single Wire Protocol, SWP) interface, an I3C interface, and a shared memory.
The security element can encrypt and protect sensitive data in the data exchange and reporting process, ensure the secure transmission of the data and prevent unauthorized access and data leakage. In some embodiments, the secure element 103 is an embedded secure chip (embedded Security Element, eSE).
In the NFC device shown in fig. 1, the NFC controller may send a data read notification to the device host if the secure element has data to be reported; after receiving the data reading notification, the device host reads the data to be reported from the secure element.
In some embodiments, the secure element sends a notification send instruction to the NFC controller if the secure element has data to report. After receiving the notification sending instruction, the NFC controller sends a data reading notification to the equipment host.
In connection with the NFC device shown in fig. 1, an embodiment of the present disclosure provides a data transmission method for an NFC device, as shown in fig. 2, where the data transmission method for an NFC device includes:
s201, in the case that the secure element has data to be reported, the NFC controller sends a data reading notification to the device host.
In some scenarios, the secure element may generate some data to be acquired by the device host according to needs, where the data to be acquired by the device host in the secure element is data to be reported. For example, when the safety element fails, a piece of fault report data is generated, and the fault report data is a piece of data to be reported.
In some embodiments, the secure element sends a notification send instruction to the NFC controller, where the secure element has data to report, the notification send instruction instructing the NFC controller to send a data read notification to the device host.
In some embodiments, the NFC controller may detect a data state in the secure element and send a data read notification to the device host if it is determined that the secure element has data to be reported. For example, the NFC controller may detect whether there is data in a preset buffer unit of the secure element, and if there is data in the preset buffer unit, determine that there is data to be reported by the secure element, and at this time, send a data reading notification to the device host. The preset cache unit is a cache unit corresponding to an interface used when the equipment host is in communication connection with the safety unit.
It should be noted that, a Notification mechanism exists between the NFC controller and the device host, and the NFC controller may actively send a Notification to the device host to notify the corresponding event. Here, by setting the private notification, the data reading notification and the sending timing corresponding to the data reading notification are added in the notification mechanism, so that the NFC controller can send the data reading notification to the device host when the security element has data to be reported.
S202, after receiving the data reading notification, the device host reads data to be reported from the secure element.
It will be appreciated that, after receiving the data reading notification, the device host may determine that the secure element has data to be reported, and may read the data to be reported from the secure element through an interface used for communication connection between the secure element and the device host.
According to the data transmission method for the NFC equipment, the notification mechanism between the NFC controller and the equipment host is utilized, and under the condition that the safety element has data to be reported, the NFC controller is used for sending a data acquisition notification to inform the equipment host that the safety element has the data to be reported, so that the equipment host can timely read the data to be reported, the instantaneity of the equipment host for acquiring the data to be reported in the safety element is improved, and the efficiency of reporting the data by the safety element is also improved.
In some embodiments, in the event that the secure element has data to be reported, the NFC controller sends a data read notification to the device host, comprising: under the condition that the security element has data to be reported, the security element sends a notification sending instruction to the NFC controller; after receiving the notification sending instruction, the NFC controller sends a data reading notification to the equipment host.
In some embodiments, before the NFC controller sends the data read notification to the device host, further comprising: the security element stores the data to be reported in a buffer unit corresponding to a preset interface, wherein the preset interface is an interface used when the equipment host is in communication connection with the security unit. Reading data to be reported from a secure element, comprising: the equipment host reads the data to be reported from a cache unit of the security element corresponding to the preset interface. The security element stores the data to be reported in the buffer memory unit corresponding to the interface used when the device host is in communication connection with the security element in advance, which is convenient for the device host to rapidly acquire the data to be reported, reduces the time for the device host to determine the data to be reported, is beneficial to improving the efficiency of the device host and the efficiency of the security element reporting the data,
in connection with the NFC device shown in fig. 1, another data transmission method for an NFC device is provided in an embodiment of the present disclosure, as shown in fig. 3, where the data transmission method for an NFC device includes:
s301, when the security element has data to be reported, the security element sends a notification sending instruction to the NFC controller.
Here, the notification transmission instruction is for instructing the NFC controller to transmit a data reading notification. It should be noted that, in general, the ROM (Read-Only Memory) configured by the NFC controller and the secure element is smaller, and it is not generally selected to transmit information with a larger data amount for the secure element by using the NFC controller. The notification transmission instruction is a computer instruction, and the data volume of the notification transmission instruction is far smaller than the data volume of the data to be reported in the secure element, so that the notification transmission instruction can be timely received by the NFC controller even if the ROM configured by the NFC controller and the secure element is smaller.
S302, after receiving the notification sending instruction, the NFC controller sends a data reading notification to the device host.
In some embodiments, after receiving the notification transmission instruction, the NFC controller creates a data read notification based on the notification transmission instruction; in case of successful creation of the data read notification, the NFC controller sends the data read notification to the device host. Here, by setting the private notification, a task of creating and sending the data reading notification is added to the notification mechanism, so that the NFC controller creates the data reading notification and sends the data reading notification to the device host after receiving the notification sending instruction.
S303, after receiving the data reading notification, the device host reads the data to be reported from the secure element.
In connection with the NFC device shown in fig. 1, another data transmission method for an NFC device is provided in an embodiment of the present disclosure, as shown in fig. 4, where the data transmission method for an NFC device includes:
s401, under the condition that the security element has data to be reported, the security element stores the data to be reported in a buffer memory unit corresponding to a preset interface.
Here, the preset interface is an interface used when the device host is communicatively connected to the secure element. The preset interface is, for example, a serial peripheral interface.
In some embodiments, when the secure element has data to be reported, the secure element stores the data to be reported in a buffer unit corresponding to the preset interface, and sends a notification sending instruction to the NFC controller.
S402, the NFC controller sends a data read notification to the device host.
In some embodiments, after receiving the notification transmission instruction, the NFC controller transmits a data reading notification to the device host.
S403, after receiving the data reading notification, the device host reads the data to be reported from the cache unit of the security element corresponding to the preset interface.
In some embodiments, the device host is communicatively connected to the secure element through the serial peripheral interface, and the data to be reported is stored in a buffer unit corresponding to the serial peripheral interface, and the device host reads the data to be reported from the buffer unit corresponding to the serial peripheral interface of the secure element.
In some embodiments, as shown in connection with fig. 5, NFC device 100 includes a device host 101, an NFC controller 102, and a plurality of secure elements 103, e.g., NFC device 100 includes 3 secure elements 103. The device host 101 is communicatively connected to the NFC controller 102, and each secure element 103 is communicatively connected to the device host 101 and the NFC controller 102, respectively. The NFC controller 102 may be separate from each secure element 103, and the NFC controller 102 may be physically integrated with each secure element 103 as a module.
In some embodiments, the device host 101 is communicatively coupled to the secure element 103 via a serial peripheral interface.
In some embodiments, NFC controller 102 may be communicatively coupled by way of a serial peripheral interface, a single-wire protocol interface, an I3C interface, and a shared memory.
In some embodiments, the secure element 103 is an embedded secure chip.
In some embodiments, where the NFC device includes a plurality of secure elements, each secure element communicatively coupled with the device host and the NFC controller, respectively, creating the data read notification based on the notification transmission instruction includes: the NFC controller determines target identity information associated with the notification transmission instruction, wherein the target identity information is the identity information of a security element transmitting the notification transmission instruction; a data read notification associated with the target identity is created. The NFC controller sends a data read notification to the device host after creating the data read notification.
In some embodiments, where the NFC device includes a plurality of secure elements, each secure element communicatively coupled with the device host and the NFC controller, respectively, reading data to be reported from the secure elements includes: the device host determines target identity information associated with the data read notification, wherein the target identity information is the identity information of the secure element that sent the notification sending instruction; and the equipment host reads the data to be reported from the security element corresponding to the target identity information.
In connection with the NFC device shown in fig. 5, another data transmission method for an NFC device is provided in an embodiment of the present disclosure, as shown in fig. 6, where the data transmission method for an NFC device includes:
s601, the secure element sends a notification sending instruction to the NFC controller when the secure element has data to be reported.
S602, after receiving the notification transmission instruction, the NFC controller determines target identity information associated with the notification transmission instruction.
Here, the target identity information is the identity information of the secure element that sent the notification transmission instruction (also the secure element that has the data to be reported).
In some embodiments, the notification transmission instruction carries the identity information of the secure element, and the NFC controller may parse the target identity information in the notification transmission instruction.
In some embodiments, different secure element corresponds to having different interface information. The NFC controller determines a secure element for sending the notification sending instruction based on interface information of an interface from which the notification sending instruction comes, so that target identity information associated with the notification sending instruction is known.
S603, the NFC controller creates a data read notification associated with the target identity, and sends the data read notification to the device host.
The embodiment of the disclosure sets corresponding data reading notices for each secure element, so that the data reading notices associated with the target identity need to be created, and the created data reading notices are data reading notices corresponding to the secure element sending the notice sending instruction. In this way, the device can be enabled to read data in which secure element is explicitly required according to the data read notification.
S604, after receiving the data reading notification, the device host determines target identity information associated with the data reading notification.
The embodiment of the disclosure can preset the mapping relation between the identity information of each secure element and the data reading notification. Based on the mapping relationship, the device host can determine the target identity information associated with the data read notification.
S605, the device host reads data to be reported from the secure element corresponding to the target identity information.
It can be understood that the secure element corresponding to the target identity information is the secure element with the data to be reported. The device host may read data to be reported from the secure element through an interface for a communication connection with the secure element.
In some embodiments, the NFC device further comprises a memory (not shown in the figures). The device host may invoke logic instructions in the memory to perform the data transfer method for the NFC device of the corresponding embodiment described above. The NFC controller may invoke logic instructions in the memory to perform the data transfer method for the NFC device of the corresponding embodiment described above. The secure element may invoke logic instructions in the memory to perform the data transfer method for the NFC device of the respective embodiments described above.
The logic instructions in the memory described above may be implemented in the form of software functional units and stored in a computer-readable storage medium when sold or used as a stand-alone product.
The memory is used as a computer readable storage medium for storing a software program, a computer executable program, and program instructions/modules corresponding to the methods in the embodiments of the present disclosure. The processor executes the functional application and the data processing by executing the program instructions/modules stored in the memory, i.e. implements the data transmission method for NFC devices according to the above-mentioned respective embodiments.
The memory may include a program storage area and a data storage area, wherein the program storage area may store an operating system, at least one application program required for a function; the storage data area may store data created according to the use of the terminal device, etc. Further, the memory may include a high-speed random access memory, and may also include a nonvolatile memory.
The disclosed embodiments provide a computer-readable storage medium storing computer-executable instructions configured to perform the above-described data transmission method for an NFC device.
Embodiments of the present disclosure may be embodied in a software product stored on a storage medium, including one or more instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of a method according to embodiments of the present disclosure. While the aforementioned storage medium may be a non-transitory storage medium, such as: a usb disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk or an optical disk, or the like, which can store program codes.
The above description and the drawings illustrate embodiments of the disclosure sufficiently to enable those skilled in the art to practice them. Other embodiments may involve structural, logical, electrical, process, and other changes. The embodiments represent only possible variations. Individual components and functions are optional unless explicitly required, and the sequence of operations may vary. Portions and features of some embodiments may be included in, or substituted for, those of others. Moreover, the terminology used in the present disclosure is for the purpose of describing embodiments only and is not intended to limit the claims. As used in the description of the embodiments and the claims, the singular forms "a," "an," and "the" (the) are intended to include the plural forms as well, unless the context clearly indicates otherwise. Similarly, the term "and/or" as used in this disclosure is meant to encompass any and all possible combinations of one or more of the associated listed. Furthermore, when used in this disclosure, the terms "comprises," "comprising," and/or variations thereof, mean the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. Without further limitation, an element defined by the phrase "comprising one …" does not exclude the presence of other like elements in a process, method or apparatus comprising such elements. In this context, each embodiment may be described with emphasis on the differences from the other embodiments, and the same similar parts between the various embodiments may be referred to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method sections disclosed in the embodiments, the description of the method sections may be referred to for relevance.
Those of skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. The skilled artisan may use different methods for each particular application to achieve the described functionality, but such implementation should not be considered to be beyond the scope of the embodiments of the present disclosure. It will be clearly understood by those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
In the embodiments disclosed herein, the disclosed methods, articles of manufacture (including but not limited to devices, apparatuses, etc.) may be practiced in other ways. For example, the apparatus embodiments described above are merely illustrative, and for example, the division of the units may be merely a logical function division, and there may be additional divisions when actually implemented, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. In addition, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interface, device or unit indirect coupling or communication connection, which may be in electrical, mechanical or other form. The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to implement the present embodiment. In addition, each functional unit in the embodiments of the present disclosure may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. In the description corresponding to the flowcharts and block diagrams in the figures, operations or steps corresponding to different blocks may also occur in different orders than that disclosed in the description, and sometimes no specific order exists between different operations or steps. For example, two consecutive operations or steps may actually be performed substantially in parallel, they may sometimes be performed in reverse order, which may be dependent on the functions involved. Each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.

Claims (10)

1. A data transmission method for an NFC device, where the NFC device includes a device host, an NFC controller, and a secure element, where the device host is communicatively connected to the NFC controller and the secure element, respectively, and where the NFC controller is also communicatively connected to the secure element, the method comprising:
the NFC controller sends a data reading notification to the equipment host under the condition that the security element has data to be reported;
and after receiving the data reading notification, the equipment host reads the data to be reported from the security element.
2. The method according to claim 1, wherein the sending, by the NFC controller, a data read notification to the device host in the case where the secure element has data to be reported, includes:
the method comprises the steps that under the condition that the security element has data to be reported, the security element sends a notification sending instruction to the NFC controller;
and after receiving the notification sending instruction, the NFC controller sends a data reading notification to the equipment host.
3. The method according to claim 2, wherein the NFC controller, after receiving the notification sending instruction, sends a data reading notification to the device host, including:
after receiving the notification sending instruction, the NFC controller creates a data reading notification based on the notification sending instruction;
in case of successful creation of the data read notification, the NFC controller sends the data read notification to the device host.
4. A method according to claim 3, wherein the NFC device comprises a plurality of said secure elements, each said secure element being communicatively connected to the device host and the NFC controller, respectively; the creating a data read notification based on the notification sending instruction includes:
the NFC controller determines target identity information associated with the notification transmission instruction, wherein the target identity information is the identity information of the security element transmitting the notification transmission instruction;
creating the data read notification associated with the target identity.
5. The method according to any of claims 1 to 4, wherein the NFC device comprises a plurality of said secure elements, each said secure element being communicatively connected to the device host and the NFC controller, respectively; the reading the data to be reported from the secure element comprises:
the device host determining target identity information associated with the data read notification, wherein the target identity information is the identity information of the secure element that sent the notification send instruction;
and the equipment host reads the data to be reported from the secure element corresponding to the target identity information.
6. The method of any of claims 1 to 4, further comprising, prior to the NFC controller sending a data read notification to the device host: the security element stores data to be reported in a buffer unit corresponding to a preset interface, wherein the preset interface is an interface used when the equipment host is in communication connection with the security unit;
the reading the data to be reported from the secure element comprises: and the equipment host reads the data to be reported from a cache unit of the security element corresponding to the preset interface.
7. The method according to any one of claims 1 to 4, comprising at least one of: the equipment host is in communication connection with the secure element through a serial peripheral interface, and the secure element is an embedded secure chip.
8. An NFC device is characterized by comprising a device host, an NFC controller and a safety element, wherein the device host is respectively in communication connection with the NFC controller and the safety element, and the NFC controller is also in communication connection with the safety element;
the NFC controller is configured to: the NFC controller sends a data reading notification to the equipment host under the condition that the security element has data to be reported;
the device host is configured to: and after receiving the data reading notification, reading the data to be reported from the security element.
9. The NFC device of claim 8, wherein the secure element is configured to: the method comprises the steps that under the condition that the security element has data to be reported, the security element sends a notification sending instruction to the NFC controller;
the NFC controller is configured to: and after receiving the notification sending instruction, sending a data reading notification to the equipment host.
10. The NFC device of claim 9, wherein the NFC device comprises a plurality of the secure elements, each of the secure elements being communicatively coupled with the device host and the NFC controller, respectively;
the NFC controller is configured to: determining target identity information associated with the notification transmission instruction, wherein the target identity information is the identity information of the secure element transmitting the notification transmission instruction; creating the data read notification associated with the target identity, sending the data read notification to the device host;
the device host is configured to: and determining the target identity information associated with the data reading notification, and reading the data to be reported from the secure element corresponding to the target identity information.
CN202311413163.8A 2023-10-30 2023-10-30 Data transmission method for NFC device, NFC device and storage medium Active CN117155426B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311413163.8A CN117155426B (en) 2023-10-30 2023-10-30 Data transmission method for NFC device, NFC device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311413163.8A CN117155426B (en) 2023-10-30 2023-10-30 Data transmission method for NFC device, NFC device and storage medium

Publications (2)

Publication Number Publication Date
CN117155426A true CN117155426A (en) 2023-12-01
CN117155426B CN117155426B (en) 2024-03-29

Family

ID=88910423

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311413163.8A Active CN117155426B (en) 2023-10-30 2023-10-30 Data transmission method for NFC device, NFC device and storage medium

Country Status (1)

Country Link
CN (1) CN117155426B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120196529A1 (en) * 2005-12-16 2012-08-02 Innovision Research & Technology Plc Communications devices comprising NFC communicators
US20150263787A1 (en) * 2012-06-21 2015-09-17 St-Ericsson Sa NFC System Comprising a Plurality of Secure Elements
CN106682892A (en) * 2015-11-05 2017-05-17 中国移动通信集团公司 Transaction data acquisition method, NFC controller, application processor and terminal
CN112947372A (en) * 2021-02-05 2021-06-11 重庆长安汽车股份有限公司 Remote diagnosis method based on active reporting of fault codes
CN113382056A (en) * 2021-06-07 2021-09-10 北京博睿宏远数据科技股份有限公司 Data reporting method, device, equipment, storage medium and system
CN114501410A (en) * 2022-04-02 2022-05-13 北京紫光青藤微系统有限公司 Method and device for uploading information, secure element and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120196529A1 (en) * 2005-12-16 2012-08-02 Innovision Research & Technology Plc Communications devices comprising NFC communicators
US20150263787A1 (en) * 2012-06-21 2015-09-17 St-Ericsson Sa NFC System Comprising a Plurality of Secure Elements
CN106682892A (en) * 2015-11-05 2017-05-17 中国移动通信集团公司 Transaction data acquisition method, NFC controller, application processor and terminal
CN112947372A (en) * 2021-02-05 2021-06-11 重庆长安汽车股份有限公司 Remote diagnosis method based on active reporting of fault codes
CN113382056A (en) * 2021-06-07 2021-09-10 北京博睿宏远数据科技股份有限公司 Data reporting method, device, equipment, storage medium and system
CN114501410A (en) * 2022-04-02 2022-05-13 北京紫光青藤微系统有限公司 Method and device for uploading information, secure element and storage medium

Also Published As

Publication number Publication date
CN117155426B (en) 2024-03-29

Similar Documents

Publication Publication Date Title
EP3304465B1 (en) Nfc-enabled devices for performing secure contactless transactions and using hce
EP3780484B1 (en) Cryptographic operation and working key creation method and cryptographic service platform and device
CN102769846A (en) User terminal and payment system
CN108959990B (en) Two-dimensional code verification method and device
CN106027250A (en) Identity card information safety transmission method and system
CN102959554A (en) Storage device and method for storage state recovery
CN102546172A (en) Access control method of intelligent card, intelligent card, terminal and system
CN109214221B (en) Authentication method of identity card reader, upper computer and identity card reader
CN109831782B (en) Safety transmission verification method for electronic card information
CN117155426B (en) Data transmission method for NFC device, NFC device and storage medium
CN101807237B (en) Signature method and device
US20150310232A1 (en) Active component embedded in cable
CN104717599A (en) NFC event reporting method for mobile terminal and device
US11068880B2 (en) Control of applications in a mobile terminal
CN113792304B (en) Database access system and method
CN115378569A (en) Method, apparatus, electronic device and storage medium for adjusting phase
CN104573765A (en) Smart card information processing method and device
CN105095694A (en) Method and system for calling plug-ins by webpages
KR101662947B1 (en) Method for Providing Session Security by using Secure Operating System
CN109885815B (en) Electronic protocol acquisition method, system and server
CN117176205B (en) Control method for NFC device, NFC device and storage medium
CN115604366B (en) Method and device for data transmission, near field communication chip and storage medium
CN111934859A (en) Cipher card communication method, cipher card and computer equipment
CN110585717A (en) Information processing method and device
CN105825247A (en) Card reader and data transmission method

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