Time interval adjustment method and device, storage medium and electronic device

By adjusting the time interval of the routing device and adjusting the transmission interval of beacon frames and data packets according to the working mode, the problem of imbalance between power consumption and WIFI rate of routing device is solved, and better power consumption management and user experience is achieved.

CN120166419APending Publication Date: 2025-06-17ZTE CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311735177.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-12-15
Publication Date
2025-06-17

AI Technical Summary

Technical Problem

In the prior art, the power consumption of the routing device is unbalanced with the WIFI rate, resulting in excessive success in the equipment working at full speed for a long time, excessive heat generation, and affecting the user experience.

Method used

By determining the operating mode of the routing device, the first time interval of every two beacon frames sent and the second time interval of every two packets transmitted wirelessly are adjusted to achieve a balance of power consumption and WIFI rate.

Benefits of technology

The power consumption of routing equipment and WIFI rate is balanced, solving the problems of excessive power consumption and poor user experience in the prior art.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120166419A_ABST
    Figure CN120166419A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a time interval adjustment method and device, a storage medium and an electronic device.The time interval adjustment method comprises the steps that the working mode of routing equipment is determined, and a first adjustment strategy for a first time interval of the routing equipment is determined according to the working mode, and / or a second adjustment strategy for a second time interval of the routing device, the first time interval being a time interval of every two beacon frames to be broadcasted and sent by the routing device, the second time interval being a time interval of every two data packets to be wirelessly transmitted by the routing device, the first adjustment strategy being used for increasing the first time interval, and the second adjustment strategy being used for increasing the second time interval. The second adjustment strategy is used for increasing the second time interval; the first time interval is adjusted according to the first adjustment strategy, and / or the second time interval is adjusted according to the second adjustment strategy, and the problem that the power consumption and the transmission rate of the routing equipment are unbalanced in the prior art is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of communications, and in particular, to a method and apparatus for adjusting a time interval, a storage medium, and an electronic device. Background Art

[0002] Routing devices such as CPE, routers, UFi, and in-vehicle WiFi provide WiFi functions to the outside. If these devices work at full speed for a long time, it will cause excessive power consumption and overheating. If the rate is reduced, it will affect the user experience. Therefore, balancing power consumption / heating and the rate of WiFi devices is something that needs further attention in such products.

[0003] The prior art is to add a temperature sensor in the device or use the temperature sensor of the WiFi chip itself to detect the temperature of the WiFi device. When the temperature is too high, a temperature control algorithm is started, and the WiFi chip stops working, so as to reduce the power consumption of the device, reduce the heat generation, and the device gradually cools down. When the device returns to the normal temperature, the temperature control algorithm is turned off and the WiFi chip resumes working.

[0004] That is, in the prior art, the WIFI rate of the routing device is sacrificed to ensure the power consumption of the routing device, thereby reducing the user experience.

[0005] Regarding the related art, there is currently no effective solution to the problem of the imbalance between the power consumption and the WIFI rate of the routing device.

[0006] Therefore, it is necessary to improve the related art to overcome the defects in the related art. Summary of the Invention

[0007] The embodiments of the present application provide a method and apparatus for adjusting a time interval, a storage medium, and an electronic device, so as to at least solve the problem of the imbalance between the power consumption and the WIFI rate of the routing device in the related art.

[0008] According to an embodiment of the present application, a method for adjusting a time interval is provided, including: determining a working mode of a routing device, and determining a first adjustment strategy for a first time interval of the routing device and / or a second adjustment strategy for a second time interval of the routing device according to the working mode, where the first time interval is a time interval between every two beacon frames to be broadcast and sent by the routing device, and the second time interval is a time interval between every two data packets to be wirelessly transmitted by the routing device; adjusting the first time interval according to the first adjustment strategy and / or adjusting the second time interval according to the second adjustment strategy.

[0009] According to another embodiment of the present application, a time interval adjustment device is provided, including: a determination module, configured to determine the working mode of a routing device, and determine a first adjustment strategy for a first time interval of the routing device and / or a second adjustment strategy for a second time interval of the routing device according to the working mode, where the first time interval is the time interval between every two beacon frames to be broadcast and sent by the routing device, and the second time interval is the time interval between every two data packets to be wirelessly transmitted by the routing device; an adjustment module, configured to adjust the first time interval according to the first adjustment strategy and / or adjust the second time interval according to the second adjustment strategy.

[0010] According to still another embodiment of the present application, a computer-readable storage medium is further provided, where a computer program is stored in the computer-readable storage medium, and the computer program is configured to execute the steps in any one of the above method embodiments when running.

