NFC communication processing method, device, storage medium and electronic device

By detecting and updating NFC tag information, it solves the problem that existing NFC devices cannot adapt to different communication object matching mechanisms, achieves effective data exchange and operation in a variety of scenarios, and improves the adaptability and versatility of the device.

CN113645597BActive Publication Date: 2024-09-06GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110903592.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-06
Publication Date
2024-09-06
Estimated Expiration
2041-08-06

AI Technical Summary

Technical Problem

Existing products with NFC functions cannot adapt to the matching mechanisms of different communication objects at the same time, resulting in the inability to effectively exchange and operate data in different application scenarios.

Method used

By detecting the NFC signal of the communication object, establishing an NFC connection, obtaining and updating NFC tag information, determining the corresponding interaction instructions, and sending the instructions to the communication object until matching, it can adapt to different communication object matching mechanisms.

Benefits of technology

It achieves high adaptability of NFC communication processing method and access control unlocking method, can perform matching operations in different communication objects and access control systems, and improves the versatility and usage flexibility of the device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113645597B
    Figure CN113645597B
Patent Text Reader

Abstract

The embodiment of the present application provides an NFC communication processing method, device, storage medium and electronic device, the NFC communication processing method comprising: when detecting the NFC signal of the communication object, establishing an NFC connection with the communication object; in response to a request sent by the communication object, obtaining NFC tag information, the request is used to obtain an interaction instruction; determining a first interaction instruction corresponding to the NFC tag information, and sending the first interaction instruction to the communication object; updating the NFC tag information. The NFC communication processing method provided in this embodiment can adapt to the matching mechanisms of different communication objects.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to an NFC communication processing method, a door unlocking method, an NFC communication processing device, a storage medium and an electronic device. Background Art

[0002] Near Field Communication (NFC) is an emerging technology that enables devices (such as mobile phones) to exchange data when they are close to each other. It is an integration of contactless radio frequency identification (RFID) and interconnection technology.

[0003] At present, many mobile phones and wearable products have NFC functions, and the main applications of these NFC-enabled products in the market include simulated transportation cards, simulated access control cards, simulated bank cards, etc. For these NFC-enabled products, their communication objects may have different matching mechanisms, but existing NFC-enabled products cannot adapt to the matching mechanisms of different communication objects at the same time. Summary of the invention

[0004] The embodiment of the present application provides an NFC communication processing method, which can adapt to the matching mechanisms of different communication objects.

[0005] The embodiments of the present application provide the following technical solutions:

[0006] The present application provides an NFC communication processing method, including:

[0007] When an NFC signal of a communication object is detected, an NFC connection is established with the communication object;

[0008] Responding to a request sent by the communication object, obtaining NFC tag information, wherein the request is used to obtain an interaction instruction;

[0009] Determine a first interaction instruction corresponding to the NFC tag information, and send the first interaction instruction to the communication object;

[0010] The NFC tag information is updated.

[0011] The present application also provides a door unlocking method, including:

[0012] When an NFC signal of the access control system is detected, an NFC connection is established with the access control system;

[0013] Responding to an unlock request sent by the access control system, obtaining NFC tag information;

[0014] Determine an unlock instruction corresponding to the NFC tag information, and send the unlock instruction to the access control system;

[0015] The NFC tag information is updated.

[0016] The embodiment of the present application also provides an NFC communication processing device, including:

[0017] A connection module, configured to detect an NFC signal of a communication object and establish an NFC connection with the communication object;

[0018] An acquisition module, used to respond to a request sent by the communication object and acquire NFC tag information, wherein the request is used to acquire an interaction instruction;

[0019] A determination module, configured to determine a first interaction instruction corresponding to the NFC tag information, and send the first interaction instruction to the communication object;

[0020] A processing module is used to update the NFC tag information.

[0021] An embodiment of the present application further provides a storage medium, in which a computer program is stored. In response to the computer program running on a computer, the computer executes the above-mentioned NFC communication processing method or the above-mentioned access control unlocking method.

[0022] An embodiment of the present application also provides an electronic device, which includes a storage circuit and a processing circuit, wherein the storage circuit stores a computer program, and the processing circuit executes the above-mentioned NFC communication processing method or the above-mentioned access control unlocking method by calling the computer program stored in the storage circuit.

[0023] In the NFC communication processing method provided in the embodiment of the present application, after the electronic device establishes a connection with the communication object, it accepts a request sent by the communication object, and the request is used to obtain an interaction instruction. The electronic device obtains an NFC tag information, which corresponds to a first interaction instruction, and sends the first interaction instruction to the communication object. Among them, the communication object determines whether the first interaction instruction matches the request. If it matches, the communication object performs a first operation, such as unlocking, punching in, etc.; if it does not match, the communication object performs a second operation, such as not unlocking, not punching in, etc. Subsequently, the electronic device updates the NFC tag information and can re-execute the above operations until the interaction instruction corresponding to the updated NFC tag information matches the request of the communication object. Therefore, the electronic device using the NFC communication processing method can adapt to the matching mechanisms of different communication objects and has high adaptability. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application, and those skilled in the art can obtain other drawings based on these drawings without creative work.

[0025] Figure 1 A flowchart of an NFC communication processing method provided in an embodiment of the present application.

[0026] Figure 2 Another flowchart of the NFC communication processing method provided in the embodiment of the present application.

[0027] Figure 3 A further flowchart of the NFC communication processing method provided in an embodiment of the present application is provided.

