Terminal connection method and apparatus for power internet of things, and terminal device and storage medium

By evaluating the quality of service indicators (QoS) of terminal access methods in the power Internet of Things (IoT) through a power CPS co-simulation system, and by screening and ranking these methods, the issue of rational selection of terminal access methods in the power IoT was resolved, thereby improving communication quality and efficiency.

WO2026086008A1PCT designated stage Publication Date: 2026-04-30GUANGDONG POWER GRID CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
GUANGDONG POWER GRID CO LTD
Filing Date
2024-12-25
Publication Date
2026-04-30

AI Technical Summary

Technical Problem

How to select a reasonable power Internet of Things (IoT) terminal access method to improve communication quality, especially when facing complex communication network architectures and diverse terminal devices, to ensure the reliability and efficiency of data transmission.

Method used

The power CPS co-simulation system is used to simulate the power Internet of Things and the terminals to be connected, evaluate the service quality indicators of several terminal access methods, screen out the terminal access methods that meet the threshold, and sort them according to priority indicators to finally select a reasonable access method.

Benefits of technology

It enables accurate evaluation and optimized ranking of power Internet of Things (IoT) terminal access methods, ensuring the rationality of terminal access and improving communication quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024142098_30042026_PF_FP_ABST
    Figure CN2024142098_30042026_PF_FP_ABST
Patent Text Reader

Abstract

Disclosed in the present invention are a terminal connection method and apparatus for the power Internet of Things, and a terminal device and a storage medium. The method comprises: performing simulation on the power Internet of Things and a terminal to be connected, and according to several terminal connection modes, connecting to a power Internet-of-Things simulation system a simulated terminal to be connected; calculating a quality-of-service indicator corresponding to each terminal connection mode, and using, as candidate terminal connection methods, terminal connection methods which satisfy a quality-of-service indicator threshold; then, determining priority indicators of all the candidate terminal connection methods, and then, on the basis of the priorities, determining a usage sequence of the candidate terminal connection methods; and finally, on the basis of the usage sequence, selecting a candidate terminal connection method, and connecting said terminal to the power Internet of Things. The present invention solves the technical problem of how to select a suitable terminal connection method.
Need to check novelty before this filing date? Find Prior Art

Description

Power Internet of Things (IoT) terminal access methods, devices, terminal equipment and storage media Technical Field

[0001] This invention relates to the field of Internet of Things (IoT) terminal access, and more particularly to a method, apparatus, terminal device, and storage medium for accessing power IoT terminals. Background Technology

[0002] The efficiency of power IoT terminal access and the processing efficiency of access load are highly dependent on a trusted execution environment. The main threats faced by low-power power IoT terminal devices and edge aggregation nodes include faults and errors. There are numerous terminal devices and diverse data types in the power IoT, making data supervision and service quality assurance crucial. The communication network architecture in the power IoT is complex, and the choice of terminal access method directly affects the reliability and efficiency of data transmission. How to accurately evaluate the service quality indicators of each terminal access method and select a reasonable terminal access method to improve communication quality is an urgent problem to be solved. Summary of the Invention

[0003] This invention provides a method, apparatus, terminal device, and storage medium for accessing power Internet of Things (IoT) terminals, in order to solve the technical problem of how to select a reasonable terminal access method.

[0004] To address the aforementioned technical problems, embodiments of the present invention provide a method for power Internet of Things (IoT) terminal access, comprising:

[0005] The power IoT and the terminals to be connected are simulated using the power CPS joint simulation system, resulting in the power IoT simulation system and the simulated terminals to be connected.

[0006] The simulation terminal to be connected is connected to the power Internet of Things simulation system according to several terminal access methods;

[0007] For each terminal access method, the first access time of the simulated terminal corresponding to the terminal access method is obtained, and the first access time is divided into several first time periods; the data transmission delay time, delay count, data transmission count, total number of packet losses, and total number of transmitted data packets are obtained in each first time period corresponding to the terminal access method; based on the delay time data, delay count, data transmission count, total number of packet losses, and total number of transmitted data packets, the service quality index for each first time period is calculated;

[0008] Determine whether all service quality indicators for the first time period are greater than or equal to the preset service quality indicator threshold. If so, then the terminal access method is selected as the candidate terminal access method.

[0009] For each candidate terminal access method, the performance parameters of the power Internet of Things simulation system are adjusted so that the service quality index of the candidate terminal access method is equal to the service quality index threshold. The simulation terminal is then reconnected to the adjusted power Internet of Things simulation system according to the candidate terminal access method, and the first CPU utilization, first memory utilization, disk data read / write speed, and network bandwidth utilization of the simulation terminal are obtained. Based on the first CPU utilization, first memory utilization, disk data read / write speed, and network bandwidth utilization, the priority index of the candidate terminal access method is calculated.

[0010] Based on the priority indicators of all candidate terminal access methods, the order in which the candidate terminal access methods are used is determined in ascending order of priority indicators;