[0011] According to still another embodiment of the present application, an electronic device is further provided, including a memory and a processor, where a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0012] Through the embodiments of the present application, the present application adjusts the first time interval between every two beacon frames sent according to the working mode, and / or adjusts the second time interval between every two data packets wirelessly transmitted according to the working mode, so as to achieve the balance between the power consumption of the routing device and the WiFi rate of the routing device, and solve the problem of imbalance between the power consumption of the routing device and the WiFi rate in the prior art. Description of the Drawings

[0013] The drawings described herein are used to provide a further understanding of the present invention, and constitute a part of the present application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation to the present invention. In the drawings:

[0014] Figure 1 is the hardware structure block diagram of the routing device of the time interval adjustment method according to the embodiment of the present invention;

[0015] Figure 2 is the flowchart of the time interval adjustment method according to the embodiment of the present invention;

[0016] Figure 3 is the schematic diagram of the relationship between the power consumption and the WiFi rate according to the embodiment of the present invention;

[0017] Figure 4 is the schematic diagram (1) of the time interval adjustment method according to the embodiment of the present invention;

[0018] Figure 5 Schematic diagram (2) of the time interval adjustment method according to an embodiment of the present invention;

[0019] Figure 6 Schematic diagram (3) of the time interval adjustment method according to an embodiment of the present invention;

[0020] Figure 7 Block diagram of the structure of the time interval adjustment device according to an embodiment of the present invention. Detailed implementation manners

[0021] In the following, embodiments of the present application will be described in detail with reference to the accompanying drawings and in combination with embodiments.

[0022] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and do not necessarily need to be used to describe a specific order or sequence.

[0023] The method embodiments provided in the embodiments of the present application can be executed in a routing device, a computer terminal, or a similar computing device. Taking running on a routing device as an example, Figure 1 is the hardware block diagram of a routing device of a time interval adjustment method according to an embodiment of the present application. As Figure 1 shown, the routing device may include one or more ( Figure 1 only one is shown in the figure) processors 102 (the processor 102 may include, but is not limited to, a processing device such as a microprocessor (Central Processing Unit, MCU) or a field programmable gate array (Field Programmable Gate Array, FPGA)) and a memory 104 for storing data. Among them, the above-mentioned routing device may further include a transmission device 106 for communication functions and an input / output device 108. Those of ordinary skill in the art can understand that Figure 1 the structure shown is only schematic and does not limit the structure of the above-mentioned routing device. For example, the routing device may further include more or fewer components than Figure 1 shown in the figure, or have a different configuration from Figure 1 shown in the figure.

[0024] The memory 104 can be used to store computer programs, such as software programs and modules of application software, such as the computer program corresponding to the time interval adjustment method in the embodiments of the present application. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, the above method is implemented. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memories, or other non-volatile solid-state memories. In some instances, the memory 104 may further include a memory remotely disposed relative to the processor 102, and these remote memories can be connected to the routing device through a network. Examples of the above network include but are not limited to the Internet, intranet, local area network, mobile communication network, and combinations thereof.

[0025] The transmission device 106 is used to receive or send data via a network. Specific examples of the above network may include a wireless network provided by a communication provider of the routing device. In one instance, the transmission device 106 includes a network adapter (Network Interface Controller, abbreviated as NIC), which can be connected to other network devices through a base station and thus can communicate with the Internet. In one instance, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0026] In this embodiment, a method for adjusting the time interval running on a routing device is provided. Figure 2 It is a flowchart of the time interval adjustment method according to the embodiments of the present application, as Figure 2 shown, and the process includes the following steps:

[0027] Step S202, determine the working mode of the routing device, and determine a first adjustment strategy for the first time interval of the routing device and / or a second adjustment strategy for the second time interval of the routing device according to the working mode, where the first time interval is the time interval between every two beacon frames to be broadcast and sent by the routing device, and the second time interval is the time interval between every two data packets to be wirelessly transmitted by the routing device;

[0028] The above first time interval can be understood as: the Beacon time slot, that is, the interval between the routing device sending the SSID twice (i.e., the above beacon frame). The smaller the Beacon time slot, the faster the wireless client receives the SSID signal of the wireless router, but the greater the power consumption; the larger the Beacon time slot, the slower the wireless client receives the SSID signal of the wireless router, but the smaller the power consumption.

[0029] The above-mentioned second time interval can be understood as: the DTIM period, that is, the time interval between two wireless packet transmissions of the routing device. The larger the period, the lower the power consumption; the smaller the period, the higher the power consumption.

[0030] It should be noted that increasing the DTIM period can also be understood as decreasing the DTIM threshold. The DTIM threshold is the frequency of wireless packet transmission of the routing device, and it is inversely proportional to the DTIM period. The threshold range is 1 - 255. The higher the frequency, the higher the wireless transmission rate and the higher the power consumption.

