Method for terminal device to access power internet of things system and related device

By determining the communication channel and protocol in the power Internet of Things system and selecting the target service node, the problem of unreasonable resource allocation is solved, and efficient data transmission and resource utilization of terminal devices are realized.

CN117938902BActive Publication Date: 2026-01-27FIBRLINK NETWORKS
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202410044944.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-11
Publication Date
2026-01-27
Estimated Expiration
2044-01-11

AI Technical Summary

Technical Problem

In existing technologies, the resource allocation method for edge computing in the power Internet of Things is based on coarse granularity, which makes it impossible for service nodes to handle the tasks of multiple terminal devices simultaneously. This results in unreasonable resource allocation, the inability to process the tasks of a massive number of terminal devices in a timely manner, and insufficient consideration of the load capacity of communication channels and the requirements of different communication protocols.

Method used

By receiving access requests from terminal devices, the communication channel and communication protocol are determined, and target service nodes are selected in the power Internet of Things system according to resource allocation weights to ensure the rationality of data transmission and resource allocation, including channel quality assessment, resource matching degree calculation, and communication protocol adjustment.

Benefits of technology

It enables smooth data transmission from terminal devices and efficient resource utilization, improving the resource utilization rate and adaptability of the power Internet of Things system to complex network environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117938902B_ABST
    Figure CN117938902B_ABST
Patent Text Reader

Abstract

The application provides a terminal device access power internet of things system method and related equipment, the method comprises receiving the access request of the terminal device;Based on the access request, determine the communication channel between the terminal device and the power internet of things system and the communication protocol corresponding to the communication channel, and determine the resource allocation weight corresponding to the terminal device;Based on the access request and the resource allocation weight, determine the target service node matched with the terminal device in all service nodes in the power internet of things system;Control the terminal device to access the target service node in the power internet of things system through the communication channel and the communication protocol, solve the technical problem that the resource allocation of the power internet of things system in the prior art is not reasonable, improve the resource utilization rate of the power internet of things system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication technology, and in particular to a method and related equipment for a terminal device to access a power Internet of Things system. Background Technology

[0002] With the development of IoT technology and the increasing demand for electricity, power companies are gradually increasing their investment in the construction of power IoT systems. A power IoT system is the application of IoT technology in the power system. Terminal devices connect to the power IoT system through service nodes, achieving intelligent and networked connectivity. Service nodes process data from terminal devices through power IoT edge computing. Power IoT edge computing is a technology that applies IoT and edge computing technologies to the power sector, contributing to the intelligentization, efficiency, and reliability of power systems.

[0003] In existing technologies, resource allocation methods for edge computing in the power Internet of Things (IoT) are based on a coarse-grained approach. Before a terminal device connects to the power IoT system, the service node to which it will connect is determined, and the service node can only connect to the next terminal device after the task on that terminal device is completed. However, with the development of power IoT systems, the massive number of terminal devices connected poses a severe challenge to existing resource allocation methods. This results in service nodes being unable to handle the tasks of multiple terminal devices simultaneously, leading to unreasonable resource allocation within the power IoT system and the inability to process the tasks of a massive number of terminal devices in a timely manner. Summary of the Invention

[0004] In view of this, the purpose of this application is to propose a method and related equipment for terminal devices to access a power Internet of Things system, so as to overcome all or part of the shortcomings of the prior art.

[0005] To achieve the above objectives, this application provides a method for a terminal device to access a power Internet of Things (IoT) system, comprising: receiving an access request from the terminal device; determining, based on the access request, a communication channel between the terminal device and the power IoT system and a communication protocol corresponding to the communication channel, and determining a resource allocation weight corresponding to the terminal device; determining, based on the access request and the resource allocation weight, a target service node matching the terminal device among all service nodes in the power IoT system; and controlling the terminal device to access the target service node in the power IoT system through the communication channel and the communication protocol.

[0006] Optionally, determining the communication channel between the terminal device and the power IoT system and the corresponding communication protocol based on the access request includes: obtaining the remaining spectrum resources corresponding to the power IoT system; determining the communication channel based on the remaining spectrum resources and the access request; obtaining the signal-to-noise ratio (SNR) of the terminal device and a preset communication protocol probability; determining the channel quality corresponding to the communication channel based on the SNR; and determining the communication protocol corresponding to the communication channel from all communication protocols corresponding to the power IoT system based on the channel quality and the communication protocol probability.

[0007] Optionally, determining the communication protocol corresponding to the communication channel from all communication protocols corresponding to the power Internet of Things system based on the channel quality and the communication protocol probability includes: adjusting the selection probability of each communication protocol in a pre-built communication protocol table based on the communication protocol probability to obtain a target selection probability for each communication protocol; determining the communication protocol corresponding to the channel quality in the communication protocol table based on the channel quality and the target selection probability, and identifying that communication protocol as the communication protocol corresponding to the communication channel.