[0011] According to the order of use, a method for selecting a candidate terminal to access is used to connect the terminal to the power Internet of Things.

[0012] As a preferred embodiment, the delay time data includes: total delay time, continuous delay time, and maximum delay time;

[0013] The step of calculating the service quality index for each first time period based on the latency data, latency count, data transmission count, total packet loss, and total number of transmitted data packets includes:

[0014] Based on the total delay time, continuous delay time, and maximum delay time, calculate the delay time index for each first time period;

[0015] Based on the number of delays and the number of data transmissions, calculate the delay count index for each first time period;

[0016] Based on the total number of lost packets and the total number of transmitted data packets, calculate the packet loss rate for each first time period;

[0017] Based on the aforementioned latency time index, latency frequency index, and packet loss rate index, calculate the service quality index for each first time period.

[0018] As a preferred embodiment, the formula for calculating the delay time index is:

[0019] In the formula, W(x) represents the delay time index of the x-th first time interval; t a (x) represents the total delay time of the x-th first time interval; t b (x) represents the continuous delay time of the xth first time interval; t c (x) represents the maximum delay time of the x-th first time interval; t(x) represents the duration of the x-th first time interval;

[0020] The formula for calculating the delay count index is as follows:

[0021] In the formula, E(x) represents the delay count index for the x-th first time period; s e s(x) represents the number of delays in the x-th first time interval; s(x) represents the number of data transmissions in the x-th first time interval.

[0022] The formula for calculating the packet loss rate is as follows:

[0023] In the formula, D(x) represents the packet loss rate index for the x-th time period; c d c(x) represents the total number of packets lost in the x-th first time interval; c(x) represents the total number of data packets transmitted in the x-th first time interval;

[0024] The formula for calculating the service quality indicators is as follows:

[0025] In the formula, Os(x) represents the service quality index of the xth time period.

[0026] As a preferred embodiment, the priority index is calculated using the following formula: KA(y)=[k1×k c (y)+k2×k n (y)+k3×k w (y)]×k4×k p (y);

[0027] In the formula, KA(y) represents the priority index of the access method for the y-th candidate terminal; k c (y) represents the first CPU utilization rate corresponding to the y-th candidate terminal access method; k n (y) represents the first memory utilization rate corresponding to the access method of the y-th candidate terminal; k w (y) represents the disk data read / write speed corresponding to the y-th candidate terminal access method; k p (y) represents the network bandwidth utilization rate corresponding to the y-th candidate terminal access method; k1 is the weight coefficient of the first CPU utilization rate; k2 is the weight coefficient of the first memory utilization rate; k3 is the weight coefficient of disk data read and write speed; k4 is the weight coefficient of network bandwidth utilization rate.

[0028] As a preferred embodiment, the method of selecting candidate terminals for access according to the usage order, and connecting the candidate terminals to the power Internet of Things, includes:

[0029] Repeat the terminal access operation until the terminal access is successful;

[0030] The terminal access operation includes:

[0031] According to the current iterative terminal access method, the terminal to be accessed is connected to the power Internet of Things; wherein, the iterative terminal access method in the first iteration is the terminal access method ranked first in the order of use;

[0032] The terminal's second CPU utilization, second memory utilization, and network latency are obtained during the second access time; wherein, the second access time is a period of time after the terminal accesses the network.

[0033] The stable computing power index of the terminal is calculated based on the second CPU utilization, the second memory utilization, and the network latency.

[0034] Determine whether the stable computing power index is less than or equal to the preset stable computing power index threshold. If yes, the terminal access is successful; otherwise, the terminal access fails, and the next candidate terminal access method in the usage sequence is used as the new iterative terminal access method.

[0035] As a preferred embodiment, the step of calculating the stable computing power index of the terminal based on the second CPU utilization, the second memory utilization, and network latency includes:

[0036] The second access time is divided into several second time periods;

[0037] Based on the second CPU utilization rate, calculate the average CPU utilization rate corresponding to each second time period, and determine the maximum and minimum average CPU utilization rates in all second time periods.

[0038] Based on the second memory usage rate, calculate the average memory usage rate corresponding to each second time period, and determine the maximum and minimum average memory usage rates in all second time periods.

[0039] Based on the network latency, calculate the average network latency corresponding to each second time period, and determine the maximum and minimum average network latency values ​​for all second time periods.

[0040] The CPU efficiency index of the terminal is calculated based on the maximum and minimum average CPU utilization.

[0041] The memory efficiency index of the terminal is calculated based on the maximum and minimum average memory usage.

[0042] Calculate the network performance metrics of the terminal based on the maximum and minimum average network latency.

[0043] The stable computing power index of the terminal is calculated based on the CPU efficiency index, memory efficiency index, and network performance index.

[0044] As a preferred embodiment, the formula for calculating the CPU efficiency index is:

[0045] In the formula, cp represents the CPU efficiency index; maxc represents the maximum average CPU utilization; minc represents the minimum average CPU utilization; and a is the CPU energy efficiency coefficient.