[0028] Figure 4 A schematic diagram of the process flow of the first access control system provided in an embodiment of the present application.

[0029] Figure 5 A schematic diagram of the flow of the second access control system provided in an embodiment of the present application.

[0030] Figure 6 A flowchart of a door unlocking method provided in an embodiment of the present application.

[0031] Figure 7 A schematic diagram of the execution flow of the NFC communication processing method provided in an embodiment of the present application.

[0032] Figure 8 A schematic diagram of another execution flow of the NFC communication processing method provided in an embodiment of the present application.

[0033] Fig. 9 A schematic diagram of the structure of an NFC communication processing device provided in an embodiment of the present application.

[0034] Fig.10 A schematic diagram of the structure of the access control unlocking device provided in an embodiment of the present application.

[0035] Fig.11 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.

[0036] Fig.12 A schematic diagram of another structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0037] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.

[0038] The embodiment of the present application provides an NFC communication processing method, and the execution subject of the NFC communication processing method can be the device provided in the embodiment of the present application, or an electronic device integrating the device, wherein the device can be implemented in hardware or software. The electronic device can be a smart watch, smart glasses, smart phone, tablet computer, etc.

[0039] For example, when in a scenario where an electronic device is used, the electronic device can detect the NFC signal of the communication object and establish an NFC connection with the communication object; when the electronic device responds to a request sent by the communication object, it obtains NFC tag information, and the request is used to obtain an interaction instruction; determines the first interaction instruction corresponding to the NFC tag information, and sends the first interaction instruction to the communication object; updates the NFC tag information. Electronic devices using this NFC communication processing method can adapt to the matching mechanisms of different communication objects and have high adaptability. A specific analysis is given below.

[0040] The present application embodiment provides a NFC communication processing method, such as Figure 1 As shown, Figure 1 A flowchart of an NFC communication processing method provided in an embodiment of the present application. The NFC communication processing method includes:

[0041] 110. When an NFC signal of a communication object is detected, an NFC connection is established with the communication object.

[0042] A communication object refers to an object that can send or receive Near Field Communication (NFC) signals, such as access control systems, bus ticket machines, book lending machines, etc. The communication object can exchange data with an electronic device that also has NFC when a connection is established. For example, a smartphone and an access control system both have NFC functions. When the smartphone and the access control system are close to each other, a connection is established, and data can be exchanged later, such as unlocking the door.

[0043] When an NFC-enabled electronic device is in the radio frequency field of the communication object, the electronic device responds passively and the communication object reads or writes information. The principle is that the corresponding information credentials are encapsulated into data packets and stored in the NFC-enabled electronic device. For example, an NFC-enabled electronic device can be used as a tag card such as an access card, bus card, and debit card by the communication object. For example, when the electronic device is used as an access card and the communication object is an access control, when the access card is moved into the radio frequency field of the access control, the access control establishes a connection with the access card.

[0044] 120. In response to a request sent by the communication object, obtain NFC tag information, where the request is used to obtain an interaction instruction.

[0045] Among them, the request sent by the communication object is to request an interactive instruction from the electronic device. The communication object determines the next step by acquiring and analyzing the interactive instruction. For example, the request sent by the first communication object is to request an interactive instruction. If the electronic device sends the first interactive instruction to the first communication object, the first communication object performs the first operation; if the electronic device sends the second interactive instruction to the first communication object, the first communication object performs the second operation. For another example, the request sent by the second communication object is also to request an interactive instruction. If the electronic device sends the first interactive instruction to the second communication object, the first communication object performs the second operation; if the electronic device sends the second interactive instruction to the second communication object, the second communication object performs the first operation. It can be seen from the above that after the electronic device sends the same interactive instruction to different communication objects, the operations performed by the communication objects are different. For example, the first communication object is the first access control, and the second communication object is the second access control. The first access control is provided with a first access control system, and the second access control is provided with a second access control system. The request sent by the first access control system to the electronic device is a request for an interactive instruction. If the electronic device sends the first interactive instruction to the first access control system, the first access control system enters the unlocking process; if the electronic device sends the second interactive instruction to the first access control system, the first access control system does not enter the unlocking process. The request sent by the second access control system to the electronic device is a request for an interactive instruction. If the electronic device sends the first interactive instruction to the second access control system, the second access control system does not enter the unlocking process; if the electronic device sends the second interactive instruction to the second access control system, the second access control system enters the unlocking process. For another example, the first communication object is the first clock-in machine, and the second communication object is the second clock-in machine. The request sent by the first clock-in machine to the electronic device is a request for an interactive instruction. If the electronic device sends the first interactive instruction to the first clock-in machine, the first clock-in machine enters the clock-in process; if the electronic device sends the second interactive instruction to the first clock-in machine, the second clock-in machine does not enter the clock-in process. The request sent by the second clock in machine to the electronic device is a request for an interaction instruction. If the electronic device sends the first interaction instruction to the second clock in machine, the first clock in machine does not enter the clock in process; if the electronic device sends the second interaction instruction to the first clock in machine, the second clock in machine enters the clock in process.

[0046] It is worth noting that the request sent by the communication object points to an interaction instruction, which is not a specific interaction instruction. As in the above example, the interaction instruction received by the communication object can be the first interaction instruction or the second interaction instruction. Before the communication object responds to the request sent by the electronic device, the communication object does not determine the specific content of the interaction request.

[0047] The NFC tag information may be a tag bit in a register or a tag information of a counter. It is understandable that the tag bit in the register may be set to 1 or 0; the tag information in the counter may be set to integers such as 0, 1, 2, 3, 4, etc.

