Method, device and equipment for expanding new protocol based on near field communication technology, and medium

By turning off the hardware anti-collision function in NFC technology, turning on the observer mode, and judging the data source at the software level, we have achieved support for multiple protocols under the same NFC technology, solving the flexibility and security issues of hardware expansion new protocols, and improving communication efficiency and compatibility.

CN120343533APending Publication Date: 2025-07-18BEIJING CEC HUADA ELECTRONIC DESIGN CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510722946.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-30
Publication Date
2025-07-18

AI Technical Summary

Technical Problem

It is difficult for existing NFC technology to expand new protocols based on hardware implementation, resulting in the problem of not supporting single technology and multiple protocols, affecting communication speed and security.

Method used

By turning off the hardware anti-collision function of the NFC-A protocol, turning on the observer mode, judging the data source at the software level, selecting the appropriate communication protocol for data communication, and realizing intelligent switching and coexistence between new and old protocols.

Benefits of technology

Supporting multiple protocols under the same NFC technology improves communication flexibility and security, avoids the delay and energy consumption problems caused by frequent hardware switching, and ensures the real-time response capabilities of the hardware anti-collision mechanism.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120343533A_ABST
    Figure CN120343533A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of wireless communication, and discloses a method, a device, equipment and a medium for expanding a new protocol based on a near field communication technology, the method, the device and the medium are applied to near field communication equipment, the near field communication equipment comprises radio frequency card simulation equipment, and the method comprises the following steps: after the near field communication technology enters a field in a radio frequency card simulation equipment mode; closing a hardware anti-collision function of the NFC-A protocol, and opening an observer mode function of the radio frequency card simulation equipment; judging a data source of the first frame data received by the radio frequency card simulation equipment by adopting an observer mode function; selecting a new protocol based on the NFC technology as a communication protocol for data communication according to the data source of the first frame data; or the NFC-A protocol is selected as a communication protocol for data communication. According to the invention, the new protocol based on the NFC technology is expanded on the existing NFC technology, and the NFC-A protocol and the new protocol based on the NFC technology are finally supported on the same NFC technology.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of wireless communication technologies, and particularly to a method, apparatus, device, and medium for extending a new protocol based on near field communication technology. Background Art

[0002] NFC technology (Near Field Communication) products have a broad market space and diverse application scenarios in the market, and their convenience is well-known. However, the technical products designed in accordance with the NFC standard have technical limitations. Their scalability for new protocols that also meet NFC technology is limited, which makes it difficult to develop current market applications in the radio frequency field, such as mobile payment, transportation cards, and identity authentication, based on new RF (Radio Frequency) protocols. When a new protocol based on NFC technology appears in the market, it is difficult to be compatible with products developed based on existing RF protocols such as NFC-A, NFC-B, NFC-F, etc., and it also poses a certain degree of obstruction to the company teams researching and developing new protocols based on NFC technology. Especially when the existing RF technology realizes wake-up and anti-collision through chip hardware, it is very difficult to extend a new RF protocol at the software level.

[0003] Regarding the above-known problems, the method that the industry may adopt is to change the anti-collision process of the PICC (Proximity Integrated Circuit Card) to be implemented by software. However, doing so will introduce new problems, that is, it will slow down the communication speed between the PCD (Proximity Coupling Device) and the PICC, affect the radio frequency communication quality, and reduce the product performance. In security fields such as wallet payment, it will even cause fatal errors such as software concurrency problems. Thus, it can be seen that currently, there is no way to extend a new protocol based on NFC technology on the basis of the existing RF technology implemented in hardware, resulting in the problem of not supporting single technology and multiple protocols. Summary of the Invention

[0004] In view of this, the present invention provides a method, apparatus, device, and medium for extending a new protocol based on near field communication technology to solve the problem that the existing NFC technology does not support single technology and multiple protocols.

[0005] In a first aspect, the present invention provides a method for extending a new protocol based on near field communication technology, which is applied to a near field communication device. The near field communication device includes a proximity integrated circuit card simulation device. The method includes:

[0006] After the near field communication technology enters the field in the proximity integrated circuit card simulation device mode, turn off the hardware anti-collision function of the NFC-A protocol and turn on the observer mode function of the proximity integrated circuit card simulation device;

[0007] Use the observer pattern function to determine the data source of the first frame of data received by the RF card simulation device;

[0008] Select a new protocol based on NFC technology as the communication protocol for data communication according to the data source of the first frame of data; or select the NFC-A protocol as the communication protocol for data communication.

[0009] A method for extending a new protocol based on near field communication technology provided by the present invention, under the same NFC technology, uses the observer pattern function to determine the data source of the first frame of data received by the RF card simulation device, visually hands the data reception instruction to the software layer, and selects a new protocol based on NFC technology as the communication protocol for data communication according to the data source of the first frame of data; or selects the NFC-A protocol as the communication protocol for data communication, realizes the extension of the new protocol based on NFC technology on the existing NFC technology, and finally supports the NFC-A protocol and the new protocol based on NFC technology on the same NFC technology, realizes the single technology, multi-protocol method, and solves the problem of not supporting the single technology, multi-protocol method.

[0010] In an optional implementation manner, the method for extending a new protocol based on near field communication technology further includes:

[0011] After the near field communication technology enters the field in the RF card simulation device mode, initialize the software module of the new protocol based on NFC technology and the software module of the NFC-A protocol; the initialization includes parameter configuration, resource allocation, status initialization, and hardware association configuration for the software module.

[0012] A method for extending a new protocol based on near field communication technology provided by the present invention, by initializing the software modules of the new protocol and the existing NFC-A protocol simultaneously, the system can smoothly support the coexistence of the old and new protocols.

[0013] In an optional implementation manner, selecting a new protocol based on NFC technology as the communication protocol for data communication according to the data source of the first frame of data, or selecting the NFC-A protocol as the communication protocol for the first frame of data communication, includes:

[0014] If the data source of the first frame of data is from the new protocol based on NFC technology, use the RF card simulation device to reply and respond to the radio frequency coupling with the data source of the first frame of data, and select the new protocol based on NFC technology as the communication protocol for the first frame of data communication;

[0015] If the data source of the first frame of data is from the NFC-A protocol, select the NFC-A protocol as the communication protocol for the first frame of data communication.

[0016] A method for extending a new protocol based on near field communication technology can intelligently switch the communication mode by identifying the data source protocol of the first frame of data, ensuring that the new protocol based on NFC technology and the existing NFC-A protocol can coexist in the same device, and can extend the new protocol based on NFC technology under the same NFC technology, realizing a single technology and multi-protocol method.

[0017] In an alternative embodiment, selecting a new protocol based on NFC technology as the communication protocol for the first frame of data communication includes:

[0018] Selecting a new protocol based on NFC technology as the communication protocol and initializing the software module of the new protocol based on NFC technology. The software module of the new protocol based on NFC technology performs wake-up operation, anti-collision operation, activation operation with the radio frequency coupling device, and first frame data interaction operation with the radio frequency coupling device.

[0019] A method for extending a new protocol based on near field communication technology. Under the same radio frequency technology, the new protocol based on NFC technology uses software to perform wake-up operation, anti-collision operation, activation operation, and first frame data interaction operation with the radio frequency coupling device, realizing the extension of the new protocol based on NFC technology on the existing NFC technology.

[0020] In an alternative embodiment, selecting the NFC-A protocol as the communication protocol for the first frame of data communication includes:

[0021] Enabling the hardware anti-collision function of the NFC-A protocol, disabling the observer mode function of the radio frequency card simulation device, and initializing the hardware module of the NFC-A protocol. The hardware module of the NFC-A protocol performs the wake-up operation and anti-collision operation of the NFC-A protocol;

[0022] Initializing the software module of the NFC-A protocol. The software module of the NFC-A protocol performs the activation operation and first frame data interaction operation with the radio frequency coupling device.

[0023] A method for extending a new protocol based on near field communication technology. The hardware module of the NFC-A protocol performs the wake-up operation and anti-collision operation of the NFC-A protocol, that is, ensuring that the communication quality of the existing NFC-A protocol is not affected at the hardware level. The NFC-A protocol hardware anti-collision can be turned on and off at any time to be compatible with the new protocol based on NFC technology. The software module of the NFC-A protocol performs the activation operation and first frame data interaction operation with the radio frequency coupling device. By software processing activation and data interaction, the flexibility of protocol extension is retained.

[0024] In an alternative embodiment, the method for extending a new protocol based on near field communication technology further includes:

[0025] When the near-field communication technology enters the field in the radio frequency card simulation device mode and the hardware anti-collision function of the NFC-A protocol is turned off, the observer mode function of the radio frequency card simulation device is turned on, and the observer mode function is used to judge the data source of the first frame of data received by the radio frequency card simulation device; a new protocol based on the NFC technology is selected as the communication protocol for data communication according to the data source of the first frame of data, or the NFC-A protocol is selected as the communication protocol for the first frame of data communication;