[0046] The formula for calculating the memory efficiency index is as follows:

[0047] In the formula, nc represents the memory efficiency index; maxh represents the maximum average memory utilization; minh represents the minimum average memory utilization; and H represents the total memory size of the terminal. This represents the average memory size across all second time periods;

[0048] The formula for calculating the network performance index is as follows:

[0049] In the formula, wl represents the network performance index; maxj represents the maximum average network latency; minj represents the minimum average network latency; and J represents the average network latency required by the terminal service. This represents the average network latency across all second time periods;

[0050] The formula for calculating the stable computing power index is as follows:

[0051] In the formula, SCI represents the stable computing power index.

[0052] Based on the above embodiments, another embodiment of the present invention provides a power Internet of Things terminal access device, including: a simulation module, a data acquisition module, a terminal access method screening module, and a terminal access module;

[0053] The simulation module is used to simulate the power Internet of Things and the terminal to be connected through the power CPS joint simulation system to obtain the power Internet of Things simulation system and the simulation terminal to be connected; and to connect the simulation terminal to be connected to the power Internet of Things simulation system according to several terminal access methods.

[0054] The data acquisition module is used to acquire, for each terminal access method, the first access time of the simulated terminal corresponding to the terminal access method, and divide the first access time into several first time periods; and acquire the data transmission delay time, delay count, data transmission count, total number of packet losses, and total number of transmitted data packets in each first time period corresponding to the terminal access method.

[0055] The terminal access method filtering module is used to calculate the service quality index for each first time period based on the latency data, latency count, data transmission count, total number of packet loss, and total number of transmitted data packets for each terminal access method; and to determine whether the service quality index for all first time periods is greater than or equal to a preset service quality index threshold. If so, the terminal access method is selected as a candidate terminal access method.

[0056] The terminal access module is used to adjust the performance parameters of the power Internet of Things simulation system for each candidate terminal access method, so that the service quality index of the candidate terminal access method is equal to the service quality index threshold; and to reconnect the simulation terminal to the adjusted power Internet of Things simulation system according to the candidate terminal access method.

[0057] The data acquisition module is also used to acquire the first CPU utilization rate, the first memory utilization rate, the disk data read / write speed, and the network bandwidth utilization rate of the simulation terminal;

[0058] The terminal access module is further configured to calculate the priority index of the candidate terminal access method based on the first CPU utilization rate, the first memory utilization rate, the disk data read / write speed, and the network bandwidth utilization rate; determine the usage order of the candidate terminal access methods according to the priority index of all candidate terminal access methods in ascending order of priority index; select the candidate terminal access method according to the usage order, and connect the candidate terminal to the power Internet of Things.

[0059] Based on the above embodiments, another embodiment of the present invention provides a terminal device, the terminal device including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the processor executes the computer program to implement the power Internet of Things terminal access method described in the above embodiments of the invention.

[0060] Based on the above embodiments, another embodiment of the present invention provides a storage medium, the storage medium including a stored computer program, wherein, when the computer program is running, it controls the device where the storage medium is located to execute the power Internet of Things terminal access method described in the above embodiments of the invention.

[0061] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:

[0062] This invention simulates a power Internet of Things (IoT) and the terminals to be connected. According to several terminal access methods, the simulated terminals are connected to the power IoT simulation system. The service quality index (SMI) corresponding to each terminal access method is calculated, and terminal access methods that meet the SMI threshold are selected as candidate terminal access methods. Then, the priority index of all candidate terminal access methods is determined, and the usage order of the candidate terminal access methods is determined according to the priority. Finally, the candidate terminal access method is selected according to the usage order, and the terminal to be connected is connected to the power IoT. This invention can accurately evaluate the SMI of each terminal access method, thereby screening out candidate terminal access methods, and then prioritizing the candidate access methods to determine the usage order, ultimately selecting a reasonable terminal access method. Attached Figure Description

[0063] Figure 1 is a flowchart illustrating a power Internet of Things (IoT) terminal access method according to an embodiment of the present invention;

[0064] Figure 2 is a schematic diagram of the structure of a power Internet of Things terminal access device provided in an embodiment of the present invention. Detailed Implementation

[0065] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0066] Example 1

[0067] Please refer to Figure 1, which is a flowchart illustrating a power Internet of Things (IoT) terminal access method according to an embodiment of the present invention, including:

[0068] S1. Through the power CPS joint simulation system, the power Internet of Things and the terminals to be connected are simulated to obtain the power Internet of Things simulation system and the simulation terminals to be connected.

[0069] In step S1, a virtual network environment is built using the simulation platform of the power CPS co-simulation system to simulate the communication network architecture of a real power Internet of Things (IoT). Network parameters are configured to ensure normal communication between devices. The communication relationships between virtual sensors, edge computing nodes, and terminals are configured to ensure that sensor data can be transmitted to other devices and systems in the simulation platform through the terminals. The terminal devices to be connected are also simulated.