[0031] The above-mentioned working modes include: heating mode, communication mode, and normal mode. Among them, the communication mode also includes: a mode where the communication data volume is greater than or equal to the first preset threshold (which can be understood as a large data volume communication mode); a mode where the communication data volume is less than the first preset threshold and greater than the second preset threshold (which can be understood as a medium data volume communication mode); a mode where the communication data volume is less than or equal to the second preset threshold (which can be understood as a small data volume communication mode). In the case where the second preset threshold is 0, the mode where the communication data volume is less than or equal to the second preset threshold can also be understood as a no data volume communication mode.

[0032] Step S204, adjust the first time interval according to the first adjustment strategy, and / or adjust the second time interval according to the second adjustment strategy.

[0033] Through the embodiments of the present application, the present application adjusts the first time interval between every two beacon frames sent according to the working mode, and / or adjusts the second time interval between every two wirelessly transmitted data packets according to the working mode, so as to achieve the balance between the power consumption of the routing device and the WiFi rate of the routing device, and solve the problem of the imbalance between the power consumption of the routing device and the WIFI rate in the prior art.

[0034] Among them, the above-mentioned WiFi rate can be understood as the wireless transmission rate and the broadcast transmission rate.

[0035] The embodiments of the present application introduce the influence relationships among the first time interval, the second time interval, and the WiFi rate, as Figure 3 shown:

[0036] When adjusting the first time interval, the interval for the routing device to broadcast the SSID (i.e., the broadcast transmission frequency) can be changed; when the transmission interval for the routing device to broadcast the SSID increases, the WiFi retrieval and access speed decreases, and the speed for new users to access or re - authenticate and access becomes slower, but the power consumption of the routing device decreases and the heat generation decreases; when the transmission interval for the routing device to broadcast the SSID decreases, the WiFi retrieval and access speed increases, and the speed for new users to access or re - authenticate and access increases, but the power consumption of the routing device increases and the heat generation increases.

[0037] When adjusting the second time interval, the interval at which the routing device wirelessly sends data packets (i.e., the wireless transmission rate) can be changed; when the interval at which the routing device sends data packets increases, the wireless transmission rate decreases, the speed at which the user uses WIFI becomes slower, but the power consumption of the routing device decreases and the heat generation decreases; when the interval at which the routing device sends data packets decreases, the wireless transmission rate increases, the speed at which the user uses WIFI becomes faster, but the power consumption of the routing device increases and the heat generation increases.

[0038] In an exemplary embodiment, the above step S202 can be implemented in the following two ways:

[0039] Method 1: When the working mode is the heat generation mode, determine the first adjustment strategy and / or the second adjustment strategy, where the first adjustment strategy is to increase the first time interval to a first value, and the second adjustment strategy is to increase the second time interval to a second value, where the first value is greater than the default value of the first time interval, and the second value is greater than the default value of the second time interval.

[0040] The working mode being the heat generation mode can be understood as: the temperature of the routing device is greater than or equal to the preset temperature. Therefore, when the routing device operates in the heat generation mode, it is necessary to cool down the routing device. Since increasing the first time interval and the second time interval can reduce the power consumption of the routing device, and thus achieve the cooling of the routing device, therefore, the specific cooling methods include at least one of the following: increasing the first time interval to the first value; increasing the second time interval to the second value.

[0041] It should be noted that in the embodiments of the present application, the power consumption of the routing device can also be adjusted while taking into account the broadcast function or the wireless transmission function of the routing device. Specifically:

[0042] Determine the priority of the broadcast function and the priority of the wireless transmission function of the routing device, where the broadcast function is used to broadcast beacon frames, and the wireless transmission function is used to wirelessly transmit data packets; when the priority of the broadcast function is lower than the priority of the wireless transmission function, only determine the first adjustment strategy; or when the priority of the broadcast function is higher than the priority of the wireless transmission function, only determine the second adjustment strategy; or when the priority of the broadcast function is the same as the priority of the wireless transmission function, determine the first adjustment strategy and the second adjustment strategy.

[0043] That is to say, when taking into account the wireless transmission function of the routing device, the first time interval is preferentially increased to the first value; when taking into account the broadcast function of the routing device, the second time interval is preferentially increased to the second value; when taking into account both the wireless transmission function and the broadcast function at the same time, the first time interval is increased to the first value and the second time interval is increased to the second value simultaneously, so as to reduce the temperature of the routing device as soon as possible, and then restore the normal wireless transmission rate and broadcast rate more quickly.

[0044] It should be noted that in the case where the priorities of the broadcast function and the wireless function are not set, the first adjustment strategy and / or the second adjustment strategy can be determined through one of the following methods:

[0045] 1) Determine the first adjustment strategy and the second adjustment strategy simultaneously, where the first adjustment strategy is to increase the first time interval to the first value, and the second adjustment strategy is to increase the second time interval to the second value;

[0046] 2) Determine the first quantity of the terminals accessing the routing device within a preset time period, and the second quantity of the data packets wirelessly transmitted by the routing device; in the case where the first quantity is greater than or equal to the first preset quantity and the second quantity is less than the second preset quantity, only determine the second adjustment strategy; in the case where the first quantity is less than the first preset quantity and the second quantity is greater than or equal to the second preset quantity, only determine the first adjustment strategy; in the case where the first quantity is greater than or equal to the first preset quantity and the second quantity is greater than or equal to the second preset quantity, determine the first adjustment strategy and the second adjustment strategy.

[0047] Through the above method 2), the functions that the routing device needs to take into account at the current stage can be dynamically determined. For example, in the case where the first quantity of the terminals accessing the routing device within a preset time period is greater than or equal to the first preset quantity and the second quantity is less than the second preset quantity, it indicates that there are more terminals accessing the routing device at the current stage and the broadcast function needs to be taken into account. Therefore, when the routing device gets hot, the second time interval is preferentially adjusted; in the case where the first quantity is less than the first preset quantity and the second quantity is greater than or equal to the second preset quantity, it indicates that there are more data packets that the routing device needs to transmit at the current stage and the wireless transmission function needs to be taken into account. Therefore, when the routing device gets hot, the first time interval is preferentially adjusted.

[0048] In one embodiment, after adjusting the first time interval only according to the first adjustment strategy, the following steps need to be further performed: obtaining the temperature value of the routing device at a second moment, where the second moment is later than the first moment; in the case that the temperature value of the routing device at the second moment is greater than the expected temperature value, determining a third adjustment strategy for the second time interval, where the third adjustment strategy is to increase the second time interval to a third value; and increasing the second time interval to the third value according to the third adjustment strategy.

[0049] In an embodiment of the present application, after adjusting the first time interval according to the first adjustment strategy, the temperature value of the routing device at the second moment is obtained to determine whether the temperature drop of the routing device during the period from the first moment to the second moment reaches the expected value. In the case that the temperature drop of the routing device does not reach the expected value, it indicates that the temperature of the routing device cannot be effectively reduced by reducing the broadcast transmission frequency. Therefore, it is necessary to further reduce the wireless transmission rate of the data packet. The method is to increase the second time interval to the third value to reduce the temperature of the routing device.

[0050] Here, the third value may be greater than or equal to the second value, or may be less than the second value. The embodiments of the present application do not make any limitation thereto.

[0051] For example, in the case that the temperature value at the second moment is greater than the temperature value at the first moment and the temperature value at the second moment is greater than the expected temperature value, the third value is greater than or equal to the second value; in the case that the temperature value at the second moment is less than the temperature value at the first moment and the temperature value at the second moment is greater than the expected temperature value, the third value is less than the second value.

[0052] In another embodiment, the magnitude relationship between the third value and the temperature values at the second moment and the first moment is irrelevant. That is, in the case that the temperature value at the second moment is greater than or equal to the temperature value at the first moment, or the temperature value at the second moment is less than the temperature value at the first moment, the third value may be greater than or equal to the second value, or may be less than the second value.

[0053] As Figure 4 shown,

[0054] (1) Under normal circumstances, set the first time interval and the second time interval of the routing device to default values;

[0055] (2) When it is detected that the temperature of the whole machine is greater than the first preset temperature value, it is necessary to first ensure that the wireless transmission rate is not affected. By adjusting the Beacon time slot, the power consumption is reduced and the heat generation is decreased. The adjustment method is to first increase the Beacon time slot and decrease the broadcast transmission frequency, thereby reducing the amount of data processed by the CPU and achieving a decrease in the temperature of the whole machine. When the temperature at the second moment does not reach the expected temperature value and reducing the broadcast transmission frequency alone cannot effectively reduce the heat generation at this time, it is necessary to further reduce the wireless transmission rate. The method to achieve this is to appropriately increase the DTIM period to reduce the temperature of the whole machine.

[0056] In one embodiment, after only adjusting the second time interval according to the second adjustment strategy, the following steps need to be further executed: obtaining the temperature value of the routing device at the third moment, where the third moment is later than the first moment; when the temperature value of the routing device at the third moment is greater than the expected temperature value, determining a fourth adjustment strategy for the first time interval, where the fourth adjustment strategy is to increase the first time interval to a fourth value; increasing the first time interval to the fourth value according to the fourth adjustment strategy.