[0008] Optionally, the access request includes the memory required by the task in the terminal device and the computing resources required by the task; determining the resource allocation weight corresponding to the terminal device based on the access request includes: determining the resource allocation weight using the following formula: Where, ω i Assign weights to the resources; The weight corresponding to the memory required for the task; Memory i Let β be the memory required for the task of the i-th terminal device, and t be the weight corresponding to the computing resources required for the task. i The computational resources required for the task of the i-th terminal device.

[0009] Optionally, the access request includes the memory and computing resources required by the task in the terminal device; determining the target service node matching the terminal device among all service nodes in the power Internet of Things system based on the access request and the resource allocation weight includes: determining the matching degree between the terminal device and all service nodes in the power Internet of Things system based on the access request; determining the matching probability of the service node based on the resource allocation weight and the matching degree; finding multiple service nodes whose available computing resources are greater than or equal to the required computing resources and whose available memory is greater than or equal to the memory required by the task; and finding the service node with the maximum matching probability among the multiple service nodes and determining that service node as the target service node.

[0010] Optionally, determining the matching degree between the terminal device and all service nodes in the power Internet of Things system based on the access request includes: determining the matching degree using the following formula: Where M(i,j) represents the matching degree between the i-th terminal device and the j-th service node, Memory i Memory is the memory required for the task of the i-th terminal device. j For the memory that the j-th service node can provide, t i For the computing resources required for the task of the i-th terminal device, t j Let j represent the computing resources that the j-th service node can provide. β represents the weight corresponding to the memory required by the task, and β represents the weight corresponding to the computing resources required by the task.

[0011] Optionally, determining the channel quality corresponding to the communication channel based on the signal-to-noise ratio includes: determining the channel quality using the following formula: CQ i =k×log(SNR) i ), of which CQ i The channel quality is defined as k, where k is a preset adjustment parameter, and log(SNR) is the channel quality. i ) represents the logarithmic signal-to-noise ratio of the i-th terminal device.

[0012] Based on the same inventive concept, this application also provides a device for a terminal device to access a power Internet of Things (IoT) system, comprising: a receiving module configured to receive an access request from the terminal device; a first determining module configured to determine, based on the access request, a communication channel between the terminal device and the power IoT system and a communication protocol corresponding to the communication channel, and to determine a resource allocation weight corresponding to the terminal device; a second determining module configured to determine, based on the access request and the resource allocation weight, a target service node matching the terminal device among all service nodes in the power IoT system; and an access module configured to control the terminal device to access the target service node in the power IoT system through the communication channel and the communication protocol.

[0013] Based on the same inventive concept, this application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable by the processor, wherein the processor implements the method described above when executing the computer program.

[0014] Based on the same inventive concept, this application also provides a non-transitory computer-readable storage medium that stores computer instructions for causing a computer to perform the method described above.

[0015] As can be seen from the above, the method and related equipment for a terminal device to access a power Internet of Things (IoT) system provided in this application include receiving an access request from the terminal device; determining, based on the access request, a communication channel and a corresponding communication protocol between the terminal device and the power IoT system, ensuring smooth data transmission from the terminal device; and determining a resource allocation weight corresponding to the terminal device, achieving the purpose of adjusting resource allocation for the terminal device. Based on the access request and the resource allocation weight, a target service node matching the terminal device is determined from all service nodes in the power IoT system, achieving the purpose of rationally allocating resources in the power IoT system. Controlling the terminal device to access the target service node in the power IoT system through the communication channel and the communication protocol enables the terminal device to transmit data to the power IoT system rationally and efficiently, and also improves the resource utilization rate of the power IoT system. Attached Figure Description

[0016] To more clearly illustrate the technical solutions in this application or related technologies, the drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, the drawings described below are only embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0017] Figure 1 This is a flowchart illustrating the method for a terminal device to access a power Internet of Things system according to an embodiment of this application;

[0018] Figure 2 This is a schematic diagram of the structure of the terminal device accessing the power Internet of Things system according to an embodiment of this application;

[0019] Figure 3 This is a schematic diagram of the hardware structure of an electronic device according to an embodiment of this application. Detailed Implementation

[0020] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with specific embodiments and the accompanying drawings.

[0021] It should be noted that, unless otherwise defined, the technical or scientific terms used in the embodiments of this application should have the ordinary meaning understood by one of ordinary skill in the art to which this application pertains. The terms "first," "second," and similar terms used in the embodiments of this application do not indicate any order, quantity, or importance, but are merely used to distinguish different components. Terms such as "comprising" or "including" mean that the element or object preceding the word encompasses the elements or objects listed after the word and their equivalents, without excluding other elements or objects. Terms such as "connected" or "linked" are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. Terms such as "upper," "lower," "left," and "right" are only used to indicate relative positional relationships; when the absolute position of the described object changes, the relative positional relationship may also change accordingly.

[0022] As described in the background section, with the development of IoT technology and the increasing demand for electricity, power companies are gradually increasing their investment in the construction of power IoT systems. A power IoT system is the application of IoT technology in the power system. Terminal devices access the power IoT system through service nodes, achieving intelligent and networked connectivity. Service nodes process data from terminal devices through power IoT edge computing. Power IoT edge computing is a technology that applies IoT and edge computing technologies to the power sector, contributing to the intelligentization, efficiency, and reliability of power systems.

