Method, device and equipment for optimizing power of Internet of Things equipment and storage medium
Using particle swarm algorithm to adjust the power of passive IoT devices solves the problem of high power consumption caused by energy instability, achieving optimal adjustment of device power and improving energy efficiency.
Patent Information
- Application Number
- CN202311571229.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-22
- Publication Date
- 2024-10-18
AI Technical Summary
Due to the energy oscillation, node imbalance and energy limitation of passive IoT devices, the energy obtained by the devices is random and unstable, making it difficult to dynamically adjust power to reduce power consumption.
The particle swarm algorithm is used to set the potentially feasible power of the IoT device as a particle. By judging whether the target power corresponding to the particle meets the operational requirements, the target power of the particle is adjusted to obtain optimal results for individuals and groups, and is updated based on the preset parameters. The power of particles ensures that the overall power consumption of the device is reduced without affecting its operation.
It achieves dynamic optimization of the power of passive IoT devices, reduces the overall power consumption of the device, and improves energy utilization and communication success rate.
Smart Images

Figure CN118798014A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the technical field of Internet of Things, and in particular, relates to a method, apparatus, device and storage medium for power optimization of Internet of Things devices. Background Art
[0002] With the in-depth application of IoT in multiple industries, the deployment of IoT devices in certain special scenarios is restricted by the environment, energy consumption, cost and environmental protection. Traditional power supply methods, such as wired power supply and battery power supply, can no longer meet the needs of deployment and application of such devices. In this case, passive IoT has emerged. Passive IoT means that IoT devices do not require external power or batteries. They obtain energy from the environment, such as heat energy, electrical energy, kinetic energy, etc., and convert it into electrical energy input for IoT devices to drive the work of sensors, chips and communication modules inside the devices.
[0003] In the passive IoT scenario, due to the lack of stable power supply, it has energy oscillation, that is, the energy comes from the environment, and the electric energy obtained from the environment is in a dynamic state of high and low; node imbalance, that is, the energy distribution in the environment is uneven, so the energy distribution in the entire network may not be balanced, which will also lead to differences in each node, causing randomness and instability in the energy acquisition of the device; energy limitation, that is, according to the different ways in which the passive IoT obtains energy, the collected environmental energy is very weak, generally in the nanowatt to microwatt level, and is affected by the node's power storage capacity. In this case, how to dynamically adjust the power of the passive IoT device according to the actual state of the passive IoT device, and then reduce the overall power consumption of the device without affecting the operation of the passive IoT device, has become a problem that needs to be solved. Summary of the invention
[0004] In view of one or more of the above problems, the present application provides a method, apparatus, device and storage medium for optimizing power of an IoT device, which can reduce the power consumption of the IoT device.
[0005] In a first aspect, an embodiment of the present application provides a method for optimizing power of an IoT device, including:
[0006] Obtain the target power of each IoT device corresponding to each particle, as well as the last group optimal result of each particle; where a particle is the potential feasible power of the IoT device;
[0007] Determine whether each target power corresponding to each particle meets the operation requirement information of the corresponding Internet of Things device, and obtain a determination result;
[0008] According to the judgment results, the target power of each IoT device corresponding to each particle is adjusted to obtain the individual optimal result and the group optimal result. The individual optimal result is the current optimal target power of each particle, and the group optimal result is the current optimal target power of all particles.
[0009] Update the target power of each particle based on the preset particle swarm algorithm parameters, individual optimal results and group optimal results;
[0010] When the group optimal result is consistent with a preset number of historical group optimal results, the power of each IoT device is adjusted according to the group optimal result.
[0011] In some possible implementations, determining whether each target power corresponding to each particle meets the operation requirement information of the corresponding IoT device includes:
[0012] Obtain the operational power threshold and inoperable power threshold of each IoT device;
[0013] When the target power is greater than or equal to an operable power threshold of the corresponding IoT device, determining that the target power satisfies the operation requirement information of the corresponding IoT device;
[0014] When the target power is less than or equal to the inoperable power threshold of the corresponding Internet of Things device, it is determined that the target power does not meet the operation requirement information of the corresponding Internet of Things device.
[0015] The above-mentioned implementation mode of the present application determines the target power based on the set operable power threshold and the inoperable power threshold, and the result can be obtained quickly by directly comparing the numerical values, which can speed up the processing speed.
[0016] In some possible implementations, determining whether each target power corresponding to each particle meets the operation requirement information of the corresponding IoT device includes:
[0017] When the target power is less than an operable power threshold of the corresponding IoT device and greater than an inoperable power threshold of the corresponding IoT device, a connection request is sent to the corresponding IoT device;
[0018] When receiving a response message corresponding to the connection request, determining that the target power satisfies the operation requirement information of the corresponding IoT device;
[0019] When no reply information corresponding to the connection request is received and a preset time has passed, it is determined that the target power does not meet the operation requirement information of the corresponding Internet of Things device.
[0020] In the above-mentioned implementation mode of the present application, when the target power is less than the operable power threshold of the corresponding IoT device and greater than the inoperable power threshold of the corresponding IoT device, that is, when it is impossible to make a direct judgment, a connection request is sent to the IoT device to judge whether the target power meets the operating requirements of the corresponding IoT device, and an accurate judgment can be made.
[0021] In some possible implementations, when receiving the reply information corresponding to the connection request, after determining that the target power meets the operation requirement information of the corresponding IoT device, the method further includes:
[0022] The target power is set as the operational power threshold;
[0023] When no reply information corresponding to the connection request is received and the preset time has passed, after determining that the target power does not meet the operation requirements of the corresponding IoT device, the method further includes:
[0024] Set the target power to the inoperable power threshold.
[0025] The above-mentioned implementation mode of the present application changes the operable power threshold and the inoperable power threshold according to different judgment results after sending a connection request to the IoT device for judgment, thereby reducing the need to send a connection request for judgment, which can speed up the subsequent processing process.
[0026] In some possible implementations, the target power of each IoT device corresponding to each particle is adjusted according to the judgment result, including:
[0027] When the target power does not meet the operation requirements of the corresponding IoT device, the target power is adjusted to an operational power threshold.
[0028] The above-mentioned implementation mode of the present application adjusts the target power to an operational power threshold when it is determined that the target power does not meet the operation requirements of the corresponding IoT device, thereby ensuring the normal operation of the IoT device.
[0029] In some possible implementations, after adjusting the target power of each IoT device corresponding to each particle according to the determination result, the method further includes:
[0030] When the target power is greater than the preset maximum power, the target power is adjusted to an operational power threshold;
[0031] When the target power is less than the preset minimum power, the target power is adjusted to an operational power threshold.
[0032] The above-mentioned implementation mode of the present application determines the target power according to the maximum power and minimum power supported by the network device itself. When the target power exceeds the interval defined by the maximum power and the minimum power, the power is directly changed to the operational power threshold to ensure that the corresponding IoT device can operate normally.
[0033] In some possible implementations, the target power of each particle is updated based on preset particle swarm algorithm parameters, individual optimal results, and group optimal results, including:
[0034] The offset of each particle is obtained according to the preset particle swarm algorithm parameters, the individual optimal result and the group optimal result;
[0035] Add the offset of each particle to the corresponding target power to obtain the current target power of each particle;
[0036] Based on the current target power, the target power of each IoT device corresponding to each particle is updated.
[0037] The above-mentioned implementation mode of the present application can obtain the optimal result of the power of the Internet of Things device in continuous iteration by updating each particle.
[0038] In a second aspect, an embodiment of the present application provides a device for optimizing power of an IoT device, the device comprising:
[0039] The acquisition module is used to obtain the target power of each IoT device corresponding to each particle and the last group optimal result of each particle; wherein the particle is the potential feasible power of the IoT device;
[0040] A judgment module is used to judge whether each target power corresponding to each particle meets the operation requirement information of the corresponding Internet of Things device, and obtain a judgment result;
[0041] A processing module is used to adjust the target power of each IoT device corresponding to each particle according to the judgment result, and obtain an individual optimal result and a group optimal result. The individual optimal result is the current optimal target power of each particle, and the group optimal result is the current optimal target power of all particles.
[0042] An updating module is used to update the target power of each particle based on preset particle swarm algorithm parameters, individual optimal results and group optimal results;
[0043] The adjustment module is used to adjust the power of each IoT device according to the group optimal result when the group optimal result is consistent with a preset number of historical group optimal results.
[0044] In a third aspect, an embodiment of the present application provides a device for power optimization of an Internet of Things device, the device comprising: a processor, and a memory storing computer program instructions; the processor reads and executes the computer program instructions to implement the method for power optimization of an Internet of Things device as shown above.
[0045] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the method for power optimization of an Internet of Things device as shown above is implemented.
[0046] The above implementation method transforms the power adjustment problem of IoT devices actually working in a passive IoT environment into the problem of finding the optimal solution through a particle swarm algorithm while meeting the operational requirements of IoT devices. By setting each particle in the particle swarm algorithm as the potential feasible power of IoT devices, and by judging whether the power corresponding to the particle meets the operational requirement information of the corresponding IoT device, the particles are adjusted to ensure that the obtained power is feasible. Then, the individual optimal results and the group optimal results are obtained from each particle to update each particle to approach the optimal solution. When the final group optimal result of continuous iteration is consistent with the preset number of historical group optimal results, it can be judged that the optimal solution has been obtained, and then the power optimization of IoT devices is carried out through this optimal solution to dynamically optimize and adjust the power of IoT devices. Thereby, the overall power consumption of the device is reduced without affecting the operation of the passive IoT device. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] The present application can be better understood from the following description of the specific embodiments of the present application in conjunction with the accompanying drawings, in which:
[0048] Other features, objects and advantages of the present application will become more apparent by reading the following detailed description of non-limiting embodiments with reference to the accompanying drawings, in which the same or similar reference numerals represent the same or similar features.
[0049] Figure 1 It is an overall schematic diagram of a system to which the present application scheme is applied;
[0050] Figure 2 It is a flowchart of a method for optimizing power of an Internet of Things device provided by an embodiment of the present application;
[0051] Figure 3 It is a flowchart of another method for optimizing power of an IoT device provided in an embodiment of the present application;
[0052] Figure 4 It is a schematic diagram of the particle swarm algorithm processing flow used in the embodiment of the present application;
[0053] Figure 5It is a schematic diagram of the iterative process of the simulation experiment performed by the method of the present application;
[0054] Figure 6 It is a comparison chart of the optimization results and the optimal results of the simulation experiment conducted by the present application method;
[0055] Figure 7 This is a comparison chart of the number of communications in the simulation experiment of the present application method and the number of communications in other schemes;
[0056] Figure 8 It is a structural schematic diagram of an apparatus for optimizing power of an Internet of Things device provided by an embodiment of the present application;
[0057] Fig. 9 It is a schematic diagram of the hardware structure of the device for power optimization of the Internet of Things device provided in the embodiment of the present application. DETAILED DESCRIPTION
[0058] The features and exemplary embodiments of various aspects of the application will be described in detail below. In the detailed description below, many specific details are proposed to provide a comprehensive understanding of the application. However, it is obvious to those skilled in the art that the application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the application by illustrating the example of the application. The application is by no means limited to any specific configuration and algorithm proposed below, but covers any modification, replacement and improvement of elements, parts and algorithms without departing from the spirit of the application. In the accompanying drawings and the following description, known structures and technologies are not shown to avoid causing unnecessary ambiguity to the application.
[0059] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0060] Packet Internet Groper (ping): An Internet packet explorer, a program used to test network connectivity. It mainly sends request messages to a specific destination host to test whether the destination is reachable and understand its status.
[0061] Narrow Band Internet of Things (NB-IoT): is an emerging technology based on cellular narrowband Internet of Things, which supports cellular data connection of low-power devices in wide area networks.
[0062] With the in-depth application of the Internet of Things in multiple industries, the deployment of IoT devices in certain special scenarios is restricted by the environment, energy consumption, cost and environmental protection. Traditional power supply methods, such as wired power supply and battery power supply, can no longer meet the needs of deployment and application of such devices. In this case, passive IoT has emerged. Passive IoT means that IoT devices do not require external power or batteries. By obtaining energy from the environment, such as thermal energy, electrical energy, kinetic energy, etc., it is converted into electrical energy input for IoT devices to drive the work of sensors, chips and communication modules inside the device. Passive IoT is an important direction for the recent development of IoT technology, and it is also an important area of research and development for IoT companies and groups in the near future.
[0063] Depending on the type, specific function and model of IoT devices, the power and main energy consumption of IoT devices are also different. As the core component of IoT device application communication, the power consumption of the communication module has always been the focus of product design and application development. It is understandable that the power consumption of the communication module is directly linked to the current transmission power of the communication module. Generally speaking, the greater the transmission power of the communication module, the greater the power consumption. In passive IoT devices, the power required to realize the corresponding functions of IoT devices is basically a fixed value, so the power optimization can be performed for the transmission power of passive IoT devices. In the passive IoT scenario, due to the lack of stable power supply, it has energy oscillation, that is, the energy comes from the environment, and the electric energy obtained from the environment is in a dynamic state of high and low; node imbalance, that is, the energy distribution in the environment is uneven, so the energy distribution in the entire network may not be balanced, which will also lead to differences in each node, resulting in randomness and instability in the energy acquisition of the device; energy limitation, that is, according to the different ways of obtaining energy in the passive IoT, the collected environmental energy is very weak, generally in the nanowatt to microwatt level, and is affected by the node storage capacity. In this case, how to dynamically adjust the power of passive IoT devices according to their actual status, and thus reduce the overall power consumption of the devices without affecting their operation, has become a problem that needs to be solved.
[0064] The inventor has studied the above problem and found that the transmission power adjustment problem of the communication module in the passive Internet of Things environment can be transformed into the problem of seeking the optimal solution. In the actual Internet of Things system, generally a base station is used to handle the communication tasks of multiple Internet of Things devices within its coverage area. Therefore, the optimal power consumption can be calculated by a base station without power consumption restrictions. In this way, it is necessary to apply to the passive Internet of Things scenario, and a method for dynamically optimizing and adjusting the transmission power of batch communication modules within a certain geographical range according to the actual state. The particle swarm algorithm is relatively suitable for such tasks. The particle swarm algorithm can be used to solve the minimum transmission power expectation value required by the communication module under normal communication conditions, and the communication module transmission power can be dynamically optimized and adjusted before the next communication, so as to reduce the overall power consumption of the terminal equipment, improve energy utilization and communication success rate.
[0065] You can refer to Figure 1 , Figure 1 Various passive IoT device terminals that this application is aimed at are shown, such as smart street lights, smoke alarms, smart water meters, and anti-counterfeiting trackers. These device terminals can harvest energy using methods such as light energy harvesting, temperature conversion energy harvesting, oscillation energy harvesting, and radio frequency energy harvesting according to the different environments in which they are located, and convert them into electrical energy to power the terminal devices.
[0066] Since the power changes of most passive IoT devices are mainly due to changes in communication power, different passive IoT devices can be abstracted into communication modules, including NB-IoT communication modules, 4G communication modules, and 5G communication modules. As the key communication unit of the terminal device, the communication module realizes the data transmission function by accessing the cellular network. The power of the communication module directly affects its power consumption and is also one of the main power consumption of the terminal device.
[0067] For the device or system executing the present application, it may include a measurement module, a calculation module, a storage module and an adjustment module. Among them, the measurement module can measure the current transmission power of the communication module at any time; the calculation module can quickly and accurately calculate the relevant algorithms set by the present invention; the storage module is used to store relevant data in the system, including the transmission power of the communication module, the temporary value calculated by the algorithm, the optimal solution and other data; the adjustment module is used to dynamically adjust the transmission power of the communication module.
[0068] Specifically, the method embodiment of the power optimization of the IoT device of the present application can be referred to Figure 2 The method is applied to a system or device with processing functions, such as a base station to which an IoT device is connected. In the present embodiment, the method includes the following steps S101 to S103.
[0069] Step S101: Obtain the target power of each IoT device corresponding to each particle and the last group optimal result of each particle; wherein the particle is the potential feasible power of the IoT device.
[0070] The above-mentioned particle can be a kind of data in the particle swarm algorithm, which can be regarded as a representative of a potential solution for searching for the optimal solution, or can be understood as a point in the unknown solution space.
[0071] The target power may be the power that is expected to be regulated for the IoT device.
[0072] The optimal result of the group can be the optimal result among each particle calculated by the particle swarm algorithm.
[0073] In the specific implementation, each particle represents the specific power value of each IoT device. For each particle, its corresponding target power is obtained. During the iteration process of the particle swarm optimization algorithm, it is necessary to record the current position and speed of the particle, as well as the historical optimal position and optimal speed of the entire particle swarm. The current position and speed of each particle are compared with the historical optimal position and optimal speed respectively. If the current position is better, the historical optimal position and optimal speed are updated. In this way, the optimal result of the group is determined.
[0074] Step S102: Determine whether each target power corresponding to each particle meets the operation requirement information of the corresponding Internet of Things device, and obtain a determination result.
[0075] The operational requirement information may be the specific power requirements of the IoT device.
[0076] In the specific implementation, the rated power of the IoT device is collected in advance, and then the target power of each particle is compared with the operation requirements of the IoT device. Specifically, a threshold or range can be set to limit the difference between the target power and the device requirements to a certain range. If the target power meets the requirements of the device, it is determined to be met; otherwise, it is determined to be unsatisfactory.
[0077] Step S103: According to the judgment result, the target power of each IoT device corresponding to each particle is adjusted to obtain an individual optimal result and a group optimal result. The individual optimal result is the current optimal target power of each particle, and the group optimal result is the current optimal target power of all particles.
[0078] The individual optimal result can be the optimal result obtained by each particle during the iteration process.
[0079] In the specific implementation, according to the previous judgment results, if the target power of a particle does not meet the operation requirements of the device, it can be adjusted. The adjustment method can be determined according to the specific application scenario and requirements. For example, it can be increased or decreased by a certain proportion, or adjusted accordingly according to the performance curve of the device. After the adjustment, the new target power is assigned to the target power attribute of the corresponding particle. For each particle, its individual optimal result can be calculated based on its historical optimal position. Then all individual optimal results are compared to obtain the group optimal result.
[0080] Step S104: updating the target power of each particle based on the preset particle swarm algorithm parameters, the individual optimal result and the group optimal result.
[0081] The preset particle swarm algorithm parameters can be calculation parameters that need to be manually set in the particle swarm algorithm, such as speed weight parameters, individual learning factors, and social learning factors.
[0082] In the specific implementation, according to the preset particle swarm algorithm parameters, such as the speed and position update formula, the individual optimal result and the group optimal result and the speed of each particle can be used to update the particle position. After the position is updated, the target power can be determined according to the position corresponding to the particle.
[0083] Step S105: When the group optimal result is consistent with a preset number of historical group optimal results, the power of each IoT device is adjusted according to the group optimal result.
[0084] In the specific implementation, it is first necessary to check whether the group optimal result is consistent with the preset number of historical group optimal results. This can be achieved by comparing the current group optimal result with the group optimal result in the historical record. If they are consistent, proceed to the next step; otherwise, iterative optimization can be continued. In the case of consistency, it means that the power corresponding to the current particle is already in the optimal state in this calculation process, and then the power of each IoT device can be adjusted according to the group optimal result.
[0085] The above implementation method transforms the power adjustment problem of IoT devices actually working in a passive IoT environment into a problem of finding the optimal solution through a particle swarm algorithm while meeting the operational requirements of IoT devices. By adding the requirement for the normal operation of IoT devices to the iterative calculation process of the particle swarm algorithm, the minimum power expectation value required by IoT devices under normal working conditions can be obtained through the particle swarm algorithm, and the power of IoT devices can be dynamically optimized and adjusted. In this way, the overall power consumption of the device can be reduced without affecting the operation of the passive IoT device.
[0086] In some implementations, determining whether each target power corresponding to each particle satisfies the operation requirement information of the corresponding IoT device includes:
[0087] Obtain the operational power threshold and inoperable power threshold of each IoT device.
[0088] The operable power threshold may be a threshold for determining whether the IoT device can operate, that is, when the power is greater than or equal to this threshold, the operating requirements of the IoT device can be met.
[0089] The inoperable power threshold may be a threshold for determining that the IoT device cannot operate, that is, the IoT device cannot operate when the power is less than or equal to the threshold.
[0090] In a specific implementation, the operational power threshold and the inoperable power threshold can be determined by actually testing the device. The power input of the device can be gradually adjusted to observe the operation of the device at different power levels, and the power thresholds for normal operation and abnormality can be recorded. The average power consumption of the device during normal operation and the abnormal power consumption when a fault occurs can also be analyzed to determine the operational power threshold and the inoperable power threshold.
[0091] When the target power is greater than or equal to an operable power threshold of the corresponding IoT device, it is determined that the target power meets the operation requirement information of the corresponding IoT device.
[0092] In the specific implementation, the target power needs to be compared with the operable power threshold of the corresponding IoT device. After determining that the target power is greater than or equal to the operable power threshold, it means that the target power meets the operation requirement information of the corresponding IoT device.
[0093] When the target power is less than or equal to the inoperable power threshold of the corresponding Internet of Things device, it is determined that the target power does not meet the operation requirement information of the corresponding Internet of Things device.
[0094] In the specific implementation, the target power needs to be compared with the operational power threshold of the corresponding IoT device. After determining that the target power is less than or equal to the operational power threshold, it means that the target power does not meet the operational requirement information of the corresponding IoT device.
[0095] The above-mentioned implementation mode of the present application determines the target power based on the set operable power threshold and the inoperable power threshold, and the result can be obtained quickly by directly comparing the numerical values, which can speed up the processing speed.
[0096] In some implementations, determining whether each target power corresponding to each particle satisfies the operation requirement information of the corresponding IoT device includes:
[0097] When the target power is less than an operable power threshold of the corresponding IoT device and greater than an inoperable power threshold of the corresponding IoT device, a connection request is sent to the IoT device.
[0098] The connection request may be a request from the base station to the IoT device to connect in order to determine the status of the IoT device.
[0099] In a specific implementation, the comparison result of the target power with the operational power threshold and the inoperable power threshold is checked. Once it is determined that the target power is between the operational power threshold and the inoperable power threshold of the device, a connection request message needs to be created. The message may include information required to establish a connection with the IoT device, such as an identifier of the device. After sending the connection request message, wait for a response from the IoT device.
[0100] When the response information corresponding to the connection request is received, it is determined that the target power meets the operation requirement information of the corresponding Internet of Things device.
[0101] In a specific implementation, once a reply to the sent connection request is received, it means that the power at this time meets the communication power requirement of the IoT device, and it can be determined that the target power meets the operation requirement information of the corresponding IoT device.
[0102] When no reply information corresponding to the connection request is received and a preset time has passed, it is determined that the target power does not meet the operation requirement information of the corresponding Internet of Things device.
[0103] In a specific implementation, if no reply message is received after the preset time, it is likely that the communication power of the IoT device does not meet the requirement and communication is impossible. It can be determined that the target power does not meet the operating requirement information of the corresponding IoT device.
[0104] In the above-mentioned implementation mode of the present application, when the target power is less than the operable power threshold of the corresponding IoT device and greater than the inoperable power threshold of the corresponding IoT device, that is, when it is impossible to make a direct judgment, a connection request is sent to the IoT device to judge whether the target power meets the operating requirements of the corresponding IoT device, and an accurate judgment can be made.
[0105] In some embodiments, after receiving the reply information corresponding to the connection request and determining that the target power meets the operation requirement information of the corresponding IoT device, the method further includes:
[0106] Set the target power to the operational power threshold.
[0107] In a specific implementation, after determining that the target power meets the operational requirements of the corresponding IoT device, this target power is smaller than the previous target power and can meet the operational requirements of the IoT device, so this target power can be used as a new operational power threshold.
[0108] When no reply information corresponding to the connection request is received and the preset time has passed, after determining that the target power does not meet the operation requirements of the corresponding IoT device, the method further includes:
[0109] Set the target power to the inoperable power threshold.
[0110] In a specific implementation, after determining that the target power does not meet the operation requirements of the corresponding IoT device, this target power is larger than the previous target power, but cannot meet the operation requirements of the IoT device, so this target power can be used as a new inoperable power threshold.
[0111] The above-mentioned implementation mode of the present application changes the operable power threshold and the inoperable power threshold according to different judgment results after sending a connection request to the IoT device for judgment, thereby reducing the need to send a connection request for judgment, which can speed up the subsequent processing process.
[0112] In some implementations, adjusting the target power of each IoT device corresponding to each particle according to the determination result includes:
[0113] When the target power does not meet the operation requirements of the corresponding IoT device, the target power is adjusted to an operational power threshold.
[0114] Specifically, if the target power does not meet the operating requirements of the device, the target power needs to be adjusted to the operational power threshold. This step can be achieved by modifying the target power attribute of the corresponding particle.
[0115] The above-mentioned implementation mode of the present application adjusts the target power to the operational power threshold when it is determined that the target power does not meet the operating requirements of the corresponding IoT device, thereby ensuring the normal operation of the IoT device and avoiding problems with the algorithm results.
[0116] In some implementations, after adjusting the target power of each IoT device corresponding to each particle according to the determination result, the method further includes:
[0117] When the target power is greater than the preset maximum power, the target power is adjusted to an operational power threshold.
[0118] It is understandable that, generally speaking, IoT devices are limited by hardware devices and the power they can achieve is limited to a certain extent. The preset maximum power can be the maximum power that the IoT device can achieve.
[0119] In the specific implementation, if the target power is greater than the preset maximum power, the target power needs to be adjusted to the operational power threshold. This step can be achieved by modifying the target power attribute of the corresponding particle.
[0120] When the target power is less than the preset minimum power, the target power is adjusted to an operational power threshold.
[0121] The preset minimum power may be the minimum power that the IoT device can achieve.
[0122] In a specific implementation, if the target power is less than the preset maximum power, the target power needs to be adjusted to the operational power threshold. This step can be achieved by modifying the target power attribute of the corresponding particle.
[0123] The above-mentioned implementation mode of the present application determines the target power according to the maximum power and minimum power supported by the network device itself. When the target power exceeds the interval defined by the maximum power and the minimum power, the power is directly changed to the operational power threshold to ensure that the corresponding IoT device can operate normally.
[0124] In some embodiments, reference Figure 3 , based on the preset particle swarm algorithm parameters, the individual optimal result and the group optimal result, the target power of each particle is updated, including the following steps S201 to S203:
[0125] Step S201: Obtain the offset of each particle according to preset particle swarm algorithm parameters, individual optimal results and group optimal results.
[0126] The particle offset can be the updated position movement of each particle in the particle swarm algorithm.
[0127] In the specific implementation, for each particle, compare its current position with the historical optimal position (i.e., the individual optimal result). If the current position is better than the historical optimal position, update the individual optimal result. In the entire particle group, compare the individual optimal results of all particles to find the optimal particle (i.e., the group optimal result). Based on the individual optimal result and the group optimal result, calculate the offset of this particle through preset parameters.
[0128] Step S202: Add the offset of each particle to the corresponding target power to obtain the current target power of each particle.
[0129] In the specific implementation, since each particle represents the power of the IoT device, after obtaining the offset of each particle from the particle swarm algorithm, the offset of each particle is added to the corresponding target power to obtain the current target power of each particle.
[0130] Step S203: based on the current target power, update the target power of each IoT device corresponding to each particle.
[0131] In a specific implementation, after obtaining the current target power, it may also involve changing the current target power, such as when the current target power is greater than the preset maximum power. After determining the current target power, the particles in the particle swarm algorithm are updated by the current target power.
[0132] The above-mentioned implementation mode of the present application can obtain the optimal result of the power of the Internet of Things device in continuous iteration by updating each particle.
[0133] Furthermore, in some embodiments, passive IoT devices include smart street lights, smoke alarms, smart water meters, and anti-counterfeiting trackers, which harvest light energy, temperature conversion energy, oscillation energy, or radio frequency energy through energy harvesting modules or related hardware circuit designs, and are used to power passive IoT devices and drive communication modules and other components.
[0134] Communication modules include NB-IoT communication modules, 4G communication modules, and 5G communication modules. As the communication unit of passive IoT devices, they realize data transmission by accessing the cellular network. The power of the communication module directly affects its power consumption and is also one of the main power consumption of passive IoT devices.
[0135] The device for executing this solution may include a measurement module, a calculation module, a storage module and an adjustment module. Among them, the measurement module can measure the current transmission power of the communication module at any time; the calculation module can quickly and accurately calculate the relevant algorithms; the storage module is used to store relevant data in the system, including the transmission power of the communication module, the calculated temporary value and the optimal solution; the adjustment module is used to dynamically adjust the transmission power of the communication module.
[0136] Considering that the same base station generally covers 500 meters, this embodiment takes a passive Internet of Things scenario with a radius of 500 meters as an example. The batch communication module is composed of NB-IoT, 4G or 5G communication modules built into terminal devices such as smart street lights, smoke alarms, smart water meters, and location trackers in the passive Internet of Things scenario. Usually, the transmission power of NB-IoT and 4G communication modules is -40dBm~23dBm, and the transmission power of 5G communication modules is -40dBm~26dBm. The base station measures and records the current transmission power combination P of the batch communication modules within the coverage area of the base station = (p1,...pi ,...p m ), where p i Represents the current transmission power of the i-th communication module within the set range, and m represents the number of communication modules. The above current transmission power can be the transmission power value corresponding to the communication module in communication, or the transmission power value when the module is in standby state, etc. Generally speaking, the greater the transmission power of the communication module, the greater the power consumption.
[0137] After obtaining these data, the particle swarm algorithm is used to calculate the optimal power combination. First, various calculation parameters of the particle swarm algorithm are preset, such as the number of particle swarms N, the number of iterations t max etc. and store them in the storage module. The process of particle swarm algorithm can be referred to Figure 4 The symbols and corresponding descriptions involved in the particle swarm algorithm are shown in Table 1:
[0138] Table 1
[0139]
[0140]
[0141] In this embodiment, the set F is used to represent the feasible target value combination of the transmission power to be obtained by the m communication modules, that is, F = (f1, ...f i ,...f m ). The transmission power combinations of m communication modules constitute the particles in the particle swarm algorithm, and all the transmission power combinations of multiple iterations of the jth particle are F(j)=(f1(j),...f i (j),...f m (j)).
[0142] The calculation parameters related to the particle swarm algorithm will be initialized in advance, which involves the number of parameter particles N and the maximum number of iterations t max , two acceleration constants C1, C2 and inertia factor W, where the acceleration constant and inertia factor are mainly used for calculation in the particle update phase and to limit the maximum velocity V of the particle max and the allowable error e of the control convergence condition. Among them, N can be set arbitrarily, for example, [20,40], which means that the minimum input is 20 particles and the maximum input is 40 particles to form a particle swarm; t max It can be set to 100, which means the maximum number of iterations is 100 times. It can be changed according to the actual situation. The inertia factor W can be set to 0.6. The maximum speed V max It can be set to 2; the allowable error e can be set to 0.01.
[0143] At the beginning of the particle swarm algorithm, N particles are initially generated, and each particle will be iterated k times (k≤t max ) to obtain the optimal transmission power target value combination. In order to distinguish particles of different k iterations, F k (j) represents the emission power combination of the jth particle after k iterations, that is, In this embodiment, the k marked in the upper left corner represents the kth iteration, and F k represents the emission power combination of N particles after k iterations, where F k (j)∈F k ∈F(j)∈F.
[0144] Considering the characteristics of passive IoT such as energy oscillation, node imbalance, and energy limitation, the services are still dominated by low-power and small data devices, so NB-IoT and 4G communication modules are dominant. i The transmit power interval range is [-40dBm, 23dBm], that is, the minimum transmit power is not less than -40dBm, and the input maximum transmit power is not greater than 23dBm.
[0145] In addition to constraining the communication module transmission power to [-40dBm, 23dBm], the communication module is also required to be able to communicate data normally. In this embodiment, a function Check() is constructed to determine whether the terminal device is communicating. The function input parameter is f i If Check(f i ) returns a value of 1, indicating that communication module i can communicate normally. i ) returns a value of 0, indicating that the communication module i cannot communicate normally. Check() mainly checks the communication status through the ping packet. Because the ping packet consumes a certain amount of time, a table Q is constructed in the embodiment to store the transmission power and corresponding communication status of the communication module i when executing the ping packet. Table Q can be used with key-value pairs (i, vma i ,vmi i ), where i represents the i-th communication module, vma i Indicates the power threshold corresponding to the normal communication of the i-th communication module. Normal data communication is possible when the threshold is exceeded; vmi i Indicates the power threshold corresponding to the inability of the i-th communication module to communicate. If the power is lower than the threshold, normal data communication is impossible. By constructing table Q, the number of ping packets can be greatly reduced, allowing the algorithm to converge as quickly as possible.
[0146] Set the feasible target value of the transmission frequency of communication module i to f i , if f i ≥vma i, it means that the communication can be normal data communication; if f i ≤vmi i , indicating that the communication module must not be able to communicate normally; if vmi i <f i <vma i , then it is necessary to execute the ping packet operation. In this embodiment, if the ping packet reply time exceeds 1000ms, it is set to return 0; otherwise, it is set to return 1. Of course, this time can be set as needed according to the actual situation. If the ping packet return value is 0, then update the (i, vma i ,vmi i ) i i, vmi i =f i ; If the return value is 1, update vma i , vma i =f i In addition, you can initialize vmi i -40dBm, vma i is 23dBm. Because the method requires iterative max times, so vmi i and vma i They are constantly being optimized and iterated.
[0147] For each particle in the particle swarm algorithm, it is necessary to determine whether the power value satisfies the above conditions. If it does not meet the conditions, the corresponding f i Adjust to vma i This ensures that the f of the N particles in the next stage parameters is i All meet the power requirements.
[0148] This embodiment transforms the power adjustment problem of the communication module actually working in the passive Internet of Things environment into an optimal solution problem, and obtains the minimum power expectation value required by the communication module under normal communication conditions through the particle swarm algorithm. Therefore, the optimization target constructed in this application is shown in the following formula:
[0149]
[0150] Among them, f i is the feasible target value of the transmission power of the ith communication module, and its interval range is [-40dBm, 23dBm]. The transmission power of each communication module is minimized, which is equivalent to minimizing the sum of the transmission powers of batch communication modules, and is also equivalent to optimizing the power combination of all communication modules F = (f1,...f i ,...f m ) problem and find the optimal feasible solution.
[0151] According to the optimization goal, individual optimal and group optimal updates can be performed. Individual optimal refers to the optimal solution of the particle itself during the iteration process; group optimal refers to the optimal solution of N particles during the iteration process. The individual optimal and group optimal at the kth iteration are respectively expressed as Pbest k (j), Gbest k Indicates. Where Pbest k (j) reflects the individual learning goal, that is, the local part; while Gbest k It reflects the social learning goals, which is the global part.
[0152] Specifically, in this embodiment, Pbest k (j) The calculation method is as follows:
[0153]
[0154] Gbest k The calculation method is as follows:
[0155]
[0156] After calculating the individual optimal and group optimal values, the calculation module updates the particles based on the previously set parameters. It mainly updates the feasible target value combination F and iteration speed V of the transmission power of the m communication modules. The speed V of the jth particle in the i-th dimension (corresponding to the i-th communication module) at the kth time is i k+1 (j) The update in round k+1 is as follows:
[0157]
[0158] Among them, W is the inertia coefficient, which inherits the k-times iteration speed V i k (j) The weight of the second. Secondly, C1, C2 and two random numbers r1 in the interval [0, 1] k , Multiplication shows the trend towards Pbes k t(j) and Gbest k In particular, for V i k (j)>V max In this case, set V i k (j) = V max .
[0159] Then, the feasible target value update of the transmission power of the jth particle in the k+1th i-th dimension (corresponding to the i-th communication module) can be calculated. The specific update formula is as follows:
[0160] f i k+1 (j) = f i k (j)+V i k+1 (j)
[0161] After the i-th communication module in the j-th particle is updated k+1 times, the particle becomes the new population of k+1 times. The target value combination of the particle's transmission power gradually approaches the optimal value, that is, the ideal minimum power. The optimal solution of the above formula is solved in the continuous particle update, and finally the ideal value combination of the minimum power of the next communication of the batch communication module within the set range is output.
[0162] Ultimately, the adjustment module dynamically adjusts and optimizes the communication module when the communication module is in idle, standby, or dormant state, or when it is powered on and initialized the next time, so as to reduce the overall power consumption of the terminal device and improve energy utilization and communication success rate.
[0163] A simulation experiment was conducted on this solution. The experiment randomly set 20 values in the range of [-40dBm, 23dBm]. These 20 values actually correspond to the true optimal transmission power of 20 devices. The experiment adopted the solution of this application to obtain the optimal transmission power. Figure 5 This is a diagram of the solution convergence, which shows the relationship between the number of iterations and the objective function. After 14 iterations, the value of the objective function basically does not change, indicating that the function has converged. The convergence results are as follows: Figure 6 , the hollow circle represents the optimized calculated value, and the five-pointed star represents the true value. Obviously, the calculated value is close to the true value. Figure 7 This is a comparison of the number of ping packets. Obviously, compared with the traversal from small to large or from large to small, this solution has fewer ping packets and is more efficient. The experimental results prove that the scheme is feasible and can achieve dynamic optimization and adjustment of the transmission power of batch communication modules.
[0164] This embodiment calculates the expected minimum transmission power required by the communication module under normal communication conditions by setting two constraints, constructing optimization goals, determining constraints, calculating target values, updating individuals and groups optimally, updating particles, and determining convergence, and performs dynamic optimization and adjustment before the next communication. This can effectively solve the problem of excessive overall power consumption of terminal devices due to excessive transmission power of the communication module in actual applications. In particular, it can greatly improve energy utilization in view of the energy oscillation, node imbalance, and energy limitation of passive IoT.
[0165] Based on the method for optimizing power of IoT devices provided in the above embodiments, the present application also provides a specific implementation of an apparatus for optimizing power of IoT devices. Please refer to the following embodiments.
[0166] See first Figure 8 The device 700 for optimizing power of an IoT device provided in an embodiment of the present application includes the following modules:
[0167] The acquisition module 701 is used to obtain the target power of each IoT device corresponding to each particle and the last group optimal result of each particle; wherein the particle is the potential feasible power of the IoT device.
[0168] The judgment module 702 is used to judge whether each target power corresponding to each particle meets the operation requirement information of the corresponding Internet of Things device, and obtain a judgment result.
[0169] The processing module 703 is used to adjust the target power of each IoT device corresponding to each particle according to the judgment result, and obtain an individual optimal result and a group optimal result. The individual optimal result is the current optimal target power of each particle, and the group optimal result is the current optimal target power of all particles.
[0170] The updating module 704 is used to update the target power of each particle based on the preset particle swarm algorithm parameters, the individual optimal result and the group optimal result.
[0171] The adjustment module 705 is used to adjust the power of each IoT device according to the group optimal result when the group optimal result is consistent with a preset number of historical group optimal results.
[0172] The above implementation method transforms the power adjustment problem of IoT devices actually working in a passive IoT environment into a problem of finding the optimal solution through a particle swarm algorithm while meeting the operational requirements of IoT devices. By adding the requirement for the normal operation of IoT devices to the iterative calculation process of the particle swarm algorithm, the minimum power expectation value required by IoT devices under normal working conditions can be obtained through the particle swarm algorithm, and the power of IoT devices can be dynamically optimized and adjusted. In this way, the overall power consumption of the device can be reduced without affecting the operation of the passive IoT device.
[0173] As an implementation of the present application, the acquisition module 701 is also used to obtain the operable power threshold and the inoperable power threshold of each IoT device.
[0174] The processing module 703 is further configured to determine whether the target power satisfies the operation requirement information of the corresponding Internet of Things device when the target power is greater than or equal to the operable power threshold of the corresponding Internet of Things device.
[0175] The processing module 703 is further configured to determine that the target power does not meet the operation requirement information of the corresponding Internet of Things device when the target power is less than or equal to the inoperable power threshold of the corresponding Internet of Things device.
[0176] The above-mentioned implementation mode of the present application determines the target power based on the set operable power threshold and the inoperable power threshold, and the result can be obtained quickly by directly comparing the numerical values, which can speed up the processing speed.
[0177] As an implementation of the present application, the apparatus 700 for optimizing power of an IoT device may further include a sending module.
[0178] The sending module is used to send a connection request to the corresponding Internet of Things device when the target power is less than the operable power threshold of the corresponding Internet of Things device and greater than the inoperable power threshold of the corresponding Internet of Things device.
[0179] The processing module 703 is further configured to determine whether the target power satisfies the operation requirement information of the corresponding IoT device when receiving the reply information corresponding to the connection request.
[0180] The processing module 703 is further configured to determine that the target power does not meet the operation requirement information of the corresponding IoT device when no reply information corresponding to the connection request is received and the preset time has passed.
[0181] In the above-mentioned implementation mode of the present application, when the target power is less than the operable power threshold of the corresponding IoT device and greater than the inoperable power threshold of the corresponding IoT device, that is, when it is impossible to make a direct judgment, a connection request is sent to the IoT device to judge whether the target power meets the operating requirements of the corresponding IoT device, and an accurate judgment can be made.
[0182] As an implementation of the present application, the apparatus 700 for optimizing power of an IoT device may further include:
[0183] The setting module is used to set the target power as the operational power threshold.
[0184] The setting module is also used to set the target power to an inoperable power threshold when no reply information corresponding to the connection request is received and the preset time is exceeded and it is determined that the target power does not meet the operation requirements of the corresponding Internet of Things device.
[0185] The above-mentioned implementation mode of the present application changes the operable power threshold and the inoperable power threshold according to different judgment results after sending a connection request to the IoT device for judgment, thereby reducing the need to send a connection request for judgment, which can speed up the subsequent processing process.
[0186] As an implementation of the present application, the adjustment module 705 is also used to adjust the target power to an operational power threshold when the target power does not meet the operation requirements of the corresponding IoT device.
[0187] The above-mentioned implementation mode of the present application adjusts the target power to an operational power threshold when it is determined that the target power does not meet the operation requirements of the corresponding IoT device, thereby ensuring the normal operation of the IoT device.
[0188] As an implementation of the present application, the adjustment module 705 is also used to adjust the target power to an operational power threshold when the target power is greater than a preset maximum power.
[0189] The adjustment module 705 is further configured to adjust the target power to an operational power threshold when the target power is less than a preset minimum power.
[0190] The above-mentioned implementation mode of the present application determines the target power according to the maximum power and minimum power supported by the network device itself. When the target power exceeds the interval defined by the maximum power and the minimum power, the power is directly changed to the operational power threshold to ensure that the corresponding IoT device can operate normally.
[0191] As an implementation of the present application, the apparatus 700 for optimizing power of an IoT device may further include an addition module.
[0192] The processing module 703 is also used to obtain the offset of each particle according to the preset particle swarm algorithm parameters, the individual optimal result and the group optimal result.
[0193] The addition module is used to add the offset of each particle to the corresponding target power to obtain the current target power of each particle.
[0194] The updating module 704 is further used to update the target power of each IoT device corresponding to each particle based on the current target power.
[0195] The above-mentioned implementation mode of the present application can obtain the optimal result of the power of the Internet of Things device in continuous iteration by updating each particle.
[0196] The various modules in the device for optimizing power of an IoT device provided in the embodiment of the present application can implement the various steps in the method for optimizing power of an IoT device described above and achieve the corresponding effects, which will not be described in detail here for the sake of brevity.
[0197] Fig. 9 A schematic diagram of the hardware structure of a device for optimizing power of an Internet of Things device provided in an embodiment of the present application is shown.
[0198] The device for power optimization in an IoT device may include a processor 801 and a memory 802 storing computer program instructions.
[0199] Specifically, the processor 801 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
[0200] The memory 802 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 802 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, the memory 802 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 802 may be inside or outside the integrated gateway disaster recovery device. In a specific embodiment, the memory 802 is a non-volatile solid-state memory.
[0201] The memory may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk storage medium device, an optical storage medium device, a flash memory device, an electrical, optical or other physical / tangible memory storage device. Therefore, generally, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method for power optimization of an IoT device according to any one embodiment of the present disclosure.
[0202] The processor 801 implements any one of the methods for optimizing power of an IoT device in the above embodiments by reading and executing computer program instructions stored in the memory 802 .
[0203] In one example, the device for optimizing power of IoT devices may further include a communication interface 803 and a bus 810. Fig. 9 As shown, the processor 801, the memory 802, and the communication interface 803 are connected via a bus 810 and communicate with each other.
[0204] The communication interface 803 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.
[0205] Bus 810 includes hardware, software or both, and the parts of online data flow billing equipment are coupled to each other. For example, but not limitation, bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front-end bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 810 may include one or more buses. Although the present application embodiment describes and shows a specific bus, the application considers any suitable bus or interconnection.
[0206] In addition, in combination with the method for optimizing power of IoT devices in the above embodiments, the present application embodiment may provide a computer storage medium for implementation. The computer storage medium stores computer program instructions; when the computer program instructions are executed by a processor, any method for optimizing power of IoT devices in the above embodiments is implemented.
[0207] However, it should be clear that the present application is not limited to the specific configurations and processes described above and shown in the figures. Moreover, for the sake of brevity, a detailed description of known methods and techniques is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.
[0208] The functional blocks shown in the above block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present application are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.
[0209] The application can be implemented in other specific forms without departing from its spirit and essential characteristics. For example, the algorithm described in the specific embodiment can be modified, and the system architecture does not depart from the basic spirit of the application. Therefore, the current embodiment is regarded as exemplary and non-restrictive in all aspects, and the scope of the application is defined by the attached claims rather than the above description, and all changes falling within the meaning of the claims and the scope of equivalents are thereby included in the scope of the application.
[0210] Those skilled in the art should understand that the above embodiments are exemplary rather than restrictive. Different technical features appearing in different embodiments can be combined to achieve beneficial effects. Based on the study of the drawings, the specification and the claims, those skilled in the art should be able to understand and implement other variations of the disclosed embodiments. In the claims, the term "comprising" does not exclude other devices or steps; the indefinite article "a" does not exclude a plurality; the terms "first" and "second" are used to indicate names rather than to indicate any specific order. Any figure marks in the claims should not be understood as limiting the scope of protection. The functions of multiple parts appearing in the claims can be implemented by a single hardware or software module. The appearance of certain technical features in different dependent claims does not mean that these technical features cannot be combined to achieve beneficial effects.
Claims
1. A method for optimizing power of an Internet of Things device, characterized in that: The method comprises: Obtain the target power of each IoT device corresponding to each particle and the last group optimal result of each particle; wherein the particle is the potential feasible power of the IoT device; Determine whether the target powers corresponding to the particles meet the operation requirement information of the corresponding Internet of Things devices, and obtain a determination result; According to the judgment result, the target power of each IoT device corresponding to each particle is adjusted to obtain an individual optimal result and a group optimal result, wherein the individual optimal result is the current optimal target power of each particle, and the group optimal result is the current optimal target power of all particles; Update the target power of each particle based on preset particle swarm algorithm parameters, the individual optimal result and the group optimal result; When the group optimal result is consistent with a preset number of historical group optimal results, the power of each IoT device is adjusted according to the group optimal result.
2. The method for optimizing power of IoT devices according to claim 1, characterized in that: The determining whether the target powers corresponding to the particles meet the operation requirement information of the corresponding IoT device includes: Obtaining an operable power threshold and an inoperable power threshold of each of the IoT devices; When the target power is greater than or equal to an operable power threshold of the corresponding IoT device, determining that the target power satisfies the operation requirement information of the corresponding IoT device; When the target power is less than or equal to the inoperable power threshold of the corresponding Internet of Things device, it is determined that the target power does not meet the operation requirement information of the corresponding Internet of Things device.
3. The method for optimizing power of IoT devices according to claim 2, characterized in that: The determining whether the target powers corresponding to the particles meet the operation requirement information of the corresponding IoT device includes: When the target power is less than an operable power threshold of the corresponding IoT device and greater than an inoperable power threshold of the corresponding IoT device, sending a connection request to the IoT device; Upon receiving the reply information corresponding to the connection request, determining that the target power satisfies the operation requirement information of the corresponding Internet of Things device; When no reply information corresponding to the connection request is received and a preset time has passed, it is determined that the target power does not meet the operation requirement information of the corresponding Internet of Things device.
4. The method for optimizing power of IoT devices according to claim 3, characterized in that: In the case of receiving the reply information corresponding to the connection request, after determining that the target power meets the operation requirement information of the corresponding Internet of Things device, the method further includes: Setting the target power to an operational power threshold; After determining that the target power does not meet the operation requirements of the corresponding IoT device when no reply information corresponding to the connection request is received and the preset time has passed, the method further includes: The target power is set to an inoperable power threshold.
5. The method for optimizing power of IoT devices according to claim 2, characterized in that: The step of adjusting the target power of each IoT device corresponding to each particle according to the judgment result includes: When the target power does not meet the operation requirements of the corresponding IoT device, the target power is adjusted to an operational power threshold.
6. The method for optimizing power of IoT devices according to claim 2, characterized in that: After adjusting the target power of each IoT device corresponding to each particle according to the judgment result, the method further includes: When the target power is greater than the preset maximum power, adjusting the target power to an operational power threshold; When the target power is less than the preset minimum power, the target power is adjusted to an operational power threshold.
7. The method for optimizing power of an Internet of Things device according to any one of claims 1 to 6, characterized in that: The updating of the target power of each particle based on the preset particle swarm algorithm parameters, the individual optimal result and the group optimal result includes: Obtaining the offset of each particle according to the preset particle swarm algorithm parameters, the individual optimal result and the group optimal result; Adding the offset of each particle to the corresponding target power to obtain the current target power of each particle; Based on the current target power, the target power of each IoT device corresponding to each particle is updated.
8. A device for optimizing power of IoT devices, characterized in that: The device comprises: An acquisition module is used to acquire the target power of each IoT device corresponding to each particle and the last group optimal result of each particle; wherein the particle is the potential feasible power of the IoT device; A judgment module, used to judge whether the target powers corresponding to the particles meet the operation requirement information of the corresponding Internet of Things devices, and obtain a judgment result; A processing module, configured to adjust the target power of each IoT device corresponding to each particle according to the judgment result, to obtain an individual optimal result and a group optimal result, wherein the individual optimal result is the current optimal target power of each particle, and the group optimal result is the current optimal target power of all particles; An updating module, used for updating the target power of each particle based on preset particle swarm algorithm parameters, the individual optimal result and the group optimal result; The adjustment module is used to adjust the power of each IoT device according to the group optimal result when the group optimal result is consistent with a preset number of historical group optimal results.
9. A device for optimizing power of IoT devices, characterized in that: The device includes: a processor, and a memory storing computer program instructions; the processor reads and executes the computer program instructions to implement the method for power optimization of an Internet of Things device as described in any one of claims 1-7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the method for optimizing power of an Internet of Things device as described in any one of claims 1 to 7 is implemented.
Citation Information
Cited By
Passive Internet of Things communication method and device, electronic equipment and storage medium
CN119729614A
Transmitting power adjusting method and device, storage medium and electronic device
CN119835746A
Energy efficiency evaluation method and device, equipment, storage medium and product
CN121396839A