[0057] In the embodiment of the present application, after adjusting the second time interval according to the second adjustment strategy, the temperature value of the routing device at the third moment is obtained to determine whether the temperature decrease of the routing device in the time period from the first moment to the third moment reaches the expected value. When the temperature decrease of the routing device does not reach the expected value, it indicates that simply reducing the wireless transmission rate cannot effectively reduce the temperature of the routing device. Therefore, it is necessary to further reduce the broadcast frequency of the data packet. The method to achieve this is to increase the first time interval to a fourth value to reduce the temperature of the routing device.

[0058] Here, the fourth value can be greater than or equal to the first value, or less than the first value. The embodiment of the present application does not limit this.

[0059] For example, when the temperature value at the third moment is greater than the temperature value at the first moment and the temperature value at the third moment is greater than the expected temperature value, the fourth value is greater than or equal to the first value; when the temperature value at the third moment is less than the temperature value at the first moment and the temperature value at the second moment is greater than the expected temperature value, the fourth value is less than the first value.

[0060] In another embodiment, the magnitude relationship between the fourth value and the temperature values at the third moment and the first moment is irrelevant. That is, when the temperature value at the third moment is greater than or equal to the temperature value at the first moment, or the temperature value at the third moment is less than the temperature value at the first moment, the fourth value can be greater than or equal to the first value, or less than the first value.

[0061] Method 2: When the working mode is the communication mode, determine a first adjustment strategy for the first time interval of the routing device and / or a second adjustment strategy for the second time interval of the routing device according to the target communication mode of the routing device.

[0062] Specifically, determine the communication data volume of the routing device within the target time period, and determine the target communication mode corresponding to the communication data volume; according to the target communication mode, determine a first adjustment strategy for the first time interval of the routing device and / or a second adjustment strategy for the second time interval of the routing device.

[0063] In the embodiments of the present application, the adjustment strategy of the router is determined through the communication mode of the routing device. Specifically:

[0064] When the communication data volume corresponding to the target communication mode is greater than or equal to a first preset threshold, determine that the target communication mode corresponds to a second adjustment strategy, where the second adjustment strategy is to reduce the second time interval to a fifth value; or, when the communication data volume corresponding to the target communication mode is less than the first preset threshold and greater than or equal to a second preset threshold, determine that the target communication mode corresponds to a second adjustment strategy, where the second adjustment strategy is to increase the second time interval to a sixth value; or, when the communication data volume corresponding to the target communication mode is less than or equal to the second preset threshold, determine the first adjustment strategy and the second adjustment strategy corresponding to the target communication mode, where the first adjustment strategy is to increase the first time interval to a seventh value, and the second adjustment strategy is to increase the second time interval to an eighth value.

[0065] For example, as Figure 5 shown, assume that the communication modes of the routing device include: three communication modes, namely, a communication mode in which the communication data volume is greater than or equal to threshold A (equivalent to the above-mentioned first preset threshold); a communication mode in which the communication data volume is less than threshold A but greater than threshold B (equivalent to the above-mentioned second preset threshold); a communication mode in which the communication data volume is less than or equal to threshold B; specifically, determining the adjustment strategy of the router according to the communication mode includes:

[0066] 1) In the case of a communication mode in which the communication data volume is greater than or equal to threshold A,

[0067] Adjust the wireless transmission rate to the maximum. Specifically, by reducing the DTIM period to a fifth value to increase the bandwidth.

[0068] The above-mentioned fifth value may be the minimum value of the DTIM period. It should be noted that the embodiments of the present application do not limit the specific value of the fifth value.

[0069] 2) In the case of a communication mode where the communication data volume is less than threshold A but greater than threshold B,

[0070] Adjust the wireless transmission rate to an intermediate value by adjusting the DTIM period to an intermediate value (equivalent to the above sixth value) to achieve an appropriate adjustment of the bandwidth.

[0071] 3) In the case of a communication mode where the communication data volume is less than or equal to threshold B,

[0072] When threshold B is 0, this communication mode can be understood as: a time period without user data communication. At this time, there will be some underlying data communications on the device itself, and the data volume is very small. At this time, adjust the wireless transmission rate and the broadcast transmission frequency to the minimum value by adjusting the DTIM period and the Beacon slot to the eighth value and the seventh value to achieve a reduction in bandwidth.

[0073] The above eighth value can be the maximum value of the above DTIM period, and the above seventh value can be the maximum value of the above Beacon slot. It should be noted that the embodiments of the present application do not limit the above seventh value and eighth value.

[0074] When the routing device is not set to determine the corresponding adjustment strategy according to the communication mode, that is, when the routing device is in the normal mode, set the first time interval and the second time interval of the routing device to the default values.

