Low power device interconnection system, method and storage medium

By adjusting the packet loss rate and signal strength through gateway feedback, dynamically adjusting the terminal transmission power, and combining it with the data packet compression mode, the problem of increased power consumption of wireless communication devices in different states is solved, achieving low power consumption and efficient data transmission.

CN116546607BActive Publication Date: 2025-10-21BOE TECHNOLOGY GROUP CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310628051.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-05-30
Publication Date
2025-10-21
Estimated Expiration
2043-05-30

AI Technical Summary

Technical Problem

Existing wireless communication devices use fixed transmission power to send data in different working states, which leads to unnecessary increase in power consumption and lacks effective low-power optimization solutions.

Method used

The terminal's transmit power is dynamically adjusted by feedback from the gateway about the packet loss rate. Combined with the packet compression mode and signal strength adjustment, the terminal's transmit power is optimized to achieve low-power operation.

Benefits of technology

It effectively reduces the power consumption of the terminal, improves data transmission efficiency, reduces unnecessary power consumption, and achieves low-power operation in different working states.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116546607B_ABST
    Figure CN116546607B_ABST
Patent Text Reader

Abstract

The disclosure provides a low-power device interconnection system, method and storage medium, and belongs to the technical field of communication, wherein the low-power device interconnection system comprises a gateway and a terminal; the terminal is configured to send a first data packet to the gateway, receive a packet loss rate fed back by the gateway, and judge whether the packet loss rate is greater than a first preset threshold; according to a judgment result and a current transmission power of the first data packet, the transmission power of a next first data packet is determined; the gateway is configured to receive the first data packet and count, and when a counting result reaches a second preset threshold, the packet loss rate is counted, and the counting result is cleared; and the packet loss rate is sent to the terminal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure belongs to the field of communication technology, and particularly relates to a low-power device interconnection system, method, and storage medium. Background Art

[0002] With the continuous development of internet technology, IoT data collection and control terminals, among other applications, are now ubiquitous in our daily lives. However, current wireless network systems do not differentiate between the specific operating status of terminals and use the same (or default) transmit power for all data transmissions. This means that regardless of the terminal's status (e.g., data volume, packet loss rate, network speed, etc.), the same transmit power is used for transmission, which can lead to unnecessary power consumption and places high demands on battery-powered wireless communication devices. Summary of the Invention

[0003] The present disclosure aims to solve at least one of the technical problems existing in the prior art and provide a low-power device interconnection system, method and storage medium.

[0004] In a first aspect, the technical solution adopted to solve the technical problem of the present disclosure is a low-power device interconnection system, which includes a gateway and a terminal;

[0005] The terminal is configured to send a first data packet to the gateway, receive a packet loss rate fed back by the gateway, and determine whether the packet loss rate is greater than a first preset threshold; and determine a transmit power for sending a next first data packet based on the determination result and the transmit power currently used to send the first data packet;

[0006] The gateway is configured to receive and count the first data packet, and whenever the counting result reaches a second preset threshold, calculate the packet loss rate and reset the counting result to zero; and send the packet loss rate to the terminal.

[0007] In some embodiments, the terminal includes a communication module and a controller;

[0008] The communication module is configured to send the received first data packet to the gateway; and receive a packet loss rate fed back by the gateway and send it to the control module; receive a transmit power to be configured, so as to send the next first data packet according to the currently configured transmit power;

[0009] The controller is configured to send the first data packet to be sent to the communication module; and receive the packet loss rate to determine whether the packet loss rate is greater than a first preset threshold; based on the judgment result and the transmission power of the current sending of the first data packet, determine the transmission power for sending the next first data packet, and configure the transmission power for sending the next first data packet to the communication module.

[0010] In some embodiments, the controller includes a data sending module and a first power determination module;

[0011] The data sending module is configured to send the first data packet to be sent to the communication module;

[0012] The first power determination module is configured to receive the packet loss rate; when the packet loss rate is less than or equal to the first preset threshold, the transmission power of the currently sent first data packet is reduced according to the preset first power adjustment range, the transmission power for sending the next first data packet is determined, and the transmission power for sending the next first data packet is configured to the communication module; when the packet loss rate is greater than the preset threshold, the transmission power of the currently sent first data packet is increased according to the preset second power adjustment range, the transmission power for sending the next first data packet is determined, and the transmission power for sending the next first data packet is configured to the communication module.

[0013] In some embodiments, the data sending module is specifically configured to determine a data sending mode in response to a data sending request according to a first data volume of a first data packet to be sent; and send the first data packet according to the data sending mode.

[0014] In some embodiments, the data sending module includes a mode determination unit and a data sending unit;

[0015] The mode determination unit is configured to determine, based on the first data volume of the first data packet, a second data volume of the compressed first data packet; determine a comparison result of energy consumption of compressed transmission and energy consumption of uncompressed transmission based on the first data volume, the second data volume, a first average current when the first data packet is sent uncompressed, and a second average current when the first data packet is sent compressed; and determine, based on the comparison result, whether the data transmission mode is compressed mode or uncompressed mode;

[0016] The data sending unit is configured to send the first data packet according to the determined data sending mode, which is a compressed mode or a non-compressed mode.

[0017] In some embodiments, the gateway is further configured to determine the fourth data volume of the second data packet after compression based on the third data volume of the second data packet to be sent; determine a comparison result of the energy consumption of the terminal receiving compressed data and the energy consumption of receiving uncompressed data based on the third data volume, the fourth data volume, the third average current when the terminal receives data, and the fourth average current when the terminal decompresses data; determine whether the data sending mode is compressed mode or uncompressed mode based on the comparison result; and send the second data packet to the terminal according to the determined data transmission mode being compressed mode or uncompressed mode.

[0018] In some embodiments, the terminal includes a communication module and a controller; the controller further includes a second power determination module; the second power determination module includes a power-on connection unit and a power determination unit;

[0019] The communication module is further configured to establish a communication connection with the gateway in response to an instruction to establish a connection with the gateway; and send the received gateway signal strength and WiFi signal strength to the second power determination module;

[0020] The second power determination module is configured to receive the gateway signal strength and the WiFi signal strength, and determine the transmit power when the terminal sends the first first data packet based on the preset initial transmit power, the gateway signal strength, and the WiFi signal strength;

[0021] The gateway is further configured to receive the communication connection and feed back the gateway signal strength and the WiFi signal strength to the communication module.

[0022] In some embodiments, the power determination unit includes a first coarse adjustment subunit and a second coarse adjustment subunit;

[0023] The first coarse adjustment subunit is configured to determine the coarse adjustment power according to the correspondence between the transmit power and the signal strength, the preset initial transmit power, the gateway signal strength and the WiFi signal strength;

[0024] The second coarse adjustment subunit is configured to determine the transmission power of the terminal when sending the first first data packet according to the terminal power-on time, the coarse adjustment power, the gateway signal strength and the WiFi signal strength.

[0025] In some embodiments, the second coarse adjustment subunit is specifically configured to adjust the coarse adjustment power multiple times after the terminal is powered on and before the terminal power-on time is reached, and use the coarse adjustment power after each adjustment as the next coarse adjustment power to be adjusted; when the terminal power-on time is reached, use the coarse adjustment power after the most recent adjustment as the transmit power when the terminal sends the first first data packet;

[0026] Each adjustment of the coarse adjustment power specifically includes: determining whether the WiFi signal strength is greater than the gateway signal strength; if the WiFi signal strength is greater than the gateway signal strength, adjusting the coarse adjustment power according to a preset algorithm so that the adjusted coarse adjustment power is less than the coarse adjustment power before adjustment; if the WiFi signal strength is less than or equal to the gateway signal strength, using the current coarse adjustment power as the next coarse adjustment power to be adjusted.

[0027] In some embodiments, the terminal further comprises a mode determination module; a heartbeat cycle comprises a wake-up cycle and a sleep cycle;

[0028] The mode determination module is configured to, in response to the expiration of a wake-up cycle, determine whether the sleep mode of the sleep cycle to be entered by the terminal is the light sleep mode or the deep sleep mode based on a preset fifth average current in the light sleep mode, a preset sixth average current when scanning the gateway for connection, a preset seventh average current in the deep sleep mode, the duration of the sleep cycle, and the connection duration of scanning the gateway for connection; and enter a sleep state according to the determined sleep mode until the wake-up cycle begins.

[0029] In some embodiments, the terminal is further configured to operate in a light sleep mode during a wake-up period until responding to a data receiving or sending request and receiving or sending data according to a preset task.

[0030] In some embodiments, the gateway is further configured to determine the next wake-up cycle of the terminal based on the amount of data transmitted by the terminal per unit time and the network speed of the terminal.

[0031] In some embodiments, the gateway is further configured to obtain a predefined minimum data change between two adjacent data transmissions of the terminal; and determine the next wake-up cycle of the terminal based on the minimum data change, the actual data change between two adjacent data transmissions, and the time difference between two adjacent data transmissions.

[0032] In a second aspect, an embodiment of the present disclosure further provides a low-power device interconnection method, which is applied to a low-power device interconnection system, wherein the low-power device interconnection system includes a gateway and a terminal;

[0033] The terminal sends a first data packet to the gateway, receives a packet loss rate fed back by the gateway, and determines whether the packet loss rate is greater than a first preset threshold; and determines a transmit power for sending a next first data packet based on the determination result and the transmit power currently used to send the first data packet;

[0034] The gateway receives and counts the first data packet, and whenever the counting result reaches a second preset threshold, calculates the packet loss rate and clears the counting result to zero; and sends the packet loss rate to the terminal.