[0026] After the first frame of data communication is completed, the hardware anti-collision function of the NFC-A protocol is continuously turned off, the observer mode function of the radio frequency card simulation device is turned on, the observer mode function is used to judge the data source of the second frame of data and subsequent data frames received by the radio frequency card simulation device, and a new protocol based on the NFC technology is selected as the communication protocol for the second frame of data and subsequent data frames according to the data source of the second frame of data and subsequent data frames; or the NFC-A protocol is selected as the communication protocol for the second frame of data and subsequent data frames.

[0027] A method for expanding a new protocol based on the near-field communication technology provided by the present invention can establish a more reliable protocol recognition model through the protocol source judgment of consecutive multi-frame data (such as the first frame, the second frame, and subsequent data frames), effectively reduce misjudgment caused by signal interference or incomplete data frames, can intelligently switch the communication mode, ensure that the new protocol based on the NFC technology and the existing NFC-A protocol can coexist in the same device, can expand the new protocol based on the NFC technology under the same NFC technology, and realizes the method of single technology and multiple protocols.

[0028] In an optional implementation manner, selecting a new protocol based on the NFC technology as the communication protocol for data communication according to the data source of the first frame of data, or selecting the NFC-A protocol as the communication protocol for the first frame of data communication, includes:

[0029] If the data source of the first frame of data is from a new protocol based on the NFC technology, the radio frequency card simulation device is used to reply the data source of the first frame of data to the radio frequency coupling device, a new protocol based on the NFC technology is selected as the communication protocol, and the software module of the new protocol based on the NFC technology is initialized. The software module of the new protocol based on the NFC technology performs a wake-up operation, an anti-collision operation, an activation operation, and an operation of interacting with the radio frequency coupling device for the first frame of data with the radio frequency coupling device;

[0030] When the data source of the first frame of data is from the NFC-A protocol, the hardware anti-collision function of the NFC-A protocol is enabled, the observer mode function of the RF card simulation device is disabled, and the hardware module of the NFC-A protocol is initialized. The hardware module of the NFC-A protocol performs the wake-up operation and anti-collision operation of the NFC-A protocol; the software module of the NFC-A protocol is initialized, and the software module of the NFC-A protocol performs the activation operation and the interaction operation of the first frame of data with the RF coupling device.

[0031] A method for extending a new protocol based on near-field communication technology provided by the present invention. Under the same radio frequency technology, the new protocol based on NFC technology uses software to perform wake-up operations, anti-collision operations, activation operations, and the interaction operation of the first frame of data with the RF coupling device, realizing the extension of the new protocol based on NFC technology on the existing NFC technology. The hardware module of the NFC-A protocol performs the wake-up operation and anti-collision operation of the NFC-A protocol, that is, ensuring that the communication quality of the existing NFC-A protocol is not affected at the hardware level, and the hardware anti-collision of the NFC-A protocol can be turned on and off at any time to be compatible with the new protocol based on NFC technology. The software module of the NFC-A protocol performs the activation operation and the interaction operation of the first frame of data with the RF coupling device. By software processing of activation and data interaction, the flexibility of protocol extension is retained.

[0032] In an alternative embodiment, based on the data source of the second frame of data and subsequent data frames, a new protocol based on NFC technology is selected as the communication protocol for the communication of the second frame of data and subsequent data frames; or the NFC-A protocol is selected as the communication protocol for the communication of the second frame of data and subsequent data frames, including:

[0033] When the data source of the second frame of data and subsequent data frames is from a new protocol based on NFC technology, the RF card simulation device is used to reply the data source of the second frame of data and subsequent data frames to the RF coupling device, a new protocol based on NFC technology is selected as the communication protocol, and the software module of the new protocol based on NFC technology is initialized. The software module of the new protocol based on NFC technology performs the wake-up operation, anti-collision operation, activation operation, and the interaction operation of data with the preset application layer with the RF coupling device;

[0034] When the data source of the second frame of data and subsequent data frames is from the NFC-A protocol, the hardware anti-collision function of the NFC-A protocol is enabled, the observer mode function of the RF card simulation device is disabled, and the hardware module of the NFC-A protocol is initialized. The hardware module of the NFC-A protocol performs the wake-up operation and anti-collision operation of the NFC-A protocol; the software module of the NFC-A protocol is initialized, and the software module of the NFC-A protocol performs the activation operation and the interaction operation of data with the preset application layer.

[0035] A method for extending a new protocol based on near field communication technology. Under the same radio frequency technology, it realizes the wake-up and anti-collision of the data of the second frame and subsequent data frames using hardware in the existing NFC-A protocol, and uses software for wake-up and anti-collision in the new protocol based on NFC technology. The hardware anti-collision of the NFC-A protocol can be turned on and off at any time to be compatible with the new protocol based on NFC technology, realizing the method of "single technology, multiple protocols".

[0036] In a second aspect, the present invention provides a method for extending a new protocol based on near field communication technology, which is applied to a near field communication device. The near field communication device includes a radio frequency card simulation device. The method includes:

[0037] After the near field communication technology enters the field in the radio frequency card simulation device mode and the hardware anti-collision function of the NFC-A protocol is not turned off, the observer mode function of the radio frequency card simulation device is enabled. The observer mode function is used to judge the data source of the first frame of data received by the radio frequency card simulation device, and a new protocol based on NFC technology is selected as the communication protocol for the first frame of data communication according to the data source of the first frame of data; or the NFC-A protocol is selected as the communication protocol for the first frame of data communication.

[0038] After the first frame of data communication is completed, the observer mode function is used to judge the data source of the second frame of data and subsequent data frames received by the radio frequency card simulation device, and a new protocol based on NFC technology is selected as the communication protocol for the second frame of data and subsequent data frames according to the data source of the second frame of data and subsequent data frames; or the NFC-A protocol is selected as the communication protocol for the second frame of data and subsequent data frames.

[0039] A method for extending a new protocol based on near field communication technology provided by the present invention. On the premise of not turning off the NFC-A hardware anti-collision function, the observer mode is used for protocol judgment, which can judge the protocol source in real time when each frame of data is received, realize true dynamic protocol switching, and also realize the intelligent reuse of hardware resources. This avoids the delay and energy consumption problems caused by frequently switching hardware modules in the traditional method, and at the same time maintains the real-time response ability of the hardware anti-collision mechanism. By judging the protocol sources of consecutive multiple frames of data (such as the first frame, the second frame, and subsequent data frames), a more reliable protocol recognition model can be established, effectively reducing misjudgments caused by signal interference or incomplete data frames.

[0040] In an optional implementation manner, selecting a new protocol based on NFC technology as the communication protocol for the second frame of data and subsequent data frames according to the data source of the second frame of data and subsequent data frames; or selecting the NFC-A protocol as the communication protocol for the second frame of data and subsequent data frames includes:

[0041] When the data source of the second frame data and subsequent data frames is from a new protocol based on NFC technology, the radio frequency card simulation device is used to respond to the radio frequency coupling device with the data source of the second frame data and subsequent data frames, select the new protocol based on NFC technology as the communication protocol, and initialize the software module of the new protocol based on NFC technology. The software module of the new protocol based on NFC technology performs wake-up operations, anti-collision operations, activation operations, and data interaction operations with the preset application layer with the radio frequency coupling device;

[0042] When the data source of the second frame data and subsequent data frames is from the NFC-A protocol, the radio frequency card simulation device is used to respond to the radio frequency coupling device with the data source of the second frame data and subsequent data frames, select the NFC-A protocol as the communication protocol, and initialize the software module of the NFC-A protocol. The software module of the NFC-A protocol performs wake-up operations, anti-collision operations, activation operations, and data interaction operations with the radio frequency coupling device and the preset application layer.

[0043] A method for extending a new protocol based on near field communication technology provided by the present invention realizes the "single technology, multi-protocol" method by using pure software logic without closing the NFC-A hardware anti-collision function, realizes the extension of the new protocol based on NFC technology on the existing NFC technology, and can also achieve protocol compatibility between the NFC-A protocol and the new protocol based on NFC technology under the same radio frequency technology.

[0044] In a third aspect, the present invention provides a device for extending a new protocol based on near field communication technology, which is applied to a near field communication device. The near field communication device includes a radio frequency card simulation device. The device includes:

[0045] An enabling operation module after entering the field, which is used to turn off the hardware anti-collision function of the NFC-A protocol and turn on the observer mode function of the radio frequency card simulation device after the near field communication technology enters the field in the radio frequency card simulation device mode;

[0046] A data source judgment module, which is used to judge the data source of the first frame data received by the radio frequency card simulation device by using the observer mode function;

[0047] A first new protocol extension module, which is used to select the new protocol based on NFC technology as the communication protocol for data communication according to the data source of the first frame data; or select the NFC-A protocol as the communication protocol for data communication.

