Power Internet of Things terminal access method, device, terminal equipment and storage medium
The service quality indicators of the terminal access methods of the power Internet of Things are evaluated through the power CPS joint simulation system, and reasonable terminal access methods are screened out, which solves the impact of the terminal access method selection on the communication quality in the power Internet of Things and improves the reliability and efficiency of data transmission.
Patent Information
- Application Number
- CN202411474828.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-22
- Publication Date
- 2025-09-26
- Estimated Expiration
- 2044-10-22
AI Technical Summary
How to select a reasonable terminal access method in the power Internet of Things to improve communication quality and solve the impact of terminal access method selection on data transmission reliability and efficiency.
The power Internet of Things and the terminals to be connected are simulated through the power CPS joint simulation system, the service quality indicators of each terminal access method are calculated, the terminal access methods that meet the threshold are screened out, and they are sorted according to the priority indicators, and finally a reasonable terminal access method is selected.
Accurately evaluate the service quality of each terminal access method, screen out reasonable access methods, and improve the communication quality and terminal access efficiency of the power Internet of Things.
Smart Images

Figure CN119402941B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of Internet of Things terminal access, and in particular to a method, device, terminal equipment and storage medium for power Internet of Things terminal access. 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 thus 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, apparatus, terminal equipment and storage medium to solve the technical problem of how to select a reasonable terminal access mode.
[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 terminal to be connected are simulated to obtain the power Internet of Things simulation system and the simulation terminal to be connected;
[0006] Connecting the simulation terminal to be connected to the power Internet of Things simulation system according to several terminal access methods;
[0007] For each terminal access mode, obtaining a first access time of the simulated terminal corresponding to the terminal access mode, and dividing the first access time into a plurality of first time periods; obtaining data transmission delay time data, number of delays, number of data transmissions, total number of packet losses, and total number of transmitted data packets in each first time period corresponding to the terminal access mode; and calculating a service quality indicator for each first time period based on the delay time data, number of delays, number of data transmissions, total number of packet losses, and total number of transmitted data packets;
[0008] Determining 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, using the terminal access mode as a candidate terminal access mode;
[0009] For each candidate terminal access mode, adjust the performance parameters of the electric power Internet of Things simulation system so that the service quality index of the candidate terminal access mode 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 candidate terminal access mode, 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 mode based on the first CPU usage rate, first memory usage rate, disk data read and write speed, and network bandwidth usage rate;
[0010] Determine the order of use of the candidate terminal access methods according to the priority indicators of all candidate terminal access methods in ascending order of priority indicators;
[0011] Select an access method for the terminal to be selected according to the usage order, and connect the terminal to be accessed to the 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] Calculating the service quality indicator for each first time period based on 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] Calculating 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] Calculating a delay index for each first time period based on the delay times and the data transmission times;
[0016] Calculating a packet loss rate indicator for each first time period based on the total number of lost packets 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, Indicates the The delay time indicator of the first time period; Indicates the The total delay time of the first time period; Indicates the The continuous delay time of the first time period; Indicates the The maximum delay time of the first time period; Indicates the The duration of the first time period;
[0021] The calculation formula of the delay times indicator is:
[0022] ;
[0023] Where, Indicates the The number of delays in the first time period; Indicates the The number of delays in the first time period; Indicates the The number of data transmissions in the first time period;
[0024] The calculation formula of the packet loss rate indicator is:
[0025] ;
[0026] Where, Indicates the The packet loss rate indicator of the first time period; Indicates the The total number of packet losses in the first time period; Indicates the The total number of transmitted data packets in the first time period;
[0027] The calculation formula of the service quality index is:
[0028] ;
[0029] Where, Indicates the The service quality indicators for the first time period.
[0030] As a preferred solution, the calculation formula of the priority index is:
[0031] ;
[0032] Where, Indicates the The priority index of the terminal access mode to be selected; Indicates the A first CPU usage rate corresponding to a selected terminal access mode; Indicates the a first memory usage rate corresponding to a terminal access mode to be selected; Indicates the Disk data read and write speed corresponding to the selected terminal access mode; Indicates the The network bandwidth usage corresponding to the selected terminal access mode; is the weight coefficient of the first CPU usage; is the weight coefficient of the first memory usage; is the weight coefficient of disk data reading and writing speed; is the weight coefficient of network bandwidth usage.
[0033] As a preferred solution, 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] Connecting the terminal to be connected to the electric power Internet of Things according to the current iterative terminal access mode; wherein the iterative terminal access mode in the first iteration is the terminal access mode 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] Calculating a stable computing power index of the terminal according to the second CPU usage, the second memory usage, 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 of the stable computing power index of the terminal according to the second CPU usage, the second memory usage 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 based on 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] Calculating the average network delay corresponding to each second time period according to the network delay, and determining the maximum and minimum average network delays in all second time periods;
[0045] Calculating a 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 and the minimum average memory usage;
[0047] Calculating a network performance index of the terminal according to the maximum average network delay and the minimum average network delay;
[0048] Calculate the stable computing power index of the terminal based on the CPU efficiency index, memory efficiency index and network performance index.
[0049] As a preferred solution, the calculation formula of the CPU efficiency index is:
[0050] ;
[0051] Where, Indicates CPU efficiency index; Indicates the maximum average CPU usage; Indicates the minimum average CPU usage; is the CPU energy efficiency coefficient;
[0052] The calculation formula of the memory efficiency index is:
[0053] ;
[0054] Where, Represents memory efficiency indicators; Indicates the maximum average memory usage; Indicates the minimum average memory usage; Indicates 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] Where, Indicates network performance indicators; Indicates the maximum average network delay; Indicates the minimum average network delay; Indicates the average network delay required by terminal services; Indicates the average network delay of all second time periods;
[0058] The calculation formula for the stable computing power index is:
[0059] ;
[0060] Where, Indicates stable computing power indicator.
[0061] Based on the above embodiment, another embodiment of the present invention provides a terminal access device for the power Internet of Things, comprising: a simulation module, a data acquisition module, a terminal access mode 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 configured to acquire, for each terminal access mode, a 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; and acquire data transmission delay time data, number of delays, number of data transmissions, total number of packet losses, and total number of transmitted data packets within each first time period corresponding to the terminal access mode;
[0064] The terminal access mode screening module is configured to calculate, for each terminal access mode, a service quality index for each first time period based on 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; 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, select the terminal access mode as a candidate terminal access mode;
[0065] The terminal access module is configured to adjust the performance parameters of the electric power Internet of Things simulation system for each terminal access mode to be selected, so that the service quality indicator of the terminal access mode to be selected is equal to the service quality indicator threshold; and reconnect the simulation terminal to the adjusted electric power Internet of Things simulation system according to the terminal access mode to be selected;
[0066] The data acquisition module is further used to obtain the first CPU usage rate, the first memory usage rate, the disk data reading and writing speed and the 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 based on 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 usage 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 usage 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 embodiment of the invention 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 terminal access methods to be selected, and then determines the order of use of the terminal access methods to be selected based on the priority; finally, selects the terminal access method to be selected based on 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 ultimately, a reasonable terminal access method can be selected. BRIEF DESCRIPTION OF THE DRAWINGS
[0072] Figure 1 This is a flow chart of a method for accessing a power Internet of Things terminal provided by one embodiment of the present invention;
[0073] Figure 2This is a structural diagram of a power Internet of Things terminal access device provided by one embodiment of the present invention. DETAILED DESCRIPTION
[0074] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making any creative efforts shall fall within the scope of protection of the present invention.
[0075] Example 1
[0076] Please refer to Figure 1 , which is a flow chart of a method for accessing a power Internet of Things terminal according to 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, the simulation platform of the power CPS joint simulation system is used to build a virtual network environment, simulating the communication network architecture of a real power Internet of Things. Network parameters are configured to ensure normal communication between devices. Communication relationships between virtual sensors, edge computing nodes, and terminals are configured to ensure that sensor data can be transmitted through the terminals to other devices and systems in the simulation platform. 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, number of delays, number of data transmissions, total number of 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, number of delays, number of data transmissions, total number of packet losses and total number of transmitted data packets.
[0083] It should be noted that the first access time is a preset access time period, which is used to test the effect of the terminal access method during this period.
[0084] In step S3, the first access time is divided into several first time periods of equal length, and 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 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 mode, 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] Calculating the service quality indicator for each first time period based on 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] Calculating 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] Calculating a delay index for each first time period based on the delay times and the data transmission times;
[0090] Calculating a packet loss rate indicator for each first time period based on the total number of lost packets 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, a delay time indicator for each first time period is calculated based on the total delay time, continuous delay time, and maximum delay time of data transmission in each first time period. A delay count indicator for 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. A packet loss rate indicator for each first time period is calculated based on the delay time indicator, delay count indicator, and packet loss rate indicator in each first time period. A quality of service indicator for each first time period is calculated based on the delay time indicator, delay count indicator, and packet loss rate indicator in each first time period.
[0094] In a preferred embodiment, the calculation formula of the delay time index is:
[0095] ;
[0096] Where, Indicates the The delay time indicator of the first time period; Indicates the The total delay time of the first time period; Indicates the The continuous delay time of the first time period; Indicates the The maximum delay time of the first time period; Indicates the The duration of the first time period;
[0097] The calculation formula of the delay times indicator is:
[0098] ;
[0099] Where, Indicates the The number of delays in the first time period; Indicates the The number of delays in the first time period; Indicates the The number of data transmissions in the first time period;
[0100] The calculation formula of the packet loss rate indicator is:
[0101] ;
[0102] Where, Indicates the The packet loss rate indicator of the first time period; Indicates the The total number of packet losses in the first time period; Indicates the The total number of transmitted data packets in the first time period;
[0103] The calculation formula of the service quality index is:
[0104] ;
[0105] Where, Indicates the The service quality indicators for the 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 mode as a candidate terminal access mode.
[0107] In step S4, based on the preset service quality indicator threshold, it is determined that 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 candidate terminal access method.
[0108] After performing the above comparison operation on the service quality indicators corresponding to all terminal access modes, all candidate terminal access modes are obtained.
[0109] S5. 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; re-connect 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 based on 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 selected terminal access method, the performance parameters of the power Internet of Things simulation system are adjusted. Specifically, parameters related to CPU usage and latency are adjusted to ensure that the corresponding quality of service indicator (QoS) threshold value is reached. After the adjustment, the simulated terminal is reconnected to the adjusted power Internet of Things simulation system, and the simulated terminal's first CPU usage, first memory usage, disk data read / write speed, and network bandwidth usage are obtained. The priority indicator for the selected terminal access method is then 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 the 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 the 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] ;
[0114] Where, Indicates the The priority index of the terminal access mode to be selected; Indicates the A first CPU usage rate corresponding to a selected terminal access mode; Indicates the a first memory usage rate corresponding to a terminal access mode to be selected; Indicates the Disk data read and write speed corresponding to the selected terminal access mode; Indicates the The network bandwidth usage corresponding to the selected terminal access mode; is the weight coefficient of the first CPU usage; is the weight coefficient of the first memory usage; is the weight coefficient of disk data reading and writing speed; is the weight coefficient of network bandwidth usage.
[0115] It should be noted that , the weight coefficient can be determined according to specific circumstances and needs.
[0116] S6. Determine the order of use of the terminal access methods to be selected based on 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.
[0118] S7. Select an access method for 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 use of the terminal access methods to be selected, the corresponding terminal access methods to be selected are used in sequence to connect the terminal to be accessed in the real scene to the power Internet of Things, guiding the terminal access to be successful.
[0120] In a preferred embodiment, selecting a terminal access method 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] Connecting the terminal to be connected to the electric power Internet of Things according to the current iterative terminal access mode; wherein the iterative terminal access mode in the first iteration is the terminal access mode 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] Calculating a stable computing power index of the terminal according to the second CPU usage, the second memory usage, 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, and is used to test whether the terminal access method used can access successfully.
[0128] In this embodiment, the terminal access operation is repeatedly performed in the order in which the candidate terminal access methods are used, and the candidate terminal is connected to the power Internet of Things according to the corresponding candidate terminal access method. For each candidate terminal access method, the second CPU usage rate, the second memory usage rate, and the network delay of the terminal during the second access time are obtained, and the stable computing power index of the terminal is calculated based on the obtained data. Then, it is determined whether the stable computing power index is less than or equal to a preset stable computing power index threshold. If so, it indicates that the terminal access is successful and the loop is exited. If not, it indicates that the terminal access has failed, and the next candidate terminal access method in the use order 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, the second memory usage, 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 based on 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] Calculating the average network delay corresponding to each second time period according to the network delay, and determining the maximum and minimum average network delays in all second time periods;
[0134] Calculating a 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 and the minimum average memory usage;
[0136] Calculating a network performance index of the terminal according to the maximum average network delay and the minimum average network delay;
[0137] Calculate the stable computing power index of the terminal based on the CPU efficiency index, memory efficiency index and 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. 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] Where, Indicates CPU efficiency index; Indicates the maximum average CPU usage; Indicates the minimum average CPU usage; is the CPU energy efficiency coefficient;
[0142] The calculation formula of the memory efficiency index is:
[0143] ;
[0144] Where, Represents memory efficiency indicators; Indicates the maximum average memory usage; Indicates the minimum average memory usage; Indicates 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] Where, Indicates network performance indicators; Indicates the maximum average network delay; Indicates the minimum average network delay; Indicates the average network delay required by terminal services; Indicates the average network delay of all second time periods;
[0148] The calculation formula for the stable computing power index is:
[0149] ;
[0150] Where, Indicates stable computing power indicator.
[0151] Example 2
[0152] Please refer to Figure 2 , is a schematic structural diagram 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 mode 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 configured to acquire, for each terminal access mode, a 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; and acquire data transmission delay time data, number of delays, number of data transmissions, total number of packet losses, and total number of transmitted data packets within each first time period corresponding to the terminal access mode;
[0155] The terminal access mode screening module is configured to calculate, for each terminal access mode, a service quality index for each first time period based on 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; 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, select the terminal access mode as a candidate terminal access mode;
[0156] The terminal access module is configured to adjust the performance parameters of the electric power Internet of Things simulation system for each terminal access mode to be selected, so that the service quality indicator of the terminal access mode to be selected is equal to the service quality indicator threshold; and reconnect the simulation terminal to the adjusted electric power Internet of Things simulation system according to the terminal access mode to be selected;
[0157] The data acquisition module is further used to obtain the first CPU usage rate, the first memory usage rate, the disk data reading and writing speed and the 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 based on 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 usage 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 usage order, and connect the terminal to be accessed to the power Internet of Things.
[0159] Example 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. When the processor executes the computer program, it implements the power Internet of Things terminal access method described in the above embodiment of the invention.
[0161] Example 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 illustrative, 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 across multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment. In addition, in the 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 can understand and implement the present invention without inventive work.
[0164] Those skilled in the art will 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 computer, 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), 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, connecting various parts of the entire device using various interfaces and lines.
[0167] The memory can be used to store the computer program. The processor implements the various functions of the device by running or executing the computer program stored in the memory and accessing the 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 an operating system, at least one application required for a 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 non-volatile memory, such as a hard disk, internal memory, a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, at least one disk storage device, a flash memory device, or other volatile solid-state storage device.
[0168] 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 each of the above-described method embodiments. The computer program includes computer program code, which can be in source code form, object code form, an executable file, or some intermediate form. The computer-readable medium can include any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a removable hard drive, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electric carrier signal, a telecommunications signal, and a software distribution medium. It should be noted that the content of the computer-readable medium can be appropriately expanded or reduced based on the requirements of legislation and patent practice within a jurisdiction. For example, in some jurisdictions, based on legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunications signals.
[0169] The above is a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles 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 terminal to be connected are simulated to obtain the power Internet of Things simulation system and the simulation terminal to be connected; Connecting the simulation terminal to be connected to the power Internet of Things simulation system according to several terminal access methods; For each terminal access mode, obtaining a first access time of the simulated terminal corresponding to the terminal access mode, and dividing the first access time into a plurality of first time periods; obtaining data transmission delay time data, number of delays, number of data transmissions, total number of packet losses, and total number of transmitted data packets in each first time period corresponding to the terminal access mode; and calculating a service quality indicator for each first time period based on the delay time data, number of delays, number of data transmissions, total number of packet losses, and total number of transmitted data packets; Determining 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, using the terminal access mode as a candidate terminal access mode; For each candidate terminal access mode, adjust the performance parameters of the electric power Internet of Things simulation system so that the service quality index of the candidate terminal access mode 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 candidate terminal access mode, 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 mode based on the first CPU usage rate, first memory usage rate, disk data read and write speed, and network bandwidth usage rate; Determine the order of use of the candidate terminal access methods according to the priority indicators of all candidate terminal access methods in ascending order of priority indicators; Select an access method for the terminal to be selected according to the usage order, and connect the terminal to be accessed to the power Internet of Things.
2. The method for accessing the electric power Internet of Things terminal according to claim 1, wherein: The delay time data includes: total delay time, continuous delay time and maximum delay time; Calculating the service quality indicator for each first time period based on 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: Calculating a delay time index for each first time period according to the total delay time, the continuous delay time, and the maximum delay time; Calculating a delay index for each first time period based on the delay times and the data transmission times; Calculating a packet loss rate indicator for each first time period based on the total number of lost packets 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 electric power Internet of Things terminal according to claim 2, wherein: The calculation formula of the delay time index is: ; Where, Indicates the The delay time indicator of the first time period; Indicates the The total delay time of the first time period; Indicates the The continuous delay time of the first time period; Indicates the The maximum delay time of the first time period; Indicates the The duration of the first time period; The calculation formula of the delay times indicator is: ; Where, Indicates the The number of delays in the first time period; Indicates the The number of delays in the first time period; Indicates the The number of data transmissions in the first time period; The calculation formula of the packet loss rate indicator is: ; Where, Indicates the The packet loss rate indicator of the first time period; Indicates the The total number of packet losses in the first time period; Indicates the The total number of transmitted data packets in the first time period; The calculation formula of the service quality index is: ; Where, Indicates the The service quality indicators for the first time period.
4. The method for accessing the electric power Internet of Things terminal according to claim 1, wherein: The calculation formula of the priority index is: ; Where, Indicates the The priority index of the terminal access mode to be selected; Indicates the A first CPU usage rate corresponding to a selected terminal access mode; Indicates the a first memory usage rate corresponding to a terminal access mode to be selected; Indicates the Disk data read and write speed corresponding to the selected terminal access mode; Indicates the The network bandwidth usage corresponding to the selected terminal access mode; is the weight coefficient of the first CPU usage; is the weight coefficient of the first memory usage; is the weight coefficient of disk data reading and writing speed; is the weight coefficient of network bandwidth usage.
5. The method for accessing the electric power Internet of Things terminal according to claim 1, wherein: The selecting the access mode of the terminal to be selected according to the usage order and connecting the terminal to be accessed to the power Internet of Things includes: Repeat the terminal access operation until the terminal access is successful; The terminal access operation includes: Connecting the terminal to be connected to the electric power Internet of Things according to the current iterative terminal access mode; wherein the iterative terminal access mode in the first iteration is the terminal access mode 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; Calculating a stable computing power index of the terminal according to the second CPU usage, the second memory usage, 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 electric power Internet of Things terminal according to claim 5, wherein: The calculating the stable computing power index of the terminal according to the second CPU usage, the second memory usage, 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 based on 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; Calculating the average network delay corresponding to each second time period according to the network delay, and determining the maximum and minimum average network delays in all second time periods; Calculating a 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 and the minimum average memory usage; Calculating a network performance index of the terminal according to the maximum average network delay and the minimum average network delay; Calculate the stable computing power index of the terminal based on the CPU efficiency index, memory efficiency index and network performance index.
7. The method for accessing the electric power Internet of Things terminal according to claim 6, wherein: The calculation formula of the CPU efficiency index is: ; Where, Indicates CPU efficiency index; Indicates the maximum average CPU usage; Indicates the minimum average CPU usage; is the CPU energy efficiency coefficient; The calculation formula of the memory efficiency index is: ; Where, Represents memory efficiency indicators; Indicates the maximum average memory usage; Indicates the minimum average memory usage; Indicates 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: ; Where, Indicates network performance indicators; Indicates the maximum average network delay; Indicates the minimum average network delay; Indicates the average network delay required by terminal services; Indicates the average network delay of all second time periods; The calculation formula for the stable computing power index is: ; Where, Indicates stable computing power indicator.
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 configured to acquire, for each terminal access mode, a 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; and acquire data transmission delay time data, number of delays, number of data transmissions, total number of packet losses, and total number of transmitted data packets within each first time period corresponding to the terminal access mode; The terminal access mode screening module is configured to calculate, for each terminal access mode, a service quality index for each first time period based on 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; 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, select the terminal access mode as a candidate terminal access mode; The terminal access module is configured to adjust the performance parameters of the electric power Internet of Things simulation system for each terminal access mode to be selected, so that the service quality indicator of the terminal access mode to be selected is equal to the service quality indicator threshold; and reconnect the simulation terminal to the adjusted electric power Internet of Things simulation system according to the terminal access mode to be selected; The data acquisition module is further used to obtain the first CPU usage rate, the first memory usage rate, the disk data reading and writing speed and the 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 based on 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 usage 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 usage 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 according to 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 according to 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