[0035] In a third aspect, an embodiment of the present disclosure further provides a computer non-volatile readable storage medium, wherein a computer program is stored on the computer non-volatile readable storage medium, and when the computer program is executed by a processor, the steps of the low-power device interconnection method described in the second aspect are executed. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1 A schematic diagram of a low-power device interconnection system provided by an embodiment of the present disclosure;

[0037] Figure 2 A schematic diagram of information interaction between a gateway and a terminal provided in an embodiment of the present disclosure;

[0038] Figure 3 A schematic diagram of the radiation energy of electromagnetic waves in the air provided by an embodiment of the present disclosure;

[0039] Figure 4 A schematic diagram of information interaction between a gateway and a terminal provided in an embodiment of the present disclosure;

[0040] Figure 5 A flowchart of fine-tuning power provided in an embodiment of the present disclosure;

[0041] Figure 6a A flowchart of the first step of coarse power adjustment provided in an embodiment of the present disclosure;

[0042] Figure 6b This is a flowchart of the second step of coarse power adjustment provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0043] In order to make the purpose, technical solutions and advantages of the embodiments of the present disclosure clearer, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of the embodiments. The components of the embodiments of the present disclosure generally described and shown in the drawings herein can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present disclosure provided in the drawings is not intended to limit the scope of the disclosure for which protection is sought, but merely represents selected embodiments of the present disclosure. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without making creative work are within the scope of protection of the present disclosure.

[0044] Unless otherwise defined, the technical or scientific terms used in this disclosure should have the usual meanings understood by people with ordinary skills in the field to which this disclosure belongs. The words "first", "second" and similar words used in this disclosure do not indicate any order, quantity or importance, but are only used to distinguish different components. Similarly, words such as "one", "an" or "the" do not indicate a quantity limitation, but rather indicate the existence of at least one. Words such as "include" or "comprise" mean that the elements or objects appearing before the word include the elements or objects listed after the word and their equivalents, without excluding other elements or objects. Words such as "connect" or "connected" are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the object being described changes, the relative positional relationship may also change accordingly.

[0045] In this disclosure, "multiple or several" refers to two or more. "And / or" describes the relationship between associated objects, indicating that three possible relationships exist. For example, "A and / or B" can mean: A exists alone, A and B exist simultaneously, or B exists alone. The character " / " generally indicates that the associated objects are in an "or" relationship.

[0046] In related technologies, the transmit power of Internet of Things (IoT) WiFi modules (also known as terminals) in application scenarios is a key factor in determining the overall power consumption of the device. The transmit power of the terminal can be manually adjusted. However, in complex electromagnetic environments, manually adjusting the transmit power cannot meet the requirements for real-time power adjustment. Consequently, the terminal still uses a fixed transmit power that is manually adjusted to send data during operation. As the terminal's operating state constantly changes during real-time operation, this fixed transmit power often fails to achieve low-power operation of the terminal in different operating states. Furthermore, currently available algorithms for achieving low-power optimization are relatively complex, and there is a lack of a unified and convenient WiFi low-power solution. For example, traditional power reduction solutions are mostly implemented at the control level (server side), without any communication-based solutions.

[0047] In view of this, embodiments of the present disclosure provide a low-power device interconnection system, method, and storage medium, which substantially eliminate one or more of the problems caused by limitations and defects of related technologies.

[0048] Among them, the low-power device interconnection system in the embodiment of the present disclosure includes a gateway and a terminal; the terminal is configured to send a first data packet to the gateway, and receive the packet loss rate fed back by the gateway, and determine whether the packet loss rate is greater than a first preset threshold; based on the judgment result and the transmission power of the current first data packet, determine the transmission power for sending the next first data packet; the gateway is configured to receive the first data packet and count, and when the counting result reaches a second preset threshold each time, count the packet loss rate and clear the counting result; and send the packet loss rate to the terminal.

[0049] It should be noted that wireless communication protocols are difficult to tailor and expand independently. Therefore, the embodiment of the present disclosure dynamically adjusts the transmission power of the terminal at the application level (terminal) to ensure that the terminal can maintain a low power consumption state. Specifically, the terminal mainly determines whether to adjust its own transmission power by receiving the packet loss rate fed back by the gateway (that is, the protocol layer). It should be noted that the packet loss rate refers to the probability of the first data packet being lost when the terminal continuously sends the first data packet to the gateway and the gateway counts it. The packet loss rate is related to the transmission power of the terminal. A higher packet loss rate indicates a lower transmission power. Therefore, the terminal adjusts the transmission power of the current first data packet sent according to the actual situation of the packet loss rate. For example, when the judgment result indicates that the packet loss rate is low, the transmission power can be appropriately reduced, thereby reducing system power consumption. In addition, the gateway side can be set to count the packet loss rate when a certain number of first data packets are received, so as to avoid unnecessary power consumption caused by frequent statistics of the packet loss rate, thereby avoiding unnecessary power consumption caused by frequent adjustment of the transmission power.

[0050] The following describes in detail a low-power device interconnection system provided by an embodiment of the present disclosure.

[0051] Figure 1 A schematic diagram of a low-power device interconnection system provided by an embodiment of the present disclosure is shown in FIG. Figure 1 As shown, the low-power device interconnection system includes a gateway 11 and a terminal 12; the low-power devices are, for example, gateways 11 and / or terminals 12. Gateway 11 can be understood as a wireless access point (AP), also referred to as a "hotspot," which can be connected to multiple terminals 12 to establish the center of a star-shaped topology network. It typically exists in the form of a router or customer premises equipment (CPE). Terminal 12 can be understood as a WiFi module, a type of WiFi wireless terminal 12STA.

[0052] Figure 2 A schematic diagram of information interaction between the gateway 11 and the terminal 12 provided in an embodiment of the present disclosure, as shown in FIG. Figure 2 As shown, terminal 12 is configured to send a first data packet to gateway 11, receive the packet loss rate fed back by gateway 11, determine whether the packet loss rate is greater than a first preset threshold, and determine the transmit power for sending the next first data packet based on the determination result and the transmit power of the current first data packet. Gateway 11 is configured to receive and count the first data packets, and whenever the count reaches a second preset threshold, calculate the packet loss rate and reset the count result to zero; and transmit the packet loss rate to terminal 12.

[0053] Exemplarily, gateway 11 and terminal 12 are linked via the TCP / IP protocol. During the power-on startup phase of terminal 12, terminal 12 establishes a communication connection with gateway 11. Gateway 11 then confirms the connection. The link layer TCP / IP protocol includes a mechanism for calculating packet loss rates. This mechanism can calculate and report the packet loss rate based on the count of received first data packets. For example, the mechanism for calculating packet loss rates may calculate the packet loss rate once every N packets. That is, every time gateway 11 receives N first data packets, the TCP / IP protocol calculates the packet loss rate and reports it back to terminal 12.

[0054] The first preset threshold may be the maximum acceptable packet loss rate; alternatively, the first preset threshold may also be the maximum acceptable packet loss rate after redundancy, which may be set according to the actual application scenario and is not specifically limited in the embodiments of the present disclosure. The terminal 12 is configured to adjust the transmission power of the currently transmitted first data packet based on the judgment result of whether the packet loss rate is greater than the first preset threshold, and use the adjusted transmission power as the transmission power for transmitting the next first data packet. Exemplarily, if the judgment result indicates that the packet loss rate is less than or equal to the first preset threshold, the transmission power of the currently transmitted first data packet is reduced, thereby reducing the transmission power of the terminal 12 for subsequent transmission of the first data packet, and further reducing the power consumption of the terminal 12 when subsequently transmitting the first data packet, so as to achieve low power consumption of the terminal 12.

[0055] It should be noted that in actual application scenarios, the terminal 12 is easily affected by external factors (such as accidental displacement or slight electromagnetic interference), resulting in the signal not being received, thereby causing packet loss (that is, packet loss is inevitable). The TCP / IP protocol has a first data packet retransmission mechanism, that is, the packet lost in the air will be retransmitted. Therefore, the system allows a certain packet loss rate caused by external factors, but will set a maximum packet loss rate. When the packet loss rate counted by the gateway 11 is greater than the maximum packet loss rate, it means that the terminal 12 is not only affected by external factors affecting data transmission, but also by reducing the transmission power. Therefore, the transmission power can be appropriately increased to balance the packet loss rate in the air.

[0056] It is known that the packet loss rate is related to the transmit power, and reducing the transmit power will most likely increase the packet loss rate. When the packet loss rate is always less than the first preset threshold, the transmit power continues to decrease, causing the packet loss rate to continue to increase. When the packet loss rate is greater than the first preset threshold, the transmit power of the current first data packet can be appropriately increased to balance the packet loss rate for the next statistical calculation. Alternatively, when the packet loss rate is greater than the first preset threshold, if the packet loss rate is the packet loss rate after redundancy, the transmit power of the current first data packet can be further reduced until the packet loss rate exceeds the preset lower limit, and then the transmit power of the current first data packet can be appropriately increased to balance the packet loss rate for the next statistical calculation.

[0057] In some embodiments, the terminal 12STA includes a controller and a communication module; the controller may be, for example, a microcontroller unit (MCU), and the communication module may be, for example, a radio frequency chip (RFIC). The RFIC is connected to the controller via a bus; the RFIC establishes a communication connection with the gateway 11, thereby establishing a communication connection between the controller and the gateway 11 via the RFIC.

[0058] During the power-on startup phase of the terminal 12 , the controller controls the RF IC to establish a communication connection with the gateway 11 .

