Adjustment strategy determination method and device, storage medium and electronic equipment

By switching the network mode of the device according to the network environment and adjusting the transmission power of the WiFi module, the problem that the WiFi module in the prior art cannot guarantee the stability of the network connection under different network environments is solved, and a more stable network connection is achieved.

CN119835720AActive Publication Date: 2025-04-15QINGDAO HAIER TECH +3
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202411929472.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-25
Publication Date
2025-04-15
Estimated Expiration
2044-12-25

AI Technical Summary

Technical Problem

In the prior art, the WiFi module of the device uses a single fixed transmission power, and the stability of the network connection cannot be guaranteed under different network environments.

Method used

By determining whether the network mode needs to be switched based on the network environment where the device is located, and obtaining the target value, factory value and indicator flag of the transmission power from the cloud server, determining whether it is necessary to adjust the transmission power, and then determining the adjustment strategy.

Benefits of technology

It realizes adjusting the transmission power of WiFi modules in different network environments to ensure the stability of network connection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119835720A_ABST
    Figure CN119835720A_ABST
Patent Text Reader

Abstract

The invention discloses an adjustment strategy determination method and device, a storage medium and electronic equipment, and relates to the technical field of smart home. The method for determining the adjustment strategy comprises the following steps: determining whether a current network mode of equipment needs to be switched according to a network environment where the equipment is located; switching the current network mode of the equipment to a target network mode under the condition that switching needs to be carried out, and obtaining a transmitting power target value and a transmitting power factory value of the equipment and an indication mark for indicating whether the transmitting power of the equipment is forcibly adjusted to the transmitting power target value or not from a cloud server; and determining whether to adjust the transmitting power of the equipment or not according to the target network mode currently adopted by the equipment, the transmitting power target value, the transmitting power factory value and the indication mark, and determining an adjusting strategy for the transmitting power of the equipment when adjustment is needed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of smart home technology, and more specifically, to a method and device for determining an adjustment strategy, a storage medium, and an electronic device. Background Art

[0002] In the home appliance IoT model, the device's WiFi module, as an intelligent module for connecting to the network, needs to adapt to various network environments. However, in the existing related technologies, the device's WiFi module uses a single fixed transmission power, which cannot ensure the stability of the network connection under different network environments.

[0003] In the related art, the WiFi module of the device uses a single fixed transmission power and cannot guarantee the stability of the network connection under different network environments. No effective solution has been proposed yet. Summary of the invention

[0004] The embodiments of the present application provide a method and device for determining an adjustment strategy, a storage medium, and an electronic device to at least solve the problem in the related art that the WiFi module of the device uses a single fixed transmission power and cannot guarantee the stability of the network connection under different network environments.

[0005] According to an embodiment of the embodiments of the present application, a method for determining an adjustment strategy is provided, including: determining whether it is necessary to switch the current network mode of the device according to the network environment in which the device is located; if switching is required, switching the current network mode of the device to a target network mode, and obtaining the device's transmission power target value, transmission power factory value, and an indicator flag for indicating whether to forcibly adjust the device's transmission power to the transmission power target value from a cloud server; determining whether to adjust the device's transmission power according to the target network mode currently used by the device, the transmission power target value, the transmission power factory value, and the indicator flag, and, when adjustment is required, an adjustment strategy for the device's transmission power.

[0006] In an optional embodiment, determining whether it is necessary to switch the current network mode of the device according to the network environment in which the device is located includes: when the current network mode is a normal mode and one of the following conditions is met, determining that it is necessary to switch the current network mode of the device to the target network mode: the AP signal strength scanned by the device for the last N times is less than a first value, and the device has failed to connect to the router for the last N times, where N is an integer greater than 1; the transport layer security protocol TLS connection of the device fails, and the AP signal strength scanned by the device is less than the first value; after the device connects to the cloud server, no interaction data from the cloud server is received within a preset time range, and the AP signal strength scanned by the device is less than the first value; after the heartbeat data sent by the cloud server is received and the timeout occurs, the network diagnostic connection fails within a time threshold, and the AP signal strength scanned by the device is less than the first value.

[0007] In an optional embodiment, determining whether it is necessary to switch the current network mode of the device is performed based on the network environment in which the device is located, including: obtaining the connection time of the device from connecting to the router to successfully connecting to the cloud server; determining that it is necessary to switch the current network mode of the device to the target network mode when the current network mode is a weak network mode and the following conditions are met: the device successfully connects to the cloud server M times, where M is an integer greater than the second value; the connection time of the device for the last K times is less than a third value, where K is an integer greater than the third value.

