Parameter configuration method, system, medium and product of internet of things terminal

By collecting and calculating the raw operating data and channel parameters of IoT terminals, and performing weighted fusion of data reliability and network layer adaptability, the configuration parameters are iteratively optimized, which solves the problem of parameter configuration accuracy of IoT terminals under dynamic networks and heterogeneous devices, and realizes accurate configuration of terminal parameters and data collaboration.

CN123145152APending Publication Date: 2026-11-20GUANGZHOU POWER SUPPLY BUREAU GUANGDONG POWER GRID CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611180076.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-05
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

In existing technologies, the parameter configuration methods for IoT terminals are driven by single application requirements, making it difficult to achieve multi-parameter collaborative matching in dynamic network environments and heterogeneous devices. This results in insufficient adaptability of the configuration results to the actual operating environment and low configuration accuracy.

Method used

By collecting raw operating data from IoT terminals and gateway channel parameters, calculating data reliability and network layer adaptability, performing weighted fusion, and iteratively optimizing configuration parameters until preset conditions are met, the precise configuration of terminal parameters is achieved.

Benefits of technology

It improves the accuracy of IoT terminal parameter configuration, solves the problems of difficulty in adapting multi-dimensional parameters and large deviations in configuration results caused by network dynamics and device heterogeneity, and realizes dynamic adaptation of terminal parameters and data collaboration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123145152A_ABST
    Figure CN123145152A_ABST
Patent Text Reader

Abstract

The application discloses a parameter configuration method and system of an Internet of Things terminal, a medium and a product, and the method is as follows: collecting original operation data of each Internet of Things terminal and original channel parameters of each channel of a gateway; calculating a plurality of data reliabilities by using each original operation data; inputting each original channel parameter and each data reliability into a parameter optimization model to calculate a network layer fitness by using preset initial configuration parameters of each terminal and each original channel parameter, calculate a data layer fitness by using each data reliability and each initial configuration parameter, weight the two fitnesses into a comprehensive fitness, and use the comprehensive fitness to update each initial configuration parameter to obtain a plurality of updated configuration parameters until a preset condition is met, so that target configuration parameters of each terminal are obtained and used for parameter configuration. The application can solve the problems of multi-dimensional parameter adaptation difficulty and large configuration result deviation of the Internet of Things terminal caused by network dynamics and device heterogeneity during pre-debugging, so as to improve the accuracy of parameter configuration of the Internet of Things terminal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of Internet of Things (IoT) terminal configuration technology, and in particular to parameter configuration methods, systems, media, and products for IoT terminals. Background Technology

[0002] The large-scale deployment of IoT technology has driven the widespread application of massive numbers of smart terminals in fields such as industrial manufacturing, smart cities, and environmental monitoring. IoT terminals typically require configuration of key parameters such as sampling frequency, communication power, and buffer capacity based on business needs to ensure efficient and reliable operation under different network conditions and heterogeneous device environments. However, the actual deployment environment of IoT terminals is complex and varied. Different terminals have significantly different hardware capabilities, communication requirements, and business objectives, and the wireless channel conditions in their operating scenarios exhibit dynamic changes. Therefore, it is necessary to rationally configure their key parameters before deployment or during operation to ensure that the terminals can adapt to diverse actual operating scenarios.

[0003] Existing technologies employ static configuration methods based on fixed rules, but these methods have significant drawbacks: they are primarily driven by single application requirements and do not fully utilize other configurable parameters. When the network environment changes dynamically or there are multiple types of heterogeneous terminals, static configuration strategies based on fixed rules struggle to achieve coordinated matching between multiple parameters, resulting in insufficient adaptability of the configuration results to the actual operating environment and low configuration accuracy. Summary of the Invention

[0004] This invention provides a parameter configuration method, system, medium, and product for IoT terminals, which can solve the problems of difficulty in adapting multidimensional parameters and large deviations in configuration results caused by network dynamics and device heterogeneity during the pre-debugging of IoT terminals, thereby improving the accuracy of IoT terminal parameter configuration.

[0005] In a first aspect, an embodiment of the present invention provides a parameter configuration method for an Internet of Things (IoT) terminal. The IoT system includes a gateway and a plurality of IoT terminals. The gateway includes a plurality of channels, and the gateway is connected to each of the IoT terminals. The method includes: Collect the raw operating data corresponding to each of the IoT terminals and the raw channel parameters corresponding to each of the channels in the gateway; The data reliability of each IoT terminal is calculated using the original operating data. The original channel parameters and data reliability are input into a preset parameter optimization model. The network layer fitness is calculated using the preset initial configuration parameters corresponding to each IoT terminal and the original channel parameters. Based on the data reliability and the initial configuration parameters, the data layer fitness is calculated. The network layer fitness and the data layer fitness are weighted and fused to obtain the comprehensive fitness of the IoT system. The comprehensive fitness is used to update each of the initial configuration parameters to obtain several updated configuration parameters until each updated configuration parameter meets a preset condition, thus obtaining the target configuration parameters corresponding to each IoT terminal. The target configuration parameters are then used to configure the parameters of each IoT terminal.

[0006] By collecting raw operational data from IoT terminals and raw channel parameters from each channel in the gateway, service-aware data from the terminal side and channel status data from the network side can be obtained. This provides real-time, multi-dimensional data sources to ensure accurate assessment of terminal data quality and network compatibility, thus providing data collection assurance for improving parameter configuration accuracy. Furthermore, by calculating the data reliability of each terminal using the raw operational data, the reliability of the sampled data from each terminal can be quantified, eliminating the interference of data quality fluctuations caused by differences in device precision or environmental interference on configuration decisions. This provides quantifiable reliability assurance for subsequent data collaboration between terminals, thereby improving parameter configuration accuracy. Accuracy provides data quality assurance; network layer adaptability is calculated using preset initial configuration parameters for each terminal and original channel parameters, quantifying the communication adaptability of each terminal under dynamic channel conditions. This allows terminals to adjust configuration parameters according to actual channel conditions to adapt to the network environment, solving the problem of insufficient terminal-channel adaptability caused by neglecting dynamic network changes in existing technologies, and providing quantitative assurance for improving parameter configuration accuracy. Data layer adaptability is calculated based on data reliability and initial configuration parameters, quantifying the degree of coordination and consistency among terminals in sampling frequency and buffer status, enabling terminals to adjust configuration parameters according to their own data... The system adjusts configuration parameters based on quality and adjacent terminal status to achieve data collaboration, addressing the inconsistency and poor fusion effects caused by neglecting inter-terminal data collaboration in existing technologies. This provides a quantitative guarantee for improving parameter configuration accuracy. A weighted fusion of network layer fitness and data layer fitness yields a comprehensive fitness score, unifying network adaptability and data collaboration under a single objective framework. This allows for comparison and trade-offs between the two optimization objectives, resolving the lack of unified metrics in existing technologies that hinder collaborative optimization across multiple objectives. This provides a unified objective guarantee for improving parameter configuration accuracy. The comprehensive fitness score is then used to adjust the initial configuration parameters. Gradient updates and iterations are performed until preset conditions are met. Configuration parameters are continuously optimized along the direction of increasing overall fitness. Through iterative optimization, the optimal parameter combination is actively approached, addressing the problem of insufficient adaptability between configuration results and actual environments caused by static rules' inability to cope with dynamic environments in existing technologies. This provides continuous optimization assurance for improving parameter configuration accuracy. The target configuration parameters obtained after meeting the preset conditions are used for actual parameter configuration of IoT terminals. The optimized parameter combination can ultimately be implemented as the terminal's operational configuration, realizing a complete closed loop from data acquisition to optimization and terminal deployment, ultimately improving the accuracy of IoT terminal parameter configuration. This application can solve the problems of difficulty in adapting multi-dimensional parameters and large deviations in configuration results caused by network dynamics and device heterogeneity during IoT terminal pre-debugging, thereby improving the accuracy of IoT terminal parameter configuration.