[0048] It is worth noting that the technical solution of the present application is not limited to the marking information being 1, 0 or the marking information being integers such as 0, 1, 2, 3, 4, etc. As long as the marking information can play an identification role, it is within the protection scope of the present application.

[0049] 130. Determine a first interaction instruction corresponding to the NFC tag information, and send the first interaction instruction to the communication object.

[0050] Among them, the first interaction instruction refers to the interaction instruction corresponding to the NFC tag information. It can be understood that different tag information corresponds to different interaction instructions. For example, a register is set in the electronic device, and the two tag bits generated by the register are: 0 and 1. Tag bit 0 can correspond to the first interaction instruction, and tag bit 1 can correspond to the second interaction instruction. Exemplarily, the electronic device obtains NFC tag information, and the NFC tag information is 0. The electronic device determines the first interaction instruction corresponding to the NFC tag information, and the electronic device sends the first interaction instruction to the communication object.

[0051] For example, when the communication object is the first access control, the electronic device obtains NFC tag information as 0 and determines the first interaction instruction corresponding to the NFC tag information. Then, the first access control system enters the unlocking process after receiving the first interaction instruction sent by the electronic device.

[0052] 140. Update the NFC tag information.

[0053] Among them, updating means jumping the existing NFC tag information to another NFC tag information. For example, when the NFC tag information can be 0 or 1, the tag information obtained when the electronic device executes the above steps is 0, and when the electronic device executes the tag information to update the step, the electronic device jumps the existing tag information of 0 to the tag information of 1. For another example, when the NFC tag information can be an integer such as 0, 1, 2, 3, 4, 5, the tag information obtained when the electronic device executes the above steps is 1, and when the electronic device executes the tag information to update the step, the electronic device can jump the existing tag information of 1 to the tag information of 2. For another example. When the NFC tag information can be an integer such as 0, 1, 2, 3, 4, 5, the tag information obtained when the electronic device executes the above steps is 1, and when the electronic device executes the tag information to update the step, the electronic device can jump the existing tag information of 1 to the tag information of 3.

[0054] The NFC communication processing method provided in the embodiment of the present application, after the electronic device establishes a connection with the communication object, accepts a request sent by the communication object, and the request is used to obtain an interaction instruction. The electronic device obtains an NFC tag information, the NFC tag information corresponds to a first interaction instruction, and sends the first interaction instruction to the communication object. Among them, the communication object determines whether the first interaction instruction matches the request. If it matches, the communication object performs a first operation, such as unlocking, punching in, etc.; if it does not match, the communication object performs a second operation, such as not unlocking, not punching in, etc. Subsequently, the electronic device updates the NFC tag information and re-executes the above operation until the interaction instruction corresponding to the updated NFC tag information matches the request of the communication object. The electronic device can adapt to the matching mechanisms of different communication objects and has high adaptability.

[0055] like Figure 2 As shown, Figure 2 Another flowchart of the NFC communication processing method provided by the embodiment of the present application. In some embodiments, after the NFC tag information is updated in step 140, it also includes:

[0056] 150. In response to the request sent by the communication object again, determine a second interaction instruction corresponding to the updated NFC tag information, and send the second interaction instruction to the communication object;

[0057] 160. Update the updated NFC tag information.

[0058] It is understandable that the second interaction instruction is different from the first interaction instruction. When the electronic device receives the request sent by the communication object again, the electronic device determines the second interaction instruction corresponding to the updated NFC tag information, and the electronic device sends the second interaction instruction to the communication object. For example, when the communication object is the second access control, the electronic device obtains the NFC tag information as 0 and determines that the NFC tag information corresponds to the first interaction instruction. The electronic device sends the first interaction instruction to the second access control system, and the second access control system does not enter the unlocking process. When the electronic device responds to the request sent by the second access control system again, it determines the second interaction instruction corresponding to the updated NFC tag information, and the electronic device sends the second interaction instruction to the second access control system, and the second access control system enters the unlocking process.

[0059] Subsequently, the electronic device updates the updated NFC tag information. For example, when the NFC tag information can be 0 or 1, the tag information of the electronic device is 0, and the updated tag information is 1. When the electronic device executes the step of updating the updated tag information, the electronic device jumps from the existing tag information of 1 to the tag information of 0. For another example, when the NFC tag information can be an integer such as 0, 1, 2, 3, 4, 5, the tag information of the electronic device is 1, and the updated tag information is 2. When the electronic device executes the step of updating the updated tag information, the electronic device jumps from the existing tag information of 2 to the tag information of 3. For another example, when the NFC tag information can be an integer such as 0, 1, 2, 3, 4, 5, the tag information of the electronic device is 1, and the updated tag information is 3. When the electronic device executes the step of updating the updated tag information, the electronic device jumps from the existing tag information of 2 to the tag information of 5.

[0060] In some embodiments, step 140, updating the NFC tag information includes:

[0061] 141. Sort at least two pieces of NFC tag information to obtain a sorted queue;

[0062] 142. Obtain the Nth NFC tag information from the sorting queue according to a preset rule, where N is a positive integer, and the number of the NFC tag information is greater than or equal to N, and update the NFC tag information to the Nth NFC tag information.