[0008] In an optional embodiment, determining whether to adjust the transmit power of the device is performed according to the target network mode currently adopted by the device, the transmit power target value, the transmit power factory value and the indicator flag, and, when adjustment is required, the transmit power adjustment strategy of the device includes: when the target network mode is a normal mode or a weak network mode, the transmit power target value is a fourth value, the transmit power factory value is a fifth value, and the indicator flag is non-mandatory, determining that there is no need to adjust the transmit power of the device; when the target network mode is a normal mode, the transmit power target value is a fifth value, the transmit power factory value is a fourth value, and the indicator flag is non-mandatory, determining that there is no need to adjust the transmit power of the device; when the target network mode is a weak network mode, the transmit power target value is a fifth value, the transmit power factory value is a fourth value, and the indicator flag is non-mandatory, determining that there is no need to adjust the transmit power of the device; when the target network mode is a weak network mode, the transmit power target value is a fifth value, the transmit power factory value is a fourth value, and the indicator flag is non-mandatory, determining that the transmit power of the device needs to be adjusted, and adjusting the transmit power of the device upward by a sixth value, wherein the sixth value is the difference between the fifth value and the calibration maximum value.

[0009] In an optional embodiment, whether to adjust the transmit power of the device is determined based on the target network mode currently adopted by the device, the transmit power target value, the transmit power factory value and the indicator flag, and when adjustment is required, the transmit power adjustment strategy of the device includes: when the target network mode is a normal mode, the transmit power target value is a fifth value, the transmit power factory value is a fourth value, and the indicator flag is mandatory, determining that the transmit power of the device needs to be adjusted, and adjusting the transmit power of the device upward to a sixth value, wherein the sixth value is the difference between the fifth value and the calibration maximum value.

[0010] In an optional embodiment, whether to adjust the transmit power of the device is determined based on the target network mode currently adopted by the device, the transmit power target value, the transmit power factory value and the indicator flag, and when adjustment is required, the transmit power adjustment strategy of the device includes: when the target network mode is a normal mode, the transmit power target value is a fifth value, the transmit power factory value is a seventh value, and the indicator flag is non-mandatory, determining that the transmit power of the device needs to be adjusted, and adjusting the transmit power of the device upward to an eighth value; when the target network mode is a weak network mode, the transmit power target value is a fifth value, the transmit power factory value is a seventh value, and the indicator flag is non-mandatory, determining that the transmit power of the device needs to be adjusted, and adjusting the transmit power of the device upward to a ninth value, wherein the eighth value is less than the ninth value.

[0011] In an optional embodiment, whether to adjust the transmit power of the device is determined based on the target network mode currently adopted by the device, the transmit power target value, the transmit power factory value and the indicator flag, and when adjustment is required, the transmit power adjustment strategy of the device includes: when the target network mode is a normal mode, the transmit power target value is a fifth value, the transmit power factory value is a seventh value, and the indicator flag is mandatory, determining that the transmit power of the device needs to be adjusted, and adjusting the transmit power of the device upward by a tenth value, wherein the tenth value is the difference between the fifth value and the seventh value.

[0012] According to another aspect of the present invention, a device for determining an adjustment strategy is also provided, including: a first determination module, used to determine whether it is necessary to switch the current network mode of the device according to the network environment in which the device is located; an acquisition module, used to switch the current network mode of the device to the target network mode when switching is required, and obtain the transmission power target value of the device, the factory value of the transmission power, and an indication flag for indicating whether to forcibly adjust the transmission power of the device to the transmission power target value from a cloud server; a second determination module, used to determine whether to adjust the transmission power of the device according to the target network mode currently adopted by the device, the transmission power target value, the factory value of the transmission power and the indication flag, and, when adjustment is required, the transmission power adjustment strategy of the device.

[0013] According to another aspect of the embodiments of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the above-mentioned method for determining the adjustment strategy when running.

[0014] According to another aspect of an embodiment of the present application, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the method for determining the adjustment strategy through the computer program.

[0015] According to another aspect of the embodiments of the present application, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the method for determining the adjustment strategy is implemented.