[0007] Furthermore, the calculation of the data layer fitness based on the reliability of each data and the initial configuration parameters specifically includes: Obtain the actual amount of stored data corresponding to each of the IoT terminals; For each IoT terminal, the initial value of the cache capacity and the actual amount of stored data in the initial configuration parameters corresponding to the current IoT terminal are calculated to obtain the cache utilization rate corresponding to the current IoT terminal. The initial configuration parameters also include the initial value of the sampling frequency. Based on the cache utilization rate corresponding to each IoT terminal and the initial value of the sampling frequency in the initial configuration parameters, the consistency correction coefficient between each IoT terminal is calculated. The preset collaborative benchmark weights between the IoT terminals are corrected by using the cache utilization rate corresponding to each IoT terminal, so as to obtain the collaborative correction weights between the IoT terminals. The fitness of the data layer is calculated using the collaborative correction weights, the consistency correction coefficients, and the data credibility.

[0008] This method calculates the data layer fitness based on the reliability of each data point and the initial configuration parameters. It can quantify the degree of coordination and consistency among terminals in terms of sampling frequency and cache status, enabling terminals to adjust configuration parameters according to their own data quality and the status of adjacent terminals to achieve data coordination. This solves the problem of inconsistent data collection and poor fusion effect caused by neglecting data coordination between terminals in existing technologies, and provides a quantitative guarantee for data coordination to improve the accuracy of parameter configuration.

[0009] Furthermore, the process of setting the preset initial configuration parameters corresponding to each of the IoT terminals specifically includes: For each IoT terminal, the maximum allowed sampling frequency, minimum allowed sampling frequency, maximum allowed communication power, minimum allowed communication power, maximum allowed cache capacity, and minimum allowed cache capacity of the current IoT terminal are obtained from the preset database. The initial value of the sampling frequency is obtained by calculating using the maximum and minimum allowed sampling frequencies. The initial value of the communication power is obtained by calculating using the maximum and minimum allowed communication power values. The initial cache capacity is obtained by calculating using the maximum and minimum allowed cache capacity values. The initial values ​​of the sampling frequency, communication power, and buffer capacity are summarized to obtain the initial configuration parameters corresponding to the current IoT terminal.

[0010] By obtaining the hardware constraint boundaries of each IoT terminal and calculating the median of the constraint range of each configuration parameter as the initial value, the physical feasible domain of parameter configuration can be clearly defined. Within the constraint interval, an unbiased iteration starting point can be set for each configuration parameter, avoiding frequent truncation or getting trapped in local suboptimal solutions in the early stage of iteration due to the starting point being biased towards the constraint boundary, thereby improving the accuracy of parameter configuration.

[0011] Furthermore, the calculation of network layer fitness using the preset initial configuration parameters corresponding to each of the IoT terminals and the original channel parameters specifically includes: For each IoT terminal, the initial value of communication power, the preset daily average transmission duration of the terminal, and the preset maximum allowable power loss in the initial configuration parameters corresponding to the current IoT terminal are calculated to obtain the network layer weight coefficient of the current IoT terminal. For each of the aforementioned channels, the bandwidth, transmission delay, and delay jitter value in the original channel parameters corresponding to the current channel are calculated to obtain the channel quality coefficient corresponding to the current channel. The initial communication power value corresponding to each IoT terminal is calculated by combining the channel quality coefficient and the bandwidth utilization rate in the original channel parameters with the channel quality coefficient and the original channel parameters to obtain the terminal channel compatibility between each IoT terminal and each channel. The network layer fitness is obtained by calculating the channel adaptability of each terminal and the weight coefficient of each network layer.

[0012] By using the preset initial configuration parameters and original channel parameters corresponding to each terminal to calculate the network layer adaptability, the communication adaptability of each terminal under dynamic channel conditions can be quantified. This allows the terminal to adjust the configuration parameters according to the actual channel state to adapt to the network environment, solving the problem of insufficient terminal-channel adaptability caused by ignoring dynamic network changes in existing technologies. This provides a quantitative guarantee for improving the accuracy of parameter configuration.

[0013] Furthermore, the step of calculating the data reliability of each IoT terminal using the original operating data specifically includes: Each of the original operating data is subjected to anomaly removal processing to obtain several corrected data; Each of the corrected data is subjected to equipment calibration processing to obtain several calibration data; The calibration variance of each calibration data is calculated, and the data reliability of each IoT terminal is obtained by using the calibration variance corresponding to each IoT terminal and the preset device accuracy coefficient.

[0014] By calculating the data reliability of each terminal using the original operational data, the reliability of the sampled data from each terminal can be quantified, eliminating the interference of data quality fluctuations caused by differences in equipment precision or environmental interference on configuration decisions. This provides a quantifiable reliability guarantee for subsequent data collaboration between terminals, thereby providing data quality assurance for improving the accuracy of parameter configuration.

[0015] Furthermore, the weighted fusion of the network layer fitness and the data layer fitness to obtain the comprehensive fitness of the IoT system specifically includes: The fitness of the network layer is normalized to obtain the first normalized fitness. The data layer fitness is normalized to obtain a second normalized fitness. The first normalized fitness and the second normalized fitness are weighted using preset initial fitness weights to obtain the initial fitness. Calculate the sensitivity coefficient of the initial fitness to the initial fitness weights, and use the sensitivity coefficient to update the initial fitness weights to obtain the updated fitness weights; The first normalized fitness and the second normalized fitness are weighted using the updated fitness weights to obtain the comprehensive fitness of the Internet of Things system.

[0016] This normalization process eliminates the dimensional differences between network layer fitness and data layer fitness, making them comparable within the same numerical range. By dynamically adjusting the weight ratio through sensitivity analysis, the overall fitness can adaptively reflect the relative contribution of network adaptability and data synergy according to the actual scenario, avoiding subjective biases introduced by fixed weights and improving the accuracy of parameter configuration.

[0017] Furthermore, the process of updating each of the initial configuration parameters using the comprehensive fitness to obtain several updated configuration parameters specifically includes: For each of the IoT terminals, the first partial derivative of the comprehensive fitness with respect to the initial value of the sampling frequency in the initial configuration parameters of the current IoT terminal is calculated, and the initial value of the sampling frequency is updated using the first partial derivative to obtain the updated sampling frequency value. Calculate the second partial derivative of the overall fitness with respect to the initial value of the communication power in the initial configuration parameters of the current IoT terminal, and use the second partial derivative to update the initial value of the communication power to obtain the updated value of the communication power; Calculate the third partial derivative of the overall fitness with respect to the initial value of the cache capacity in the initial configuration parameters of the current IoT terminal, and use the third partial derivative to update the initial value of the cache capacity to obtain the updated cache capacity value; The updated sampling frequency, communication power, and cache capacity values ​​corresponding to the current IoT terminal are summarized to obtain the updated configuration parameters corresponding to the current IoT terminal.

[0018] By using comprehensive fitness to update each initial configuration parameter in gradient and iterate until the preset conditions are met, each configuration parameter can be continuously optimized along the direction of increasing comprehensive fitness. Through iterative optimization, the optimal parameter combination is actively approached, which solves the problem that the configuration results are not well adapted to the actual environment due to the inability of static rules to cope with dynamic environments in existing technologies. This provides a continuous optimization guarantee for improving the accuracy of parameter configuration.

[0019] Secondly, one embodiment of the present invention provides a parameter configuration system for an Internet of Things (IoT) terminal, the parameter configuration system being used to execute a parameter configuration method for the IoT terminal.

[0020] Thirdly, another embodiment of the present invention provides a computer-readable storage medium, the computer-readable storage medium including a stored computer program, wherein, when the computer program is executed, it controls the device or apparatus where the computer-readable storage medium is located to perform a parameter configuration method for an Internet of Things terminal.