[0059] The communication module is configured to send the received first data packet to the gateway 11; receive the packet loss rate fed back by the gateway 11 and send it to the control module; and receive the transmission power to be configured to send the next first data packet according to the currently configured transmission power.

[0060] The controller is configured to send a first data packet to be sent to the communication module; and receive a packet loss rate to determine whether the packet loss rate is greater than a first preset threshold; based on the judgment result and the transmission power of the current first data packet, determine the transmission power for sending the next first data packet, and configure the transmission power for sending the next first data packet to the communication module.

[0061] Exemplarily, if the judgment result indicates that the packet loss rate is less than or equal to the first preset threshold, the transmission power of the current first data packet is reduced, thereby reducing the transmission power of the RF IC for subsequent transmission of the first data packet, and then reducing the power consumption of the RF IC when subsequently sending the first data packet, so as to achieve low power consumption of the RF IC.

[0062] In some embodiments, the data sending module is configured to send the first data packet to be sent to the communication module; the first power determination module is configured to receive the packet loss rate; when the packet loss rate is less than or equal to the first preset threshold, the transmission power of the currently sent first data packet is reduced according to the preset first power adjustment range, the transmission power for sending the next first data packet is determined, and the transmission power for sending the next first data packet is configured to the communication module; when the packet loss rate is greater than the preset threshold, the transmission power of the currently sent first data packet is increased according to the preset second power adjustment range, the transmission power for sending the next first data packet is determined, and the transmission power for sending the next first data packet is configured to the communication module.

[0063] Here, the first power adjustment range and the second power adjustment range can be parameters set according to actual application, terminal 12 performance and experience, which are not specifically limited in the embodiment of the present disclosure. The first power adjustment range and the second power adjustment range can be the same or different.

[0064] Taking the first power adjustment amplitude and the second power adjustment amplitude as the same and equal to 0.01W as an example, when the packet loss rate is less than or equal to the first preset threshold, the transmit power of the current first data packet is reduced by 0.01W as the transmit power for the next first data packet, and is configured to the RF IC via the bus, thereby reducing the transmit power of the RF IC for subsequent first data packets, thereby reducing the power consumption of the RF IC when sending subsequent first data packets, thereby achieving low power consumption of the RF IC. When the packet loss rate is greater than the first preset threshold, the transmit power of the current first data packet is increased by 0.01W as the transmit power for the next first data packet, and is configured to the RF IC via the bus.

[0065] Furthermore, the first power determination module is also configured to update the second preset threshold when the packet loss rate is greater than the first preset threshold, and send the updated second preset threshold to the gateway 11, so that the gateway 11 re-customizes the packet loss rate statistical mechanism according to the updated second preset threshold. Here, the updated second preset threshold is greater than the second preset threshold when it is not updated. For example, the second preset threshold when it is not updated is 1000, and the updated second preset threshold is 10000. Exemplarily, the gateway 11 is configured to receive the updated second preset threshold and adjust the packet loss rate statistical mechanism. The adjusted packet loss rate statistical mechanism, for example: receives the first data packet and counts it, counts the packet loss rate every time the counting result reaches the updated second preset threshold, and clears the counting result to zero; and sends the packet loss rate to the terminal 12.

[0066] In some embodiments, the terminal 12 uses a radio frequency integrated circuit (RFIC) to transmit and receive data with the gateway 11. The terminal 12 records the first data volume corresponding to each first data packet. During data transmission, the first data packet can be compressed to reduce the duration of wireless communication (WiFi communication), thereby reducing the power consumption of the RF IC.

[0067] Specifically, the data sending module is specifically configured to, in response to the data sending request, determine a data sending mode according to the first data volume of the first data packet to be sent; and send the first data packet according to the data sending mode.

[0068] Exemplarily, when the first data volume does not reach the preset data volume, the data transmission mode is determined to be the non-compression mode; and the first data packet is sent in the non-compression mode. When the first data volume reaches the preset data volume, the data transmission mode is determined to be the compression mode; and the first data packet is sent in the compression mode. Here, the preset data volume is pre-set. Although compressing the first data packet can save the time of data transmission and reduce the power consumption of the terminal 12, compressing the data will also increase the energy consumption of the terminal 12. Therefore, the setting of the preset data volume satisfies: the transmission energy consumption Q1 of the first data packet corresponding to the preset data volume in the non-compression state is less than the sum of the transmission energy consumption Q2 of the first data packet corresponding to the preset data volume in the compressed state and the energy consumption Q3 of the compression process of the first data packet corresponding to the preset data volume, that is, Q1<(Q2+Q3).

[0069] This embodiment can reasonably calculate the optimal power consumption strategy (compressed mode or non-compressed mode) based on the first data volume of the first data packet to be transmitted, so as to transmit the first data packet according to the optimal power consumption strategy, thereby reducing the power consumption of the terminal 12 when transmitting data. In addition, based on the comparison result of the first data volume with the preset data volume, the data transmission mode can be determined more quickly, thereby improving data transmission efficiency.

[0070] In some embodiments, continuing from the above embodiments, the data sending module includes a mode determination unit and a data sending unit; the mode determination unit is configured to determine the data sending mode according to the first data volume of the first data packet; the data sending unit is configured to send the first data packet according to the data sending mode.

[0071] Specifically, the mode determination unit is configured to determine the second data volume of the compressed first data packet based on the first data volume of the first data packet; determine a comparison result of the energy consumption of compressed transmission and the energy consumption of uncompressed transmission based on the first data volume, the second data volume, the first average current when the first data packet is sent uncompressed, and the second average current when the first data packet is sent compressed; and determine the data transmission mode as compressed mode or uncompressed mode based on the comparison result. The data transmission unit is configured to transmit the first data packet according to the determined data transmission mode of compressed mode or uncompressed mode.

[0072] Here, a preset compression algorithm may be used to count the amount of the second data after the first data packet is compressed.

[0073] For example, in the uncompressed state, the data volume of the first data packet is the first data volume, denoted as n1. If data is transmitted in the uncompressed mode, the data transmission time is t1 = a + b × n1, where a and b are coefficients and can be obtained through actual measurement. The first average current of terminal 12 transmitting data is A1, which can be obtained through fixed-mode testing. During the compression process of terminal 12, the time for compressing data is t2 = c + d × n1, where c and d are coefficients and can be obtained through actual measurement. The second average current of compressed data is A2, which can be obtained through fixed-mode testing. In the compressed state, the data volume of the first data packet is the second data volume, denoted as N1. If data is transmitted in the compressed mode, the data transmission time is t3 = a + b × N1. Based on this, when data is sent directly without compressing the data, the energy consumed is A1×(a+b×n1); when the data is compressed, the energy consumed is A1×(a+b×N1)+A2×(c+d×n1). If the comparison result of the energy consumption of compressed transmission and the energy consumption of non-compressed transmission indicates that A1×(a+b×N1)+A2×(c+d×n1)>A1×(a+b×n1), then the data transmission mode is determined to be the non-compressed mode; conversely, if the comparison result of the energy consumption of compressed transmission and non-compressed transmission indicates that A1×(a+b×N1)+A2×(c+d×n1)≤A1×(a+b×n1), then the data transmission mode is determined to be the compressed mode.

[0074] This embodiment can reasonably calculate the optimal power consumption strategy (compressed mode or uncompressed mode) based on the first data volume of the first data packet to be transmitted, so as to send the first data packet according to the optimal power consumption strategy, thereby reducing the power consumption of terminal 12 when sending data. In addition, based on the first data volume, the second data volume, the first average current when the first data packet is sent uncompressed, and the second average current when the first data packet is sent compressed, a comparison result of the energy consumption of compressed and uncompressed transmission is determined, which can more accurately determine the data transmission mode and achieve low power consumption of terminal 12.

[0075] In some embodiments, similar to the above data sending process, when the terminal 12 receives data, the gateway 11 can calculate the energy consumption of the terminal 12 receiving the data based on the second data packet to be sent, so as to achieve low power consumption of the terminal 12.

[0076] The gateway 11 is also configured to determine the fourth data volume of the compressed second data packet based on the third data volume of the second data packet to be sent; determine a comparison result of the energy consumption of the terminal 12 receiving compressed data and the energy consumption of receiving uncompressed data based on the third data volume, the fourth data volume, the third average current when the terminal 12 receives the data, and the fourth average current when the terminal 12 decompresses the data; determine whether the data sending mode is a compressed mode or a non-compressed mode based on the comparison result; and send the second data packet to the terminal 12 according to the determined data transmission mode being the compressed mode or the non-compressed mode.

[0077] Here, a preset compression algorithm may be used to count the fourth data volume after the second data packet is compressed.

[0078] For example, in the uncompressed state, the data volume of the second data packet is the third data volume, denoted as n2; if the gateway 11 transmits data in the uncompressed mode, the time for the terminal 12 to receive the data is t4 = e + f × n2, where e and f are coefficients, which can be obtained through actual measurement; the third average current for the terminal 12 to receive the data is A3, which can be obtained through a fixed-mode test. In the compressed state, the data volume of the second data packet is the third data volume, denoted as N2; if the gateway 11 transmits data in the compressed mode, the time for the terminal 12 to receive the data is t5 = e + f × N2. During the decompression process of the terminal 12, the time for decompressing the data is t6 = g + h × N2, where g and h are coefficients, which can be obtained through actual measurement; the fourth average current for the terminal 12 to decompress the data is A4, which can be obtained through a fixed-mode test. Based on this, when the gateway 11 directly sends data without compressing the data, the energy consumed by the terminal 12 to receive the data is A3×(e+f×n2); when the gateway 11 compresses the data to send, the energy consumed by the terminal 12 to receive the data is A3×(e+f×N2)+A4×(g+h×N2). If the comparison result of the energy consumption of the terminal 12 receiving compressed data and the energy consumption of receiving uncompressed data indicates that A3×(e+f×N2)+A4×(g+h×N2)>A3×(e+f×n2), then the data sending mode is determined to be the uncompressed mode; conversely, if the comparison result of the energy consumption of the terminal 12 receiving compressed data and the energy consumption of receiving uncompressed data indicates that A3×(e+f×N2)+A4×(g+h×N2)≤A3×(e+f×n2), then the data sending mode is determined to be the compressed mode.