[0016] In an embodiment of the present application, it is determined whether it is necessary to switch from the current network mode to the target network mode based on the network environment in which the device is located. When the network mode needs to be switched, the current network mode of the device is switched to the target network mode, and three key parameters are obtained from the cloud server: the target value of the transmission power, the factory value of the transmission power, and an indicator flag indicating whether the transmission power needs to be forcibly adjusted to the target value of the transmission power. Determine whether it is necessary to adjust the transmission power of the device based on the above three key parameters and the target network mode, and determine the transmission power adjustment strategy if it is necessary to adjust the transmission power of the device. The above technical solution is adopted to solve the problem in the related art that the WiFi module of the device uses a single fixed transmission power and cannot guarantee the stability of the network connection in different network environments. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0018] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0019] Figure 1 It is a hardware environment diagram of a method for determining an adjustment strategy according to an embodiment of the present application;

[0020] Figure 2 is a flow chart of a method for determining an adjustment strategy according to an embodiment of the present application;

[0021] Figure 3 is a schematic diagram of a method for determining an adjustment strategy according to an embodiment of the present application;

[0022] Figure 4 It is a structural block diagram of a device for determining an adjustment strategy according to an embodiment of the present application. DETAILED DESCRIPTION

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

[0024] 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, product or device 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, products or devices.

[0025] According to one aspect of an embodiment of the present application, a method for determining an adjustment strategy is provided. The method for determining an adjustment strategy is widely used in whole-house intelligent digital control application scenarios such as smart home, smart home, smart home device ecology, and smart house ecology. Optionally, in this embodiment, the above-mentioned method for determining an adjustment strategy can be applied to Figure 1 In the hardware environment shown in FIG. 1 , the device 102 and the cloud server 104 are formed. Figure 1 As shown, the device 102 is connected to the cloud server 104 via a network, and can be used to provide services (such as application services, etc.) for the device 102 or a client installed on the device 102. A database can be set on the device 102 or independently of the device 102 to provide data storage services for the device 102 and the cloud server 104. Cloud computing and / or edge computing services can be configured on the device 102 or independently of the device 102 to provide data computing services for the device 102 and the cloud server 104.

[0026] The network may include but is not limited to at least one of the following: wired network, wireless network. The wired network may include but is not limited to at least one of the following: wide area network, metropolitan area network, local area network, and the wireless network may include but is not limited to at least one of the following: WIFI (Wireless Fidelity), Bluetooth. The device 102 and the cloud server 104 may not be limited to 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 equipment, smart dishwasher, smart projection equipment, smart TV, smart clothes drying rack, smart curtain, smart audio and video, smart socket, smart audio, smart speaker, smart fresh air equipment, smart kitchen and bathroom equipment, smart bathroom equipment, smart sweeping robot, smart window cleaning robot, smart mopping robot, smart air purification equipment, smart steamer, smart microwave oven, smart kitchen treasure, smart purifier, smart water dispenser, system platform, etc.

[0027] In this embodiment, a method for determining an adjustment strategy is provided, which is applied to the above-mentioned device. Figure 2 : is a flowchart of a method for determining an adjustment strategy according to an embodiment of the present application, the process comprising the following steps:

[0028] Step S202, determining whether it is necessary to switch the current network mode of the device according to the network environment in which the device is located;

[0029] Step S204, if switching is required, switching the current network mode of the device to the target network mode, and obtaining the transmit power target value of the device, the transmit power factory value, and an indication flag for indicating whether to forcibly adjust the transmit power of the device to the transmit power target value from the cloud server;

[0030] Step S206, determining whether to adjust the transmit power of the device, and the transmit power adjustment strategy for the device if adjustment is required, based on the target network mode currently adopted by the device, the transmit power target value, the transmit power factory value, and the indication flag.

[0031] In an embodiment of the present application, whether it is necessary to switch the current network mode of the device is determined according to the network environment in which the device is located; if switching is required, the current network mode of the device is switched to the target network mode, and the transmission power target value of the device, the transmission power factory value, and an indicator flag for indicating whether to forcibly adjust the transmission power of the device to the transmission power target value are obtained from a cloud server; based on the target network mode currently adopted by the device, the transmission power target value, the transmission power factory value and the indicator flag, it is determined whether to adjust the transmission power of the device, and when adjustment is required, the transmission power adjustment strategy of the device.

[0032] In an optional embodiment, determining whether it is necessary to switch the current network mode of the device according to the network environment in which the device is located includes: when the current network mode is a normal mode and one of the following conditions is met, determining that it is necessary to switch the current network mode of the device to the target network mode: the AP signal strength scanned by the device for the last N times is less than a first value, and the device has failed to connect to the router for the last N times, where N is an integer greater than 1; the transport layer security protocol TLS connection of the device fails, and the AP signal strength scanned by the device is less than the first value; after the device connects to the cloud server, no interaction data from the cloud server is received within a preset time range, and the AP signal strength scanned by the device is less than the first value; after the heartbeat data sent by the cloud server is received and the timeout occurs, the network diagnostic connection fails within a time threshold, and the AP signal strength scanned by the device is less than the first value.