[0070] S2. Connect the simulation terminal to be connected to the power Internet of Things simulation system according to several terminal access methods.

[0071] It should be noted that terminal access methods are divided into four categories: wired access, wireless access, hybrid access, and other access methods. Among them, wired access methods include, but are not limited to, telephone line access, Ethernet access, and fiber optic access; wireless access methods include, but are not limited to, Wi-Fi access, cellular network access, and satellite access; hybrid access methods include, but are not limited to, dual-mode access and multi-hop access; and other access methods include, but are not limited to, serial access, infrared access, and Bluetooth access.

[0072] In step S2, several pre-set terminal access methods to be tested are obtained. According to each terminal access method, the simulation terminal is connected to the power Internet of Things simulation system so that the terminal access method can be tested through the simulation system to determine the access effect of each terminal access method and select a suitable terminal access method to be applied to the corresponding real scenario.

[0073] S3. For each terminal access method, obtain the first access time of the simulated terminal corresponding to the terminal access method, and divide the first access time into several first time periods; obtain the data transmission delay time, delay count, data transmission count, total number of packet losses, and total number of transmitted data packets in each first time period corresponding to the terminal access method; calculate the service quality index for each first time period based on the delay time data, delay count, data transmission count, total number of packet losses, and total number of transmitted data packets.

[0074] It should be noted that the first access time is a preset access time period used to test the effectiveness of the terminal access method during this period.

[0075] In step S3, the first access time is divided into several equal-length first time periods, and the data transmission delay time, number of delays, number of data transmissions, total number of packet losses and total number of transmitted data packets are obtained in each first time period. Based on these data, the service quality index of the terminal in each first time period is calculated.

[0076] For each terminal access method, calculate the corresponding service quality indicators for all first time periods.

[0077] In a preferred embodiment, the delay time data includes: total delay time, continuous delay time, and maximum delay time;

[0078] The step of calculating the service quality index for each first time period based on the latency data, latency count, data transmission count, total packet loss, and total number of transmitted data packets includes:

[0079] Based on the total delay time, continuous delay time, and maximum delay time, calculate the delay time index for each first time period;

[0080] Based on the number of delays and the number of data transmissions, calculate the delay count index for each first time period;

[0081] Based on the total number of lost packets and the total number of transmitted data packets, calculate the packet loss rate for each first time period;

[0082] Based on the aforementioned latency time index, latency frequency index, and packet loss rate index, calculate the service quality index for each first time period.

[0083] It should be noted that continuous delay time refers to the sum of the delay times of adjacent delays with a time interval less than or equal to the preset duration.

[0084] In this embodiment, a latency index is calculated for each first time period based on the total latency, continuous latency, and maximum latency of data transmission within each first time period. A latency frequency index is calculated for each first time period based on the number of data transmission delays and the number of data transmissions within each first time period. A packet loss rate index is calculated for each first time period based on the latency index, latency frequency index, and packet loss rate index. Finally, a service quality index is calculated for each first time period based on the latency index, latency frequency index, and packet loss rate index.

[0085] In a preferred embodiment, the formula for calculating the delay time index is:

[0086] In the formula, W(x) represents the delay time index of the x-th first time interval; t a (x) represents the total delay time of the x-th first time interval; t b (x) represents the continuous delay time of the xth first time interval; t c (x) represents the maximum delay time of the x-th first time interval; t(x) represents the duration of the x-th first time interval;

[0087] The formula for calculating the delay count index is as follows:

[0088] In the formula, E(x) represents the delay count index for the x-th first time period; s e s(x) represents the number of delays in the x-th first time interval; s(x) represents the number of data transmissions in the x-th first time interval.

[0089] The formula for calculating the packet loss rate is as follows:

[0090] In the formula, D(x) represents the packet loss rate index for the x-th time period; c d c(x) represents the total number of packets lost in the x-th first time interval; c(x) represents the total number of data packets transmitted in the x-th first time interval;

[0091] The formula for calculating the service quality indicators is as follows:

[0092] In the formula, Os(x) represents the service quality index of the xth time period.

[0093] S4. Determine whether all service quality indicators for the first time period are greater than or equal to the preset service quality indicator threshold. If so, then use the terminal access method as the candidate terminal access method.

[0094] In step S4, based on the preset service quality index threshold, it is determined that the service quality index of the terminal access method in all first time periods corresponding to the first access time is greater than or equal to the service quality index threshold. If so, it indicates that the terminal access method meets the service quality requirements of the simulation terminal, and the access method is selected as a candidate terminal access method.

[0095] After performing the above comparison operation on the service quality indicators corresponding to all terminal access methods, all candidate terminal access methods are obtained.

[0096] S5. For each candidate terminal access method, adjust the performance parameters of the power Internet of Things simulation system so that the service quality index of the candidate terminal access method is equal to the service quality index threshold; reconnect the simulation terminal to the adjusted power Internet of Things simulation system according to the candidate terminal access method, and obtain the first CPU utilization rate, first memory utilization rate, disk data read / write speed, and network bandwidth utilization rate of the simulation terminal; calculate the priority index of the candidate terminal access method based on the first CPU utilization rate, first memory utilization rate, disk data read / write speed, and network bandwidth utilization rate.