[0063] The electronic device sorts at least two NFC tag information, and the sorting rule may be sorting according to the numerical value of the NFC tag information, or may be sorting according to a custom definition, to obtain a sorting queue. For example, there are 4 tag information in the electronic device, and the 4 tag information may be sorted in order from small to large or from large to small to obtain a sorting queue. Exemplarily, the 4 tag information are 1, 2, 3, and 4, so the sorting method may be 1, 2, 3, and 4, or 4, 3, 2, and 1. For another example, there are 2 tag information in the electronic device, and the 2 tag information may be sorted in order from small to large or from large to small to obtain a sorting queue.

[0064] The preset rule is used to obtain the Nth NFC tag information from the NFC sorting queue. The preset rule may be to randomly obtain a certain NFC tag information, or to obtain the Nth NFC tag information in the sorting queue in order. Wherein, N is a positive integer, and the number of the NFC tag information is greater than or equal to N. For example, when the number of NFC tag information is 5, N may be a value such as 2 or 5.

[0065] like Figure 3 As shown, Figure 3 Another flowchart of the NFC communication processing method provided in the embodiment of the present application. In some embodiments, step 142, obtaining the Nth NFC tag information from the sorting queue according to a preset rule, includes:

[0066] 1421. Determine the position of the NFC tag information in the sorting queue;

[0067] 1422. Determine the NFC tag information corresponding to the next rank of the rank as the Nth NFC tag information.

[0068] The electronic device determines the position of the NFC tag information in the order, for example, the position is 2. The electronic device determines the NFC tag information corresponding to the next position as the Nth NFC tag information, for example, if the next position is 3, then the Nth NFC tag information is determined to be 3.

[0069] If there are 4 tag information in the electronic device, the 4 tag information can be sorted in ascending order or descending order to obtain a sorting queue, for example, arranged in positive order of 0, 1, 2, 3. If the electronic device determines that the NFC tag information is 1, determines the position of the NFC tag information in the sorting, which is 2, and the electronic device determines the NFC tag information corresponding to the next position of the position and locates the NFC tag information with a position of 3, then the Nth NFC tag information obtained by the electronic device is 2.

[0070] In some embodiments, after the NFC tag information is updated in step 140, the following steps are further included:

[0071] 170. In response to disconnecting the NFC connection with the communication object, update the updated NFC tag information.

[0072] Among them, in response to the electronic device disconnecting the NFC connection with the communication object, the distance between the electronic device and the communication object increases so that it cannot connect with the communication object. For example, when the electronic device is a smart phone and the communication object is a door access control, after the door access control is opened, the electronic device is taken away from the door access control by the user. The electronic device updates the updated NFC tag information. For example, when the NFC tag information can be 0 or 1, when the electronic device generates NFC tag information as 0, the door access control system enters the unlocking process. At this time, the electronic device updates the NFC tag information, and the updated NFC tag information is 1. When the electronic device detects that the NFC connection with the communication object is disconnected, the updated NFC tag information is updated again so that the updated NFC tag information is 0. When the electronic device approaches the door access control again, the NFC tag information in the electronic device is 0, and the door access control system can smoothly enter the unlocking process without the need for continuous updating, which can reduce the number of times the electronic device updates NFC.

[0073] In some embodiments, before step 110, in response to the request sent by the communication object, obtaining the NFC tag information, the method further includes:

[0074] 180. Set the NFC tag information as initial tag information.

[0075] When the electronic device receives a request sent by the communication partner, before the electronic device obtains the NFC tag information, the electronic device sets the NFC tag information as initial tag information.

[0076] The initial tag information may be fixed NFC tag information or NFC tag information obtained after the last NFC communication processing method is executed. For example, when the NFC tag information can be 0 or 1, the initial tag information may always be 0 or NFC tag information obtained after the last NFC communication processing method is executed.

[0077] like Figure 4 As shown, Figure 4 A schematic diagram of the process flow of the first access control system provided in an embodiment of the present application.

[0078] When the first access control is set with the first access control system, the request sent by the first access control system to the electronic device is a request to select a response. If the electronic device sends a correct response instruction to the first access control system, the first access control system door lock enters the unlocking process; if the electronic device sends an incorrect response instruction to the first access control system or the electronic device does not send a response instruction to the first access control system, the first access control system reports an error and enters the non-unlocking process.

[0079] like Figure 5 As shown, Figure 5 A schematic diagram of the flow of the second access control system provided in an embodiment of the present application.

[0080] The request sent by the second access control system to the electronic device is a request to select a response. If the electronic device sends a correct response instruction to the second access control system, the second access control system enters the non-unlocking process; if the electronic device sends an incorrect response instruction to the second access control system, the second access control system enters the unlocking process.

[0081] The present application also provides a door unlocking method. Figure 6 As shown, Figure 6 A schematic diagram of a flow chart of a door unlocking method provided in an embodiment of the present application. The door unlocking method includes:

[0082] 210. When an NFC signal of the access control system is detected, an NFC connection is established with the access control system.

[0083] The access control system can send or receive near field communication signals. The access control system can exchange data with electronic devices that also have NFC when they are close to each other. For example, the smartphone and the access control system are connected when they are close to each other, and data can be exchanged later, such as unlocking operations.

[0084] 220. In response to the unlock request sent by the access control system, obtain NFC tag information.

[0085] Among them, the unlock request sent by the access control system can be the judgment of the access control system to execute the next step. For example, the request sent by the first access control system to the electronic device is a request to select a response. If the electronic device sends a correct response instruction to the first access control system, the first access control system enters the unlocking process; if the electronic device sends an incorrect response instruction to the first access control system, the first access control system enters the non-unlocking process. The request sent by the second access control system to the electronic device is a request to select a response. If the electronic device sends a correct response instruction to the second access control system, the second access control system enters the non-unlocking process; if the electronic device sends an incorrect response instruction to the second access control system, the second access control system enters the unlocking process.