[0021] Fourthly, another embodiment of the present invention provides a computer program product, including a computer program or instructions, which, when executed by a communication device, implements a parameter configuration method for an Internet of Things (IoT) terminal. Attached Figure Description

[0022] To more clearly illustrate the technical solution of this application, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0023] Figure 1 This is a flowchart illustrating an embodiment of a parameter configuration method for an IoT terminal provided in this application; Figure 2 This is an example diagram illustrating the trend of overall fitness changes during the gradient descent iteration process provided in this application; Figure 3 This is an example diagram of the terminal sampling frequency optimization process provided in this application; Figure 4 This is an example diagram of the terminal communication power optimization process provided in this application. Detailed Implementation

[0024] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions of this application will be clearly and completely described below with reference to the accompanying drawings of the embodiments. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0025] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application pertains; the terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the application; the terms “comprising” and “having”, and any variations thereof, in the specification, claims, and foregoing description of the drawings are intended to cover non-exclusive inclusion.

[0026] In the description of the embodiments of this application, technical terms such as "first" and "second" are used only to distinguish different objects and should not be construed as indicating or implying relative importance or implicitly specifying the number, specific order, or primary and secondary relationship of the indicated technical features. In the description of the embodiments of this application, "multiple" means two or more, unless otherwise explicitly defined.

[0027] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a mutually exclusive, independent, or alternative embodiment. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.

[0028] In the description of the embodiments in this application, the term "and / or" is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Additionally, the character " / " in this document generally indicates that the preceding and following related objects have an "or" relationship.

[0029] In the description of the embodiments of this application, the term "multiple" refers to two or more (including two), similarly, "multiple sets" refers to two or more (including two sets), and "multiple pieces" refers to two or more (including two pieces).

[0030] In the description of the embodiments of this application, unless otherwise expressly specified and limited, technical terms such as "installation," "connection," "joining," and "fixing" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral part; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; they can refer to the internal communication of two components or the interaction between two components. Those skilled in the art can understand the specific meaning of the above terms in the embodiments of this application according to the specific circumstances.

[0031] In the field of IoT terminal configuration technology, IoT terminals need to be configured with parameters to adapt to complex and ever-changing deployment environments. Existing technologies adopt static configuration methods based on fixed rules, but these are driven by single application requirements and do not make full use of other configurable parameters. When the network environment changes dynamically or there are multiple types of heterogeneous terminals, it is difficult to achieve multi-parameter collaborative matching, resulting in insufficient adaptability of the configuration results to the actual operating environment and low configuration accuracy.

[0032] See Figure 1 To address the challenges of adapting multidimensional parameters and the resulting large deviations in configuration due to network dynamics and device heterogeneity during the pre-debugging of IoT terminals, and to improve the accuracy of IoT terminal parameter configuration, an embodiment of the present invention provides a parameter configuration method for IoT terminals. The IoT system includes a gateway and several IoT terminals. The gateway includes several channels and is connected to each of the IoT terminals. The method includes steps S101 to S103. Step S101: Collect the original operating data corresponding to each IoT terminal and the original channel parameters corresponding to each channel in the gateway; In some embodiments, collecting the raw operating data corresponding to each IoT terminal and the raw channel parameters corresponding to each channel in the gateway specifically includes: in the IoT system, each IoT terminal collects service data according to the currently configured sampling frequency to obtain multiple sets of raw operating data. The raw operating data is the raw value of service perception. For example, in a temperature and humidity sensor scenario, the raw operating data includes the raw temperature sampling value and the raw humidity sampling value. The IoT terminal uploads the collected raw operating data to the gateway. The gateway synchronously records the raw operating data of each terminal and the corresponding sampling timestamp. At the same time, the gateway monitors each channel and collects the bandwidth, transmission delay and delay jitter of each channel as raw channel parameters.

[0033] For example, when the IoT terminal is an image acquisition terminal such as a camera, the original operating data can be replaced with original business data such as image frame quality, bit rate, key frame interval or image recognition results, and the subsequent process remains unchanged.

[0034] It should be noted that when the gateway collects parameters for each channel, it must ensure that the parameter collection time window for each channel is consistent with the sampling time window of the terminal's original running data, so as to ensure the alignment of terminal data and channel parameters in the time dimension during subsequent calculations.

[0035] Step S102: Calculate the data reliability of each IoT terminal using the original operating data. In some embodiments, the step of calculating the data reliability of each IoT terminal using the original operating data includes: performing anomaly removal processing on each of the original operating data to obtain several corrected data; performing device calibration processing on each of the corrected data to obtain several calibrated data; calculating the calibration variance of each of the calibrated data, and using the calibration variance corresponding to each IoT terminal and a preset device accuracy coefficient to calculate the data reliability of each IoT terminal. Specifically, for the original operating data of each terminal, its mean and standard deviation are calculated. If the absolute value of the difference between a sampled data and the mean is greater than three times the standard deviation, the sampled data is removed, and all the sampled data that are not removed constitute the corrected data; the mean of the corrected data corresponding to each terminal is multiplied by the calibration coefficient corresponding to each terminal to obtain the calibrated data, and the calibration coefficient is obtained by standard device calibration; the variance of the calibration data of each terminal is calculated as the calibration variance, one is added to the calibration variance, the reciprocal is taken, and then multiplied by the preset device accuracy coefficient corresponding to each terminal to obtain the data reliability of each terminal.

[0036] In some embodiments, the formula for calculating the data reliability of each IoT terminal using the original operating data specifically includes: Formulas for calculating the mean and standard deviation: ; In the formula, For terminal indexing; Index for the number of samples; This represents the total number of samples. For the terminal The mean of the sampled data; For the terminal In the The original running data obtained from the second sampling; For the terminal The standard deviation of the sampled data; Elimination Decision Formula: ; In the formula, For the terminal The mean of the sampled data; For the terminal In the The original running data obtained from the second sampling; For the terminal The standard deviation of the sampled data; The formula for calculating calibration data is as follows: ; In the formula, For terminal indexing; This is the mean of the samples after removing outliers; For the terminal The calibration coefficient (calibrated by standard equipment); For calibration data; Formula for calculating data credibility: ; In the formula, For terminal indexing; For the terminal Data credibility; For the terminal The equipment accuracy coefficient; For the terminal Variance of calibration data.

[0037] By calculating the data reliability of each terminal using the original operational data, the reliability of the sampled data from each terminal can be quantified, eliminating the interference of data quality fluctuations caused by differences in equipment precision or environmental interference on configuration decisions. This provides a quantifiable reliability guarantee for subsequent data collaboration between terminals, thereby providing data quality assurance for improving the accuracy of parameter configuration.

[0038] Step S103: Input the original channel parameters and data reliability into the preset parameter optimization model to calculate the network layer fitness using the preset initial configuration parameters corresponding to each IoT terminal and the original channel parameters. Calculate the data layer fitness based on the data reliability and the initial configuration parameters. Perform weighted fusion of the network layer fitness and the data layer fitness to obtain the comprehensive fitness of the IoT system. Update the initial configuration parameters using the comprehensive fitness to obtain several updated configuration parameters until each updated configuration parameter meets a preset condition to obtain the target configuration parameters corresponding to each IoT terminal. Configure the parameters of each IoT terminal using the target configuration parameters. In some embodiments, the original channel parameters and the data credibility of each terminal are input into a preset parameter optimization model. Specifically, the preset parameter optimization model receives two sets of input data: the first set is the collected original channel parameters, and the second set is the data credibility of each terminal.