[0097] In step S5, for each candidate terminal access method, the performance parameters of the power IoT simulation system are adjusted. Specifically, parameters related to CPU utilization and latency are adjusted to ensure that the service quality index corresponding to the candidate terminal access method equals the service quality index threshold. After adjustment, the simulation terminal is reconnected to the adjusted power IoT simulation system, and the simulation terminal's first CPU utilization, first memory utilization, disk data read / write speed, and network bandwidth utilization are obtained. Then, the priority index of the candidate terminal access method is calculated based on the obtained data.

[0098] It should be noted that adjusting the service quality index to equal the service quality index threshold is to test the effect of the terminal access method under the extreme condition that the service quality index can be met. Furthermore, based on the effect under the extreme condition, priority index is calculated for all candidate terminal access methods to evaluate the priority of the terminal access methods.

[0099] In a preferred embodiment, the priority index is calculated using the following formula: KA(y)=[k1×k c (y)+k2×k n (y)+k3×k w (y)]×k4×k p (y);

[0100] In the formula, KA(y) represents the priority index of the access method for the y-th candidate terminal; k c (y) represents the first CPU utilization rate corresponding to the y-th candidate terminal access method; k n (y) represents the first memory utilization rate corresponding to the access method of the y-th candidate terminal; k w (y) represents the disk data read / write speed corresponding to the y-th candidate terminal access method; k p (y) represents the network bandwidth utilization rate corresponding to the y-th candidate terminal access method; k1 is the weight coefficient of the first CPU utilization rate; k2 is the weight coefficient of the first memory utilization rate; k3 is the weight coefficient of disk data read and write speed; k4 is the weight coefficient of network bandwidth utilization rate.

[0101] It should be noted that k1+k2+k3+k4=1, and the weighting coefficients can be determined according to specific circumstances and needs.

[0102] S6. Based on the priority indicators of all candidate terminal access methods, determine the order in which the candidate terminal access methods are used in ascending order of priority indicators.

[0103] It should be noted that candidate terminal access methods with lower priority indicators are listed first.

[0104] S7. Select the terminal access method according to the usage order, and connect the terminal to be accessed to the power Internet of Things.

[0105] In step S7, according to the order of use of the candidate terminal access methods, the corresponding candidate terminal access methods are used in sequence to connect the terminal to the power Internet of Things in the real scenario, guiding the terminal to successfully access the Internet.

[0106] In a preferred embodiment, the method of selecting candidate terminals for access according to the usage order, which connects the candidate terminals to the power Internet of Things, includes:

[0107] Repeat the terminal access operation until the terminal access is successful;

[0108] The terminal access operation includes:

[0109] According to the current iterative terminal access method, the terminal to be accessed is connected to the power Internet of Things; wherein, the iterative terminal access method in the first iteration is the terminal access method ranked first in the order of use;

[0110] The terminal's second CPU utilization, second memory utilization, and network latency are obtained during the second access time; wherein, the second access time is a period of time after the terminal accesses the network.

[0111] The stable computing power index of the terminal is calculated based on the second CPU utilization, the second memory utilization, and the network latency.

[0112] Determine whether the stable computing power index is less than or equal to the preset stable computing power index threshold. If yes, the terminal access is successful; otherwise, the terminal access fails, and the next candidate terminal access method in the usage sequence is used as the new iterative terminal access method.

[0113] It should be noted that the second access time refers to a period of time after the terminal connects, used to test whether the terminal access method can successfully connect.

[0114] In this embodiment, the terminal access operation is repeatedly executed according to the order of use of the candidate terminal access methods, connecting the terminal to the power Internet of Things according to the corresponding candidate terminal access method. For each candidate terminal access method, the second CPU utilization rate, second memory utilization rate, and network latency of the terminal are obtained within the second access time. Based on the obtained data, the stable computing power index of the terminal is calculated. Then, it is determined whether the stable computing power index is less than or equal to the preset stable computing power index threshold. If so, it indicates that the terminal access is successful and the loop exits. If not, it indicates that the terminal access has failed, and the next candidate terminal access method in the usage sequence is used as the new terminal access method for the next iteration, and the terminal access operation continues to be repeated.

[0115] In a preferred embodiment, calculating the stable computing power index of the terminal based on the second CPU utilization, the second memory utilization, and network latency includes:

[0116] The second access time is divided into several second time periods;

[0117] Based on the second CPU utilization rate, calculate the average CPU utilization rate corresponding to each second time period, and determine the maximum and minimum average CPU utilization rates in all second time periods.

[0118] Based on the second memory usage rate, calculate the average memory usage rate corresponding to each second time period, and determine the maximum and minimum average memory usage rates in all second time periods.

[0119] Based on the network latency, calculate the average network latency corresponding to each second time period, and determine the maximum and minimum average network latency values ​​for all second time periods.

