Power consumption control method, system and readable storage medium
By dynamically adjusting the transmission power of the near-field communication reader to match the number of NFC tags in the reading area, the power consumption redundancy problem of the reader is solved, power consumption and load are matched, and the battery life and recognition reliability of the device are improved.
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-03
AI Technical Summary
Existing near-field communication reading devices suffer from power redundancy issues during actual operation, affecting device battery life and user experience.
By obtaining the number of NFC tags in the reading area, the transmission power is dynamically adjusted to match the number of tags, thereby achieving power-load matching and reducing power consumption.
While maintaining the identification function, the power consumption of near-field communication reading devices is reduced, and the device's battery life and identification reliability are improved.
Smart Images

Figure CN122340587A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of near-field communication technology, and in particular to a power consumption control method, system, and readable storage medium. Background Technology
[0002] Near Field Communication (NFC), a short-range, high-frequency wireless communication technology, has been widely applied in numerous scenarios such as mobile payment, electronic ticketing, smart homes, and IoT device interaction due to its advantages of being contactless, low-power, and highly secure. A typical NFC system mainly consists of a reader (such as an NFC card reader) and a tag (such as an RFID card or tag chip). The reader provides power to the tag by emitting radio frequency signals and establishes a communication link with it to achieve reliable data transmission.
[0003] Currently, near-field communication (NFC) reading devices generally operate with a fixed transmit power. During the device design phase, manufacturers typically preset the transmit power parameters based on the most demanding operating conditions (such as the maximum number of tags) to ensure stable tag identification even under various extreme conditions. This power value remains constant during subsequent use of the device.
[0004] However, the aforementioned constant power operation mode has significant power redundancy issues in practical applications. This problem is particularly prominent for battery-powered portable devices, directly affecting the device's battery life and user experience.
[0005] Therefore, how to reduce the power consumption waste of near-field communication reading devices during actual operation has become an urgent technical problem to be solved. Summary of the Invention
[0006] The main objective of this application is to provide a power consumption control method, system, and readable storage medium, aiming to solve the technical problem of how to reduce power consumption waste in the actual operation of near-field communication reading devices.
[0007] To achieve the above objectives, this application provides a power consumption control method applied to a near-field communication system, the near-field communication system including at least one near-field communication readout device, the power consumption control method comprising the following steps:
[0008] Obtain the number of NFC tags within the reading area; The target transmission power of the near-field communication reading device is determined based on the number of NFC tags, wherein the target transmission power is positively correlated with the number of NFC tags; The transmission power of the near-field communication reading device is adjusted to the target transmission power, so that the near-field communication reading device transmits radio frequency signals based on the target transmission power, identifies NFC tags in the reading area, and obtains the identification information of the NFC tags.
[0009] In one embodiment, the step of determining the target transmit power of the near-field communication reading device based on the number of NFC tags includes: Based on a preset mapping relationship between the number of tags and the transmission power, the reference transmission power corresponding to the number of NFC tags is found; wherein, the more tags in the mapping relationship, the greater the corresponding reference transmission power. The target transmission power of the near-field communication reading device is determined based on the reference transmission power.
[0010] In one embodiment, the step of determining the target transmit power of the near-field communication readout device based on the reference transmit power includes: Obtain the current available power margin and the preset surplus transmission power corresponding to the number of NFC tags, wherein the current available power margin refers to the additional power resources that the near-field communication reading device can call upon when operating at the baseline transmission power; If the current available power margin is greater than or equal to the preset surplus transmission power, then the sum of the reference transmission power and the preset surplus transmission power is determined as the target transmission power of the near-field communication reading device. If the current available power margin is less than the preset surplus transmission power, then the reference transmission power is determined as the target transmission power of the near-field communication reading device.
[0011] In one embodiment, the near-field communication system includes multiple near-field communication reading devices, each near-field communication reading device corresponding to a reading area. After the step of obtaining the current available power margin of the near-field communication reading device and the preset surplus transmission power corresponding to the number of NFC tags, the method further includes: Based on the NFC tag quantity in descending order, iterate through each NFC tag quantity sequentially; The number of NFC tags traversed is identified as the current number of NFC tags, and the near-field communication reading device corresponding to the number of NFC tags traversed is identified as the current near-field communication reading device; Determine whether the current available power margin is greater than or equal to the preset surplus transmit power corresponding to the current number of NFC tags; If so, the sum of the reference transmission power corresponding to the current number of NFC tags and the preset surplus transmission power is determined as the target transmission power of the current near-field communication reading device, and the preset surplus transmission power is subtracted from the current available power margin to update the current available power margin; If not, the reference transmit power corresponding to the current number of NFC tags is determined as the target transmit power of the current near-field communication reading device.
[0012] In one embodiment, the near-field communication system includes multiple near-field communication readout devices, each near-field communication readout device corresponding to a near-field reading area, and the step of determining the target transmission power of the near-field communication readout device based on the reference transmission power includes: Obtain the current available power margin, wherein the current available power margin refers to the additional power resources that the near-field communication reading device can call upon when operating at the reference transmission power; The power margin allocation ratio is determined based on the number of NFC tags acquired by each of the near-field communication reading devices; Based on the power margin allocation ratio and the current available power margin, the surplus power allocated to each near-field communication readout device is determined; For each near-field communication readout device, the sum of the reference transmit power corresponding to the near-field communication readout device and the surplus power allocated to the near-field communication readout device is determined as the target transmit power of the near-field communication readout device.
[0013] In one embodiment, prior to the step of obtaining the number of NFC tags within the reading area, the method further includes: During the initialization phase of the near-field communication system, the near-field communication reading device operates at the default transmission power corresponding to the preset maximum number of tags.
[0014] In one embodiment, the step of obtaining the number of NFC tags within the reading area includes: Polling and detecting NFC tags within the reading area; When it is detected that the number of tags in the recognition area no longer changes within a preset time period, it is determined that the number of tags has reached a stable state. The number of tags when a stable state is reached is recorded as the number of NFC tags within the reading area.
[0015] In one embodiment, after the step of obtaining the number of NFC tags within the reading area, the method further includes: If the number of NFC tags is greater than or equal to the preset upper limit of tag number, the near-field communication reading device is controlled to enter a low-power monitoring mode. In the low-power monitoring mode, the data reading function is turned off, but the tag number detection function is retained. When a decrease in the number of tags is detected, the low-power monitoring mode is exited, the data reading function is reactivated, and collision detection is performed on the remaining tags to confirm the current tag set.
[0016] In addition, to achieve the above objectives, this application also provides a near-field communication system, which includes a control unit and at least one near-field communication reading device; The near-field communication reading device is used to obtain the number of NFC tags within the reading area; The control unit is configured to determine the target transmission power of the near-field communication reading device based on the number of NFC tags, and adjust the transmission power of the near-field communication reading device to the target transmission power, wherein the target transmission power is positively correlated with the number of NFC tags; The near-field communication reading device is also used to transmit radio frequency signals based on the target transmission power, identify NFC tags in the reading area, and obtain the identification information of the NFC tags.
[0017] In addition, to achieve the above objectives, this application also provides a readable storage medium, which is a computer-readable storage medium, on which a computer program is stored, and the computer program is executed by a processor to implement the steps of the power consumption control method described above.
[0018] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the power consumption control method described above.
[0019] One or more technical solutions proposed in this application have at least the following technical effects: This application embodiment achieves reduced device power consumption by introducing a dynamic power adjustment mechanism linked to the number of tags. Specifically, the reading device first obtains the actual number of NFC tags within its reading area, then determines a target transmission power positively correlated with this number—that is, the fewer the tags, the lower the target transmission power. Finally, the reading device's transmission power is adjusted to this target value, and radio frequency signals are transmitted at this power to complete tag identification and information acquisition. Thus, by linking the transmission power to the actual number of NFC tags, the device can automatically reduce its transmission power when the number of NFC tags is low, thereby avoiding energy waste caused by constant high power. Simultaneously, when the number of NFC tags in the reading area increases, the power can be increased accordingly, ensuring that the reading device still has sufficient radio frequency field strength to stably identify all tags, without affecting the system's identification reliability due to reduced power consumption. Therefore, while maintaining the basic identification function of the near-field communication system, the transmission power is matched to the actual workload, reducing power consumption waste during actual operation of the near-field communication reading device. Attached Figure Description
[0020] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0021] 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.
[0022] Figure 1 This is a flowchart illustrating the first embodiment of the power consumption control method of this application; Figure 2 This is a schematic diagram of the target transmit power determination process according to an embodiment of the power consumption control method of this application; Figure 3 This is a schematic diagram of the surplus power allocation process involved in an embodiment of the power consumption control method of this application; Figure 4 This is a schematic diagram of the system architecture of the near-field communication system in the embodiments of this application; Figure 5 This is a schematic diagram of the device structure of the near-field communication reading device in the embodiments of this application.
[0023] The purpose, features, and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0024] To make the above-mentioned objects, features, and advantages of the present invention more apparent and understandable, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0025] When an NFC reader is constantly placing tags, it often needs to maintain a scanning state. When there are many tags or many detection areas, the system will generate unnecessary power consumption.
[0026] To address the aforementioned issues, the main solution of this application is as follows: First, obtain the number of NFC tags within the reading area; second, determine the target transmission power of the near-field communication (NFC) reading device based on the number of NFC tags, wherein the target transmission power is positively correlated with the number of NFC tags; third, adjust the transmission power of the NFC reading device to the target transmission power, so that the NFC reading device transmits radio frequency signals based on the target transmission power to identify the NFC tags within the reading area and obtain the identification information of the NFC tags.
[0027] This application obtains the actual number of NFC tags within its reading area using a reading device, then determines a target transmission power positively correlated with this number—the fewer the tags, the lower the target transmission power. Finally, the reading device's transmission power is adjusted to this target value, and radio frequency signals are transmitted at this power to complete tag identification and information acquisition. In this way, by linking the transmission power to the actual number of NFC tags, the device can automatically reduce its transmission power when the number of NFC tags is low, thus avoiding energy waste caused by constant high power. Simultaneously, when the number of NFC tags in the reading area increases, the power can be increased accordingly, ensuring that the reading device still has sufficient radio frequency field strength to stably identify all tags without affecting the system's identification reliability due to reduced power consumption. Therefore, while maintaining the basic identification function of the near-field communication system, the transmission power is matched to the actual workload, reducing power consumption waste during actual operation of the near-field communication reading device.
[0028] It should be noted that the execution subject of each embodiment of the power consumption control method of this application can be a near-field communication reading device capable of realizing the above functions, such as an NFC card reader, a handheld data collector, an in-vehicle NFC module, etc. The embodiments of the power consumption control method of this application do not impose specific limitations on this. For example, the following uses an NFC card reader as the execution subject to describe and illustrate each embodiment of the power consumption control method of this application.
[0029] Based on this, this application proposes a power consumption control method according to a first embodiment. In this embodiment, the power consumption control method is applied to a near-field communication system, which includes at least one near-field communication readout device. (Refer to...) Figure 1 As shown, the power consumption control method includes the following steps S10~S30: Step S10: Obtain the number of NFC tags in the reading area; The recognition area refers to the preset effective card reading range of a near-field communication (NFC) reader under normal operating conditions. This range is determined by the reader's antenna design, operating frequency, and initial configuration parameters. It typically manifests as a spatial area centered on the reader's antenna that can stably wake up and recognize NFC tags. This area is usually a fixed working range pre-set during the device design or installation phase based on application scenario requirements. Examples include the card reading area above a desktop card reader, the sensing area within a turnstile, the effective distance range for handheld terminals to swipe cards, and the placement area on a smart interactive toy base for recognizing NFC-enabled toys.
[0030] When acquiring the number of tags, the NFC reader emits an radio frequency signal within the reading area. It actively polls the backscatter responses of the tags within the area and uses an anti-collision algorithm (such as a time-slot-based anti-collision mechanism) to poll them one by one, counting the number of responding tags. Taking an NFC toy application scenario as an example, when multiple toys with built-in NFC tags are placed in the reading area (such as the base surface) of the toy base, the NFC reader inside the base emits an radio frequency signal to wake up the tags within each toy. It then uses an anti-collision algorithm (such as a time-slot-based anti-collision mechanism) to poll them one by one, counting the number of responding tags and recording the unique identifier of each toy tag.
[0031] Furthermore, to ensure counting accuracy, multiple scans can be performed and the average value taken, or the recognition range can be gradually expanded by adjusting the radio frequency field strength to cover the entire reading area.
[0032] In addition, the operation of obtaining the number of tags can be triggered at the start of each recognition task, or it can be executed periodically at preset time intervals, or it can be dynamically started by external events (such as detecting tags entering / leaving) to reflect the changes in the number of tags in the recognition area in real time.
[0033] Step S20: Determine the target transmission power of the near-field communication reading device based on the number of NFC tags, wherein the target transmission power is positively correlated with the number of NFC tags; After obtaining the current number of tags, the NFC reader determines the corresponding target transmission power based on a preset mapping relationship. This mapping relationship can take several forms: for example, a table can be preset to correspond to the number of tags and the transmission power value, with each range corresponding to an optimal power level; or a linear function formula can be used to calculate the target power value; or a non-linear curve can be used to adapt to specific antenna characteristics.
[0034] The mapping relationship is designed to comprehensively consider the reader's RF performance, antenna gain, tag sensitivity, and communication reliability requirements. This ensures that when the number of tags is small, the power is reduced to a minimum effective value to save energy, while the power is increased accordingly when the number of tags increases to maintain sufficient RF field strength coverage and signal-to-noise ratio, preventing tags from failing to wake up or data errors due to insufficient power. This mapping relationship can be embedded in the device firmware or customized by the user according to the application scenario.
[0035] For example, in an NFC doll application scenario, when only one doll is placed on the base, the card reader can adjust the power to a lower level to ensure stable communication with the doll while avoiding energy waste; when multiple dolls are placed on the base, the power is increased accordingly to ensure that each doll tag can be reliably woken up and identified.
[0036] Step S30: Adjust the transmission power of the near-field communication reading device to the target transmission power so that the near-field communication reading device transmits radio frequency signals based on the target transmission power, identifies the NFC tag in the reading area, and obtains the identification information of the NFC tag.
[0037] Once the target transmit power is determined, the NFC reader can adjust the current transmit power to the target value through its internal power adjustment module (such as a programmable gain amplifier, a bias circuit controlled by a digital-to-analog converter, or a pulse width modulation unit). The adjustment process can be smoothly transitioned to avoid RF transients, or it can directly switch to the target level.
[0038] Subsequently, the reader transmits a continuous radio frequency carrier at this power to provide operating power to the tags within the reading area and initiates the identification process according to the NFC communication protocol. Specifically, this may include: sending a request command, executing an anti-collision loop, selecting a single tag and performing authentication or reading operations, and finally obtaining the tag's identification information (such as a unique serial number, toy name, interaction data, etc.).
[0039] Taking the NFC doll scenario as an example, the card reader establishes communication with each doll tag with the adjusted power, reads the built-in identification information of each doll one by one, and uses it for subsequent interactive responses (such as generating story content, playing corresponding audio, triggering light effects, or recording collection status).
[0040] During the acquisition of identification information, if an abnormal tag response or communication failure is detected, a power fine-tuning or retry mechanism can be triggered to ensure the reliability of identification. Furthermore, after completing one round of identification, the system can return to step S10 to reacquire the number of tags, forming a dynamic closed-loop control that ensures the transmission power always matches the current workload.
[0041] Based on the first embodiment of this application, in the second embodiment of this application, the content that is the same as or similar to that in Embodiment 1 above can be referred to the above description, and will not be repeated hereafter. On this basis, refer to Figure 2 As shown, the step of determining the target transmit power of the near-field communication reading device based on the number of NFC tags includes: Step A10: Based on the preset mapping relationship between the number of tags and the transmission power, find the reference transmission power corresponding to the number of NFC tags; wherein, the more tags in the mapping relationship, the greater the corresponding reference transmission power; This preset mapping relationship can be a data structure or algorithm model pre-stored in the NFC reader, describing the correspondence between the number of tags and the required transmission power. Its design is based on the fact that the more tags there are, the more the reader needs to provide sufficient radio frequency field strength for each tag to maintain reliable communication, resulting in a greater overall energy demand. Therefore, the base transmission power should increase with the number of tags. Taking an NFC toy application scenario as an example, when the NFC reader on the toy base detects that only one toy is placed in the reading area, the base transmission power can be set to a lower value P1, only needing to provide energy for that single toy tag. When three toy tags are placed on the base simultaneously, the reader needs to wake up and poll all three tags at the same time. In this case, the base transmission power should be increased to P2 to ensure that each tag receives sufficient field strength response. When six toy tags are placed on the base, the base transmission power is further increased to P3 to cover a denser tag distribution.
[0042] The mapping relationship can take many forms, such as an interval mapping table, which divides the number of tags into several continuous intervals (e.g., 1, 2-3, 4-6, etc.), with each interval corresponding to a fixed reference power value; or it can use the linear function formula Pbase=Pmin+k×(N) 1), where N is the number of tags, Pmin is the minimum operating power, and k is a preset coefficient to achieve power output that changes continuously with the number of tags; a nonlinear curve can also be used to adapt to specific antenna characteristics or tag sensitivity distribution.
[0043] The NFC reader performs corresponding operations based on the preset mapping type: if it is a lookup table method, it locates the range to which the current number of tags belongs and reads the corresponding power value; if it is a function method, it substitutes the number of tags into the formula to calculate the baseline power value. This baseline power reflects the minimum or recommended power level required to maintain stable communication with the current number of tags.
[0044] Step A20: Determine the target transmission power of the near-field communication reading device based on the reference transmission power.
[0045] After obtaining the reference transmission power, the NFC reader can adaptively adjust the reference power based on its own hardware characteristics, current operating status, and application scenario requirements, and finally determine the target power actually used for transmission.
[0046] Optionally, if the reference power is within the reader's allowed operating range and there are no special restrictions, the reference transmission power can be directly determined as the target transmission power. For example, in an NFC doll scenario, when two dolls are placed on the base and the reference power P2 is within the device's adjustable range, the reader directly sets P2 as the target power. If the reference power exceeds the reader's maximum transmission capability or is lower than the minimum adjustable value, a limiting process can be performed to correct the target power to the device's supported limit value (such as maximum or minimum power). For readers with limited power adjustment steps, the reference power can be rounded to the nearest adjustable level to ensure that the target power falls within the actual adjustment accuracy range.
[0047] Furthermore, considering that environmental factors such as electromagnetic interference or the misalignment of the doll placement may affect communication quality, a preset power margin can be added to the base power to improve the reliability of identification. The base power can also be dynamically fine-tuned by combining parameters such as the communication success rate and signal strength indication in the previous identification process, so that the final target transmission power matches the current number of doll tags while taking into account the actual capabilities of the equipment and the needs of the application scenario.
[0048] In one possible implementation, refer to Figure 3 As shown, the step of determining the target transmission power of the near-field communication reading device based on the reference transmission power includes: Step B10: Obtain the current available power margin and the preset surplus transmission power corresponding to the number of NFC tags, wherein the current available power margin refers to the additional power resources that the near-field communication reading device can call upon when operating at the baseline transmission power; After the NFC reader obtains the baseline transmission power, to further improve communication reliability, it is considered whether to add a certain power margin based on the baseline power. To this end, the reader first obtains the current available power margin of the power module and the preset surplus transmission power corresponding to the current number of tags.
[0049] The current available power margin refers to the additional power resources that the power module can provide after the card reader has been allocated the base transmit power. This margin depends on the current total output capacity of the power supply, the power consumed, and the power consumption requirements of other components in the system. For example, a battery-powered portable card reader can provide a large margin when the battery is fully charged, but the margin is limited when the battery is low.
[0050] The preset surplus transmission power is an additional power value pre-set based on the number of tags to enhance communication stability. It is typically set such that the more tags there are, the more complex the mutual interference and energy competition become, potentially requiring more power margin to ensure reliable identification of each tag. Taking an NFC toy application scenario as an example, when multiple toys are placed on the base, the preset surplus transmission power can be set to a value positively correlated with the number of tags. For example, the margin is 0 for a single toy, ΔP1 for 2-3 toys, and ΔP2 for 4 or more toys, to cope with the energy demands when multiple tags respond simultaneously.
[0051] Step B20: If the current available power margin is greater than or equal to the preset surplus transmission power, then the sum of the reference transmission power and the preset surplus transmission power is determined as the target transmission power of the near-field communication reading device. The card reader compares the current available power margin with the preset surplus transmission power. If the available power margin is sufficient to support an additional preset surplus power on top of the base power, the base transmission power and the preset surplus transmission power are added together to obtain the final target transmission power. This means that while meeting basic communication requirements, the card reader proactively increases power redundancy to enhance the stability of the radio frequency field strength and its anti-interference capability, thereby improving the recognition success rate and efficiency in multi-tag scenarios.
[0052] For example, in an NFC toy scenario, if the toy base has sufficient battery power and a usable power margin of 50mW, and the preset surplus transmission power for the four toys currently placed is 30mW, the card reader will add the base power (e.g., 100mW) to the surplus power (30mW) and operate with a target transmission power of 130mW to ensure that multiple toy tags can be stably woken up and read.
[0053] Step B30: If the current available power margin is less than the preset surplus transmission power, then the reference transmission power is determined as the target transmission power of the near-field communication reading device.
[0054] If the card reader determines that the current available power margin is insufficient to provide the preset surplus transmission power, it will forgo increasing the power margin and directly set the reference transmission power as the target transmission power. This approach prioritizes ensuring the device's basic power consumption constraints, avoiding power overload or system instability caused by forcibly increasing power, while still maintaining basic identification functions at the reference power.
[0055] For example, in an NFC toy scenario, if the battery power of the toy base is low and the available power margin is only 10mW, while the preset surplus transmission power corresponding to the three toys currently placed is 20mW, the card reader will not increase the power margin and will directly use the base power (such as 80mW) as the target transmission power to continue to complete tag recognition in energy-saving mode.
[0056] Through the above steps, the NFC reader dynamically adjusts its power by considering both the basic power requirements determined by the number of tags and the actual power supply capacity, thus achieving a balance between power consumption control and identification reliability.
[0057] In one possible implementation, the near-field communication system includes multiple near-field communication reading devices, each corresponding to a reading area. After the step of obtaining the current available power margin of the near-field communication reading device and the preset surplus transmission power corresponding to the number of NFC tags, the method further includes: Step C10: According to the order of the number of NFC tags from largest to smallest, traverse the number of each NFC tag sequentially; In a system containing multiple NFC readers, such as a smart toy system with multiple NFC doll recognition bases, each base corresponds to an independent recognition area containing a different number of NFC dolls. After obtaining the current available power margin of each base and the preset surplus transmission power corresponding to the number of NFC tags in its recognition area, the first step is to determine the power margin allocation order. To do this, the number of NFC tags in all recognition areas is collected and sorted in descending order. This descending order is used because bases with more tags have more dolls in their recognition areas, leading to more complex energy competition and mutual interference when multiple tags respond simultaneously, thus making the demand for power margin more urgent. Prioritizing the communication reliability of these high-load bases helps improve the overall system's recognition success rate.
[0058] After sorting, the quantity of each label is traversed sequentially in this order to prepare for the subsequent allocation.
[0059] Step C20: The number of NFC tags traversed is identified as the current number of NFC tags, and the near-field communication reading device corresponding to the number of NFC tags traversed is identified as the current near-field communication reading device; Step C30: Determine whether the current available power margin is greater than or equal to the preset surplus transmission power corresponding to the current number of NFC tags; For the current near-field communication (NFC) reading device, obtain the preset surplus transmission power corresponding to the current number of NFC tags. This preset surplus transmission power can be a dynamic value related to the number of tags, or a uniform and fixed fault tolerance value.
[0060] Simultaneously, the available power margin at the current moment is obtained. This margin refers to the total additional power resources that the entire system or shared power supply can still utilize beyond the allocated baseline transmit power. The initial value of the available power margin is the total available margin of the power module, and it is dynamically updated with each successful allocation during the allocation process. The current available power margin is compared with the preset surplus transmit power required by the current device to determine whether the conditions for increasing the power margin are met.
[0061] Step C40: If yes, then the sum of the reference transmission power corresponding to the current number of NFC tags and the preset surplus transmission power is determined as the target transmission power of the current near-field communication reading device, and the preset surplus transmission power is subtracted from the current available power margin to update the current available power margin. If the current available power margin is greater than or equal to the preset surplus transmit power required by the current device, it is determined that the power margin can be increased for the device to improve communication reliability. At this time, the reference transmit power corresponding to the device (i.e., the basic power obtained from the mapping relationship based on the number of tags) is added to the preset surplus transmit power to obtain the device's final target transmit power, which is then used for subsequent tag identification. Simultaneously, the preset surplus transmit power allocated in this instance is subtracted from the current available power margin, and the value of the available power margin is updated to ensure that subsequent devices use the remaining, truly available resources during allocation.
[0062] For example, in a multi-base system powered by a shared power source, the initial available power margin is 100mW. The currently processed base A (which holds 5 dolls) requires a preset surplus power of 40mW. After allocation, the available power margin is updated to 60mW for subsequent bases to use.
[0063] Step C50: If not, then the reference transmission power corresponding to the current number of NFC tags is determined as the target transmission power of the current near-field communication reading device.
[0064] If the current available power margin is less than the preset surplus transmission power required by the current device, it is determined that no additional power margin can be provided to the device. The baseline transmission power corresponding to the device is directly set as the target transmission power, and tag identification is performed using this power, while the current available power margin remains unchanged. For subsequent devices that have not yet been allocated power, different processing methods can be selected according to the preset strategy: One approach is to continue using the updated current available power margin for individual assessments. If the preset surplus transmit power of a subsequent device is small and the current available power margin is sufficient to cover it, then power margin can still be allocated to it. The sum of the device's baseline transmit power and the preset surplus transmit power is determined as the target power, and the allocated preset surplus transmit power is deducted from the available power margin again. If the preset surplus transmit power of a subsequent device is still greater than the current available power margin, then the baseline power is allocated again while the available power margin remains unchanged. This approach provides power margin support for as many devices as possible, maximizing the overall system's identification reliability within the constraints of limited total resources.
[0065] Another approach is to stop individually assessing the remaining available power margin for each subsequent device that has not yet been allocated power. Instead, the baseline transmission power for all subsequent devices is uniformly set as the target transmission power, and no further attempts are made to add any power margin. This approach simplifies the allocation process, reduces system computational overhead, and ensures the reliability of critical device identification by prioritizing the needs of high-load devices.
[0066] Both of the above processing methods can ensure that each device maintains basic identification function at least at the baseline power, given the limited total power resources. By prioritizing the power margin requirements of high-load devices, a balance between power consumption control and identification performance of the overall system is achieved.
[0067] In one possible implementation, the near-field communication system includes a plurality of near-field communication readout devices, each near-field communication readout device corresponding to a readout area near-field, and the step of determining the target transmit power of the near-field communication readout device based on the reference transmit power includes: Step D10: Obtain the current available power margin, wherein the current available power margin refers to the additional power resources that each of the near-field communication reading devices can call upon when operating at the reference transmission power; The current available power margin refers to the total additional power resources that the entire system or shared power supply can still utilize after all near-field communication reading devices have been allocated their base transmit power. Its value depends on the total output capacity of the power module, the base power already used by each device, and the power consumption requirements of other components in the system. For example, if multiple toy bases are powered by the same power supply, the remaining available power after each device has been allocated its base power is the current available power margin.
[0068] Step D20: Determine the power margin allocation ratio based on the number of NFC tags acquired by each near-field communication reading device; The allocation ratio is set based on the following: the more tags a device has in the reading area, the more complex the energy competition and mutual interference when multiple tags respond simultaneously, and the more urgent the need for additional power margin. Therefore, the corresponding power margin allocation ratio is higher. Thus, the allocation ratio is calculated based on the tag quantity weight of each device. For example, the ratio of each device's tag quantity to the total number of tags is used as its share of the power margin, allowing high-load devices to receive a higher allocation ratio to prioritize their communication reliability.
[0069] Taking the NFC doll scenario as an example, if 5 dolls are placed in the reading area of base A, 3 dolls are placed in base B, and 2 dolls are placed in base C, then the total number of tags is 10, and the distribution ratio of the three can be determined as 50%, 30%, and 20%.
[0070] Step D30: Determine the surplus power allocated to each near-field communication reading device based on the power margin allocation ratio and the current available power margin. Multiplying the current available power margin by the allocation ratio of each device yields the surplus power value that each device can obtain. For example, if the current available power margin is 100mW, then base A can obtain 50mW, base B can obtain 30mW, and base C can obtain 20mW of surplus power. This proportional allocation method ensures the rational allocation of limited power resources among the devices, reflecting both a focus on high-load devices and avoiding waste or insufficiency caused by the average distribution of resources.
[0071] Step D40: For each near-field communication reading device, the sum of the reference transmit power corresponding to the near-field communication reading device and the surplus power allocated to the near-field communication reading device is determined as the target transmit power of the near-field communication reading device.
[0072] For each NFC reader, the base transmit power corresponding to that NFC reader is added to the surplus power allocated to it to obtain the final target transmit power of the device.
[0073] Through the above steps, the system achieves fine-grained power allocation based on actual load when multiple reading devices share limited power resources. This satisfies the additional power requirements of high-load devices to improve recognition reliability, while avoiding power waste of low-load devices, thus balancing power consumption control and recognition performance overall.
[0074] Based on the first and / or second embodiments of this application, in the third embodiment of this application, the content that is the same as or similar to that in embodiments one and two above can be referred to the above description, and will not be repeated hereafter. Furthermore, before the step of obtaining the number of NFC tags in the reading area, the method further includes: In step E10, during the initialization phase of the near-field communication system, the near-field communication reading device operates at the default transmission power corresponding to the preset maximum number of tags.
[0075] During the initialization phase of the near-field communication (NFC) system, the NFC reader has not yet acquired the actual number of NFC tags within the reading area and cannot determine the specific workload. Therefore, an initial operating state needs to be set to ensure the system can start normally and complete the first identification. For this purpose, the reader operates at the default transmission power corresponding to the preset maximum number of tags. This default transmission power can be a power value pre-set during the device design phase, i.e., the transmission power required assuming the maximum number of NFC tags in the reading area, to ensure that the device can stably wake up and identify tags even under extreme conditions.
[0076] In one possible implementation, the step of obtaining the number of NFC tags within the reading area includes: Step F10: Poll and detect the NFC tags within the reading area; After the NFC reader is powered on, it transmits an radio frequency carrier into the reading area at the currently set transmission power (such as the default power at system startup or the power at the end of the previous operation) and initiates a polling detection process according to the NFC communication protocol. Specifically, the reader continuously sends request commands and listens for the backscatter response of tags in the area. When an NFC tag enters the reading area, the tag reflects the signal through load modulation, and the reader records the presence of the tag after detecting the response.
[0077] The polling detection process is executed cyclically at fixed time intervals, and the number of responding tags is counted in each poll. Taking the NFC toy application scenario as an example, the card reader in the toy base performs 10 polls per second, counts the number of toys currently placed on the base in each poll, and records the statistical results each time.
[0078] Step F20: When it is detected that the number of tags in the reading area no longer changes within a preset time period, it is determined that the number of tags has reached a stable state. Since users may dynamically adjust the number of NFC tags in the reading area during use, such as placing or removing toys one by one on the toy base, the number of tags will undergo a dynamic change. To avoid frequent adjustments to the transmission power when the number of tags changes frequently, which could lead to system instability, the card reader is set with a preset time period as a stability judgment window.
[0079] During this time period, the card reader continuously monitors the number of tags detected in each poll. If the statistical results remain consistent across multiple consecutive polls (or throughout the entire preset time period), without any increase or decrease, the number of tags is determined to have reached a stable state. For example, if the stability determination time for a toy base is set to 3 seconds, and the number of toys detected in each poll is 5 within 3 seconds, then the number of tags is determined to have stabilized.
[0080] The length of the preset time period can be flexibly configured according to the application scenario. It can be appropriately shortened for scenarios where user operations are fast, and appropriately extended for scenarios requiring high stability. This embodiment does not impose specific restrictions on this.
[0081] Step F30: Record the number of tags when a stable state is reached, as the number of NFC tags in the reading area.
[0082] Once the number of tags reaches a stable state, the reader determines the recorded number as the actual number of NFC tags in the current reading area and uses it for calculating the target transmission power in subsequent steps. Taking the NFC toy scenario as an example, when the reader determines that the number of toys has stabilized at 5 within 3 seconds, it outputs 5 as the current tag count for subsequent determination of the baseline transmission power.
[0083] Through the aforementioned stability determination mechanism, the card reader avoids interference with power adjustment caused by transient fluctuations in the number of tags due to temporary user operations, ensuring that subsequent power adjustments are based on a stable workload, thereby improving system reliability and user experience.
[0084] In one possible implementation, after the step of reading via the near-field communication device, the method further includes: Step G10: If the number of NFC tags is greater than or equal to the preset upper limit of tag number, control the near-field communication reading device to enter the low-power monitoring mode. In the low-power monitoring mode, the data reading function is turned off, but the tag number detection function is retained. After obtaining the actual number of NFC tags within the reading area, the NFC reader compares this number with a preset upper limit for the number of tags. This preset upper limit is a threshold pre-set based on the reader's processing power, communication protocol limitations, or application scenario requirements. For example, in an NFC toy application scenario, if the toy base is designed to allow a maximum of 10 interactive toys at the same time, the upper limit for the number of tags can be set to 10.
[0085] When the number of tags detected is greater than or equal to the upper limit, it means that the number of tags in the reading area has reached or exceeded the device's high load threshold. If the full data reading function is maintained at this time, it may lead to intense competition for radio frequency resources, decreased communication efficiency, or excessive power consumption. Therefore, the card reader controls itself to enter a low-power monitoring mode.
[0086] In this mode, the card reader disables normal data reading functions, meaning it no longer initiates complete anti-collision loops, data read / write operations, etc., but retains basic detection functions for the number of tags in the reading area, such as periodically detecting whether the number of tags has changed through extremely low-power carrier listening or simplified polling.
[0087] Step G20: When the number of tags is detected to be reduced, exit the low power monitoring mode, reactivate the data reading function, and perform collision detection on the remaining tags to confirm the current tag set.
[0088] In low-power monitoring mode, the card reader continuously monitors the number of tags in the reading area in a low-power manner. Once a decrease in the number of tags is detected (for example, due to a user removing some of the toys, causing the number to fall below a preset limit), the card reader exits low-power monitoring mode and reactivates the full data reading function.
[0089] At this point, the reader resumes transmitting radio frequency signals at normal or dynamically adjusted transmission power and initiates an anti-collision detection process according to the NFC communication protocol. It identifies and processes all tags still within the reading area to confirm the remaining tag set and their identification information. This process ensures the reader can respond promptly to user actions and resume normal data interaction with the remaining tags. For example, when the number of toys on the toy base decreases from 10 to 8, the base reader detects the change through low-power monitoring, exits monitoring mode, and re-energizes the tags of the remaining 8 toys with an appropriate transmission power. It then reads their identification information one by one using the anti-collision algorithm for subsequent interaction or data recording.
[0090] Through this mechanism, the card reader actively reduces power consumption when the number of tags is too large, while maintaining sensitivity to changes in the number of tags, thus achieving a balance between power consumption and functionality.
[0091] For example, to help understand the technical concept or principle of the power consumption control method after combining this embodiment with the first and second embodiments described above, a specific embodiment is now listed. In this specific embodiment, the power consumption control process includes: Step 1: Initialize the state so that each region operates at the default power level corresponding to the maximum number of tags.
[0092] Step 2: The transmit power corresponding to different numbers of tags is stored in the form of mapping pairs. For example, the reference transmit power for 1 tag is 'a'; the reference transmit power for 2 tags is 'b', and so on.
[0093] Step 3: When region A detects M tags and region B detects N tags and no longer adds any, compare M and N, and adjust the baseline transmission power according to the number of tags to obtain the target transmission power. This ensures accurate skill identification without wasting resources.
[0094] It should be noted that the above examples are only used to help understand this embodiment and do not constitute a limitation on the power consumption control process of this embodiment. Any simple modifications based on this technical concept are within the protection scope of this application.
[0095] Furthermore, embodiments of this application also propose a near-field communication system, referring to... Figure 4 As shown, the near-field communication system includes a control unit and at least one near-field communication reading device; The near-field communication reading device is used to obtain the number of NFC tags within the reading area; The control unit is configured to determine the target transmission power of the near-field communication reading device based on the number of NFC tags, and adjust the transmission power of the near-field communication reading device to the target transmission power, wherein the target transmission power is positively correlated with the number of NFC tags; The near-field communication reading device is also used to transmit radio frequency signals based on the target transmission power, identify NFC tags in the reading area, and obtain the identification information of the NFC tags.
[0096] The physical deployment location of this control unit is flexible: it can be integrated inside the near-field communication reading device as a functional module of the reading device to achieve localized control; or it can be set up independently outside the near-field communication reading device, for example, as part of a central controller to achieve centralized management and control of multiple reading devices. Figure 4 The example shown illustrates a deployment where the control unit is located outside the reading device, in order to demonstrate its independent role in a distributed system.
[0097] refer to Figure 5This diagram illustrates a structure suitable for implementing near-field communication (NFC) reading devices according to embodiments of this application. The NFC reading devices in these embodiments may include, but are not limited to, NFC card readers. Figure 5 The near-field communication reading device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments in this application. Figure 5 As shown, the near-field communication reading device may include: The NFC read / write module 1001 includes an NFC antenna and its associated radio frequency circuitry, used to generate a radio frequency field to wake up NFC tags within the reading area and receive response signals returned by the tags. The module also incorporates an anti-collision processing unit, used to sequentially acquire the identification information of each tag when multiple tags respond simultaneously, thus avoiding signal conflicts.
[0098] The main control module 1002 can be used as a localized implementation of the aforementioned control unit. It typically uses a microcontroller or embedded processor as the core of the device's operation and is used to execute various logical processes in the aforementioned power consumption control method, including determining the target transmission power based on the number of acquired tags, coordinating the collaborative work of various modules, and processing communication protocols.
[0099] The storage module 1003 may include volatile memory (such as RAM) and non-volatile memory (such as Flash). The RAM is used to temporarily store the temporary tag set acquired in each scan, the current signal strength value of each tag, and intermediate data during the calculation process; the Flash is used to persistently store the most recently reported set of active tags, preset threshold parameters, and firmware programs required for device operation.
[0100] The communication module 1004 is used to realize data interaction with the terminal device. It supports at least one of wired or wireless communication methods such as Bluetooth, Wi-Fi, USB or serial port, and is responsible for sending the set of tags that the main control module needs to report to the terminal device after making a decision.
[0101] The power supply module 1005 is used to provide a stable operating voltage for all components of the device. It can be powered by a battery or an external power source to ensure continuous operation of the device in continuous scanning scenarios.
[0102] Although the figures show near-field communication readout devices with various systems, it should be understood that it is not required to implement or have all of the systems shown. More or fewer systems may be implemented alternatively.
[0103] The near-field communication system provided in this application, employing the power consumption control method described in the above embodiments, can solve the technical problem of reducing power consumption waste in near-field communication reading devices during actual operation. Compared with the prior art, the beneficial effects of the near-field communication system provided in this application are the same as those of the power consumption control method provided in the above embodiments, and other technical features of this near-field communication system are the same as those disclosed in the previous embodiment method, and will not be repeated here.
[0104] 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.
[0105] The above description is merely a specific embodiment 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 technical scope 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.
[0106] In addition, to achieve the above objectives, embodiments of this application also provide a readable storage medium having computer-readable program instructions (i.e., a computer program) stored thereon, the computer-readable program instructions being used to execute the power consumption control method in the above embodiments.
[0107] 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 systems, devices, 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 read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), 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 system, system, or device. 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.
[0108] The aforementioned computer-readable storage medium may be included in the head-mounted device; or it may exist independently and not assembled into the head-mounted device.
[0109] The aforementioned computer-readable storage medium carries one or more programs, which, when executed by the head-mounted device, cause the head-mounted device to perform the process steps of any embodiment of the power consumption control method described above.
[0110] Computer program code for performing the operations of this application 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 Local Area Network (LAN) or a Wide Area Network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0111] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, 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, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0112] The modules described in the embodiments of this application can be implemented in software or hardware. The names of the modules do not necessarily limit the functionality of the modules themselves.
[0113] The readable storage medium provided in this application is a computer-readable storage medium that stores computer-readable program instructions (i.e., a computer program) for executing the above-described power consumption control method, thereby solving the technical problem of how to reduce power consumption waste in near-field communication reading devices during actual operation. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as those of the power consumption control method provided in the above embodiments, and will not be repeated here.
[0114] Furthermore, embodiments of this application also propose a computer program product, including a computer program that, when executed by a processor, implements the steps of the power consumption control method described above.
[0115] The specific implementation of the computer program product in this application is basically the same as the embodiments of the power consumption control method described above, and will not be repeated here.
[0116] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or system. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or system that includes that element.
[0117] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0118] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software sensor. This computer software sensor is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes several instructions to cause a head-mounted device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0119] The above are merely preferred embodiments of this application and do not limit the patent scope of this application. Any equivalent structural or procedural transformations made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of this application.
Claims
1. A power consumption control method, characterized in that, The power consumption control method, applied to a near-field communication system including at least one near-field communication readout device, comprises the following steps: Obtain the number of NFC tags within the reading area; The target transmission power of the near-field communication reading device is determined based on the number of NFC tags, wherein the target transmission power is positively correlated with the number of NFC tags; The transmission power of the near-field communication reading device is adjusted to the target transmission power, so that the near-field communication reading device transmits radio frequency signals based on the target transmission power, identifies NFC tags in the reading area, and obtains the identification information of the NFC tags.
2. The power consumption control method of claim 1, wherein, The step of determining the target transmit power of the near-field communication reading device based on the number of NFC tags includes: Based on a preset mapping relationship between the number of tags and the transmission power, the reference transmission power corresponding to the number of NFC tags is found; wherein, the more tags in the mapping relationship, the greater the corresponding reference transmission power. The target transmission power of the near-field communication reading device is determined based on the reference transmission power.
3. The power consumption control method of claim 2, wherein, The step of determining the target transmission power of the near-field communication reading device based on the reference transmission power includes: Obtain the current available power margin and the preset surplus transmission power corresponding to the number of NFC tags, wherein the current available power margin refers to the additional power resources that the near-field communication reading device can call upon when operating at the baseline transmission power; If the current available power margin is greater than or equal to the preset surplus transmission power, then the sum of the reference transmission power and the preset surplus transmission power is determined as the target transmission power of the near-field communication reading device. If the current available power margin is less than the preset surplus transmission power, then the reference transmission power is determined as the target transmission power of the near-field communication reading device.
4. The power consumption control method of claim 3, wherein, The near-field communication system includes multiple near-field communication reading devices, each corresponding to a reading area. After the steps of obtaining the current available power margin of the near-field communication reading device and the preset surplus transmission power corresponding to the number of NFC tags, the method further includes: Based on the NFC tag quantity in descending order, iterate through each NFC tag quantity sequentially; The number of NFC tags traversed is identified as the current number of NFC tags, and the near-field communication reading device corresponding to the number of NFC tags traversed is identified as the current near-field communication reading device; Determine whether the current available power margin is greater than or equal to the preset surplus transmit power corresponding to the current number of NFC tags; If so, the sum of the reference transmission power corresponding to the current number of NFC tags and the preset surplus transmission power is determined as the target transmission power of the current near-field communication reading device, and the preset surplus transmission power is subtracted from the current available power margin to update the current available power margin; If not, the reference transmit power corresponding to the current number of NFC tags is determined as the target transmit power of the current near-field communication reading device.
5. The power consumption control method of claim 2, wherein, The near-field communication system includes multiple near-field communication reading devices, each corresponding to a near-field reading area. The step of determining the target transmission power of the near-field communication reading device based on the reference transmission power includes: Obtain the current available power margin, wherein the current available power margin refers to the additional power resources that the near-field communication reading device can call upon when operating at the reference transmission power; The power margin allocation ratio is determined based on the number of NFC tags acquired by each of the near-field communication reading devices; Based on the power margin allocation ratio and the current available power margin, the surplus power allocated to each near-field communication readout device is determined; For each near-field communication readout device, the sum of the reference transmit power corresponding to the near-field communication readout device and the surplus power allocated to the near-field communication readout device is determined as the target transmit power of the near-field communication readout device.
6. The power consumption control method according to any one of claims 1 to 5, wherein, Before the step of obtaining the number of NFC tags within the reading area, the method further includes: During the initialization phase of the near-field communication system, the near-field communication reading device operates at the default transmission power corresponding to the preset maximum number of tags.
7. The power consumption control method according to any one of claims 1 to 5, wherein The step of obtaining the number of NFC tags within the reading area includes: Polling and detecting NFC tags within the reading area; When it is detected that the number of tags in the recognition area no longer changes within a preset time period, it is determined that the number of tags has reached a stable state. The number of tags when a stable state is reached is recorded as the number of NFC tags within the reading area.
8. The power consumption control method according to any one of claims 1 to 5, wherein After the step of obtaining the number of NFC tags within the reading area, the method further includes: If the number of NFC tags is greater than or equal to the preset upper limit of tag number, the near-field communication reading device is controlled to enter a low-power monitoring mode. In the low-power monitoring mode, the data reading function is turned off, but the tag number detection function is retained. When a decrease in the number of tags is detected, the low-power monitoring mode is exited, the data reading function is reactivated, and collision detection is performed on the remaining tags to confirm the current tag set.
9. A near-field communication system, the near-field communication system comprising a control unit and at least one near-field communication reading device; The near-field communication reading device is used to obtain the number of NFC tags within the reading area; The control unit is configured to determine the target transmission power of the near-field communication reading device based on the number of NFC tags, and adjust the transmission power of the near-field communication reading device to the target transmission power. The target transmission power is positively correlated with the number of NFC tags; The near-field communication reading device is also used to transmit radio frequency signals based on the target transmission power, identify NFC tags in the reading area, and obtain the identification information of the NFC tags.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a device control program, which, when executed by a processor, implements the steps of the power consumption control method as described in any one of claims 1 to 8.