[0039] In some embodiments, the process of setting the preset initial configuration parameters corresponding to each IoT terminal specifically includes: for each IoT terminal, obtaining the maximum allowed sampling frequency, minimum allowed sampling frequency, maximum allowed communication power, minimum allowed communication power, maximum allowed buffer capacity, and minimum allowed buffer capacity of the current IoT terminal from a preset database; calculating the initial value of the sampling frequency using the maximum allowed sampling frequency and the minimum allowed sampling frequency; calculating the initial value of the communication power using the maximum allowed communication power and the minimum allowed communication power; calculating the initial value of the buffer capacity using the maximum allowed buffer capacity and the minimum allowed buffer capacity; and summing the initial value of the sampling frequency, the initial value of the communication power, and the initial value of the buffer capacity to obtain the initial configuration parameters corresponding to the current IoT terminal. Specifically, the hardware constraint parameters of various types of IoT terminals are stored in the preset database. Based on the model or type of the current IoT terminal, the corresponding configuration parameter constraint range is retrieved from the preset database. The configuration parameter constraint range includes the sampling frequency constraint range, the communication power constraint range, and the cache capacity constraint range. Each constraint range includes an allowed maximum value and an allowed minimum value. The maximum and minimum sampling frequencies are added together and divided by two to obtain the initial sampling frequency value. The maximum and minimum communication power values ​​are added together and divided by two to obtain the initial communication power value. The maximum and minimum cache capacity values ​​are added together and divided by two to obtain the initial cache capacity value. The three initial values ​​are summarized into the preset initial configuration parameters corresponding to the current IoT terminal.

[0040] In some embodiments, the formulas related to the setting process of the preset initial configuration parameters corresponding to each of the IoT terminals specifically include: The formula for calculating the initial configuration parameters is as follows: ; In the formula, For terminal indexing; For the terminal The initial value of the sampling frequency; This is the minimum allowed sampling frequency. The maximum allowed sampling frequency; For the terminal The initial value of the communication power; Minimum allowable communication power; Maximum allowed communication power; For the terminal The initial value of the cache capacity; Minimum allowed cache size; This represents the maximum allowed cache size.

[0041] It should be noted that the hardware constraint range of each IoT terminal should first adopt the terminal's factory default value or the valid parameters sent from the cloud last time. If there are no historical parameters, the median value of the corresponding hardware constraint range should be taken as the initial value. This median value is the unbiased starting point in the range, which can avoid frequent truncation or getting trapped in local suboptimal solutions in the early stage of iteration due to the starting point being biased towards the constraint boundary.

[0042] By obtaining the hardware constraint boundaries of each IoT terminal and calculating the median of the constraint range of each configuration parameter as the initial value, the physical feasible domain of parameter configuration can be clearly defined. Within the constraint interval, an unbiased iteration starting point can be set for each configuration parameter, avoiding frequent truncation or getting trapped in local suboptimal solutions in the early stage of iteration due to the starting point being biased towards the constraint boundary, thereby improving the accuracy of parameter configuration.

[0043] In some embodiments, the calculation of network layer fitness using preset initial configuration parameters and original channel parameters corresponding to each IoT terminal specifically includes: for each IoT terminal, calculating the initial communication power value, preset daily average transmission duration, and preset maximum allowable power loss in the initial configuration parameters corresponding to the current IoT terminal to obtain the network layer weight coefficient of the current IoT terminal; for each channel, calculating the bandwidth, transmission delay, and delay jitter value in the original channel parameters corresponding to the current channel to obtain the channel quality coefficient corresponding to the current channel; calculating the terminal channel fit between each IoT terminal and each channel by comparing the initial communication power value corresponding to each IoT terminal with the channel quality coefficient and bandwidth utilization in the original channel parameters; and calculating the network layer fitness using the terminal channel fit and the network layer weight coefficient. Specifically, for each IoT terminal, the initial communication power value in its initial configuration parameters is read, and combined with the preset average daily transmission time and preset maximum allowable power loss, the network layer weight coefficient of the terminal is calculated using an exponential decay function. For each channel in the gateway, its corresponding bandwidth, transmission delay, and delay jitter value are read, and the bandwidth is divided by the sum of the transmission delay and delay jitter to obtain the channel quality coefficient. The initial communication power value of each terminal is calculated with the channel quality coefficient and bandwidth utilization of each channel to obtain the terminal-channel fit degree between each terminal and each channel. The channel fit degree of each terminal is multiplied by the corresponding network layer weight coefficient, and the sum is obtained for all terminals and all channels, then divided by the product of the number of terminals and the number of channels to obtain the network layer fitness degree.

[0044] In some embodiments, the calculation of the network layer fitness formula using the preset initial configuration parameters corresponding to each of the IoT terminals and the original channel parameters specifically includes: Formula for calculating the weight coefficients of the terminal network layer: ; The formula for calculating the channel quality factor is: ; The formula for calculating terminal channel adaptability is as follows: ; The formula for calculating the fitness of a network layer is: ; In the formula, For terminal indexing; For channel index; For the terminal The communication power is determined, and the initial value of the communication power is taken in the first iteration. For the terminal The average daily transmission time; Maximum permissible power loss; For the terminal Network layer weight coefficients; It is a natural exponential function; For channel Channel quality coefficient; For channel bandwidth; For channel Transmission delay; For channel The latency jitter value; For channel Bandwidth utilization; For the terminal With channel Terminal channel compatibility between them; The total number of channels; This represents the total number of IoT terminals. For network layer fitness.

[0045] It should be noted that during actual IoT terminal operation, the channels in the gateway may experience varying degrees of congestion or jitter due to changes in network load. By collecting the bandwidth, transmission latency, and latency jitter of each channel in real time, the current network status can be dynamically reflected, enabling the calculation of network layer fitness to accurately reflect the actual communication adaptation of each terminal in the current network environment; the average daily transmission time of the terminal... For the terminal The average daily transmission duration over a period of time is a statistical parameter of the terminal's operation and can be pre-stored in a preset database, along with the maximum allowable power loss. The maximum power loss limit allowed by the terminal hardware is determined by the terminal hardware specifications.

[0046] By using the preset initial configuration parameters and original channel parameters corresponding to each terminal to calculate the network layer adaptability, the communication adaptability of each terminal under dynamic channel conditions can be quantified. This allows the terminal to adjust the configuration parameters according to the actual channel state to adapt to the network environment, solving the problem of insufficient terminal-channel adaptability caused by ignoring dynamic network changes in existing technologies. This provides a quantitative guarantee for improving the accuracy of parameter configuration.

[0047] In some embodiments, calculating the data layer fitness based on the data reliability and the initial configuration parameters specifically includes: obtaining the actual amount of stored data corresponding to each IoT terminal; for each IoT terminal, calculating the cache utilization rate corresponding to the current IoT terminal by using the initial value of the cache capacity in the initial configuration parameters and the actual amount of stored data, wherein the initial configuration parameters also include an initial value of the sampling frequency; calculating the consistency correction coefficient between each IoT terminal based on the cache utilization rate and the initial value of the sampling frequency in the initial configuration parameters; correcting the preset collaborative benchmark weight between each IoT terminal using the cache utilization rate; and calculating the data layer fitness using the collaborative correction weight, the consistency correction coefficient, and the data reliability. Specifically, the actual amount of data currently stored is read from each IoT terminal. The initial value of the cache capacity corresponding to the current terminal is divided by the actual amount of data stored to obtain the cache utilization rate of the terminal. For each different pair of terminals i and k, the difference between their initial sampling frequencies is divided by the preset maximum sampling frequency and then the result is exponentially calculated. The difference between their cache utilization rates is then exponentially calculated. The two exponential values ​​are multiplied to obtain the consistency correction coefficient between the pair of terminals. The preset collaborative benchmark weight between terminal i and terminal k is obtained. This collaborative benchmark weight is multiplied by the cache utilization rate of terminal i and then by the cache utilization rate of terminal k to obtain the collaborative correction weight between the pair of terminals. The collaborative correction weight of each pair of terminals is multiplied by the consistency correction coefficient, then by the data reliability of terminal i, and then by the data reliability of terminal k. The summation of all different terminal pairs is divided by the product of the number of terminals and the difference between the number of terminals minus one to obtain the data layer fitness.

