Methods, devices, storage media, and electronic devices for adjusting transmission power
By dynamically adjusting the transmission power of the communication module through multi-dimensional configuration information, the problem of single configuration strategy and poor flexibility in the existing technology is solved, thereby achieving equipment performance optimization and improved operation and maintenance efficiency.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- QINGDAO HAIER TECH
- Filing Date
- 2024-12-25
- Publication Date
- 2026-05-26
Smart Images

Figure CN119835746B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of smart home technology, and more specifically, to a method, apparatus, storage medium, and electronic device for adjusting transmission power. Background Technology
[0002] In today's increasingly prevalent Internet of Things (IoT) technology, communication modules, as key components connecting smart devices and cloud servers, directly impact communication performance and energy consumption management through their transmit power settings. Traditional transmit power configurations are fixed at the factory, lacking the ability for dynamic adjustment. This fixed configuration cannot flexibly adapt to changing usage environments, especially when modules are integrated into IoT devices with varying power capabilities and requirements. A uniform transmit power setting often limits device performance, and may even lead to device malfunctions or damage due to insufficient power supply. Currently, cloud-based strategies for adjusting communication module transmit power are typically limited to individual control of device MAC addresses or support batch configuration based on MAC addresses. However, this configuration method is labor-intensive and cannot fully consider the differences in device types and production batches, easily leading to inaccurate power configurations, thus affecting device stability and lifespan. Furthermore, the lack of exclusion mechanisms for specific devices during batch configuration can easily lead to configuration conflicts or invalid configurations, increasing the difficulty of operation and maintenance.
[0003] Therefore, in the relevant technologies, when dynamically managing the transmission power of communication modules in the cloud, there are problems such as a single configuration strategy, poor flexibility, and low efficiency, and no effective solution has yet been proposed. Summary of the Invention
[0004] This application provides a method, apparatus, storage medium, and electronic device for adjusting transmission power, in order to at least solve the problems of single configuration strategy, poor flexibility, and low efficiency in the related art when dynamically managing the transmission power of communication modules in the cloud.
[0005] According to one embodiment of this application, a method for adjusting transmission power is provided, comprising: receiving device information reported by a communication module, wherein the device information includes at least: the device network identifier of the device where the communication module is located and the device model corresponding to the device; determining the configuration information of the current device in different dimensions based on the device information; determining the target transmission power to be executed by the communication module based on the configuration information and preset configuration data; and adjusting the historical transmission power of the communication module on the current device using the target transmission power.
[0006] In an exemplary embodiment, determining the target transmit power to be executed by the communication module based on configuration information and preset configuration data includes: when determining the transmit power using a debug configuration table in the preset configuration data, querying the debug configuration table using the device network identifier carried in the device information; if the query result is successful, reading the target configuration information corresponding to the device network identifier in the debug configuration table, and determining the reference power corresponding to the target configuration information as the target transmit power to be executed by the communication module; if the query result is unsuccessful, determining the target transmit power based on other configuration tables in the preset configuration data.
[0007] In one exemplary embodiment, determining the target transmission power to be executed by the communication module based on configuration information and preset configuration data includes: when determining the transmission power using a production sequence configuration table in the preset configuration data, querying the production sequence configuration table using the device network identifier carried in the device information; if the query result is successful, identifying the enterprise identifier corresponding to the device, and determining the production dedicated number configuration data to be used through the enterprise identifier; determining the target transmission power to be executed by the communication module that matches the device network identifier from the production dedicated number configuration data; and if the query result is unsuccessful, determining the target transmission power based on the device model configuration table in the preset configuration data.
[0008] In an exemplary embodiment, determining the target transmission power to be executed by the communication module based on configuration information and preset configuration data includes: when determining the transmission power using the device model configuration table in the preset configuration data, performing a matching query in the device model configuration table according to the target device type corresponding to the device; if the matching result is successful, obtaining the sub-configuration information associated with the target device type in the device model configuration table, and determining the target transmission power to be executed by the communication module based on the sub-configuration information; if the matching result fails, determining the target transmission power to be executed by the communication module based on the factory power of the communication module.
[0009] In an exemplary embodiment, before obtaining the sub-configuration information associated with the target device type in the device model configuration table, the method further includes: obtaining a configuration restriction list corresponding to the device model; and determining the target transmission power to be executed by the communication module based on the factory power of the communication module if the target device type is the same as any type in the restriction list.
[0010] In an exemplary embodiment, before adjusting the historical transmission power of the communication module on the current device using the target transmission power, the method further includes: if the target transmission power is determined to be zero, issuing a first control command to the communication module to directly use the default factory power; if the target transmission power is determined to be non-zero, issuing a second control command to the communication module to use the target transmission power, wherein the second control command carries a target value of the target transmission power.
[0011] In an exemplary embodiment, before issuing a second control command to the communication module to use the target transmit power, the method further includes: synchronizing the second control command to the maintenance object; and if the maintenance object determines that the target value carried by the second control command exceeds a preset threshold, replacing the second control command with a first control command and issuing it to the communication module.
[0012] According to another embodiment of the present application, a transmission power adjustment device is also provided, comprising: a receiving module, configured to receive device information reported by a communication module, wherein the device information includes at least: a device network identifier of the device where the communication module is located and a device model corresponding to the device; a first determining module, configured to determine the configuration information of the current device in different dimensions based on the device information; a second determining module, configured to determine the target transmission power to be executed by the communication module based on the configuration information and preset configuration data; and an adjusting module, configured to adjust the historical transmission power of the communication module on the current device using the target transmission power.
[0013] According to another aspect of the embodiments of this application, a computer-readable storage medium is also provided, wherein a computer program is stored in the computer program, and the computer program is configured to execute the above-described method for adjusting the transmission power when it is run.
[0014] According to another aspect of the embodiments of this application, an electronic device is also provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the above-described method for adjusting the transmission power through the computer program.
[0015] According to another aspect of this application, a computer program product is also provided, including a computer program that, when executed by a processor, implements the steps in the above-described method embodiment for adjusting the transmission power.
[0016] In this embodiment, device information reported by the communication module is received. This device information includes at least: the device network identifier of the device where the communication module resides and the corresponding device model. Based on the device information, the configuration information of the current device in different dimensions is determined. Based on the configuration information and preset configuration data, the target transmission power to be executed by the communication module is determined. The target transmission power is then used to adjust the historical transmission power of the communication module on the current device. This technical solution solves the problems of single configuration strategy, poor flexibility, and low efficiency when dynamically managing the transmission power of communication modules in the cloud. Furthermore, by receiving and parsing the device information of the communication module in the cloud, multi-dimensional configuration parameters are determined, and then the target transmission power is calculated and applied to intelligently and dynamically adjust the historical transmission power settings of the communication modules in IoT devices. Attached Figure Description
[0017] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0018] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0019] Figure 1 This is a schematic diagram of the hardware environment for a method of adjusting transmission power according to an embodiment of this application;
[0020] Figure 2 This is a flowchart of a method for adjusting transmission power according to an embodiment of this application;
[0021] Figure 3 This is a flowchart of a method for adjusting the transmission power configuration of a communication module in the cloud according to an embodiment of this application;
[0022] Figure 4 This is a structural block diagram of a transmission power adjustment device according to an embodiment of this application;
[0023] Figure 5 This is a computer system architecture block diagram of an electronic device according to an embodiment of this application;
[0024] Figure 6 This is an electronic device according to an embodiment of the present application for implementing a method for adjusting transmission power. Detailed Implementation
[0025] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.
[0026] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0027] According to one aspect of the embodiments of this application, a method for adjusting transmission power is provided. This method for adjusting transmission power is widely applicable to whole-house intelligent digital control application scenarios such as smart homes, smart home ecosystems, and intelligent housing ecosystems. Optionally, in this embodiment, the above-mentioned method for adjusting transmission power can be applied to, for example... Figure 1 The hardware environment shown consists of terminal device 102 and server 104. For example... Figure 1 As shown, server 104 is connected to terminal device 102 via a network and can be used to provide services (such as application services) to the terminal or clients installed on the terminal. A database can be set up on the server or independently of the server to provide data storage services for server 104. Cloud computing and / or edge computing services can be configured on the server or independently of the server to provide data processing services for server 104.
[0028] The aforementioned network may include, but is not limited to, at least one of the following: wired network, wireless network. The aforementioned wired network may include, but is not limited to, at least one of the following: wide area network, metropolitan area network, local area network. The aforementioned wireless network may include, but is not limited to, at least one of the following: Wi-Fi (Wireless Fidelity), Bluetooth. The terminal device 102 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 projector, smart TV, smart clothes rack, smart curtains, smart audio-visual equipment, smart socket, smart speaker, smart speaker box, smart fresh air equipment, smart kitchen and bathroom equipment, smart bathroom equipment, smart robot vacuum cleaner, smart window cleaning robot, smart mopping robot, smart air purifier, smart steam oven, smart microwave oven, smart water heater, smart air purifier, smart water dispenser, smart door lock, etc.
[0029] This embodiment provides a method for adjusting transmission power, which can be applied to computer terminals or IoT cloud environments. Figure 2 This is a flowchart of a method for adjusting transmission power according to an embodiment of this application, which includes the following steps:
[0030] Step S202: Receive device information reported by the communication module, wherein the device information includes at least: the device network identifier of the device where the communication module is located and the device model corresponding to the device;
[0031] Step S204: Determine the configuration information of the current device in different dimensions based on the device information;
[0032] Optionally, in practical applications, the configuration strategy can support the following four dimensions, including but not limited to: P0 dimension: device MAC dimension; P1 dimension: production batch dimension; P2 dimension: device Type ID dimension; P3 dimension: factory default dimension.
[0033] Optionally, the adoption priority of the above four dimensions is P0>P1>P2>P3.
[0034] Step S206: Determine the target transmission power to be executed by the communication module based on the configuration information and preset configuration data;
[0035] Optionally, the transmit power of a batch of communication modules integrated into different models of IoT devices (such as refrigerators, air conditioners, and water heaters) can be adjusted to optimize network coverage and energy consumption in a home environment. First, a set of power parameters is configured on the cloud server according to the device Type ID dimension (P2). For example, the transmit power of modules in all air conditioners is set to 5dBm, the transmit power of modules in all refrigerators to 3dBm, and the transmit power of modules in water heaters to 4dBm. This is based on the different signal strength and energy consumption requirements of different devices. When a communication module in an air conditioner connects to the cloud server, it automatically reports its MAC address and the Type ID information of the integrated device. After receiving this information, the cloud server, according to the above configuration strategy, reads the configuration information related to that Type ID (i.e., the air conditioner model) from the Type ID power configuration table, determines the target transmit power of the module to be 5dBm, and then sends this power value to the module. This embodiment fully demonstrates the flexibility and intelligent decision-making advantages brought by the multi-dimensional power configuration strategy, as well as its effectiveness and security in practical applications.
[0036] Step S208: Adjust the historical transmission power of the communication module on the current device using the target transmission power.
[0037] Optionally, a certain IoT refrigerator initially has its communication module's transmit power configured to 3dBm. However, when network signal coverage is insufficient, maintenance personnel adjust the configuration information for the refrigerator's Type ID on the cloud server, setting the target transmit power to 5dBm to improve signal coverage. When the refrigerator reconnects to the cloud, its communication module reports its information, including MAC and Type ID, to the cloud. Upon receiving this information, the cloud server determines the target transmit power to be 5dBm based on the latest configuration policy. Upon receiving this new target transmit power, the module compares it with its historical transmit power (3dBm) and makes corresponding adjustments. During this process, the module smoothly transitions from 3dBm to 5dBm to avoid sudden power changes impacting the device or network. After this adjustment, the communication module in the refrigerator begins transmitting signals at 5dBm, thereby improving signal coverage and ensuring a stable connection between the refrigerator and the home network. Meanwhile, since the target power is set based on the device Type ID, the transmission power of the communication module of all refrigerators of the same model will be automatically adjusted to 5dBm when they subsequently connect to the cloud. This achieves batch optimization, improving the efficiency of power configuration and the consistency of device network performance. Adjusting historical transmission power using the target transmission power not only optimizes the performance of the communication module in real time but also ensures power configuration consistency between devices, effectively improving the network stability and energy efficiency of IoT devices.
[0038] Through the above steps, device information reported by the communication module is received. This device information includes at least: the device network identifier of the device where the communication module resides and the corresponding device model. Based on the device information, the configuration information of the current device in different dimensions is determined. Based on the configuration information and preset configuration data, the target transmission power to be executed by the communication module is determined. The target transmission power is then used to adjust the historical transmission power of the communication module on the current device. This technical solution solves the problems of single configuration strategy, poor flexibility, and low efficiency in dynamically managing the transmission power of communication modules in the cloud. Furthermore, by receiving and parsing the device information of the communication module in the cloud, multi-dimensional configuration parameters are determined, and then the target transmission power is calculated and applied to intelligently and dynamically adjust the historical transmission power settings of the communication modules in IoT devices.
[0039] In an exemplary embodiment, determining the target transmit power to be executed by the communication module based on configuration information and preset configuration data includes: when determining the transmit power using a debug configuration table in the preset configuration data, querying the debug configuration table using the device network identifier carried in the device information; if the query result is successful, reading the target configuration information corresponding to the device network identifier in the debug configuration table, and determining the reference power corresponding to the target configuration information as the target transmit power to be executed by the communication module; if the query result is unsuccessful, determining the target transmit power based on other configuration tables in the preset configuration data.
[0040] Optionally, consider a smart washing machine with the MAC address 00:11:22:33:44:55. During maintenance, if the Wi-Fi signal in the area where this washing machine is located is weak, and signal coverage needs to be enhanced, the washing machine's transmission power needs to be increased from the default 3dBm to 6dBm to improve signal quality. Specifically, maintenance personnel will query this MAC address in the debug power configuration table in the cloud. If a corresponding entry exists in the table, the power configuration of 6dBm from that entry will be directly applied as the target transmission power. If no entry for this MAC address exists in the debug configuration table, the query will fail. In this case, the system will automatically switch to the next level configuration table (P1 production batch, P2 device type ID, P3 factory default) for further querying. This hierarchical decision-making mechanism ensures that an effective power configuration strategy can be provided for the device under any circumstances.
[0041] In one exemplary embodiment, determining the target transmission power to be executed by the communication module based on configuration information and preset configuration data includes: when determining the transmission power using a production sequence configuration table in the preset configuration data, querying the production sequence configuration table using the device network identifier carried in the device information; if the query result is successful, identifying the enterprise identifier corresponding to the device, and determining the production dedicated number configuration data to be used through the enterprise identifier; determining the target transmission power to be executed by the communication module that matches the device network identifier from the production dedicated number configuration data; and if the query result is unsuccessful, determining the target transmission power based on the device model configuration table in the preset configuration data.
[0042] Optionally, a smart home appliance company (company ID: XX) produces a batch of smart refrigerators with MAC addresses ranging from 00:11:22:33:44:00 to 00:11:22:33:44:FF. During production, the company discovers that the wireless signal quality in the area where these refrigerators are located is poor, requiring an increase in the transmission power of the communication module to ensure better signal coverage. Therefore, the company associates the production serial number ProdBatch123 for this batch of refrigerators with a higher transmission power configuration (e.g., 8dBm) and stores it in the production sequence configuration table. When any refrigerator in this batch (e.g., MAC address 00:11:22:33:44:55) connects to the cloud server, the server first queries the production sequence configuration table using the device network identifier (MAC address). Since 00:11:22:33:44:55 belongs to the company's production sequence, the query is successful. After a successful query, the server identifies the enterprise identifier corresponding to the device as XX, and then uses the enterprise identifier of XX to determine the production-specific number configuration data to be used, namely ProdBatch123. From the production-specific number configuration data of ProdBatch123, the server determines that the target transmit power of the communication module corresponding to the device network identifier 00:11:22:33:44:55 is 8dBm. If the configuration information corresponding to the MAC address 00:11:22:33:44:55 is not found in the production sequence configuration table, the query fails, and the system will automatically switch to the device model configuration table for querying. Based on the refrigerator model (e.g., "Fridge Model ABC"), the corresponding power configuration information is obtained, such as the default of 6dBm. Through the above embodiment, not only can the transmit power of devices in the same production batch be adjusted efficiently in batches, but the accuracy and security of power configuration can also be ensured. At the same time, through the hierarchical query mechanism, even if the configuration information is not found in the production sequence configuration table, the appropriate power configuration can be found through the device model configuration table, realizing efficient resource utilization and effective cost control.
[0043] In an exemplary embodiment, determining the target transmission power to be executed by the communication module based on configuration information and preset configuration data includes: when determining the transmission power using the device model configuration table in the preset configuration data, performing a matching query in the device model configuration table according to the target device type corresponding to the device; if the matching result is successful, obtaining the sub-configuration information associated with the target device type in the device model configuration table, and determining the target transmission power to be executed by the communication module based on the sub-configuration information; if the matching result fails, determining the target transmission power to be executed by the communication module based on the factory power of the communication module.
[0044] Optionally, a batch of smart refrigerators, model FridgeModelXYZ, experienced poor signal quality during network signal testing in a certain area. The transmission power of the communication module needed to be adjusted from the default 3dBm to 6dBm to improve signal coverage. When a FridgeModelXYZ smart refrigerator connects to the cloud, the cloud server first performs a matching query in the device model configuration table based on the target device type (FridgeModelXYZ) carried in the device information. If the match is successful, the server retrieves the sub-configuration information associated with FridgeModelXYZ, namely the configuration of a transmission power of 6dBm. Based on this sub-configuration information, the target transmission power to be executed for the smart refrigerator's communication module is determined to be 6dBm. If the server cannot find configuration information matching FridgeModelXYZ in the device model configuration table, it will determine the communication module's factory power (default 3dBm) as the target transmission power to be executed, ensuring that the device can at least operate according to the basic configuration, while awaiting subsequent correct power configuration information. This avoids equipment malfunctions caused by improper power configuration, simplifies the operation and maintenance process, reduces maintenance costs, and improves the overall level of equipment management and user experience.
[0045] In an exemplary embodiment, before obtaining the sub-configuration information associated with the target device type in the device model configuration table, the method further includes: obtaining a configuration restricted access list corresponding to the device model; and if the target device type is the same as any type in the restricted access list, determining the target transmission power to be executed by the communication module based on the factory power of the communication module.
[0046] Optionally, if a company manufactures a FridgeModelX smart refrigerator, most models support power adjustment, but a specific version of FridgeModelX (version V2.0) is found to be unable to withstand transmit power exceeding 4dBm due to a minor hardware design flaw, then FridgeModelX V2.0 is added to the configuration restricted access list. When the cloud server receives device information, it first checks if the restricted access list exists. In this example, FridgeModelX V2.0 is included in the restricted access list. The server matches the device type based on the device information. If the received device information indicates that the device type is FridgeModelX V2.0, since the target device type matches the type in the restricted access list, the server directly determines the factory default power of the communication module (assuming it is 3dBm) as the target transmit power for that device's communication module. The server will not perform further power configuration queries or adjustments for devices in the restricted access list, directly applying the safe factory default power, thereby avoiding potential damage to the device.
[0047] In an exemplary embodiment, before adjusting the historical transmission power of the communication module on the current device using the target transmission power, the method further includes: if the target transmission power is determined to be zero, issuing a first control command to the communication module to directly use the default factory power; if the target transmission power is determined to be non-zero, issuing a second control command to the communication module to use the target transmission power, wherein the second control command carries a target value of the target transmission power.
[0048] Optionally, the cloud server configures a target transmit power of 7dBm for the WasherModelA smart washing machine, while no additional power configuration is performed for the FridgeModelB smart refrigerator. When the smart washing machine and smart refrigerator connect to the cloud, they report their device model and MAC address to the cloud server. The cloud server queries the model of the smart washing machine to find the target transmit power of 7dBm, while the query result for the smart refrigerator shows a target transmit power of zero. For the FridgeModelB smart refrigerator, since its target transmit power is zero, the cloud server automatically sends a first control command to its communication module, instructing the communication module to directly use the factory default power, assuming it is 3dBm. For the WasherModelA smart washing machine, since the target transmit power is not zero, the cloud server sends a second control command to its communication module, which carries the target transmit power value of 7dBm. By setting the rule of directly using the factory default power when the target transmit power is zero, it is ensured that the device can stably operate at a safe default power level in the absence of specific power configuration or invalid configuration information, avoiding device damage or network anomalies caused by improper power.
[0049] In an exemplary embodiment, before issuing a second control command to the communication module to use the target transmit power, the method further includes: synchronizing the second control command to the maintenance object; and if the maintenance object determines that the target value carried by the second control command exceeds a preset threshold, replacing the second control command with a first control command and issuing it to the communication module.
[0050] Optionally, a company configures a target transmission power for a smart oven on a cloud server, setting the target value to 5dBm. The cloud server then sends a second control command to the maintenance objects (such as gateways or edge computing devices) of the smart oven and smart air conditioner. Upon receiving the second control command, the maintenance object first checks whether the target value carried in the control command exceeds a preset threshold. For the smart oven, due to the high ambient temperature in the kitchen, the preset power threshold may be low, for example, 4dBm. Since the target value of 5dBm exceeds the preset threshold, the maintenance object replaces the second control command with the first control command, instructing the communication module to use the factory default power, such as 3dBm. After receiving the first control command, the smart oven's communication module maintains the factory default power of 3dBm, avoiding the risk of overheating. Because a lower factory default power is maintained in a high-temperature environment, the device operates safely and stably, avoiding the risk of overheating or damage. While ensuring safe device operation, the power configuration flexibility and scenario adaptability are achieved through the maintenance object's checks and adjustments, improving network stability and device management efficiency.
[0051] To better understand the process of the above-mentioned method for adjusting the transmission power, the implementation flow of the above-mentioned method for adjusting the transmission power will be described below in conjunction with optional embodiments, but this is not intended to limit the technical solution of the embodiments of this application.
[0052] In related technologies, cloud-based configuration of module transmit power is typically done at the device level, such as configuring a transmit power for each MAC address. To achieve batch configuration, the transmit power needs to be configured in the cloud based on the MAC address. However, communication modules have diverse use cases and are not fixed to a single IoT device. Instead, they are integrated into different types of IoT devices; for example, the same module might be used in refrigerators, air conditioners, and water heaters. Different devices may have different power supply capabilities, and even different batches and versions of the same device may have different power supply capabilities. Therefore, configuring transmit power requires extreme care. Otherwise, insufficient power supply to the device could render the transmitted power unusable, leading to anything from module power failure and restart to module burnout. Thus, existing configuration strategies increase the difficulty of batch configuration, lack flexibility, and have a high mismatch rate.
[0053] To address the aforementioned issues, this application proposes an optional embodiment of a method for adjusting the transmission power configuration of a communication module in the cloud. This method is based on four dimensions: device MAC address, production batch, device model (Type ID), and factory default settings, and performs configuration retrieval and execution according to priority P0 (MAC dimension), P1 (production batch dimension), P2 (device model dimension), and P3 (factory default power). By allowing maintenance personnel to flexibly configure the transmission power parameters for each dimension in the cloud, the communication module automatically reports its MAC address and the Type ID of the integrated device each time it connects to the cloud. This enables the cloud to calculate and distribute the most suitable transmission power based on preset logic, achieving fine-grained control and efficient management of the module's transmission power. Furthermore, through a configuration information deletion and rollback mechanism, it ensures that in cases of improper configuration or changes in device power supply capabilities, the module can automatically revert to safe factory default settings, effectively avoiding device failure and improving configuration success rate.
[0054] Optionally, the above configuration method mainly achieves fine-grained management of the communication module's transmit power through four dimensions. The specific solution is as follows:
[0055] P0 dimension: Following the configuration strategy of the device MAC dimension, this dimension is positioned as a debug dimension, which can support the configuration of the transmit power of a specific device, making it convenient for R&D and maintenance personnel to make individual adjustments for a specific device.
[0056] P1 Dimension: Production Batch Dimension. This dimension is positioned as a batch dimension and can support batch settings for devices at the production batch dimension. Each batch of production corresponds to a dedicated number, and the transmission power configuration information is associated with the dedicated number, thereby realizing the production batch dimension.
[0057] P2 Dimension: Device Type ID Dimension. Type ID is the device model of the integrated module. For example, one type of air conditioner corresponds to one Type ID. The Type IDs of air conditioners and refrigerators are different. Transmission power configuration information is associated with Type ID, thereby realizing the transmission power configuration of the device at the Type ID dimension.
[0058] P3 dimension: Factory default transmit power. When the conditions of P0 / P1 / P2 dimensions are not met, a configuration of 0 is sent to the module so that the module is configured according to the factory default transmit power.
[0059] Optional, Figure 3 This is a flowchart of a method for adjusting the transmission power configuration of a communication module in the cloud according to an embodiment of this application; the specific steps are as follows:
[0060] Step 1: Device Information Reporting. When the communication module connects to the cloud, it uploads device information including its own MAC address and device model (Type ID). This step is the starting point of the entire process, providing the basic data for the cloud to determine the transmit power configuration strategy.
[0061] Step Two: Query P0 Dimension (debug) Configuration. The cloud first queries the debug configuration table based on the MAC address. This table is primarily used for R&D and maintenance debugging and can configure the transmit power of specific devices. If the configuration information for the corresponding MAC address is found in the debug table, it is directly read and applied. The process ends here, and the module will execute the newly set power.
[0062] Step 3: Query the P1 dimension (production batch) configuration. If the relevant information is not found in the debug configuration, the cloud will next query the production batch power configuration table. This involves mapping MAC addresses to the production batch's unique number to obtain the general power configuration for that batch of devices. If the configuration information is found in the production batch configuration table, it is read and applied, and the process ends.
[0063] Step 4: Check the Type ID restricted access list. If the configuration information is not found in the first two dimensions, the cloud will check the Type ID restricted access list to confirm whether the MAC address under this device model is listed in the restricted access list that does not support power adjustment. If the MAC address is in the restricted access list, the cloud will send a 0 configuration to the module, instructing the module to use the factory default transmit power, and the process ends.
[0064] Step 5: Query P2 dimension (Device Type ID) configuration. If the device's MAC address is not listed in the Type ID restricted access list, the cloud will query the Type ID power configuration table based on the device's Type ID to find the transmit power settings applicable to that device model. If the configuration information is found in the Type ID configuration table, it will be read and applied, and the process ends.
[0065] Step Six: Apply Factory Default Power (P3 Dimension). If no suitable configuration information is found in the P0, P1, and P2 dimensions, the cloud will send a 0 configuration to the module, instructing it to use the factory default transmit power. This is the basic power configuration strategy to ensure that the module can still function normally without more specific configuration.
[0066] It's important to note that if R&D or operations personnel want to adjust the transmit power of a specific communication module, they only need to configure the module's MAC address and desired transmit power in the debug power configuration table. If operations personnel want to adjust the transmit power of a batch of communication modules in a production batch, they only need to configure the production batch's dedicated number, MAC address, and desired transmit power in the production batch power configuration table. If operations personnel want to adjust the transmit power of modules in integrated module devices (such as a refrigerator), they only need to configure the Type ID and desired transmit power in the Type ID power configuration table. If operations personnel want to adjust the transmit power of modules in integrated module devices but find that some older devices do not support adjustment, they only need to add the MAC addresses of the unsupported older devices to the Type ID dimension restricted access list. If operations personnel find that a previously configured transmit power is inappropriate and want the module to revert to the factory transmit power, they only need to delete the previous configuration information. Since the cloud cannot retrieve the device's configuration information, it will issue a 0 configuration to the module, and the module will operate according to the factory transmit power.
[0067] Through the above scheme, this application provides four dimensions of transmit power configuration strategies: P0 (single device debugging), P1 (production batch management), P2 (device model optimization), and P3 (factory default settings). These four dimensions allow for flexible adjustment of the module's transmit power according to priority. This method not only significantly improves the flexibility and efficiency of power configuration and simplifies operation and maintenance, but its built-in safety rollback mechanism ensures that the module can automatically revert to the factory default power in case of improper configuration or changes in device power supply capabilities. This effectively avoids equipment failure or damage and significantly enhances system stability and security. Furthermore, it can meet most scenarios for module use, supporting single-device, batch, and batch settings based on integrated module device models. It also supports access restriction list mechanisms, significantly improving the configuration efficiency for operation and maintenance personnel.
[0068] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. 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 product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods of the various embodiments of this application.
[0069] Figure 4 This is a structural block diagram of a transmission power adjustment device according to an embodiment of this application; as shown... Figure 4 As shown, it includes:
[0070] The receiving module 42 is used to receive device information reported by the communication module, wherein the device information includes at least: the device network identifier of the device where the communication module is located and the device model corresponding to the device;
[0071] The first determining module 44 is used to determine the configuration information of the current device in different dimensions based on the device information;
[0072] The second determining module 46 is used to determine the target transmission power to be executed by the communication module based on the configuration information and preset configuration data;
[0073] Adjustment module 48 is used to adjust the historical transmission power of the communication module on the current device using the target transmission power.
[0074] The aforementioned device receives device information reported by the communication module, wherein the device information includes at least: the device network identifier of the device where the communication module is located and the device model corresponding to the device; the device information is used to determine the current device's configuration information in different dimensions; the target transmission power to be executed by the communication module is determined based on the configuration information and preset configuration data; and the target transmission power is used to adjust the historical transmission power of the communication module on the current device. This technical solution solves the problems of single configuration strategy, poor flexibility, and low efficiency in dynamically managing the transmission power of communication modules in the cloud. Furthermore, by receiving and parsing the device information of the communication module in the cloud, multi-dimensional configuration parameters are determined, and then the target transmission power is calculated and applied to intelligently and dynamically adjust the historical transmission power settings of the communication module in the IoT device.
[0075] In an exemplary embodiment, the second determining module is further configured to, when determining the transmit power using the debugging configuration table in the preset configuration data, query the debugging configuration table using the device network identifier carried in the device information; if the query result is successful, read the target configuration information corresponding to the device network identifier in the debugging configuration table, and determine the reference power corresponding to the target configuration information as the target transmit power to be executed by the communication module; if the query result is unsuccessful, determine the target transmit power based on other configuration tables in the preset configuration data.
[0076] In an exemplary embodiment, the second determining module is further configured to, when determining the transmit power using the production sequence configuration table in the preset configuration data, query the production sequence configuration table using the device network identifier carried in the device information; if the query result is successful, identify the enterprise identifier corresponding to the device and determine the production dedicated number configuration data to be used through the enterprise identifier; determine the target transmit power to be executed by the communication module that matches the device network identifier from the production dedicated number configuration data; and if the query result is unsuccessful, determine the target transmit power based on the device model configuration table in the preset configuration data.
[0077] In an exemplary embodiment, the second determining module is further configured to, when determining the transmission power using the device model configuration table in the preset configuration data, perform a matching query in the device model configuration table according to the target device type corresponding to the device; if the matching result is successful, obtain the sub-configuration information associated with the target device type in the device model configuration table, and determine the target transmission power to be executed by the communication module based on the sub-configuration information; if the matching result is unsuccessful, determine the target transmission power to be executed by the communication module based on the factory power of the communication module.
[0078] In an exemplary embodiment, the second determining module further includes: an acquisition unit, configured to acquire a configuration restriction list corresponding to the device model before acquiring the sub-configuration information associated with the target device type in the device model configuration table; and to determine the target transmission power to be executed by the communication module based on the factory power of the communication module if the target device type is the same as any type in the restriction list.
[0079] In one exemplary embodiment, the above apparatus further includes: a transmitting module, configured to, before adjusting the historical transmission power of the communication module on the current device using the target transmission power, issue a first control command to the communication module to directly use the default factory power if the target transmission power is determined to be zero; and issue a second control command to the communication module to use the target transmission power if the target transmission power is determined to be non-zero, wherein the second control command carries a target value of the target transmission power.
[0080] In an exemplary embodiment, the above-mentioned sending module further includes: a replacement unit, configured to synchronize the second control instruction to the maintenance object before sending the second control instruction using the target transmission power to the communication module; and to replace the second control instruction with the first control instruction and send it to the communication module when the maintenance object determines that the target value carried by the second control instruction exceeds a preset threshold requirement.
[0081] In this application embodiment, the terms "module" or "unit" refer to a computer program or part of a computer program that has a predetermined function and works with other related parts to achieve a predetermined goal, and can be implemented wholly or partially using software, hardware (such as processing circuitry or memory), or a combination thereof. Similarly, a processor (or multiple processors or memory) can be used to implement one or more modules or units. Furthermore, each module or unit can be part of an overall module or unit that includes the functionality of that module or unit.
[0082] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to this application.
[0083] Embodiments of this application also provide a storage medium including a stored program, wherein the program executes any of the methods described above when it is run.
[0084] Optionally, in this embodiment, the storage medium may be configured to store program code for performing the following steps:
[0085] S1, Receive device information reported by the communication module, wherein the device information includes at least: the device network identifier of the device where the communication module is located and the device model corresponding to the device;
[0086] S2, determine the configuration information of the current device in different dimensions based on the device information;
[0087] S3, determine the target transmission power to be executed by the communication module based on the configuration information and preset configuration data;
[0088] S4, adjust the historical transmission power of the communication module on the current device using the target transmission power.
[0089] Embodiments of this application also provide an electronic device including a memory and a processor, wherein the memory stores a computer program and the processor is configured to run the computer program to perform the steps in any of the above method embodiments.
[0090] 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.
[0091] Optionally, in this embodiment, the processor can be configured to perform the following steps via a computer program:
[0092] S1, Receive device information reported by the communication module, wherein the device information includes at least: the device network identifier of the device where the communication module is located and the device model corresponding to the device;
[0093] S2, determine the configuration information of the current device in different dimensions based on the device information;
[0094] S3, determine the target transmission power to be executed by the communication module based on the configuration information and preset configuration data;
[0095] S4, adjust the historical transmission power of the communication module on the current device using the target transmission power.
[0096] Optionally, in this embodiment, the storage medium may include, but is not limited to, various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.
[0097] Figure 5 A schematic block diagram of a computer system architecture for implementing the electronic device of the embodiments of this application is shown. It should be noted that... Figure 5 The computer system 500 of the illustrated electronic device is merely an example and should not be construed as limiting the functionality and scope of the embodiments of this application. Figure 5As shown, the computer system 500 includes a central processing unit (CPU) 501, which can perform various appropriate actions and processes based on programs stored in read-only memory (ROM) 502 or programs loaded from storage section 508 into random access memory (RAM) 503. The RAM 503 also stores various programs and data required for system operation. The CPU 501, ROM 502, and RAM 503 are interconnected via a bus 504. An input / output interface 505 (I / O interface) is also connected to the bus 504.
[0098] The following components are connected to the input / output interface 505: an input section 506 including a keyboard, mouse, etc.; an output section 505 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and speakers, etc.; a storage section 508 including a hard disk, etc.; and a communication section 509 including a network interface card such as a local area network card, modem, etc. The communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the input / output interface 505 as needed. A removable medium 511, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., is installed on the drive 510 as needed so that computer programs read from it can be installed into the storage section 508 as needed.
[0099] Specifically, according to embodiments of this application, the processes described in the various method flowcharts can be implemented as computer software programs. For example, embodiments of this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication section 509, and / or installed from removable medium 511. When the computer program is executed by central processing unit 501, it performs various functions defined in the system of this application.
[0100] According to another aspect of the embodiments of this application, an electronic device for implementing the above-described adjustment of transmission power is also provided. The electronic device of this embodiment is as follows: Figure 6 As shown, the electronic device includes a memory 602 and a processor 604. The memory 602 stores a computer program, and the processor 604 is configured to execute the steps of any of the above method embodiments via the computer program.
[0101] Optionally, in this embodiment, the electronic device may be located in at least one of a plurality of network devices in a computer network. Those skilled in the art will understand that... Figure 6 The structure shown is for illustrative purposes only; the electronic device may also be a device that includes the aforementioned flash memory. Figure 6 This does not limit the structure of the aforementioned electronic device. For example, the electronic device may also include components that are more... Figure 6 The more or fewer components shown (such as network interfaces, etc.), or having the same Figure 6 The different configurations shown.
[0102] The memory 602 can be used to store software programs and modules, such as the program instructions / modules corresponding to the transmission power adjustment and device in this embodiment. The processor 604 executes various functional applications and data processing by running the software programs and modules stored in the memory 602, thereby realizing the aforementioned transmission power adjustment. The memory 602 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 602 may further include memory remotely located relative to the processor 604, and these remote memories can be connected to the terminal via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. Specifically, the memory 602 may be used, but is not limited to, to contain information such as logs containing modeling data. As an example, such as... Figure 6 As shown, the memory 602 may include, but is not limited to, the modules in the aforementioned transmission power adjustment device. Furthermore, it may include, but is not limited to, other module units in the aforementioned transmission power adjustment device, which will not be elaborated upon in this example.
[0103] Optionally, the transmission device 606 described above is used to receive or send data via a network. Specific examples of the network described above may include wired networks and wireless networks. In one example, the transmission device 606 includes a Network Interface Controller (NIC), which can be connected to other network devices and routers via a network cable to communicate with the Internet or a local area network. In another example, the transmission device 606 is a radio frequency (RF) module, used for wireless communication with the Internet.
[0104] In addition, the above-mentioned electronic device also includes: a display 606; and a connection bus 610 for connecting the various module components in the above-mentioned electronic device.
[0105] Embodiments of this application also provide a computer program product, which includes a computer program that, when executed by a processor, implements the steps in any of the above method embodiments.
[0106] Embodiments of this application also provide another computer program product, including a non-volatile computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps in any of the above method embodiments.
[0107] The embodiments described herein also provide a computer program that includes computer instructions stored in a computer-readable storage medium; a processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the steps in any of the above method embodiments.
[0108] Optionally, specific examples in this embodiment can refer to the examples described in the above embodiments and optional implementations, and will not be repeated here.
[0109] Obviously, those skilled in the art should understand that the modules or steps of this application described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. Optionally, they can be implemented using computer-executable program code, thereby storing them in a storage device for execution by a computing device. In some cases, the steps shown or described can be performed in a different order than those presented here, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, this application is not limited to any particular combination of hardware and software.
[0110] The above description is only a preferred embodiment of this application. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of this application, and these improvements and modifications should also be considered within the scope of protection of this application.
Claims
1. A method for adjusting transmission power, characterized in that, include: Receive device information reported by the communication module, wherein the device information includes at least: the device network identifier of the device where the communication module is located and the device model corresponding to the device; Based on the device information, the configuration information of the current device in different dimensions is determined, wherein the different dimensions include: the first dimension corresponding to the device hardware address, the second dimension corresponding to the production batch, the third dimension corresponding to the device type identifier, and the fourth dimension corresponding to the factory default. The target transmit power to be executed by the communication module is determined based on the configuration information and preset configuration data. The target transmit power is used to adjust the historical transmit power of the communication module on the current device. The configuration information of different dimensions has different priority order when determining the target transmission power. The priority order is: first priority corresponding to the first dimension > second priority corresponding to the second dimension > third priority corresponding to the third dimension > fourth priority corresponding to the fourth dimension.
2. The method for adjusting transmission power according to claim 1, characterized in that, Determining the target transmit power to be executed by the communication module based on the configuration information and preset configuration data includes: When determining the transmit power using the debug configuration table in the preset configuration data, the device network identifier carried in the device information is used to query the debug configuration table. If the query result is successful, read the target configuration information corresponding to the device network identifier in the debugging configuration table, and determine the reference power corresponding to the target configuration information as the target transmission power to be executed by the communication module. If the query result fails, the target transmission power is determined based on other configuration tables in the preset configuration data, wherein the other configuration tables include at least one of the following: production batch configuration table, device type identifier configuration table, and factory default configuration table.
3. The method for adjusting transmission power according to claim 1, characterized in that, Determining the target transmit power to be executed by the communication module based on the configuration information and preset configuration data includes: When determining the transmission power using the production sequence configuration table in the preset configuration data, the device network identifier carried in the device information is used to query the production sequence configuration table. If the query result is successful, identify the enterprise identifier corresponding to the device, and determine the production dedicated number configuration data to be used through the enterprise identifier; determine the target transmission power to be executed by the communication module that matches the device network identifier from the production dedicated number configuration data; If the query fails, the target transmission power is determined based on the device model configuration table in the preset configuration data.
4. The method for adjusting transmission power according to claim 1, characterized in that, Determining the target transmit power to be executed by the communication module based on the configuration information and preset configuration data includes: When using the device model configuration table in the preset configuration data to determine the transmission power, a matching query is performed in the device model configuration table according to the target device type corresponding to the device. If the matching result is successful, obtain the sub-configuration information associated with the target device type in the device model configuration table, and determine the target transmission power to be executed by the communication module based on the sub-configuration information; If the matching result fails, the target transmission power to be executed by the communication module is determined by the factory power of the communication module.
5. The method for adjusting transmission power according to claim 4, characterized in that, Before obtaining the sub-configuration information associated with the target device type in the device model configuration table, the method further includes: Retrieve the list of configuration restrictions corresponding to the device model; If the target device type is the same as any type in the restricted list, the target transmission power to be performed by the communication module is determined by the factory power of the communication module.
6. The method for adjusting transmission power according to claim 1, characterized in that, Before adjusting the historical transmit power of the communication module on the current device using the target transmit power, the method further includes: If the target transmit power is determined to be zero, a first control command is issued to the communication module to directly use the default factory power. If the target transmission power is determined to be non-zero, a second control command for using the target transmission power is issued to the communication module, wherein the second control command carries the target value of the target transmission power.
7. The method for adjusting transmission power according to claim 6, characterized in that, Before issuing a second control command to the communication module to use the target transmit power, the method further includes: Synchronize the second control command to the operation and maintenance object; If the maintenance object determines that the target value carried by the second control command exceeds the preset threshold, the second control command will be replaced with the first control command and sent to the communication module.
8. A device for adjusting transmission power, characterized in that, include: A receiving module is used to receive device information reported by the communication module, wherein the device information includes at least: the device network identifier of the device where the communication module is located and the device model corresponding to the device; The first determining module is used to determine the configuration information of the current device in different dimensions based on the device information; The second determining module is used to determine the target transmission power to be executed by the communication module based on the configuration information and preset configuration data; The adjustment module is used to adjust the historical transmission power of the communication module on the current device using the target transmission power; The different dimensions include: a first dimension corresponding to the device hardware address, a second dimension corresponding to the production batch, a third dimension corresponding to the device type identifier, and a fourth dimension corresponding to the factory default. The configuration information of the different dimensions has different priority order when determining the target transmission power. The priority order is: first priority corresponding to the first dimension > second priority corresponding to the second dimension > third priority corresponding to the third dimension > fourth priority corresponding to the fourth dimension.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, wherein the program, when executed, performs the method described in any one of claims 1 to 7.
10. An electronic device comprising a memory and a processor, characterized in that, The memory stores a computer program, and the processor is configured to execute the method described in any one of claims 1 to 7 through the computer program.