[0075] In one embodiment, as Figure 6 shown, in the case where the target communication mode is a communication mode where the communication data volume is greater than or equal to threshold A, when it is detected that the temperature of the routing device is greater than the first preset temperature, determine the first adjustment strategy for the first time interval of the routing device, where the first adjustment strategy is to increase the first time interval to the first value.

[0076] In the embodiments of the present application, it is necessary to give priority to ensuring that the wireless transmission rate of the routing device is not affected, and reduce power consumption and heat generation by adjusting the broadcast transmission frequency of the routing device. The adjustment method is: first increase the Beacon slot to reduce the data volume processed by the CPU, and then reduce the overall temperature of the machine.

[0077] When the temperature does not reach the desired temperature, at this time, only reducing the broadcast transmission frequency cannot effectively reduce the temperature. Therefore, it is necessary to further reduce the wireless transmission rate of the routing device. The adjustment method is: appropriately increase the DTIM period to reduce the overall temperature of the machine. When the overall temperature of the machine drops to the target temperature, reduce the DTIM period to the minimum value to restore the wireless transmission rate of the routing device to the optimal state; at the same time, reduce the Beacon slot to the minimum value and restore the broadcast transmission frequency to the optimal state.

[0078] As shown Figure 6 When the target communication mode is a communication mode where the communication data volume is less than threshold A but greater than threshold B, and it is detected that the temperature of the routing device is greater than the first preset temperature, a first adjustment strategy for the first time interval of the routing device is determined, where the first adjustment strategy is to increase the first time interval to a first value.

[0079] In the embodiments of the present application, since the wireless transmission rate is moderate at this time, if the wireless transmission rate is preferentially reduced, it will affect the user experience. Therefore, it is necessary to first ensure that the wireless transmission rate is not affected. Therefore, it is necessary to reduce the power consumption and heat generation by adjusting the wireless transmission frequency. The adjustment method is: increase the Beacon time slot to reduce the amount of data processed by the CPU, thereby reducing the overall temperature of the machine.

[0080] When the temperature has not reached the desired temperature, at this time, only reducing the broadcast transmission frequency cannot effectively reduce the temperature. Therefore, it is necessary to further reduce the wireless transmission rate of the routing device. The adjustment method is: appropriately increase the DTIM period to reduce the overall temperature of the machine. When the overall temperature of the machine drops to the target temperature, increase the DTIM period to the intermediate value to restore the wireless transmission rate of the routing device; at the same time, reduce the Beacon time slot to the intermediate value to restore the broadcast transmission frequency.

[0081] Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by means of software plus a necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases, the former is a better implementation method. Based on such an understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. The computer software product is stored in a storage medium (such as Read-Only Memory / Random Access Memory, ROM / RAM, magnetic disk, optical disk), and includes several instructions for causing a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in various embodiments of the present application.

[0082] In this embodiment, a time interval device for a routing device is further provided. This device is used to implement the above embodiments and preferred implementation manners, and those that have been described will not be repeated. As used below, the term "module" can be a combination of software and / or hardware that can implement a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware is also possible and contemplated.

[0083] Figure 7is a structural block diagram of a time interval device of a routing device according to an embodiment of the present application, as Figure 7 shown. The device includes:

[0084] A determination module 72, configured to determine an operating mode of the routing device, and determine a first adjustment policy for a first time interval of the routing device and / or a second adjustment policy for a second time interval of the routing device according to the operating mode, where the first time interval is a time interval between every two beacon frames to be broadcast and sent by the routing device, and the second time interval is a time interval between every two data packets to be wirelessly transmitted by the routing device;

[0085] An adjustment module 74, configured to adjust the first time interval according to the first adjustment policy and / or adjust the second time interval according to the second adjustment policy.

[0086] Through the above device, the first time interval between every two beacon frames sent is regulated according to the operating mode, and / or the second time interval between every two data packets wirelessly transmitted is regulated according to the operating mode, so as to achieve a balance between the power consumption of the routing device and the WiFi rate of the routing device, and solve the problem of imbalance between the power consumption of the routing device and the WIFI rate in the prior art.

[0087] In an exemplary embodiment, the determination module 72 is further configured to determine the first adjustment policy and / or the second adjustment policy when the operating mode is a heating mode, where the first adjustment policy is to increase the first time interval to a first value, and the second adjustment policy is to increase the second time interval to a second value.

[0088] In an exemplary embodiment, the determination module 72 is further configured to determine the priority of the broadcast function of the routing device and the priority of the wireless transmission function, where the broadcast function is used to broadcast beacon frames, and the wireless transmission function is used to wirelessly transmit data packets; when the priority of the broadcast function is lower than the priority of the wireless transmission function, only determine the first adjustment policy; or when the priority of the broadcast function is higher than the priority of the wireless transmission function, only determine the second adjustment policy; or when the priority of the broadcast function is the same as the priority of the wireless transmission function, determine the first adjustment policy and the second adjustment policy.