[0079] In this embodiment, during the data reception phase of terminal 12, gateway 11 rationally calculates the optimal power consumption strategy (compressed mode or uncompressed mode) to transmit the second data packet according to the optimal power consumption strategy, thereby reducing the power consumption of terminal 12 when receiving data. Furthermore, based on the third data volume, the fourth data volume, the third average current when terminal 12 receives data, and the fourth average current when terminal 12 decompresses data, a comparison result of the energy consumption of terminal 12 receiving compressed data and the energy consumption of receiving uncompressed data is determined. This allows for more accurate determination of the data transmission mode, thereby achieving low power consumption when terminal 12 receives data.

[0080] In some embodiments, the terminal 12 includes a communication module and a controller; the controller includes a second power determination module in addition to the data sending module and the first power determination module.

[0081] The communication module is further configured to establish a communication connection with the gateway 11 in response to an instruction to establish a connection with the gateway 11. Specifically, the controller may send an instruction to establish a connection with the gateway 11 to the communication module via the bus to request the communication module to establish a communication connection with the gateway 11. Furthermore, the communication module is further configured to send the received signal strength of the gateway 11 and the WiFi signal strength to the second power determination module.

[0082] The gateway 11 is also configured to receive communication connections and provide feedback to the communication module regarding the gateway 11 signal strength and the WiFi signal strength. The gateway 11 can monitor the WiFi signal strength RSSI_STA (also known as WiFi signal strength) in real time. The gateway 11 signal strength is the factory-set minimum RSSI (also known as antenna sensitivity S) for the AP, recorded as RSSI_AP.

[0083] Regarding WiFi transmission: The overall goal of WiFi transmission is to ensure transmission efficiency, i.e., an acceptable packet loss rate and sufficient bandwidth (network speed). Stronger signal strength increases transmission reliability, but also increases power consumption. Wi-Fi signal strength can be affected by obstructions, distance, and even antenna angle between the AP and STAs.

[0084] Power consumption sources: In the IoT system architecture of 1AP + n×STA, power consumption comes from three sources: controller (MCU) peripherals and RF ICs. Battery-powered or charging terminals (12STA) are particularly sensitive to power consumption. Reducing the transmit power of terminals (12STA) (or RF ICs) will reduce the overall system power consumption.

[0085] To explain intuitively, if the overall transmission power of the RF IC of a terminal 12 is 0.5W, the transmission power is mainly generated by the current exciting the corresponding electromagnetic waves in the RF IC. The transmission power of the RF IC is described by the electromagnetic wave intensity I generated. I is expressed as the average of the energy flow wave vector in one oscillation cycle. The formula is as follows: I = Average (E×B / μ0), where B represents the magnetic induction intensity and E is the electric field intensity.

[0086] For electromagnetic wave I, E and B can be described by sine and cosine, and considering the mean, the formula is as follows:

[0087]

[0088] Where μ0 represents the air attenuation parameter and c represents the speed of light. Assuming that the energy (RF IC transmission power) is increased fourfold, for example, if the 0.5W RF IC is increased to 2W, the amplitude of the electromagnetic wave in the air will increase to twice the original value. Figure 3 As shown, it is a schematic diagram of the radiation energy of electromagnetic waves in the air.

[0089] During propagation, electromagnetic waves experience energy loss, and I, S and E, B are constantly attenuated. Therefore, the extent of this loss before becoming background white noise is related to the AP antenna's receiving sensitivity (S). This sensitivity is described by the minimum intensity of the received electromagnetic wave, or RSSI_AP. Therefore, antenna sensitivity S = 101g (kTB) + NF + SNR, or V = 101g (thermal noise power within the bandwidth) + system noise figure + signal-to-noise ratio required for demodulation. This sensitivity is highly dependent on the electromagnetic environment.

[0090] Based on the above analysis, the embodiment of the present disclosure coarsely adjusts the initial transmission power pre-set by the RF IC during the power-on process of the terminal 12. Specifically, the second power determination module is configured to receive the signal strength of the gateway 11 and the WiFi signal strength, and determine the transmission power when the terminal 12 sends the first first data packet based on the pre-set initial transmission power, the gateway 11 signal strength and the WiFi signal strength.

[0091] Exemplarily, since the relationship between transmit power and signal strength is a square, the transmit power P1 when the terminal 12 sends the first first data packet is determined according to the following formula:

[0092]

[0093] Wherein, P1 represents the transmission power when the terminal 12 sends the first first data packet; P0 represents the initial transmission power; RSSI_AP represents the signal strength of the gateway 11; RSSI_STA represents the WiFi signal strength.

[0094] This example uses a calculation method to quickly approach the optimal low power state after the terminal 12 is powered on, so that the radio frequency IC can maintain an ideal low power consumption state when it starts working.

[0095] As another example, the transmission power can also be adjusted by a binary method. Specifically, after the terminal 12 is powered on and before the power-on time of the terminal 12 is reached, the initial transmission power is adjusted multiple times, and the initial transmission power after each adjustment is used as the next initial transmission power to be adjusted; when the power-on time of the terminal 12 is reached, the initial transmission power after the most recent adjustment is used as the transmission power when the terminal 12 sends the first first data packet; wherein, each adjustment of the initial transmission power specifically includes: determining whether the WiFi signal strength is greater than the gateway 11 signal strength; if the WiFi signal strength is greater than the gateway 11 signal strength, adjusting the initial transmission power according to a preset algorithm so that the adjusted initial transmission power is less than the initial transmission power before adjustment; if the WiFi signal strength is less than or equal to the gateway 11 signal strength, using the current initial transmission power as the next initial transmission power to be adjusted.

[0096] Here, the preset algorithm is, for example, the following dichotomy formula:

[0097]

[0098] Wherein, P1 represents the transmission power when the terminal 12 sends the first first data packet; P0 represents the initial transmission power.

[0099] Here, the power-on time of the terminal 12 may refer to the shortest duration of the power-on of the terminal 12 ; or the average duration of the power-on of the terminal 12 according to historical statistics.

[0100] This example uses a dichotomy method to more accurately locate the optimal low power area after the terminal 12 is powered on, so that the radio frequency IC can maintain an ideal low power consumption state when it starts working.

[0101] In some embodiments, the power determination unit includes a first coarse adjustment subunit and a second coarse adjustment subunit; the first coarse adjustment subunit is configured to determine the coarse adjustment power based on the correspondence between transmit power and signal strength, a preset initial transmit power, the signal strength of gateway 11, and the WiFi signal strength; the second coarse adjustment subunit is configured to determine the transmit power when terminal 12 sends the first first data packet based on the power-on time of terminal 12, the coarse adjustment power, the signal strength of gateway 11, and the WiFi signal strength. The power-on time of terminal 12 may refer to the shortest duration of time that terminal 12 is powered on; or the average duration of time that terminal 12 is powered on as determined historically. The correspondence between transmit power and signal strength can be understood as a square relationship; for example, if the transmit power increases fourfold, the signal strength increases twofold.

[0102] The first coarse adjustment subunit is configured to determine a specific process of the coarse adjustment power: illustratively, since the transmit power and the signal strength are in a square relationship, the coarse adjustment power P2 is determined according to the following formula:

[0103]

[0104] Wherein, P2 represents the coarse adjustment power; P0 represents the initial transmission power; RSSI_AP represents the signal strength of the gateway 11; and RSSI_STA represents the WiFi signal strength.

[0105] The second coarse adjustment subunit is configured to determine the specific process of the transmission power when the terminal 12 sends the first first data packet: illustratively, the second coarse adjustment subunit is specifically configured to adjust the coarse adjustment power multiple times after the terminal 12 is powered on and before the terminal 12 power-on time is reached, and use the coarse adjustment power after each adjustment as the next coarse adjustment power to be adjusted; when the terminal 12 power-on time is reached, use the coarse adjustment power after the most recent adjustment as the transmission power when the terminal 12 sends the first first data packet; wherein, each adjustment of the coarse adjustment power specifically includes: determining whether the WiFi signal strength is greater than the gateway 11 signal strength; if the WiFi signal strength is greater than the gateway 11 signal strength, adjusting the coarse adjustment power according to a preset algorithm so that the adjusted coarse adjustment power is less than the coarse adjustment power before adjustment; if the WiFi signal strength is less than or equal to the gateway 11 signal strength, using the current coarse adjustment power as the next coarse adjustment power to be adjusted.

[0106] The preset algorithm is, for example, the following dichotomy formula:

[0107]

[0108] Wherein, P1 represents the transmission power when the terminal 12 sends the first first data packet; P2 represents the coarse adjustment power.

