Low-power-consumption device interconnection system and method, and storage medium

By dynamically adjusting the transmission power between the terminal and the gateway, and adjusting the transmission power according to the packet loss rate and the transmission mode of the data packet, the power consumption increase caused by the fixed transmission power in the prior art is solved, and the terminal is realized under different working states low power operation.

WO2024245173A1PCT designated stage expired Publication Date: 2024-12-05BOE TECHNOLOGY GROUP CO LTD +1

Patent Information

Application Number
PCT/CN2024/095394
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-05-30
Filing Date
2024-05-27
Publication Date
2024-12-05

AI Technical Summary

Technical Problem

When the working state of the existing wireless network system changes, the fixed transmit power transmits data, resulting in an increase in power consumption, especially in battery-powered devices, which makes it difficult to achieve low-power operation.

Method used

By dynamically adjusting the transmit power between the terminal and the gateway, and adjusting the transmit power according to the packet loss rate and the transmission mode of the data packet, ensuring low power consumption under different operating conditions. The terminal receives the packet loss rate feedback from the gateway and adjusts the transmission power according to the preset threshold. After receiving a certain number of data packets, the gateway counts the packet loss rate to reduce the power consumption caused by frequent adjustments.

Benefits of technology

It effectively reduces the power consumption of wireless communication equipment, ensures that the terminal continues to maintain a low power consumption state under different working conditions, and avoids unnecessary increase in power consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024095394_05122024_PF_FP_ABST
    Figure CN2024095394_05122024_PF_FP_ABST
Patent Text Reader

Abstract

The present disclosure belongs to the technical field of communications. Provided are a low-power-consumption device interconnection system and method, and a storage medium. The low-power-consumption 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 which is fed back by the gateway, and then determine whether the packet loss rate is greater than a first preset threshold value; and according to a determination result and the current transmission power for sending the first data packet, determine a transmission power for sending the next first data packet. The gateway is configured to receive the first data packet and perform counting, compile statistics on a packet loss rate each time a counting result reaches a second preset threshold value, and then clear the counting result to zero; and send the packet loss rate to the terminal.
Need to check novelty before this filing date? Find Prior Art

Description

Low-power device interconnection system, method and storage medium

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This disclosure claims priority to Chinese Patent Publication No. 202310628051.8, filed on May 30, 2023, and the disclosure is incorporated herein by reference. Technical Field

[0003] 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

[0004] 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.

[0005] Summary of the Invention

[0006] 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.

[0007] In the 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, wherein

[0008] 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; determine a transmission power for sending a next first data packet based on the determination result and the transmission power of the current transmission of the first data packet; and

[0009] 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 clear the counting result to zero; and send the packet loss rate to the terminal.

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

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

[0012] The controller is configured to send the first data packet to be sent to the communication module; and receive the packet loss rate from the communication module, and determine whether the packet loss rate is greater than the 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 of sending the next first data packet, and configure the transmission power of sending the next first data packet to the communication module.

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

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

[0015] 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 transmission power of the current first data packet to be sent according to a preset first power adjustment range, and use it as 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; when the packet loss rate is greater than the preset threshold, increase the transmission power of the current first data packet to be sent according to a preset second power adjustment range, and use it as 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.

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

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

[0018] The mode determination unit is configured to: determine a second data volume of the compressed first data packet based on a first data volume of the 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 whether the data transmission mode is compressed mode or uncompressed mode based on the comparison result; and

[0019] The data sending unit is configured to send the first data packet according to the determined data sending mode.

[0020] In some embodiments, the energy consumption of the compressed transmission is A1×(a+b×N1)+A2×(c+d×n1), and the energy consumption of the uncompressed transmission is A1×(a+b×n1), wherein A1 represents the first average current when the first data packet is sent uncompressed, A2 represents the second average current used to compress the first data, n1 represents the first data volume, (a+b×n1) represents the sending time of the first data packet when it is uncompressed, (a+b×N1) represents the time used to compress and send the first data packet, N1 represents the second data volume, (c+d×n1) represents the time used to compress the first data packet, a, b, c and d are preset coefficients, and wherein,

[0021] The mode determination unit is further configured to: determine that the sending mode is the non-compressed mode when the energy consumption A1×(a+b×N1)+A2×(c+d×n1) of the compressed sending is greater than the energy consumption A1×(a+b×n1) of the non-compressed sending; and determine that the sending mode is the compressed mode when the energy consumption A1×(a+b×N1)+A2×(c+d×n1) of the compressed sending is not greater than the energy consumption A1×(a+b×n1) of the non-compressed sending.