[0048] In some embodiments, the formula for calculating the data layer fitness based on the data credibility and the initial configuration parameters specifically includes: The formula for calculating cache utilization: ; The formula for calculating the consistency correction factor is as follows: ; The formula for calculating the collaborative weighting correction coefficient is as follows: ; The formula for calculating the fitness of the data layer is: ; In the formula, and For terminal indexing; For the terminal Cache utilization; For the terminal The actual amount of data stored; For the terminal The cache capacity is determined, and the initial cache capacity value is retrieved during the first iteration. For the terminal Compared to the terminal Consistency correction coefficient; It is a natural exponential function; For the terminal The sampling frequency is determined, and the initial value of the sampling frequency is taken in the first iteration. For the terminal The sampling frequency is determined, and the initial value of the sampling frequency is taken in the first iteration. The preset maximum sampling frequency; For the terminal Cache utilization; For the terminal With terminal Pre-defined collaborative benchmark weights between them; For the terminal With terminal Coordinated adjustment weights between them; For the terminal Data credibility; For the terminal Data credibility; This represents the total number of IoT terminals. For data layer fitness.

[0049] It should be noted that the preset collaborative benchmark weights are based on the terminal. With terminal The spatial distance, sampling time overlap, and service type consistency are predetermined and can be normalized to the range of zero to one. The closer the spatial distance, the higher the sampling time overlap, and the more consistent the service type, the larger the weight value, indicating that the collaboration between the two terminals is more important.

[0050] This method calculates the data layer fitness based on the reliability of each data point and the initial configuration parameters. It can quantify the degree of coordination and consistency among terminals in terms of sampling frequency and cache status, enabling terminals to adjust configuration parameters according to their own data quality and the status of adjacent terminals to achieve data coordination. This solves the problem of inconsistent data collection and poor fusion effect caused by neglecting data coordination between terminals in existing technologies, and provides a quantitative guarantee for data coordination to improve the accuracy of parameter configuration.

[0051] In some embodiments, the weighted fusion of the network layer fitness and the data layer fitness to obtain the overall fitness of the IoT system specifically includes: normalizing the network layer fitness to obtain a first normalized fitness; normalizing the data layer fitness to obtain a second normalized fitness; weighting the first normalized fitness and the second normalized fitness using preset initial fitness weights to obtain an initial fitness; calculating the sensitivity coefficient of the initial fitness to the initial fitness weights, and updating the initial fitness weights using the sensitivity coefficients to obtain updated fitness weights; and weighting the first normalized fitness and the second normalized fitness using the updated fitness weights to obtain the overall fitness of the IoT system. Specifically, the maximum and minimum allowed values ​​for network layer fitness and data layer fitness are obtained. The network layer fitness is subtracted from its minimum value and then divided by the difference between its maximum and minimum values ​​to obtain the first normalized fitness. The data layer fitness is subtracted from its minimum value and then divided by the difference between its maximum and minimum values ​​to obtain the second normalized fitness. The preset initial fitness weights are multiplied by the first normalized fitness, and the initial data layer weights (1 - initial fitness weights) are multiplied by the second normalized fitness to obtain the initial fitness. The partial derivative of this initial fitness with respect to the initial fitness weights is calculated as a sensitivity coefficient. This sensitivity coefficient is multiplied by the preset weight learning rate and then added to the current initial fitness weights to obtain the updated fitness weights. Simultaneously, the data layer weights are updated to 1 - the updated fitness weights. When the change in fitness weights over two consecutive iterations is less than the preset weight convergence threshold, the weight update is stopped. The final updated fitness weights are multiplied by the first normalized fitness, and the final updated data layer weights are multiplied by the second normalized fitness to obtain the overall fitness.

[0052] In some embodiments, the formula for weighted fusion of the network layer fitness and the data layer fitness to obtain the comprehensive fitness of the IoT system specifically includes: The formula for normalization is: ; In the formula, For network layer fitness; This represents the minimum allowable value for the fitness of the network layer. This represents the maximum allowable value for network layer fitness. This is the first normalized fitness obtained after normalizing the network layer fitness; For data layer fitness; This represents the minimum allowable value for data layer fitness. This represents the maximum allowable value for data layer fitness. This is the second normalized fitness obtained after normalizing the data layer fitness; The formula for calculating the sensitivity coefficient is as follows: ; In the formula, Initial fitness; This is the second normalized fitness obtained after normalizing the data layer fitness; This is the first normalized fitness obtained after normalizing the network layer fitness; Preset initial adaptation weights; The sensitivity coefficient is a factor that indicates that increasing the weights of the network layers can improve the overall fitness, while a sensitivity coefficient that indicates that the weights of the network layers should be reduced. The formula for weight update is: ; In the formula, The current initial fitness weights; The preset weight learning rate; Sensitivity coefficient; To update and adapt the weights; These are the weight coefficients for the data layer. The weighted formula for calculating overall fitness is as follows: ; In the formula, For overall fitness; To update and adapt the weights; These are the weight coefficients for the data layer. The normalized network layer fitness; This represents the fitness of the normalized data layer.

[0053] It should be noted that the maximum and minimum values ​​of the network layer fitness, as well as the data layer fitness, can be determined using the theoretical minimum and maximum values ​​corresponding to the hardware constraint boundaries during the initial run. Subsequent runs will dynamically update these values ​​based on historical running records in the cloud database. The preset range for the weight learning rate is [range missing]. It is necessary to ensure that the weights of the network layers are always within the range of 0 to 1. Weight iteration stops when the change in network layer weights between two consecutive iterations is less than a preset weight convergence threshold. .

[0054] This normalization process eliminates the dimensional differences between network layer fitness and data layer fitness, making them comparable within the same numerical range. By dynamically adjusting the weight ratio through sensitivity analysis, the overall fitness can adaptively reflect the relative contribution of network adaptability and data synergy according to the actual scenario, avoiding subjective biases introduced by fixed weights and improving the accuracy of parameter configuration.

[0055] In some embodiments, updating each of the initial configuration parameters using the comprehensive fitness to obtain several updated configuration parameters specifically includes: for each IoT terminal, calculating the first partial derivative of the comprehensive fitness with respect to the initial value of the sampling frequency in the initial configuration parameters of the current IoT terminal, and updating the initial value of the sampling frequency using the first partial derivative to obtain an updated sampling frequency value; calculating the second partial derivative of the comprehensive fitness with respect to the initial value of the communication power in the initial configuration parameters of the current IoT terminal, and updating the initial value of the communication power using the second partial derivative to obtain an updated communication power value; calculating the third partial derivative of the comprehensive fitness with respect to the initial value of the cache capacity in the initial configuration parameters of the current IoT terminal, and updating the initial value of the cache capacity using the third partial derivative to obtain an updated cache capacity value; and summing the updated sampling frequency value, the updated communication power value, and the updated cache capacity value corresponding to the current IoT terminal to obtain the updated configuration parameters corresponding to the current IoT terminal. Specifically, in each iteration, for each IoT terminal, the partial derivatives of the overall fitness with respect to the sampling frequency, communication power, and buffer capacity values ​​of the current iteration step are calculated. The partial derivative of the overall fitness with respect to the sampling frequency is multiplied by the learning rate of the current iteration step and then added to the sampling frequency value of the current iteration step to obtain the updated sampling frequency value. Similarly, the partial derivative of the overall fitness with respect to the communication power is multiplied by the learning rate of the current iteration step and then added to the communication power value of the current iteration step to obtain the updated communication power value. Finally, the partial derivative of the overall fitness with respect to the buffer capacity is multiplied by the learning rate of the current iteration step and then added to the buffer capacity value of the current iteration step. The three update values ​​are summed to obtain the cache capacity update value. Constraint truncation is performed on each of the three update values ​​to determine whether each update value exceeds the corresponding allowable constraint range. If it exceeds the maximum allowable value, the maximum allowable value is taken; if it is lower than the minimum allowable value, the minimum allowable value is taken. The constraint-truncated sampling frequency update value, communication power update value, and cache capacity update value are summarized into the update configuration parameters corresponding to the current terminal. In each iteration, the process of calculating the network layer fitness, data layer fitness, and overall fitness needs to be completely executed again using the update configuration parameters obtained in the previous iteration for the update calculation process of the current iteration number.