[0048] In a fourth aspect, the present invention provides a device for extending a new protocol based on near field communication technology, which is applied to a near field communication device. The near field communication device includes a radio frequency card simulation device. The device includes:

[0049] A second new protocol extension module is used to enable the observer mode function of the RF card simulation device when the near-field communication technology enters the field in the RF card simulation device mode and does not turn off the hardware anti-collision function of the NFC-A protocol. The observer mode function is used to determine the data source of the first frame of data received by the RF card simulation device, and a new protocol based on the NFC technology is selected as the communication protocol for the first frame of data communication according to the data source of the first frame of data; or the NFC-A protocol is selected as the communication protocol for the first frame of data communication.

[0050] A third new protocol extension module is used to, after the first frame of data communication is completed, use the observer mode function to determine the data source of the second frame of data and subsequent data frames received by the RF card simulation device, and a new protocol based on the NFC technology is selected as the communication protocol for the second frame of data and subsequent data frames according to the data source of the second frame of data and subsequent data frames; or the NFC-A protocol is selected as the communication protocol for the second frame of data and subsequent data frames.

[0051] In a fifth aspect, the present invention provides a computer device, including: a memory and a processor, which are communicatively connected to each other. The memory stores computer instructions, and the processor executes the computer instructions to execute the method for extending a new protocol based on the near-field communication technology according to the first aspect or any corresponding embodiment thereof.

[0052] In a sixth aspect, the present invention provides a computer-readable storage medium, on which computer instructions are stored. The computer instructions are used to cause a computer to execute the method for extending a new protocol based on the near-field communication technology according to the first aspect or any corresponding embodiment thereof.

[0053] In a seventh aspect, the present invention provides a computer program product, including computer instructions, which are used to cause a computer to execute the method for extending a new protocol based on the near-field communication technology according to the first aspect or any corresponding embodiment thereof. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the following will briefly introduce the drawings required for use in the description of the specific embodiments or the prior art. Obviously, the drawings in the following description are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0055] Figure 1 It is a data communication flowchart of a new protocol based on the NFC technology and the NFC-A protocol in the prior art;

[0056] Figure 2It is a schematic flowchart of a method for extending a new protocol based on near field communication technology according to an embodiment of the present invention;

[0057] Figure 3 It is a schematic flowchart of another method for extending a new protocol based on near field communication technology according to an embodiment of the present invention;

[0058] Figure 4 It is a schematic flowchart of yet another method for extending a new protocol based on near field communication technology according to an embodiment of the present invention;

[0059] Figure 5 It is a schematic flowchart of still another method for extending a new protocol based on near field communication technology according to an embodiment of the present invention;

[0060] Figure 6 It is a schematic flowchart of yet another method for extending a new protocol based on near field communication technology according to an embodiment of the present invention;

[0061] Figure 7(a) is a communication flowchart of the first frame of data of a method for extending a new protocol based on near field communication technology according to an embodiment of the present invention;

[0062] Figure 7(b) is a communication flowchart of the second frame of data and subsequent data frames of a method for extending a new protocol based on near field communication technology according to an embodiment of the present invention;

[0063] Figure 8 It is a schematic flowchart of yet another method for extending a new protocol based on near field communication technology according to an embodiment of the present invention;

[0064] Figure 9 It is a structural block diagram of a device for extending a new protocol based on near field communication technology according to an embodiment of the present invention;

[0065] Figure 10 It is a structural block diagram of another device for extending a new protocol based on near field communication technology according to an embodiment of the present invention;

[0066] Figure 11 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. Detailed implementation manners

[0067] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Apparently, the described embodiments are some, but not all, of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.

[0068] Such as Figure 1As shown, existing technologies all use software to receive various instructions sent by a PCD that supports a new protocol based on NFC technology. They can only receive instructions transmitted by a PCD that supports a new protocol based on NFC technology. That is to say, existing technologies use separate software architectures for the NFC-A protocol (an NFC protocol type based on the ISO / IEC 14443A standard) and a new protocol based on NFC technology respectively. This asynchronous architecture juxtaposes the new protocol based on NFC technology with other existing NFC protocols. Under this technology, if a PICC receives an NFC-A instruction, the software only processes PCD instructions of the NFC-A protocol. If a PICC receives an instruction of a new protocol based on NFC technology, the software only processes PCD commands of the new protocol based on NFC technology.

[0069] Its disadvantages are that it does not extend a new protocol based on NFC technology on the basis of implementing existing RF technology in hardware and does not support the "single technology, multiple protocols" method. The defects are as follows.

[0070] (1) Limited scalability. The problem with existing technologies is that if a PICC receives an NFC-A instruction, it only interacts with a PCD of the NFC-A protocol. If a PICC receives an instruction of a new protocol based on NFC technology, it only interacts with a PCD of the new protocol based on NFC technology. It cannot support the "single technology, multiple protocols" method. Therefore, the ability of existing technologies to extend new protocols is limited.

[0071] (2) Lack of flexibility. Existing technologies have obvious shortcomings in the coordination between software and hardware. According to research on several popular NFC chips on the market, the anti-collision processing of NFC-A technology in the card emulation mode of their technologies is all implemented by chip hardware. The advantage of implementing NFC technology anti-collision purely in hardware is fast speed and rapid response. However, the defect of lacking software processing is that wake-up frames of a new protocol based on NFC technology will be lost. This is because only wake-up frames of existing technologies are added during hardware design, and the hardware will automatically discard other non-wake-up frames. Therefore, the lack of flexibility in existing technologies will lead to frame loss problems when extending new protocols. It can be seen that if you want to extend a new protocol on the same technology, you need to coordinate the processing of software and hardware, control the selection of the protocol entry by software, and then implement anti-collision processing by hardware to increase flexibility.

[0072] The embodiment of the present invention provides a method for extending a new protocol based on near-field communication technology, which extends a new protocol based on NFC technology on existing NFC technology, and finally supports the NFC-A protocol and a new protocol based on NFC technology on the same NFC technology, achieving the effect of the "single technology, multiple protocols" method.

[0073] According to an embodiment of the present invention, there is provided an embodiment of a method for extending a new protocol based on near field communication technology. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in a different order than here.

[0074] In this embodiment, a method for extending a new protocol based on near field communication technology is provided, which can be used for near field communication devices. The near field communication devices include radio frequency card simulation devices. Figure 2 It is a flowchart of a method for extending a new protocol based on near field communication technology according to an embodiment of the present invention, as Figure 2 shown, the process includes the following steps:

[0075] Step S101, after the near field communication technology enters the field in the radio frequency card simulation device mode, turn off the hardware anti-collision function of the NFC-A protocol and turn on the observer mode function of the radio frequency card simulation device.

[0076] Specifically, the near field communication technology is abbreviated as NFC technology (Near Field Communication, NFC), and the radio frequency card simulation device is abbreviated as PICC (Proximity Integrated Circuit Card). The near field communication technology entering the field in the radio frequency card simulation device mode means in the PICC mode of the NFC technology. "Entering the field" describes the process in which the PICC enters the effective range of the radio frequency magnetic field generated by the PCD (Proximity Coupling Device, abbreviated as PCD, radio frequency coupling device). The radio frequency coupling device also belongs to one of the near field communication devices.

[0077] The radio frequency card simulation device contains a radio frequency chip, and a hardware anti-collision enabling module is provided on the radio frequency chip (the hardware anti-collision enabling module is also called HardANTI, which is a hardware anti-collision function based on the NFC-A technology PICC). By setting a control command for the hardware anti-collision enabling module, the purpose of turning on or off can be achieved. For example, when the control command of the hardware anti-collision enabling module is 1, it means turning on the hardware anti-collision function, and when the control command of the hardware anti-collision enabling module is 0, it means turning off the hardware anti-collision function.

[0078] Similarly, an observer mode (abbreviated as MuteMode of PICC) enabling module is provided on the RF chip. By setting control commands for the observer mode enabling module, the purpose of turning it on or off can be achieved. For example, when the control command of the observer mode enabling module is 1, it indicates that the observer mode function is turned on. When the control command of the observer mode enabling module is 0, it indicates that the observer mode function is turned off. The observer mode function is a technology in which PICC does not reply to PCD temporarily when collecting instructions from different protocols. It can visually deliver the instructions to the software layer, and then the software layer decides whether to actively reply to PCD.

[0079] Step S102: Use the observer mode function to determine the data source of the first frame of data received by the RF card simulation device.

[0080] Specifically, when PICC receives data, it determines the data source of the first frame of data in the received data through MuteMode. The data sources include data from a new protocol based on NFC technology and data from the existing NFC-A protocol.

[0081] Step S103: Select a new protocol based on NFC technology as the communication protocol for data communication according to the data source of the first frame of data; or select the NFC-A protocol as the communication protocol for data communication.

[0082] Specifically, based on the data source of the first frame of data determined by MuteMode, that is, the data comes from a new protocol based on NFC technology or the data comes from the existing NFC-A protocol, and accordingly select a new protocol based on NFC technology as the communication protocol for data communication; or select the NFC-A protocol as the communication protocol for data communication.