[0022] 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 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.

[0023] In some embodiments, the energy consumption of the terminal receiving compressed data is A3×(e+f×N2)+A4×(g+h×N2), and the energy consumption of receiving uncompressed data is A3×(e+f×n2), A3 represents the third average current when the terminal receives data, A4 represents the fourth average current when the terminal decompresses data, n2 represents the third data amount, N2 represents the fourth data amount, (e+f×N2) represents the time the terminal receives data, (g+h×N2) represents the time the terminal uses to decompress data, (e+f×n2) represents the time the terminal uses to receive data, e, f, g and h represent preset parameters, and wherein,

[0024] The gateway is further configured to: determine that the data sending mode is the non-compressed mode when the energy consumption A3×(e+f×N2)+A4×(g+h×N2) of the terminal receiving compressed data is greater than the energy consumption A3×(e+f×n2) of receiving non-compressed data; and determine that the data sending mode is the compressed mode when the energy consumption A3×(e+f×N2)+A4×(g+h×N2) of the terminal receiving compressed data is not greater than the energy consumption A3×(e+f×n2) of receiving non-compressed data.

[0025] In some embodiments, the terminal includes a communication module and a controller; the controller further includes a second power determination module;

[0026] The communication module is 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;

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

[0028] The gateway is further configured to receive the communication connection request, send the instruction to establish the connection to the communication module, and feed back the gateway signal strength and the WiFi signal strength to the communication module.

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

[0030] The first coarse adjustment subunit is configured to determine the coarse adjustment power for sending the first data packet by the terminal according to the correspondence between the transmit power and signal strength of the first data packet sent by the terminal, the preset initial transmit power for sending the first data packet by the terminal, the gateway signal strength, and the WiFi signal strength;

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

[0032] In some embodiments, the second coarse adjustment subunit determines the coarse adjustment power for the terminal to send the first first data packet according to the following formula:

[0033] Among them, P1 represents the transmission power when the terminal sends the first first data packet; P0 represents the initial transmission power when the terminal sends the first data packet; RSSI_AP represents the gateway signal strength; RSSI_STA represents the WiFi signal strength.

[0034] In some embodiments, the second coarse adjustment subunit determines the transmit power when the terminal sends the first first data packet according to the following formula:

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

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

[0037] The second coarse adjustment subunit is further configured to: determine whether the WiFi signal strength is greater than the gateway signal strength during each adjustment of the coarse adjustment power; if the WiFi signal strength is greater than the gateway signal strength, adjust the coarse adjustment power for the terminal to send the first data packet according to a preset algorithm, so that the coarse adjustment power for the terminal to send the first data packet after adjustment is less than the coarse adjustment power for the terminal to send the first data packet before adjustment; if the WiFi signal strength is less than or equal to the gateway signal strength, use the coarse adjustment power for the terminal to send the first data packet currently as the coarse adjustment power for the terminal to send the first data packet next to be adjusted.

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

[0039] 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 the terminal scanning the gateway for connection; and enter a sleep state according to the determined sleep mode until the wake-up cycle starts.

[0040] In some embodiments, the energy consumed by the terminal when entering light sleep is A5×t8, and the energy consumed by the terminal when entering deep sleep is (t8-t7)×A7+t7×A6, A5 represents the fifth average current preset in light sleep mode, A6 represents the sixth average current preset when scanning the gateway for connection, A7 represents the seventh average current preset in deep sleep mode, t8 represents the duration of the sleep cycle, t7 represents the connection duration of the terminal scanning the gateway for connection, and wherein

[0041] The mode determination module is further configured to: determine that the terminal enters the deep sleep mode when the energy A5×t8 consumed by the terminal to enter light sleep is greater than the energy (t8-t7)×A7+t7×A6 consumed by the terminal to enter the deep sleep; and determine that the terminal enters the light sleep mode when the energy A5×t8 consumed by the terminal to enter light sleep is not greater than the energy (t8-t7)×A7+t7×A6 consumed by the terminal to enter the deep sleep.

[0042] 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.

[0043] 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.

[0044] 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.

[0045] 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; wherein the low-power device interconnection method includes:

[0046] 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; determines a transmission power for sending a next first data packet based on the determination result and the transmission power of the current first data packet; and