[0033] Optionally, after the device is powered on or restarted, since there is no statistical data, the current network mode of the device is assumed to be normal mode. If one of the following conditions is met, the current network mode of the device is switched to the target network mode, wherein the target network mode in this embodiment is the weak network mode. (1) The AP signal strength scanned by the device during the last two network connections is less than -60, and the device failed to connect to the router during the last two connections, wherein the cause of the failure is not limited; (2) The TLS connection of the device fails or the connection times out, and the AP signal strength scanned by the device is less than -60; (3) After the device connects to the cloud server, no interaction data is received from the cloud server within 3 minutes, and the AP signal strength scanned by the device is less than -60, wherein the interaction data includes the heartbeat data of the cloud server; (4) After the heartbeat data sent by the cloud server is received and the timeout occurs, the network diagnostic connection fails within 50 seconds, and the AP signal strength scanned by the device is less than -60. In an optional embodiment, determining whether it is necessary to switch the current network mode of the device is performed based on the network environment in which the device is located, including: obtaining the connection time of the device from connecting to the router to successfully connecting to the cloud server; determining that it is necessary to switch the current network mode of the device to the target network mode when the current network mode is a weak network mode and the following conditions are met: the device successfully connects to the cloud server M times, where M is an integer greater than the second value; the connection time of the device for the last K times is less than a third value, where K is an integer greater than the third value.

[0034] Optionally, if the current network mode of the device is a weak network mode, the following conditions must be met at the same time to switch the weak network mode of the device to a normal mode: (1) the number of successful connections of the device to the cloud server exceeds 5 times in a row; (2) the total time taken by the device from the start of the connection process with the router to the successful establishment of a communication connection with the cloud server is obtained, and in the three most recent connection attempts from the current time, the above total time does not exceed 5 seconds.

[0035] In an optional embodiment, determining whether to adjust the transmit power of the device is performed according to the target network mode currently adopted by the device, the transmit power target value, the transmit power factory value and the indicator flag, and, when adjustment is required, the transmit power adjustment strategy of the device includes: when the target network mode is a normal mode or a weak network mode, the transmit power target value is a fourth value, the transmit power factory value is a fifth value, and the indicator flag is non-mandatory, determining that there is no need to adjust the transmit power of the device; when the target network mode is a normal mode, the transmit power target value is a fifth value, the transmit power factory value is a fourth value, and the indicator flag is non-mandatory, determining that there is no need to adjust the transmit power of the device; when the target network mode is a weak network mode, the transmit power target value is a fifth value, the transmit power factory value is a fourth value, and the indicator flag is non-mandatory, determining that there is no need to adjust the transmit power of the device; when the target network mode is a weak network mode, the transmit power target value is a fifth value, the transmit power factory value is a fourth value, and the indicator flag is non-mandatory, determining that the transmit power of the device needs to be adjusted, and adjusting the transmit power of the device upward by a sixth value, wherein the sixth value is the difference between the fifth value and the calibration maximum value.

[0036] Optionally, assuming that the target value of the device's transmission power is 0, no matter whether the device's target network mode is normal mode or weak network mode, the factory value of the transmission power is 0 or y, and whether the indication mark is mandatory, there is no need to adjust the device's transmission power. Assuming that the device's target network mode is normal mode, the transmission power target value is x, the factory value of the transmission power is 0, and the indication mark is non-mandatory, there is no need to adjust the device's transmission power; assuming that the device's target network mode is weak network mode, the transmission power target value is x, the factory value of the transmission power is 0, and the indication mark is non-mandatory, the transmission power is adjusted upward (x-calibration maximum value), that is, the sixth value. It should be clear that the calibration maximum value in this embodiment is the maximum calibration value in the calibration range of the transmission power. Optionally, assuming that the calibration range of the transmission power is 16±2dbm, the calibration maximum value is 18dbm.

[0037] In an optional embodiment, whether to adjust the transmit power of the device is determined based on the target network mode currently adopted by the device, the transmit power target value, the transmit power factory value and the indicator flag, and when adjustment is required, the transmit power adjustment strategy of the device includes: when the target network mode is a normal mode, the transmit power target value is a fifth value, the transmit power factory value is a fourth value, and the indicator flag is mandatory, determining that the transmit power of the device needs to be adjusted, and adjusting the transmit power of the device upward to a sixth value, wherein the sixth value is the difference between the fifth value and the calibration maximum value.