[0023] In existing technologies, resource allocation methods for edge computing in the power Internet of Things (IoT) are based on a coarse-grained approach. Before a terminal device connects to the power IoT system, the service node it will connect to is determined, and the next terminal device can only connect after the task on that terminal device is completed and the service node is idle. However, with the development of power IoT systems, the massive number of terminal devices connected poses a severe challenge to existing resource allocation methods. Service nodes cannot handle the tasks of multiple terminal devices simultaneously, leading to unreasonable resource allocation in the power IoT system. The tasks of a massive number of terminal devices cannot be processed by the power IoT system in a timely manner, resulting in a waste of computing resources and failing to effectively adapt to the complexity of the underlying network and the dynamic and diverse resource demands of upper-layer users. Furthermore, existing computing resource allocation methods do not fully consider the load capacity of terminal devices on communication channels, thus failing to achieve reasonable resource allocation to meet the requirements of data transmission across different communication protocols.

[0024] In view of this, embodiments of this application propose a method for terminal devices to access a power Internet of Things (IoT) system, referring to... Figure 1 This includes the following steps:

[0025] Step 101: Receive the access request from the terminal device.

[0026] In this step, with the development of the Internet of Things (IoT), the power IoT system needs to handle tasks from a massive number of terminal devices, which can be, for example, sensor devices. Before the power IoT system processes the tasks of the terminal devices, the terminal devices need to send an access request to the power IoT system. The power IoT system receives the access request, which includes information related to the tasks to be processed by the terminal devices.

[0027] Step 102: Based on the access request, determine the communication channel between the terminal device and the power Internet of Things system and the communication protocol corresponding to the communication channel, and determine the resource allocation weight corresponding to the terminal device.

[0028] In this step, the communication channel serves as the data transmission path between the terminal device and the power IoT system. To ensure smooth and efficient data transmission from the terminal device, the communication resources provided by the channel must be greater than or equal to the communication resources required for data transmission. Therefore, based on the access request, the communication channel for the power IoT is determined. The access request reflects the communication resources required for the terminal device to transmit data from the tasks to be processed. The communication protocol refers to the rules and conventions that must be followed between the terminal device connected through the communication channel and the power IoT system to complete communication. The communication protocol defines the format used by data units, the information and meaning that information units should contain, the connection method, and the timing of information transmission and reception, thereby ensuring smooth data transmission. By determining the communication channel and communication protocol, smooth data transmission from the terminal device is ensured. The terminal device's access request also reflects the priority of tasks within the terminal device. Through resource allocation weights, resource allocation for the terminal device can be coordinated. When the task priority in the terminal device is relatively high, to ensure that the task is allocated sufficient computing resources to meet its processing needs, the resource allocation weight needs to be increased so that the terminal device can obtain sufficient computing resources in the power IoT system. It should be noted that when computing resources are insufficient in a power Internet of Things (IoT) system, the resource allocation weight for terminal devices with low task priority can be lowered. By determining the resource allocation weight, the goal of adjusting resource allocation for terminal devices can be achieved.

[0029] Step 103: Based on the access request and the resource allocation weight, determine the target service node that matches the terminal device from all service nodes in the power Internet of Things system.

[0030] In this step, the resources provided by the service nodes are limited, including computing and memory resources. To efficiently utilize the resources provided by the service nodes, a target service node matching the terminal device needs to be identified from all service nodes in the power communication system. All service nodes include both idle and active nodes. This is because when a service node is active, it may have surplus resources after deducting its occupied resources. Therefore, when determining the target service node matching the terminal device, it is necessary to select from all service nodes to ensure that the surplus resources of active service nodes are fully utilized. The idle resources of active service nodes can still provide resources for the terminal device about to connect. Furthermore, if the tasks of already connected terminal devices in the power IoT system are completed by a service node, the resources in that service node can promptly provide resources for the next connected terminal device. The access request and resource allocation weights of the terminal device reflect the resources ultimately required by the tasks within the terminal device, thus determining the target service node matching the terminal device from all service nodes. It should be noted that the resources provided by the target service node among all service nodes are closest to the computing resources required by the task in the terminal device. The resources provided by the target service node should be slightly greater than or equal to the resources required by the terminal device's task, ensuring full utilization of resources in the power Internet of Things (IoT) system. When multiple terminal devices share the same service node, by subdividing the resources of the service node, independent resource pools are allocated to different terminal devices, ensuring isolation and security between them and avoiding resource conflicts. By identifying the target service node that matches the terminal device among all service nodes, the goal of rationally allocating resources in the power IoT system is achieved.

[0031] Step 104: Control the terminal device to access the target service node in the power Internet of Things system through the communication channel and the communication protocol.