[0047] 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.

[0048] 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

[0049] FIG1 is a schematic diagram of a low-power device interconnection system provided by an embodiment of the present disclosure;

[0050] FIG2 is a schematic diagram of information interaction between a gateway and a terminal according to an embodiment of the present disclosure;

[0051] FIG3 is a schematic diagram of radiation energy of electromagnetic waves in the air according to an embodiment of the present disclosure;

[0052] FIG4 is a schematic diagram of information interaction between a gateway and a terminal according to an embodiment of the present disclosure;

[0053] FIG5 is a flowchart of fine-tuning power according to an embodiment of the present disclosure;

[0054] FIG6 a is a flowchart of the first step of coarse power adjustment provided by an embodiment of the present disclosure;

[0055] FIG6 b is a flowchart of the second step of coarse power adjustment provided by an embodiment of the present disclosure. DETAILED DESCRIPTION

[0056] 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.

[0057] 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 terms 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 presence of at least one. Words such as "include" or "comprise" mean that the elements or objects preceding 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 described object changes, the relative positional relationship may also change accordingly.

[0058] 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.

[0059] 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.

[0060] 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.

[0061] 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.

[0062] 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.

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

[0064] FIG1 is a schematic diagram of a low-power device interconnection system provided by an embodiment of the present disclosure. As shown in FIG1 , the low-power device interconnection system includes a gateway 11 and a terminal 12; the low-power device is, for example, a gateway 11 and / or a terminal 12. The gateway 11 can be understood as a wireless access point (AP), also referred to as a "hotspot", which can be connected by multiple terminals 12 to establish the center of a star-shaped topology network, usually in the form of a router or customer premises equipment (CPE). The terminal 12 can be understood as a WiFi module, which is a WiFi wireless terminal STA.

[0065] FIG2 is a schematic diagram of information exchange between gateway 11 and terminal 12 according to an embodiment of the present disclosure. As shown in FIG2 , terminal 12 is configured to send a first data packet to gateway 11, receive the packet loss rate fed back by gateway 11, and determine whether the packet loss rate is greater than a first preset threshold. Based on the determination result and the transmit power of the current first data packet, the transmit power for the next first data packet is determined. 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. The packet loss rate is then sent to terminal 12.

[0066] 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 TCP / IP protocol at the link layer 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 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.

[0067] 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.

[0068] 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.

[0069] 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.

[0070] In some embodiments, the terminal STA 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 RF IC is connected to the controller via a bus; the RF IC establishes a communication connection with the gateway 11, thereby establishing a communication connection between the controller and the gateway 11 via the RF IC.

[0071] 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 .

[0072] 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.

[0073] 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.

[0074] Exemplarily, if the judgment result indicates that the packet loss rate is less than or equal to the first preset threshold, the controller instructs the communication module to reduce the transmission power of the current first data packet, thereby reducing the transmission power of the RF IC for subsequent transmission of the first data packet, and further 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.

[0075] In some embodiments, the controller includes a data sending module and a first power determination module. The data sending module is configured to send a first data packet to be sent to the communication module. The first power determination module is configured to receive a packet loss rate; when the packet loss rate is less than or equal to a first preset threshold, the transmission power of the current first data packet is reduced according to a 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 be allocated to the communication module; when the packet loss rate is greater than the preset threshold, the transmission power of the current first data packet is increased according to a 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 be allocated to the communication module.

[0076] 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.

[0077] 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.

[0078] 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.

[0079] 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.

[0080] 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.

[0081] Exemplarily, when the first data volume does not reach the preset data volume, the data sending mode is determined to be the non-compressed mode; and the first data packet is sent in the non-compressed mode. When the first data volume reaches the preset data volume, the data sending mode is determined to be the compressed mode; and the first data packet is sent in the compressed 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 needs to satisfy the following: the transmission energy consumption Q1 of the first data packet corresponding to the preset data volume in the non-compressed 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).

[0082] 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.

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

[0084] 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.

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

[0086] 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 used by terminal 12 to transmit data is A1, which can be obtained through fixed-mode testing. During the data compression process of terminal 12, the time used to compress the data is t2 = c + d × n1, where c and d are coefficients and can be obtained through actual measurement. The second average current used to compress the 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 data is compressed and transmitted, 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 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 compressed mode.

[0087] 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.

[0088] 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.

[0089] 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.

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