[0120] The CPU efficiency index of the terminal is calculated based on the maximum and minimum average CPU utilization.

[0121] The memory efficiency index of the terminal is calculated based on the maximum and minimum average memory usage.

[0122] Calculate the network performance metrics of the terminal based on the maximum and minimum average network latency.

[0123] The stable computing power index of the terminal is calculated based on the CPU efficiency index, memory efficiency index, and network performance index.

[0124] In this embodiment, the second access time is divided into several equal-length second time periods, and the average CPU utilization, average memory utilization, and average network latency are calculated in each second time period. Then, the maximum and minimum values ​​of all average CPU utilization, average memory utilization, and average network latency are determined. Based on these data, the CPU efficiency index, memory efficiency index, and network performance index of the terminal are calculated, and the stable computing power index of the terminal is further calculated.

[0125] In a preferred embodiment, the formula for calculating the CPU efficiency index is:

[0126] In the formula, cp represents the CPU efficiency index; maxc represents the maximum average CPU utilization; minc represents the minimum average CPU utilization; and a is the CPU energy efficiency coefficient.

[0127] The formula for calculating the memory efficiency index is as follows:

[0128] In the formula, nc represents the memory efficiency index; maxh represents the maximum average memory utilization; minh represents the minimum average memory utilization; and H represents the total memory size of the terminal. This represents the average memory size across all second time periods;

[0129] The formula for calculating the network performance index is as follows:

[0130] In the formula, wl represents the network performance index; maxj represents the maximum average network latency; minj represents the minimum average network latency; and J represents the average network latency required by the terminal service. This represents the average network latency across all second time periods;

[0131] The formula for calculating the stable computing power index is as follows:

[0132] In the formula, SCI represents the stable computing power index.

[0133] Example 2

[0134] Please refer to Figure 2, which is a structural schematic diagram of a power Internet of Things (IoT) terminal access device according to an embodiment of the present invention, including: a simulation module, a data acquisition module, a terminal access method screening module, and a terminal access module;

[0135] The simulation module is used to simulate the power Internet of Things and the terminal to be connected through the power CPS joint simulation system to obtain the power Internet of Things simulation system and the simulation terminal to be connected; and to connect the simulation terminal to be connected to the power Internet of Things simulation system according to several terminal access methods.

[0136] The data acquisition module is used to acquire, for each terminal access method, the first access time of the simulated terminal corresponding to the terminal access method, and divide the first access time into several first time periods; and acquire the data transmission delay time, delay count, data transmission count, total number of packet losses, and total number of transmitted data packets in each first time period corresponding to the terminal access method.

[0137] The terminal access method filtering module is used to calculate the service quality index for each first time period based on the latency data, latency count, data transmission count, total number of packet loss, and total number of transmitted data packets for each terminal access method; and to determine whether the service quality index for all first time periods is greater than or equal to a preset service quality index threshold. If so, the terminal access method is selected as a candidate terminal access method.

[0138] The terminal access module is used to adjust the performance parameters of the power Internet of Things simulation system for each candidate terminal access method, so that the service quality index of the candidate terminal access method is equal to the service quality index threshold; and to reconnect the simulation terminal to the adjusted power Internet of Things simulation system according to the candidate terminal access method.

[0139] The data acquisition module is also used to acquire the first CPU utilization rate, the first memory utilization rate, the disk data read / write speed, and the network bandwidth utilization rate of the simulation terminal;

[0140] The terminal access module is further configured to calculate the priority index of the candidate terminal access method based on the first CPU utilization rate, the first memory utilization rate, the disk data read / write speed, and the network bandwidth utilization rate; determine the usage order of the candidate terminal access methods according to the priority index of all candidate terminal access methods in ascending order of priority index; select the candidate terminal access method according to the usage order, and connect the candidate terminal to the power Internet of Things.

[0141] Example 3

[0142] Accordingly, this 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 power Internet of Things terminal access method described in the above-described embodiments.

[0143] Example 4

[0144] Accordingly, embodiments of the present invention provide a storage medium, the storage medium including a stored computer program, wherein, when the computer program is running, it controls the device where the storage medium is located to execute the power Internet of Things terminal access method described in the above embodiments of the invention.

[0145] It should be noted that the device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Furthermore, in the accompanying drawings of the device embodiments provided by this invention, the connection relationships between modules indicate that they have communication connections, which can be specifically implemented as one or more communication buses or signal lines. Those skilled in the art can understand and implement this without any creative effort.

[0146] Those skilled in the art will clearly understand that, for convenience and brevity, the specific working process of the device described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

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

[0148] 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. The general-purpose processor can be a microprocessor or any conventional processor. The processor is the control center of the device, connecting various parts of the device via various interfaces and lines.