[0109] The following is a complete example to illustrate the dynamic adjustment of the power of the terminal 12 for sending data: Figure 4 A schematic diagram of information interaction between the gateway 11 and the terminal 12 provided in an embodiment of the present disclosure, as shown in FIG. Figure 4As shown, it includes a coarse adjustment process and a fine adjustment process of the transmission power, wherein the coarse adjustment process refers to the process of adjusting the initial transmission power after the terminal 12 is powered on and before the power-on time of the terminal 12 is reached, so as to determine the transmission power when the terminal 12 sends the first first data packet; the fine adjustment refers to the process of adjusting the transmission power of the current first data packet being sent based on the judgment result of whether the packet loss rate is greater than the first preset threshold after the power-on time of the terminal 12 is reached, so as to determine the transmission power of the next first data packet being sent. Specifically, ① the terminal 12 is powered on and connected to the gateway 11; ② the gateway 11 is powered on and started; ③ the connection is received and the gateway 11 signal strength and the WiFi signal strength are fed back to the terminal 12; ④ the terminal 12 performs coarse power adjustment according to the initial transmission power, the gateway 11 signal strength and the WiFi signal strength (see the above coarse adjustment process for details); ⑤ the terminal 12 determines the transmission power when sending the first first data packet, and sends data according to the determined transmission power; ⑥ the gateway 11 continuously receives the first data packet and counts it, and when the counting result reaches the second preset threshold each time, the packet loss rate is counted and sent to the terminal 12; ⑦ the terminal 12 receives the packet loss rate fed back by the gateway 11, and determines whether the packet loss rate is greater than the first preset threshold; based on the judgment result and the transmission power of the current first data packet, the transmission power of the next first data packet is determined, so as to continue to send the next first data packet according to the transmission power of the next first data packet.

[0110] In some embodiments, the IOT-type WiFi module has two low-power sleep modes, light sleep and deep sleep, and the performance and power consumption of light sleep mode and deep sleep mode are different. The present disclosure estimates the power consumption of light sleep mode and deep sleep mode in the sleep cycle in advance, and determines the sleep mode of the terminal 12 to enter the sleep cycle, thereby achieving low power consumption of the system.

[0111] The power consumption of the terminal 12 in the light sleep state is lower than that of normal operation (for example, data transmission and reception), but efficiency is reduced. The power consumption of the terminal 12 in the deep sleep state is the lowest, but reconnecting requires re-scanning the WiFi network, which increases power consumption. Therefore, the present disclosure comprehensively considers various influencing factors to calculate the optimal power consumption strategy.

[0112] Specifically, the terminal 12 also includes a mode determination module. The mode determination module is configured to, within a sleep cycle, determine whether the sleep mode of the sleep cycle to be entered by the terminal 12 is the light sleep mode or the deep sleep mode based on a preset fifth average current in the light sleep mode, a preset sixth average current when scanning for connection to the gateway 11, a preset seventh average current in the deep sleep mode, the duration of the sleep cycle, and the duration of the connection to the gateway 11; and enter a sleep state according to the determined sleep mode until the wake-up cycle begins. A heartbeat cycle includes a wake-up cycle and a sleep cycle.

[0113] The fifth average current in the light sleep mode, the sixth average current when the gateway 11 is connected, and the seventh average current in the deep sleep mode are average parameters calculated in advance and are configured as fixed values ​​for the terminal 12 .

[0114] The duration of the sleep cycle is the interval between two heartbeats of the terminal 12. One heartbeat corresponds to one wake-up cycle. The interval between two heartbeats is also the interval between two wake-up cycles.

[0115] The actual connection duration of each time the terminal 12 scans the gateway 11 for connection varies. The average connection duration of historical scans for the gateway 11 for connection can be calculated and configured as a fixed parameter for the terminal 12, serving as the estimated connection duration for the terminal 12 to scan the gateway 11 for connection during the sleep mode phase. Alternatively, the connection duration of the terminal 12's most recent WiFi scan for connection can be used as the estimated connection duration for the terminal 12 to scan the gateway 11 for connection.

[0116] Exemplarily, the fifth average current of the terminal 12 in the light sleep mode is A5, which can be obtained through a fixed mode test. The sixth average current of the terminal 12 when performing a WiFi scan connection is A6, which can be obtained through a fixed mode test; the connection time of the terminal 12 when performing a WiFi scan connection is t7. The seventh average current A7 of the terminal 12 in the deep sleep mode can be obtained through a fixed mode test. The length of time that the terminal 12 is dormant and not working within a heartbeat cycle (that is, the length of a sleep cycle) is t8. Based on this, the terminal 12 determines whether to enter a light sleep state or a deep sleep state before entering sleep each time. If the terminal 12 selects the sleep mode of the sleep cycle to be entered as the light sleep mode, the energy consumed is A5×t8. If the terminal 12 selects the sleep mode of the sleep cycle to be entered as the deep sleep mode, the energy consumed is (t8-t7)×A7+t7×A6. If A5×t8>(t8-t7)×A7+t7×A6, it is determined that the sleep mode of the sleep cycle to be entered by the terminal 12 is the deep sleep mode, and the duration of the sleep cycle to be entered is set to t8-t7; conversely, if A5×t8≤(t8-t7)×A7+t7×A6, it is determined that the sleep mode of the sleep cycle to be entered by the terminal 12 is the light sleep mode.

[0117] This embodiment comprehensively considers various influencing factors. Within one heartbeat cycle of the terminal 12, the fifth average current of the terminal 12 in the light sleep mode, the sixth average current when scanning the gateway 11 for connection, the seventh average current in the deep sleep mode, the length of the sleep cycle, and the connection time of the scanning gateway 11 for connection are used to reasonably calculate the optimal power consumption strategy (that is, light sleep mode or deep sleep mode), so as to enter the sleep state according to the optimal power consumption strategy, thereby reducing the power consumption of the terminal 12 in the sleep state, and further reducing the power consumption of the system.

[0118] In some embodiments, the terminal 12 is further configured to operate in a light sleep mode during the wake-up period until responding to a data receiving or sending request and receiving or sending data according to a preset task.

[0119] This embodiment sets the operating state of the terminal 12 during the wake-up period so that it maintains a light sleep mode, which can reduce the power consumption of the terminal 12.

[0120] Here, the preset task can be combined with the above-mentioned embodiments to further determine whether to compress the data packet during the process of the terminal 12 receiving the second data packet or sending the first data packet, thereby determining the system's optimal low-power data transmission mode (compressed mode or non-compressed mode), thereby achieving low power consumption of the system.

[0121] In addition, the WiFi module used in the embodiments of the present disclosure can implement communication using the sixth-generation wireless network technology WiFi6. WiFi6 adds a TWT function. In the multi-terminal 12 WiFi scenario to which it is adapted, the TWT broadcast mode is used, that is, the AP and STA execute the TWT protocol, mutually confirm the wake-up cycle (i.e., active time), establish a data connection during the wake-up cycle, and the STA sleeps at other times to maintain a low power consumption state.

[0122] However, the significance of TWT in the prior art is that there is no need to reconnect after waking up from sleep mode. The current terminal 12 is often designed with a sleep mechanism. During the period when no work is required, the MCUwifi IC enters sleep mode to reduce power consumption. However, after restarting, WiFi, as a peripheral device, needs to re-execute the connection with the AP, that is, scanning, discovery, and confirmation of SSID. The AP will re-include the terminal 12 in the routing table before transmitting data, which increases additional power consumption.

[0123] In the IOT low-power scenario, if the sleep mechanism of terminal 12 takes into account the time slot of TWT, so that the wake-up cycle of terminal 12 WiFi is in the working state of terminal 12, then the power consumption can be further reduced and data can be transmitted at any time when it wakes up.

[0124] In terms of the TWT mechanism, the most common application scenario in the prior art is that the AP uniformly arranges the wake-up cycle of the terminal 12 according to the number of terminals 12 to avoid air data collisions. However, the working state of the terminal 12 is constantly adjusted, and the use of a fixed wake-up cycle often cannot meet the requirements of low power consumption. Based on this, the embodiment of the present disclosure also provides a solution for calculating the next wake-up cycle of the terminal 12 in combination with the current transmission power of the terminal 12, so that the terminal 12 enters the wake-up state according to the optimal wake-up cycle to achieve low power consumption of the system. For example, the wake-up cycle is continuously updated, and as the wake-up cycle shortens, the sleep cycle increases within a heartbeat cycle, thereby reducing the power consumption of the terminal 12. In some embodiments, the gateway 11 is also configured to calculate the wake-up cycle of different terminals 12 according to a preset algorithm.

[0125] Specifically, the gateway 11 is configured to distribute the wake-up periods of multiple terminals 12 of the same type mounted thereon, wherein the multiple terminals 12 of the same type can be understood as terminals 12 that perform the same or similar tasks.

[0126] For example, an AP is mounted with 100 terminals 12 having the same function (e.g., WiFi price tags in a supermarket). After the transmit power reduction described in the above embodiment, each terminal 12 will have a different transmit power lower limit (or the stable transmit power of the terminal 12). The AP can determine the data in the following table:

[0127] Serial number IP Transmit power (W) 1 192.168.1.2 1 2 192.168.1.4 2 3 192.168.1.6 3

[0128] This embodiment balances the power consumption of all terminals 12 and lengthens the frequency of the wake-up cycle of terminal 123. It is assumed that the optimal operating frequency of terminal 12 is F = X times / min and the minimum frequency is Y times / min. We use terminal 121, that is, the terminal 12 with the lowest power consumption, as a benchmark. When the system needs to have minimum consumption, all terminals 12 perform TWT wake-up at Y times / min. When efficiency needs to be taken into account, the frequency of terminal 121 is F = X × Q1 / Q. Among them, Q1 represents the transmission power of terminal 12 after the last update, and Q represents the stable transmission power of terminal 12. If F is less than Y, then F = Y.

