Nfc recognition device, control method thereof, and storage medium
By obtaining the number of tags recognized by the reader in the NFC identification device and turning off the data reading function when it is stable, while retaining only the tag count detection function, the high power consumption problem caused by continuous scanning in the NFC identification device is solved, realizing low power consumption monitoring and timely detection of changes in the number of tags.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- GEER TECH CO LTD
- Filing Date
- 2026-03-31
- Publication Date
- 2026-07-07
Smart Images

Figure CN122347152A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, and in particular to NFC identification devices, control methods, and storage media. Background Technology
[0002] In NFC (Near Field Communication) technology applications, card readers can read information from NFC tags placed on them. However, when an NFC tag is continuously placed on the card reader, the reader will continuously scan, which causes the card reader to operate in a high-power state for a long time. Therefore, there is currently a technical problem of high power consumption in NFC recognition.
[0003] The above content is only used to help understand the technical solutions of the embodiments of this application, and does not represent an admission that the above content is prior art. Summary of the Invention
[0004] The main objective of this application is to provide an NFC identification device, its control method, and a storage medium, aiming to solve the technical problem of high power consumption in NFC identification.
[0005] To achieve the above objectives, this application provides a control method for an NFC identification device, the NFC identification device including a card reader, the method comprising:
[0006] Obtain the current number of NFC tags currently recognized by the card reader; If the current number of identified tags remains unchanged and continues to remain stable for a preset time, the data reading function of the card reader is turned off, while the tag number detection function of the card reader is retained to monitor the number of NFC tags placed on the card reader.
[0007] In one feasible embodiment, the step of retaining the tag quantity detection function of the card reader further includes: When an increase in the number of NFC tags placed on the card reader is detected, the data reading function of the card reader is activated.
[0008] In one feasible embodiment, the steps following the activation of the card reader's data reading function further include: The reader reads all NFC tags placed on it to obtain tag reading data. The tag reading data is uploaded to the cloud that is connected to the NFC identification device, so that the cloud can update the historical reading data uploaded to the cloud by the NFC identification device based on the tag reading data.
[0009] In one feasible embodiment, the card reader includes multiple sensing areas and a sensor group, the sensor group including multiple object sensors, and each sensing area is provided with an object sensor; after the step of retaining the tag quantity detection function of the card reader, the method further includes: When the number of NFC tags placed in the card reader is detected to be decreasing by the sensor group, the tag placement time of each NFC tag that has been identified in the card reader is obtained; When the placement times of the tags are different and the absolute value of the difference between the placement times of any pair of tags is greater than a preset placement interval threshold, the target NFC tag removed from the card reader is obtained, and the NFC identification data of the card reader is obtained, wherein the NFC identification data includes tag information of each NFC tag that has been identified by the card reader; The tag information corresponding to the target NFC tag is removed from the identification data to obtain identification update data. The identification update data is then uploaded to the cloud that is connected to the NFC identification device, so that the cloud can update the historical read data uploaded to the cloud by the NFC identification device based on the identification update data.
[0010] In one feasible embodiment, the step of acquiring the target NFC tag removed from the reader includes: Obtain the identification completion time of each NFC tag identified in the card reader; For each tag placement time, a target identification completion time is determined from each identification completion time that has a difference from the tag placement time that is less than a preset adjacent time threshold and is later in time than the tag placement time. The NFC tag corresponding to the target identification completion time is determined as the NFC tag placed on the object sensor corresponding to the tag placement time. In the sensor group, the target sensor that detects the tag removal event is identified, and the NFC tag placed in the sensing area of the target sensor is taken as the target NFC tag.
[0011] In one feasible embodiment, the control method for the NFC identification device further includes: When the NFC identification device includes multiple card readers and the multiple card readers are in a preset serial operation mode, if there is a dormant card reader in the NFC identification device that has the data reading function turned off, the dormant card reader is removed from the preset cyclic polling sequence to obtain the target cyclic polling sequence. According to the target cyclic polling sequence, control the card readers, except for the dormant card reader, to switch to the card reading state in sequence; The preset serial operation mode is a mode that controls the multiple card readers to switch to the card reading state sequentially, and the preset cyclic polling sequence is the sorting sequence of the multiple card readers.
[0012] In one feasible embodiment, each of the card readers is configured with a sensor array; the method of the NFC identification device further includes: For any of the dormant card readers, if the sensor group detects an increase in the number of NFC tags placed on the dormant card reader, the step of controlling the card readers other than the dormant card reader to enter the card reading state in sequence according to the target cyclic polling sequence is stopped. A dormant reader that detects a change in the number of NFC tags is identified as a target recovery reader. The data reading function of the target recovery reader is activated so that the target recovery reader enters the card reading state. Add the target recovery reader to the target cyclic polling sequence to update the target cyclic polling sequence; After the target recovery card reader finishes reading the NFC tag placed on the target recovery card reader, the card readers present in the updated target cyclic polling sequence are controlled to switch to the card reading state in sequence according to the updated target cyclic polling sequence.
[0013] In one feasible embodiment, the control method for the NFC identification device further includes: When the NFC identification device is equipped with a storage box, the storage box includes an openable and closable lid, the lid is equipped with a lid opening and closing detection sensor, and the card reader included in the NFC identification device is placed inside the storage box, if a lid closing event is detected by the lid opening and closing detection sensor, the card reader is controlled to enter a standby state after a preset closing time. The standby state indicates that the card reader disables the data reading function and disables the tag quantity detection function. If the cover opening and closing detection sensor detects an opening event, it controls the card reader to enable the tag quantity detection function and returns to the step of obtaining the current number of NFC tags currently recognized by the card reader.
[0014] Furthermore, to achieve the above objectives, embodiments of this application provide a control device, wherein the NFC identification device includes a card reader, and the control device includes: The acquisition module is used to acquire the current number of NFC tags currently identified by the card reader; The control module is used to disable the data reading function of the card reader while retaining the tag number detection function of the card reader to monitor the number of NFC tags placed on the card reader, provided that the current number of identified tags remains unchanged and continues to be stable for a preset time.
[0015] Furthermore, to achieve the above objectives, this application also provides an NFC identification device, which includes: a memory, a processor, and a program for a control method of the NFC identification device stored in the memory and executable on the processor. When the program for the control method of the NFC identification device is executed by the processor, it can implement the steps of the control method of the NFC identification device as described above.
[0016] In addition, to achieve the above objectives, embodiments of this application also provide a computer-readable storage medium storing a program for implementing a control method for an NFC identification device. When the program for the control method for the NFC identification device is executed by a processor, it implements the steps of the control method for the NFC identification device as described above.
[0017] In addition, to achieve the above objectives, this application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the control method for the NFC identification device as described above.
[0018] The present application proposes one or more technical solutions, which have at least the following technical effects: The present application obtains the current number of NFC tags currently identified by the card reader, and when the current number of identified tags remains unchanged and continues to remain stable for a preset time, it disables the data reading function of the card reader while retaining the tag number detection function. This allows the high-power data reading function to be disabled when NFC tags are continuously placed on the card reader and the number of NFC tags is stable, while only the low-power tag number detection function is retained to monitor the number of NFC tags placed on the card reader. This avoids the card reader from operating at high power for a long time due to continuous data scanning, and also allows timely monitoring of changes in the number of tags through the retained tag number detection function. Thus, without affecting the monitoring of changes in the number of tags and the subsequent normal identification of tags, the card reader avoids operating at high power for a long time due to continuous scanning, effectively solving the technical problem of high power consumption in NFC identification. Attached Figure Description
[0019] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with those of this application and, together with the specification, serve to explain the principles of the embodiments of this application.
[0020] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0021] Figure 1 This is a flowchart illustrating one embodiment of the control method for an NFC identification device according to this application. Figure 2 This is a flowchart illustrating another embodiment of the control method for an NFC identification device according to the present application. Figure 3 This is a flowchart illustrating an example of the control method for an NFC identification device according to an embodiment of this application. Figure 4 This is a schematic diagram of the module structure of the control device according to an embodiment of this application; Figure 5 This is a schematic diagram of the hardware operating environment involved in the control method of the NFC identification device in this application embodiment.
[0022] The objectives, features, and advantages of the embodiments described in this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0023] It should be understood that the specific embodiments described herein are merely illustrative of the technical solutions of the embodiments of this application and are not intended to limit the embodiments of this application.
[0024] To better understand the technical solutions of the embodiments of this application, a detailed description will be provided below in conjunction with the accompanying drawings and specific implementation methods.
[0025] In NFC technology applications, card readers can read information from NFC tags placed on them. However, when NFC tags are continuously placed on the card reader, or when there are too many sensing areas on the card reader, the card reader will continuously scan. Continuous scanning will cause the card reader to operate in a high-power state for a long time. Therefore, there is currently a technical problem of high power consumption in NFC recognition.
[0026] Therefore, this embodiment provides a control method for an NFC identification device. This embodiment obtains the current number of NFC tags currently identified by the reader, and when the current number of identified tags remains unchanged and remains stable for a preset time, it disables the reader's data reading function while retaining the reader's tag count detection function. This allows the high-power data reading function to be disabled when NFC tags are continuously placed on the reader and the number of NFC tags is stable, while only the low-power tag count detection function is retained to monitor the number of NFC tags placed on the reader. This avoids the reader from operating at high power for a long time due to continuous data scanning, and allows timely monitoring of tag count changes through the retained tag count detection function. Thus, without affecting the monitoring of tag count changes and subsequent normal tag identification, the reader avoids operating at high power for a long time due to continuous scanning, effectively solving the technical problem of high power consumption in NFC identification.
[0027] Based on this, embodiments of this application provide a control method for an NFC identification device, referring to... Figure 1 , Figure 1 This is a flowchart illustrating one embodiment of the control method for an NFC identification device according to this application. The control method for the NFC identification device is applied to an NFC identification device, which includes a card reader. The control method includes steps S10 to S20: Step S10: Obtain the current number of NFC tags currently recognized by the card reader; It should be noted that the NFC identification device is a near-field communication control device that includes a card reader. The NFC identification device interacts with NFC tags via near-field communication through the card reader to achieve identification and data reading operations of the NFC tags. The NFC identification device may include one or more card readers; the number of card readers can be one, two, three, or four, etc., and this embodiment does not specifically limit this. The card reader is the hardware component in the NFC identification device used to read NFC tags. The NFC tag can be embedded in a doll or other objects; this embodiment does not specifically limit this. This embodiment can also be applied to scenarios where payments are made via NFC.
[0028] An NFC tag is an electronic tag with a built-in near-field communication chip. When an NFC tag is placed within the sensing range of a card reader, it can establish a near-field communication connection with the reader and be identified. The current identification count refers to the total number of NFC tags placed on the card reader that the reader has successfully identified at the current moment.
[0029] For example, for each reader in an NFC identification device, the current number of NFC tags currently identified by the reader can be obtained. Multiple NFC tags can be placed on each reader simultaneously, and each reader can also support the identification of multiple NFC tags.
[0030] Step S20: With the current number of identified tags remaining unchanged and a preset stable duration, disable the data reading function of the card reader while retaining the tag count detection function of the card reader to monitor the number of NFC tags placed on the card reader.
[0031] It should be noted that the card reader is a hardware component in an NFC identification device used to read NFC tags and has a card reading mode. When the card reader's data reading function is off, if the card reader enters card reading mode, it will not perform data reading operations, but it will detect the number of NFC tags placed in the card reader. When the card reader's data reading function is on, if the card reader enters card reading mode, it will perform data reading operations and can also perform tag count detection.
[0032] When an NFC identification device includes multiple card readers, its operating modes can be divided into two types: a first operating mode and a second operating mode. The first operating mode is a preset serial operation mode, and the second operating mode is a preset parallel operation mode. In the preset serial operation mode, multiple card readers are controlled to sequentially switch to the card reading state. The preset cyclic polling sequence is the sorting sequence of the multiple card readers. That is, in the preset serial operation mode, no multiple card readers will enter the card reading state simultaneously; the number of readers entering the card reading state at any given time is 1. In the preset parallel operation mode, each card reader independently controls whether it enters the card reading state. Any card reader entering the card reading state does not need to wait for other card readers to exit, and multiple card readers are allowed to be in the card reading state simultaneously.
[0033] When the NFC identification device includes a single card reader, the card reader will not perform data reading operations when the data reading function of the card reader is turned off, and the card reader will enter the card reading state when the data reading function of the card reader is activated.
[0034] The preset stabilization time is a pre-set time threshold used to determine whether the number of NFC tags identified on the reader is in a stable state that remains unchanged. When the current number of identified tags remains unchanged for a period of time that reaches the preset temperature time, it is determined that the number of tags has become stable.
[0035] The data reading function refers to the function of the card reader interacting with the NFC tag to read the information stored inside the tag. This function consumes relatively high power. The tag quantity detection function refers to the function of the card reader only detecting the number of NFC tags placed on the card reader without actually reading any data. This tag quantity detection function consumes relatively low power.
[0036] Disabling the data reading function is to reduce the overall power consumption of the NFC recognition device and solve the high power consumption problem when the number of NFC tags on the reader is stable and there is no need for repeated data reading. Retaining the tag count detection function is to ensure that while reducing reader power consumption, the ability to monitor changes in the number of NFC tags is not lost, preventing the loss of awareness of tag additions and removals due to the complete shutdown of the reader.
[0037] For example, if the current number of identified tags remains unchanged and a stable preset duration is maintained, the data reading function of the card reader is turned off, while the tag count detection function of the card reader is retained to monitor the number of NFC tags placed on the card reader.
[0038] This embodiment obtains the current number of NFC tags currently recognized by the reader. If the current number remains constant for a preset stable duration, the reader's data reading function is disabled, while the tag count detection function is retained. This allows the high-power data reading function to be turned off when NFC tags are continuously placed on the reader and the number of NFC tags remains stable, while only the low-power tag count detection function is retained to monitor the number of NFC tags on the reader. This avoids the reader operating at high power for extended periods due to continuous data scanning, while the retained tag count detection function monitors changes in the number of tags in a timely manner. Thus, without affecting the monitoring of tag count changes and subsequent normal tag recognition, the reader avoids prolonged high-power operation due to continuous scanning, effectively solving the technical problem of high power consumption in NFC recognition.
[0039] In one feasible embodiment, step S30 is included after step S20: activating the data reading function of the card reader when an increase in the number of NFC tags placed in the card reader is detected.
[0040] It should be noted that the steps for detecting changes in the number of NFC tags include: detecting whether the number of NFC tags on the reader has changed using a collision algorithm; in other embodiments, a placement sensor disposed on the reader can also be used to detect whether the number of NFC tags on the reader has changed. The placement sensor can be an infrared sensor and / or a pressure sensor.
[0041] The collision algorithm refers to the algorithm by which an NFC reader, when communicating with multiple NFC tags, resolves signal conflicts caused by simultaneous responses from multiple tags by sending anti-collision commands, thereby identifying and counting the number of tags within the reader's sensing range one by one. The object sensor refers to a non-contact or contact sensing element installed on the reader for physically sensing the placement status of NFC tags; it can be a pressure sensor and / or an infrared sensor, but this embodiment does not impose specific limitations. The reader includes multiple sensing areas, each supporting the placement of one NFC tag. An object sensor can be placed in each sensing area. When any object sensor detects an object placement event or a tag removal event, it indicates a change in the number of NFC tags on the reader.
[0042] Therefore, in this embodiment, whether the reader is equipped with a placement sensor or not, it can detect whether the number of NFC tags placed on the reader has changed.
[0043] For example, if the number of NFC tags detected by the reader increases through a collision algorithm or all the object sensors on the reader, it indicates that new NFC tags have been added to the reader. This necessitates activating the reader's data reading function to read the new NFC tags. In this embodiment, when the number of readers in the NFC identification device is one, the data reading function of that reader is activated, allowing the reader to immediately perform data reading operations. When the NFC identification device includes multiple readers, the reader with activated data reading functions immediately enters reading mode to perform data reading operations, thereby enabling faster identification of new NFC tags and improving NFC tag identification efficiency while reducing power consumption.
[0044] In a feasible embodiment, steps S40 to S50 are further included after step S30: Step S40: Read all NFC tags placed on the card reader to obtain tag reading data; Step S50: Upload the tag reading data to the cloud that is connected to the NFC recognition device so that the cloud can update the historical reading data uploaded to the cloud by the NFC recognition device based on the tag reading data.
[0045] It should be noted that tag reading data refers to the stored information within the tags that the reader reads from all the NFC tags placed on it using its data reading function. The cloud refers to a remote server or service platform connected to the NFC identification device via network communication, used to receive, store, and display data uploaded by the NFC identification device. Historically uploaded data to the cloud refers to the tag reading data obtained from previous reading operations that the NFC identification device has uploaded and stored to the cloud before this upload.
[0046] In this embodiment, the tag reading data is uploaded to the cloud to synchronize the currently identified tag information with the historical data already stored in the cloud, thus avoiding the problem of inconsistency between the data displayed in the cloud and the data stored only locally on the NFC identification device.
[0047] The purpose of updating the read data is to ensure that the tag information of the NFC identification device maintained in the cloud reflects the latest actual identification status, guaranteeing data accuracy and real-time performance. The specific update method includes: after receiving the uploaded tag read data, the cloud, based on the reader identifier carried in the uploaded data, searches for the historical read records corresponding to that reader in the historical uploaded read data. All NFC tag information read this time is compared with the historical read records of the corresponding reader. Additions, deletions, and / or replacements are used to ensure that the data stored in the cloud for that reader is consistent with the uploaded data, thus completing the update of the read data corresponding to that reader. The historical read data uploaded by the NFC identification device includes the historical read records for each reader.
[0048] This embodiment actively reads the tag reading data of all NFC tags on the card reader after activating the data reading function and uploads it to the cloud. The cloud then updates the historically uploaded data for the corresponding card reader, achieving cloud synchronization of the recognition results of each card reader. This allows the cloud to display the latest and most accurate recognition results of each card reader to the user.
[0049] In other embodiments, if the number of NFC tags placed on the card reader decreases when no object sensor is placed on the card reader, the data reading function of the card reader is activated. After the data reading function is activated, all NFC tags placed on the card reader are read by the card reader to obtain tag reading data. The tag reading data is then uploaded to the cloud that is connected to the NFC identification device so that the cloud can update the reading data that the NFC identification device has historically uploaded to the cloud based on the tag reading data.
[0050] When the number of NFC tags decreases, the tag information already recognized locally by the reader will be inconsistent with the actual tag status. If it is not reread, the NFC recognition device will retain incorrect tag data. Therefore, it is necessary to activate the data reading function to reread all the currently existing NFC tags, obtain accurate tag reading data, and upload it to the cloud. This allows the cloud to synchronously update the historical reading records of the corresponding reader, ensuring data accuracy.
[0051] In one feasible embodiment, the card reader includes multiple sensing areas and a sensor group, the sensor group including multiple object sensors, and each sensing area is provided with an object sensor; after step S20, steps A10 to A30 are further included: Step A10: When the number of NFC tags placed in the card reader is reduced by the sensor group, the tag placement time of each NFC tag that has been identified in the card reader is obtained. It should be noted that the sensor group refers to a group of multiple object sensors, each of which is set in a corresponding sensing area of the card reader and is used to independently detect whether an NFC tag is placed in the corresponding sensing area; the tag placement time refers to the moment when the card reader first detects that an NFC tag has been placed in the corresponding sensing area through the sensor group.
[0052] For example, when a sensor group is set on the card reader, the sensor group can detect changes in the number of NFC tags on the card reader. If a decrease in the number is detected, the placement time of each identified NFC tag can be obtained first. Based on the tag placement time, it can be determined whether to activate the card reader's data reading function when a decrease in the number is detected. Alternatively, the sensor group can also detect changes in the number of NFC tags on the card reader, and activate the card reader's data reading function when an increase in the number is detected.
[0053] Step A20: When the placement times of each tag are different and the absolute value of the difference between the placement times of any two tags is greater than the preset placement interval threshold, the target NFC tag removed from the card reader is obtained, and the NFC identification data of the card reader is obtained. The NFC identification data includes the tag information of each NFC tag that has been identified by the card reader. It should be noted that the preset placement interval threshold is a pre-set time difference value used to determine whether the placement times of the two NFC tags are significantly separated in time. The preset placement interval threshold can be set based on the actual situation, and this embodiment does not make specific limitations on it. For example, the preset placement interval threshold can be 30 seconds, one minute, or 15 seconds, etc.
[0054] The target NFC tag refers to the NFC tag that is removed from the corresponding sensing area of the reader when the sensor group detects a decrease in the number of NFC tags on the reader, based on the correspondence between the tag placement time and the sensing area.
[0055] NFC identification data refers to the tag information of all NFC tags that the card reader has identified and stored before the data reading function is turned off. The tag information is the tag data stored in the NFC tag. Different NFC tags may have different tag information. This embodiment does not make specific limitations on this.
[0056] The reason why the target NFC tag removed from the reader can only be acquired and NFC identification data can only be obtained when the placement times of each tag are different and the absolute value of the difference between the placement times of any two tags is greater than the preset placement interval threshold is because when the placement times of each NFC tag are staggered and the time interval is large enough, each NFC tag can be distinguished in time sequence. At this time, when the sensor group detects a decrease in the number, the tag removal event is combined with the tag independently monitored by each sensing area. The target NFC tag that has been removed can be uniquely and accurately identified. This avoids the erroneous removal of tag information due to the inability to accurately distinguish the tag identity when multiple tags are placed at similar times or at the same time, thus ensuring the accuracy of the identification update data.
[0057] For example, when the placement times of each tag are different, and the absolute value of the difference between the placement times of any pair of tags is greater than a preset placement interval threshold, it shows that the target NFC tag that has been removed can be accurately identified. Therefore, the card reader can be left unactivated, thereby reducing power consumption. Furthermore, in this case, the target NFC tag removed from the card reader is acquired, and the NFC identification data of the card reader is also acquired.
[0058] If two tags have the same placement time, and / or the absolute value of the difference between the placement times of any two tags is less than or equal to a preset placement interval threshold, the reader's data reading function is activated so that the reader can read all NFC tags placed on the reader and obtain tag reading data; the tag reading data is uploaded to the cloud that is connected to the NFC recognition device so that the cloud can update the historical reading data uploaded to the cloud by the NFC recognition device based on the tag reading data.
[0059] In a feasible embodiment, step A20 further includes steps A21 to A23: Step A21: Obtain the recognition completion time of each NFC tag recognized in the card reader; Step A22: For each tag placement time, determine the target identification completion time from each identification completion time that has a difference from the tag placement time that is less than a preset adjacent time threshold and is later in time than the tag placement time, and determine the NFC tag corresponding to the target identification completion time as the NFC tag placed on the object sensor corresponding to the tag placement time. It should be noted that each NFC tag has a corresponding identification completion time, which refers to the moment when the reader completes the data reading operation of the NFC tag. The preset adjacent time threshold is a pre-set time difference value that can be used to determine whether the identification completion time and the tag placement time belong to the same NFC tag. The preset adjacent time threshold can be set based on actual conditions, and this embodiment does not impose specific limitations on it, such as setting it based on the reader's reading speed.
[0060] The target identification completion time refers to the identification completion time selected from all identification completion times for each tag placement time that is later than the tag placement time and whose time difference with the tag placement time is less than a preset adjacent time threshold. The NFC tag corresponding to the target identification completion time refers to the NFC tag that completes the data reading operation at the target identification completion time.
[0061] The reason for identifying the NFC tag that completes the data reading operation at the moment of target identification as the NFC tag placed on the object sensor corresponding to the tag placement moment is that by matching the time, a correspondence can be established between the object placement event recorded by the object sensor in each sensing area and the NFC tag identified by the card reader, thereby clarifying which NFC tag is placed at each sensing position.
[0062] Step A23: In the sensor group, identify the target sensor that detected the tag removal event, and use the NFC tag placed in the sensing area of the target sensor as the target NFC tag.
[0063] It's important to note that a tag removal event refers to the trigger signal generated when the object sensor detects that an NFC tag previously placed on its sensing area has been removed. The object sensor can be a pressure sensor or an infrared sensor. If the infrared sensor detects an increase in light flux, it can be considered that a tag removal event has been detected; similarly, if the pressure sensor detects a decrease in pressure, it can be considered that a tag removal event has been detected. The target sensor refers to the object sensor in the sensor group that detected the tag removal event.
[0064] If multiple tag removal events exist, the target sensor for each detected tag removal event is determined, and the NFC tags that were originally matched by time on each target sensor are taken as the corresponding target NFC tags and removed.
[0065] For example, the identification completion time of each NFC tag identified in the card reader is obtained. For each tag placement time, a target identification completion time that is later than the tag placement time and whose difference is less than a preset adjacent time threshold is selected from the identification completion times. The NFC tag corresponding to the target identification completion time is determined as the NFC tag placed on the object sensor corresponding to the tag placement time, thereby establishing a one-to-one correspondence between the sensing area where the object sensor is located and the NFC tag in each sensing area. When the sensor group detects a tag removal event, for each tag removal event detected by the sensor group, the target sensor that detected the tag removal event is determined in the sensor group. For each target sensor, the NFC tag placed in the sensing area where the target sensor is located is taken as the target NFC tag.
[0066] This embodiment can accurately establish the association between the sensing area where the object sensor is located and the NFC tag placed on its sensing area by matching the time of tag placement with the time of recognition completion. It can quickly and accurately locate the target NFC tag that has been moved when the number of tags decreases. In this way, without activating the data reading function, the recognition status of the NFC tag stored locally by the NFC recognition device can be consistent with the actual placement status of the NFC tag. It also makes it easier to ensure that the data read by each card reader stored in the cloud is consistent with the actual placement status of the NFC tag on each card reader.
[0067] Step A30: Remove the tag information corresponding to the target NFC tag from the identification data to obtain the identification update data. Upload the identification update data to the cloud that is connected to the NFC identification device so that the cloud can update the historical reading data uploaded to the cloud by the NFC identification device based on the identification update data.
[0068] It should be noted that the identification update data is the tag information obtained after removing the tag information corresponding to the removed target NFC tag from the NFC identification data, which reflects the tag information currently stored in the reader's remaining valid NFC tags.
[0069] For example, when there are one or more target NFC tags, for each target NFC tag, the tag information corresponding to each target NFC tag is removed from the NFC identification data containing all identified tag information, resulting in identification update data containing only the currently remaining NFC tags. The identification update data is then uploaded to the cloud connected to the NFC identification device. The cloud updates the historical reading records corresponding to the card reader based on the uploaded identification update data, ensuring that the data stored in the cloud is consistent with the tag information currently actually retained by the card reader, thus guaranteeing accurate data synchronization.
[0070] This embodiment, when the card reader is equipped with a sensor group, can detect changes in the number of NFC tags. Upon detecting a decrease, and considering the time intervals between tag placements, the tag information corresponding to the removed target NFC tag is removed from the NFC identification data and uploaded to the cloud only when the placement times are staggered and sufficiently large. This avoids erroneous cloud data updates due to the inability to distinguish the specific removed object when multiple tags are placed too close together. It ensures a high degree of consistency between the cloud-read data and the actual placement, while avoiding the activation of high-power data reading functions to confirm the removal of the target. It maintains low-power operation while ensuring consistency between the data read by each card reader stored in the cloud and the actual placement of NFC tags on each card reader.
[0071] Furthermore, based on the above embodiments of this application, in another embodiment of this application, the same or similar content as the above embodiments can be referred to the above description, and will not be repeated hereafter. Based on this, refer to... Figure 2 The control method for the NFC identification device also includes steps X10 to X20: Step X10: When the NFC identification device includes multiple card readers and the multiple card readers are in a preset serial operation mode, if there is a dormant card reader in the NFC identification device with the data reading function turned off, the dormant card reader is removed from the preset cyclic polling sequence to obtain the target cyclic polling sequence. It should be noted that the preset serial operation mode refers to the mode in which multiple card readers are controlled to switch to the card reading state in sequence, and only one card reader is in the card reading state at any given time; the preset cyclic polling sequence is a sorting sequence of multiple card readers arranged in a set order, which is used to determine the order in which each card reader switches to the card reading state.
[0072] A dormant reader refers to a reader that has disabled data reading but retains tag count detection. In this embodiment, the number of NFC tags can be detected by a sensor array on the dormant reader. The target cyclic polling sequence is an updated sequence obtained by removing the dormant reader from the preset cyclic polling sequence. Since the dormant reader has disabled data reading and does not need to participate in the card reading polling, removing it from the preset cyclic polling sequence reduces invalid polling, shortens the overall polling cycle, reduces overall device power consumption, and avoids unnecessary state switching of the dormant reader.
[0073] Step X20: According to the target cyclic polling sequence, control the card readers (excluding the sleep card readers) among the multiple card readers to switch to the card reading state in sequence; The preset serial operation mode is a mode that controls multiple card readers to switch to the card reading state in sequence, and the preset cyclic polling sequence is a sorting sequence of multiple card readers.
[0074] In this embodiment, when the NFC identification device includes multiple card readers and these card readers are in a preset serial operation mode (i.e., controlling multiple card readers to switch to the card reading state in sequence, with only one card reader working at a time), if there are dormant card readers with their data reading function disabled, these dormant card readers are removed from the preset cyclic polling sequence to obtain the target cyclic polling sequence. The card readers in the target cyclic polling sequence are all card readers with their data reading function not disabled. Then, according to the target cyclic polling sequence, the card readers other than the dormant card readers are controlled to switch to the card reading state in sequence, and the polling card reading operation is executed cyclically.
[0075] This embodiment eliminates dormant readers and generates a target cyclic polling sequence in a scenario where multiple readers are running serially. This avoids invalid polling of dormant readers that have disabled data reading, reduces polling steps, shortens the overall polling cycle, and effectively reduces the overall power consumption of the NFC recognition device. It also balances power consumption control and card reading efficiency in multi-reader scenarios.
[0076] In one embodiment, each card reader is configured with a sensor group; the method for identifying NFC devices further includes steps X30 to X60: Step X30: For any dormant card reader, if the sensor group detects an increase in the number of NFC tags placed on the dormant card reader, stop executing the step of controlling the card readers other than the dormant card reader to enter the card reading state in sequence according to the target cyclic polling sequence. It should be noted that when the sleep reader has disabled data reading but retains tag quantity detection, the sensor group can continuously monitor changes in the number of NFC tags on the reader. In this embodiment, the quantity change includes both an increase and a decrease in the number of tags. When the sensor group detects an object placement event on any sensing area through the object sensor, it can determine that an increase in the number has occurred. If the sensor group detects an increase in the number of NFC tags placed on the sleep reader, it stops controlling the non-sleep reader to sequentially enter the card reading state according to the target cyclic polling sequence.
[0077] If the sensor group detects a decrease in the number of NFC tags placed on the sleep reader, and the placement time of each NFC tag identified by the sleep reader is different, the process continues to execute the step of controlling the readers other than the sleep reader to sequentially enter the reading state according to the target cyclic polling sequence. If the sensor group detects a decrease in the number of NFC tags placed on the sleep reader, and the placement time of each NFC tag identified by the sleep reader is the same, or the difference in placement time is less than or equal to a preset placement interval threshold, the process of controlling the readers other than the sleep reader to sequentially enter the reading state according to the target cyclic polling sequence stops. Additionally, in this embodiment, if the number of NFC tags identified by the sleep reader is 1, the data reading function of the sleep reader may not need to be activated if a decrease in the number of sleep readers is subsequently detected.
[0078] The reason for stopping the execution of the step of controlling the non-sleep card readers to enter the card reading state in sequence according to the target cyclic polling sequence is to prioritize responding to the event of the change in the number of tags on the sleep card readers before the current polling cycle has ended, so as to avoid delaying the reading response to newly placed tags due to continuing to poll in the original sequence (target cyclic polling sequence).
[0079] Step X40: Identify the dormant card reader that detects a change in the number of NFC tags as the target recovery card reader, and activate the data reading function of the target recovery card reader so that the target recovery card reader enters the card reading state; Step X50: Add the target recovery reader to the target cyclic polling sequence to update the target cyclic polling sequence; It should be noted that a target recovery reader refers to a dormant reader that needs to resume data reading function because it detects a change in the number of placed NFC tags through its own configured sensor group. Adding this target recovery reader to the target cyclic polling sequence to update the sequence is necessary because the NFC identification device has already removed all dormant readers from the preset cyclic polling sequence, and this target recovery reader needs to re-participate in the polling. Therefore, adding the target recovery reader to the target cyclic polling sequence allows it to re-participate in the polling and avoids ineffectively adding other dormant readers that are still in a state of disabled data reading back into the sequence.
[0080] Step X60: After the target recovery card reader finishes reading the NFC tag placed on the target recovery card reader, the card readers present in the updated target cyclic polling sequence are controlled to switch to the card reading state in sequence according to the updated target cyclic polling sequence.
[0081] It should be noted that after the target recovery reader finishes reading the NFC tag placed on itself, the reader in the updated target cyclic polling sequence is controlled to switch to the reading state in sequence. This is to ensure that the recovery reader completes the data reading first, and then resumes normal polling. This ensures that the newly added tag data is acquired in a timely manner without affecting normal polling. In other words, after the target recovery reader finishes reading the NFC tag placed on it, the reader in the updated target cyclic polling sequence is controlled to switch to the reading state in sequence according to the updated target cyclic polling sequence.
[0082] For example, a dormant reader that detects an increase in the number of tags is identified as a target recovery reader. If a dormant reader detects a decrease in the number of tags, and the tags placed by the dormant reader with the decrease in the number of tags have the same placement time or the difference between any two tags' placement times is less than a preset placement interval threshold, then the dormant reader is identified as a target recovery reader. If there are multiple target recovery readers, all target recovery readers are added to the target cyclic polling sequence to update the target cyclic polling sequence. The data reading function of each target recovery reader is activated sequentially to enable the target recovery readers to enter the card reading state. After multiple target recovery readers have completed the data card reading operation, the readers in the updated target cyclic polling sequence are controlled to switch to the card reading state sequentially according to the updated target cyclic polling sequence.
[0083] This embodiment ensures that the dormant reader can be activated in a timely manner when a change in the number of tags is detected, and the reading operation can be completed first, avoiding the omission of the latest NFC tags. By updating the target cyclic polling sequence, it ensures that the reader with the data reading function activated can participate normally in subsequent polling, while avoiding the re-inclusion of dormant readers that have not been restored in the polling, so as to reduce power consumption.
[0084] In one feasible embodiment, please refer to Figure 3 The control method for the NFC identification device also includes steps Y10 to Y20: Step Y10: When the NFC identification device is equipped with a storage box, the storage box includes an openable and closable storage lid, and the storage lid is equipped with a lid opening and closing detection sensor, and the card reader included in the NFC identification device is placed inside the storage box, if a closing event is detected by the lid opening and closing detection sensor, the card reader is controlled to enter a standby state after a preset closing time. The standby state indicates that the card reader disables the data reading function and disables the tag quantity detection function. It should be noted that a storage box refers to a container used to house a card reader, providing a fixed space for the reader; a storage lid refers to the opening and closing structure of the storage box, used to seal the opening. For example, the internal structure of the storage box can be a stepped structure, with a card reader installed on each level.
[0085] A lid opening / closing detection sensor is a sensing element installed on the lid to detect whether the lid is in an open or closed state. The lid opening / closing detection sensor can be a Hall effect sensor or a pressure sensor, etc., and this embodiment does not specifically limit it.
[0086] A lid closing event refers to the trigger signal generated when the lid opening / closing detection sensor detects that the lid has switched from an open state to a closed state. The preset closing time is a pre-set time delay value, which is set to wait for this time after detecting a lid closing event before controlling the card reader to enter standby mode. The purpose is to avoid the card reader frequently entering and exiting standby mode due to the user's operation of briefly closing and immediately opening the lid. The preset closing time can be set based on actual conditions, and this embodiment does not impose a specific limitation on it.
[0087] Standby mode refers to a low-power operating state in which the card reader simultaneously disables data reading and tag count detection functions, resulting in lower power consumption compared to the sleep mode which retains tag count detection.
[0088] Step Y20: If the cover opening and closing detection sensor detects an opening event, the reader is controlled to enable the tag quantity detection function, and the process returns to the step of obtaining the current number of NFC tags currently recognized by the reader.
[0089] It should be noted that the "lid opening event" refers to the trigger signal generated when the lid opening / closing detection sensor detects that the lid has switched from a closed state to an open state. After detecting the lid opening event, the step of controlling the card reader to activate the tag quantity detection function and then returning to the step of obtaining the current number of tags recognized is because opening the lid indicates that the user may be about to place or remove tags. At this time, it is necessary to restore the card reader's ability to monitor the number of tags so that it can subsequently decide whether to activate the card reader's data reading function based on changes in the number of tags. This allows the card reader to return from standby mode to the state where the tag quantity detection function is activated in advance when the user opens the lid to prepare for the operation.
[0090] For example, if an NFC recognition device is equipped with a storage box with an openable and closable lid, and a lid opening / closing detection sensor is installed on the lid, and the card reader of the NFC recognition device is placed in the storage box, when the lid opening / closing detection sensor detects a closing event (the lid changes from open to closed), after a preset closing time, all card readers in the NFC recognition device are controlled to enter standby mode. At this time, the card readers disable data reading and tag count detection functions. When the lid opening / closing detection sensor detects an opening event (the lid changes from closed to open), the card readers in the NFC recognition device are controlled to enable tag count detection function, and the process returns to the step of obtaining the current number of NFC tags currently recognized by the card reader.
[0091] Since the NFC tag in this embodiment can be built into the doll, and in some cases the doll is placed in a storage box that can hold multiple card readers or multiple dolls, when the storage box lid is closed, no NFC tags will be added or removed from the card readers. Therefore, when the lid is closed, each card reader can be put into standby mode, thereby reducing power consumption. When the lid is open, the tag count detection function of each card reader can be activated to detect increases or decreases in the tag count.
[0092] This application also provides a control device, please refer to... Figure 4 The NFC identification device includes a card reader, and the control device includes: The acquisition module 10 is used to acquire the current number of NFC tags currently identified by the card reader; The control module 20 is used to disable the data reading function of the card reader while retaining the tag number detection function of the card reader, so as to monitor the number of NFC tags placed on the card reader, when the current number of identified tags remains unchanged and continues to be stable for a preset time.
[0093] In one embodiment, the control module 20 is further configured to: When an increase in the number of NFC tags placed on the card reader is detected, the data reading function of the card reader is activated.
[0094] In one embodiment, the control module 20 is further configured to: The reader reads all NFC tags placed on it to obtain tag reading data. The tag reading data is uploaded to the cloud that is connected to the NFC identification device, so that the cloud can update the historical reading data uploaded to the cloud by the NFC identification device based on the tag reading data.
[0095] In one embodiment, the card reader includes multiple sensing areas and a sensor group, the sensor group including multiple object sensors, and each sensing area is provided with an object sensor; the control module 20 is further configured to: When the number of NFC tags placed in the card reader is detected to be decreasing by the sensor group, the tag placement time of each NFC tag that has been identified in the card reader is obtained; When the placement times of the tags are different and the absolute value of the difference between the placement times of any pair of tags is greater than a preset placement interval threshold, the target NFC tag removed from the card reader is obtained, and the NFC identification data of the card reader is obtained, wherein the NFC identification data includes tag information of each NFC tag that has been identified by the card reader; The tag information corresponding to the target NFC tag is removed from the identification data to obtain identification update data. The identification update data is then uploaded to the cloud that is connected to the NFC identification device, so that the cloud can update the historical read data uploaded to the cloud by the NFC identification device based on the identification update data.
[0096] In one embodiment, the control module 20 is further configured to: Obtain the identification completion time of each NFC tag identified in the card reader; For each tag placement time, a target identification completion time is determined from each identification completion time that has a difference from the tag placement time that is less than a preset adjacent time threshold and is later in time than the tag placement time. The NFC tag corresponding to the target identification completion time is determined as the NFC tag placed on the object sensor corresponding to the tag placement time. In the sensor group, the target sensor that detects the tag removal event is identified, and the NFC tag placed in the sensing area of the target sensor is taken as the target NFC tag.
[0097] In one embodiment, the control module 20 is further configured to: When the NFC identification device includes multiple card readers and the multiple card readers are in a preset serial operation mode, if there is a dormant card reader in the NFC identification device that has the data reading function turned off, the dormant card reader is removed from the preset cyclic polling sequence to obtain the target cyclic polling sequence. According to the target cyclic polling sequence, control the card readers, except for the dormant card reader, to switch to the card reading state in sequence; The preset serial operation mode is a mode that controls the multiple card readers to switch to the card reading state sequentially, and the preset cyclic polling sequence is the sorting sequence of the multiple card readers.
[0098] In one embodiment, each of the card readers is configured with a sensor group; the control module 20 is further configured to: For any of the dormant card readers, if the sensor group detects an increase in the number of NFC tags placed on the dormant card reader, the step of controlling the card readers other than the dormant card reader to enter the card reading state in sequence according to the target cyclic polling sequence is stopped. A dormant reader that detects a change in the number of NFC tags is identified as a target recovery reader. The data reading function of the target recovery reader is activated so that the target recovery reader enters the card reading state. Add the target recovery reader to the target cyclic polling sequence to update the target cyclic polling sequence; After the target recovery card reader finishes reading the NFC tag placed on the target recovery card reader, the card readers present in the updated target cyclic polling sequence are controlled to switch to the card reading state in sequence according to the updated target cyclic polling sequence.
[0099] In one embodiment, the control module 20 is further configured to: When the NFC identification device is equipped with a storage box, the storage box includes an openable and closable lid, the lid is equipped with a lid opening and closing detection sensor, and the card reader included in the NFC identification device is placed inside the storage box, if a lid closing event is detected by the lid opening and closing detection sensor, the card reader is controlled to enter a standby state after a preset closing time. The standby state indicates that the card reader disables the data reading function and disables the tag quantity detection function. If the cover opening and closing detection sensor detects an opening event, it controls the card reader to enable the tag quantity detection function and returns to the step of obtaining the current number of NFC tags currently recognized by the card reader.
[0100] The control device provided in this application adopts the control method of the NFC identification device in the above embodiments, aiming to solve the technical problem of high power consumption in NFC identification. Compared with the prior art, the beneficial effects of the control method of the NFC identification device provided in this application are the same as those of the control method of the NFC identification device provided in the above embodiments, and other technical features in this control device are the same as those disclosed in the methods of the above embodiments, and will not be repeated here.
[0101] This application provides an NFC identification device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, which are executed by the at least one processor to enable the at least one processor to perform the control method of the NFC identification device in the first embodiment described above.
[0102] The following is for reference.Figure 5 The diagram illustrates a structural schematic suitable for implementing the NFC identification device in the embodiments of this application. The NFC identification device in the embodiments of this application may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Description), PMPs (Portable Media Players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 5 The NFC identification device shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of this application.
[0103] like Figure 5 As shown, the NFC identification device may include a processing unit 1001 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in the read-only memory 1002 or a program loaded from the storage device 1003 into the random access memory 1004. The random access memory 1004 also stores various programs and data required for the operation of the NFC identification device. The processing unit 1001, the read-only memory 1002, and the random access memory 1004 are interconnected via a bus 1005. An input / output interface 1006 is also connected to the bus. Typically, the following systems can be connected to the input / output interface 1006: input devices 1007 including, for example, touchscreens, touchpads, keyboards, mice, image sensors, microphones, accelerometers, gyroscopes, etc.; output devices 1008 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 1003 including, for example, magnetic tapes, hard disks, etc.; and communication devices 1009. Communication device 1009 allows NFC identification devices to communicate wirelessly or wiredly with other devices to exchange data. While various systems are shown in the figures, it should be understood that implementation or possession of all shown systems is not required. More or fewer systems may be implemented alternatively.
[0104] Specifically, according to the embodiments disclosed in this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments disclosed in this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device, or installed from storage device 1003, or installed from read-only memory 1002. When the computer program is executed by processing device 1001, it performs the functions defined in the methods of the embodiments disclosed in this application.
[0105] The NFC identification device provided in this application, employing the control method of the NFC identification device in the above embodiments, can solve the technical problem of high power consumption in NFC identification. Compared with the prior art, the beneficial effects of the NFC identification device provided in this application are the same as those of the control method of the NFC identification device provided in the above embodiments, and other technical features in this NFC identification device are the same as those disclosed in the method of the previous embodiment, and will not be repeated here.
[0106] It should be understood that the various parts disclosed in this application can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in any suitable manner in one or more embodiments or examples.
[0107] The above are merely specific embodiments of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
[0108] This embodiment provides a computer-readable storage medium having computer-readable program instructions stored thereon, which are used to execute the control method of the NFC identification device in the first embodiment described above.
[0109] The computer-readable storage medium provided in this application embodiment may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor devices, apparatuses, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable EPROM (Electrical Programmable Read Only Memory) or flash memory, optical fiber, portable compact disk CD-ROM (compact discread-only memory), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution device, apparatus, or apparatus. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination thereof.
[0110] The aforementioned computer-readable storage medium may be included in the NFC identification device; or it may exist independently and not be assembled into the NFC identification device.
[0111] The aforementioned computer-readable storage medium carries one or more programs that, when executed by an NFC identification device, cause the NFC identification device to: obtain the current number of NFC tags currently identified by the reader; and, while keeping the current number of identified tags constant for a preset stable duration, disable the data reading function of the reader and retain the tag count detection function of the reader to monitor the number of NFC tags placed on the reader.
[0112] Computer program code for performing the operations of this disclosure can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, and conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a LAN (local area network) or WAN (wide area network)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0113] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of devices, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented using a dedicated hardware-based device that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0114] The modules described in the embodiments of this disclosure can be implemented in software or hardware. The names of the modules do not necessarily limit the functionality of the unit itself.
[0115] The computer-readable storage medium provided in this application embodiment stores computer-readable program instructions for executing the control method of the above-described NFC identification device, aiming to solve the technical problem of high power consumption in NFC identification. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application embodiment are the same as the beneficial effects of the control method of the NFC identification device provided in the above embodiments, and will not be repeated here.
[0116] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the control method for the NFC identification device as described above.
[0117] The computer program product provided in this application aims to solve the technical problem of high power consumption in NFC identification. Compared with the prior art, the beneficial effects of the computer program product provided in this application are the same as the beneficial effects of the control method for the NFC identification device provided in the above embodiments, and will not be repeated here.
[0118] The above are merely preferred embodiments of the present application and do not limit the patent scope of the present application. Any equivalent structural or procedural transformations made using the description and drawings of the present application, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of the present application.
Claims
1. A control method for an NFC identification device, characterized in that, The NFC identification device includes a card reader, and the method includes: Obtain the current number of NFC tags currently recognized by the card reader; If the current number of identified tags remains unchanged and continues to remain stable for a preset time, the data reading function of the card reader is turned off, while the tag number detection function of the card reader is retained to monitor the number of NFC tags placed on the card reader.
2. The control method for the NFC identification device as described in claim 1, characterized in that, Following the step of retaining the tag quantity detection function of the card reader, the following is also included: When an increase in the number of NFC tags placed on the card reader is detected, the data reading function of the card reader is activated.
3. The control method for the NFC identification device as described in claim 2, characterized in that, The steps following activating the data reading function of the card reader also include: The reader reads all NFC tags placed on it to obtain tag reading data. The tag reading data is uploaded to the cloud that is connected to the NFC identification device, so that the cloud can update the historical reading data uploaded to the cloud by the NFC identification device based on the tag reading data.
4. The control method for the NFC identification device as described in claim 1, characterized in that, The card reader includes multiple sensing areas and a sensor group, the sensor group including multiple object sensors, and each sensing area is provided with an object sensor; after the step of retaining the tag quantity detection function of the card reader, the following is also included: When the number of NFC tags placed in the card reader is detected to be decreasing by the sensor group, the tag placement time of each NFC tag that has been identified in the card reader is obtained; When the placement times of the tags are different and the absolute value of the difference between the placement times of any pair of tags is greater than a preset placement interval threshold, the target NFC tag removed from the card reader is obtained, and the NFC identification data of the card reader is obtained, wherein the NFC identification data includes tag information of each NFC tag that has been identified by the card reader; The tag information corresponding to the target NFC tag is removed from the identification data to obtain identification update data. The identification update data is then uploaded to the cloud that is connected to the NFC identification device, so that the cloud can update the historical read data uploaded to the cloud by the NFC identification device based on the identification update data.
5. The control method for the NFC identification device as described in claim 4, characterized in that, The step of acquiring the target NFC tag removed from the reader includes: Obtain the identification completion time of each NFC tag identified in the card reader; For each tag placement time, a target identification completion time is determined from each identification completion time that has a difference from the tag placement time that is less than a preset adjacent time threshold and is later in time than the tag placement time. The NFC tag corresponding to the target identification completion time is determined as the NFC tag placed on the object sensor corresponding to the tag placement time. In the sensor group, the target sensor that detects the tag removal event is identified, and the NFC tag placed in the sensing area of the target sensor is taken as the target NFC tag.
6. The control method for the NFC identification device as described in claim 1, characterized in that, The control method for the NFC identification device also includes: When the NFC identification device includes multiple card readers and the multiple card readers are in a preset serial operation mode, if there is a dormant card reader in the NFC identification device that has the data reading function turned off, the dormant card reader is removed from the preset cyclic polling sequence to obtain the target cyclic polling sequence. According to the target cyclic polling sequence, control the card readers, except for the dormant card reader, to switch to the card reading state in sequence; The preset serial operation mode is a mode that controls the multiple card readers to switch to the card reading state sequentially, and the preset cyclic polling sequence is the sorting sequence of the multiple card readers.
7. The control method for the NFC identification device as described in claim 6, characterized in that, Each of the card readers is equipped with a sensor array; the method for the NFC identification device further includes: For any of the dormant card readers, if the sensor group detects an increase in the number of NFC tags placed on the dormant card reader, the step of controlling the card readers other than the dormant card reader to enter the card reading state in sequence according to the target cyclic polling sequence is stopped. A dormant reader that detects a change in the number of NFC tags is identified as a target recovery reader. The data reading function of the target recovery reader is activated so that the target recovery reader enters the card reading state. Add the target recovery reader to the target cyclic polling sequence to update the target cyclic polling sequence; After the target recovery card reader finishes reading the NFC tag placed on the target recovery card reader, the card readers present in the updated target cyclic polling sequence are controlled to switch to the card reading state in sequence according to the updated target cyclic polling sequence.
8. The control method for the NFC identification device as described in claim 1, characterized in that, The control method for the NFC identification device also includes: When the NFC identification device is equipped with a storage box, the storage box includes an openable and closable lid, the lid is equipped with a lid opening and closing detection sensor, and the card reader included in the NFC identification device is placed inside the storage box, if a lid closing event is detected by the lid opening and closing detection sensor, the card reader is controlled to enter a standby state after a preset closing time. The standby state indicates that the card reader disables the data reading function and disables the tag quantity detection function. If the cover opening and closing detection sensor detects an opening event, it controls the card reader to enable the tag quantity detection function and returns to the step of obtaining the current number of NFC tags currently recognized by the card reader.
9. An NFC identification device, characterized in that, The NFC identification device includes: At least one processor; and a memory communicatively connected to the at least one processor; The memory stores instructions executable by the at least one processor, which, when executed by the at least one processor, enables the at least one processor to perform the steps of the control method for the NFC identification device according to any one of claims 1 to 8.
10. A storage medium, characterized in that, The storage medium is a computer-readable storage medium, and the computer-readable storage medium stores a program implementing a control method for an NFC identification device. The program implementing the control method for an NFC identification device is executed by a processor to implement the steps of the control method for an NFC identification device as described in any one of claims 1 to 8.