[0038] Optionally, assuming that the indication flag is mandatory, the transmit power target value is x, and the transmit power factory value is 0, regardless of whether the target network mode of the device is normal mode or weak network mode, the transmit power of the device is adjusted upward (x-calibration maximum value).

[0039] In an optional embodiment, whether to adjust the transmit power of the device is determined based on the target network mode currently adopted by the device, the transmit power target value, the transmit power factory value and the indicator flag, and when adjustment is required, the transmit power adjustment strategy of the device includes: when the target network mode is a normal mode, the transmit power target value is a fifth value, the transmit power factory value is a seventh value, and the indicator flag is non-mandatory, determining that the transmit power of the device needs to be adjusted, and adjusting the transmit power of the device upward to an eighth value; when the target network mode is a weak network mode, the transmit power target value is a fifth value, the transmit power factory value is a seventh value, and the indicator flag is non-mandatory, determining that the transmit power of the device needs to be adjusted, and adjusting the transmit power of the device upward to a ninth value, wherein the eighth value is less than the ninth value.

[0040] Optionally, when the target network mode is normal mode, the transmit power target value is x, the transmit power factory value is y, and the indication mark is non-mandatory, the transmit power of the device is adjusted upward by min(x,19.25)-y; when the target network mode is weak network mode, the transmit power target value is x, the transmit power factory value is y, and the indication mark is non-mandatory, the transmit power of the device is adjusted upward by max(x,19.25)-y, where 14<=y<=24.

[0041] In an optional embodiment, whether to adjust the transmit power of the device is determined based on the target network mode currently adopted by the device, the transmit power target value, the transmit power factory value and the indicator flag, and when adjustment is required, the transmit power adjustment strategy of the device includes: when the target network mode is a normal mode, the transmit power target value is a fifth value, the transmit power factory value is a seventh value, and the indicator flag is mandatory, determining that the transmit power of the device needs to be adjusted, and adjusting the transmit power of the device upward by a tenth value, wherein the tenth value is the difference between the fifth value and the seventh value.

[0042] Optionally, when the indication flag is mandatory, the transmit power target value is x, and the transmit power factory value is y, regardless of whether the target network mode of the device is normal mode or weak network mode, the transmit power of the device is adjusted upward by xy, where 14<=y<=24.

[0043] In order to better understand the process of determining the above adjustment strategy, the process of determining the implementation method of the above adjustment strategy is described below in combination with an optional embodiment, but it is not used to limit the technical solution of the embodiment of the present application.

[0044] Figure 3 is a schematic diagram of a method for determining an adjustment strategy according to an embodiment of the present application, such as Figure 3 As shown, specifically including the following:

[0045] Before determining whether the transmit power of the device needs to be adjusted and the transmit power adjustment strategy when adjustment is required, it is necessary to determine whether the current network mode of the device needs to be switched according to the network environment where the device is located, including the following:

[0046] Since there is no statistical data after the device is powered on or restarted, the current network mode of the device is assumed to be normal mode. If one of the following conditions is met, the current network mode of the device is switched to weak network mode. (1) The AP signal strength scanned by the device during the last two network connections is less than -60, and the device failed to connect to the router during the last two connections, where the reasons for the failure are not restricted; (2) The TLS connection of the device fails or the connection times out, and the AP signal strength scanned by the device is less than -60; (3) After the device connects to the cloud server, no interaction data is received from the cloud server within 3 minutes, and the AP signal strength scanned by the device is less than -60, where the interaction data includes the heartbeat data of the cloud server; (4) After the heartbeat data sent by the cloud server times out, the network diagnostic connection fails within 50 seconds, and the AP signal strength scanned by the device is less than -60.

[0047] If the current network mode of the device is weak network mode, the following conditions must be met at the same time to switch the weak network mode of the device to normal mode: (1) the number of successful connections of the device to the cloud server exceeds 5 times in a row; (2) the total time taken for the device to start the connection process with the router until it successfully establishes a communication connection with the cloud server is obtained. In the three connection attempts most recent to the current time, the above total time does not exceed 5 seconds.

[0048] After determining the target network mode of the device through the above method, determine whether the transmit power needs to be adjusted based on the target network mode, transmit power target value, transmit power factory value and indication flag. If adjustment is required, determine the transmit power adjustment strategy based on the following content.

[0049] When the transmit power target value = 0, regardless of whether the target network mode of the device is normal mode or weak network mode, the transmit power compensation value of the device is 0, that is, the transmit power is not adjusted;