[0032] In this step, the terminal device can only transmit data to the power Internet of Things (IoT) system through a communication channel, and the data transmitted in the communication channel must follow the communication protocol. Therefore, after determining the target service node that matches the terminal device, the terminal device is controlled to access the target service node in the power IoT system through the communication channel and communication protocol. This enables the terminal device to transmit data to the power IoT system in a reasonable and efficient manner, and also improves the resource utilization rate of the power IoT system.

[0033] The above scheme receives the access request from the terminal device; based on the access request, it determines the communication channel and corresponding communication protocol between the terminal device and the power IoT system, ensuring smooth data transmission from the terminal device and determining the resource allocation weight for the terminal device, thus adjusting resource allocation for the terminal device. Based on the access request and the resource allocation weight, it identifies a target service node matching the terminal device from all service nodes in the power IoT system, achieving reasonable resource allocation within the power IoT system. Controlling the terminal device to access the target service node in the power IoT system through the communication channel and the communication protocol enables the terminal device to transmit data to the power IoT system reasonably and efficiently, while also improving resource utilization within the power IoT system.

[0034] In some embodiments, determining the communication channel between the terminal device and the power Internet of Things system and the corresponding communication protocol based on the access request includes: obtaining the remaining spectrum resources corresponding to the power Internet of Things system; determining the communication channel based on the remaining spectrum resources and the access request; obtaining the signal-to-noise ratio (SNR) of the terminal device and a preset communication protocol probability; determining the channel quality corresponding to the communication channel based on the SNR; and determining the communication protocol corresponding to the communication channel from all communication protocols corresponding to the power Internet of Things system based on the channel quality and the communication protocol probability.

[0035] In this embodiment, the power IoT system needs to allocate spectrum resources to the terminal devices to be connected, so that the data in the terminal devices can be successfully transmitted to the power IoT system. Spectrum resources refer to specific frequency ranges used for communication. First, the remaining spectrum resources corresponding to the power IoT system need to be obtained. Based on the access request of the terminal device, the target spectrum resource required by the terminal device is determined from the remaining spectrum resources, and then associated with the communication channel corresponding to the target spectrum resource, achieving the purpose of balanced allocation of the total communication channels in the power IoT system. It should be noted that the power IoT system can monitor the actual usage of each channel and periodically adjust communication resources dynamically when the load of the power IoT system changes significantly. If some channels have excess communication resources, the power IoT system can strip these resources and reallocate them to channels with higher loads. When a terminal device requests access to the power IoT system, the power IoT system can detect its communication needs. If there are idle communication resources in the power IoT system, corresponding communication resources can be allocated to the new terminal device; if there are insufficient idle communication resources in the power IoT system, the power IoT system can strip some existing channel communication resources to meet the communication needs of the terminal device. When depriving and reallocating channels, to ensure that the overall communication quality is not excessively affected, an SDN controller works in concert to ensure a smooth transition of channel switching and resource allocation, thereby minimizing disruption to the user experience.

[0036] The signal-to-noise ratio (SNR) is the ratio of the strength of the useful signal received by a terminal device to the strength of the received interference signal (noise and interference). It reflects the interference currently experienced by the terminal device from the outside world. The SNR determines the channel quality corresponding to the communication channel. Power IoT systems can monitor and evaluate the channel quality with terminal devices in real time. Channel quality helps service nodes optimize the use of communication resources, ensure efficient data transmission, and reduce packet loss and communication latency. Simultaneously, it can intelligently and adaptively adjust the communication protocol based on the channel quality of each terminal device to provide a better user experience. Determining the communication protocol corresponding to the communication channel based on channel quality is crucial because different communication protocols have different requirements for the power consumption management of terminal devices. For example, in cases of relatively poor channel quality, devices may need to listen to the channel more frequently or retransmit, thereby increasing power consumption and necessitating a change in the current communication protocol. Preset communication protocol probabilities can be configured in advance according to user needs to better adapt to the requirements of the power IoT system. For example, if a certain type of terminal device performs better when transmitting data using a particular communication protocol, that protocol can be assigned a higher probability; conversely, if a certain type of terminal device performs worse, it can be assigned a lower probability. Therefore, it is also necessary to obtain the corresponding preset communication protocol probabilities for each terminal device. These probabilities allow the terminal device to transmit data using the communication protocol that provides it with relatively better data transmission performance. It should be noted that different terminal devices can access the IoT terminal system through the same communication channel, and the communication protocols used by different terminal devices can be different, ensuring stable data transmission from different types of terminal devices to the power IoT system.

[0037] In some embodiments, determining the communication protocol corresponding to the communication channel from all communication protocols corresponding to the power Internet of Things system based on the channel quality and the communication protocol probability includes: adjusting the selection probability corresponding to each communication protocol in a pre-built communication protocol table based on the communication protocol probability to obtain a target selection probability corresponding to each communication protocol; determining the communication protocol corresponding to the channel quality in the communication protocol table based on the channel quality and the target selection probability, and identifying the communication protocol as the communication protocol corresponding to the communication channel.