[0091] 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 and can be obtained through actual measurement; the third average current used by the terminal 12 to receive the data is A3, which can be obtained through fixed-mode testing. 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 process of decompressing the data by the terminal 12, the time for decompressing the data is t6 = g + h × N2, where g and h are coefficients and can be obtained through actual measurement; the fourth average current used by the terminal 12 to decompress the data is A4, which can be obtained through fixed-mode testing. 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.

[0092] 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 used by terminal 12 when receiving data, and the fourth average current used by terminal 12 when decompressing 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.

[0093] 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.

[0094] 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 gateway signal strength and WiFi signal strength to the second power determination module.

[0095] The gateway 11 is also configured to receive communication connection requests and provide feedback to the communication module regarding the gateway 11's signal strength and Wi-Fi signal strength. The gateway 11 monitors the Wi-Fi signal strength RSSI_STA (also known as Wi-Fi signal strength) in real time. The gateway 11's signal strength is the factory-set minimum RSSI (also known as antenna sensitivity S) for the AP, recorded as RSSI_AP.

[0096] In the embodiments of this application, the overall goal of WiFi transmission is to ensure transmission efficiency, namely, "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 STA.

[0097] In the IoT system architecture of 1AP + n×STAs, power consumption comes from three sources: the controller (MCU), peripherals, and RF ICs. Terminal STAs that are powered by batteries or are being charged are particularly sensitive to power consumption. Reducing the transmit power of these terminals (or RF ICs) will reduce the overall system power consumption.

[0098] 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 wavefront vector in one oscillation cycle. The formula is as follows: I=S=Average(E×B / μ0), where B represents the magnetic induction intensity; E is the electric field intensity, and S represents the electromagnetic energy flowing through a unit area perpendicular to it per unit time.

[0099] For the electromagnetic wave intensity I, E and B can be described by sine and cosine, and the mean value can be considered. The formula is as follows:

[0100] Here, μ0 represents the air attenuation parameter, and c represents the speed of light. Assuming the energy (RF IC transmit power) is increased fourfold—for example, if the 0.5W RF IC is increased to 2W—then the amplitude of the electromagnetic wave in the air will double. Figure 3 shows the schematic diagram of the radiated energy of electromagnetic waves in the air.

[0101] During propagation, electromagnetic waves experience energy loss, and I, S and E, B are constantly attenuated. The magnitude of this loss before becoming background white noise is related to the AP antenna's receiving sensitivity. Antenna sensitivity is described by the minimum intensity of the received electromagnetic wave (i.e., the minimum S mentioned above), also known as RSSI_AP. Therefore, antenna sensitivity S = 101g (kTB) + NF + SNR. Specifically, antenna sensitivity S = 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.

[0102] Based on the above analysis, the embodiment of the present disclosure coarsely adjusts the pre-set initial transmission power of the RF IC during the power-on process of the terminal 12. Specifically, the second power determination module is configured to receive the gateway signal strength 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, gateway signal strength and WiFi signal strength.

[0103] 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:

[0104] 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 gateway signal strength; RSSI_STA represents the WiFi signal strength.

[0105] The calculation method used in this example can enable the terminal 12 to quickly approach the optimal low power after power-on, thereby ensuring that the radio frequency IC maintains an ideal low power consumption state when it starts working.

[0106] 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 of the terminal sending the first data packet 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 signal strength; if the WiFi signal strength is greater than the gateway 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 signal strength, using the current initial transmission power as the next initial transmission power to be adjusted.

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

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

[0109] Here, the power-on time of the terminal 12 may refer to the shortest time from when the terminal 12 is powered on to when it is powered on; or the average time from when the terminal 12 is powered on to when it is powered on according to historical statistics.

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

[0111] 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, gateway signal strength, and 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, gateway signal strength, and WiFi signal strength. The power-on time of terminal 12 may refer to the shortest time from when terminal 12 is powered on to when it is powered on; or the average time of when terminal 12 is powered on and 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.

[0112] 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:

[0113] 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.

[0114] The second coarse adjustment subunit is configured to determine the transmission power when the terminal 12 sends the first first data packet. Furthermore, the second coarse adjustment subunit is specifically configured to: after the terminal 12 is powered on and before the terminal 12 power-on time is reached, adjust the coarse adjustment power multiple times, 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 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.

[0115] The preset algorithm is shown in the following dichotomy formula:

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

