Transmitting power adjusting method and device, storage medium and electronic device

By activating the trial operation mode when the device is powered on or restarted, and counting and adjusting the transmission power of the WiFi module, the problem of the inability to flexibly set the transmission power of the WiFi module in the existing technology is solved, and the stable operation and signal optimization of the device are achieved.

CN120075977APending Publication Date: 2025-05-30QINGDAO HAIER TECH +3
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411929467.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-25
Publication Date
2025-05-30

AI Technical Summary

Technical Problem

The existing method of remotely setting the transmit power of WiFi modules cannot be flexibly set according to the hardware conditions of the device, resulting in the failure to effectively avoid device restart and signal distortion caused by improper power settings under the individual differences of the device and the limitation of power supply capacity.

Method used

When the device is powered on or restarted, the trial operation mode of the target module is activated according to the setting power issued by the cloud, the trial operation results under different set powers are counted, and the transmission power is adjusted according to the results to ensure the stable operation of the device.

Benefits of technology

It realizes flexible adjustment of the transmission power of the WiFi module according to the device hardware conditions, avoids device restart and signal distortion problems caused by improper power settings, and ensures optimization of the device's connection performance in a weak network environment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120075977A_ABST
    Figure CN120075977A_ABST
Patent Text Reader

Abstract

The invention discloses a transmitting power adjusting method and device, a storage medium and an electronic device, and relates to the technical field of smart home, and the transmitting power adjusting method comprises the following steps: when a device is powered on or restarted, activating a pilot run mode corresponding to a target module according to a set power issued by a cloud, the target module is mounted on the equipment and is used for controlling the signal transmitting power of the equipment; under the condition of determining that the pilot operation mode is activated, performing statistics on pilot operation results corresponding to the equipment under different set powers; and adjusting the transmitting power of the target module according to the pilot run result. By adopting the technical scheme, the problem that the transmitting power of the WiFi module cannot be flexibly set according to equipment hardware conditions is solved. And furthermore, the signal transmitting power of the equipment is automatically detected and adjusted through the pilot run mode, so that the reasonability of power setting and the stability of equipment operation are ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of smart homes, and in particular, to a method, device, storage medium, and electronic device for adjusting transmission power. Background Art

[0002] In the context of the widespread application of current smart home and Internet of Things devices, as a key component for devices to connect to the network, the performance of the WiFi module directly affects the network connection stability and power consumption of the devices. Transmission power is one of the important indicators to measure the performance of the WiFi module. A higher transmission power can ensure effective communication between the device and the router at a longer distance or in a complex network environment. However, it is also accompanied by an increase in power consumption, which may lead to insufficient power supply, causing the device to restart, or signal distortion due to excessive signal strength, affecting the quality of data transmission. However, the existing solutions for remotely setting the transmission power of the WiFi module usually adopt a fixed target value, that is, the WiFi modules of all devices are set to the same transmission power. Therefore, the existing methods for remotely setting the transmission power of the WiFi module have deficiencies in dealing with the individual differences of devices and the limitations of power supply capabilities, and cannot effectively avoid problems such as device restart and signal distortion caused by improper power setting. Especially in optimizing the device connection performance in a weak network environment, there is a lack of a technical solution that can be adaptive and ensure the stable operation of the device.

[0003] Therefore, in the related art, there is no effective solution to the problem of being unable to flexibly set the transmission power of the WiFi module according to the device hardware conditions. Summary of the Invention

[0004] An embodiment of this application provides a method, device, storage medium, and electronic device for adjusting transmission power, so as to at least solve the problem in the related art that the transmission power of the WiFi module cannot be flexibly set according to the device hardware conditions.

[0005] According to an embodiment of this application, a method for adjusting transmission power is provided, including: when the device is powered on or restarted, activating the trial operation mode corresponding to the target module according to the set power sent by the cloud, where the target module is installed on the device and is used to control the signal transmission power of the device; when it is determined that the trial operation mode has been activated, counting the trial operation results corresponding to the device under different set powers; adjusting the transmission power used by the target module according to the trial operation results.

[0006] In an exemplary embodiment, when the device is powered on or restarted, the trial operation mode corresponding to the target module is activated according to the set power sent from the cloud, including: when the set power is greater than the preset safety power threshold of the target module, determining to activate the trial operation mode corresponding to the target module; when the set power is less than or equal to the preset safety power threshold of the target module, adjusting the current transmission power of the target module to the target value corresponding to the set power.

[0007] In an exemplary embodiment, after activating the trial operation mode corresponding to the target module according to the set power sent from the cloud when the device is powered on or restarted, the method further includes: determining the number of restarts of the target module in the trial operation mode; when the number of restarts is greater than the preset number, deactivating the trial operation mode and adjusting the usage transmission power of the target module to the historical power value used most recently; when the number of restarts is less than or equal to the preset number, continuously performing the trial operation mode and adjusting the usage transmission power of the target module to the historical power value used most recently.