[0038] In this embodiment, the pre-constructed communication protocol table is stored as a correlation table between channel quality and communication protocols. For example, when the channel quality falls within a certain interval, that interval corresponds to at least one communication protocol and its selection probability. Determining the communication protocol solely based on calculated channel quality is inaccurate because different types of terminal devices may have communication protocols that provide better data transmission performance. The selection probability of the communication protocol needs to be adjusted using the communication protocol probability to obtain the target selection probability. This increases the selection probability of the communication protocol that provides good data transmission performance for the terminal device and reduces the selection probability of the communication protocol that provides poor data transmission performance, thereby enabling the terminal device to transmit using the communication protocol that provides better data transmission performance.

[0039] In some embodiments, the access request includes the memory required by the task in the terminal device and the computing resources required by the task; determining the resource allocation weight corresponding to the terminal device based on the access request includes: determining the resource allocation weight using the following formula: Where, ω i Assign weights to the resources; The weight corresponding to the memory required for the task; Memory i Let β be the memory required for the task of the i-th terminal device, and t be the weight corresponding to the computing resources required for the task. i The computational resources required for the task of the i-th terminal device.

[0040] In this embodiment, the access request includes the memory and computing resources required by the task in the terminal device. The access request also carries information reflecting the importance of the memory and computing resources required by the task. Based on the above importance, the resource allocation weights are adjusted according to their respective weights, thereby reflecting the importance of the resource allocation weights and achieving the purpose of adjusting the resource allocation for the terminal device.

[0041] In some embodiments, the access request includes the memory and computing resources required by the task in the terminal device; determining the target service node matching the terminal device among all service nodes in the power Internet of Things system based on the access request and the resource allocation weight includes: determining the matching degree between the terminal device and all service nodes in the power Internet of Things system based on the access request; determining the matching probability of the service node based on the resource allocation weight and the matching degree; finding multiple service nodes whose available computing resources are greater than or equal to the required computing resources and whose available memory is greater than or equal to the memory required by the task; and finding the service node with the maximum matching probability among the multiple service nodes and determining that service node as the target service node.

[0042] In this embodiment, based on the access request, the matching degree between the terminal device and all service nodes in the power Internet of Things system is determined. This is used to measure whether the computing power of the service nodes is suitable for executing a specific task. Matching degree evaluation helps select the most suitable service node for executing the task on the terminal device, avoiding resource waste and performance degradation. The resource allocation weight reflects the priority of the terminal device; a higher priority terminal device receives a higher resource allocation weight, and vice versa. The matching probability of the service node is determined by the following formula:

[0043]

[0044] Where P(i,j) is the matching probability between the i-th terminal device and the j-th service node, ω i Weights are assigned to resources, where M(i,j) represents the matching degree between the i-th terminal device and the j-th service node, and n is the total number of service nodes. The service node with the highest matching probability is the most compatible with the terminal device. In this case, it's necessary to determine whether the node with the highest matching probability can execute the terminal device's task. Therefore, it's necessary to determine whether the computing resources provided by the service node are greater than or equal to the computing resources required by the terminal device, and whether the memory provided by the service node is greater than or equal to the memory required for the task. If both conditions are met, the node with the highest matching probability among the multiple service nodes satisfying these conditions is identified as the target service node. Identifying the target service node that best matches the terminal device ensures the rational allocation of resources in the power IoT system, improving resource utilization.

[0045] In some embodiments, determining the matching degree between the terminal device and all service nodes in the power Internet of Things system based on the access request includes: determining the matching degree using the following formula: Where M(i,j) represents the matching degree between the i-th terminal device and the j-th service node, Memory i Memory is the memory required for the task of the i-th terminal device. j For the memory that the j-th service node can provide, t i For the computing resources required for the task of the i-th terminal device, t j Let j represent the computing resources that the j-th service node can provide. β represents the weight corresponding to the memory required by the task, and β represents the weight corresponding to the computing resources required by the task.

[0046] In this embodiment, the matching degree between the terminal device and each service node in the power Internet of Things (IoT) system can be determined using a formula. This not only compensates for the lack of rational resource allocation at the terminal device but also allocates resources within the power IoT system more rationally by calculating the matching degree. Furthermore, by integrating network and computational characteristics, the power IoT system can efficiently handle even complex and variable environments at the underlying access network of the terminal device. It should be noted that the formula demonstrates that for a high matching degree between the terminal device and the service node, the resources provided by the service node must be slightly greater than or equal to the resources required for the terminal device's task, ensuring full utilization of resources within the power IoT system.

[0047] In some embodiments, determining the channel quality corresponding to the communication channel based on the signal-to-noise ratio includes: determining the channel quality using the following formula: CQ i =k×log(SNR) i ), of which CQ i The channel quality is defined as k, where k is a preset adjustment parameter, and log(SNR) is the channel quality. i ) represents the logarithmic signal-to-noise ratio of the i-th terminal device.