[0117] The following is a complete example to illustrate the dynamic adjustment of the power of the terminal 12 to send data: Figure 4 is a schematic diagram of the information interaction between the gateway 11 and the terminal 12 provided in an embodiment of the present disclosure. As shown in Figure 4, the information interaction between the gateway 11 and the terminal 12 includes a coarse adjustment process and a fine adjustment process of the transmission power, wherein the coarse adjustment process refers to the adjustment of 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 to be 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 to be sent. Specifically, ① the terminal 12 is powered on and started, and connected to the gateway 11; ② the gateway 11 is powered on and started; ③ the connection is received and the gateway 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 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 the data according to the determined transmission power; ⑥ the gateway 11 continuously receives the first data packet and counts it, and each time the counting result reaches the second preset threshold, 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.

[0118] 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.

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

[0120] 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 wake-up cycle and a sleep cycle constitute a heartbeat cycle.

[0121] 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 .

[0122] 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.

[0123] 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.

[0124] 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.

[0125] This embodiment comprehensively considers various influencing factors. Within a 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.

[0126] 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 transmission or reception request and receiving or sending data according to a preset task.

[0127] 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.

[0128] 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, so as to determine the system's optimal low-power data transmission mode (compressed mode or non-compressed mode), thereby achieving low power consumption of the system.

[0129] 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, and in the multi-terminal 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.

[0130] However, the significance of TWT in the existing technology 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, that is, during the period when no work is required, the MCU and wifi IC enter sleep mode to reduce power consumption. However, after restarting, the WiFi terminal, as a peripheral device, needs to re-execute the connection with the AP, that is, scanning, discovery, confirmation of SSID and other processes. The AP will re-include the terminal 12 in the routing table before transmitting data, which increases additional power consumption.

[0131] 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 is in the working state of terminal 12, then power consumption can be further reduced and data can be transmitted at any time when waking up.

[0132] In terms of the TWT mechanism, the most common application scenario in the prior art is: the AP uniformly arranges the wake-up period of each terminal 12 according to the number of terminals 12 to avoid air data collisions. However, the working state of each terminal 12 is constantly adjusted, and the use of a fixed wake-up period 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 period 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 period to achieve low power consumption of the system. For example, the wake-up period is continuously updated (i.e., shortened), and as the wake-up period shortens, the sleep period within one heartbeat cycle increases, thereby reducing the power consumption of the terminal 12. In some embodiments, the gateway 11 is also configured to calculate the wake-up period of each terminal 12 according to a preset algorithm.

[0133] Specifically, the gateway 11 is configured to configure the wake-up period 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.

[0134] 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:

[0135] In this embodiment, in order to balance the power consumption of all terminals 12, the frequency of the wake-up cycle of terminal 123 is lengthened. It is assumed that the optimal operating frequency of terminal 12 is F = X times / min and the minimum frequency is F = Y times / min. In this embodiment, the terminal 12 with the lowest power consumption is used as the 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 the target terminal 12 is F = X × Q1 / Q. Among them, Q1 represents the transmit power of terminal 12 after the last update, and Q represents the stable transmit power of terminal 12. If F is less than Y, F = Y.

[0136] 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.

[0137] 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 time slot (wake-up cycle) table of the terminal 12 in the TWT protocol on the gateway 11 side. The format is as follows:

[0138] 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.

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

[0140] Then, the gateway (AP) will have a maximum of four active time slots per minute, and the functions of these four time slots are:

[0141] Undoubtedly, the power consumption of each task is different, and 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:

[0142] Therefore, the basis for TWT to adjust the time slot is obtained, and the active devices in each active time slot are specified accordingly. For example, 100 supermarket tags 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 it.

[0143] In some embodiments, in addition to calculating the next wake-up cycle of the terminal 12 based on the current transmission power of the 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 by different terminals 12 per unit time, so as to be suitable for network communications of different terminals 12. For example, the terminal 12 that sends a large amount of data can get more opportunities.

[0144] 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 .

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

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

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

[0148] Similarly, the next wake-up period T of each terminal 12 (Sn) mounted under the gateway 11 is determined:

[0149] 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.

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

[0151] 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 data, 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, the disclosed embodiments provide a solution that uses the change in data transmitted by a terminal 12 and 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.

[0152] 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.