[0056] In some embodiments, updating each of the initial configuration parameters using the comprehensive fitness to obtain several formulas related to the updated configuration parameters specifically includes: Formula for calculating the partial derivative of sampling frequency: ; ; In the formula, For the overall fitness, the overall fitness calculated using the initial configuration parameters is used in the initial iteration, and the overall fitness calculated using the configuration parameters updated in the previous iteration is used in subsequent iterations. For data layer fitness; These are the weight coefficients for the data layer. It is a symbolic function; and For terminal indexing; For the terminal Cache utilization; For the terminal Cache utilization; This represents the total number of IoT terminals. For the terminal With terminal Coordinated adjustment weights between them; For the terminal The sampling frequency is determined by taking the initial value of the sampling frequency in the first iteration and taking the last updated value obtained in the previous iteration in subsequent iterations. For the terminal The sampling frequency is determined by taking the initial value of the sampling frequency in the first iteration and taking the last updated value obtained in the previous iteration in subsequent iterations. The preset maximum sampling frequency; It is a natural exponential function; For the terminal Data credibility; For the terminal Data credibility; Formula for calculating the partial derivative of communication power: ; ; In the formula, For overall fitness; For network layer fitness; To update and adapt the weights, which are also the weight coefficients of the network layers; For terminal indexing; For channel index; For the terminal The communication power is determined by taking the initial value of the communication power in the first iteration and taking the last updated value obtained in the previous iteration in subsequent iterations. The total number of channels; This represents the total number of IoT terminals. For channel Channel quality coefficient; For the terminal Network layer weight coefficients; For channel Bandwidth utilization; Formula for calculating the partial derivative of cache capacity: ; ; In the formula, For overall fitness; For data layer fitness; These are the weight coefficients for the data layer. For the terminal The cache capacity is determined by taking the initial value of the cache capacity in the first iteration and taking the last updated value obtained in the previous iteration in subsequent iterations. This represents the total number of IoT terminals. and For terminal indexing; For the terminal Cache utilization; For the terminal Cache utilization; This represents the total number of IoT terminals. For the terminal With terminal Coordinated adjustment weights between them; For the terminal The sampling frequency is determined by taking the initial value of the sampling frequency in the first iteration and taking the last updated value obtained in the previous iteration in subsequent iterations. For the terminal The sampling frequency is determined by taking the initial value of the sampling frequency in the first iteration and taking the last updated value obtained in the previous iteration in subsequent iterations. The preset maximum sampling frequency; It is a natural exponential function; For the terminal Data credibility; For the terminal Data credibility; It is a symbolic function; Update configuration parameters and the formula for calculating the adaptive learning rate: ; In the formula, For overall fitness; For the terminal Sampling frequency in the t-th iteration Communication power or cache capacity The initial value is taken during the initial iteration, and the last updated value obtained in the previous iteration is taken in subsequent iterations; For the terminal The configuration parameters updated in the t-th iteration; The partial derivative of the overall fitness with respect to the current configuration parameters; Let be the learning rate for the t-th iteration; The initial learning rate is set to a preset value, such as 0.05. This is the index for the number of iterations, used during the initial iteration. ; This is the preset attenuation coefficient, such as 10; It is a natural exponential function.

[0057] It should be noted that after each iteration update, the three updated parameters must be subject to constraint truncation to ensure that they do not exceed the preset allowable constraint range. The constraint range for sampling frequency is from the preset minimum sampling frequency to the preset maximum sampling frequency, the constraint range for communication power is from the preset minimum communication power to the preset maximum communication power, and the constraint range for cache capacity is from the preset minimum cache capacity to the preset maximum cache capacity.

[0058] By using comprehensive fitness to update each initial configuration parameter in gradient and iterate until the preset conditions are met, each configuration parameter can be continuously optimized along the direction of increasing comprehensive fitness. Through iterative optimization, the optimal parameter combination is actively approached, which solves the problem that the configuration results are not well adapted to the actual environment due to the inability of static rules to cope with dynamic environments in existing technologies. This provides a continuous optimization guarantee for improving the accuracy of parameter configuration.

[0059] In some embodiments, target configuration parameters corresponding to each IoT terminal are obtained until each of the updated configuration parameters meets preset conditions, so as to configure the parameters of each IoT terminal using the target configuration parameters. Specifically, this includes: after each iteration completes the parameter update, calculating the current comprehensive fitness value, comparing the comprehensive fitness value of the current iteration step with the comprehensive fitness value of the previous iteration step, and if the absolute value of the difference between the current comprehensive fitness value and the previous comprehensive fitness value is less than a preset convergence threshold (e.g., taking...). If the condition is met multiple times consecutively (e.g., 3 times), it is determined that the preset condition is met, the iteration stops, the updated configuration parameters of each terminal corresponding to the current iteration step are used as the target configuration parameters of each IoT terminal, and the target configuration parameters are sent to each IoT terminal to complete the parameter configuration. If the number of iterations exceeds the preset maximum number of iterations and the condition is still not met, the learning rate or constraint conditions are adjusted and the iteration is restarted.

[0060] It should be noted that, in the actual configuration of IoT terminal parameters, the iterative convergence threshold can be set to... The maximum number of iterations is set to fifty. If convergence is not achieved after fifty iterations, the system automatically halves the initial learning rate, resets the iteration counter, and restarts the iteration until the convergence condition is met or the adjusted maximum number of iterations is reached. The specific values ​​of the convergence threshold and the maximum number of iterations can be adjusted according to the actual application scenario and the computing power of the terminal. A stricter convergence threshold can obtain more accurate configuration parameters but requires more iterations, while a more lenient convergence threshold can reduce computation time but may sacrifice some configuration accuracy. In addition, the overall fitness can be calculated from the updated configuration parameters, and the configuration parameters that meet the allowable constraints and have the highest overall fitness are selected as the target configuration parameters.

[0061] In some embodiments, after obtaining the target configuration parameters for each IoT terminal by ensuring that each updated configuration parameter meets preset conditions, the process further includes: organizing pre-debugging results, which include target configuration parameters, overall fitness, network layer fitness, and data layer fitness; generating a pre-debugging report based on the pre-debugging results, which includes a parameter configuration table, performance indicator comparison, and anomaly handling records, where the performance indicator comparison includes communication latency and data accuracy, and the anomaly handling records include iterative convergence status; uploading the pre-debugging report and the configuration file corresponding to the target configuration parameters to the cloud database through the IoT management platform's application programming interface; during terminal deployment, controlling the terminal to automatically retrieve the configuration file corresponding to the target configuration parameters from the cloud database and complete local parameter updates; and monitoring the terminal's operating status in real time through the cloud platform, triggering an automatic restart of the pre-debugging process to achieve dynamic optimization when environmental changes cause performance degradation.

[0062] It should be noted that during the actual operation of IoT terminals, if the channel load increases dramatically or the terminal hardware fails, causing a performance degradation, the cloud platform will automatically trigger a restart of the parameter configuration process and re-execute steps S101 to S103 to update the terminal configuration parameters to adapt to the new environmental state. The communication latency is obtained based on the optimized communication power, channel quality coefficient, and the measured transmission latency of the gateway. The data accuracy is calculated based on the deviation between the collaborative data fusion value and the calibrated data of each terminal. Specifically, it is represented by the relative accuracy of a single terminal, and the data accuracy in the report is obtained by weighted averaging of multiple terminals.