[0048] In this embodiment, SNR i SNR represents the signal-to-noise ratio of the i-th terminal device. i Effective calculations require consideration of signal and noise characteristics. The function f(.) is a mapping function that maps the signal-to-noise ratio (SNR) to the corresponding channel quality. The specific form of this function needs to be determined based on the design and performance requirements of the power IoT system. If wireless communication standards such as Wi-Fi, Bluetooth, LoRa (Long Range Low Energy Radio Frequency), and NB-IoT (Narrowband Internet of Things) are used, the SNR is processed through the function f(.). i It can be expressed using the logarithmic signal-to-noise ratio, i.e., log(SNR). i In this formula, the logarithmic signal-to-noise ratio (SNR) is typically used to describe the relative strength of the signal and noise in a terminal device. k is a preset adjustment parameter, a constant that adjusts the relationship between the SNR and channel quality; this adjustment needs to be observed and adjusted through on-site testing. By quantifying channel quality using this formula, the goal of accurately determining channel quality is achieved.

[0049] It should be noted that the method in this embodiment can be executed by a single device, such as a computer or server. The method can also be applied in a distributed scenario, where multiple devices cooperate to complete the task. In such a distributed scenario, one of these devices may execute only one or more steps of the method in this embodiment, and the multiple devices will interact with each other to complete the method described.

[0050] It should be noted that the above description describes some embodiments of this application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in a different order than that shown in the above embodiments and still achieve the desired result. Furthermore, the processes depicted in the drawings do not necessarily require a specific or sequential order to achieve the desired result. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0051] Based on the same inventive concept, corresponding to any of the above embodiments, this application also provides a device for terminal equipment to access a power Internet of Things system.

[0052] refer to Figure 2 The terminal device is connected to the power Internet of Things system, comprising:

[0053] The receiving module 10 is configured to receive the access request from the terminal device.

[0054] The first determining module 20 is configured to determine, based on the access request, the communication channel between the terminal device and the power Internet of Things system and the communication protocol corresponding to the communication channel, and to determine the resource allocation weight corresponding to the terminal device.

[0055] The second determining module 30 is configured to determine a target service node that matches the terminal device from all service nodes in the power Internet of Things system based on the access request and the resource allocation weight.

[0056] Access module 40 is configured to control the terminal device to access the target service node in the power Internet of Things system through the communication channel and the communication protocol.

[0057] The aforementioned device receives access requests from the terminal device. Based on the access request, it determines the communication channel and corresponding communication protocol between the terminal device and the power IoT system, ensuring smooth data transmission from the terminal device and determining the resource allocation weight for the terminal device, thus adjusting resource allocation for the terminal device. Based on the access request and the resource allocation weight, it identifies a target service node matching the terminal device from all service nodes in the power IoT system, achieving reasonable resource allocation within the power IoT system. Controlling the terminal device to access the target service node in the power IoT system through the communication channel and the communication protocol enables the terminal device to transmit data to the power IoT system efficiently and effectively, while also improving resource utilization within the power IoT system.

[0058] In some embodiments, the first determining module 20 is further configured to: acquire the remaining spectrum resources corresponding to the power Internet of Things system; determine the communication channel based on the remaining spectrum resources and the access request; acquire the signal-to-noise ratio of the terminal device and a preset communication protocol probability; determine the channel quality corresponding to the communication channel based on the signal-to-noise ratio; and determine the communication protocol corresponding to the communication channel from all communication protocols corresponding to the power Internet of Things system based on the channel quality and the communication protocol probability.

[0059] In some embodiments, the first determining module 20 is further configured to adjust the selection probability corresponding to each communication protocol in a pre-constructed communication protocol table based on the communication protocol probability to obtain the target selection probability corresponding to each communication protocol; and to determine the communication protocol corresponding to the channel quality in the communication protocol table based on the channel quality and the target selection probability, and to determine the communication protocol as the communication protocol corresponding to the communication channel.

[0060] In some embodiments, the first determining module 20 is further configured such that the access request includes the memory required by the task and the computing resources required by the task in the terminal device; and the resource allocation weight is determined by the following formula: Where, ω i Assign weights to the resources; The weight corresponding to the memory required for the task; Memory i Let β be the memory required for the task of the i-th terminal device, and t be the weight corresponding to the computing resources required for the task. i The computational resources required for the task of the i-th terminal device.

[0061] In some embodiments, the second determining module 30 is further configured to: the access request includes the memory required by the task in the terminal device and the computing resources required by the task; based on the access request, determine the matching degree between the terminal device and all service nodes in the power Internet of Things system; based on the resource allocation weight and the matching degree, determine the matching probability of the service node; find multiple service nodes whose available computing resources are greater than or equal to the required computing resources and whose available memory is greater than or equal to the memory required by the task; among the multiple service nodes, find the service node corresponding to the maximum matching probability and determine the service node as the target service node.

[0062] In some embodiments, the second determining module 30 is further configured to determine the matching degree using the following formula: Where M(i,j) represents the matching degree between the i-th terminal device and the j-th service node, Memory i Memory is the memory required for the task of the i-th terminal device. j For the memory that the j-th service node can provide, t i For the computing resources required for the task of the i-th terminal device, t j Let j represent the computing resources that the j-th service node can provide. β represents the weight corresponding to the memory required by the task, and β represents the weight corresponding to the computing resources required by the task.