[0086] The NFC tag information may be a tag bit in a register or a tag information of a counter. It is understandable that the tag bit in the register may be set to 1 or 0; the tag information in the counter may be set to integers such as 0, 1, 2, 3, 4, etc.

[0087] It is worth noting that the technical solution of the present application is not limited to the marking information being 1, 0 or the marking information being integers such as 0, 1, 2, 3, 4, etc. As long as the marking information can play an identification role, it is within the protection scope of the present application.

[0088] 230. Determine an unlock instruction corresponding to the NFC tag information, and send the unlock instruction to the access control system.

[0089] The unlock instruction refers to an interactive instruction corresponding to the NFC tag information. For example, a register is set in the electronic device, and the register generates two tag bits: 0 and 1. Among them, the tag bit 0 corresponds to the first unlock instruction, and the tag bit 1 corresponds to the second unlock instruction.

[0090] For example, when the access control system is the first access control system, the electronic device obtains NFC tag information as 0 and determines the unlocking instruction corresponding to the NFC tag information, and then the electronic device sends the unlocking instruction to the first access control system, and the first access control system enters the unlocking process. When the access control system is the second access control system, the electronic device obtains NFC tag information as 0 and determines the unlocking instruction corresponding to the NFC tag information, and then the electronic device sends the unlocking instruction to the second access control system, and the second access control system enters the non-unlocking process.

[0091] 240. Update the NFC tag information.

[0092] Among them, updating means jumping the existing NFC tag information to another NFC tag information. For example, when the NFC tag information can be 0 or 1, the tag information obtained when the electronic device executes the above steps is 0, and when the electronic device executes the tag information to update the step, the electronic device jumps the existing tag information of 0 to the tag information of 1. For another example, when the NFC tag information can be an integer such as 0, 1, 2, 3, 4, 5, the tag information obtained when the electronic device executes the above steps is 1, and when the electronic device executes the tag information to update the step, the electronic device can jump the existing tag information of 1 to the tag information of 2. For another example, when the NFC tag information can be an integer such as 0, 1, 2, 3, 4, 5, the tag information obtained when the electronic device executes the above steps is 1, and when the electronic device executes the tag information to update the step, the electronic device can jump the existing tag information of 1 to the tag information of 3.

[0093] The access control unlocking method provided in the embodiment of the present application, after the electronic device establishes a connection with the access control, accepts the request sent by the access control system, and the electronic device obtains an NFC tag information, the NFC tag information corresponds to the unlocking instruction, and sends the unlocking instruction to the access control system. Among them, if it matches, the access control system performs the first operation, such as unlocking; if it does not match, the access control system performs the second operation, such as not unlocking. Subsequently, the electronic device updates the NFC tag information and re-executes the above operation until the interaction instruction corresponding to the updated NFC tag information matches the request of the access control system. The electronic device can adapt to the matching mechanisms of different access control systems and has high adaptability.

[0094] like Figure 7 , Figure 7 A schematic diagram of the execution flow of the NFC communication processing method provided in an embodiment of the present application.

[0095] If the communication object is the first type of access control, the first type of access control is provided with a first access control system, and the electronic device is a smart phone. In one case, the smart phone sets the NFC tag information as the initial tag information, if the initial tag information is 0. When the smart phone approaches the first type of access control system, an NFC connection is established between the smart phone and the first type of access control system, and it is determined that the interaction instruction corresponding to the NFC tag information is the correct response instruction, that is, the first access control system enters the unlocking process. At this time, when the electronic device executes the step of updating the tag information, the smart phone jumps from the existing tag information of 0 to the tag information of 1. At this time, the user takes the smart phone away from the access control system, and when the smart phone detects that the NFC connection with the first type of access control system is disconnected, the updated NFC tag information is updated to 0. When the smart phone approaches the access control system again, the NFC tag information in the smart phone is 0, and the first access control system can smoothly and quickly enter the unlocking process.

[0096] In another case, the smartphone sets the NFC tag information as the initial tag information if the initial tag information is 1. When the smartphone is close to the first access control system, an NFC connection is established between the smartphone and the first access control system, and it is determined that the interaction instruction corresponding to the NFC tag information is an erroneous response instruction, that is, the first access control system enters the non-unlocking process. At this time, when the electronic device executes the tag information update step, the smartphone jumps from the existing tag information of 1 to the tag information of 0. The smartphone receives the NFC signal of the first access control system again, and determines that the interaction instruction corresponding to the updated NFC tag information is a correct response instruction, that is, the first access control system enters the unlocking process. At this time, the user takes the smartphone away from the access control system, and when the smartphone detects that the NFC connection with the first access control system is disconnected, the updated NFC tag information is updated to 0.

[0097] like Figure 8 , Figure 8 A schematic diagram of another execution flow of the NFC communication processing method provided in an embodiment of the present application.