[0153] Here, the minimum data change δ is a predefined minimum data change δ between two adjacent data transmissions (reports) allowed by the terminal 12. If the data change between the data currently to be transmitted by the terminal 12 and the data transmitted previously is less than the minimum data change δ, it means that the data collected by the terminal 12 does not need to be transmitted. At this time, the terminal 12 can save this transmission, thereby reducing power consumption.

[0154] The actual variation of the values ​​of the data transmitted between two adjacent times is ΔR, which is the data variation between the currently transmitted data (which can also be understood as the data to be transmitted) and the last transmitted data (ie, the difference between the values ​​of the two transmitted data).

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

[0156] 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.

[0157] 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.

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

[0159] 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; the method includes:

[0160] 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.

[0161] 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.

[0162] In this embodiment, 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.

[0163] It should be noted that the process of executing the operation 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.

[0164] 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.

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

[0166] 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.

[0167] It should be noted that the process of the communication module performing the operation 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.

[0168] 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.

[0169] It should be noted that the process of the controller executing the operation 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.

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

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

[0172] It should be noted that the process of the data sending module executing the operation 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.

[0173] FIG5 is a flowchart of fine-tuning power according to an embodiment of the present disclosure. As shown in FIG5 , the execution subject is a first power determination module, and specifically includes steps S11 to S14, wherein:

[0174] S11, receiving packet loss rate.

[0175] 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.

[0176] 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.

[0177] 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.

[0178] It should be noted that the execution operation 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.

[0179] 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.

[0180] 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.

[0181] 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.

[0182] 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.

[0183] 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.

[0184] It should be noted that the process of the gateway executing the operation 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.

[0185] In some embodiments, the terminal includes a communication module and a controller; the controller includes a second power determination module;

[0186] 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.

[0187] In some embodiments, the second 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.

[0188] FIG6a is a flowchart of the first step of coarse power adjustment provided by an embodiment of the present disclosure. As shown in FIG6a , the execution body is the first coarse adjustment subunit, which specifically includes steps S21 to S23, wherein:

[0189] S21. Obtain an initial transmission power for a terminal to send a first data packet.

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

[0191] S23: Determine a coarse adjustment power for the terminal to send the first data packet according to the initial transmission power, the gateway signal strength, and the WiFi signal strength.

[0192] 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:

[0193] 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.

[0194] 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.

[0195] It should be noted that the process of the second coarse adjustment subunit performing the operation 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.

[0196] 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.

[0197] 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.

[0198] FIG6 b is a flowchart of the second step of coarse power adjustment provided by an embodiment of the present disclosure. As shown in FIG6 b , the execution body is the second coarse adjustment subunit, which specifically includes steps S31 to S35, wherein:

[0199] S31. Obtain coarse adjustment power.

[0200] 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.

[0201] 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.

[0202] 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.

[0203] 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.

[0204] In some embodiments, the terminal further includes a mode determination module; a heartbeat cycle of the terminal includes a wake-up cycle and a sleep cycle. In response to the expiration of a wake-up cycle, the mode determination module determines 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 for a gateway for connection, a preset seventh average current in the deep sleep mode, the duration of the sleep cycle, and the connection duration of the scanning for a gateway for connection; and enters a sleep state according to the determined sleep mode until the wake-up cycle begins.

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

[0206] 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.

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

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

[0209] 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.

[0210] 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.

[0211] In some embodiments, the gateway obtains a predefined minimum data change between two adjacent data transmissions of the terminal; and 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.