[0050] When the transmit power target value = x, the transmit power factory value = 0, and the indication flag is non-mandatory, if the target network mode of the device is normal mode, the transmit power is not adjusted; if the target network mode of the device is weak network mode, the transmit power of the device is adjusted upward (x – maximum calibration value);

[0051] When the transmit power target value = x, the transmit power factory value = 0, and the indication flag is forced, regardless of whether the target network mode of the device is normal mode or weak network mode, adjust the transmit power of the device upward (x – calibration maximum value);

[0052] When the transmit power target value = x, the transmit power factory value = y, and the indication flag is non-mandatory, if the target network mode of the device is normal mode, the transmit power of the device is adjusted upward by (min(x,19.25)-y); if the target network mode of the device is weak network mode, the transmit power of the device is adjusted upward by (max(x,19.25)-y), where 14<=y<=24;

[0053] When the transmit power target value = x, the transmit power factory value = y, and the indication flag is forced, regardless of whether the target network mode of the device is normal mode or weak network mode, the transmit power of the device is adjusted upward by (x–y), where 14<=y<=24.

[0054] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, an operating terminal, or a network device, etc.) to execute the methods of each embodiment of the present application.

[0055] Figure 4 is a structural block diagram of a device for determining an adjustment strategy according to an embodiment of the present application; Figure 4 As shown, including:

[0056] A first determination module 40, configured to determine whether it is necessary to switch the current network mode of the device according to the network environment in which the device is located;

[0057] An acquisition module 42 is used to switch the current network mode of the device to the target network mode when switching is required, and to obtain the transmit power target value of the device, the transmit power factory value, and an indication flag for indicating whether to forcibly adjust the transmit power of the device to the transmit power target value from the cloud server;

[0058] The second determination module 44 is used to determine whether to adjust the transmit power of the device according to the target network mode currently adopted by the device, the transmit power target value, the transmit power factory value and the indication flag, and when adjustment is required, the adjustment strategy for the transmit power of the device.

[0059] In an embodiment of the present application, it is determined whether the current network mode of the device needs to be switched according to the network environment in which the device is located; if switching is required, the current network mode of the device is switched to the target network mode, and the transmission power target value of the device, the transmission power factory value, and an indicator flag for indicating whether to force the transmission power of the device to be adjusted to the transmission power target value are obtained from the cloud server; it is determined whether to adjust the transmission power of the device according to the target network mode currently used by the device, the transmission power target value, the transmission power factory value and the indicator flag, and when adjustment is required, the adjustment strategy for the transmission power of the device. The above technical solution solves the problem in the related art that the WiFi module of the device uses a single fixed transmission power and cannot guarantee the stability of the network connection under different network environments.

[0060] In an optional embodiment, the first determination module 40 is further used to determine that the current network mode of the device needs to be switched to the target network mode when the current network mode is the normal mode and one of the following conditions is met: the AP signal strength scanned by the device for the last N times is less than a first value, and the device has failed to connect to the router for the last N times, where N is an integer greater than 1; the transport layer security protocol TLS connection of the device fails, and the signal strength scanned by the device is less than the first value; after the device connects to the cloud server, no interaction data from the cloud server is received within a preset time range, and the signal strength scanned by the device is less than the first value; after the heartbeat data sent by the cloud server is received for a timeout, the network diagnostic connection fails within a time threshold, and the signal strength scanned by the device is less than the first value.

[0061] In an optional embodiment, the first determination module 40 is also used to obtain the connection time of the device from connecting to the router to successfully connecting to the cloud server; when the current network mode is a weak network mode and the following conditions are met, determine that the current network mode of the device needs to be switched to the target network mode: the device successfully connects to the cloud server M times, where M is an integer greater than the second value; the connection time of the device's most recent K times is less than a third value, where K is an integer greater than the third value.

[0062] In an optional embodiment, the second determination module 44 is also used to determine that there is no need to adjust the transmit power of the device when the target network mode is normal mode or weak network mode, the transmit power target value is a fourth value, the transmit power factory value is a fifth value, and the indication mark is non-mandatory; determine that there is no need to adjust the transmit power of the device when the target network mode is normal mode, the transmit power target value is a fifth value, the transmit power factory value is a fourth value, and the indication mark is non-mandatory; determine that there is a need to adjust the transmit power of the device when the target network mode is weak network mode, the transmit power target value is a fifth value, the transmit power factory value is a fourth value, and the indication mark is non-mandatory, and adjust the transmit power of the device upward to a sixth value, wherein the sixth value is the difference between the fifth value and the calibration maximum value.