[0098] If the communication object is the second access control system, the electronic device is a smart phone. In one case, the smart phone sets the NFC tag information as the initial tag information. If the initial tag information is 0. When the smart phone approaches the second access control system, an NFC connection is established between the smart phone and the second access control system, and it is determined that the interaction instruction corresponding to the NFC tag information is a correct response instruction, that is, the second access control system enters the non-unlocking process. At this time, when the electronic device executes the tag information update step, the smart phone jumps from the existing tag information of 0 to the tag information of 1. The smart phone receives the NFC signal of the second access control system again, and determines that the interaction instruction corresponding to the updated NFC tag information is an incorrect response instruction, that is, the second access control system enters the unlocking process. At this time, when the smart phone executes the tag information update step, the smart phone jumps from the existing tag information of 1 to the tag information of 0. At this time, the user takes the smart phone away from the second access control system, and when the smart phone detects that the NFC connection with the second access control system is disconnected, the updated NFC tag information is updated to 1. When the smart phone approaches the access control system again, the NFC tag information in the smart phone is 0, and the second access control system can smoothly and quickly enter the unlocking process.

[0099] In another case, the smartphone sets the NFC tag information as the initial tag information, if the initial tag information is 0. When the smartphone approaches the second access control system, an NFC connection is established between the smartphone and the second access control system, and it is determined that the interaction instruction corresponding to the NFC tag information is an erroneous response instruction, that is, the second access control system enters the unlocking process. At this time, when the electronic device executes the tag information update step, the smartphone jumps from the existing tag information of 0 to the tag information of 1. At this time, the user takes the smartphone away from the access control system, and when the smartphone detects that the NFC connection with the second access control system is disconnected, the updated NFC tag information is updated to 0.

[0100] like Fig. 9 , Fig. 9 The schematic diagram of the structure of the NFC communication processing device provided in the embodiment of the present application is as follows: Specifically, the NFC communication processing device 300 includes a connection module, an acquisition module, a determination module and a processing module.

[0101] For example, the connection module includes a first connection module 310, and the first connection module 310 is used to establish an NFC connection with the communication object when an NFC signal of the communication object is detected;

[0102] For example, the acquisition module includes a first acquisition module 320, and the first acquisition module 320 is used to acquire NFC tag information in response to a request sent by the communication object, and the request is used to acquire an interaction instruction.

[0103] For example, the determination module includes a first determination module 330, and the first determination module 330 is used to determine a first interaction instruction corresponding to the NFC tag information, and send the first interaction instruction to the communication object;

[0104] For example, the processing module includes a first processing module 340, and the first processing module 340 is used to update the NFC tag information.

[0105] In some embodiments, the first processing module 340 is further configured to:

[0106] In response to the request sent by the communication object again, determine a second interaction instruction corresponding to the updated NFC tag information, and send the second interaction instruction to the communication object;

[0107] The updated NFC tag information is updated.

[0108] In some embodiments, the first processing module 340 is used to:

[0109] sorting at least two pieces of NFC tag information to obtain a sorted queue;

[0110] Obtain the Nth NFC tag information from the sorting queue according to a preset rule, where N is a positive integer, and the number of the NFC tag information is greater than or equal to N, and update the NFC tag information to the Nth NFC tag information.

[0111] In some embodiments, the first processing module 340 is used to:

[0112] Determine the position of the NFC tag information in the sorting queue;

[0113] The NFC tag information corresponding to the next rank of the rank is determined as the Nth NFC tag information.

[0114] In some embodiments, the first processing module 340 is further configured to:

[0115] In response to the communication partner disconnecting the NFC connection, the updated NFC tag information is updated.

[0116] In some embodiments, the first connection module 310 is further used to:

[0117] Set the NFC tag information to the initial tag information.

[0118] like Fig.10 , Fig.10The schematic diagram of the structure of the access control unlocking device provided in the embodiment of the present application is as follows. Specifically, the access control unlocking device 400 includes a second connection module 410 , a second acquisition module 420 , a second determination module 430 and a second processing module 440 .

[0119] The second connection module 410 is used to establish an NFC connection with the access control system when an NFC signal of the access control system is detected;

[0120] The second acquisition module 420 is used to respond to the unlock request sent by the access control system and acquire NFC tag information;

[0121] The second determination module 430 is used to determine the unlocking instruction corresponding to the NFC tag information, and send the unlocking instruction to the access control system;

[0122] The second processing module 440 is used to update the NFC tag information.

[0123] The present application embodiment also provides an electronic device 500. Fig.11 , Fig.11 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.

[0124] The electronic device 500 includes a processing circuit 510 and a storage circuit 520. The processing circuit 510 and the storage circuit 520 are electrically connected.

[0125] The processing circuit 510 is the control center of the electronic device 500. It uses various interfaces and lines to connect various parts of the entire electronic device. It executes various functions of the electronic device 500 and processes data by running or loading computer programs stored in the storage circuit 520 and calling data stored in the storage circuit 520, thereby monitoring the electronic device 500 as a whole.

[0126] The storage circuit 520 can be used to store software programs and modules. The processing circuit 510 executes various functional applications and data processing by running the computer programs and modules stored in the storage circuit 520. The storage circuit 520 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, a computer program required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the electronic device, etc. In addition, the storage circuit 520 may include a high-speed random access storage circuit, and may also include a non-volatile storage circuit, such as at least one disk storage circuit component, a flash memory device, or other volatile solid-state storage circuit components. Accordingly, the storage circuit 520 may also include a storage circuit controller to provide the processing circuit 510 with access to the storage circuit 520.

[0127] In an embodiment of the present application, the processing circuit 510 in the electronic device 500 will load instructions corresponding to the processes of one or more computer programs into the storage circuit 520 according to the following steps, and the processing circuit 510 will run the computer programs stored in the storage circuit 520 to achieve various functions.