[0089] In an exemplary embodiment, the determination module 72 is further configured to obtain a temperature value of the routing device at a second moment, where the second moment is later than the first moment; when the temperature value of the routing device at the second moment is greater than the desired temperature value, determine a third adjustment policy for the second time interval, where the third adjustment policy is to increase the second time interval to a third value;

[0090] The adjustment module 74 is further configured to increase the second time interval to the third value according to the third adjustment strategy.

[0091] In an exemplary embodiment, the determination module 72 is further configured to obtain the temperature value of the routing device at a third moment, where the third moment is later than the first moment; in the case that the temperature value of the routing device at the third moment is greater than the expected temperature value, determine a fourth adjustment strategy for the first time interval, where the fourth adjustment strategy is to increase the first time interval to a fourth value;

[0092] The adjustment module 74 is further configured to increase the first time interval to the fourth value according to the fourth adjustment strategy.

[0093] In an exemplary embodiment, the determination module 72 is further configured to, when the working mode is the communication mode, determine a first adjustment strategy for the first time interval of the routing device and / or a second adjustment strategy for the second time interval of the routing device according to the target communication mode of the routing device.

[0094] In an exemplary embodiment, the determination module 72 is further configured to determine the communication data volume of the routing device within a target time period, determine the target communication mode corresponding to the communication data volume; determine a first adjustment strategy for the first time interval of the routing device and / or a second adjustment strategy for the second time interval of the routing device according to the target communication mode.

[0095] In an exemplary embodiment, the determination module 72 is further configured to, in the case that the communication data volume corresponding to the target communication mode is greater than or equal to a first preset threshold, determine a second adjustment strategy corresponding to the target communication mode, where the second adjustment strategy is to decrease the second time interval to a fifth value; or, in the case that the communication data volume corresponding to the target communication mode is less than the first preset threshold and greater than or equal to a second preset threshold, determine a second adjustment strategy corresponding to the target communication mode, where the second adjustment strategy is to increase the second time interval to a sixth value; or, in the case that the communication data volume corresponding to the target communication mode is less than or equal to the second preset threshold, determine a first adjustment strategy and a second adjustment strategy corresponding to the target communication mode, where the first adjustment strategy is to increase the first time interval to a seventh value and the second adjustment strategy is to increase the second time interval to an eighth value.

[0096] It should be noted that the above-mentioned various modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above-mentioned modules are all located in the same processor; or, the above-mentioned various modules are separately located in different processors in any combination form.

[0097] For the convenience of understanding the technical solutions provided in this application, the following will be elaborated in detail in combination with the embodiments of specific scenarios.

[0098] The embodiment of the present application also provides a computer-readable storage medium, in which a computer program is stored. Among them, the computer program is set to execute the steps in any one of the above method embodiments when running.

[0099] In an exemplary embodiment, the above-mentioned computer-readable storage medium may include, but is not limited to: various media such as USB flash drives, read-only memories (abbreviated as ROM), random access memories (abbreviated as RAM), mobile hard disks, magnetic disks, or optical discs that can store computer programs.

[0100] The embodiment of the present application also provides an electronic device, including a memory and a processor. A computer program is stored in the memory, and the processor is set to run the computer program to execute the steps in any one of the above method embodiments.

[0101] In an exemplary embodiment, the above-mentioned electronic device may further include a transmission device and an input / output device. Among them, the transmission device is connected to the above-mentioned processor, and the input / output device is connected to the above-mentioned processor.

[0102] The specific examples in this embodiment may refer to the examples described in the above embodiments and exemplary embodiments, and will not be repeated here.

[0103] Obviously, those skilled in the art should understand that the above-mentioned modules or steps of the present application can be implemented by a general-purpose computing device. They can be concentrated on a single computing device or distributed on a network composed of multiple computing devices. They can be implemented by program codes executable by the computing device. Thus, they can be stored in a storage device and executed by the computing device. And in some cases, the steps shown or described can be executed in a different order than here, or they can be separately made into individual integrated circuit modules, or multiple modules or steps among them can be made into a single integrated circuit module to implement. In this way, the present application is not limited to any specific combination of hardware and software.

[0104] The above are only the preferred embodiments of the present application and are not intended to limit the present application. For those skilled in the art, various modifications and variations can be made to the present application. Any modification, equivalent replacement, improvement, etc. made within the principle of the present application shall be included within the protection scope of the present application.

Claims