[0083] The method for extending a new protocol based on near field communication technology provided in this embodiment, under the same NFC technology, uses the observer mode function to determine the data source of the first frame of data received by the RF card simulation device, visually delivers the received data instructions to the software layer, and selects a new protocol based on NFC technology as the communication protocol for data communication according to the data source of the first frame of data; or selects the NFC-A protocol as the communication protocol for data communication, realizing the extension of the new protocol based on NFC technology on the existing NFC technology, and finally supporting the NFC-A protocol and the new protocol based on NFC technology on the same NFC technology, solving the problem of not supporting the single-technology and multi-protocol method.

[0084] In this embodiment, a method for extending a new protocol based on near field communication technology is provided, which can be used for near field communication devices. The near field communication devices include RF card simulation devices. Figure 3is a flowchart of a method for extending a new protocol based on near field communication technology according to an embodiment of the present invention, as Figure 3 shown. The process includes the following steps:

[0085] Step S201, after the near field communication technology enters the field in the radio frequency card simulation device mode, turn off the hardware anti-collision function of the NFC-A protocol and turn on the observer mode function of the radio frequency card simulation device. For details, please refer to Figure 2 step S101 of the embodiment shown herein, which will not be elaborated herein.

[0086] Step S202, after the near field communication technology enters the field in the radio frequency card simulation device mode, initialize the software module of the new protocol based on NFC technology and the software module of the NFC-A protocol; the initialization includes parameter configuration, resource allocation, status initialization, and hardware association configuration for the software module.

[0087] Specifically, the initialization of the software module of the new protocol based on NFC technology includes:

[0088] 1. Parameter configuration: Set the basic operating parameters for the new protocol based on NFC technology, including communication frequency, data transmission rate, frame format, etc., to make the new protocol meet the communication requirements and ensure the accuracy and stability of data transmission.

[0089] 2. Software initialization: Allocate necessary system resources such as memory and cache space for the operation of the new protocol based on NFC technology to avoid resource conflicts and ensure the smooth execution of the protocol.

[0090] 3. Function module startup: Activate the core function modules such as data transceiver, anti-collision, encryption and decryption in the new protocol based on NFC technology to prepare for subsequent communication and interaction with the PCD.

[0091] The initialization of the NFC-A protocol software module includes:

[0092] 1. Parameter reset: Reset the working parameters of the NFC-A protocol, such as carrier frequency, modulation method, etc., to make the protocol enter the workable state and meet the basic conditions for communicating with the PCD.

[0093] 2. Status initialization: Set the state machine related to the NFC-A protocol to the initial state, such as setting the card state to IDLE (idle state), to lay the foundation for receiving PCD instructions and making responses.

[0094] 3. Hardware association configuration: Establish the connection and configuration between the NFC-A protocol software module and hardware components (such as antennas, radio frequency front ends) to ensure that the software can correctly control the hardware to complete data transceiver and processing, such as configuring the wake-up and anti-collision processing logics of the hardware.

[0095] Step S203: Use the observer pattern function to determine the data source of the first frame of data received by the RF card simulation device. For details, please refer to Figure 2 Step S102 of the embodiment shown, which will not be elaborated here.

[0096] Step S204: Select a new protocol based on NFC technology as the communication protocol for data communication according to the data source of the first frame of data; or select the NFC-A protocol as the communication protocol for data communication.

[0097] Specifically, the near-field communication device further includes a proximity coupling device (PCD); the above step S204 includes:

[0098] Step S2041: If the data source of the first frame of data is from a new protocol based on NFC technology, use the RF card simulation device to reply to the data source of the first frame of data in response to radio frequency coupling, and select a new protocol based on NFC technology as the communication protocol for the first frame of data communication.

[0099] In some alternative embodiments, the above step S2041 includes:

[0100] Step a: Select a new protocol based on NFC technology as the communication protocol, and initialize the software module of the new protocol based on NFC technology. Since the software module of the new protocol based on NFC technology performs wake-up operations, anti-collision operations, activation operations, and first-frame data interaction operations with the radio frequency coupling device.

[0101] As Figure 5 shown, when the MuteMode of the PICC determines that the data source of the first frame of data is from a new protocol based on NFC technology, then select the branch of the new protocol based on NFC technology for processing, and at the same time reply to the PCD that the first frame of data comes from a new protocol based on NFC technology, and select a new protocol based on NFC technology as the communication protocol for the first frame of data communication.

[0102] Furthermore, when the PICC judges the received first frame of data, if the first frame of data comes from a new protocol based on NFC technology, it will make a data source reply to the PCD. At this time, NFC technology can select a new protocol based on NFC technology as the communication protocol. Next, anti-collision operations, activation operations, APDU data (Application Protocol Data Unit, which is the standard protocol data unit for communication between smart cards and card readers and belongs to the data transmission format of the application layer) interaction, etc. with the PCD can all be processed according to the new protocol based on NFC technology.

[0103] The method for extending a new protocol based on near field communication technology provided in this embodiment, under the same radio frequency technology, uses software for anti-collision operations, activation operations, and first-frame data interaction operations with radio frequency coupling devices in the new protocol based on NFC technology, realizing the extension of the new protocol based on NFC technology on the existing NFC technology.

[0104] Step S2042, if the data source of the first-frame data is from the NFC-A protocol, select the NFC-A protocol as the communication protocol for the first-frame data communication.

[0105] In some optional implementation manners, the above step S2042 includes:

[0106] Step b1, turn on the hardware anti-collision function of the NFC-A protocol, turn off the observer mode function of the radio frequency card simulation device, and initialize the hardware module of the NFC-A protocol. The hardware module of the NFC-A protocol performs the wake-up operation and anti-collision operation of the NFC-A protocol.

[0107] As Figure 5 shown, when the MuteMode of the PICC determines that the data source of the first-frame data is from the NFC-A protocol, then select the NFC-A protocol branch for processing, turn on the hardware HardANTI of the NFC-A protocol, and the hardware processes the wake-up and anti-collision processes of the NFC-A protocol, that is, reply to the PCD at the hardware level without software intervention, so as to ensure that the communication quality of the existing NFC-A protocol is not affected.

[0108] Step b2, initialize the software module of the NFC-A protocol, and the software module of the NFC-A protocol performs the activation operation and the first-frame data interaction operation with the preset standard protocol data unit.

[0109] As Figure 5 shown, when the hardware finishes processing the wake-up and anti-collision processes of the NFC-A protocol, then initialize the software module of the NFC-A protocol, and the software module of the NFC-A protocol performs the activation and APDU data interaction operations.

[0110] The method for extending a new protocol based on near field communication technology provided in this embodiment performs wake-up operation and anti-collision operation of the NFC-A protocol by the hardware module of the NFC-A protocol, that is, at the hardware level, ensuring that the communication quality of the existing NFC-A protocol is not affected. The hardware anti-collision of the NFC-A protocol can be turned on and off at any time to be compatible with the new protocol based on NFC technology. The software module of the NFC-A protocol performs activation operation and interaction operation of the first frame of data with the radio frequency coupling device. After anti-collision and activation operations, data interaction is performed with the standard protocol data unit (APDU data) of the preset application layer through software processing. By software processing of activation and data interaction, the flexibility of protocol extension is retained.

[0111] The method for extending a new protocol based on near field communication technology provided in this embodiment can smoothly support the coexistence of new and old protocols by initializing the software modules of the new protocol and the existing NFC-A protocol simultaneously. By identifying the data source protocol of the first frame of data, the communication mode can be intelligently switched to ensure that the new protocol based on NFC technology and the existing NFC-A protocol can coexist in the same device, and the new protocol based on NFC technology can be extended under the same NFC technology, realizing a single technology, multi-protocol method.

[0112] In this embodiment, a method for extending a new protocol based on near field communication technology is provided, which can be used for near field communication devices. The near field communication device includes a radio frequency card simulation device. Figure 4 is a flowchart of the method for extending a new protocol based on near field communication technology according to an embodiment of the present invention, as Figure 4 shown. The process includes the following steps:

[0113] Step S301, after the near field communication technology enters the field in the radio frequency card simulation device mode, turn off the hardware anti-collision function of the NFC-A protocol and turn on the observer mode function of the radio frequency card simulation device. For details, please refer to Figure 3 step S201 of the embodiment shown here, which will not be elaborated here.

[0114] Step S302, use the observer mode function to determine the data source of the first frame of data received by the radio frequency card simulation device. For details, please refer to Figure 3 step S203 of the embodiment shown here, which will not be elaborated here.

[0115] Step S303, select the new protocol based on NFC technology as the communication protocol for data communication according to the data source of the first frame of data; or select the NFC-A protocol as the communication protocol for data communication. For details, please refer to Figure 3 step S204 of the embodiment shown here, which will not be elaborated here.