[0128] In some embodiments, the processing circuit 510 may specifically perform the following steps:

[0129] When an NFC signal of a communication object is detected, an NFC connection is established with the communication object;

[0130] Responding to a request sent by the communication object, obtaining NFC tag information, wherein the request is used to obtain an interaction instruction;

[0131] Determine a first interaction instruction corresponding to the NFC tag information, and send the first interaction instruction to the communication object;

[0132] The NFC tag information is updated.

[0133] In some embodiments, the processing circuit 510 may specifically perform the following steps:

[0134] In response to the request sent by the communication object again, determine a second interaction instruction corresponding to the updated NFC tag information, and send the second interaction instruction to the communication object;

[0135] The updated NFC tag information is updated.

[0136] In some embodiments, the processing circuit 510 may specifically perform the following steps:

[0137] sorting at least two pieces of NFC tag information to obtain a sorted queue;

[0138] Obtain the Nth NFC tag information from the sorting queue according to a preset rule, where N is a positive integer, and the number of the NFC tag information is greater than or equal to N, and update the NFC tag information to the Nth NFC tag information.

[0139] In some embodiments, the processing circuit 510 may specifically perform the following steps:

[0140] Determine the position of the NFC tag information in the sorting queue;

[0141] The NFC tag information corresponding to the next rank of the rank is determined as the Nth NFC tag information.

[0142] In some embodiments, the processing circuit 510 may specifically perform the following steps:

[0143] In response to disconnecting the NFC connection with the communication object, the updated NFC tag information is updated.

[0144] In some embodiments, the processing circuit 510 may specifically perform the following steps:

[0145] Set the NFC tag information to the initial tag information.

[0146] As can be seen from the above, after the electronic device of the embodiment of the present application establishes a connection with the communication object, it accepts a request sent by the communication object, which is used to obtain an interaction instruction. The electronic device obtains an NFC tag information, which corresponds to a first interaction instruction, and sends the first interaction instruction to the communication object. Among them, the communication object determines whether the first interaction instruction matches the request. If it matches, the communication object performs a first operation, such as unlocking, punching in, etc.; if it does not match, the communication object performs a second operation, such as not unlocking, not punching in, etc. Subsequently, the electronic device updates the NFC tag information and can re-execute the above operations until the interaction instruction corresponding to the updated NFC tag information matches the request of the communication object. Therefore, the electronic device using the NFC communication processing method can adapt to the matching mechanisms of different communication objects and has high adaptability.

[0147] In some embodiments, the processing circuit 510 may further specifically perform the following steps:

[0148] When an NFC signal of the access control system is detected, an NFC connection is established with the access control system;

[0149] In response to an unlock request sent by the access control system, obtaining NFC tag information;

[0150] Determine an unlock instruction corresponding to the NFC tag information, and send the unlock instruction to the access control system;

[0151] The NFC tag information is updated.

[0152] As can be seen from the above, after the electronic device establishes a connection with the access control system, it accepts the request sent by the access control system, obtains an NFC tag information, and the NFC tag information corresponds to the unlock instruction, and sends the unlock instruction to the access control system. Among them, if it matches, the access control system performs the first operation, such as unlocking; if it does not match, the access control system performs the second operation, such as not unlocking. Subsequently, the electronic device updates the NFC tag information and re-executes the above operation until the interaction instruction corresponding to the updated NFC tag information matches the request of the access control system. The electronic device can adapt to the matching mechanisms of different access control systems and has high adaptability.

[0153] Please also read Fig.12 , Fig.12 A schematic diagram of another structure of an electronic device provided in an embodiment of the present application.

[0154] In some embodiments, the electronic device 500 may further include: a display 530, a radio frequency circuit 540, an audio circuit 550, and a power supply 560. The display 530, the radio frequency circuit 540, the audio circuit 550, and the power supply 560 are electrically connected to the processing circuit 510, respectively.

[0155] The display 530 may be used to display information input by a user or information provided to a user and various graphical user interfaces, which may be composed of graphics, text, icons, videos, and any combination thereof. The display 530 may include a display panel, and in some embodiments, the display panel may be configured in the form of a liquid crystal display (LCD) or an organic light-emitting diode (OLED).

[0156] The radio frequency circuit 540 can be used to send and receive radio frequency signals to establish wireless communication with a network device or other electronic devices through wireless communication, and to send and receive signals between the network device or other electronic devices.

[0157] The audio circuit 550 can be used to provide an audio interface between a user and an electronic device through a speaker and a microphone.

[0158] The power supply 560 can be used to supply power to various components of the electronic device 500. In some embodiments, the power supply 560 can be logically connected to the processing circuit 510 through a power management system, so that the power management system can manage charging, discharging, power consumption and other functions.

[0159] Although not shown, the electronic device 500 may also include a camera, a Bluetooth module, etc., which will not be described in detail here.

[0160] The term "module" used herein can be regarded as a software object executed on the computing system. The different components, modules, engines and services described herein can be regarded as implementation objects on the computing system. The devices and methods described herein are preferably implemented in software, but can also be implemented in hardware, all within the scope of protection of this application.

[0161] The embodiment of the present application further provides a storage medium, which stores a computer program. In response to the computer program running on a computer, the computer executes the NFC communication processing method or the access control unlocking method in any of the above embodiments, such as:

[0162] When an NFC signal of a communication object is detected, an NFC connection is established with the communication object;

[0163] In response to receiving a request sent by the communication object, obtaining NFC tag information, wherein the request is used to obtain an interaction instruction;