[0008] In an exemplary embodiment, adjusting the usage transmission power of the target module according to the trial operation result includes: when the trial operation result indicates that the trial operation fails, obtaining the target power value of the target module before the trial operation mode is performed, and adjusting the usage transmission power of the target module based on the target power value; when the trial operation result indicates that the trial operation succeeds, adjusting the usage transmission power of the target module according to the set value corresponding to the set power.

[0009] In an exemplary embodiment, before counting the trial operation results corresponding to different set powers of the device when it is determined that the trial operation mode has been activated, the method further includes: monitoring the real-time connection status between the device and the cloud; when the real-time connection status is an effective connection, determining that the operation success result in the trial operation result is an effective result; when the real-time connection status is an invalid connection, determining that the operation success result in the trial operation result is an invalid result and deleting it from the statistical data corresponding to the trial operation result.

[0010] In an exemplary embodiment, before activating the trial operation mode corresponding to the target module according to the set power sent from the cloud when the device is powered on or restarted, the method further includes: determining the communication quality of the target module; when the communication quality indicates that the target module is in a weak network state, determining to start the test process corresponding to the trial operation mode when the target module connects to the router; when the communication quality indicates that the target module is in a normal network state, determining the time node of starting the test process corresponding to the trial operation mode after obtaining the comparison result between the set power and the preset safety power threshold.

[0011] In an exemplary embodiment, after adjusting the transmission power used by the target module according to the trial operation results, the above method includes: determining the communication duration of the target module using the adjusted transmission power with the router and the cloud; in the case where the communication duration meets the preset duration requirement, determining not to adjust the transmission power of the target module within the target period; in the case where the communication duration does not meet the preset duration requirement, determining to re-initiate the power adjustment of the target module within the target period.

[0012] According to another aspect of the embodiments of the present application, there is also provided an apparatus for adjusting transmission power, including: an activation module, configured to activate the trial operation mode corresponding to the target module according to the set power issued by the cloud in the case of power-on or restart of the device, where the target module is installed on the device and is used to control the signal transmission power of the device; a statistics module, configured to, in the case where it is determined that the trial operation mode has been activated, count the trial operation results corresponding to the device at different set powers; an adjustment module, configured to adjust the transmission power used by the target module according to the trial operation results.

[0013] According to still another aspect of the embodiments of the present application, there is also provided an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the above processor executes the above method for adjusting transmission power through the computer program.

[0014] In the embodiments of the present application, in the case of power-on or restart of the device, the trial operation mode corresponding to the target module is activated according to the set power issued by the cloud, where the target module is installed on the device and is used to control the signal transmission power of the device; in the case where it is determined that the trial operation mode has been activated, the trial operation results corresponding to the device at different set powers are counted; the transmission power used by the target module is adjusted according to the trial operation results. By adopting the above technical solution, the problem of being unable to flexibly set the transmission power of the WiFi module according to the device hardware conditions is solved. Furthermore, the signal transmission power of the device is automatically detected and adjusted through the trial operation mode to ensure the rationality of the power setting and the stability of the device operation. Description of the Drawings

[0015] The drawings here are incorporated into the specification and form a part of this specification, showing embodiments consistent with the present application and used together with the specification to explain the principles of the present application.

[0016] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, other drawings can also be obtained based on these drawings without creative efforts.

[0017] Figure 1 is a hardware environment diagram of a method for adjusting transmit power according to an embodiment of the present application;

[0018] Figure 2 is a flow chart of a method for adjusting transmit power according to an embodiment of the present application;

[0019] Figure 3 is a flow chart of a trial operation method for remotely setting WiFi transmission power according to an embodiment of the present application;

[0020] Figure 4 It is a structural block diagram of a transmission power adjustment device according to an embodiment of the present application. DETAILED DESCRIPTION

