Power Internet of Things terminal access method and device, terminal equipment and storage medium
Through the combined simulation system of power CPS, the power Internet of Things and the terminal to be accessed are simulated, evaluated and screened, and the terminal access method is solved, and the problem of how to choose a reasonable terminal access method to improve the communication quality of power Internet of Things is achieved efficiently Terminal access and high-quality communication services.
Patent Information
- Application Number
- CN202411474828.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-22
- Publication Date
- 2025-02-07
- Estimated Expiration
- 2044-10-22
AI Technical Summary
How to choose a reasonable terminal access method to improve the quality of power IoT communications, especially in the face of diverse data types and complex communication network architectures.
Through the combined power CPS simulation system, the power Internet of Things and the terminals to be accessed are simulated, the service quality indicators of each terminal access method are evaluated, and the access method to be selected that meets the threshold is selected, and the usage order is determined based on the priority indicators. Finally, the final Choose a reasonable terminal access method.
It realizes the accurate evaluation of service quality indicators of each terminal access method, screens out reasonable access methods, and improves communication quality and access efficiency.
Smart Images

Figure CN119402941A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of Internet of Things terminal access, and in particular to a power Internet of Things terminal access method, device, terminal equipment and storage medium. Background Art
[0002] The efficiency of power Internet of Things terminal access and the processing efficiency of access load are highly dependent on the trusted execution environment. The main threats faced by low-power power Internet of Things terminal devices and edge aggregation nodes include failures and errors. There are many terminal devices in the power Internet of Things and the data types are diverse. Data supervision and service quality assurance are crucial. The communication network architecture in the power Internet of Things is complex. The choice of terminal access method will directly affect 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] The present invention provides a power Internet of Things terminal access method, device, terminal equipment and storage medium to solve the technical problem of how to select a reasonable terminal access method.
[0004] In order to solve the above technical problems, an embodiment of the present invention provides a method for accessing a power Internet of Things terminal, comprising:
[0005] 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;
[0006] According to several terminal access methods, the simulation terminal to be accessed is connected to the power Internet of Things simulation system;
[0007] For each terminal access mode, obtain the first access time of the simulated terminal corresponding to the terminal access mode, and divide the first access time into a plurality of first time periods; obtain the data transmission delay time data, delay times, data transmission times, total packet loss and total number of transmitted data packets in each first time period corresponding to the terminal access mode; calculate the service quality index of each first time period according to the delay time data, delay times, data transmission times, total packet loss and total number of transmitted data packets;
[0008] Determine whether the service quality indicators of all the first time periods are greater than or equal to a preset service quality indicator threshold, and if so, use the terminal access method as a candidate terminal access method;
[0009] For each terminal access method to be selected, adjust the performance parameters of the electric power Internet of Things simulation system so that the service quality index of the terminal access method to be selected is equal to the service quality index threshold; reconnect the simulation terminal to the adjusted electric power Internet of Things simulation system according to the terminal access method to be selected, and obtain the first CPU usage rate, first memory usage rate, disk data read and write speed and network bandwidth usage rate of the simulation terminal; calculate the priority index of the terminal access method to be selected according to the first CPU usage rate, the first memory usage rate, the disk data read and write speed and the network bandwidth usage rate;
[0010] According to the priority indicators of all the terminal access methods to be selected, the order of using the terminal access methods to be selected is determined in ascending order of the priority indicators;
[0011] A method for accessing a terminal to be selected is selected according to the usage order, and the terminal to be accessed is connected to the electric power Internet of Things.
[0012] As a preferred solution, the delay time data includes: total delay time, continuous delay time and maximum delay time;
[0013] The calculating of the service quality index of each first time period according to the delay time data, the number of delays, the number of data transmissions, the total number of packet losses and the total number of transmitted data packets includes:
[0014] Calculate a delay time index for each first time period according to the total delay time, the continuous delay time and the maximum delay time;
[0015] Calculate a delay number index for each first time period according to the delay number and the data transmission number;
[0016] Calculate the packet loss rate index of each first time period according to the total number of packet losses and the total number of transmitted data packets;
[0017] A service quality indicator for each first time period is calculated according to the delay time indicator, the delay number indicator and the packet loss rate indicator.
[0018] As a preferred solution, the calculation formula of the delay time index is:
[0019]
[0020] Where W(x) represents the delay time index of the xth first time period; t a (x) represents the total delay time of the xth first time period; t b (x) represents the continuous delay time of the xth first time period; t c(x) represents the maximum delay time of the xth first time period; t(x) represents the duration of the xth first time period;
[0021] The calculation formula of the delay times index is:
[0022]
[0023] Where, E(x) represents the delay index of the first time period x; s e (x) represents the number of delays in the xth first time period; s(x) represents the number of data transmissions in the xth first time period;
[0024] The calculation formula of the packet loss rate indicator is:
[0025]
[0026] Where D(x) represents the packet loss rate index of the first time period of x; c d (x) represents the total number of packet losses in the xth first time period; c(x) represents the total number of transmitted data packets in the xth first time period;
[0027] The calculation formula of the service quality index is:
[0028]
[0029] Wherein, Os(x) represents the service quality indicator of the xth first time period.
[0030] As a preferred solution, the calculation formula of the priority index is:
[0031] KA(y)=[k1×k c (y)+k2×k n (y)+k3×k w (y)]×k4×k p (y);
[0032] Where KA(y) represents the priority index of the yth candidate terminal access method; k c (y) represents the first CPU usage rate corresponding to the yth terminal access method to be selected; k n (y) represents the first memory usage rate corresponding to the yth terminal access method to be selected; k w (y) represents the disk data reading and writing speed corresponding to the yth terminal access method to be selected; k p (y) represents the network bandwidth utilization rate corresponding to the yth selected 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 the disk data read and write speed; k4 is the weight coefficient of the network bandwidth utilization rate.
[0033] As a preferred solution, the method of selecting a terminal access method according to the usage order, and connecting the terminal to be accessed to the power Internet of Things, includes:
[0034] Repeat the terminal access operation until the terminal access is successful;
[0035] The terminal access operation includes:
[0036] According to the current iterative terminal access method, the terminal to be accessed is connected to the electric power Internet of Things; wherein the iterative terminal access method in the first iteration is the terminal access method to be selected that ranks first in the usage order;
[0037] Obtain a second CPU usage rate, a second memory usage rate, and a network delay of the terminal within a second access time; wherein the second access time is a period of time after the terminal accesses;
[0038] Calculate the stable computing power index of the terminal according to the second CPU usage rate, the second memory usage rate and the network delay;
[0039] Determine whether the stable computing power index is less than or equal to a preset stable computing power index threshold. If so, the terminal access is successful; if not, the terminal access fails, and the next terminal access method to be selected in the usage order is used as a new iterative terminal access method.
[0040] As a preferred solution, the calculating the stable computing power index of the terminal according to the second CPU usage rate, the second memory usage rate and the network delay includes:
[0041] dividing the second access time into a plurality of second time periods;
[0042] Calculate the average CPU usage corresponding to each second time period according to the second CPU usage, and determine the maximum and minimum average CPU usages in all second time periods;
[0043] Calculate the average memory usage corresponding to each second time period according to the second memory usage, and determine the maximum and minimum average memory usages in all second time periods;
[0044] According to the network delay, an average network delay corresponding to each second time period is calculated, and a maximum value and a minimum value of the average network delay in all second time periods are determined;
[0045] Calculating the CPU efficiency index of the terminal according to the maximum average CPU usage and the minimum average CPU usage;
[0046] Calculating a memory efficiency index of the terminal according to the maximum average memory usage rate and the minimum average memory usage rate;
[0047] Calculating a network performance index of the terminal according to the maximum average network delay and the minimum average network delay;
[0048] The stable computing power index of the terminal is calculated based on the CPU efficiency index, the memory efficiency index and the network performance index.
[0049] As a preferred solution, the calculation formula of the CPU efficiency index is:
[0050]
[0051] In the formula, cp represents the CPU efficiency index; maxc represents the maximum average CPU usage; minc represents the minimum average CPU usage; a is the CPU energy efficiency coefficient;
[0052] The calculation formula of the memory efficiency index is:
[0053]
[0054] In the formula, nc represents the memory efficiency index; maxh represents the maximum average memory usage; minh represents the minimum average memory usage; H represents the total memory size of the terminal; Indicates the average memory size of all second time periods;
[0055] The calculation formula of the network performance index is:
[0056]
[0057] In the formula, wl represents the network performance index; maxj represents the maximum average network delay; minj represents the minimum average network delay; J represents the average network delay required by the terminal service; Indicates the average network delay of all second time periods;
[0058] The calculation formula of the stable computing power index is:
[0059]
[0060] In the formula, SCI represents the stable computing power index.
[0061] On the basis of the above embodiment, another embodiment of the present invention provides a terminal access device for power Internet of Things, including: a simulation module, a data acquisition module, a terminal access method screening module and a terminal access module;
[0062] 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; according to several terminal access methods, the simulation terminal to be connected is connected to the power Internet of Things simulation system;
[0063] The data acquisition module is used to acquire, for each terminal access mode, the first access time of the simulated terminal corresponding to the terminal access mode, and divide the first access time into a plurality of first time periods; acquire the data transmission delay time data, the number of delays, the number of data transmissions, the total number of packet losses and the total number of transmitted data packets in each first time period corresponding to the terminal access mode;
[0064] The terminal access method screening module is used to calculate the service quality index of each first time period according to the delay time data, the number of delays, the number of data transmissions, the total number of packet losses and the total number of transmitted data packets for each terminal access method; determine whether the service quality indexes of all first time periods are greater than or equal to a preset service quality index threshold, and if so, use the terminal access method as a candidate terminal access method;
[0065] The terminal access module is used to adjust the performance parameters of the electric power Internet of Things simulation system for each terminal access method to be selected, so that the service quality index of the terminal access method to be selected is equal to the service quality index threshold; and reconnect the simulation terminal to the adjusted electric power Internet of Things simulation system according to the terminal access method to be selected;
[0066] The data acquisition module is further used to acquire a first CPU usage rate, a first memory usage rate, a disk data read and write speed, and a network bandwidth usage rate of the simulation terminal;
[0067] The terminal access module is also used to calculate the priority index of the terminal access method to be selected according to the first CPU utilization rate, the first memory utilization rate, the disk data read and write speed and the network bandwidth utilization rate; determine the use order of the terminal access method to be selected according to the priority indicators of all terminal access methods to be selected and in the order of priority indicators from small to large; select the terminal access method to be selected according to the use order, and connect the terminal to be accessed to the power Internet of Things.
[0068] Based on the above embodiments, 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, the power Internet of Things terminal access method described in the above invention embodiment is implemented.
[0069] Based on the above embodiments, another embodiment of the present invention provides a storage medium, which includes a stored computer program, wherein when the computer program is running, the device where the storage medium is located is controlled to execute the power Internet of Things terminal access method described in the above invention embodiment.
[0070] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:
[0071] The present invention simulates the electric power Internet of Things and the terminal to be accessed, and connects the simulated terminal to be accessed to the electric power Internet of Things simulation system according to several terminal access methods; calculates the service quality index corresponding to each terminal access method, and uses the terminal access method that meets the service quality index threshold as the terminal access method to be selected; then determines the priority index of all the terminal access methods to be selected, and then determines the order of use of the terminal access methods to be selected according to the priority; finally, selects the terminal access method to be selected according to the order of use, and connects the terminal to be accessed to the electric power Internet of Things. The present invention can accurately evaluate the service quality index of each terminal access method, thereby screening out the terminal access methods to be selected, and then prioritizes the access methods to be selected, thereby determining the order of use of the terminal access methods to be selected, and finally a reasonable terminal access method can be selected. BRIEF DESCRIPTION OF THE DRAWINGS
[0072] Figure 1 It is a flowchart of a method for accessing a power Internet of Things terminal provided by an embodiment of the present invention;
[0073] Figure 2 It is a structural schematic diagram of a power Internet of Things terminal access device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0074] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0075] Embodiment 1
[0076] Please refer to Figure 1 , which is a flow chart of a method for accessing a power Internet of Things terminal provided by an embodiment of the present invention, including:
[0077] S1. Through the power CPS joint simulation system, the power Internet of Things and the terminal to be connected are simulated to obtain the power Internet of Things simulation system and the simulation terminal to be connected.
[0078] In step S1, a virtual network environment is built using the simulation platform of the power CPS joint simulation system to simulate the communication network architecture of the real power Internet of Things, configure network parameters to ensure normal communication between devices, configure the communication relationship between virtual sensors, edge computing nodes and terminals, and ensure that sensor data can be transmitted to other devices and systems in the simulation platform through the terminal. The terminal devices to be connected are also simulated.
[0079] S2. Connect the simulation terminal to be connected to the power Internet of Things simulation system according to several terminal access methods.
[0080] It should be noted that terminal access methods are divided into four categories, namely: wired access method, wireless access method, hybrid access method 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; other access methods include but are not limited to: serial access, infrared access and Bluetooth access.
[0081] In step S2, several pre-set terminal access methods to be tested are obtained, and 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 apply to the corresponding real scenario.
[0082] S3. For each terminal access mode, obtain the first access time of the simulated terminal corresponding to the terminal access mode, and divide the first access time into several first time periods; obtain the data transmission delay time data, delay times, data transmission times, total packet losses and total number of transmitted data packets in each first time period corresponding to the terminal access mode; calculate the service quality index of each first time period based on the delay time data, delay times, data transmission times, total packet losses and total number of transmitted data packets.
[0083] It should be noted that the first access time is a preset access time, which is used to test the effect of the terminal access method during this time.
[0084] In step S3, the first access time is divided into several first time periods of equal length, and the delay time data, delay times, data transmission times, total packet losses and total number of transmitted data packets of data transmission in each first time period are obtained, and the service quality index of the terminal in each first time period is calculated based on these data.
[0085] For each terminal access method, all corresponding service quality indicators in the first time period are calculated.
[0086] In a preferred embodiment, the delay time data includes: total delay time, continuous delay time and maximum delay time;
[0087] The calculating of the service quality index of each first time period according to the delay time data, the number of delays, the number of data transmissions, the total number of packet losses and the total number of transmitted data packets includes:
[0088] Calculate a delay time index for each first time period according to the total delay time, the continuous delay time and the maximum delay time;
[0089] Calculate a delay number index for each first time period according to the delay number and the data transmission number;
[0090] Calculate the packet loss rate index of each first time period according to the total number of packet losses and the total number of transmitted data packets;
[0091] A service quality indicator for each first time period is calculated according to the delay time indicator, the delay number indicator and the packet loss rate indicator.
[0092] It should be noted that the continuous delay time refers to the sum of the delay times of adjacent delays whose time interval is less than or equal to the preset time length.
[0093] In this embodiment, based on the total delay time, continuous delay time and maximum delay time of data transmission in each first time period, the delay time index of each first time period is calculated. Based on the number of data transmission delays and the number of data transmissions in each first time period, the delay time index of each first time period is calculated. Based on the delay time index, the delay time index and the packet loss rate index in each first time period, the packet loss rate index in each first time period is calculated. Based on the delay time index, the delay time index and the packet loss rate index in each first time period, the service quality index in each first time period is calculated.
[0094] In a preferred embodiment, the calculation formula of the delay time index is:
[0095]
[0096] Where W(x) represents the delay time index of the xth first time period; t a (x) represents the total delay time of the xth first time period; t b (x) represents the continuous delay time of the xth first time period; t c (x) represents the maximum delay time of the xth first time period; t(x) represents the duration of the xth first time period;
[0097] The calculation formula of the delay times index is:
[0098]
[0099] Where, E(x) represents the delay index of the first time period x; s e (x) represents the number of delays in the xth first time period; s(x) represents the number of data transmissions in the xth first time period;
[0100] The calculation formula of the packet loss rate indicator is:
[0101]
[0102] Where D(x) represents the packet loss rate index of the first time period of x; c d (x) represents the total number of packet losses in the xth first time period; c(x) represents the total number of transmitted data packets in the xth first time period;
[0103] The calculation formula of the service quality index is:
[0104]
[0105] Wherein, Os(x) represents the service quality indicator of the xth first time period.
[0106] S4. Determine whether the service quality indicators of all the first time periods are greater than or equal to a preset service quality indicator threshold. If so, use the terminal access method as a candidate terminal access method.
[0107] In step S4, based on the preset service quality indicator threshold, it is determined whether the service quality indicators of the terminal access method in all first time periods corresponding to the first access time are greater than or equal to the service quality indicator threshold. If so, it means that the terminal access method meets the service quality requirements of the simulated terminal, and the access method is selected as a terminal access method.
[0108] After performing the above comparison operation on the service quality indicators corresponding to all terminal access methods, all the terminal access methods to be selected are obtained.
[0109] S5. For each candidate terminal access method, adjust the performance parameters of the electric 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; re-connect the simulation terminal to the adjusted electric power Internet of Things simulation system according to the candidate terminal access method, and obtain the first CPU usage rate, first memory usage rate, disk data read and write speed and network bandwidth usage rate of the simulation terminal; calculate the priority index of the candidate terminal access method according to the first CPU usage rate, first memory usage rate, disk data read and write speed and network bandwidth usage rate.
[0110] In step S5, for each terminal access method to be selected, the performance parameters of the power Internet of Things simulation system are adjusted, specifically, the parameters related to CPU usage and delay are adjusted so that the service quality index corresponding to the terminal access method to be selected is equal to the service quality index threshold. After the adjustment, the simulation terminal is reconnected to the adjusted power Internet of Things simulation system, and the first CPU usage, first memory usage, disk data read and write speed and network bandwidth usage of the simulation terminal are obtained. Then, the priority index of the terminal access method to be selected is calculated based on the obtained data.
[0111] It should be noted that the service quality index is adjusted to be equal to the service quality index threshold in order to test the effect of the terminal access method under extreme conditions that can meet the service quality index, and further calculate the priority index of all candidate terminal access methods based on the effect under extreme conditions to evaluate the priority of the terminal access method.
[0112] In a preferred embodiment, the calculation formula of the priority index is:
[0113] KA(y)=[k1×k c (y)+k2×k n (y)+k3×k w (y)]×k4×k p (y);
[0114] Where KA(y) represents the priority index of the yth candidate terminal access method; k c (y) represents the first CPU usage rate corresponding to the yth terminal access method to be selected; k n (y) represents the first memory usage rate corresponding to the yth terminal access method to be selected; k w (y) represents the disk data reading and writing speed corresponding to the yth terminal access method to be selected; k p(y) represents the network bandwidth utilization rate corresponding to the yth selected 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 the disk data read and write speed; k4 is the weight coefficient of the network bandwidth utilization rate.
[0115] It should be noted that k1+k2+k3+k4=1, and the weight coefficient can be determined according to specific circumstances and requirements.
[0116] S6. Determine the order of use of the terminal access methods to be selected according to the priority indicators of all the terminal access methods to be selected and in ascending order of the priority indicators.
[0117] It should be noted that the candidate terminal access method with a smaller priority index is ranked higher in the order.
[0118] S7. Select a method for accessing the terminal to be selected according to the usage order, and connect the terminal to be accessed to the power Internet of Things.
[0119] In step S7, according to the order of using the access methods for the selected terminals, the corresponding access methods for the selected terminals are used in sequence to connect the terminals to the power Internet of Things in the real scene, and guide the terminal to access successfully.
[0120] In a preferred embodiment, the selecting a method for accessing a terminal to be selected according to the usage order and connecting the terminal to be accessed to the electric power Internet of Things includes:
[0121] Repeat the terminal access operation until the terminal access is successful;
[0122] The terminal access operation includes:
[0123] According to the current iterative terminal access method, the terminal to be accessed is connected to the electric power Internet of Things; wherein the iterative terminal access method in the first iteration is the terminal access method to be selected that ranks first in the usage order;
[0124] Obtain a second CPU usage rate, a second memory usage rate, and a network delay of the terminal within a second access time; wherein the second access time is a period of time after the terminal accesses;
[0125] Calculate the stable computing power index of the terminal according to the second CPU usage rate, the second memory usage rate and the network delay;
[0126] Determine whether the stable computing power index is less than or equal to a preset stable computing power index threshold. If so, the terminal access is successful; if not, the terminal access fails, and the next terminal access method to be selected in the usage order is used as a new iterative terminal access method.
[0127] It should be noted that the second access time refers to a period of time after the terminal accesses, which is used to test whether the terminal access method used can access successfully.
[0128] In this embodiment, the terminal access operation is repeatedly performed according to the order of use of the terminal access method to be selected, and the terminal to be accessed is connected to the power Internet of Things according to the corresponding terminal access method to be selected. For each terminal access method to be selected, the second CPU usage rate, the second memory usage rate and the network delay of the terminal in the second access time are obtained, and the stable computing power index of the terminal is calculated based on the obtained data, and 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 means that the terminal access is successful and the loop is exited. If not, it means that the terminal access has failed, and the next terminal access method to be selected in the order of use is used as the new terminal access method for the next iteration, and the terminal access operation is repeated.
[0129] In a preferred embodiment, the calculating the stable computing power index of the terminal according to the second CPU usage rate, the second memory usage rate and the network delay includes:
[0130] dividing the second access time into a plurality of second time periods;
[0131] Calculate the average CPU usage corresponding to each second time period according to the second CPU usage, and determine the maximum and minimum average CPU usages in all second time periods;
[0132] Calculate the average memory usage corresponding to each second time period according to the second memory usage, and determine the maximum and minimum average memory usages in all second time periods;
[0133] According to the network delay, an average network delay corresponding to each second time period is calculated, and a maximum value and a minimum value of the average network delay in all second time periods are determined;
[0134] Calculating the CPU efficiency index of the terminal according to the maximum average CPU usage and the minimum average CPU usage;
[0135] Calculating a memory efficiency index of the terminal according to the maximum average memory usage rate and the minimum average memory usage rate;
[0136] Calculating a network performance index of the terminal according to the maximum average network delay and the minimum average network delay;
[0137] The stable computing power index of the terminal is calculated based on the CPU efficiency index, the memory efficiency index and the network performance index.
[0138] In this embodiment, the second access time is divided into several second time periods of equal length, and the average CPU usage, average memory usage and average network delay in each second time period are calculated; then the maximum and minimum values of all average CPU usages are determined, the maximum and minimum values of all average memory usages are determined, and the maximum and minimum values of all average network delays are determined, and then 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.
[0139] In a preferred embodiment, the calculation formula of the CPU efficiency index is:
[0140]
[0141] In the formula, cp represents the CPU efficiency index; maxc represents the maximum average CPU usage; minc represents the minimum average CPU usage; a is the CPU energy efficiency coefficient;
[0142] The calculation formula of the memory efficiency index is:
[0143]
[0144] In the formula, nc represents the memory efficiency index; maxh represents the maximum average memory usage; minh represents the minimum average memory usage; H represents the total memory size of the terminal; Indicates the average memory size of all second time periods;
[0145] The calculation formula of the network performance index is:
[0146]
[0147] In the formula, wl represents the network performance index; maxj represents the maximum average network delay; minj represents the minimum average network delay; J represents the average network delay required by the terminal service; Indicates the average network delay of all second time periods;
[0148] The calculation formula of the stable computing power index is:
[0149]
[0150] In the formula, SCI represents the stable computing power index.
[0151] Embodiment 2
[0152] Please refer to Figure 2, is a schematic diagram of the structure of a power Internet of Things terminal access device provided by an embodiment of the present invention, comprising: a simulation module, a data acquisition module, a terminal access method screening module and a terminal access module;
[0153] 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; according to several terminal access methods, the simulation terminal to be connected is connected to the power Internet of Things simulation system;
[0154] The data acquisition module is used to acquire, for each terminal access mode, the first access time of the simulated terminal corresponding to the terminal access mode, and divide the first access time into a plurality of first time periods; acquire the data transmission delay time data, the number of delays, the number of data transmissions, the total number of packet losses and the total number of transmitted data packets in each first time period corresponding to the terminal access mode;
[0155] The terminal access method screening module is used to calculate the service quality index of each first time period according to the delay time data, the number of delays, the number of data transmissions, the total number of packet losses and the total number of transmitted data packets for each terminal access method; determine whether the service quality indexes of all first time periods are greater than or equal to a preset service quality index threshold, and if so, use the terminal access method as a candidate terminal access method;
[0156] The terminal access module is used to adjust the performance parameters of the electric power Internet of Things simulation system for each terminal access method to be selected, so that the service quality index of the terminal access method to be selected is equal to the service quality index threshold; and reconnect the simulation terminal to the adjusted electric power Internet of Things simulation system according to the terminal access method to be selected;
[0157] The data acquisition module is further used to acquire a first CPU usage rate, a first memory usage rate, a disk data read and write speed, and a network bandwidth usage rate of the simulation terminal;
[0158] The terminal access module is also used to calculate the priority index of the terminal access method to be selected according to the first CPU utilization rate, the first memory utilization rate, the disk data read and write speed and the network bandwidth utilization rate; determine the use order of the terminal access method to be selected according to the priority indicators of all terminal access methods to be selected and in the order of priority indicators from small to large; select the terminal access method to be selected according to the use order, and connect the terminal to be accessed to the power Internet of Things.
[0159] Embodiment 3
[0160] Accordingly, an 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, and when the processor executes the computer program, the power Internet of Things terminal access method described in the above-mentioned embodiment of the invention is implemented.
[0161] Embodiment 4
[0162] Accordingly, an embodiment of the present invention provides a storage medium, which includes a stored computer program, wherein when the computer program is running, the device where the storage medium is located is controlled to execute the power Internet of Things terminal access method described in the above-mentioned embodiment of the invention.
[0163] It should be noted that the device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the accompanying drawings of the device embodiments provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines. A person of ordinary skill in the art may understand and implement it without paying any creative effort.
[0164] Those skilled in the art can clearly understand that for the sake of convenience and brevity, the specific working process of the device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0165] The terminal device may be a computing device such as a desktop computer, a notebook, a PDA, a cloud server, etc. The terminal device may include, but is not limited to, a processor and a memory.
[0166] The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the device, and various interfaces and lines are used to connect various parts of the entire device.
[0167] The memory can be used to store the computer program, and the processor realizes various functions of the device by running or executing the computer program stored in the memory and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application required for a function, etc.; the data storage area can store data created according to the use of the mobile phone, etc. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (FlashCard), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0168] The storage medium is a storage medium, and the computer program is stored in the storage medium. When the computer program is executed by the processor, the steps of each method embodiment described above can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer readable medium can be appropriately increased or decreased 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 electric carrier signals and telecommunication signals.
[0169] The above is a preferred embodiment of the present invention. It should be pointed out that a person skilled in the art can make several improvements and modifications without departing from the principle of the present invention. 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 terminal, characterized in that: include: 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; According to several terminal access methods, the simulation terminal to be accessed is connected to the power Internet of Things simulation system; For each terminal access mode, obtain the first access time of the simulated terminal corresponding to the terminal access mode, and divide the first access time into a plurality of first time periods; obtain the data transmission delay time data, delay times, data transmission times, total packet loss and total number of transmitted data packets in each first time period corresponding to the terminal access mode; calculate the service quality index of each first time period according to the delay time data, delay times, data transmission times, total packet loss and total number of transmitted data packets; Determine whether the service quality indicators of all the first time periods are greater than or equal to a preset service quality indicator threshold, and if so, use the terminal access method as a candidate terminal access method; For each terminal access method to be selected, adjust the performance parameters of the electric power Internet of Things simulation system so that the service quality index of the terminal access method to be selected is equal to the service quality index threshold; reconnect the simulation terminal to the adjusted electric power Internet of Things simulation system according to the terminal access method to be selected, and obtain the first CPU usage rate, first memory usage rate, disk data read and write speed and network bandwidth usage rate of the simulation terminal; calculate the priority index of the terminal access method to be selected according to the first CPU usage rate, the first memory usage rate, the disk data read and write speed and the network bandwidth usage rate; According to the priority indicators of all the terminal access methods to be selected, the order of using the terminal access methods to be selected is determined in ascending order of the priority indicators; A method for accessing a terminal to be selected is selected according to the usage order, and the terminal to be accessed is connected to the electric power Internet of Things.
2. The method for accessing the power Internet of Things terminal according to claim 1, characterized in that: The delay time data includes: total delay time, continuous delay time and maximum delay time; The calculating of the service quality index of each first time period according to the delay time data, the number of delays, the number of data transmissions, the total number of packet losses and the total number of transmitted data packets includes: Calculate a delay time index for each first time period according to the total delay time, the continuous delay time and the maximum delay time; Calculate a delay number index for each first time period according to the delay number and the data transmission number; Calculate the packet loss rate index of each first time period according to the total number of packet losses and the total number of transmitted data packets; A service quality indicator for each first time period is calculated according to the delay time indicator, the delay number indicator and the packet loss rate indicator.
3. The method for accessing the power Internet of Things terminal according to claim 2, characterized in that: The calculation formula of the delay time index is: Where W(x) represents the delay time index of the xth first time period; t a (x) represents the total delay time of the xth first time period; t b (x) represents the continuous delay time of the xth first time period; t c (x) represents the maximum delay time of the xth first time period; t(x) represents the duration of the xth first time period; The calculation formula of the delay times index is: Where, E(x) represents the delay index of the first time period x; s e (x) represents the number of delays in the xth first time period; s(x) represents the number of data transmissions in the xth first time period; The calculation formula of the packet loss rate indicator is: Where D(x) represents the packet loss rate index of the first time period of x; c d (x) represents the total number of packet losses in the xth first time period; c(x) represents the total number of transmitted data packets in the xth first time period; The calculation formula of the service quality index is: Wherein, Os(x) represents the service quality indicator of the xth first time period.
4. The method for accessing the power Internet of Things terminal according to claim 1, characterized in that: The calculation formula of the priority index is: KA(y)=[k1×k c (y)+k2×k n (y)+k3×k w (y)]×k4×k p (and); Where KA(y) represents the priority index of the yth candidate terminal access method; k c (y) represents the first CPU usage rate corresponding to the yth terminal access method to be selected; k n (y) represents the first memory usage rate corresponding to the yth terminal access method to be selected; k w (y) represents the disk data reading and writing speed corresponding to the yth terminal access method to be selected; k p (y) represents the network bandwidth utilization rate corresponding to the yth selected 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 the disk data read and write speed; k4 is the weight coefficient of the network bandwidth utilization rate.
5. The method for accessing the power Internet of Things terminal according to claim 1, characterized in that: The method of selecting a terminal access method according to the usage order, and connecting the terminal to be accessed to the electric 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 electric power Internet of Things; wherein the iterative terminal access method in the first iteration is the terminal access method to be selected that ranks first in the usage order; Obtain a second CPU usage rate, a second memory usage rate, and a network delay of the terminal within a second access time; wherein the second access time is a period of time after the terminal accesses; Calculate the stable computing power index of the terminal according to the second CPU usage rate, the second memory usage rate and the network delay; Determine whether the stable computing power index is less than or equal to a preset stable computing power index threshold. If so, the terminal access is successful; if not, the terminal access fails, and the next terminal access method to be selected in the usage order is used as a new iterative terminal access method.
6. The method for accessing the power Internet of Things terminal according to claim 5, characterized in that: The calculating the stable computing power index of the terminal according to the second CPU usage rate, the second memory usage rate and the network delay includes: dividing the second access time into a plurality of second time periods; Calculate the average CPU usage corresponding to each second time period according to the second CPU usage, and determine the maximum and minimum average CPU usages in all second time periods; Calculate the average memory usage corresponding to each second time period according to the second memory usage, and determine the maximum and minimum average memory usages in all second time periods; According to the network delay, calculate the average network delay corresponding to each second time period, and determine the maximum value and the minimum value of the average network delay in all the second time periods; Calculating the CPU efficiency index of the terminal according to the maximum average CPU usage and the minimum average CPU usage; Calculating a memory efficiency index of the terminal according to the maximum average memory usage rate and the minimum average memory usage rate; Calculating a network performance index of the terminal according to the maximum average network delay and the minimum average network delay; The stable computing power index of the terminal is calculated based on the CPU efficiency index, the memory efficiency index and the network performance index.
7. The method for accessing the power Internet of Things terminal according to claim 6, characterized in that: The calculation formula of the CPU efficiency index is: In the formula, cp represents the CPU efficiency index; maxc represents the maximum average CPU usage; minc represents the minimum average CPU usage; a is the CPU energy efficiency coefficient; The calculation formula of the memory efficiency index is: In the formula, nc represents the memory efficiency index; maxh represents the maximum average memory usage; minh represents the minimum average memory usage; H represents the total memory size of the terminal; Indicates the average memory size of all second time periods; The calculation formula of the network performance index is: In the formula, wl represents the network performance index; maxj represents the maximum average network delay; minj represents the minimum average network delay; J represents the average network delay required by the terminal service; Indicates the average network delay of all second time periods; The calculation formula of the stable computing power index is: In the formula, SCI represents the stable computing power index.
8. A power Internet of Things terminal access device, characterized in that: include: Simulation module, data acquisition module, terminal access method screening 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; according to several terminal access methods, the simulation terminal to be connected is connected to the power Internet of Things simulation system; The data acquisition module is used to acquire, for each terminal access mode, the first access time of the simulated terminal corresponding to the terminal access mode, and divide the first access time into a plurality of first time periods; acquire the data transmission delay time data, the number of delays, the number of data transmissions, the total number of packet losses and the total number of transmitted data packets in each first time period corresponding to the terminal access mode; The terminal access method screening module is used to calculate the service quality index of each first time period according to the delay time data, the number of delays, the number of data transmissions, the total number of packet losses and the total number of transmitted data packets for each terminal access method; determine whether the service quality indexes of all first time periods are greater than or equal to a preset service quality index threshold, and if so, use the terminal access method 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 terminal access method to be selected, so that the service quality index of the terminal access method to be selected is equal to the service quality index threshold; and re-connect the simulation terminal to the adjusted power Internet of Things simulation system according to the terminal access method to be selected; The data acquisition module is further used to acquire a first CPU usage rate, a first memory usage rate, a disk data read and write speed, and a network bandwidth usage rate of the simulation terminal; The terminal access module is also used to calculate the priority index of the terminal access method to be selected according to the first CPU utilization rate, the first memory utilization rate, the disk data read and write speed and the network bandwidth utilization rate; determine the use order of the terminal access method to be selected according to the priority indicators of all terminal access methods to be selected and in the order of priority indicators from small to large; select the terminal access method to be selected according to the use order, and connect the terminal to be accessed 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, and when the processor executes the computer program, it implements 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 running, the device where the storage medium is located is controlled to execute the power Internet of Things terminal access method as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Communication mode access selection method for smart distribution grid heterogeneous wireless network
CN105163348A
Method and device for accessing electric power Internet of Things terminal to network
CN112492591A
Communication mode determination method and device for power terminal communication access network
CN112529393A
Terminal access mode adaptation method and terminal equipment
CN114070802A
Ship-shore interaction information classification method, information communication method and communication system
CN115767475A