[0164] Determine a first interaction instruction corresponding to the NFC tag information, and send the first interaction instruction to the communication object;

[0165] The NFC tag information is updated.

[0166] Another example:

[0167] When an NFC signal of the access control system is detected, an NFC connection is established with the access control system;

[0168] In response to receiving an unlock request sent by the access control system, acquiring NFC tag information;

[0169] Determine an unlock instruction corresponding to the NFC tag information, and send the unlock instruction to the access control system;

[0170] The NFC tag information is updated.

[0171] In the embodiment of the present application, the storage medium may be a magnetic disk, an optical disk, a read-only memory circuit (Read Only Memory, ROM), or a random access memory (Random Access Memory, RAM), etc.

[0172] In specific implementation, the present application is not limited by the execution order of the various steps described. If no conflict occurs, some steps can be performed in other orders or simultaneously.

[0173] In addition, the terms "first", "second", and "third" in this application are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or device that includes a series of steps or modules is not limited to the listed steps or modules, but some embodiments also include steps or modules that are not listed, or some embodiments also include other steps or modules inherent to these processes, methods, products, or devices.

[0174] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0175] It should be noted that, for the NFC communication processing method and the access control unlocking method of the embodiment of the present application, ordinary testers in the field can understand that all or part of the processes of the NFC communication processing method and the access control unlocking method of the embodiment of the present application can be completed by controlling the relevant hardware through a computer program, and the computer program can be stored in a storage medium, such as a storage circuit of an electronic device, and executed by at least one processor in the electronic device, and the execution process may include the processes of the embodiments of the NFC communication processing method and the access control unlocking method. Among them, the storage medium can be a disk, an optical disk, a read-only storage circuit, a random access memory, etc.

[0176] For the NFC communication processing device and access control unlocking device of the embodiment of the present application, each functional module can be integrated into a processing chip, or each module can exist physically separately, or two or more modules can be integrated into one module. The above-mentioned integrated module can be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it can also be stored in a storage medium, such as a read-only storage circuit, a disk or an optical disk.

[0177] The above is a detailed introduction to an NFC communication processing method, a door unlocking method, an NFC communication processing device, a storage medium, and an electronic device provided in an embodiment of the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present application, and the description of the above embodiments is only used to help understand the present application. At the same time, for those skilled in the art, according to the ideas of the present application, there will be changes in the specific implementation methods and scope of application. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A door unlocking method, It is characterized in that include: Setting the NFC tag information to initial tag information, where the initial tag information is the NFC tag information obtained after executing the last NFC communication processing method; When an NFC signal of the access control system is detected, an NFC connection is established with the access control system; In response to the unlock request sent by the access control system, acquiring the NFC tag information; Determine an unlock instruction corresponding to the NFC tag information, and send the unlock instruction to the access control system, wherein different NFC tag information corresponds to different unlock instructions; Updating the NFC tag information includes: sorting at least two NFC tag information to obtain a sorting queue, obtaining Nth NFC tag information from the sorting queue according to a preset rule, wherein N is a positive integer, and the number of the NFC tag information is greater than or equal to N, and updating the NFC tag information to the Nth NFC tag information, wherein the NFC tag information is tag information for a communication object of a door access control type, and the NFC tag information includes one of a tag bit in a register and tag information of a counter; Wherein, after the NFC tag information is updated, the method further comprises: responding again to the request sent by the access control system, determining a second interaction instruction corresponding to the updated NFC tag information, and sending the second interaction instruction to the access control system to update the updated NFC tag information. After the NFC tag information is updated, the method further includes: in response to disconnecting the NFC connection with the access control system, updating the updated NFC tag information.

2. An NFC communication processing device, It is characterized in that include: A connection module, configured to set the NFC tag information as initial tag information, wherein the initial tag information is the NFC tag information obtained after the last NFC communication processing method is executed, and to establish an NFC connection with the communication object when an NFC signal of the communication object is detected, wherein the communication object is a door access control system; an acquisition module, configured to respond to a request sent by the communication object and acquire the NFC tag information, wherein the request is used to acquire an interaction instruction; a determination module, configured to determine a first interaction instruction corresponding to the NFC tag information, and send the first interaction instruction to the communication object, wherein different NFC tag information corresponds to different interaction instructions; A processing module, configured to update the NFC tag information, comprising: sorting at least two NFC tag information to obtain a sorting queue, obtaining Nth NFC tag information from the sorting queue according to a preset rule, wherein N is a positive integer, and the number of the NFC tag information is greater than or equal to N, and updating the NFC tag information to the Nth NFC tag information, wherein the NFC tag information is tag information for a communication object of a door access control type, and the NFC tag information includes one of a tag bit in a register and tag information of a counter; Wherein, after the NFC tag information is updated, the method further comprises: responding again to the request sent by the communication object, determining a second interaction instruction corresponding to the updated NFC tag information, and sending the second interaction instruction to the communication object to update the updated NFC tag information; After the NFC tag information is updated, the method further includes: in response to disconnecting the NFC connection with the communication object, updating the updated NFC tag information.

3. A storage medium, It is characterized in that The storage medium stores a computer program, and in response to the computer program running on a computer, the computer executes the access control unlocking method according to claim 1.

4. An electronic device, It is characterized in that The electronic device includes a storage circuit and a processing circuit, the storage circuit stores a computer program, and the processing circuit is used to execute the access control unlocking method according to claim 1 by calling the computer program stored in the storage circuit.