[0021] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[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 are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, device or equipment comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, equipment or equipment.

[0023] According to one aspect of an embodiment of the present application, a method for adjusting transmission power is provided. The method for adjusting transmission power is widely used in smart home (Smart Home), smart home, smart home device ecology, smart residential (Intelligence House) ecology and other whole-house intelligent digital control application scenarios. Optionally, in this embodiment, the above-mentioned transmission power adjustment method can be applied to Figure 1 The hardware environment shown is composed of a terminal device 102 and a server 104. Figure 1 is a hardware environment diagram of a method for adjusting transmit power according to an embodiment of the present application, such as Figure 1As shown, the server 104 is connected to the terminal device 102 via a network and can be used to provide services (such as application services, etc.) for the terminal or the client installed on the terminal. A database can be set up on the server or independently of the server to provide data storage services for the server 104. Cloud computing and / or edge computing services can be configured on the server or independently of the server to provide data operation services for the server 104.

[0024] The above network can include but is not limited to at least one of the following: wired network, wireless network. The above wired network can include but is not limited to at least one of the following: wide area network, metropolitan area network, local area network. The above wireless network can include but is not limited to at least one of the following: WIFI (Wireless Fidelity), Bluetooth. The terminal device 102 is not limited to being a PC, mobile phone, tablet computer, smart air conditioner, smart range hood, smart refrigerator, smart oven, smart stove, smart washing machine, smart water heater, smart washing device, smart dishwasher, smart projection device, smart TV, smart drying rack, smart curtain, smart audio and video, smart socket, smart speaker, smart sound box, smart fresh air device, smart kitchen and bathroom device, smart bathroom device, smart floor sweeping robot, smart window cleaning robot, smart mopping robot, smart air purification device, smart steam box, smart microwave oven, smart kitchen water heater, smart purifier, smart water dispenser, smart door lock, etc.

[0025] In this embodiment, a method for adjusting the transmission power is provided, which is applied to the above terminal device. Figure 2 It is a flowchart of the method for adjusting the transmission power according to the embodiment of the present application. The process includes the following steps:

[0026] Step S202, in the case of power-on or restart of the device, activate the trial operation mode corresponding to the target module according to the set power sent from the cloud, where the target module is installed on the device and is used to control the signal transmission power of the device;

[0027] Step S204, in the case of determining that the trial operation mode has been activated, count the trial operation results corresponding to the device at different set powers;

[0028] Step S206, adjust the transmission power used by the target module according to the trial operation results.

[0029] Optionally, in a smart home system, the transmission power of the WiFi module (target module) of the smart socket (device) is currently set to 10 dBm. The cloud (such as the smart home center server) detects that the network coverage in the room where the socket is located is weak and decides to send a new power setting instruction to increase the transmission power to 20 dBm to improve the signal quality. When the smart socket is powered on or restarted, its WiFi module enters the normal working mode with the current power of 10 dBm. At this time, the smart socket receives the 20 dBm power setting instruction sent by the cloud and automatically activates the trial operation mode. In the trial operation mode, the WiFi module of the smart socket dynamically adjusts the transmission power to 20 dBm and attempts to connect to the home network. However, the trial operation result shows that the smart socket fails to connect to the network at 20 dBm power, indicating that the trial operation result fails. Then the transmission power is adjusted to the historical power value of the last successful operation (assumed to be 15 dBm), and this adjustment ensures the stable operation of the device and prevents further restart and signal quality problems.

[0030] Through the above steps, in the case of the device being powered on or restarted, the trial operation mode corresponding to the target module is activated according to the set power sent by the cloud, where the target module is installed on the device and is used to control the signal transmission power of the device; in the case of determining that the trial operation mode has been activated, the trial operation results corresponding to the device at different set powers are counted; the transmission power used by the target module is adjusted according to the trial operation results. By adopting the above technical solution, the problem of being unable to flexibly set the transmission power of the WiFi module according to the device hardware conditions is solved. Furthermore, the signal transmission power of the device is automatically detected and adjusted through the trial operation mode to ensure the rationality of the power setting and the stability of the device operation.

[0031] In an exemplary embodiment, in the case of the device being powered on or restarted, activating the trial operation mode corresponding to the target module according to the set power sent by the cloud includes: in the case where the set power is greater than the preset safety power threshold of the target module, determining to activate the trial operation mode corresponding to the target module; in the case where the set power is less than or equal to the preset safety power threshold of the target module, adjusting the current transmission power of the target module to the target value corresponding to the set power.

[0032] Optionally, when a smart speaker device is powered on for the first time, the cloud sends a higher WiFi transmit power setting value based on the device model and usage scenario in an attempt to improve the signal coverage. However, due to the limited power supply capacity of the smart speaker baseboard, directly setting such a high transmit power may cause insufficient voltage or even restart the device. At this time, after receiving the target power value, the WiFi module first determines whether the power value exceeds the preset safety power threshold (for example, if the safety threshold is 50%, and the target power set by the cloud is 60%). If it exceeds, the WiFi module will not adjust its transmit power immediately, but activate the trial operation mode first. In the trial operation mode, the WiFi module will try to use the target power value for signal transmission while monitoring the power supply status and signal quality of the device. If the device does not experience voltage drop, restart or signal distortion during the trial operation, the trial operation is considered successful, and the transmit power of the WiFi module will be adjusted to the set target value, thereby achieving WiFi signal enhancement within the range that the device can withstand. If the trial run fails, that is, the device restarts within a short period of time or the signal quality seriously degrades, the WiFi module will automatically fall back to the previous safe transmission power value, avoiding adverse effects on the device while ensuring the stability of the network connection. Through this trial run mechanism, the smart speaker can automatically adapt to its hardware capabilities, avoid problems caused by improper power settings, and increase the strength of the WiFi signal when possible, improving the user experience. This dynamic power adjustment mechanism is particularly important in scenarios where a large space needs to be covered or the network environment is complex.

[0033] In an exemplary embodiment, when the device is powered on or restarted, after activating the trial operation mode corresponding to the target module according to the set power sent from the cloud, the above method also includes: determining the number of restarts of the target module in the trial operation mode; when the number of restarts is greater than a preset number, releasing the trial operation mode and adjusting the target module's use transmission power to the most recently used historical power value; when the number of restarts is less than or equal to the preset number, continuing to remember the trial operation mode and adjusting the target module's use transmission power to the most recently used historical power value.

[0034] Optionally, an intelligent monitoring camera needs to provide stable WiFi signal transmission in a large space. After the device is powered on, the cloud issues a relatively high transmit power setting value (e.g., 80% of the maximum power), which is higher than the safe power supply threshold of the camera base plate (e.g., 70%). After receiving this instruction, the device enters the trial operation mode, starts to attempt to transmit WiFi signals at 80% power, and simultaneously monitors the restart times of the device. On the first day of the trial operation, the device successfully operates at 80% power without any restart, so the system records this power value as the "historical power value" and allows the device to continue operating at this power to test its long-term performance. However, when the device is powered on again the next day and attempts to operate at 80% power, due to changes in environmental conditions (e.g., increased temperature leading to a decrease in power supply efficiency), the device detects a voltage drop during operation and restarts once. According to the preset rules, if the number of restart times does not exceed 2 times (the preset number), the device will continue to use 80% transmit power in the trial operation mode while recording and monitoring the number of restart times. On the third day, the device restarts once again in the trial operation mode, and the cumulative number of restart times reaches 2 times. At this time, the intelligent system of the device determines that the 80% power setting in the trial operation mode has exceeded the safe operating range of the device, so it automatically terminates the trial operation mode and adjusts the transmit power to the historical power value of the most recent successful operation (assumed to be 70%). This adjustment ensures the stable operation of the device, prevents further restarts and signal quality problems, and through the monitoring during the trial operation stage, the camera can work under the optimized power setting, which not only improves the signal quality but also avoids potential hardware risks. Through this mechanism, the intelligent monitoring camera can automatically adjust the WiFi transmit power according to the real-time environment and its own hardware conditions, thereby maximizing network performance while ensuring device stability and user satisfaction.

[0035] In an exemplary embodiment, adjusting the transmit power used by the target module according to the trial operation result includes: in the case where the trial operation result indicates that the trial operation fails, obtaining the target power value of the target module before entering the trial operation mode, and adjusting the transmit power used by the target module based on the target power value; in the case where the trial operation result indicates that the trial operation is successful, adjusting the transmit power used by the target module according to the setting value corresponding to the set power.

[0036] Optionally, a smart home center device needs to maintain a reliable WiFi connection in a large apartment environment to control various smart devices in the home. After the device is powered on, the cloud issues a relatively high WiFi transmission power setting value (for example, 90% of the maximum power) to expand the signal coverage. However, the power supply system design of the device may not be able to continuously support such a high power output, especially when multiple devices are connected or under high load. After receiving the 90% power setting instruction, the device immediately enters the trial operation mode and starts transmitting WiFi signals at 90% power. During the trial operation, the monitoring system of the device finds that due to the high-power transmission, the bottom plate voltage has dropped significantly, resulting in the device restarting 3 times within a short period, which clearly exceeds the preset restart times threshold, indicating the failure of the trial operation. Based on the result of the failed trial operation, the device automatically reverts to obtain and use the transmission power value before entering the trial operation mode (assumed to be 70% of the maximum power). If the device successfully operates at 90% power for a period of time in the trial operation mode without any restart or signal distortion, then the trial operation result will indicate the success of the trial operation. At this time, the device will adjust the transmission power of the target module according to the power value set by the cloud (i.e., 90%) to make it the new transmission power setting. The above embodiment intelligently adjusts the transmission power according to the trial operation result, which can not only avoid the problems that the device may encounter due to improper power setting, but also make full use of the hardware capabilities of the device, improve the network performance, and provide a more stable and efficient network environment for users.

[0037] In an exemplary embodiment, before determining the trial operation results corresponding to different set powers of the device in the case where the trial operation mode is determined to be activated, the above method further includes: monitoring the real-time connection status between the device and the cloud; in the case where the real-time connection status is an effective connection, determining that the operation success result in the trial operation result is an effective result; in the case where the real-time connection status is an invalid connection, determining that the operation success result in the trial operation result is an invalid result and deleting it from the statistical data corresponding to the trial operation result.

[0038] Optionally, a smart thermostat needs to exchange data frequently with the cloud via WiFi to achieve remote control and monitor home temperature. When performing a trial run adjustment of the transmission power, the device enters the trial run mode after sending a higher power setting (for example, from 50% to 70%) from the cloud, and monitors the real-time connection status with the cloud. In the first stage of the trial run, the smart thermostat transmits WiFi signals at 70% power, the connection with the cloud is stable, the data exchange is correct, and the trial run process is successfully completed. At this time, since the connection status is valid, the successful result of the trial run is confirmed as a valid result, and the system records the successful trial run under this power setting and uses it as the basis for subsequent power adjustments. However, in the second stage of the trial run, although the device transmits WiFi signals again at 70% power, due to interference from neighboring devices or external network fluctuations, the connection between the device and the cloud is intermittent for a short period of time, and the monitoring system determines that the connection status is invalid. At this time, even if the trial run process seems to be completed on the device side, the system marks the successful result of this trial run as invalid and does not include it in the statistical results to prevent the trial run results under this unstable connection state from misleading subsequent power adjustment decisions. After the trial run process is completed, the smart thermostat will decide whether to use the 70% power setting based on the effective trial run results. Since the successful results of the first stage are considered valid, and the results of the invalid connection state in the second stage are excluded, the system finally decides to use 70% transmission power in order to provide a more stable network connection in most cases and optimize the performance of remote control and data exchange. This method ensures that the power adjustment strategy is based on the actual effective and stable network connection status, avoids misjudgment and unnecessary power adjustment caused by network fluctuations, and improves the stability and efficiency of equipment operation.

[0039] In an exemplary embodiment, when the device is powered on or restarted, before activating the trial operation mode corresponding to the target module according to the set power sent from the cloud, the above method also includes: determining the communication quality of the target module; when the communication quality indicates that the target module is in a weak network state, determining to start the test process corresponding to the trial operation mode when the target module is connected to the router; when the communication quality indicates that the target module is in a normal network state, determining the time node for starting the test process corresponding to the trial operation mode to be after obtaining the comparison result of the set power and the preset safety power threshold.

[0040] Optionally, an intelligent bulb needs to maintain a stable connection with the home network to achieve the remote control function. When the intelligent bulb detects that the communication quality with the home network is lower than the threshold, i.e., in a weak network state (for example, the signal strength is lower than -75 dBm), it will immediately start the trial operation mode when attempting to connect to the router and test different transmit power values. At this time, the device may attempt to transmit signals at a higher power value (such as 80%) sent by the cloud in order to improve the network connection quality in a weak network environment. If the trial operation is successful, that is, the device can stably connect to the router and maintain normal communication with the cloud at a high power, the device will use this power value as the new transmit power setting, so as to maintain a stable network connection in a weak network environment. In a normal network state, the intelligent bulb will not immediately start the trial operation mode, but first receive the power setting instruction sent by the cloud and compare the set power with the preset safe power threshold (for example, 70%). If the set power is higher than the threshold, the device will start the trial operation mode during the next connection process to test whether it can operate safely at this power. If the communication quality continues to remain within the normal range, the trial operation will proceed as planned, and the device can determine whether to safely increase the transmit power. If the trial operation fails, the device will fallback to a lower power value to ensure a stable and reliable network connection in any case. Through the above embodiments, it is possible to intelligently adjust the start timing of the trial operation mode and the transmit power setting according to the network environment where the device is located, not only improving the stability of the network connection, but also ensuring the safety of power adjustment, thereby optimizing the remote control performance and user experience of intelligent devices.

[0041] In an exemplary embodiment, after adjusting the transmit power used by the target module according to the trial operation result, the above method includes: determining the communication duration of the target module using the adjusted transmit power with the router and the cloud; in the case where the communication duration meets the preset duration requirement, determining not to adjust the transmit power of the target module within the target period; in the case where the communication duration does not meet the preset duration requirement, determining to re-initiate the power adjustment of the target module within the target period.

[0042] Optionally, an intelligent home security camera needs to maintain a stable connection with a home router and a cloud server to transmit video data in real time. After a power adjustment, the transmission power of the camera is increased from 60% to 70% in order to enhance the signal coverage. The camera starts to communicate with the router and the cloud using the adjusted transmission power and records the communication duration at the same time. The preset communication duration requirement is set to maintain continuous and stable communication for at least 10 minutes. In the first 10 minutes when the target module (i.e., the WiFi module of the camera) communicates with the network using 70% transmission power, if the communication duration is stable and there is no disconnection or significant increase in latency, it indicates that the current power setting can meet the network communication requirements. In this case, the device will determine not to re-initiate the power adjustment for the target module within the next target period (e.g., the next 1 hour), thus avoiding unnecessary power fluctuations and resource consumption and ensuring the stable operation of the camera at the current power setting. However, if within the 10 minutes of using 70% transmission power, the camera detects frequent interruptions in the communication duration or a significant increase in latency, that is, the communication duration does not meet the preset duration requirement, this may be due to environmental factors (such as increased obstacles, electromagnetic interference) or its own hardware limitations. In this case, the device will determine to re-initiate the power adjustment for the target module within the target period. The system may automatically reduce the transmission power to 60% and monitor the communication duration again. If the communication quality improves at the lower power, the device will maintain this power setting; if the communication quality is still poor, the device may need to further adjust the power or take other measures (such as optimizing the antenna position) to improve the communication conditions. Through the above embodiments, it can be seen that monitoring the communication duration and determining whether to re-adjust the transmission power within the target period according to whether it meets the preset requirements can ensure that the intelligent device can optimize its communication performance in a timely manner when the network environment changes, and at the same time avoid unnecessary power adjustments in a stable environment, achieving efficient and stable network communication.

[0043] To better understand the process of the above method for adjusting the transmission power, the following further describes the implementation method flow of the above adjustment of the transmission power in combination with optional embodiments, but it is not used to limit the technical solutions of the embodiments of the present application.

[0044] In the related art, as an intelligent module for connecting to the network, the WiFi module has individual differences. When setting the same target value for the transmission power, there will be individual performance differences. For example, when the target transmission power is set at a certain boundary value, some devices have insufficient power supply capacity, resulting in restart; some WiFi modules have distorted WiFi signals due to unreasonable setting of the transmission power.

[0045] To solve the above problems, an optional embodiment of the present application proposes a trial operation method for remotely setting the WiFi transmission power. After the device receives a higher transmission power setting sent from the cloud, the trial operation mechanism is started to monitor the operating state of the device at this power, including but not limited to the number of device restarts, the real-time connection state with the cloud, and the communication duration. During the trial operation, if the device can operate stably without restarting and maintain an effective connection with the cloud, and the communication duration meets the preset requirements, then the system will confirm the success of the trial operation, and the device can use the new power setting; otherwise, if the trial operation fails (such as excessive restart times, invalid connection state, or unqualified communication duration), the system will adjust the transmission power of the device back to the original setting to ensure the stability of the device operation and the reliability of the network connection. In addition, the above solution also considers the start timing of the trial operation in a weak network state and the trial operation strategy in a normal network state, so as to intelligently optimize the transmission power and improve the network performance of the device.

[0046] Optionally, Figure 3 is a flowchart of a trial operation method for remotely setting the WiFi transmission power according to an embodiment of the present application, specifically including the following steps:

[0047] Step 1: Device initialization and trial operation condition check. The WiFi module of the device starts running after the power is turned on or the device is restarted. After the power-on or restart is completed, the WiFi module enters the normal working state and is ready to receive the power setting command sent from the cloud. The system checks whether it is currently in the trial operation state and counts the number of trial operations. Receive a new WiFi transmission power target value from the cloud. If the received target power requires trial operation verification (that is, the power exceeds the current module safety range or the system deems it necessary to conduct a trial operation), then start the trial operation.

[0048] Step 2: Start and monitor the trial operation. The WiFi module adjusts the transmission power to the new target value and attempts to connect to the router. If the connection is successful and there is no restart, the process proceeds to the next step. If a restart occurs during the connection process, the system checks whether the number of restarts exceeds the preset threshold. If the number of restarts exceeds the standard, the system determines that the trial operation fails and enters the weak network mode. In the weak network mode, the system restores the transmission power of the WiFi module to the value before the trial operation, that is, the original power setting, to maintain the stable network connection of the device.

[0049] Step 3: Evaluate the trial operation result and adjust the power setting. If the trial operation is successful in the normal mode, the transmission power of the WiFi module will be updated to the new target power used during the trial operation. If the trial operation fails, the transmission power of the WiFi module will be restored to the setting before the trial operation.

[0050] It should be noted that regardless of the result of the trial operation, the system will end the current trial operation process, adjust the power setting of the device according to the result, and return to the normal working state to prepare for the reception and processing of the next cloud power adjustment. During the trial operation phase, the system needs to accurately monitor the number of device restarts and the network connection stability. This requires the monitoring mechanism to be sensitive and accurate enough to avoid false alarms or missed reports and ensure the reliability of the trial operation results. In addition, the determination of the weak network mode should be based on reasonable thresholds and network environment assessment. If the threshold is set improperly, the device may enter the weak network mode prematurely, which will limit the performance of the device; on the contrary, if the threshold is too loose, the device may continue to operate in an unstable state, affecting the user experience. Also, the number of trial operations and the duration need to be carefully set. Too many trial operations or too long a trial operation time may increase the power consumption of the device, affecting the battery life or device performance. At the same time, too short a trial operation duration may not fully evaluate the device performance under the new power setting.

[0051] In summary, after the device receives a higher target power instruction sent from the cloud, this application automatically starts the trial operation mechanism to dynamically monitor the connection stability and restart situation of the device under the new power. During the trial operation, if the device restarts frequently or the connection is unstable, it will automatically switch to the weak network mode to reduce the transmission power to maintain the stability of the network connection. On the one hand, through the trial operation mechanism, it effectively avoids the device restart and signal distortion phenomena caused by too high power setting, improving the network performance and user experience of the device; on the other hand, the introduction of the weak network mode as a fallback mechanism ensures that the device can still maintain the basic network connection ability when the power supply capacity is insufficient or the network environment is poor, further enhancing the stability and adaptability of the device. This solution realizes the balance between power optimization and device stability through dynamic power adjustment and intelligent mode switching, providing a reliable technical guarantee for the network connection of intelligent devices.

[0052] 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. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art can be embodied in the form of a software device. This computer software device is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to enable a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods of the various embodiments of this application.

[0053] Figure 4 is a structural block diagram of an adjustment device for transmission power according to an embodiment of this application; as Figure 4 shown, it includes:

[0054] An activation module 42, configured to activate a trial operation mode corresponding to a target module according to a set power sent from the cloud when the device is powered on or restarted, where the target module is installed on the device and is used to control the signal transmission power of the device;

[0055] A statistics module 44, configured to, when it is determined that the trial operation mode has been activated, count the trial operation results corresponding to different set powers of the device;

[0056] An adjustment module 46, configured to adjust the transmission power used by the target module according to the trial operation results.

[0057] With the above device, when the device is powered on or restarted, a trial operation mode corresponding to a target module is activated according to a set power sent from the cloud, where the target module is installed on the device and is used to control the signal transmission power of the device; when it is determined that the trial operation mode has been activated, the trial operation results corresponding to different set powers of the device are counted; and the transmission power used by the target module is adjusted according to the trial operation results. By adopting the above technical solution, the problem that the transmission power of the WiFi module cannot be flexibly set according to the hardware conditions of the device is solved. Furthermore, the signal transmission power of the device is automatically detected and adjusted through the trial operation mode to ensure the rationality of the power setting and the stability of the device operation.

[0058] In an exemplary embodiment, the above activation module is further configured to determine to activate the trial operation mode corresponding to the target module when the set power is greater than a preset safety power threshold of the target module; and when the set power is less than or equal to the preset safety power threshold of the target module, adjust the current transmission power of the target module to a target value corresponding to the set power.

[0059] In an exemplary embodiment, the above device further includes: a first determination module, configured to, after activating the trial operation mode corresponding to the target module according to the set power sent from the cloud when the device is powered on or restarted, the method further includes: determining the number of restarts of the target module in the trial operation mode; when the number of restarts is greater than a preset number, deactivating the trial operation mode and adjusting the transmission power used by the target module to the historical power value used most recently; and when the number of restarts is less than or equal to the preset number, continuously perform the trial operation mode and adjust the transmission power used by the target module to the historical power value used most recently.

[0060] In an exemplary embodiment, the above adjustment module is further configured to, when the trial operation result indicates that the trial operation fails, obtain the target power value of the target module before entering the trial operation mode, and adjust the transmission power used by the target module based on the target power value; when the trial operation result indicates that the trial operation is successful, adjust the transmission power used by the target module according to the set value corresponding to the set power.

[0061] In an exemplary embodiment, the above device further includes: a monitoring module, configured to monitor the real-time connection status between the device and the cloud before counting the trial operation results corresponding to different set powers when it is determined that the trial operation mode has been activated; when the real-time connection status is an effective connection, determine that the operation success result in the trial operation result is an effective result; when the real-time connection status is an invalid connection, determine that the operation success result in the trial operation result is an invalid result and delete it from the statistical data corresponding to the trial operation result.

[0062] In an exemplary embodiment, the above device further includes: a second determination module, configured to, before activating the trial operation mode corresponding to the target module according to the set power sent by the cloud when the device is powered on or restarted, the above method further includes: determining the communication quality of the target module; when the communication quality indicates that the target module is in a weak network state, determining to start the test process corresponding to the trial operation mode when the target module connects to the router; when the communication quality indicates that the target module is in a normal network state, determining the time node for starting the test process corresponding to the trial operation mode after obtaining the comparison result between the set power and the preset safety power threshold.

[0063] In an exemplary embodiment, the above device further includes: a third determination module, configured to, after adjusting the transmission power used by the target module according to the trial operation result, determine the communication duration between the target module using the adjusted transmission power and the router and the cloud; when the communication duration meets the preset duration requirement, determining not to adjust the transmission power of the target module within the target period; when the communication duration does not meet the preset duration requirement, determining to re-initiate the power adjustment of the target module within the target period.

[0064] An embodiment of the present application further provides a storage medium, which includes a stored program, wherein the above program executes the method of any one of the above when running.

[0065] Optionally, in this embodiment, the above storage medium may be set to store program codes for executing the following steps:

[0066] S1, when the device is powered on or restarted, activate the trial operation mode corresponding to the target module according to the set power sent by the cloud, where the target module is installed on the device and is used to control the signal transmission power of the device;

[0067] S2. When it is determined that the trial operation mode has been activated, count the trial operation results corresponding to different set powers of the device.

[0068] S3. Adjust the transmission power used for the target module according to the trial operation results.

[0069] An embodiment of the present application further provides an electronic device, including a memory and a processor. 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.

[0070] Optionally, the above electronic device may further include a transmission device and an input / output device. Among them, the transmission device is connected to the above processor, and the input / output device is connected to the above processor.

[0071] Optionally, in this embodiment, the above processor may be configured to execute the following steps through a computer program:

[0072] S1. When the device is powered on or restarted, activate the trial operation mode corresponding to the target module according to the set power sent from the cloud. The target module is installed on the device and is used to control the signal transmission power of the device.

[0073] S2. When it is determined that the trial operation mode has been activated, count the trial operation results corresponding to different set powers of the device.

[0074] S3. Adjust the transmission power used for the target module according to the trial operation results.

[0075] Optionally, in this embodiment, the above storage medium may include but is not limited to: USB flash drive, read-only memory (ROM for short), random access memory (RAM for short), mobile hard disk, magnetic disk or optical disc and other media that can store program codes.

[0076] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and will not be elaborated herein.

[0077] Obviously, those skilled in the art should understand that the various modules or steps of the present application described above can be implemented by a general-purpose computing device. They can be concentrated on a single computing device or distributed over a network composed of multiple computing devices. Optionally, they can be implemented by program codes executable by the computing device, so that 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 sequence different from that here, or they can be separately fabricated into individual integrated circuit modules, or multiple modules or steps among them can be fabricated into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.

[0078] The above description is only the preferred embodiment of the present application. It should be noted that for those of ordinary skill in the art, without departing from the principle of the present application, several improvements and refinements can still be made, and these improvements and refinements should also be regarded as the protection scope of the present application.

Claims

1. A method for adjusting transmission power, characterized in that: include: When the device is powered on or restarted, the trial operation mode corresponding to the target module is activated according to the set power sent from the cloud, wherein the target module is installed on the device and is used to control the signal transmission power of the device; When it is determined that the trial operation mode has been activated, counting trial operation results of the device at different power settings; The transmission power used by the target module is adjusted according to the trial operation result.

2. The method for adjusting the transmission power according to claim 1, characterized in that: When the device is powered on or restarted, the trial operation mode corresponding to the target module is activated according to the set power sent from the cloud, including: When the set power is greater than a preset safety power threshold of the target module, determining to start a trial operation mode corresponding to the target module; When the set power is less than or equal to the preset safety power threshold of the target module, the current transmit power of the target module is adjusted to a target value corresponding to the set power.

3. The method for adjusting the transmission power according to claim 1, characterized in that: When the device is powered on or restarted, after activating the trial operation mode corresponding to the target module according to the setting power sent from the cloud, the method further includes: Determining the number of restarts of the target module in the trial operation mode; When the number of restarts is greater than a preset number, the trial operation mode is terminated, and the transmission power used by the target module is adjusted to the historical power value used most recently; When the number of restarts is less than or equal to the preset number of times, the trial operation mode is continuously memorized, and the used transmission power of the target module is adjusted to the historical power value used most recently.

4. The method for adjusting the transmission power according to claim 1, characterized in that: Adjusting the transmission power used by the target module according to the trial operation result includes: When the trial operation result indicates that the trial operation has failed, obtaining a target power value of the target module before the trial operation mode is performed, and adjusting the transmission power used by the target module based on the target power value; When the trial operation result indicates that the trial operation is successful, the transmission power used by the target module is adjusted according to the set value corresponding to the set power.

5. The method for adjusting the transmission power according to claim 1, characterized in that: In the case where it is determined that the trial operation mode has been activated, before counting the trial operation results of the device at different power settings, the method further includes: Monitoring the real-time connection status between the device and the cloud; In the case where the real-time connection state is a valid connection, determining a successful operation result in the trial operation result as a valid result; In the case where the real-time connection status is an invalid connection, the successful operation result in the trial operation result is determined to be an invalid result, and is deleted from the statistical data corresponding to the trial operation result.

6. The method for adjusting the transmission power according to claim 1, characterized in that: When the device is powered on or restarted, before activating the trial operation mode corresponding to the target module according to the setting power sent from the cloud, the method further includes: Determining the communication quality of the target module; When the communication quality indicates that the target module is in a weak network state, determining to start a test process corresponding to the trial operation mode when the target module is connected to a router; When the communication quality indication target module is in a normal network state, the time node for starting the test process corresponding to the trial operation mode is determined to be after the comparison result of the set power and the preset safety power threshold is obtained.

7. The method for adjusting the transmission power according to claim 1, characterized in that: After adjusting the transmission power used by the target module according to the trial operation result, the method includes: Determine the communication time of the target module with the router and the cloud using the adjusted transmit power; When the communication duration meets the preset duration requirement, determining not to adjust the transmit power of the target module within the target period; When the communication duration does not meet the preset duration requirement, it is determined to re-initiate power adjustment of the target module within a target period.

8. A transmission power adjustment device, characterized in that: include: An activation module, used to activate the trial operation mode corresponding to the target module according to the set power sent from the cloud when the device is powered on or restarted, wherein the target module is installed on the device and is used to control the signal transmission power of the device; A statistical module, for counting the trial operation results of the device at different power settings when it is determined that the trial operation mode has been activated; The adjustment module is used to adjust the transmission power used by the target module according to the trial operation result.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program executes the method described in any one of claims 1 to 7 when executed.

10. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 7 through the computer program.