[0063] In an optional embodiment, the second determination module 44 is also used to determine the need to adjust the transmit power of the device and adjust the transmit power of the device upward to a sixth value when the target network mode is a normal mode, the transmit power target value is a fifth value, the transmit power factory value is a fourth value, and the indication flag is mandatory, wherein the sixth value is the difference between the fifth value and the calibration maximum value.

[0064] In an optional embodiment, the second determination module 44 is also used to determine that the transmit power of the device needs to be adjusted, and the transmit power of the device is adjusted upward to an eighth value when the target network mode is a normal mode, the transmit power target value is a fifth value, the transmit power factory value is a seventh value, and the indication mark is non-mandatory; when the target network mode is a weak network mode, the transmit power target value is a fifth value, the transmit power factory value is a seventh value, and the indication mark is non-mandatory, determine that the transmit power of the device needs to be adjusted, and the transmit power of the device is adjusted upward to a ninth value, wherein the eighth value is less than the ninth value.

[0065] In an optional embodiment, the second determination module 44 is also used to determine the need to adjust the transmit power of the device and adjust the transmit power of the device upward to a tenth value when the target network mode is a normal mode, the transmit power target value is a fifth value, the transmit power factory value is a seventh value, and the indication flag is mandatory, wherein the tenth value is the difference between the fifth value and the seventh value.

[0066] An embodiment of the present application further provides a storage medium, which includes a stored program, wherein the program executes any of the above methods when it is run.

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

[0068] S1, determining whether it is necessary to switch the current network mode of the device according to the network environment in which the device is located;

[0069] S2, when switching is required, switching the current network mode of the device to the target network mode, and obtaining the transmit power target value of the device, the transmit power factory value, and an indication flag for indicating whether to forcibly adjust the transmit power of the device to the transmit power target value from the cloud server;

[0070] S3, determining whether to adjust the transmit power of the device according to the target network mode currently adopted by the device, the transmit power target value, the transmit power factory value and the indication flag, and, if adjustment is required, the transmit power adjustment strategy for the device.

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

[0072] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

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

[0074] S1, determining whether it is necessary to switch the current network mode of the device according to the network environment in which the device is located;

[0075] S2, when switching is required, switching the current network mode of the device to the target network mode, and obtaining the transmit power target value of the device, the transmit power factory value, and an indication flag for indicating whether to forcibly adjust the transmit power of the device to the transmit power target value from the cloud server;

[0076] S3, determining whether to adjust the transmit power of the device according to the target network mode currently adopted by the device, the transmit power target value, the transmit power factory value and the indication flag, and, if adjustment is required, the transmit power adjustment strategy for the device.

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

[0078] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps in any one of the above method embodiments are implemented.

[0079] An embodiment of the present application further provides another computer program product, including a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.

[0080] The embodiments of the present application also provide a computer program, which includes computer instructions, which are stored in a computer-readable storage medium; a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the steps in any one of the above method embodiments.

[0081] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.

[0082] Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, and optionally, they can be implemented by a program code executable by a 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 different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.

[0083] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A method for determining an adjustment strategy, characterized in that: include: Determining whether it is necessary to switch the current network mode of the device according to the network environment in which the device is located; If switching is required, switch the current network mode of the device to the target network mode, and obtain the transmit power target value of the device, the transmit power factory value, and an indication flag for indicating whether to forcibly adjust the transmit power of the device to the transmit power target value from the cloud server; Determine whether to adjust the transmit power of the device and the transmit power adjustment strategy of the device if adjustment is required based on the target network mode currently adopted by the device, the transmit power target value, the transmit power factory value and the indication flag.

2. The method for determining the adjustment strategy according to claim 1, characterized in that: Determining whether to switch the current network mode of the device according to the network environment where the device is located includes: When the current network mode is a normal mode and one of the following conditions is met, it is determined that the current network mode of the device needs to be switched to the target network mode: The AP signal strength scanned by the device for the last N times is less than the first value, and the device has failed to connect to the router for the last N times, where N is an integer greater than 1; The transport layer security protocol TLS connection of the device fails, and the AP signal strength scanned by the device is less than the first value; After the device connects to the cloud server, no interaction data is received from the cloud server within a preset time range, and the AP signal strength scanned by the device is less than the first value; after the heartbeat data sent by the cloud server is received after the timeout, the network diagnostic connection fails within the time threshold, and the AP signal strength scanned by the device is less than the first value.