[0149] The memory can be used to store the computer program. The processor implements various functions of the device by running or executing the computer program stored in the memory and calling data stored in the memory. The memory may mainly include a program storage area and a data storage area. The program storage area may store the operating system, applications required for at least one function, etc.; the data storage area may store data created based on the use of the mobile phone, etc. In addition, the memory may include high-speed random access memory, and may also include non-volatile memory, such as hard disk, RAM, plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, at least one disk storage device, flash memory device, or other volatile solid-state storage device.

[0150] The storage medium is a storage medium in which the computer program is stored. When executed by a processor, the computer program 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 file, or some intermediate form. The computer-readable medium can include any entity or device capable of carrying the computer program code, recording media, USB flash drive, portable hard drive, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media, etc. It should be noted that the content included in the computer-readable medium can be appropriately added or removed according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electrical carrier signals and telecommunication signals.

[0151] 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 method for accessing a power Internet of Things (IoT) terminal, characterized in that, include: The power IoT and the terminals to be connected are simulated using the power CPS joint simulation system, resulting in the power IoT simulation system and the simulated terminals to be connected. The simulation terminal to be connected is connected to the power Internet of Things simulation system according to several terminal access methods; For each terminal access method, the first access time of the simulated terminal corresponding to the terminal access method is obtained, and the first access time is divided into several first time periods; the data transmission delay time, delay count, data transmission count, total number of packet losses, and total number of transmitted data packets are obtained in each first time period corresponding to the terminal access method; based on the delay time data, delay count, data transmission count, total number of packet losses, and total number of transmitted data packets, the service quality index for each first time period is calculated; Determine whether all service quality indicators for the first time period are greater than or equal to the preset service quality indicator threshold. If so, then the terminal access method is selected as the candidate terminal access method. For each candidate terminal access method, the performance parameters of the power Internet of Things simulation system are adjusted so that the service quality index of the candidate terminal access method is equal to the service quality index threshold. The simulation terminal is then reconnected to the adjusted power Internet of Things simulation system according to the candidate terminal access method, and the first CPU utilization, first memory utilization, disk data read / write speed, and network bandwidth utilization of the simulation terminal are obtained. Based on the first CPU utilization, first memory utilization, disk data read / write speed, and network bandwidth utilization, the priority index of the candidate terminal access method is calculated. Based on the priority indicators of all candidate terminal access methods, the order in which the candidate terminal access methods are used is determined in ascending order of priority indicators; According to the order of use, a method for selecting a candidate terminal to access is used to connect the terminal to the power Internet of Things.

2. The power Internet of Things terminal access method as described in claim 1, characterized in that, The delay time data includes: total delay time, continuous delay time, and maximum delay time; The step of calculating the service quality index for each first time period based on the latency data, latency count, data transmission count, total packet loss, and total number of transmitted data packets includes: Based on the total delay time, continuous delay time, and maximum delay time, calculate the delay time index for each first time period; Based on the number of delays and the number of data transmissions, calculate the delay count index for each first time period; Based on the total number of lost packets and the total number of transmitted data packets, calculate the packet loss rate for each first time period; Based on the aforementioned latency time index, latency frequency index, and packet loss rate index, calculate the service quality index for each first time period.

3. The power Internet of Things terminal access method as described in claim 2, characterized in that, The formula for calculating the delay time index is as follows: In the formula, W(x) represents the delay time index of the x-th first time interval; t a (x) represents the total delay time of the x-th first time interval; t b (x) represents the continuous delay time of the xth first time interval; t c (x) represents the maximum delay time of the x-th first time interval; t(x) represents the duration of the x-th first time interval; The formula for calculating the delay count index is as follows: In the formula, E(x) represents the delay count index for the x-th first time period; s e s(x) represents the number of delays in the x-th first time interval; s(x) represents the number of data transmissions in the x-th first time interval. The formula for calculating the packet loss rate is as follows: In the formula, D(x) represents the packet loss rate index for the x-th time period; c d c(x) represents the total number of packets lost in the x-th first time interval; c(x) represents the total number of data packets transmitted in the x-th first time interval; The formula for calculating the service quality indicators is as follows: In the formula, Os(x) represents the service quality index of the xth time period.

4. The power Internet of Things terminal access method as described in claim 1, characterized in that, The formula for calculating the priority index is: KA(y)=[k1×k c (y)+k2×k n (y)+k3×k w (y)]×k4×k p (y); In the formula, KA(y) represents the priority index of the access method for the y-th candidate terminal; k c (y) represents the first CPU utilization rate corresponding to the y-th candidate terminal access method; k n (y) represents the first memory utilization rate corresponding to the access method of the y-th candidate terminal; k w (y) represents the disk data read / write speed corresponding to the y-th candidate terminal access method; k p (y) represents the network bandwidth utilization rate corresponding to the y-th candidate terminal access method; k1 is the weight coefficient of the first CPU utilization rate; k2 is the weight coefficient of the first memory utilization rate; k3 is the weight coefficient of disk data read and write speed; k4 is the weight coefficient of network bandwidth utilization rate.