[0116] Step S304: When the near field communication technology enters the field in the RF card simulation device mode and the hardware anti-collision function of the NFC-A protocol is turned off, the observer mode function of the RF card simulation device is enabled. The observer mode function is used to determine the data source of the first frame of data received by the RF card simulation device. Based on the data source of the first frame of data, a new protocol based on the NFC technology is selected as the communication protocol for data communication, or the NFC-A protocol is selected as the communication protocol for the first frame of data communication.

[0117] Specifically, the above step S304 includes:

[0118] Step S3041: If the data source of the first frame of data is from a new protocol based on the NFC technology, the RF card simulation device is used to reply to the RF coupling device with the data source of the first frame of data. A new protocol based on the NFC technology is selected as the communication protocol, and the software module of the new protocol based on the NFC technology is initialized. The software module of the new protocol based on the NFC technology performs wake-up operations, anti-collision operations, activation operations, and first-frame data interaction operations with the RF coupling device.

[0119] Step S3042: If the data source of the first frame of data is from the NFC-A protocol, the hardware anti-collision function of the NFC-A protocol is enabled, the observer mode function of the RF card simulation device is turned off, and the hardware module of the NFC-A protocol is initialized. The hardware module of the NFC-A protocol performs wake-up operations and anti-collision operations of the NFC-A protocol; the software module of the NFC-A protocol is initialized, and the software module of the NFC-A protocol performs activation operations and first-frame data interaction operations with the RF coupling device.

[0120] Specifically, as shown in Figure 7(a), when the near field communication technology enters the field in the RF card simulation device mode and the hardware anti-collision function of the NFC-A protocol is turned off and the observer mode function of the RF card simulation device is enabled, the data communication process of the first frame of data is the same as the processing process of the above step S204 and will not be elaborated here.

[0121] Step S305: After the first frame of data communication is completed, the hardware anti-collision function of the NFC-A protocol is continuously turned off, and the observer mode function of the RF card simulation device is enabled. The observer mode function is used to determine the data source of the second frame of data and subsequent data frames received by the RF card simulation device. Based on the data source of the second frame of data and subsequent data frames, a new protocol based on the NFC technology is selected as the communication protocol for the second frame of data and subsequent data frames; or the NFC-A protocol is selected as the communication protocol for the second frame of data and subsequent data frames.

[0122] Specifically, the above step S305 includes:

[0123] Step S3051: When the data source of the second frame data and subsequent data frames is from a new protocol based on NFC technology, use the RF card simulation device to respond to the RF coupling device for the data source of the second frame data and subsequent data frames, select the new protocol based on NFC technology as the communication protocol, and initialize the software module of the new protocol based on NFC technology. The software module of the new protocol based on NFC technology performs wake-up operation, anti-collision operation, activation operation, and data interaction operation with the preset application layer with the RF coupling device.

[0124] Step S3052: When the data source of the second frame data and subsequent data frames is from the NFC-A protocol, enable the hardware anti-collision function of the NFC-A protocol, disable the observer mode function of the RF card simulation device, and initialize the hardware module of the NFC-A protocol. The hardware module of the NFC-A protocol performs the wake-up operation and anti-collision operation of the NFC-A protocol; initialize the software module of the NFC-A protocol, and the software module of the NFC-A protocol performs the activation operation and data interaction operation with the preset application layer.

[0125] Specifically, as shown in Fig. 7(b), when the near field communication technology enters the field in the RF card simulation device mode, when the hardware anti-collision function of the NFC-A protocol is disabled and the observer mode function of the RF card simulation device is enabled, the communication process of the second frame data and subsequent data frames is the same as the processing process of the first frame data in the above step S204, which will not be elaborated here.

[0126] In this embodiment, a method for extending a new protocol based on near field communication technology is provided, which can be used for near field communication devices. The near field communication device includes an RF card simulation device. Figure 8 It is a flowchart of the method for extending a new protocol based on near field communication technology according to an embodiment of the present invention. As Figure 8 shown, the process includes the following steps:

[0127] Step S801: When the near field communication technology enters the field in the RF card simulation device mode and the hardware anti-collision function of the NFC-A protocol is not disabled, enable the observer mode function of the RF card simulation device, use the observer mode function to judge the data source of the first frame data received by the RF card simulation device, and select the new protocol based on NFC technology as the communication protocol for the first frame data communication according to the data source of the first frame data; or select the NFC-A protocol as the communication protocol for the first frame data communication.

[0128] Specifically, as Figure 6As shown, when the near field communication technology enters the field in the radio frequency card emulation device mode and the hardware anti-collision function of the NFC-A protocol is not turned off, the data communication process of the first frame of data is the same as the processing process of step S204 above, which will not be elaborated here.

[0129] Step S802, after the communication of the first frame of data is completed, use the observer mode function to judge the data source of the second frame of data and subsequent data frames received by the radio frequency card emulation device, and select a new protocol based on NFC technology as the communication protocol for the communication of the second frame of data and subsequent data frames; or select the NFC-A protocol as the communication protocol for the communication of the second frame of data and subsequent data frames.

[0130] Specifically, the above step S802 includes:

[0131] Step S8021, when the data source of the second frame of data and subsequent data frames is from a new protocol based on NFC technology, use the radio frequency card emulation device to reply the data source of the second frame of data and subsequent data frames to the radio frequency coupling device, select a new protocol based on NFC technology as the communication protocol, and initialize the software module of the new protocol based on NFC technology. The software module of the new protocol based on NFC technology performs wake-up operations, anti-collision operations, activation operations with the radio frequency coupling device, and interaction operations of the second frame of data and subsequent data frames with a preset application layer.

[0132] As Figure 6 shown, after the PICC receives the second frame of data and subsequent data frames, it judges the data source of the second frame of data and subsequent data frames through the MuteMode of the PICC. When the data source of the second frame of data and subsequent data frames is from a new protocol based on NFC technology, select a new protocol based on NFC technology as the communication protocol, and initialize the software module of the new protocol based on NFC technology. The software layer processes wake-up operations, anti-collision operations, activation operations with the radio frequency coupling device, and interaction operations of the second frame of data and subsequent data frames with a preset application layer.

[0133] Step S8022, when the data source of the second frame of data and subsequent data frames is from the NFC-A protocol, use the radio frequency card emulation device to reply the data source of the second frame of data and subsequent data frames to the radio frequency coupling device, select the NFC-A protocol as the communication protocol, and initialize the software module of the NFC-A protocol. The software module of the NFC-A protocol performs anti-collision operations, activation operations with the radio frequency coupling device, and interaction operations of data with a preset application layer.

[0134] As Figure 6As shown, after the PICC receives the second frame of data and subsequent data frames, it determines the data source of the second frame of data and subsequent data frames through the MuteMode of the PICC. When the data source of the second frame of data and subsequent data frames is from the NFC-A protocol, the NFC-A protocol is selected as the communication protocol, and the software module of the NFC-A protocol is initialized. The software layer processes the anti-collision operation, activation operation with the radio frequency coupling device, and data interaction operation with the preset application layer.

[0135] The method for extending a new protocol based on near field communication technology provided in this embodiment realizes the "single technology, multi-protocol" method using pure software logic without turning off the NFC-A hardware anti-collision function. It extends the new protocol based on NFC technology on the existing NFC technology and can also achieve protocol compatibility between the NFC-A protocol and the new protocol based on NFC technology under the same radio frequency technology.

[0136] As one or more specific application embodiments of the present invention, in combination with Figure 5 、 Figure 6 、FIG. 7(a) and FIG. 7(b), the method for extending a new protocol based on near field communication technology provided by the present invention is further described in detail, specifically including:

[0137] As Figure 5 shown, after entering the field in the PICC mode of NFC technology, it is necessary to initialize the software module of the new protocol based on NFC technology and the software module of the NFC-A protocol, then turn off the HardANTI of the existing NFC-A protocol (the hardware anti-collision function of the PICC (radio frequency chip) of NFC-A technology), and turn on the MuteMode of the PICC (enable control to turn on and off). When the PICC judges the first frame of data received, if the data comes from the new protocol based on NFC technology, it makes a response reply to the PCD for the data source. At this time, the NFC technology can select the new protocol based on NFC technology as the communication protocol. Next, the anti-collision, activation, APDU data (Application Protocol Data Unit, which is the standard protocol data unit for communication between a smart card and a card reader and belongs to the data transmission format of the application layer) interaction operation with the PCD, etc. can all follow the new protocol based on NFC technology.

[0138] If the data comes from the existing NFC-A protocol, the HardANTI of NFC-A is turned on, and the wake-up and anti-collision processes of NFC-A are processed by the hardware, that is, the PCD is replied at the hardware level without software intervention, which can ensure that the communication quality of the existing NFC-A protocol is not affected; then the initialization of the NFC-A software module is carried out, and subsequent activation, APDU interaction, etc. are handed over to the software module for processing.