1. A method for adjusting a time interval, characterized in that, Including: Determine the working mode of the routing device, and determine a first adjustment strategy for a first time interval of the routing device and / or a second adjustment strategy for a second time interval of the routing device according to the working mode, where the first time interval is the time interval between every two beacon frames to be broadcast by the routing device, and the second time interval is the time interval between every two data packets to be wirelessly transmitted by the routing device; Adjust the first time interval according to the first adjustment strategy and / or adjust the second time interval according to the second adjustment strategy.

2. The method according to claim 1, characterized in that, Determining a first adjustment strategy for a first time interval of the routing device and / or a second adjustment strategy for a second time interval of the routing device according to the working mode includes: When the working mode is a heating mode, determine the first adjustment strategy and / or the second adjustment strategy, where the first adjustment strategy is to increase the first time interval to a first value, and the second adjustment strategy is to increase the second time interval to a second value.

3. The method according to claim 2, characterized in that, Determining the first adjustment strategy and / or the second adjustment strategy includes: Determine the priority of the broadcast function and the priority of the wireless transmission function of the routing device, where the broadcast function is used to broadcast beacon frames and the wireless transmission function is used to wirelessly transmit data packets; When the priority of the broadcast function is lower than the priority of the wireless transmission function, only determine the first adjustment strategy; or When the priority of the broadcast function is higher than the priority of the wireless transmission function, only determine the second adjustment strategy; or When the priority of the broadcast function is the same as the priority of the wireless transmission function, determine the first adjustment strategy and the second adjustment strategy.

4. The method according to claim 3, characterized in that, After only adjusting the first time interval according to the first adjustment strategy, the method further includes: Obtain the temperature value of the routing device at a second moment, where the second moment is later than the first moment; When the temperature value of the routing device at the second moment is greater than the desired temperature value, determine a third adjustment strategy for the second time interval, where the third adjustment strategy is to increase the second time interval to a third value; Increase the second time interval to the third value according to the third adjustment strategy.

5. The method according to claim 3, characterized in that, After only adjusting the second time interval according to the second adjustment strategy, the method further includes: Obtain the temperature value of the routing device at a third moment, where the third moment is later than the first moment; When the temperature value of the routing device at the third moment is greater than the desired temperature value, determine a fourth adjustment strategy for the first time interval, where the fourth adjustment strategy is to increase the first time interval to a fourth value; Increase the first time interval to the fourth value according to the fourth adjustment strategy.

6. The method according to claim 1, characterized in that, Determining a first adjustment strategy for a first time interval of the routing device and / or a second adjustment strategy for a second time interval of the routing device according to the working mode includes: When the working mode is the communication mode, determine a first adjustment strategy for a first time interval of the routing device and / or a second adjustment strategy for a second time interval of the routing device according to the target communication mode of the routing device.

7. The method according to claim 6, characterized in that, Determining a first adjustment strategy for a first time interval of the routing device and / or a second adjustment strategy for a second time interval of the routing device according to the communication mode of the routing device includes: Determine the communication data volume of the routing device within a target time period, and determine the target communication mode corresponding to the communication data volume; According to the target communication mode, determine a first adjustment strategy for a first time interval of the routing device and / or a second adjustment strategy for a second time interval of the routing device.

8. The method according to claim 7, characterized in that, Determining a first adjustment strategy for a first time interval of the routing device and / or a second adjustment strategy for a second time interval of the routing device according to the target communication mode includes: When the communication data volume corresponding to the target communication mode is greater than or equal to a first preset threshold, determine that the target communication mode corresponds to a second adjustment strategy, where the second adjustment strategy is to reduce the second time interval to a fifth value; or, When the communication data volume corresponding to the target communication mode is less than the first preset threshold and greater than or equal to a second preset threshold, determine that the target communication mode corresponds to a second adjustment strategy, where the second adjustment strategy is to increase the second time interval to a sixth value; or, When the communication data volume corresponding to the target communication mode is less than or equal to the second preset threshold, determine the first adjustment strategy and the second adjustment strategy corresponding to the target communication mode, where the first adjustment strategy is to increase the first time interval to a seventh value, and the second adjustment strategy is to increase the second time interval to an eighth value.

9. An apparatus for adjusting a time interval, characterized in that, Includes: A determination module, configured to determine the working mode of the routing device, and determine a first adjustment strategy for a first time interval of the routing device and / or a second adjustment strategy for a second time interval of the routing device according to the working mode, where the first time interval is the time interval between every two beacon frames to be broadcast and sent by the routing device, and the second time interval is the time interval between every two data packets to be wirelessly transmitted by the routing device; An adjustment module, configured to adjust the first time interval according to the first adjustment strategy and / or adjust the second time interval according to the second adjustment strategy.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, where the computer program, when executed by a processor, implements the steps of the method described in any one of claims 1 to 8.

11. An electronic device, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the method described in any one of claims 1 to 8.