[0063] In some embodiments, the first determining module 20 is further configured to determine the channel quality using the following formula: CQ i =k×log(SNR) i ), of which CQ i The channel quality is defined as k, where k is a preset adjustment parameter, and log(SNR) is the channel quality. i ) represents the logarithmic signal-to-noise ratio of the i-th terminal device.

[0064] For ease of description, the above devices are described in terms of function, divided into various modules. Of course, in implementing this application, the functions of each module can be implemented in one or more software and / or hardware.

[0065] The apparatus described above is used to implement the method for connecting the corresponding terminal device to the power Internet of Things system in any of the foregoing embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0066] Based on the same inventive concept, corresponding to the methods of any of the above embodiments, this application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, it implements the method for a terminal device to access a power Internet of Things system as described in any of the above embodiments.

[0067] Figure 3 This embodiment illustrates a more specific hardware structure of an electronic device, which may include a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, memory 1020, input / output interface 1030, and communication interface 1040 are interconnected internally via the bus 1050.

[0068] The processor 1010 can be implemented using a general-purpose CPU (Central Processing Unit), microprocessor, application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.

[0069] The memory 1020 can be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1020 can store the operating system and other applications. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program code is stored in the memory 1020 and is called and executed by the processor 1010.

[0070] The input / output interface 1030 is used to connect input / output modules to realize information input and output. Input / output modules can be configured as components within the device (not shown in the figure) or externally connected to the device to provide corresponding functions. Input devices may include keyboards, mice, touchscreens, microphones, various sensors, etc., while output devices may include displays, speakers, vibrators, indicator lights, etc.

[0071] The communication interface 1040 is used to connect a communication module (not shown in the figure) to enable communication between this device and other devices. The communication module can communicate via wired means (such as USB, Ethernet cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.).

[0072] Bus 1050 includes a pathway for transmitting information between various components of the device, such as processor 1010, memory 1020, input / output interface 1030, and communication interface 1040.

[0073] It should be noted that although the above-described device only shows the processor 1010, memory 1020, input / output interface 1030, communication interface 1040, and bus 1050, in specific implementations, the device may also include other components necessary for normal operation. Furthermore, those skilled in the art will understand that the above-described device may only include the components necessary for implementing the embodiments of this specification, and not necessarily all the components shown in the figures.

[0074] The electronic devices described above are used to implement the method for connecting the corresponding terminal device to the power Internet of Things system in any of the foregoing embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0075] Based on the same inventive concept, corresponding to the methods of any of the above embodiments, this application also provides a non-transitory computer-readable storage medium that stores computer instructions for causing the computer to execute the method for a terminal device to access a power Internet of Things system as described in any of the above embodiments.

[0076] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transfer medium that can be used to store information accessible by a computing device.

[0077] The computer instructions stored in the storage medium of the above embodiments are used to cause the computer to execute the method for terminal devices to access the power Internet of Things system as described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0078] Those skilled in the art should understand that the discussion of any of the above embodiments is merely exemplary and is not intended to imply that the scope of this application (including the claims) is limited to these examples; within the framework of this application, the technical features of the above embodiments or different embodiments can also be combined, the steps can be implemented in any order, and there are many other variations of different aspects of the embodiments of this application as described above, which are not provided in the details for the sake of brevity.

[0079] Additionally, to simplify the description and discussion, and to avoid obscuring the embodiments of this application, the well-known power / ground connections to integrated circuit (IC) chips and other components may or may not be shown in the provided drawings. Furthermore, the apparatus may be shown in block diagram form to avoid obscuring the embodiments of this application, and this also takes into account the fact that the details of the implementation of these block diagram apparatuses are highly dependent on the platform on which the embodiments of this application will be implemented (i.e., these details should be fully understood by those skilled in the art). While specific details (e.g., circuits) have been set forth to describe exemplary embodiments of this application, it will be apparent to those skilled in the art that the embodiments of this application can be implemented without these specific details or with variations thereof. Therefore, these descriptions should be considered illustrative rather than restrictive.

[0080] Although this application has been described in conjunction with specific embodiments thereof, many substitutions, modifications, and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may be used with the embodiments discussed.

[0081] The embodiments of this application are intended to cover all such substitutions, modifications, and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the embodiments of this application should be included within the protection scope of this application.

Claims