[0129] This feature can be used in scenarios where, among multiple terminals 12 performing identical functions, the periods of low WiFi power consumption can be used to occupy more available time slots, allowing more functions to be completed, thereby reducing overall power consumption. For example, in a supermarket, both mosquito repellent lamps and lighting fixtures need to collect light intensity information. Using the mosquito repellent lamps to collect data consumes more power, resulting in higher system energy consumption. Therefore, the mosquito repellent lamps can be used to increase their sleep cycle and shorten their wake-up cycle.

[0130] The basic idea of ​​implementing this function is to achieve more accurate calculations by the gateway 11 to save bandwidth on the terminal 12 side. The implementation method is to maintain a terminal 12 time slot (wake-up cycle) table in the TWT protocol of the gateway 11. The format is as follows:

[0131] start T1 T2 T3 T4 Finish Idle / Sleep Sn1 Sn2 Sn3 Sn4

[0132] Among them, Sn1, Sn2, Sn3 and Sn4 respectively represent different terminals 12; T1, T2, T3 and T4 respectively represent wake-up periods corresponding to different terminals 12.

[0133] In the existing TWT protocol, this time slot table is only agreed upon when it is turned on (hereinafter referred to as the gateway 11 command mode). What the gateway 11 needs to calculate is the next wake-up cycle of each terminal 12. A statistical analysis can be performed through the object model, as shown in the following table:

[0134] Task (Function) Available devices Task cycle times / min TASK1 Sn1 SN2 SN3 2 TASK2 SN3 SN4 1 TASK3 SN2 4

[0135] Then, the AP will have four active time slots (maximum) per minute. The functions of these four time slots are:

[0136] Time Slot 1 2 3 4 Task 1 2 3 3 2 3 3

[0137] Undoubtedly, when executing each task, the power consumption is different Wmin = ∑Wmintaskn, that is, each task is completed by the terminal 12 with the lowest power consumption. We then obtain the set of periods during which the time slot should be started:

[0138] Time Slot 1 2 3 4 SN 2 3 2 23 2

[0139] This provides the basis for TWT to adjust time slots. Each active time slot makes an agreement with the next active device. For example, 100 supermarket tags all have the function of testing light intensity, and the light intensity in an area is consistent, so the period with the lowest power consumption in the area can be selected to complete the task.

[0140] In some embodiments, in addition to calculating the next wake-up cycle of terminal 12 based on the current transmission power of terminal 12, different wake-up cycles can be assigned to each terminal 12 mounted under the gateway 11 based on the different amount of data transmitted per unit time by different terminals 12, so as to be suitable for network communications of different terminals 12. For example, a terminal 12 that sends a large amount of data can get more opportunities.

[0141] Specifically, the gateway 11 is further configured to determine the next wake-up cycle of the terminal 12 according to the amount of data transmitted by the terminal 12 per unit time and the network speed of the terminal 12 .

[0142] Most terminals 12 require real-time transmission capabilities, which are reflected in time slots (wake-up cycles). That is, during each time slot (wake-up cycle), all terminals 12 are active for data communication. Therefore, the more accurate the time allocated to a terminal 12 in each time slot, the lower the power consumption of the terminal 12.

[0143] The gateway 11 is configured to determine the next wake-up period T of the terminal 12 according to the following formula:

[0144]

[0145] Here, M represents the amount of data transmitted per unit time by the terminal 12, and S represents the network speed of the terminal 12. It should be noted that the amount of data transmitted per unit time by the terminal 12 may be a parameter pre-configured for the gateway 11; alternatively, the gateway 11 may detect the amount of data transmitted per unit time by each of the gateways 11 mounted thereon.

[0146] Similarly, the next wake-up period T of each terminal 12SN mounted under the gateway 11 is determined:

[0147] Time Slot SN1 SN2 SN3 SN4 Finish idle T <![CDATA[M1 / S1]]> <![CDATA[M2 / S2]]> <![CDATA[M3 / S3]]> <![CDATA[M4 / S4]]>

[0148] For example, the amount of data transmitted by the terminal 12 per minute is 60k, and the network speed is 1K / s, then the time slot (wake-up period) of the terminal 12 per minute is 1s.

[0149] In this embodiment, the gateway 11 allocates a precise wake-up period to each terminal 12 according to the amount of data transmitted per unit time by the terminal 12 and the network speed, so as to minimize the power consumption of each terminal 12 .

[0150] In some embodiments, for some terminals 12 reporting data, a higher reporting frequency is not necessary in a stable environment. For example, in a greenhouse, using a temperature sensor to collect room temperature, using the same reporting frequency during periods of rapid temperature fluctuations and periods of stability would waste resources and increase power consumption. Based on this, embodiments of the present disclosure provide a solution that combines the amount of data changes collected by the terminal 12 with the time difference to calculate the next wake-up cycle of the terminal 12. This allows the terminal 12 to enter the wake-up state according to the optimal wake-up cycle, achieving low system power consumption.

[0151] Specifically, the gateway 11 is also configured to obtain a predefined minimum data change between two adjacent data transmissions of the terminal 12; determine the next wake-up cycle of the terminal 12 based on the minimum data change, the actual data change between two adjacent data transmissions, and the time difference between the two adjacent data transmissions.

[0152] Here, the minimum data change amount δ is a predefined minimum change amount δ that allows the terminal 12 to report data twice adjacently. If the difference between the amount of data currently to be reported by the terminal 12 and the amount of data reported previously is less than the minimum change amount δ, it means that there is no need to report the data collected by the terminal 12. At this time, the terminal 12 can save this report, thereby reducing power consumption.

[0153] The actual data change ΔR between two adjacent data transmissions is the difference ΔR between the current collected data (which can also be understood as the data to be transmitted) and the data volume at the time of the last data reporting.

[0154] The gateway 11 is further configured to determine the next wake-up period T of the terminal 12 according to the following formula:

[0155]

[0156]

[0157] Wherein, δ represents the minimum data change; L represents the slope, which is the ratio of the time difference ΔT between two adjacent data transmissions to the actual data change ΔR between the two adjacent data transmissions.

[0158] For example, if a temperature sensor is used to collect room temperature data and δ is set to 2°C, and if the room temperature changes by 1°C over a 2s period, the actual temperature currently collected by the temperature sensor does not need to be reported. In this case, L = 1 / 2. The slope L is set constant, and the next wake-up period for terminal 12 is determined to be T = 2 / L.

[0159] In this embodiment, the gateway 11 sets an accurate next wake-up cycle for the terminal 12 by comparing the change in the amount of data transmitted between two adjacent transmissions and the time interval, so as to minimize the power consumption of the terminal 12 .

[0160] In addition, an embodiment of the present disclosure further provides a low-power device interconnection method, which is applied to a low-power device interconnection system, the low-power device interconnection system including a gateway and a terminal;

[0161] The terminal sends a first data packet to the gateway, receives the packet loss rate fed back by the gateway, and determines whether the packet loss rate is greater than a first preset threshold; based on the judgment result and the transmission power of the current first data packet, determines the transmission power for sending the next first data packet.

[0162] It should be noted that the execution process of the terminal can refer to the specific embodiment of the terminal in the low-power device interconnection system mentioned above, and the repeated parts will not be repeated.

[0163] The gateway receives the first data packet and counts it, and whenever the counting result reaches a second preset threshold, calculates the packet loss rate and clears the counting result to zero; and sends the packet loss rate to the terminal.

[0164] It should be noted that the execution process of the gateway can refer to the specific embodiment of the gateway in the low-power device interconnection system mentioned above, and the repeated parts will not be repeated.

[0165] The embodiment of the present disclosure dynamically adjusts the transmission power of the terminal at the application level (terminal) to ensure that the terminal can continuously maintain a low power consumption state. Specifically, the terminal mainly determines whether to adjust its own transmission power at present by receiving the packet loss rate fed back by the gateway (i.e., the protocol layer). For example, when the judgment result indicates that the packet loss rate is low, the transmission power can be appropriately reduced to reduce the power consumption of the system. In addition, the gateway side can be set to count the packet loss rate when a certain number of first data packets are received, so as to avoid unnecessary power consumption caused by frequent statistics of the packet loss rate, thereby avoiding unnecessary power consumption caused by frequent adjustment of the transmission power.

[0166] In some embodiments, the terminal includes a communication module and a controller;

[0167] The communication module sends the received first data packet to the gateway; and receives the packet loss rate fed back by the gateway and sends it to the control module; receives the transmission power to be configured, so as to send the next first data packet according to the currently configured transmission power.

[0168] It should be noted that the execution process of the communication module can refer to the specific embodiment of the communication module in the low-power device interconnection system mentioned above, and the repeated parts will not be repeated.

[0169] The controller sends the first data packet to be sent to the communication module; and receives the packet loss rate to determine whether the packet loss rate is greater than a first preset threshold; based on the judgment result and the transmission power of the current first data packet, determines the transmission power of the next first data packet, and configures the transmission power of the next first data packet to the communication module.

[0170] It should be noted that the execution process of the controller can refer to the specific embodiment of the controller in the low-power device interconnection system mentioned above, and the repeated parts will not be repeated.

[0171] In some embodiments, the controller includes a data sending module and a first power determination module.

[0172] The data sending module sends the first data packet to be sent to the communication module.

[0173] It should be noted that the execution process of the data sending module can refer to the specific embodiment of the data sending module in the low-power device interconnection system mentioned above, and the repeated parts will not be repeated.

[0174] Figure 5 The flowchart of fine-tuning power provided by the embodiment of the present disclosure is as follows: Figure 5 As shown, the execution subject is the first power determination module, which specifically includes steps S11 to S14, wherein:

[0175] S11, receiving packet loss rate.