[0139] As shown in Fig. 7(a), when the near-field communication technology enters the field in the RF card simulation device mode and the hardware anti-collision function of the NFC-A protocol is turned off, the observer mode function of the RF card simulation device is enabled, and the observer mode function is used to determine the data source of the first frame of data received by the RF card simulation device; based on the data source of the first frame of data, a new protocol based on NFC technology is selected as the communication protocol for data communication, or the NFC-A protocol is selected as the communication protocol for the first frame of data communication.

[0140] Specifically, if the data source of the first frame of data is from a new protocol based on NFC technology, the RF card simulation device is used to reply the data source of the first frame of data to the RF coupling device, a new protocol based on NFC technology is selected as the communication protocol, and the software module of the new protocol based on NFC technology is initialized. The software module of the new protocol based on NFC technology performs wake-up operation, anti-collision operation, activation operation with the RF coupling device, and first-frame data interaction operation with the RF coupling device.

[0141] If the data source of the first frame of data is from the NFC-A protocol, the hardware anti-collision function of the NFC-A protocol is enabled, the observer mode function of the RF card simulation device is turned off, and the hardware module of the NFC-A protocol is initialized. The hardware module of the NFC-A protocol performs the wake-up operation and anti-collision operation of the NFC-A protocol; the software module of the NFC-A protocol is initialized, and the software module of the NFC-A protocol performs the activation operation and first-frame data interaction operation with the RF coupling device.

[0142] As shown in Fig. 7(b), after the first frame of data communication is completed, the hardware anti-collision function of the NFC-A protocol is still turned off, the observer mode function of the RF card simulation device is enabled, and the observer mode function is used to determine the data source of the second frame of data and subsequent data frames received by the RF card simulation device. Based on the data source of the second frame of data and subsequent data frames, a new protocol based on NFC technology is selected as the communication protocol for the second frame of data and subsequent data frames; or the NFC-A protocol is selected as the communication protocol for the second frame of data and subsequent data frames.

[0143] Specifically, if the data source of the second frame of data and subsequent data frames is from a new protocol based on NFC technology, the RF card simulation device is used to reply the data source of the second frame of data and subsequent data frames to the RF coupling device, a new protocol based on NFC technology is selected as the communication protocol, and the software module of the new protocol based on NFC technology is initialized. The software module of the new protocol based on NFC technology performs wake-up operation, anti-collision operation, activation operation with the RF coupling device, and data interaction operation with the preset application layer.

[0144] When the data source of the second frame data and subsequent data frames is from the NFC-A protocol, enable the hardware anti-collision function of the NFC-A protocol, disable the observer mode function of the RF card simulation device, and initialize the hardware module of the NFC-A protocol. The hardware module of the NFC-A protocol performs the wake-up operation and anti-collision operation of the NFC-A protocol; initialize the software module of the NFC-A protocol, and the software module of the NFC-A protocol performs the activation operation and data interaction operation with the preset application layer.

[0145] As Figure 6 shown, without disabling the existing HardANTI of the NFC-A protocol, implement the "single technology, multiple protocols" method through pure software logic, and at the same time, the MuteMode of the PICC needs to be introduced. The processing flow of the PICC after receiving the first frame of data is the same as Figure 4 the first frame of data flow in. The difference is that after the PICC receives the second frame of data and subsequent data frames, if the second frame of data and subsequent data frames come from a new protocol based on NFC technology, a response reply for the data source of the second frame of data and subsequent data frames is made to the PCD. At this time, the NFC technology can choose the new protocol based on NFC technology as the communication protocol, and then the anti-collision, activation, APDU data interaction, etc. with the PCD can all follow the new protocol based on NFC technology; if the second frame of data and subsequent data frames come from the existing NFC-A protocol, a response reply for the data source of the second frame of data and subsequent data frames is made to the PCD. At this time, the NFC technology can choose the NFC-A protocol as the communication protocol, and then operations such as anti-collision, activation, and APDU data interaction with the PCD can all follow the NFC-A protocol.

[0146] The method for extending a new protocol based on near field communication technology provided in this embodiment aims to solve the problem of not supporting the "single technology, multiple protocols" method. This embodiment extends the new protocol based on NFC technology on the existing NFC technology, and finally supports the NFC-A protocol and the new protocol based on NFC technology on the same NFC technology. Currently, there is only a technology of single NFC technology supporting a single NFC protocol on the market, and the technology of single NFC technology supporting multiple protocols (including both existing NFC protocols and self-developed new protocols based on NFC technology) is blank. This embodiment can fill this gap. This embodiment realizes the application in the market RF (Radio Frequency) field, such as mobile payment, transportation cards, identity authentication, etc., to extend the new protocol based on NFC technology, and is compatible with products developed based on existing RF protocols such as NFC-A, NFC-B, NFC-F, etc., reducing the resistance of the team developing the new protocol based on NFC technology.

[0147] In this embodiment, a device for extending a new protocol based on near field communication technology is also provided. This device is used to implement the above-mentioned embodiments and preferred implementation manners, and those that have been described will not be repeated. As used hereinafter, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware is also possible and contemplated.

[0148] This embodiment provides a device for extending a new protocol based on near field communication technology, which is applied to a near field communication device. The near field communication device includes a radio frequency card emulation device, such as Figure 9 shown, including:

[0149] An enabling operation module 901 after approaching, which is used to turn off the hardware anti-collision function of the NFC-A protocol and turn on the observer mode function of the radio frequency card emulation device after the near field communication technology approaches in the radio frequency card emulation device mode.

[0150] A data source judgment module 902, which is used to judge the data source of the first frame of data received by the radio frequency card emulation device by using the observer mode function.

[0151] A first new protocol extension module 903, which is used to select a new protocol based on NFC technology as the communication protocol for data communication according to the data source of the first frame of data; or select the NFC-A protocol as the communication protocol for data communication.

[0152] In some optional implementation manners, the device for extending a new protocol based on near field communication technology further includes:

[0153] A software initialization module, which initializes the software module of the new protocol based on NFC technology and the software module of the NFC-A protocol after the near field communication technology approaches in the radio frequency card emulation device mode; the initialization includes parameter configuration, resource allocation, status initialization, and hardware association configuration for the software module.

[0154] In some optional implementation manners, the near field communication device further includes a radio frequency coupling device. The first new protocol extension module 903 includes:

[0155] A data communication unit of the first new protocol based on NFC technology, which is used to, if the data source of the first frame of data is from the new protocol based on NFC technology, use the radio frequency card emulation device to reply the data source of the first frame of data in response to the radio frequency coupling, and select the new protocol based on NFC technology as the communication protocol for the first frame of data communication.

[0156] The data communication unit of the first NFC-A protocol is used to select the NFC-A protocol as the communication protocol for the first frame of data communication when the data source of the first frame of data is from the NFC-A protocol.

[0157] In some alternative embodiments, the data communication unit of the first new protocol based on NFC technology includes:

[0158] The operation subunit of the new protocol based on NFC technology is used to select the new protocol based on NFC technology as the communication protocol and initialize the software module of the new protocol based on NFC technology. Since the software module of the new protocol based on NFC technology performs wake-up operations, anti-collision operations, activation operations with the radio frequency coupling device, and first-frame data interaction operations with the radio frequency coupling device.

[0159] In some alternative embodiments, the data communication unit of the first NFC-A protocol includes:

[0160] The first operation subunit of the NFC-A protocol is used to enable the hardware anti-collision function of the NFC-A protocol, disable the observer mode function of the radio frequency card simulation device, and initialize the hardware module of the NFC-A protocol. The hardware module of the NFC-A protocol performs wake-up operations and anti-collision operations of the NFC-A protocol.

[0161] The second operation subunit of the NFC-A protocol is used to initialize the software module of the NFC-A protocol. The software module of the NFC-A protocol performs activation operations and first-frame data interaction operations with the radio frequency coupling device.

[0162] In some alternative embodiments, the device for extending the new protocol based on near-field communication technology further includes:

[0163] The fourth new protocol extension module is used to, when the near-field communication technology enters the field in the radio frequency card simulation device mode and the hardware anti-collision function of the NFC-A protocol is disabled, enable the observer mode function of the radio frequency card simulation device, and use the observer mode function to determine the data source of the first frame of data received by the radio frequency card simulation device; select the new protocol based on NFC technology as the communication protocol for data communication according to the data source of the first frame of data, or select the NFC-A protocol as the communication protocol for the first frame of data communication.

[0164] The fifth new protocol extension module is used to, after the first frame of data communication is completed, continue to turn off the hardware anti-collision function of the NFC-A protocol, enable the observer mode function of the RF card simulation device, use the observer mode function to determine the data source of the second frame of data and subsequent data frames received by the RF card simulation device, and select a new protocol based on NFC technology as the communication protocol to communicate the second frame of data and subsequent data frames according to the data source of the second frame of data and subsequent data frames; or select the NFC-A protocol as the communication protocol to communicate the second frame of data and subsequent data frames.

[0165] In some alternative embodiments, the fourth new protocol extension module includes:

[0166] The third new protocol data communication unit based on NFC technology is used to, if the data source of the first frame of data is from a new protocol based on NFC technology, use the RF card simulation device to reply the data source of the first frame of data to the RF coupling device, select a new protocol based on NFC technology as the communication protocol, and initialize the software module of the new protocol based on NFC technology. The software module of the new protocol based on NFC technology performs wake-up operations, anti-collision operations, activation operations, and first-frame data interaction operations with the RF coupling device.

[0167] The third NFC-A protocol data communication unit is used to, if the data source of the first frame of data is from the NFC-A protocol, turn on the hardware anti-collision function of the NFC-A protocol, turn off the observer mode function of the RF card simulation device, and initialize the hardware module of the NFC-A protocol. The hardware module of the NFC-A protocol performs wake-up operations and anti-collision operations of the NFC-A protocol; initialize the software module of the NFC-A protocol, and the software module of the NFC-A protocol performs activation operations and first-frame data interaction operations with the RF coupling device.

[0168] In some alternative embodiments, the fifth new protocol extension module includes:

[0169] The fourth new protocol data communication unit based on NFC technology is used to, if the data source of the second frame of data and subsequent data frames is from a new protocol based on NFC technology, use the RF card simulation device to reply the data source of the second frame of data and subsequent data frames to the RF coupling device, select a new protocol based on NFC technology as the communication protocol, and initialize the software module of the new protocol based on NFC technology. The software module of the new protocol based on NFC technology performs wake-up operations, anti-collision operations, activation operations, and data interaction operations with a preset application layer.

[0170] The data communication unit of the fourth NFC-A protocol is used to, when the data source of the second frame data and subsequent frame data is from the NFC-A protocol, enable the hardware anti-collision function of the NFC-A protocol, disable the observer mode function of the RF card simulation device, and initialize the hardware module of the NFC-A protocol. The hardware module of the NFC-A protocol performs the wake-up operation and anti-collision operation of the NFC-A protocol; initialize the software module of the NFC-A protocol, and the software module of the NFC-A protocol performs the activation operation and data interaction operation with the preset application layer.

[0171] This embodiment also provides a device for extending a new protocol based on near field communication technology, which is applied to a near field communication device. The near field communication device includes an RF card simulation device, such as Figure 10 shown, and includes:

[0172] The second new protocol extension module 1001 is used to, when the near field communication technology enters the field in the RF card simulation device mode and does not disable the hardware anti-collision function of the NFC-A protocol, enable the observer mode function of the RF card simulation device, use the observer mode function to judge the data source of the first frame data received by the RF card simulation device, and select a new protocol based on NFC technology as the communication protocol for the first frame data communication according to the data source of the first frame data; or select the NFC-A protocol as the communication protocol for the first frame data communication.

[0173] The third new protocol extension module 1002 is used to, after the first frame data communication is completed, use the observer mode function to judge the data source of the second frame data and subsequent frame data received by the RF card simulation device, and select a new protocol based on NFC technology as the communication protocol for the second frame data and subsequent frame data communication according to the data source of the second frame data and subsequent frame data; or select the NFC-A protocol as the communication protocol for the second frame data and subsequent frame data communication.

[0174] In some alternative embodiments, the third new protocol extension module 1002 includes:

[0175] The data communication unit of the second new protocol based on NFC technology is used to, when the data source of the second frame data and subsequent frame data is from the new protocol based on NFC technology, use the RF card simulation device to reply the data source of the second frame data and subsequent frame data to the RF coupling device, select the new protocol based on NFC technology as the communication protocol, and initialize the software module of the new protocol based on NFC technology. The software module of the new protocol based on NFC technology performs the wake-up operation, anti-collision operation, activation operation and data interaction operation with the application layer with the RF coupling device.

[0176] The data communication unit of the second NFC-A protocol is used to, when the data sources of the second frame data and subsequent data frames are from the NFC-A protocol, use a radio frequency card simulation device to reply the data sources of the second frame data and subsequent data frames to the radio frequency coupling device, select the NFC-A protocol as the communication protocol, and initialize the software module of the NFC-A protocol. The software module of the NFC-A protocol performs wake-up operations, anti-collision operations, activation operations, and data interaction operations with a preset application layer with the radio frequency coupling device.

[0177] The further functional descriptions of the above-mentioned various modules and units are the same as those in the corresponding embodiments above, and will not be elaborated here.

[0178] The device for expanding a new protocol based on near-field communication technology in this embodiment is presented in the form of functional units. Here, the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and a memory that execute one or more software or fixed programs, and / or other devices that can provide the above functions.

[0179] An embodiment of the present invention also provides a computer device having the above-mentioned Figure 9 and Figure 10 shown device for expanding a new protocol based on near-field communication technology.