[0063] For example, to verify the actual effect of the IoT terminal parameter configuration method proposed in this application, taking an industrial warehouse temperature and humidity monitoring scenario as an example, parameters are configured for three IoT temperature and humidity sensor terminals. The initial sampling frequencies of the three terminals are 10Hz, 55Hz, and 100Hz, respectively, and the initial communication powers are 1dBm, 10.5dBm, and 20dBm, respectively. During the parameter configuration process, the hardware constraints are set to a sampling frequency of 10Hz to 100Hz, a communication power of 1dBm to 20dBm, an energy consumption constraint of a maximum allowable power loss of 100dBm·h, and a service constraint of a data reliability of not less than 0.92. Under the above constraints, the sampling frequency and communication power of each terminal are iteratively optimized using the method of this application. Please see Figure 2 , Figure 2 This is an example graph illustrating the trend of the overall fitness during the gradient descent iteration process provided in this application. The graph uses the iteration number as the horizontal axis and the overall fitness as the vertical axis, showing the trend of the overall fitness during the optimization process. In the early stages of iteration (from the 1st to the 5th iteration), the overall fitness rapidly increases from 0.104 to 0.402. This is because the algorithm quickly adjusts the configuration parameters of each terminal in the initial stage, significantly improving the adaptation between the terminal and the channel, as well as the coordination consistency between terminals. In the middle stages of iteration (from the 6th to the 12th iteration), the growth rate of the overall fitness slows down, gradually increasing from 0.465 to 0.748. At this point, the configuration parameters gradually approach the optimal range, and the optimization space shrinks accordingly. In the later stages of iteration (from the 13th to the 18th iteration), the overall fitness tends to stabilize, eventually converging to 0.892, satisfying the convergence condition that the difference between adjacent iterations is less than ten to the power of negative fourth. Throughout the entire iteration process, the overall fitness curve shows a monotonically increasing trend without oscillations, indicating that the method of this application can stably and effectively find the optimal combination of configuration parameters that maximizes the overall fitness. Please see Figure 3 , Figure 3This is an example diagram illustrating the terminal sampling frequency optimization process provided in this application. The diagram uses the number of iterations as the horizontal axis and the sampling frequency as the vertical axis to show the optimization process of the sampling frequencies of the three terminals. In the initial iteration stage, the sampling frequencies of the three terminals are 10Hz, 55Hz, and 100Hz, respectively, with significant differences between them, resulting in high redundancy in multi-terminal data acquisition and low collaborative efficiency. As the iteration progresses, the sampling frequency of terminal 1 (10Hz) gradually increases, while that of terminal 3 (100Hz) continuously decreases, and that of terminal 2 (55Hz) slightly decreases. Ultimately, the sampling frequencies of the three terminals converge within a narrow range of 42.8Hz to 46.3Hz. The convergence of the sampling frequencies of the three terminals indicates that the method in this application, guided by data layer fitness, can effectively unify the sampling frequencies of multiple terminals, reduce data redundancy, improve the consistency and collaborative efficiency of multi-terminal data fusion, and avoid channel congestion caused by excessively high sampling frequencies. Please see Figure 4 , Figure 4 This is an example diagram illustrating the terminal communication power optimization process provided in this application. The diagram uses the number of iterations as the horizontal axis and communication power as the vertical axis to show the optimization process of the communication power of three terminals. At the initial iteration stage, the communication powers of the three terminals are 1dBm, 10.5dBm, and 20dBm, respectively. Terminal 1's power is too low, resulting in insufficient channel adaptation; Terminal 3's power is too high, causing energy waste; and Terminal 2's power is at an intermediate level. As the iteration progresses, the communication power of Terminal 1 continuously increases, the communication power of Terminal 3 continuously decreases, and the communication power of Terminal 2 slightly increases. Finally, the communication power of the three terminals stabilizes within the range of 12.5dBm to 16.7dBm. The communication power of the three terminals tends to be moderate and close to each other, indicating that the method in this application, guided by network layer adaptability, can effectively control energy consumption levels while ensuring channel adaptability, enabling each terminal to achieve a balanced operating state of high adaptability and low power consumption, ensuring communication stability while reducing operation and maintenance costs.

[0064] By collecting raw operational data from IoT terminals and raw channel parameters from each channel in the gateway, service-aware data from the terminal side and channel status data from the network side can be obtained. This provides real-time, multi-dimensional data sources to ensure accurate assessment of terminal data quality and network compatibility, thus providing data collection assurance for improving parameter configuration accuracy. Furthermore, by calculating the data reliability of each terminal using the raw operational data, the reliability of the sampled data from each terminal can be quantified, eliminating the interference of data quality fluctuations caused by differences in device precision or environmental interference on configuration decisions. This provides quantifiable reliability assurance for subsequent data collaboration between terminals, thereby improving parameter configuration accuracy. Accuracy provides data quality assurance; network layer adaptability is calculated using preset initial configuration parameters for each terminal and original channel parameters, quantifying the communication adaptability of each terminal under dynamic channel conditions. This allows terminals to adjust configuration parameters according to actual channel conditions to adapt to the network environment, solving the problem of insufficient terminal-channel adaptability caused by neglecting dynamic network changes in existing technologies, and providing quantitative assurance for improving parameter configuration accuracy. Data layer adaptability is calculated based on data reliability and initial configuration parameters, quantifying the degree of coordination and consistency among terminals in sampling frequency and buffer status, enabling terminals to adjust configuration parameters according to their own data... The system adjusts configuration parameters based on quality and adjacent terminal status to achieve data collaboration, addressing the inconsistency and poor fusion effects caused by neglecting inter-terminal data collaboration in existing technologies. This provides a quantitative guarantee for improving parameter configuration accuracy. A weighted fusion of network layer fitness and data layer fitness yields a comprehensive fitness score, unifying network adaptability and data collaboration under a single objective framework. This allows for comparison and trade-offs between the two optimization objectives, resolving the lack of unified metrics in existing technologies that hinder collaborative optimization across multiple objectives. This provides a unified objective guarantee for improving parameter configuration accuracy. The comprehensive fitness score is then used to adjust the initial configuration parameters. Gradient updates and iterations are performed until preset conditions are met. Configuration parameters are continuously optimized along the direction of increasing overall fitness. Through iterative optimization, the optimal parameter combination is actively approached, addressing the problem of insufficient adaptability between configuration results and actual environments caused by static rules' inability to cope with dynamic environments in existing technologies. This provides continuous optimization assurance for improving parameter configuration accuracy. The target configuration parameters obtained after meeting the preset conditions are used for actual parameter configuration of IoT terminals. The optimized parameter combination can ultimately be implemented as the terminal's operational configuration, realizing a complete closed loop from data acquisition to optimization and terminal deployment, ultimately improving the accuracy of IoT terminal parameter configuration. This application can solve the problems of difficulty in adapting multi-dimensional parameters and large deviations in configuration results caused by network dynamics and device heterogeneity during IoT terminal pre-debugging, thereby improving the accuracy of IoT terminal parameter configuration.

[0065] Based on the above embodiment of the parameter configuration method for an IoT terminal, an embodiment of the present invention provides a parameter configuration system for an IoT terminal, the parameter configuration system being used to execute the parameter configuration method for the IoT terminal.

[0066] Based on the above embodiment of the parameter configuration method for an IoT terminal, another embodiment of the present invention provides a terminal device, which includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, it implements the parameter configuration method for an IoT terminal according to any embodiment of the present invention.

[0067] For example, in this embodiment, the computer program can be divided into one or more modules, which are stored in the memory and executed by the processor to complete the present invention. The one or more modules may be a series of computer program instruction segments capable of performing a specific function, which describe the execution process of the computer program in the terminal device.

[0068] The terminal device may be a desktop computer, laptop, handheld computer, or cloud server, etc. The terminal device may include, but is not limited to, a processor and a memory.