[0176] S12. Determine whether the packet loss rate is greater than a first preset threshold; if the packet loss rate is less than or equal to the first preset threshold, execute step S13; if the packet loss rate is greater than the preset threshold, execute step S14.

[0177] S13. According to a preset first power adjustment range, reduce the transmission power of the current first data packet, determine the transmission power of the next first data packet, and configure the transmission power of the next first data packet to the communication module.

[0178] S14. According to a preset second power adjustment range, increase the transmission power of the current first data packet, determine the transmission power of the next first data packet, and configure the transmission power of the next first data packet to the communication module.

[0179] It should be noted that the detailed execution process of the data sending module can be found in the specific embodiment of the data sending module in the low-power device interconnection system mentioned above, and the repeated parts will not be repeated.

[0180] In some embodiments, the data sending module specifically responds to the data sending request, determines a data sending mode according to a first data volume of a first data packet to be sent, and sends the first data packet according to the data sending mode.

[0181] It should be noted that the specific execution process of the data sending module can refer to the specific embodiment of the data sending module in the low-power device interconnection system mentioned above, and the repeated parts will not be repeated.

[0182] In some embodiments, the data sending module includes a mode determination unit and a data sending unit; the mode determination unit determines the second data volume of the first data packet after compression based on the first data volume of the first data packet; determines a comparison result of the energy consumption of compressed sending and the energy consumption of uncompressed sending based on the first data volume, the second data volume, the first average current when the first data packet is sent uncompressed, and the second average current when the first data packet is sent compressed; determines the data sending mode as compressed mode or uncompressed mode based on the comparison result; the data sending unit sends the first data packet according to the determined data sending mode as compressed mode or uncompressed mode.

[0183] It should be noted that the execution process of the mode determination unit and the data sending unit can refer to the specific embodiments of the mode determination unit and the data sending unit in the low-power device interconnection system, and the repeated parts will not be repeated.

[0184] In some embodiments, the gateway also includes executing the following process: determining the fourth data volume of the second data packet after compression based on the third data volume of the second data packet to be sent; determining a comparison result of the energy consumption of the terminal receiving compressed data and the energy consumption of receiving uncompressed data based on the third data volume, the fourth data volume, the third average current when the terminal receives the data, and the fourth average current when the terminal decompresses the data; determining whether the data sending mode is a compressed mode or a non-compressed mode based on the comparison result; and sending the second data packet to the terminal according to the determined data transmission mode being a compressed mode or a non-compressed mode.

[0185] It should be noted that the execution process of the gateway can refer to the specific embodiment of the gateway in the low-power device interconnection system mentioned above, and the repeated parts will not be repeated.

[0186] In some embodiments, the terminal includes a communication module and a controller; the controller further includes a second power determination module; the second power determination module includes a power-on connection unit and a power determination unit;

[0187] The communication module, in response to a command to establish a connection with the gateway, establishes a communication connection with the gateway and transmits the received gateway signal strength and Wi-Fi signal strength to the second power determination module. The second power determination module receives the gateway signal strength and Wi-Fi signal strength and determines the transmit power of the terminal when sending the first first data packet based on the preset initial transmit power, the gateway signal strength, and the Wi-Fi signal strength. The gateway receives the communication connection and feeds back the gateway signal strength and Wi-Fi signal strength to the communication module.

[0188] In some embodiments, the power determination unit includes a first coarse adjustment subunit and a second coarse adjustment subunit; the first coarse adjustment subunit is configured to determine the coarse adjustment power based on the correspondence between the transmission power and the signal strength, the pre-set initial transmission power, the gateway signal strength and the WiFi signal strength.

[0189] Figure 6a The flowchart of the first step of coarse power adjustment provided by the embodiment of the present disclosure is as follows: Figure 6a As shown, the execution subject is the first coarse adjustment subunit, which specifically includes steps S21 to S23, wherein:

[0190] S21. Obtain initial transmit power.

[0191] S22: Receive the gateway signal strength and WiFi signal strength fed back by the AP.

[0192] S23. Determine the coarse adjustment power according to the initial transmission power, the gateway signal strength, and the WiFi signal strength.

[0193] For example, since the transmit power and the signal strength are in a square relationship, the coarse adjustment power P2 is determined according to the following formula:

[0194]

[0195] Where P2 represents the coarse adjustment power; P0 represents the initial transmit power; RSSI_AP represents the gateway signal strength; and RSSI_STA represents the WiFi signal strength.

[0196] The second coarse adjustment subunit determines the transmission power when the terminal sends the first first data packet according to the terminal power-on time, the coarse adjustment power, the gateway signal strength and the WiFi signal strength.

[0197] It should be noted that the execution process of the second coarse adjustment subunit can refer to the specific embodiment of the second coarse adjustment subunit in the low-power device interconnection system mentioned above, and the repeated parts will not be repeated.

[0198] In some embodiments, the second coarse adjustment sub-unit specifically performs the following process: after the terminal is powered on and before the terminal power-on time is reached, the coarse adjustment power is adjusted multiple times, and the coarse adjustment power after each adjustment is used as the next coarse adjustment power to be adjusted; when the terminal power-on time is reached, the coarse adjustment power after the most recent adjustment is used as the transmission power when the terminal sends the first first data packet.

[0199] Each adjustment of the coarse adjustment power specifically includes: determining whether the WiFi signal strength is greater than the gateway signal strength; if the WiFi signal strength is greater than the gateway signal strength, adjusting the coarse adjustment power according to a preset algorithm so that the adjusted coarse adjustment power is less than the coarse adjustment power before adjustment; if the WiFi signal strength is less than or equal to the gateway signal strength, using the current coarse adjustment power as the next coarse adjustment power to be adjusted.

[0200] Figure 6b The flowchart of the second step of coarse power adjustment provided by the embodiment of the present disclosure is as follows: Figure 6b As shown, the execution subject is the second coarse adjustment subunit, which specifically includes steps S31 to S35, wherein:

[0201] S31. Obtain coarse adjustment power.

[0202] S32. Determine whether the WiFi signal strength is greater than the gateway signal strength. If the WiFi signal strength is greater than the gateway signal strength, execute step S33; if the WiFi signal strength is less than or equal to the gateway signal strength, execute step S35.

[0203] S33. Adjust the coarse adjustment power according to a preset algorithm so that the coarse adjustment power after adjustment is less than the coarse adjustment power before adjustment.

[0204] S34. Determine whether the terminal power-on time has arrived after the terminal is powered on. If so, end the process. If the terminal is powered on and the terminal power-on time has not arrived, return to step S32.

[0205] S35. Use the current coarse adjustment power as the next coarse adjustment power to be adjusted, and execute step S34. If the terminal reaches the terminal power-on time after powering on, the coarse adjustment power adjusted last time is used as the transmission power when the terminal sends the first first data packet.

[0206] In some embodiments, the terminal also includes a mode determination module; a heartbeat cycle includes a wake-up cycle and a sleep cycle; the mode determination module determines, in response to the expiration of a wake-up cycle, whether the sleep mode of the sleep cycle to be entered by the terminal is light sleep mode or deep sleep mode based on a preset fifth average current in light sleep mode, a preset sixth average current when scanning for a gateway for connection, a preset seventh average current in deep sleep mode, the length of the sleep cycle, and the connection length of the scanning gateway for connection; and, enters a sleep state according to the determined sleep mode until the wake-up cycle begins.

[0207] It should be noted that the execution process of the mode determination module can refer to the specific embodiment of the mode determination module in the low-power device interconnection system described above, and the repeated parts will not be repeated.

[0208] In some embodiments, the terminal operates in a light sleep mode during the wake-up period until responding to a data receiving or sending request and receiving or sending data according to a preset task.

[0209] It should be noted that the execution process of the terminal can refer to the specific embodiment of the terminal for the wake-up cycle stage in the low-power device interconnection system mentioned above, and the repeated parts will not be repeated.

[0210] In some embodiments, the gateway calculates the wake-up periods of different terminals according to a preset algorithm.

[0211] In some embodiments, the gateway determines the next wake-up cycle of the terminal based on the amount of data transmitted by the terminal per unit time and the network speed of the terminal.

[0212] It should be noted that the execution process of the gateway determining the next wake-up cycle of the terminal can refer to the specific embodiment of the gateway in the above-mentioned low-power device interconnection system being configured to determine the next wake-up cycle of the terminal based on the amount of data transmitted by the terminal per unit time and the network speed of the terminal. The repeated parts will not be repeated.

[0213] In some embodiments, the gateway obtains a predefined minimum data change between two adjacent data transmissions of the terminal; determines the next wake-up cycle of the terminal based on the minimum data change, the actual data change between two adjacent data transmissions, and the time difference between the two adjacent data transmissions.

[0214] It should be noted that the execution process of the gateway determining the next wake-up cycle of the terminal can refer to the specific embodiment in which the gateway in the above-mentioned low-power device interconnection system is also configured to determine the next wake-up cycle of the terminal based on the minimum data change, the actual data change between two adjacent data transmissions, and the time difference between two adjacent data transmissions. The repeated parts will not be repeated.

[0215] According to an embodiment of the present disclosure, a non-transitory computer-readable storage medium is further provided. The non-transitory computer-readable storage medium stores a computer program, wherein when the program is executed by a processor, the steps of any of the low-power device interconnection methods described in the above embodiments are implemented.

[0216] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a machine-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication part, and / or installed from a removable medium. When the computer program is executed by a central processing unit (CPU), the above-mentioned functions defined in the system of the present disclosure are executed.