3. The method for determining the adjustment strategy according to claim 1, characterized in that: Determining whether to switch the current network mode of the device according to the network environment where the device is located includes: Obtain the connection time of the device from connecting to the router to successfully connecting to the cloud server; when the current network mode is a weak network mode and the following conditions are met, determine that the current network mode of the device needs to be switched to the target network mode: The device successfully connects to the cloud server M times, where M is an integer greater than the second value; and the device's most recent K connection times are all less than a third value, where K is an integer greater than the third value.

4. The method for determining the adjustment strategy according to claim 1, characterized in that: Determining whether to adjust the transmit power of the device, and when adjustment is required, an adjustment strategy for the transmit power of the device according to the target network mode currently adopted by the device, the transmit power target value, the transmit power factory value, and the indication flag, including: When the target network mode is a normal mode or a weak network mode, the transmit power target value is a fourth value, the transmit power factory value is a fifth value, and the indication flag is non-mandatory, determining that the transmit power of the device does not need to be adjusted; When the target network mode is the normal mode, the transmit power target value is the fifth value, the transmit power factory value is the fourth value, and the indication flag is non-mandatory, determining that the transmit power of the device does not need to be adjusted; When the target network mode is a weak network mode, the transmit power target value is a fifth value, the transmit power factory value is a fourth value, and the indication flag is non-mandatory, it is determined that the transmit power of the device needs to be adjusted, and the transmit power of the device is adjusted upward to a sixth value, wherein the sixth value is the difference between the fifth value and the calibration maximum value.

5. The method for determining the adjustment strategy according to claim 1, characterized in that: Determining whether to adjust the transmit power of the device, and when adjustment is required, an adjustment strategy for the transmit power of the device according to the target network mode currently adopted by the device, the transmit power target value, the transmit power factory value, and the indication flag, including: When the target network mode is the normal mode, the transmit power target value is the fifth value, the transmit power factory value is the fourth value, and the indication flag is mandatory, it is determined that the transmit power of the device needs to be adjusted, and the transmit power of the device is adjusted upward to a sixth value, wherein the sixth value is the difference between the fifth value and the calibration maximum value.

6. The method for determining the adjustment strategy according to claim 1, characterized in that: Determining whether to adjust the transmit power of the device, and when adjustment is required, an adjustment strategy for the transmit power of the device according to the target network mode currently adopted by the device, the transmit power target value, the transmit power factory value, and the indication flag, including: When the target network mode is the normal mode, the transmit power target value is the fifth value, the transmit power factory value is the seventh value, and the indication flag is non-mandatory, determining that the transmit power of the device needs to be adjusted, and adjusting the transmit power of the device upward to an eighth value; When the target network mode is a weak network mode, the transmit power target value is the fifth value, the transmit power factory value is the seventh value, and the indication flag is non-mandatory, it is determined that the transmit power of the device needs to be adjusted, and the transmit power of the device is adjusted upward to a ninth value, wherein the eighth value is less than the ninth value.

7. The method for determining an adjustment strategy according to claim 1, characterized in that: Determining whether to adjust the transmit power of the device, and when adjustment is required, an adjustment strategy for the transmit power of the device according to the target network mode currently adopted by the device, the transmit power target value, the transmit power factory value, and the indication flag, including: When the target network mode is the normal mode, the transmission power target value is the fifth value, the transmission power factory value is the seventh value, and the indication flag is mandatory, it is determined that the transmission power of the device needs to be adjusted, and the transmission power of the device is adjusted upward by a tenth value, wherein the tenth value is the difference between the fifth value and the seventh value.

8. A device for determining an adjustment strategy, characterized in that: include: A first determination module, used to determine whether it is necessary to switch the current network mode of the device according to the network environment in which the device is located; An acquisition module, used to switch the current network mode of the device to the target network mode when switching is required, and to obtain the transmit power target value of the device, the transmit power factory value, and an indication flag for indicating whether to forcibly adjust the transmit power of the device to the transmit power target value from the cloud server; The second determination module is used to determine whether to adjust the transmit power of the device according to the target network mode currently adopted by the device, the transmit power target value, the transmit power factory value and the indication flag, and when adjustment is required, the adjustment strategy for the transmit power of the device.

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.

Citation Information

Patent Citations

  • Electronic apparatus and power adjustment method thereof

    CN102573036A

  • Network parameter adjustment method and device

    CN111918351A

  • Network switching method and device, server and storage medium

    CN113747529A

  • Network switching method and device, terminal equipment and storage medium

    CN115087049A

  • Power adjustment method and device, equipment and storage medium

    CN116506934A