CN117176205B - Control method for NFC device, NFC device and storage medium - Google Patents

Control method for NFC device, NFC device and storage medium Download PDF

Info

Publication number
CN117176205B
CN117176205B CN202311412830.0A CN202311412830A CN117176205B CN 117176205 B CN117176205 B CN 117176205B CN 202311412830 A CN202311412830 A CN 202311412830A CN 117176205 B CN117176205 B CN 117176205B
Authority
CN
China
Prior art keywords
radio frequency
communication parameters
communication
frequency communication
application
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
CN202311412830.0A
Other languages
Chinese (zh)
Other versions
CN117176205A (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 CN202311412830.0A priority Critical patent/CN117176205B/en
Publication of CN117176205A publication Critical patent/CN117176205A/en
Application granted granted Critical
Publication of CN117176205B publication Critical patent/CN117176205B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The disclosure relates to the technical field of near field communication, and discloses a control method for NFC equipment, NFC equipment and storage medium, wherein the control method comprises the following steps: when the NFC device needs to establish communication with other NFC devices, the controller determines radio frequency communication parameters of a target application in the secure element, wherein the radio frequency communication parameters comprise protocol layer communication parameters and physical layer communication parameters; the controller establishes communication with other NFC devices based on radio frequency communication parameters of the target application; after successful communication establishment, the controller sends the actual radio frequency communication parameters currently used to the secure element, so that the secure element uses the actual radio frequency communication parameters as a basis for determining the business decision of the target application. The NFC device uses the protocol layer communication parameters and the physical layer communication parameters together as parameters used in the process of establishing communication, so that the safety of a communication channel established based on the customized radio frequency communication parameters of the application can be improved.

Description

Control method for NFC device, NFC device and storage medium
Technical Field
The present disclosure relates to the technical field of near field communication, for example, to a control 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 typically include a controller and a secure element, where the controller is primarily responsible for communicating with other NFC terminals by controlling radio frequency transceivers, and may also act as a communication relay for the secure element. The secure element contains a built-in operating system and the secure element can deploy applications based on the operating system through which the applications can be managed and run.
In the related art, the multi-application management framework followed by the operating system of the secure element allows the application to declare certain customized radio frequency communication parameters required in the NFC device communication establishment process during installation or configuration, and the controller establishes a communication channel with other NFC devices based on the customized radio frequency communication parameters of the application, thereby improving the security of the application during running.
At present, the customized radio frequency communication parameters allowed by the operating system of the secure element are limited to the protocol layer communication parameters, however, with the increasing application scenarios of NFC technology. In the related art, a communication channel established by the NFC device based on customized radio frequency communication parameters of an application cannot meet security requirements in an application running process.
It should be noted that the information disclosed in the foregoing background section is only for enhancing understanding of the background of the present application and thus may include information that does not form the prior art that is already 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 control method for NFC equipment, NFC equipment and storage medium, which can improve the safety of a communication channel established by the NFC equipment based on customized radio frequency communication parameters of applications.
According to a first aspect of embodiments of the present disclosure, there is provided a control method for an NFC device, the NFC device including a controller and a secure element having one or more applications deployed therein, the control method for the NFC device comprising:
when the NFC device needs to establish communication with other NFC devices, the controller determines radio frequency communication parameters of a target application in the secure element, wherein the radio frequency communication parameters comprise protocol layer communication parameters and physical layer communication parameters;
the controller establishes communication with other NFC devices based on radio frequency communication parameters of the target application;
after successful communication establishment, the controller sends the actual radio frequency communication parameters currently used to the secure element, so that the secure element uses the actual radio frequency communication parameters as a basis for determining the business decision of the target application.
In some embodiments, a control method for an NFC device includes at least one of:
the physical layer communication parameters are determined by the security level required by the target application;
the physical layer communication parameters include one or more of inter-device distance, field strength, radio frequency amplitude, radio frequency phase, frame delay time, and frame latency.
In some embodiments, the controller determines radio frequency communication parameters of the target application in the secure element, comprising:
the controller obtains radio frequency communication information from the secure element, wherein the radio frequency communication information comprises radio frequency communication parameters of at least one application in the secure element;
the controller determines a target application from applications in the secure element;
the controller determines radio frequency communication parameters of the target application in the radio frequency communication information.
In some embodiments, the controller establishes communication with other NFC devices based on radio frequency communication parameters of the target application, including:
the controller establishes communication with other NFC devices based on radio frequency communication parameters of the target application;
under the condition that communication is successfully established based on radio frequency communication parameters of a target application, the controller is in communication connection with other NFC equipment;
in the event that the communication is not successfully established based on the radio frequency communication parameters of the target application, the controller continues to establish communication with other NFC devices based on at least one generic radio frequency communication parameter.
In some embodiments, the control method for the NFC device further includes: during the process of installing or configuring an application, the security element acquires radio frequency communication parameters including protocol layer communication parameters and physical layer communication parameters in a communication protocol of the application; the secure element associates the identity information of the application with the radio frequency communication parameters.
In some embodiments, during installation or configuration of an application, a secure element obtains radio frequency communication parameters including protocol layer communication parameters and physical layer communication parameters in a communication protocol of the application, including:
in the process of installing or configuring an application, the security element acquires protocol layer communication parameters in the communication protocol of the application, and detects a preset flag bit in the communication protocol of the application;
when the preset flag bit is detected, the security element acquires physical layer communication parameters in an applied communication protocol based on the preset flag bit;
radio frequency communication parameters including applied protocol layer communication parameters and physical layer communication parameters are determined.
In some embodiments, the control method for the NFC device further includes: the security element determines a comparison result of the actual radio frequency communication parameter and the radio frequency communication parameter of the target application; and determining the business decision of the target application based on the judgment information containing the comparison result.
According to a second aspect of embodiments of the present disclosure, there is provided an NFC device comprising a secure element and a controller, the controller being electrically connected to the secure element;
the secure element has one or more applications deployed therein, and the controller is configured to perform the control method for the NFC device provided by some embodiments of the first aspect.
In some embodiments, the secure element is configured to perform the control method for an NFC device provided by some embodiments in the first aspect.
According to a third aspect of the embodiments of the present disclosure, there is provided a computer readable storage medium storing program instructions that, when executed, perform the control method for an NFC device provided by the first aspect of the embodiments of the present disclosure.
The control 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:
the NFC device of the embodiments of the present disclosure establishes communication with other NFC devices based on customized radio frequency communication parameters of a target application in a secure element, if the target application needs to be used. The customized radio frequency communication parameters of the target application are added with physical layer communication parameters based on the original protocol layer communication parameters, and the protocol layer communication parameters and the physical layer communication parameters are used together as parameters used in the process of establishing communication, so that the safety of a communication channel established based on the customized radio frequency communication parameters of the application can be improved. Moreover, the use of the communication parameters of the protocol layer and the physical layer can provide conditions for evaluating the safety of the communication channel in the two dimensions of the protocol layer and the physical layer, and on the basis, the actual radio frequency communication parameters are used as a basis for determining the service decision of the target application, so that the safety element can determine a more suitable service decision for the target application according to the safety condition of the communication channel.
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 an application scenario schematic diagram of an NFC device provided in an embodiment of the present disclosure;
fig. 3 is a schematic diagram of a control method for an NFC device provided by an embodiment of the present disclosure;
fig. 4 is a schematic diagram of another control method for an NFC device provided by an embodiment of the present disclosure;
fig. 5 is a schematic diagram of another control method for an NFC device provided by an embodiment of the present disclosure;
fig. 6 is a schematic diagram of another control method for an NFC device provided by an embodiment of the present disclosure;
fig. 7 is a schematic diagram of another control method for an NFC device provided by 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 (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 typically include a controller and a secure element, where the controller is primarily responsible for communicating with other NFC terminals by controlling radio frequency transceivers, and may also act as a communication relay for the secure element. The secure element contains a built-in operating system and the secure element can deploy applications based on the operating system through which the applications can be managed and run.
In the related art, the multi-application management framework followed by the operating system of the secure element allows the application to declare certain customized radio frequency communication parameters required in the NFC device communication establishment process during installation or configuration, and the controller establishes a communication channel with other NFC devices based on the customized radio frequency communication parameters of the application, thereby improving the security of the application during running.
At present, the customized radio frequency communication parameters allowed by the operating system of the secure element are limited to the protocol layer communication parameters, however, with the increasing application scenarios of NFC technology. In the related art, a communication channel established by the NFC device based on customized radio frequency communication parameters of an application cannot meet security requirements in an application running process.
The present disclosure provides an NFC device as a control method execution body for an NFC device provided by the present disclosure embodiments, and for ease of understanding and description, the present disclosure embodiments define the NFC device as a first NFC device 100. As shown in fig. 1, the first NFC device 100 includes a controller 101 and a Secure Element (SE) 102, where the controller 101 is electrically connected to the Secure Element 102, and information interaction between the controller 101 and the Secure Element 102 is possible. The controller 101 may be a near field communication controller (Near Field Communication Controller, NFCC) in an NFC device, in particular the controller 101 may be a contactless front-end (Contactless Front, CLF) chip. The secure element 102 contains a built-in operating system, and the secure element 102 may deploy one or more applications based on the operating system through which the secure element 102 may manage and run the applications.
The first NFC device 100 further comprises a radio frequency unit 103, and the controller 101 is electrically connected to the radio frequency unit 103, and the controller 101 of the first NFC device 100 may communicate with other NFC devices through the radio frequency unit 103.
Fig. 2 illustrates an application scenario of an NFC device provided by an embodiment of the present disclosure, as shown in fig. 2, in this application scenario, a controller 101 of a first NFC device 100 may communicate with a second NFC device 200 through a radio frequency unit 103. The specific types of the first NFC device 100 and the second NFC device 200 may depend on the actual application scenario. For example, the first NFC device 100 may be a mobile terminal with NFC functionality for an individual user, and the second NFC device 200 may be an NFC reader.
The first NFC device 100 will be described below as a control method execution body for an NFC device according to an embodiment of the present disclosure. Hereinafter, the second NFC device 200 is defined as other NFC devices than the first NFC device 100.
In connection with the NFC device shown in fig. 1, an embodiment of the present disclosure provides a control method for an NFC device, as shown in fig. 3, including the following steps:
s301, when the NFC device needs to establish communication with other NFC devices, the controller determines radio frequency communication parameters of the target application in the secure element.
As previously described, the secure element is deployed with one or more applications, the target application being the application in the secure element that is currently in need of use. It should be noted here that some or all of the applications in the secure element have customized radio frequency communication parameters, which may be different for different applications. In S301, the controller may determine the target application from the secure element, and then determine radio frequency communication parameters of the target application.
In an embodiment of the present disclosure, the radio frequency communication parameters include protocol layer communication parameters and physical layer communication parameters. The protocol layer communication parameters are radio frequency communication parameters customized by the target application aiming at the protocol layer, and the physical layer communication parameters are radio frequency communication parameters customized by the target application aiming at the physical layer.
Optionally, the protocol layer communication parameters include one or more of UID, SAK, and ATQA.
Optionally, the physical layer communication parameters are determined by a security level required by the target application. Specifically, the embodiments of the present disclosure may configure different security levels, where the different security levels correspond to different physical layer communication parameters.
Optionally, the physical layer communication parameters include one or more of inter-device distance, field strength, radio frequency amplitude, radio frequency phase, frame delay time, and frame latency. Here, the distance between devices refers to a distance between two NFC devices that need to be maintained.
Table 1 shows an exemplary correspondence between a security level and physical layer communication parameters provided by an embodiment of the present disclosure.
TABLE 1
In table 1, the unit of distance between devices is cm, and the unit of field strength is RSSI (Received Signal Strength Indication ). The full name of FDT is Frame Delay Time, i.e. Frame Delay Time. The full name of FWT is Frame Wait Time, i.e. Frame latency.
S302, the controller establishes communication with other NFC devices based on the radio frequency communication parameters of the target application.
It should be noted that, in the process of establishing communication with other NFC devices, the controller may attempt to establish communication with other NFC devices based on different radio frequency communication parameters. Taking the configuration of the NFC device with the radio frequency communication parameter a and the radio frequency communication parameter b as an example, the controller will first use the radio frequency communication parameter a to establish communication with other NFC devices, and if the communication cannot be successfully established, the controller will continue to use the radio frequency communication parameter b to establish communication with other NFC devices.
In the embodiment of the disclosure, the controller may first establish communication with other NFC devices based on the radio frequency communication parameters of the target application, and if the communication cannot be successfully established, the controller may continue to establish communication with other NFC devices using the other radio frequency communication parameters.
And S303, after the communication is successfully established, the controller sends the actual radio frequency communication parameters used currently to the safety element, so that the safety element takes the actual radio frequency communication parameters as a basis for determining the business decision of the target application.
It should be noted that the actual radio frequency communication parameters currently used, i.e. the radio frequency communication parameters used by the controller to successfully establish communication with other NFC devices. It will be appreciated that the radio frequency communication parameters used by the controller to successfully establish communication with other NFC devices may not be those of the target application provided that the controller successfully establishes communication with other NFC devices. In case the controller successfully establishes communication with the other NFC device, the controller may send the actual radio frequency communication parameters currently in use to the secure element.
The secure element may take the actual radio frequency communication parameters as a basis for determining the traffic decision of the target application after receiving the actual radio frequency communication parameters. In particular, the secure element may compare the actual radio frequency communication parameter with the radio frequency communication parameter of the target application, and the comparison result may be used as a basis for determining a service decision of the target application.
The NFC device of the embodiments of the present disclosure establishes communication with other NFC devices based on customized radio frequency communication parameters of a target application in a secure element, if the target application needs to be used. The customized radio frequency communication parameters of the target application are added with physical layer communication parameters based on the original protocol layer communication parameters, and the protocol layer communication parameters and the physical layer communication parameters are used together as parameters used in the process of establishing communication, so that the safety of a communication channel established based on the customized radio frequency communication parameters of the application can be improved. Moreover, the use of the communication parameters of the protocol layer and the physical layer can provide conditions for evaluating the safety of the communication channel in the two dimensions of the protocol layer and the physical layer, and on the basis, the actual radio frequency communication parameters are used as a basis for determining the service decision of the target application, so that the safety element can determine a more suitable service decision for the target application according to the safety condition of the communication channel.
In some embodiments, the controller determines radio frequency communication parameters of the target application in the secure element, comprising: the controller obtains radio frequency communication information from the secure element, wherein the radio frequency communication information comprises radio frequency communication parameters of at least one application in the secure element; the controller determines a target application from applications in the secure element; the controller determines radio frequency communication parameters of the target application in the radio frequency communication information.
In some embodiments, after establishing communication with other NFC devices based on the radio frequency communication parameters of the target application, further comprising: under the condition that communication is successfully established based on radio frequency communication parameters of a target application, the controller is in communication connection with other NFC equipment; in the event that the communication is not successfully established based on the radio frequency communication parameters of the target application, the controller continues to establish communication with other NFC devices based on at least one generic radio frequency communication parameter.
In connection with the NFC device shown in fig. 1, another control method for an NFC device is provided in the embodiments of the present disclosure, as shown in fig. 4, where the control method for an NFC device includes the following steps:
s401, the controller acquires radio frequency communication information from the safety element.
The radio frequency communication information comprises radio frequency communication parameters of at least one application in the secure element. In particular, the secure element may generate radio frequency communication information for each application having radio frequency communication parameters based on the radio frequency communication parameters of each application. Alternatively, the radio frequency communication information may be a radio frequency communication parameter list formed by radio frequency communication parameters of each application.
The controller interfaces with the secure element through a hardware interface, which may be an I2C bus (Inter Integrated Circuit, integrated circuit bus), SPI (Serial Peripheral Interface, chinese name serial peripheral interface), eSPI (Enhanced Serial Peripheral Interface ), SWP (Single Wire Protocol, single wire protocol), or the like. The controller may obtain the radio frequency communication information from the secure element through the hardware interface when establishing a link channel with the secure element.
S402, the controller determines a target application in the applications in the secure element.
The controller may communicate with other NFC devices based on default radio frequency communication parameters, obtain identity information of applications corresponding to the other NFC devices, and then determine a target application in the applications in the secure element based on the identity information. Specifically, after acquiring identity information of applications corresponding to other NFC devices, the controller searches a corresponding secure element in the routing table based on the identity information, and determines an application matched with the identity information in the secure element as a target application.
Optionally, the identity information comprises an application identifier (Application Identifier, AID).
S403, the controller determines radio frequency communication parameters of the target application in the radio frequency communication information.
Each radio frequency communication parameter in the radio frequency communication information is associated with identity information of a corresponding application. After the controller determines the target application, the radio frequency communication parameters of the target application can be determined in the radio frequency communication information based on the identity information of the target application. As previously described, the identity information may include an application identifier.
S404, the controller establishes communication with other NFC devices based on the radio frequency communication parameters of the target application.
And S405, after the communication is successfully established, the controller sends the actual radio frequency communication parameters used currently to the safety element, so that the safety element takes the actual radio frequency communication parameters as a basis for determining the business decision of the target application.
In connection with the NFC device shown in fig. 1, another control method for an NFC device is provided in the embodiments of the present disclosure, as shown in fig. 5, where the control method for an NFC device includes the following steps:
s501, when the NFC device needs to establish communication with other NFC devices, the controller determines radio frequency communication parameters of the target application in the secure element.
S502, the controller establishes communication with other NFC devices based on the radio frequency communication parameters of the target application.
S503, in the case that the communication is successfully established based on the radio frequency communication parameters of the target application, the controller maintains a communication connection with other NFC devices.
And S504, in the case that the radio frequency communication parameter process based on the target application does not successfully establish communication, the controller continues to establish communication with other NFC devices based on at least one universal radio frequency communication parameter.
It should be noted that the radio frequency communication parameters of the target application are determined by the security level required by the target application. The security level required by the application is different, and the corresponding radio frequency communication parameters are also different. The general radio frequency communication parameters are independent of the security level required by the application, but are radio frequency communication parameters used by the NFC device by default, where the general radio frequency communication parameters may include physical layer communication parameters, and table 2 shows examples of physical layer communication parameters among the plurality of general radio frequency communication parameters provided by the embodiments of the present disclosure.
TABLE 2
It will be appreciated that in the event that the communication is not successfully established based on the radio frequency communication parameters of the target application, the controller continues to establish communication with other NFC devices based in turn on at least one of the generic radio frequency communication parameters in table 2.
And S505, after the communication is successfully established, the controller sends the actual radio frequency communication parameters used currently to the safety element, so that the safety element takes the actual radio frequency communication parameters as a basis for determining the business decision of the target application.
In connection with the NFC device shown in fig. 1, another control method for an NFC device is provided in the embodiments of the present disclosure, as shown in fig. 6, where the control method for an NFC device includes the following steps:
s601, when the NFC device needs to establish communication with other NFC devices, the controller determines radio frequency communication parameters of the target application in the secure element.
Here, the radio frequency communication parameters include protocol layer communication parameters and physical layer communication parameters.
S602, the controller establishes communication with other NFC devices based on the radio frequency communication parameters of the target application.
S603, after successful communication establishment, the controller sends the actual radio frequency communication parameters currently used to the secure element.
S604, the security element determines a comparison result of the actual radio frequency communication parameters and the radio frequency communication parameters of the target application.
In S604, the secure element may compare the actual radio frequency communication parameter with the radio frequency communication parameter of the target application, thereby obtaining a comparison result. The comparison result can reflect the difference condition of the actual radio frequency communication parameter and the radio frequency communication parameter of the target application, and can indicate whether the actual radio frequency communication parameter is the radio frequency communication parameter of the target application.
S605, the security element determines the business decision of the target application based on the judgment information containing the comparison result.
In some embodiments, the specifics of the business decisions may depend on the actual design requirements. For example, in an NFC-based transaction scenario, the business decision may include whether to allow application to other NFC devices to conduct transactions.
In some embodiments, the judgment information contains only the comparison result. If the comparison result shows that the actual radio frequency communication parameter is the radio frequency communication parameter of the target application, the secure element can allow the target application to conduct a transaction flow with other NFC devices, otherwise, the secure element prohibits the target application from conducting transactions with other NFC devices.
In some embodiments, the judgment information includes the comparison result and other security evaluation information. If the comparison result shows that the actual radio frequency communication parameter is the radio frequency communication parameter of the target application, and the safety evaluation information also meets the corresponding safety condition, the safety element can conduct transaction flow with other NFC equipment, otherwise, the safety element prohibits transaction with other NFC equipment.
Taking the example that the target application is a virtual bus card, other NFC devices are card readers supporting the NCF function on buses. If the comparison result shows that the actual radio frequency communication parameter is the radio frequency communication parameter of the virtual bus card, the safety element allows the virtual bus card to conduct transaction flow with the card swiping device to finish card swiping payment, otherwise, the safety element prohibits the virtual bus card from conducting transaction with the card swiping device.
In connection with the NFC device shown in fig. 1, an embodiment of the present disclosure provides a control method for an NFC device, as shown in fig. 7, including the following steps:
in the process of installing or configuring an application, the secure element acquires radio frequency communication parameters including protocol layer communication parameters and physical layer communication parameters in a communication protocol of the application S701.
In an embodiment of the disclosure, an applied communication protocol sets radio frequency communication parameters, where the radio frequency communication parameters include protocol layer communication parameters and physical layer communication parameters. For example, the radio frequency communication parameters may be set in a Load instruction or an INSTALL instruction of the applied communication protocol. During installation of the application, the secure element may read radio frequency communication parameters including protocol layer communication parameters and physical layer communication parameters in the communication protocol of the application, thereby extracting the radio frequency communication parameters.
In some embodiments, during installation or configuration of an application, a secure element obtains radio frequency communication parameters including protocol layer communication parameters and physical layer communication parameters in a communication protocol of the application, including: in the process of installing or configuring an application, the security element acquires protocol layer communication parameters in the communication protocol of the application, and detects a preset flag bit in the communication protocol of the application; when the preset flag bit is detected, the security element acquires physical layer communication parameters in an applied communication protocol based on the preset flag bit; radio frequency communication parameters including applied protocol layer communication parameters and physical layer communication parameters are determined.
It should be noted here that protocol layer communication parameters can generally be set in the application of the original communication protocol. In the embodiment of the present disclosure, in the case where the physical layer communication parameter needs to be set in the applied communication protocol, a preset flag bit may be set while the physical layer communication parameter is set in the communication protocol. The preset flag bit is used for indicating that the communication protocol of the application of the secure element contains physical layer communication parameters. In this way, during the process of installing or configuring the application, when the security element detects the preset flag bit, the related process of acquiring the physical layer communication parameter in the communication protocol of the acquisition application can be executed.
In some embodiments, preset flag bits and physical layer communication parameters may be set in the applied communication protocol according to a preset positional relationship. For example, in the applied communication protocol, the physical layer communication parameters follow and are adjacent to the preset flag bit. When the safety element detects the preset flag bit, the position of the physical layer communication parameter can be determined based on the position of the preset flag bit, so that the physical layer communication parameter can be accurately acquired in the applied communication protocol.
Alternatively, the radio frequency communication parameters may be provided in corresponding instructions of the applied communication protocol. Wherein the protocol layer communication parameters and the physical layer communication parameters are set in the same instruction of the communication protocol, or the protocol layer communication parameters and the physical layer communication parameters are set in different instructions of the communication protocol.
Taking at least part of radio frequency communication parameters set in Load instruction of the applied communication protocol as an example. The Load instruction has the structure that: command header + preset flag bit + physical layer communication parameters + protocol data content. Optionally, the protocol data content of the Load instruction includes protocol layer communication parameters.
S702, the security element correlates the identity information of the application with the radio frequency communication parameters.
It will be appreciated that after associating the identity information of the application with the radio frequency communication parameters, the controller may determine, for a target application, the radio frequency communication parameters of the target application in the secure element based on the identity information of the target application. As previously described, the identity information may include an application identifier.
In some embodiments, the secure element generates the radio frequency communication information based on radio frequency communication parameters of the at least one application. It will be appreciated that the radio frequency communication information comprises radio frequency communication parameters of at least one application in the secure element. It should be noted that, each time the secure element obtains a radio frequency communication parameter of an application, the radio frequency communication parameter of the application may be set to the radio frequency communication information to update the radio frequency communication information. As described above, the radio frequency communication information may be a radio frequency communication parameter list formed by radio frequency communication parameters of each application.
In some embodiments, the first NFC device further comprises a memory (not shown in the figures). The controller may invoke logic instructions in the memory to perform the methods of the respective embodiments described above. The secure element may invoke logic instructions in memory to perform the methods 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 801 executes the functional applications and data processing by executing the program instructions/modules stored in the memory, i.e., implements the control methods of the respective embodiments described above. 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.
Embodiments of the present disclosure provide a computer-readable storage medium storing computer-executable instructions configured to perform a method performed by the controller described above.
Embodiments of the present disclosure provide a computer-readable storage medium storing computer-executable instructions configured to perform a method performed by the secure element described above.
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. And the aforementioned storage medium may be a non-transitory storage medium including: 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 (8)

1. A control method for an NFC device, the NFC device comprising a controller and a secure element, the secure element having one or more applications deployed therein, comprising:
in the process of installing or configuring an application, the security element acquires protocol layer communication parameters in an application communication protocol, and detects preset flag bits in the application communication protocol, wherein the preset flag bits are used for indicating that the security element application communication protocol contains physical layer communication parameters, the application physical layer communication parameters are behind the preset flag bits and are adjacent to the preset flag bits, and the application physical layer communication parameters are determined by security levels required by the application;
when the preset flag bit is detected, the safety element determines the position of the physical layer communication parameter based on the position of the preset flag bit, and the physical layer communication parameter is acquired in an applied communication protocol;
the security element determines radio frequency communication parameters including applied protocol layer communication parameters and physical layer communication parameters, and associates applied identity information with the radio frequency communication parameters;
when the NFC device needs to establish communication with other NFC devices, the controller determines radio frequency communication parameters of a target application in the secure element, wherein the radio frequency communication parameters comprise protocol layer communication parameters and physical layer communication parameters, the other NFC devices are NFC card readers, and the physical layer communication parameters are determined by the security level required by the target application;
the controller establishes communication with the other NFC devices based on radio frequency communication parameters of the target application;
after successful communication establishment, the controller sends the actual radio frequency communication parameters currently used to the secure element, so that the secure element uses the actual radio frequency communication parameters as a basis for determining the business decision of the target application.
2. The control method of claim 1, wherein the physical layer communication parameters include one or more of inter-device distance, field strength, radio frequency amplitude, radio frequency phase, frame delay time, and frame latency.
3. The control method of claim 1, wherein the controller determining radio frequency communication parameters of a target application in the secure element comprises:
the controller obtains radio frequency communication information from the secure element, wherein the radio frequency communication information comprises radio frequency communication parameters of at least one application in the secure element;
the controller determines a target application from among applications in the secure element;
and the controller determines the radio frequency communication parameters of the target application from the radio frequency communication information.
4. The control method according to claim 1, characterized by further comprising, after the controller establishes communication with the other NFC device based on the radio frequency communication parameters of the target application:
in case of successful establishment of communication based on radio frequency communication parameters of the target application, the controller is in communication connection with the other NFC devices;
in the event that communication is not successfully established based on the radio frequency communication parameters of the target application, the controller continues to establish communication with the other NFC devices based on at least one generic radio frequency communication parameter.
5. The control method according to any one of claims 1 to 4, characterized by further comprising:
the safety element determines a comparison result of the actual radio frequency communication parameter and the radio frequency communication parameter of the target application;
the secure element determines a business decision for the target application based on the decision information comprising the comparison result.
6. An NFC device, comprising:
a secure element having one or more applications deployed therein, the secure element configured to: in the process of installing or configuring an application, acquiring protocol layer communication parameters in an application communication protocol, and detecting preset flag bits in the application communication protocol, wherein the preset flag bits are used for indicating that the communication protocol applied by the safety element contains physical layer communication parameters, the application physical layer communication parameters are behind the preset flag bits and are adjacent to the preset flag bits, and the application physical layer communication parameters are determined by the safety level required by the application; when the preset flag bit is detected, determining the position of the physical layer communication parameter based on the position of the preset flag bit, and acquiring the physical layer communication parameter in an applied communication protocol; determining radio frequency communication parameters including protocol layer communication parameters and physical layer communication parameters of an application, and associating identity information of the application with the radio frequency communication parameters;
a controller electrically connected to the secure element, the controller configured to: determining radio frequency communication parameters of a target application in the secure element when the NFC device needs to establish communication with other NFC devices, wherein the radio frequency communication parameters comprise protocol layer communication parameters and physical layer communication parameters, the other NFC devices are NFC card readers, and the physical layer communication parameters are determined by the security level required by the target application; establishing communication with the other NFC devices based on radio frequency communication parameters of the target application; after successful communication establishment, the actual radio frequency communication parameters currently used are sent to the security element, so that the security element takes the actual radio frequency communication parameters as a basis for determining the business decision of the target application.
7. The NFC device of claim 6, wherein the secure element is configured to: determining a comparison result of the actual radio frequency communication parameters and the radio frequency communication parameters of the target application; and determining the business decision of the target application based on the judgment information containing the comparison result.
8. A computer readable storage medium storing program instructions, characterized in that the program instructions, when run, perform the control method for an NFC device according to any one of claims 1 to 5.
CN202311412830.0A 2023-10-30 2023-10-30 Control method for NFC device, NFC device and storage medium Active CN117176205B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311412830.0A CN117176205B (en) 2023-10-30 2023-10-30 Control method for NFC device, NFC device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311412830.0A CN117176205B (en) 2023-10-30 2023-10-30 Control method for NFC device, NFC device and storage medium

Publications (2)

Publication Number Publication Date
CN117176205A CN117176205A (en) 2023-12-05
CN117176205B true CN117176205B (en) 2024-02-27

Family

ID=88945290

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311412830.0A Active CN117176205B (en) 2023-10-30 2023-10-30 Control method for NFC device, NFC device and storage medium

Country Status (1)

Country Link
CN (1) CN117176205B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112840572A (en) * 2018-10-15 2021-05-25 质子世界国际公司 Transaction management in NFC devices
WO2021169774A1 (en) * 2020-02-29 2021-09-02 华为技术有限公司 Nfc-based communication method, apparatus and system
CN113361293A (en) * 2021-06-02 2021-09-07 深圳市汇顶科技股份有限公司 Card swiping method, card controller, electronic device and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112840572A (en) * 2018-10-15 2021-05-25 质子世界国际公司 Transaction management in NFC devices
WO2021169774A1 (en) * 2020-02-29 2021-09-02 华为技术有限公司 Nfc-based communication method, apparatus and system
CN113361293A (en) * 2021-06-02 2021-09-07 深圳市汇顶科技股份有限公司 Card swiping method, card controller, electronic device and storage medium

Also Published As

Publication number Publication date
CN117176205A (en) 2023-12-05

Similar Documents

Publication Publication Date Title
CN109844789B (en) Terminal transaction method and terminal
RU2611241C2 (en) Method of routing in mobile terminal, emulating contactless payment card
US8000755B2 (en) Information-communication terminal device and automatic backup system including the same
EP3007363A1 (en) Mobile terminal, and safety verification method and device for mobile payment
CN101873719A (en) Method, device and system for configuring wireless fidelity (WIFI) parameter
US20170154327A1 (en) Mobile Payment Method and Apparatus and Near Field Communication Device
CN108696852B (en) Bluetooth device connection method, system, readable storage medium and Bluetooth device
CN103369529A (en) Identity authentication method, access point (AP) and access controller (AC)
CN113872835A (en) Method and device for equipment network distribution, server, intelligent household appliance and terminal equipment
CN105574373B (en) Mobile device, for making trade convenient method and system
KR101455155B1 (en) Method for Mobile Payment Card Priority Auto-Setting in Multi-SE and Mobile Device using the same
CN105631662A (en) NFC payment method, NFC payment system and mobile terminal
CN101009555B (en) An intelligent secret key device and the method for information interaction with the host
US10085268B2 (en) Communications device and communications system
CN117176205B (en) Control method for NFC device, NFC device and storage medium
JP6858200B2 (en) Methods for routing data frames, near field communication controllers, and terminals
CN109063459A (en) A kind of USB device filter device and method
CN105451228A (en) Information processing method and device
US11068880B2 (en) Control of applications in a mobile terminal
CN109542812A (en) Data communication control method, device and terminal device
US20130262526A1 (en) Information processing devices that merge files, information processing methods for merging files, and computer-readable media storing instructions that instruct information processing devices to merge files
CA3161588A1 (en) Multi-use field communication front end on a point of sale system
CN117155426B (en) Data transmission method for NFC device, NFC device and storage medium
CN115604366B (en) Method and device for data transmission, near field communication chip and storage medium
EP2980698B1 (en) Starting an application on a mobile device

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