[0217] It should be noted that the computer non-transitory readable medium shown in the present disclosure can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium may also be any non-transitory computer-readable storage medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the non-transitory computer-readable storage medium may be transmitted using any suitable medium, including but not limited to wireless, wire, optical cable, RF, etc., or any suitable combination thereof.

[0218] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architectures, functions and operations of the devices, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the aforementioned module, program segment, or a part of code contains one or more executable instructions for implementing the specified logical functions. It should also be noted that in some alternative implementations, the functions marked in the boxes can also occur in an order different from that marked in the accompanying drawings. For example, two connected boxes can actually represent execution in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0219] The circuits or sub-circuits described in the embodiments of the present disclosure may be implemented in software or hardware. The described circuits or sub-circuits may also be provided in a processor. For example, they may be described as: a processor comprising: a receiving circuit and a processing circuit, wherein the processing module comprises a writing sub-circuit and a reading sub-circuit. The names of these circuits or sub-circuits do not, in certain circumstances, constitute limitations on the circuits or sub-circuits themselves. For example, a receiving circuit may also be described as "receiving a video signal."

[0220] It is understood that the above embodiments are merely exemplary embodiments for illustrating the principles of the present disclosure, and the present disclosure is not limited thereto. Those skilled in the art may make various modifications and improvements without departing from the spirit and substance of the present disclosure, and such modifications and improvements are also considered to be within the scope of protection of the present disclosure.

Claims

1. A low-power device interconnection system, comprising a gateway and a terminal; The terminal is configured to send a first data packet to the gateway, receive a packet loss rate fed back by the gateway, and determine whether the packet loss rate is greater than a first preset threshold; Determining a transmit power for sending a next first data packet based on the determination result and the transmit power of the current first data packet; The gateway is configured to receive and count the first data packet, and whenever the counting result reaches a second preset threshold, calculate a packet loss rate and reset the counting result to zero; and send the packet loss rate to the terminal; The terminal includes a communication module and a controller; the controller also includes a second power determination module; The communication module is further configured to establish a communication connection with the gateway in response to an instruction to establish a connection with the gateway; and send the received gateway signal strength and WiFi signal strength to the second power determination module; The gateway signal strength is the minimum received signal strength of the wireless access point set at the factory, and the WiFi signal strength refers to the signal strength of the WiFi signal in the air that the gateway can detect in real time; The second power determination module is configured to receive the gateway signal strength and the WiFi signal strength, and determine the transmit power when the terminal sends the first first data packet based on the preset initial transmit power, the gateway signal strength, and the WiFi signal strength; The gateway is further configured to receive the communication connection and feed back the gateway signal strength and the WiFi signal strength to the communication module.

2. The low-power device interconnection system according to claim 1, wherein: The terminal includes a communication module and a controller; The communication module is configured to send the received first data packet to the gateway; receive a packet loss rate fed back by the gateway and send it to the controller; receive a transmit power to be configured, so as to send the next first data packet according to the currently configured transmit power; The controller is configured to send the first data packet to be sent to the communication module; and, receiving the packet loss rate, and determining whether the packet loss rate is greater than a first preset threshold; According to the judgment result and the transmission power of the current sending of the first data packet, the transmission power of sending the next first data packet is determined, and the transmission power of sending the next first data packet is configured to the communication module.

3. The low-power device interconnection system according to claim 2, wherein: The controller includes a data sending module and a first power determination module; The data sending module is configured to send the first data packet to be sent to the communication module; The first power determination module is configured to receive the packet loss rate; When the packet loss rate is less than or equal to the first preset threshold, reduce the transmit power of the current first data packet according to a preset first power adjustment range, determine the transmit power for sending the next first data packet, and configure the transmit power for sending the next first data packet to the communication module; When the packet loss rate is greater than the preset threshold, the transmission power of the current first data packet being sent is increased according to the preset second power adjustment range, the transmission power of the next first data packet being sent is determined, and the transmission power of the next first data packet being sent is configured to the communication module.

4. The low-power device interconnection system according to claim 3, wherein: The data sending module is specifically configured to determine a data sending mode in response to a data sending request according to a first data volume of a first data packet to be sent; and send the first data packet according to the data sending mode.

5. The low-power device interconnection system according to claim 4, wherein: The data sending module includes a mode determination unit and a data sending unit; The mode determination unit is configured to determine, based on the first data volume of the first data packet, a second data volume of the compressed first data packet; determine a comparison result of energy consumption of compressed transmission and energy consumption of uncompressed transmission based on the first data volume, the second data volume, a first average current when the first data packet is sent uncompressed, and a second average current when the first data packet is sent compressed; and determine, based on the comparison result, whether the data transmission mode is compressed mode or uncompressed mode; The data sending unit is configured to send the first data packet according to the determined data sending mode, which is a compressed mode or a non-compressed mode.

6. The low-power device interconnection system according to claim 1, wherein: The gateway is further configured to determine a fourth data volume of the compressed second data packet based on the third data volume of the second data packet to be sent; determine a comparison result of the energy consumption of the terminal receiving compressed data and the energy consumption of receiving uncompressed data based on the third data volume, the fourth data volume, the third average current when the terminal receives data, and the fourth average current when the terminal decompresses data; determine whether the data sending mode is a compressed mode or a non-compressed mode based on the comparison result; and send the second data packet to the terminal according to the determined data sending mode being the compressed mode or the non-compressed mode.

7. The low-power device interconnection system according to claim 1, wherein: The second power determination module includes a first coarse adjustment subunit and a second coarse adjustment subunit; The first coarse adjustment subunit is configured to determine the coarse adjustment power according to the correspondence between the transmit power and the signal strength, the preset initial transmit power, the gateway signal strength and the WiFi signal strength; The second coarse adjustment subunit is configured to determine the transmission power of the terminal when sending the first first data packet according to the terminal power-on time, the coarse adjustment power, the gateway signal strength and the WiFi signal strength.

8. The low-power device interconnection system according to claim 7, wherein: The second coarse adjustment subunit is specifically configured to adjust the coarse adjustment power multiple times after the terminal is powered on and before the terminal power-on time is reached, and use the coarse adjustment power after each adjustment as the next coarse adjustment power to be adjusted; when the terminal power-on time is reached, use the coarse adjustment power after the most recent adjustment as the transmit power when the terminal sends the first first data packet; Each adjustment of the coarse adjustment power specifically includes: determining whether the WiFi signal strength is greater than the gateway signal strength; if the WiFi signal strength is greater than the gateway signal strength, adjusting the coarse adjustment power according to a preset algorithm so that the adjusted coarse adjustment power is less than the coarse adjustment power before adjustment; if the WiFi signal strength is less than or equal to the gateway signal strength, using the current coarse adjustment power as the next coarse adjustment power to be adjusted.

9. The low-power device interconnection system according to claim 1, wherein: The terminal also includes a mode determination module; a heartbeat cycle includes a wake-up cycle and a sleep cycle; The mode determination module is configured to, in response to the expiration of a wake-up cycle, determine whether the sleep mode of the sleep cycle to be entered by the terminal is the light sleep mode or the deep sleep mode based on a preset fifth average current in the light sleep mode, a preset sixth average current when scanning the gateway for connection, a preset seventh average current in the deep sleep mode, the duration of the sleep cycle, and the connection duration of scanning the gateway for connection; and enter a sleep state according to the determined sleep mode until the wake-up cycle begins.

10. The low-power device interconnection system according to claim 1, wherein: The terminal is further configured to operate in a light sleep mode during a wake-up period until responding to a data receiving or sending request and receiving or sending data according to a preset task.

11. The low-power device interconnection system according to claim 1, wherein: The gateway is further configured to determine the next wake-up cycle of the terminal according to the amount of data transmitted by the terminal per unit time and the network speed of the terminal.

12. The low-power device interconnection system according to claim 1, wherein: The gateway is further configured to obtain a predefined minimum data change between two adjacent data transmissions of the terminal; and determine the next wake-up cycle of the terminal based on the minimum data change, the actual data change between two adjacent data transmissions, and the time difference between the two adjacent data transmissions.

13. A low-power device interconnection method, applied to a low-power device interconnection system, the low-power device interconnection system comprising a gateway and a terminal; the terminal comprising a communication module and a controller; the controller further comprising a second power determination module; The communication module establishes a communication connection with the gateway in response to an instruction to establish a connection with the gateway; The gateway receives the communication connection and feeds back the gateway signal strength and the WiFi signal strength to the communication module; The gateway signal strength is the minimum received signal strength of the wireless access point set at the factory, and the WiFi signal strength refers to the signal strength of the WiFi signal in the air that the gateway can detect in real time; The communication module sends the received gateway signal strength and the received WiFi signal strength to the second power determination module; The second power determination module is configured to receive the gateway signal strength and the WiFi signal strength, and determine the transmit power when the terminal sends the first first data packet based on the preset initial transmit power, the gateway signal strength, and the WiFi signal strength; The terminal sends a first data packet to the gateway, receives a packet loss rate fed back by the gateway, and determines whether the packet loss rate is greater than a first preset threshold; Determining a transmit power for sending a next first data packet based on the determination result and the transmit power of the current first data packet; The gateway receives and counts the first data packet, and whenever the counting result reaches a second preset threshold, calculates the packet loss rate and resets the counting result to zero; and sending the packet loss rate to the terminal.

14. A computer non-transitory readable storage medium, wherein: The computer non-transitory readable storage medium stores a computer program, which, when executed by a processor, executes the steps of the low-power device interconnection method as claimed in claim 13.

Citation Information

Patent Citations

  • Adjustment method and terminal for WIFI transmission power

    CN103415066A

  • Wireless sensor, wireless sensor network and event reporting method

    CN114258033A