[0180] Please refer to Figure 11 , Figure 11 which is a schematic structural diagram of a computer device provided by an optional embodiment of the present invention. As shown in Figure 11 , the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including a high-speed interface and a low-speed interface. Each component communicates with each other using different buses and can be installed on a common main board or installed in other ways as needed. The processor can process instructions executed within the computer device, including instructions stored in the memory or on the memory to display graphical information of the GUI on an external input / output device (such as a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (such as a server array, a set of blade servers, or a multi-processor system). Figure 11 In

[0181] The processor 10 may be a central processing unit, a network processor, or a combination thereof. Among them, the processor 10 may further include a hardware chip. The above-mentioned hardware chip may be an application-specific integrated circuit, a programmable logic device, or a combination thereof. The above-mentioned programmable logic device may be a complex programmable logic device, a field programmable gate array, a generic array logic, or any combination thereof.

[0182] Among them, the memory 20 stores instructions executable by at least one processor 10, so that the at least one processor 10 executes the method shown in the above embodiments.

[0183] The memory 20 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system and application programs required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transitory memory, such as at least one magnetic disk storage device, a flash memory device, or other non-transitory solid-state storage devices. In some alternative embodiments, the memory 20 may optionally include a memory remotely arranged with respect to the processor 10, and these remote memories may be connected to the computer device through a network. Examples of the above-mentioned network include but are not limited to the Internet, an enterprise intranet, a local area network, a mobile communication network, and combinations thereof.

[0184] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk, or a solid-state drive; the memory 20 may also include a combination of the above types of memories.

[0185] The computer device further includes an input device 30 and an output device 40. The processor 10, the memory 20, the input device 30, and the output device 40 may be connected through a bus or other means. Figure 11 Taking the connection through the bus as an example.

[0186] The input device 30 can receive input digital or character information, and generate key signal inputs related to the user settings and function controls of the computer device, such as a touch screen, a keypad, a mouse, a trackpad, a touchpad, a pointing stick, one or more mouse buttons, a trackball, a joystick, etc. The output device 40 may include a display device, an auxiliary lighting device (such as an LED), and a tactile feedback device (such as a vibration motor), etc. The above-mentioned display device includes but is not limited to a liquid crystal display, a light-emitting diode, a display, and a plasma display. In some alternative embodiments, the display device may be a touch screen.

[0187] Embodiments of the present invention also provide a computer-readable storage medium. The method according to the embodiments of the present invention can be implemented in hardware, firmware, or be implemented as computer code that can be recorded on a storage medium, or be implemented as computer code that is originally stored in a remote storage medium or a non-transitory machine-readable storage medium and downloaded through a network and will be stored in a local storage medium, so that the method described herein can be stored as such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only memory, a random access memory, a flash memory, a hard disk, or a solid-state drive, etc.; further, the storage medium can also include a combination of the above-mentioned types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by the computer, the processor, or the hardware, the method shown in the above embodiments is implemented.

[0188] A part of the present invention can be applied as a computer program product, such as computer program instructions. When executed by a computer, through the operation of the computer, the method and / or technical solution according to the present invention can be called or provided. Those skilled in the art should understand that the forms in which computer program instructions exist in a computer-readable medium include, but are not limited to, source files, executable files, installation package files, etc. Correspondingly, the ways in which computer program instructions are executed by a computer include, but are not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Herein, the computer-readable medium can be any available computer-readable storage medium or communication medium accessible by the computer.

[0189] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations all fall within the scope defined by the appended claims.

Claims

1. A method for extending a new protocol based on near field communication technology, characterized in that, Applied to a near-field communication device, the near-field communication device includes a radio frequency card simulation device, and the method includes: After the near-field communication technology enters the field in the radio frequency card simulation device mode, turn off the hardware anti-collision function of the NFC-A protocol and turn on the observer mode function of the radio frequency card simulation device; Use the observer mode function to determine the data source of the first frame of data received by the radio frequency card simulation device; Select a new protocol based on NFC technology as the communication protocol for data communication according to the data source of the first frame of data; or select the NFC-A protocol as the communication protocol for data communication.

2. The method according to claim 1, wherein The method further includes: After the near-field communication technology enters the field in the radio frequency card simulation device mode, initialize the software module of the new protocol based on NFC technology and the software module of the NFC-A protocol; the initialization includes parameter configuration, resource allocation, status initialization, and hardware association configuration for the software module.

3. The method according to claim 1, characterized in that, Selecting a new protocol based on NFC technology as the communication protocol for data communication according to the data source of the first frame of data, or selecting the NFC-A protocol as the communication protocol for the first frame of data communication, includes: If the data source of the first frame of data is from a new protocol based on NFC technology, use the radio frequency card simulation device to reply and respond to the radio frequency coupling for the data source of the first frame of data, and select a new protocol based on NFC technology as the communication protocol for the first frame of data communication; If the data source of the first frame of data is from the NFC-A protocol, select the NFC-A protocol as the communication protocol for the first frame of data communication.

4. The method according to claim 3, wherein The selecting a new protocol based on NFC technology as the communication protocol for the first frame of data communication includes: Select a new protocol based on NFC technology as the communication protocol, and initialize the software module of the new protocol based on NFC technology. The software module of the new protocol based on NFC technology performs wake-up operation, anti-collision operation, activation operation, and first-frame data interaction operation with the radio frequency coupling device.

5. The method according to claim 3, characterized in that, The selecting the NFC-A protocol as the communication protocol for the first frame of data communication includes: Turn on the hardware anti-collision function of the NFC-A protocol, turn off the observer mode function of the radio frequency card simulation device, and initialize the hardware module of the NFC-A protocol. The hardware module of the NFC-A protocol performs the wake-up operation and anti-collision operation of the NFC-A protocol; Initialize the software module of the NFC-A protocol, and the software module of the NFC-A protocol performs the activation operation and the first-frame data interaction operation with the radio frequency coupling device.

6. The method according to claim 1, characterized in that, The method further includes: After the near-field communication technology enters the field in the radio frequency card simulation device mode, when turning off the hardware anti-collision function of the NFC-A protocol, turn on the observer mode function of the radio frequency card simulation device, use the observer mode function to determine the data source of the first frame of data received by the radio frequency card simulation device; select a new protocol based on NFC technology as the communication protocol for data communication according to the data source of the first frame of data, or select the NFC-A protocol as the communication protocol for the first frame of data communication; After the first frame of data communication is completed, continue to turn off the hardware anti-collision function of the NFC-A protocol, enable the observer mode function of the RF card simulation device, use the observer mode function to determine the data source of the second frame of data and subsequent data frames received by the RF card simulation device, and select a new protocol based on NFC technology as the communication protocol for the communication of the second frame of data and subsequent data frames; or select the NFC-A protocol as the communication protocol for the communication of the second frame of data and subsequent data frames.

7. The method according to claim 6, characterized in that The selection of a new protocol based on NFC technology as the communication protocol for data communication according to the data source of the first frame of data, or the selection of the NFC-A protocol as the communication protocol for the first frame of data communication, includes: If the data source of the first frame of data is from a new protocol based on NFC technology, use the RF card simulation device to reply the data source of the first frame of data to the RF coupling device, select a new protocol based on NFC technology as the communication protocol, and initialize the software module of the new protocol based on NFC technology. The software module of the new protocol based on NFC technology performs wake-up operation, anti-collision operation, activation operation and first frame data interaction operation with the RF coupling device; If the data source of the first frame of data is from the NFC-A protocol, turn on the hardware anti-collision function of the NFC-A protocol, turn off the observer mode function of the RF card simulation device, and initialize the hardware module of the NFC-A protocol. The hardware module of the NFC-A protocol performs wake-up operation and anti-collision operation of the NFC-A protocol; initialize the software module of the NFC-A protocol, and the software module of the NFC-A protocol performs activation operation and first frame data interaction operation with the RF coupling device.

8. The method according to claim 6, wherein The selection of a new protocol based on NFC technology as the communication protocol for the communication of the second frame of data and subsequent data frames according to the data source of the second frame of data and subsequent data frames; Or select the NFC-A protocol as the communication protocol for the communication of the second frame of data and subsequent data frames, including: If the data source of the second frame of data and subsequent data frames is from a new protocol based on NFC technology, use the RF card simulation device to reply the data source of the second frame of data and subsequent data frames to the RF coupling device, select a new protocol based on NFC technology as the communication protocol, and initialize the software module of the new protocol based on NFC technology. The software module of the new protocol based on NFC technology performs wake-up operation, anti-collision operation, activation operation and data interaction operation with the preset application layer; When the data source of the second frame data and subsequent data frames is from the NFC-A protocol, the hardware anti-collision function of the NFC-A protocol is enabled, the observer mode function of the RF card simulation device is disabled, and the hardware module of the NFC-A protocol is initialized. The hardware module of the NFC-A protocol performs the wake-up operation and anti-collision operation of the NFC-A protocol; the software module of the NFC-A protocol is initialized, and the software module of the NFC-A protocol performs the activation operation and data interaction operation with the preset application layer.

9. A method for extending a new protocol based on near field communication technology, applied to a near field communication device, the near field communication device including a radio frequency card simulation device, characterized in that, The method includes: When the near field communication technology enters the field in the RF card simulation device mode and does not disable the hardware anti-collision function of the NFC-A protocol, the observer mode function of the RF card simulation device is enabled. The observer mode function is used to determine the data source of the first frame data received by the RF card simulation device, and based on the data source of the first frame data, a new protocol based on NFC technology is selected as the communication protocol for the first frame data communication; or the NFC-A protocol is selected as the communication protocol for the first frame data communication. After the first frame data communication is completed, the observer mode function is used to determine the data source of the second frame data and subsequent data frames received by the RF card simulation device, and based on the data source of the second frame data and subsequent data frames, a new protocol based on NFC technology is selected as the communication protocol for the second frame data and subsequent data frames; or the NFC-A protocol is selected as the communication protocol for the second frame data and subsequent data frames.

10. The method according to claim 9, characterized in that, Selecting a new protocol based on NFC technology as the communication protocol for the second frame data and subsequent data frames according to the data source of the second frame data and subsequent data frames; Or selecting the NFC-A protocol as the communication protocol for the second frame data and subsequent data frames, including: When the data source of the second frame data and subsequent data frames is from a new protocol based on NFC technology, the RF card simulation device is used to respond to the RF coupling device with the data source of the second frame data and subsequent data frames, a new protocol based on NFC technology is selected as the communication protocol, and the software module of the new protocol based on NFC technology is initialized. The software module of the new protocol based on NFC technology performs the wake-up operation, anti-collision operation, activation operation with the RF coupling device, and data interaction operation with the preset application layer. When the data source of the second frame data and subsequent data frames is from the NFC-A protocol, the RF card simulation device is used to respond to the RF coupling device with the data source of the second frame data and subsequent data frames, and the NFC-A protocol is selected as the communication protocol to perform the wake-up operation, anti-collision operation, activation operation with the RF coupling device, and data interaction operation with the preset application layer.

11. An apparatus for extending a new protocol based on near-field communication technology, characterized in that, Applied to a near field communication device, the near field communication device includes an RF card simulation device, and the device includes: An enabling operation module after entering the field, which is used to disable the hardware anti-collision function of the NFC-A protocol and enable the observer mode function of the RF card simulation device when the near field communication technology enters the field in the RF card simulation device mode. A data source judgment module, configured to use the observer mode function to judge the data source of the first frame of data received by the RF card simulation device; A first new protocol extension module, configured to select a new protocol based on NFC technology as the communication protocol for data communication according to the data source of the first frame of data; or select the NFC-A protocol as the communication protocol for data communication.

12. A device for extending a new protocol based on near field communication technology, characterized in that, Applied to a near field communication device, the near field communication device includes an RF card simulation device, and the device includes: A second new protocol extension module, configured to, when the near field communication technology enters the field in the RF card simulation device mode and does not turn off the hardware anti-collision function of the NFC-A protocol, enable the observer mode function of the RF card simulation device, use the observer mode function to judge the data source of the first frame of data received by the RF card simulation device, and select a new protocol based on NFC technology as the communication protocol for the first frame of data communication according to the data source of the first frame of data; or select the NFC-A protocol as the communication protocol for the first frame of data communication. A third new protocol extension module, configured to, after the first frame of data communication is completed, use the observer mode function to judge the data source of the second frame of data and subsequent data frames received by the RF card simulation device, and select a new protocol based on NFC technology as the communication protocol for the second frame of data and subsequent data frames according to the data source of the second frame of data and subsequent data frames; or select the NFC-A protocol as the communication protocol for the second frame of data and subsequent data frames.

13. A computer device, characterized in that, Including: A memory and a processor, the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the computer instructions to execute the method for extending a new protocol based on near field communication technology according to any one of claims 1 to 10.

14. A computer-readable storage medium, characterized in that, Computer instructions are stored on the computer-readable storage medium, and the computer instructions are used to cause a computer to execute the method for extending a new protocol based on near field communication technology according to any one of claims 1 to 10.