5. The power Internet of Things terminal access method as described in claim 1, characterized in that, The method for selecting candidate terminals for access according to the usage order, which connects the candidate terminals to the power Internet of Things, includes: Repeat the terminal access operation until the terminal access is successful; The terminal access operation includes: According to the current iterative terminal access method, the terminal to be accessed is connected to the power Internet of Things; wherein, the iterative terminal access method in the first iteration is the terminal access method ranked first in the order of use; The terminal's second CPU utilization, second memory utilization, and network latency are obtained during the second access time; wherein, the second access time is a period of time after the terminal accesses the network. The stable computing power index of the terminal is calculated based on the second CPU utilization, the second memory utilization, and the network latency. Determine whether the stable computing power index is less than or equal to the preset stable computing power index threshold. If yes, the terminal access is successful; otherwise, the terminal access fails, and the next candidate terminal access method in the usage sequence is used as the new iterative terminal access method.

6. The power Internet of Things terminal access method as described in claim 5, characterized in that, The step of calculating the stable computing power index of the terminal based on the second CPU utilization, the second memory utilization, and network latency includes: The second access time is divided into several second time periods; Based on the second CPU utilization rate, calculate the average CPU utilization rate corresponding to each second time period, and determine the maximum and minimum average CPU utilization rates in all second time periods. Based on the second memory usage rate, calculate the average memory usage rate corresponding to each second time period, and determine the maximum and minimum average memory usage rates in all second time periods. Based on the network latency, calculate the average network latency corresponding to each second time period, and determine the maximum and minimum average network latency values ​​for all second time periods. The CPU efficiency index of the terminal is calculated based on the maximum and minimum average CPU utilization. The memory efficiency index of the terminal is calculated based on the maximum and minimum average memory usage. Calculate the network performance metrics of the terminal based on the maximum and minimum average network latency. The stable computing power index of the terminal is calculated based on the CPU efficiency index, memory efficiency index, and network performance index.

7. The power Internet of Things terminal access method as described in claim 6, characterized in that, The formula for calculating the CPU efficiency index is as follows: In the formula, cp represents the CPU efficiency index; maxc represents the maximum average CPU utilization; minc represents the minimum average CPU utilization; and a is the CPU energy efficiency coefficient. The formula for calculating the memory efficiency index is as follows: In the formula, nc represents the memory efficiency index; maxh represents the maximum average memory utilization; minh represents the minimum average memory utilization; and H represents the total memory size of the terminal. This represents the average memory size across all second time periods; The formula for calculating the network performance index is as follows: In the formula, wl represents the network performance index; maxj represents the maximum average network latency; minj represents the minimum average network latency; and J represents the average network latency required by the terminal service. This represents the average network latency across all second time periods; The formula for calculating the stable computing power index is as follows: In the formula, SCI represents the stable computing power index.

8. A power Internet of Things (IoT) terminal access device, characterized in that, include: Simulation module, data acquisition module, terminal access method filtering module, and terminal access module; The simulation module is used to simulate the power Internet of Things and the terminal to be connected through the power CPS joint simulation system to obtain the power Internet of Things simulation system and the simulation terminal to be connected; and to connect the simulation terminal to be connected to the power Internet of Things simulation system according to several terminal access methods. The data acquisition module is used to acquire, for each terminal access method, the first access time of the simulated terminal corresponding to the terminal access method, and divide the first access time into several first time periods; and acquire the data transmission delay time, delay count, data transmission count, total number of packet losses, and total number of transmitted data packets in each first time period corresponding to the terminal access method. The terminal access method filtering module is used to calculate the service quality index for each first time period based on the latency data, latency count, data transmission count, total number of packet loss, and total number of transmitted data packets for each terminal access method; and to determine whether the service quality index for all first time periods is greater than or equal to a preset service quality index threshold. If so, the terminal access method is selected as a candidate terminal access method. The terminal access module is used to adjust the performance parameters of the power Internet of Things simulation system for each candidate terminal access method, so that the service quality index of the candidate terminal access method is equal to the service quality index threshold; and to reconnect the simulation terminal to the adjusted power Internet of Things simulation system according to the candidate terminal access method. The data acquisition module is also used to acquire the first CPU utilization rate, the first memory utilization rate, the disk data read / write speed, and the network bandwidth utilization rate of the simulation terminal; The terminal access module is further configured to calculate the priority index of the candidate terminal access method based on the first CPU utilization rate, the first memory utilization rate, the disk data read / write speed, and the network bandwidth utilization rate; determine the usage order of the candidate terminal access methods according to the priority index of all candidate terminal access methods in ascending order of priority index; select the candidate terminal access method according to the usage order, and connect the candidate terminal to the power Internet of Things.

9. A terminal device, characterized in that, It includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the processor executes the computer program to implement the power Internet of Things terminal access method as described in any one of claims 1 to 7.

10. A storage medium, characterized in that, The storage medium includes a stored computer program, wherein, when the computer program is executed, it controls the device containing the storage medium to perform the power Internet of Things terminal access method as described in any one of claims 1 to 7.