[0069] The processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor can be a microprocessor or any conventional processor. The processor is the control center of the terminal device, connecting all parts of the terminal device via various interfaces and lines.

[0070] Based on the above-described method embodiments, another embodiment of the present invention provides a computer-readable storage medium including a stored computer program, wherein, when the computer program is executed, it controls the device where the computer-readable storage medium is located to execute the parameter configuration method of an Internet of Things terminal as described in any of the above-described method embodiments of the present invention.

[0071] The modules / units integrated in the device / terminal equipment, if implemented as software functional units and sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the above embodiments of the present invention can also be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a portable hard drive, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium, etc.

[0072] Based on the above-described method embodiments, another embodiment of the present invention provides a computer program product, including a computer program or instructions, which, when executed by a communication device, implements a parameter configuration method for an Internet of Things (IoT) terminal.

[0073] The above description represents the preferred embodiments of the present invention. It should be noted that those skilled in the art can make various improvements and modifications without departing from the principles of the present invention, and these improvements and modifications are also considered to be within the scope of protection of the present invention.

Claims

1. A parameter configuration method for an Internet of Things (IoT) terminal, characterized in that, An application in an Internet of Things (IoT) system, the IoT system comprising a gateway and a plurality of IoT terminals, the gateway comprising a plurality of channels, the gateway being connected to each of the IoT terminals, the method comprising: Collect the raw operating data corresponding to each of the IoT terminals and the raw channel parameters corresponding to each of the channels in the gateway; The data reliability of each IoT terminal is calculated using the original operating data. The original channel parameters and data reliability are input into a preset parameter optimization model. The network layer fitness is calculated using the preset initial configuration parameters corresponding to each IoT terminal and the original channel parameters. Based on the data reliability and the initial configuration parameters, the data layer fitness is calculated. The network layer fitness and the data layer fitness are weighted and fused to obtain the comprehensive fitness of the IoT system. The comprehensive fitness is used to update each of the initial configuration parameters to obtain several updated configuration parameters until each updated configuration parameter meets a preset condition, thus obtaining the target configuration parameters corresponding to each IoT terminal. The target configuration parameters are then used to configure the parameters of each IoT terminal.

2. The parameter configuration method for an IoT terminal as described in claim 1, characterized in that, The calculation of the data layer fitness based on the reliability of each data and the initial configuration parameters specifically includes: Obtain the actual amount of stored data corresponding to each of the IoT terminals; For each IoT terminal, the initial value of the cache capacity and the actual amount of stored data in the initial configuration parameters corresponding to the current IoT terminal are calculated to obtain the cache utilization rate corresponding to the current IoT terminal. The initial configuration parameters also include the initial value of the sampling frequency. Based on the cache utilization rate corresponding to each IoT terminal and the initial value of the sampling frequency in the initial configuration parameters, the consistency correction coefficient between each IoT terminal is calculated. The preset collaborative benchmark weights between the IoT terminals are corrected by using the cache utilization rate corresponding to each IoT terminal, so as to obtain the collaborative correction weights between the IoT terminals. The fitness of the data layer is calculated using the collaborative correction weights, the consistency correction coefficients, and the data credibility.

3. The parameter configuration method for an IoT terminal as described in claim 2, characterized in that, The process of setting the preset initial configuration parameters corresponding to each of the IoT terminals specifically includes: For each IoT terminal, the maximum allowed sampling frequency, minimum allowed sampling frequency, maximum allowed communication power, minimum allowed communication power, maximum allowed cache capacity, and minimum allowed cache capacity of the current IoT terminal are obtained from the preset database. The initial value of the sampling frequency is obtained by calculating using the maximum and minimum allowed sampling frequencies. The initial value of the communication power is obtained by calculating using the maximum and minimum allowed communication power values. The initial cache capacity is obtained by calculating using the maximum and minimum allowed cache capacity values. The initial values ​​of the sampling frequency, communication power, and buffer capacity are summarized to obtain the initial configuration parameters corresponding to the current IoT terminal.

4. The parameter configuration method for an IoT terminal as described in claim 3, characterized in that, The calculation of network layer fitness using preset initial configuration parameters corresponding to each of the IoT terminals and original channel parameters specifically includes: For each IoT terminal, the initial value of communication power, the preset daily average transmission duration of the terminal, and the preset maximum allowable power loss in the initial configuration parameters corresponding to the current IoT terminal are calculated to obtain the network layer weight coefficient of the current IoT terminal. For each of the aforementioned channels, the bandwidth, transmission delay, and delay jitter value in the original channel parameters corresponding to the current channel are calculated to obtain the channel quality coefficient corresponding to the current channel. The initial communication power value corresponding to each IoT terminal is calculated by combining the channel quality coefficient and the bandwidth utilization rate in the original channel parameters with the channel quality coefficient and the original channel parameters to obtain the terminal channel compatibility between each IoT terminal and each channel. The network layer fitness is obtained by calculating the channel adaptability of each terminal and the weight coefficient of each network layer.

5. The parameter configuration method for an IoT terminal as described in claim 1, characterized in that, The step of calculating the data reliability of each IoT terminal using the original operating data specifically includes: Each of the original operating data is subjected to anomaly removal processing to obtain several corrected data; Each of the corrected data is subjected to equipment calibration processing to obtain several calibration data; The calibration variance of each calibration data is calculated, and the data reliability of each IoT terminal is obtained by using the calibration variance corresponding to each IoT terminal and the preset device accuracy coefficient.

6. The parameter configuration method for an IoT terminal as described in claim 1, characterized in that, The weighted fusion of the network layer fitness and the data layer fitness to obtain the comprehensive fitness of the Internet of Things system specifically includes: The fitness of the network layer is normalized to obtain the first normalized fitness. The data layer fitness is normalized to obtain a second normalized fitness. The first normalized fitness and the second normalized fitness are weighted using preset initial fitness weights to obtain the initial fitness. Calculate the sensitivity coefficient of the initial fitness to the initial fitness weights, and use the sensitivity coefficient to update the initial fitness weights to obtain the updated fitness weights; The first normalized fitness and the second normalized fitness are weighted using the updated fitness weights to obtain the comprehensive fitness of the Internet of Things system.

7. The parameter configuration method for an IoT terminal as described in claim 3, characterized in that, The method of updating each of the initial configuration parameters using the comprehensive fitness result in several updated configuration parameters, specifically including: For each of the IoT terminals, the first partial derivative of the comprehensive fitness with respect to the initial value of the sampling frequency in the initial configuration parameters of the current IoT terminal is calculated, and the initial value of the sampling frequency is updated using the first partial derivative to obtain the updated sampling frequency value. Calculate the second partial derivative of the overall fitness with respect to the initial value of the communication power in the initial configuration parameters of the current IoT terminal, and use the second partial derivative to update the initial value of the communication power to obtain the updated value of the communication power; Calculate the third partial derivative of the overall fitness with respect to the initial value of the cache capacity in the initial configuration parameters of the current IoT terminal, and use the third partial derivative to update the initial value of the cache capacity to obtain the updated cache capacity value; The updated sampling frequency, communication power, and cache capacity values ​​corresponding to the current IoT terminal are summarized to obtain the updated configuration parameters corresponding to the current IoT terminal.

8. A parameter configuration system for an Internet of Things (IoT) terminal, characterized in that, The parameter configuration system is used to execute the parameter configuration method for the Internet of Things terminal as described in any one of claims 1 to 7.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored computer program, wherein, when the computer program is executed, it controls the device or apparatus containing the computer-readable storage medium to perform the parameter configuration method of the Internet of Things terminal as described in any one of claims 1 to 7.

10. A computer program product, comprising a computer program or instructions, characterized in that, When the computer program or instructions are executed by the communication device, they implement the parameter configuration method of the Internet of Things terminal as described in any one of claims 1 to 7.