1. A method for terminal devices to access a power Internet of Things (IoT) system, characterized in that, include: Receive the access request from the terminal device; Based on the access request, the communication channel between the terminal device and the power Internet of Things system and the communication protocol corresponding to the communication channel are determined, as well as the resource allocation weight corresponding to the terminal device is determined; Based on the access request and the resource allocation weight, a target service node matching the terminal device is determined from all service nodes in the power Internet of Things system. The terminal device is controlled to access the target service node in the power Internet of Things system through the communication channel and the communication protocol. The step of determining the communication channel between the terminal device and the power Internet of Things system and the corresponding communication protocol based on the access request includes: Obtain the remaining spectrum resources corresponding to the power Internet of Things system, and determine the communication channel based on the remaining spectrum resources and the access request; The signal-to-noise ratio (SNR) of the terminal device and the preset communication protocol probability are obtained, and the channel quality corresponding to the communication channel is determined based on the SNR. Based on the channel quality and the communication protocol probability, the communication protocol corresponding to the communication channel is determined from all communication protocols corresponding to the power Internet of Things system. The access request includes the memory and computing resources required by the task in the terminal device. The step of determining the target service node matching the terminal device from all service nodes in the power Internet of Things system based on the access request and the resource allocation weight includes: Based on the access request, the matching degree between the terminal device and all service nodes in the power Internet of Things system is determined respectively; Based on the resource allocation weight and the matching degree, the matching probability of the service node is determined; Find multiple service nodes whose available computing resources are greater than or equal to the required computing resources and whose available memory is greater than or equal to the memory required by the task; Among the plurality of service nodes, the service node corresponding to the maximum matching probability is found, and the service node is determined as the target service node; The step of determining the matching degree between the terminal device and all service nodes in the power Internet of Things system based on the access request includes: The matching degree is determined by the following formula: , in, For the first The terminal device and the first The matching degree of each service node For the first The memory required for each terminal device's tasks. For the first The memory that each service node can provide. For the first The computing resources required for the tasks of each terminal device. For the first The computing resources that each service node can provide For the first One service node, The weight corresponding to the memory required for the task. Calculate the weights corresponding to the resources required for the task.

2. The method according to claim 1, characterized in that, The step of determining the communication protocol corresponding to the communication channel from all communication protocols corresponding to the power Internet of Things system based on the channel quality and the communication protocol probability includes: Based on the communication protocol probabilities, the selection probabilities corresponding to each communication protocol in the pre-built communication protocol table are adjusted to obtain the target selection probability corresponding to each communication protocol. Based on the channel quality and the target selection probability, the communication protocol corresponding to the channel quality is determined in the communication protocol table, and this communication protocol is determined as the communication protocol corresponding to the communication channel.

3. The method according to claim 1, characterized in that, The access request includes the memory and computing resources required by the task in the terminal device. The step of determining the resource allocation weight corresponding to the terminal device based on the access request includes: The resource allocation weights are determined using the following formula: , in, Assign weights to the resources; The weight corresponding to the memory required for the task; For the first The memory required for each terminal device's tasks. Calculate the weights corresponding to the resources required for the task. For the first The computing resources required for the tasks of each terminal device.

4. The method according to claim 1, characterized in that, Determining the channel quality corresponding to the communication channel based on the signal-to-noise ratio includes: The channel quality is determined using the following formula: , in, The channel quality, For preset adjustment parameters, For the first Logarithmic signal-to-noise ratio of each terminal device.

5. A device for connecting terminal equipment to a power Internet of Things (IoT) system, characterized in that, include: The receiving module is configured to receive access requests from the terminal device; The first determining module is configured to determine, based on the access request, the communication channel between the terminal device and the power Internet of Things system and the communication protocol corresponding to the communication channel, and to determine the resource allocation weight corresponding to the terminal device; The second determining module is configured to determine, based on the access request and the resource allocation weight, a target service node that matches the terminal device from all service nodes in the power Internet of Things system. The access module is configured to control the terminal device to access the target service node in the power Internet of Things system through the communication channel and the communication protocol. The first determining module is further configured to: acquire the remaining spectrum resources corresponding to the power Internet of Things system; determine the communication channel based on the remaining spectrum resources and the access request; acquire the signal-to-noise ratio and preset communication protocol probability of the terminal device; determine the channel quality corresponding to the communication channel based on the signal-to-noise ratio; and determine the communication protocol corresponding to the communication channel from all communication protocols corresponding to the power Internet of Things system based on the channel quality and the communication protocol probability. The access request includes the memory and computing resources required by the task in the terminal device; the second determining module is further configured to: determine the matching degree between the terminal device and all service nodes in the power Internet of Things system based on the access request; determine the matching probability of the service node based on the resource allocation weight and the matching degree; find multiple service nodes whose available computing resources are greater than or equal to the required computing resources and whose available memory is greater than or equal to the memory required by the task; and find the service node with the maximum matching probability among the multiple service nodes, and determine the service node as the target service node. The second determining module is further configured to determine the matching degree using the following formula: , in, For the first The terminal device and the first The matching degree of each service node For the first The memory required for each terminal device's tasks. For the first The memory that each service node can provide. For the first The computing resources required for the tasks of each terminal device. For the first The computing resources that each service node can provide For the first One service node, The weight corresponding to the memory required for the task. Calculate the weights corresponding to the resources required for the task.

6. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the method as described in any one of claims 1 to 4.

7. A non-transitory computer-readable storage medium storing computer instructions, characterized in that, The computer instructions are used to cause the computer to perform the method according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • Intelligent Internet of Things gateway and Internet of Things system based on intelligent Internet of Things gateway

    CN110971515A

  • Cloud computing resource allocation method and device

    CN111225050A

  • Power business processing method based on 5G communication and control equipment

    CN114268673A