[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 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.

[0213] 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.

[0214] 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.

[0215] 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 component, 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.

[0216] 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.

[0217] 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."

[0218] 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, wherein 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; Determine, according to the determination result and the transmission power of the current transmission of the first data packet, the transmission power of the next transmission of the first data packet; as well as The gateway is configured to receive and count the first data packet, and when the counting result reaches a second preset threshold, calculate the packet loss rate and clear the counting result; And sending the packet loss rate to the terminal.

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 first data packet received from the controller to the gateway; and receive the packet loss rate fed back by the gateway and send it to the controller; receive the transmission power to be configured for sending the first data packet, so as to send the next first data packet according to the currently configured transmission power; The controller is configured to send the first data packet to be sent to the communication module; And, receiving the packet loss rate from the communication module, judging whether the packet loss rate is greater than the first preset threshold; determining the transmission power for sending the next first data packet based on the judgment result and the transmission power for currently sending the first data packet, and configuring the transmission power for sending the next first data packet 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 When the transmit power of the first data packet currently being sent is equal to the first preset threshold, according to the preset first power adjustment range, the transmit power of the first data packet currently being sent is reduced as the transmit power of the next first data packet being sent, and the transmit power of the next first data packet being sent is configured to the communication module; When the packet loss rate is greater than the preset threshold, the transmission power of the current sending of the first data packet is increased according to the preset second power adjustment range, and the transmission power for sending the next first data packet is configured to the communication module.

4. The low-power device interconnection system according to claim 3, wherein: The data sending module is further configured to: determine a data sending mode according to a first data volume of a first data packet to be sent in response to a data sending request; and send the first data packet according to the determined 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 a second data volume of the first data packet after compression according to a first data volume of the first data packet; determine a comparison result of energy consumption of compressed transmission and energy consumption of non-compressed transmission according to 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 determining, according to the comparison result, that the data transmission mode is a compression mode or a non-compression mode; as well as The data sending unit is configured to send the first data packet according to the determined data sending mode.

6. The low-power device interconnection system according to claim 5, wherein: The energy consumption of the compressed transmission is A1×(a+b×N1)+A2×(c+d×n1), and the energy consumption of the uncompressed transmission is A1×(a+b×n1), wherein A1 represents the first average current when the first data packet is not compressed and sent, A2 represents the second average current used to compress the first data, n1 represents the first data volume, (a+b×n1) represents the transmission time of the first data packet when it is not compressed, (a+b×N1) represents the time used for compressed transmission of the first data packet, N1 represents the second data volume, (c+d×n1) represents the time used to compress the first data packet, a, b, c and d are preset coefficients, and wherein, The mode determination unit is further configured to: determine that the sending mode is the non-compressed mode when the energy consumption of the compressed sending A1×(a+b×N1)+A2×(c+d×n1) is greater than the energy consumption of the non-compressed sending A1×(a+b×n1); and determine that the sending mode is the compressed mode when the energy consumption of the compressed sending A1×(a+b×N1)+A2×(c+d×n1) is not greater than the energy consumption of the non-compressed sending A1×(a+b×n1).

7. 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 according to a third data volume of the second data packet to be sent; determine a comparison result of energy consumption of the terminal receiving compressed data and energy consumption of the terminal receiving uncompressed data according to 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, according to the comparison result, whether the data transmission mode is a compression mode or a non-compression mode; and send the second data packet to the terminal according to the determined data transmission mode.

8. The low-power device interconnection system according to claim 7, wherein: The energy consumption of the terminal receiving compressed data is A3×(e+f×N2)+A4×(g+h×N2), and the energy consumption of receiving uncompressed data is A3×(e+f×n2), A3 represents the third average current when the terminal receives data, A4 represents the fourth average current when the terminal decompresses data, n2 represents the third data amount, N2 represents the fourth data amount, (e+f×N2) represents the time when the terminal receives data, (g+h×N2) represents the time used by the terminal to decompress data, (e+f×n2) represents the time used by the terminal to receive data, e, f, g and h represent preset parameters, and wherein, The gateway is further configured to: determine that the data sending mode is the non-compressed mode when the energy consumption A3×(e+f×N2)+A4×(g+h×N2) of the terminal receiving compressed data is greater than the energy consumption A3×(e+f×n2) of receiving non-compressed data; and determine that the data sending mode is the compressed mode when the energy consumption A3×(e+f×N2)+A4×(g+h×N2) of the terminal receiving compressed data is not greater than the energy consumption A3×(e+f×n2) of receiving non-compressed data.

9. The low-power device interconnection system according to claim 1, wherein: The terminal includes a communication module and a controller; the controller also includes a second power determination module; The communication module is 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 second power determination module is configured to: receive the gateway signal strength and the WiFi signal strength, and determine the transmission power when the terminal sends the first first data packet according to the preset initial transmission power, the gateway signal strength and the WiFi signal strength; as well as The gateway is further configured to receive the communication connection request, send the instruction to establish the connection to the communication module, and feed back the gateway signal strength and the WiFi signal strength to the communication module.

10. The low-power device interconnection system according to claim 9, wherein: The second 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 for the terminal to send the first data packet according to the correspondence between the transmission power and signal strength for the terminal to send the first data packet, the preset initial transmission power for the terminal to send the first data packet, the gateway signal strength, and the WiFi signal strength; The second coarse adjustment subunit is configured to determine the transmission power when the terminal sends the first first data packet according to the terminal power-on time, the coarse adjustment power of the terminal sending the first data packet, the gateway signal strength and the WiFi signal strength.

11. The low-power device interconnection system according to claim 10, wherein: The second coarse adjustment subunit determines the coarse adjustment power for the terminal to send the first first data packet according to the following formula: Wherein, P1 represents the transmission power when the terminal sends the first first data packet; P0 represents the transmission power when the terminal sends the first first data packet; The initial transmission power of the first data packet sent by the terminal; RSSI_AP represents the gateway signal strength; RSSI_STA represents the WiFi signal strength.

12. The low-power device interconnection system according to claim 10 or 11, wherein: The second coarse adjustment subunit determines the transmission power when the terminal sends the first first data packet according to the following formula: Wherein, P1 represents the transmission power when the terminal sends the first first data packet; P2 represents the coarse adjustment power.

13. The low-power device interconnection system according to claim 10, wherein: The second coarse adjustment subunit is further configured to: after the terminal is powered on and before the terminal power-on time is reached, adjust the coarse adjustment power of the terminal for sending the first data packet for multiple times, and use the coarse adjustment power of the terminal for sending the first data packet after each adjustment as the next coarse adjustment power of the terminal for sending the first data packet to be adjusted; when the terminal power-on time is reached, use the coarse adjustment power of the terminal for sending the first data packet after the most recent adjustment as the transmission power when the terminal sends the first first data packet; and Among them, the second coarse adjustment subunit is further configured to: determine whether the WiFi signal strength is greater than the gateway signal strength during each adjustment of the coarse adjustment power; if the WiFi signal strength is greater than the gateway signal strength, adjust the coarse adjustment power of the terminal sending the first data packet according to a preset algorithm, so that the coarse adjustment power of the terminal sending the first data packet after adjustment is less than the coarse adjustment power of the terminal sending the first data packet before adjustment; if the WiFi signal strength is less than or equal to the gateway signal strength, use the coarse adjustment power of the terminal sending the first data packet currently as the coarse adjustment power of the terminal sending the first data packet to be adjusted next.

14. The low-power device interconnection system according to claim 1, wherein: The terminal further includes a mode determination module; and a heartbeat cycle of the terminal 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 according to 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 the terminal scanning the gateway for connection; and enter a sleep state according to the determined sleep mode until the wake-up cycle starts.

15. The low-power device interconnection system according to claim 14, wherein: The energy consumed by the terminal entering light sleep is A5×t8, and the energy consumed by the terminal entering deep sleep is (t8-t7)×A7+t7×A6, A5 represents the fifth average current preset in light sleep mode, A6 represents the sixth average current preset when scanning the gateway for connection, A7 represents the seventh average current preset in deep sleep mode, t8 represents the duration of the sleep cycle, t7 represents the connection duration of the terminal scanning the gateway for connection, and wherein The mode determination module is further configured to: determine that the terminal enters the deep sleep mode when the energy consumed by the terminal entering the light sleep mode A5×t8 is greater than the energy consumed by the terminal entering the deep sleep mode (t8-t7)×A7+t7×A6; And when the energy A5×t8 consumed by the terminal entering the light sleep is not greater than the energy (t8-t7)×A7+t7×A6 consumed by the terminal entering the deep sleep, it is determined that the terminal enters the light sleep mode.

16. The low-power device interconnection system according to claim 14, wherein: The terminal is also 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.

17. The low-power device interconnection system according to claim 14, 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.

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

19. 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; wherein: The low-power device interconnection method comprises: 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; determines a transmission power for sending a next first data packet according to the determination result and the transmission power of the current transmission of the first data packet; and The gateway receives and counts the first data packet, and when the counting result reaches a second preset threshold, calculates the packet loss rate and clears the counting result; and sends the packet loss rate to the terminal.

20. A computer non-transitory readable storage medium, wherein: The computer non-volatile 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 19.

Citation Information

Patent Citations

  • Method, device and system for controlling outer loop power

    CN102076073A

  • Power adjustment method and device, storage medium and electronic equipment

    CN110996382A

  • Low-power-consumption equipment interconnection system and method and storage medium

    CN116546607A

  • Low power communication system and communication method thereof

    KR1020090094545A

  • Method, apparatus, and terminal for wireless network connection

    US20130116001A1

Cited By

  • Low-power-consumption equipment interconnection and data transmission system

    CN120602444A