Edge Internet of Things data access method, system and equipment for power Internet of Things
Through the microservice hierarchical system architecture and concurrent access control method, plug-and-play power IoT devices are realized, solving the problems of large equipment access and waste of resources, reducing operation and maintenance difficulties and configuration time, and improving the system stability and resource utilization efficiency.
Patent Information
- Application Number
- CN202411160410.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-22
- Publication Date
- 2024-11-29
AI Technical Summary
The access to power IoT equipment has a large number of equipment access, wide distribution and lack of unified planning and design, resulting in confusion in data channel management, waste of terminal resources, long debugging time, and relying on specific manufacturers, it is impossible to achieve plug-and-play.
Using the microservice hierarchical system architecture to separate equipment and services, shield the underlying device drivers, and realize self-registration and centralization of sensors through concurrent access control methods and four-party collaborative control methods of sensors-edge IoT terminals-Internet of Things platform-main site Unified upload to realize plug-and-play of massive sensors.
It reduces the difficulty of operating and maintenance of the power Internet of Things, improves the success rate of sensor collection, reduces manual configuration and debugging time, ensures the stability and reliability of the equipment, and realizes the zero configuration of the terminal online operation.
Smart Images

Figure CN119052287A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of electric power Internet of Things, and specifically relates to an edge Internet of Things data access method, system and device for electric power Internet of Things. Background Art
[0002] With the rapid development of the Internet of Things, the number of network connections and the data traffic generated are growing at an exponential rate. If all data is transmitted to the cloud server for processing, it will cause a great burden on the communication network. In order to overcome the latency problem and network bandwidth limitation of cloud computing, edge computing provides high real-time services to user terminals by utilizing the computing, storage and communication resources of network edge devices closer to user terminals. By flexibly allocating and managing various resources, the edge computing network reduces the load of the communication network, reduces the transmission and computing latency, and improves the resource utilization efficiency and energy efficiency of the system. In view of the coexistence of multiple types of sensors in the power system, and the requirements for highly sensitive and accurate perception capabilities of devices and interconnection, intercommunication and interoperability between devices in the new power Internet of Things environment, the power Internet of Things architecture based on edge computing technology studies the comprehensive perception technology of state information in the power Internet of Things environment, studies the data processing technology of terminal devices, explores data applications suitable for edge computing, and combines business perception, data preprocessing, access control and virtual mapping methods to carry out research on edge computing technology with flexible resource orchestration and software and hardware deconstruction, which can effectively solve the problems of plug-and-play sensors, on-site real-time processing of terminal sensor data and collaborative deployment of cloud-edge applications.
[0003] The power grid has always had the problem of large number of equipment access and wide distribution. Due to its relatively low technical threshold, there are many manufacturers of various functional equipment. However, the traditional access to power Internet of Things equipment has serious problems due to the lack of unified planning and design: limited by the fact that most of the equipment between manufacturers adopts self-built protocols and data reporting formats, the management of equipment data channels is very chaotic, and the data correspondence requires independent deployment of applications for pairing. Especially when the substation is connected to different equipment from multiple manufacturers, it will cause a great waste of terminal resources. Secondly, since the terminal equipment is deployed in various locations, it takes a lot of time to debug the equipment; since local communication requires terminal cooperation, cloud-edge intercommunication debugging takes more time than traditional cloud-end intercommunication debugging. Furthermore, the entire system will have a long-term dependence on the manufacturer. When there is a problem with the equipment, it can only be replaced with the original manufacturer's device, and it cannot be replaced with other manufacturers' equipment. Therefore, the plug-and-play of low-voltage equipment is the key supporting technology to meet the future implementation of the power Internet of Things. Under the premise of consistent communication and protocol, the terminal can be put into operation with zero configuration, the configuration workload on the construction site can be reduced, and the accuracy of data collection can be improved. Summary of the invention
[0004] The purpose of the present invention is to address the problems in the above-mentioned prior art and provide an edge IoT data access method, system and device for the power IoT, so as to realize plug-and-play of massive sensors and reduce the difficulty of operation and maintenance of the power IoT.
[0005] In order to achieve the above object, the present invention has the following technical solutions:
[0006] In a first aspect, a method for accessing edge IoT data for power IoT is provided, comprising:
[0007] In edge IoT terminals, a pre-established microservice layered system architecture is used to separate devices and services, shield the underlying device drivers, deploy services in a unified manner, and complete centralized and unified data upload;
[0008] Based on the centrally uploaded data, a concurrent access control method is used to achieve sensor access;
[0009] A four-party collaborative control method of sensor-edge IoT terminal-IoT platform-master station is adopted to realize self-registration of connected sensors and complete edge IoT data access for power Internet of Things.
[0010] As a preferred solution, the microservice layered system architecture includes a device service layer, a core data service layer, a metadata service layer, a database and a message bus;
[0011] Among them, the device service layer receives data reported by the device or sensor. After the device service layer normalizes the data format, it initiates a request to add data records to the core data service layer. The core data service layer is used to receive the request to add data records and query the metadata service layer whether the device exists. After the core data service layer successfully queries the device, it inserts data into the database and publishes the corresponding data to the message bus. The core data service layer returns a success instruction to the device service layer.
[0012] As a preferred solution, in the microservice layered system architecture, the following three instructions are used to interact with edge IoT terminals and devices or sensors:
[0013] GET command, requesting data from the device;
[0014] SET command, requesting an action to be taken or starting a device or setting related configuration on the device;
[0015] PUT command sends the corresponding control instructions to the sensor.
[0016] As a preferred solution, in the step of implementing sensor access by using the concurrent access control method, the sensors and edge IoT terminals are grouped so that the number of sensors in each group is less than the concurrent capacity of the edge IoT terminal access point;
[0017] The service access control process of each group is divided into two cycles, namely the centralized cycle and the competitive cycle. During the centralized cycle, the sensor communicates with the edge IoT terminal in a competitive manner to upload power sensing service information. The edge IoT terminal collects data from sensors that failed to upload data, and broadcasts the notification to the corresponding sensors across the network to retransmit the lost data in a polling manner.
[0018] As a preferred solution, the concurrent access control method includes three processes: sensor grouping, centralized call and supplementary retransmission;
[0019] In the process of sensor grouping, the maximum throughput of the edge IoT terminal is N bps, the total number of sensors is M, and the number of sensors that can be accessed concurrently is T. After the edge IoT terminal completes the initialization interaction with all sensors, it obtains the deviceID number of the sensor through statistics; the edge IoT terminal divides all sensors into several groups according to the following formula, each group includes T sensors:
[0020] T=N / Len
[0021] In the formula, len is the maximum service message length of the sensor;
[0022] In the process of centralized call, the edge IoT terminal initiates a centralized cycle for the sensors in the sensor group Gj by broadcasting based on the known deviceID number of each sensor in the sensor group Gj and the number of sensors in the sensor group Gj. Then, all sensors in the sensor group Gj report data to the edge IoT terminal in a competitive manner within the centralized cycle time.
[0023] During the supplementary retransmission process, the edge IoT terminal counts the sensors that failed to upload, forms the sensor set Gr that needs to be supplemented with retransmission, and then performs supplementary retransmission on the corresponding sensors; the edge IoT terminal allocates respective time slots and spectrum resources to each sensor, and notifies the sensors in the sensor set Gr by broadcasting to initiate supplementary retransmission. Each sensor in the sensor set Gr reports business data in a polling manner until all sensors in the sensor set Gr achieve a 100% copying success rate.
[0024] As a preferred solution, in the sensor-edge IoT terminal-IoT platform-master station four-party collaborative control method:
[0025] The sensor goes online and registers with the edge IoT terminal in a self-describing format;
[0026] The edge IoT terminal performs address scanning according to the port address code setting rules and protocol setting rules to find the sensor device online; after discovery, it registers the sensor service, collects the sensor's application protocol, takes out the corresponding protocol point table from the protocol library, collects data, and matches the information; according to the address code definition rules, the sensor and the primary device type are grouped, and the primary device data collection point and sensor point table are established to correspond data, and data is collected and stored;
[0027] The IoT platform is used to register edge IoT terminals, report the device type and address code once, and report the device collection data to the master station according to the predetermined device data collection point table once;
[0028] The master station is used to confirm the equipment connection relationship based on the preliminary survey, and to carry out primary and secondary equipment connection and overall business use.
[0029] In the second aspect, an edge IoT data access system for the power IoT is provided, including:
[0030] The data upload module is used to separate devices and services in edge IoT terminals using a pre-established microservice layered system architecture, shield the underlying device drivers, deploy services in a unified manner, and complete centralized and unified data upload;
[0031] The sensor access module is used to implement sensor access based on the centrally uploaded data using a concurrent access control method;
[0032] The sensor self-registration module is used to adopt the sensor-edge IoT terminal-IoT platform-master station four-party collaborative control method to realize self-registration of connected sensors and complete edge IoT data access for the power Internet of Things.
[0033] As a preferred solution, the microservice layered system architecture adopted by the data upload module includes a device service layer, a core data service layer, a metadata service layer, a database and a message bus;
[0034] Among them, the device service layer receives data reported by the device or sensor. After the device service layer normalizes the data format, it initiates a request to add data records to the core data service layer. The core data service layer is used to receive the request to add data records and query the metadata service layer whether the device exists. After the core data service layer successfully queries the device, it inserts data into the database and publishes the corresponding data to the message bus. The core data service layer returns a success instruction to the device service layer.
[0035] As a preferred solution, the concurrent access control method adopted by the sensor access module includes three processes: sensor grouping, centralized call and supplementary retransmission;
[0036] In the process of sensor grouping, the maximum throughput of the edge IoT terminal is N bps, the total number of sensors is M, and the number of sensors that can be accessed concurrently is T. After the edge IoT terminal completes the initialization interaction with all sensors, it obtains the deviceID number of the sensor through statistics; the edge IoT terminal divides all sensors into several groups according to the following formula, each group includes T sensors:
[0037] T=N / Len
[0038] In the formula, len is the maximum service message length of the sensor;
[0039] In the process of centralized call, the edge IoT terminal initiates a centralized cycle for the sensors in the sensor group Gj by broadcasting based on the known deviceID number of each sensor in the sensor group Gj and the number of sensors in the sensor group Gj. Then, all sensors in the sensor group Gj report data to the edge IoT terminal in a competitive manner within the centralized cycle time.
[0040] During the supplementary retransmission process, the edge IoT terminal counts the sensors that failed to upload, forms the sensor set Gr that needs to be supplemented with retransmission, and then performs supplementary retransmission on the corresponding sensors; the edge IoT terminal allocates respective time slots and spectrum resources to each sensor, and notifies the sensors in the sensor set Gr by broadcasting to initiate supplementary retransmission. Each sensor in the sensor set Gr reports business data in a polling manner until all sensors in the sensor set Gr achieve a 100% copying success rate.
[0041] As a preferred solution, in the sensor self-registration module adopts the sensor-edge IoT terminal-IoT platform-master station four-party collaborative control method:
[0042] The sensor goes online and registers with the edge IoT terminal in a self-describing format;
[0043] The edge IoT terminal performs address scanning according to the port address code setting rules and protocol setting rules to find the sensor device online; after discovery, it registers the sensor service, collects the sensor's application protocol, takes out the corresponding protocol point table from the protocol library, collects data, and matches the information; according to the address code definition rules, the sensor and the primary device type are grouped, and the primary device data collection point and sensor point table are established to correspond data, and data is collected and stored;
[0044] The IoT platform is used to register edge IoT terminals, report the device type and address code once, and report the device collection data to the master station according to the predetermined device data collection point table once;
[0045] The master station is used to confirm the equipment connection relationship based on the preliminary survey, and to carry out primary and secondary equipment connection and overall business use.
[0046] In a third aspect, an electronic device is provided, comprising a processor and a memory, wherein the processor is used to execute a computer program stored in the memory to implement the edge IoT data access method for the power IoT.
[0047] In a fourth aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores at least one instruction, and when the at least one instruction is executed by a processor, the edge IoT data access method for the power IoT is implemented.
[0048] Compared with the prior art, the first aspect of the present invention has at least the following beneficial effects:
[0049] The microservice layered system architecture is used to separate devices and services, shielding the differences in the underlying device drivers, realizing unified deployment of services, and completing centralized and unified data upload. The concurrent access control method is used to achieve massive access to sensors. In the concurrent access control method, the sensor's reading success rate is improved by combining grouping, concentration and competition. The control method of sensor-edge IoT terminal-IoT platform-master station four-party collaboration is adopted to achieve self-registration of connected sensors and plug-and-play of massive sensors, reducing the difficulty of operation and maintenance of the power Internet of Things and promoting the further development of the power Internet of Things.
[0050] It can be understood that the beneficial effects of the second to fourth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0052] Figure 1 Flow chart of the edge IoT data access method for the power IoT according to an embodiment of the present invention;
[0053] Figure 2 Schematic diagram of device self-registration of the edge IoT data access method for the power IoT according to an embodiment of the present invention;
[0054] Figure 3 A schematic diagram of a microservice layered system architecture according to an embodiment of the present invention;
[0055] Figure 4 A structural block diagram of the edge IoT data access system for the power IoT in an embodiment of the present invention. DETAILED DESCRIPTION
[0056] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0057] The plug-and-play of power sensors mainly refers to the fact that when the power sensors are connected to the power system, they can automatically identify the connected system environment, complete the necessary configuration and adaptation, and achieve seamless access and immediate use without the need for additional manual installation of software, drivers, or complex settings. The plug-and-play feature of power sensors enables new devices to be quickly connected to the system and put into use, reducing the time for manual configuration and debugging and improving the operating efficiency of the power system. Through plug-and-play technology, the operation and maintenance personnel of the power system no longer need to configure software and drivers for each newly connected sensor separately, thereby reducing operation and maintenance costs and workload. The unified power Internet of Things operating system and Internet of Things communication protocol also ensure the stability and reliability of power sensors when they are connected to the system, reducing system failures caused by device incompatibility or configuration errors.
[0058] See also Figure 1 In order to solve the problem that massive sensors in the power Internet of Things are plug-and-play and difficult to operate and maintain, an embodiment of the present invention proposes an edge IoT data access method for the power Internet of Things, including the following steps:
[0059] S1. In edge IoT terminals, a pre-established microservice layered system architecture is used to separate devices and services, shield the underlying device drivers, deploy services in a unified manner, and complete centralized and unified data upload;
[0060] S2. Based on the centrally uploaded data, a concurrent access control method is used to achieve sensor access;
[0061] S3. Adopt the control method of sensor-edge IoT terminal-IoT platform-master station four-party collaboration to realize self-registration of connected sensors and complete edge IoT data access for power IoT.
[0062] In a possible implementation, the microservice layered system architecture described in step S1 includes a device service layer, a core data service layer, a metadata service layer, a database, and a message bus. Figure 3 As shown:
[0063] First, the device / sensor reports data to the device service layer periodically or when it exceeds the threshold. After the device service layer normalizes the data format, it initiates a request to add data records to the core data service layer. The core data service layer receives the request to add data records and queries the metadata service layer whether the device exists. After the core data service layer successfully queries the device, it inserts data into the database and publishes the corresponding data to the message bus. Finally, the core data service layer returns a success command to the device service layer.
[0064] The command microservice exposes commands in a common and standardized way to simplify communication with devices. The following three commands are commonly used to interact with edge smart terminals and sensor devices:
[0065] The GET command requests data from a device. This is typically used to request the latest sensor readings from a device.
[0066] SET command, which requests an action to be taken or to start a device or to set some configuration on the device;
[0067] PUT command sends the corresponding control instructions to the sensor.
[0068] In a possible implementation, step S2 adopts a concurrent access control method to implement the sensor access step, grouping sensors and edge IoT terminals so that the number of sensors in each group is less than the concurrent capacity of the edge IoT terminal access point; then, the service access control process of each group is divided into two cycles, namely, a centralized cycle and a competitive cycle, in combination with the characteristics of the power sensing service. During the centralized cycle, the sensor communicates with the edge IoT terminal in a competitive manner and uploads power sensing service information; the edge IoT terminal counts the sensors that failed to upload statistics, and broadcasts the notification to the corresponding sensors across the network to retransmit the lost data in a polling manner.
[0069] The concurrent access control method includes three processes: sensor grouping, centralized call and supplementary retransmission. In the implementation of the wireless sensor network concurrent service access control method, sensor grouping, centralized call and supplementary retransmission are combined together.
[0070] (1) Sensor grouping
[0071] In the process of sensor grouping, the maximum throughput of the edge IoT terminal is N bps, the total number of sensors is M, and the number of sensors that can be accessed concurrently is T. After the edge IoT terminal completes the initialization interaction with all sensors, it obtains the deviceID number of the sensor through statistics; the edge IoT terminal divides all sensors into several groups according to the following formula, each group includes T sensors:
[0072] T=N / Len
[0073] Where len is the maximum service message length of the sensor.
[0074] (2) Centralized call letter
[0075] In the process of centralized call, the edge IoT terminal initiates a centralized cycle for the sensors in the sensor group Gj by broadcasting based on the known deviceID number of each sensor in the sensor group Gj and the number of sensors T in the sensor group Gj. Then, all sensors in the sensor group Gj report data to the edge IoT terminal in a competitive manner within the centralized cycle time.
[0076] (3) Supplementary retransmission
[0077] In the process of supplementary retransmission, the edge IoT terminal counts the sensors that failed to upload, forming a sensor set Gr that needs to be supplemented and retransmitted, and the corresponding sensors need to be supplemented and retransmitted. The edge IoT terminal allocates each sensor its own time slot and spectrum resources, and notifies the sensors in the sensor set Gr to initiate supplementary retransmission by broadcasting. Each sensor in the sensor set Gr reports business data in a polling manner until all sensors in the sensor set Gr achieve a 100% copying success rate.
[0078] See also Figure 2 , the plug-and-play function needs to be realized in the terminal device, edge IoT terminal, IoT platform, and main station. In the control method of sensor-edge IoT terminal-IoT platform-main station four-party collaboration described in step S3:
[0079] The sensor goes online and registers with the edge IoT terminal in a self-describing format;
[0080] The edge IoT terminal performs address scanning according to the port address code setting rules and protocol setting rules, and automatically discovers the sensor device online; after discovering the sensor, it registers the sensor service, collects the sensor's application protocol, takes out the corresponding protocol point table from the protocol library, collects data, and matches the terminal ledger, protocol, address code and other information; according to the address code definition rules, the sensor and the primary device type are grouped, and the primary device data collection point and the sensor point table are established for data correspondence, and data collection and storage are performed;
[0081] The IoT platform is used to register edge IoT terminals, report the device type and address code once, and report the device collection data to the master station according to the predetermined device data collection point table once;
[0082] The master station is used to confirm the equipment connection relationship based on the preliminary survey, and to carry out primary and secondary equipment connection and overall business use.
[0083] The edge IoT data access method for the electric power IoT in the embodiment of the present invention separates the device and the service by design, shields the differences in the underlying drivers, realizes the unified deployment of services, and completes the centralized and unified upload of data. By combining the grouping, centralization and competition methods, the success rate of the sensor's reading is improved. The four-party collaborative method of sensors, edge IoT terminals, IoT platforms, and master stations is adopted to realize the plug-and-play of sensors, reduce the pressure of operation and maintenance, and further promote the implementation of the electric power IoT.
[0084] The edge IoT data access method for the power IoT of the embodiment of the present invention is verified through experiments. Electrical and environmental sensors such as partial discharge, vibration, temperature and humidity are deployed in the substation. Partial discharge uses RS485 access, vibration uses Bluetooth access, and temperature and humidity use micro-power access. Different sensors are connected to the edge IoT terminal. Different sensors can be automatically connected to the edge IoT terminal through point meters. The edge IoT terminal achieves a 100% data collection success rate for all sensors through different communication methods. The collected data can be calculated on-site, and the intensity of the partial discharge or the degree of displacement can be judged in real time. The alarm information is transmitted to the IoT platform, and further alarms are implemented at the master station.
[0085] See also Figure 4 The embodiment of the present invention also proposes an edge IoT data access system for the power IoT, including:
[0086] The data upload module is used to separate devices and services in edge IoT terminals using a pre-established microservice layered system architecture, shield the underlying device drivers, deploy services in a unified manner, and complete centralized and unified data upload;
[0087] The sensor access module is used to implement sensor access based on the centrally uploaded data using a concurrent access control method;
[0088] The sensor self-registration module is used to adopt the sensor-edge IoT terminal-IoT platform-master station four-party collaborative control method to realize self-registration of connected sensors and complete edge IoT data access for the power Internet of Things.
[0089] In a possible implementation, the microservice layered system architecture adopted by the data upload module includes a device service layer, a core data service layer, a metadata service layer, a database and a message bus;
[0090] Among them, the device service layer receives data reported by the device or sensor. After the device service layer normalizes the data format, it initiates a request to add data records to the core data service layer. The core data service layer is used to receive the request to add data records and query the metadata service layer whether the device exists. After the core data service layer successfully queries the device, it inserts data into the database and publishes the corresponding data to the message bus. The core data service layer returns a success instruction to the device service layer.
[0091] In a possible implementation, the concurrent access control method adopted by the sensor access module includes three processes: sensor grouping, centralized call signaling, and supplementary retransmission;
[0092] In the process of sensor grouping, the maximum throughput of the edge IoT terminal is N bps, the total number of sensors is M, and the number of sensors that can be accessed concurrently is T. After the edge IoT terminal completes the initialization interaction with all sensors, it obtains the deviceID number of the sensor through statistics; the edge IoT terminal divides all sensors into several groups according to the following formula, each group includes T sensors:
[0093] T=N / Len
[0094] In the formula, len is the maximum service message length of the sensor;
[0095] In the process of centralized call, the edge IoT terminal initiates a centralized cycle for the sensors in the sensor group Gj by broadcasting based on the known deviceID number of each sensor in the sensor group Gj and the number of sensors in the sensor group Gj. Then, all sensors in the sensor group Gj report data to the edge IoT terminal in a competitive manner within the centralized cycle time.
[0096] During the supplementary retransmission process, the edge IoT terminal counts the sensors that failed to upload, forms the sensor set Gr that needs to be supplemented with retransmission, and then performs supplementary retransmission on the corresponding sensors; the edge IoT terminal allocates respective time slots and spectrum resources to each sensor, and notifies the sensors in the sensor set Gr by broadcasting to initiate supplementary retransmission. Each sensor in the sensor set Gr reports business data in a polling manner until all sensors in the sensor set Gr achieve a 100% copying success rate.
[0097] In a possible implementation, in the sensor self-registration module adopts a sensor-edge IoT terminal-IoT platform-master station four-party collaborative control method:
[0098] The sensor goes online and registers with the edge IoT terminal in a self-describing format;
[0099] The edge IoT terminal performs address scanning according to the port address code setting rules and protocol setting rules to find the sensor device online; after discovery, it registers the sensor service, collects the sensor's application protocol, takes out the corresponding protocol point table from the protocol library, collects data, and matches the information; according to the address code definition rules, the sensor and the primary device type are grouped, and the primary device data collection point and sensor point table are established to correspond data, and data is collected and stored;
[0100] The IoT platform is used to register edge IoT terminals, report the device type and address code once, and report the device collection data to the master station according to the predetermined device data collection point table once;
[0101] The master station is used to confirm the equipment connection relationship based on the preliminary survey, and to carry out primary and secondary equipment connection and overall business use.
[0102] Another embodiment of the present invention further proposes an electronic device, including a processor and a memory, wherein the processor is used to execute a computer program stored in the memory to implement the edge IoT data access method for the power IoT.
[0103] Another embodiment of the present invention further proposes a computer-readable storage medium, which stores at least one instruction. When the at least one instruction is executed by a processor, the edge IoT data access method for the power IoT is implemented.
[0104] The computer program includes computer program code, which may be in source code form, object code form, executable file or some intermediate form. The computer-readable storage medium may include: any entity or device, medium, USB flash drive, mobile hard disk, disk, optical disk, computer memory, read-only memory, random access memory, electric carrier signal, telecommunication signal and software distribution medium, etc. that can carry the computer program code. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals. For ease of explanation, the above content only shows the part related to the embodiment of the present invention. For specific technical details not disclosed, please refer to the method part of the embodiment of the present invention. The computer-readable storage medium is non-temporary and can be stored in a storage device formed by various electronic devices, which can realize the execution process recorded in the method of the embodiment of the present invention.
[0105] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0106] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems) and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the process in the flowchart. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0107] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0108] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0109] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents. Any modification or equivalent replacement that does not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.
Claims
1. A data access method for edge IoT for power IoT. It is characterized in that include: In edge IoT terminals, a pre-established microservice layered system architecture is used to separate devices and services, shield the underlying device drivers, deploy services in a unified manner, and complete centralized and unified data upload; Based on the centrally uploaded data, a concurrent access control method is used to achieve sensor access; A four-party collaborative control method of sensor-edge IoT terminal-IoT platform-master station is adopted to realize self-registration of connected sensors and complete edge IoT data access for power Internet of Things.
2. According to the edge IoT data access method for the power IoT according to claim 1, It is characterized in that The microservice layered system architecture includes a device service layer, a core data service layer, a metadata service layer, a database and a message bus; Among them, the device service layer receives data reported by the device or sensor. After the device service layer normalizes the data format, it initiates a request to add data records to the core data service layer. The core data service layer is used to receive the request to add data records and query the metadata service layer whether the device exists. After the core data service layer successfully queries the device, it inserts data into the database and publishes the corresponding data to the message bus. The core data service layer returns a success instruction to the device service layer.
3. According to the edge IoT data access method for the power IoT according to claim 2, It is characterized in that In the microservice layered system architecture, the following three instructions are used to interact with edge IoT terminals and devices or sensors: GET command, requesting data from the device; SET command, requesting an action to be taken or starting a device or setting related configuration on the device; PUT command sends the corresponding control instructions to the sensor.
4. According to the edge IoT data access method for the power IoT according to claim 1, It is characterized in that In the step of implementing sensor access by using the concurrent access control method, the sensors and edge IoT terminals are grouped so that the number of sensors in each group is less than the concurrent capacity of the edge IoT terminal access point; The service access control process of each group is divided into two cycles, namely the centralized cycle and the competitive cycle. During the centralized cycle, the sensor communicates with the edge IoT terminal in a competitive manner to upload power sensing service information. The edge IoT terminal collects data from sensors that failed to upload data, and broadcasts the notification to the corresponding sensors across the network to retransmit the lost data in a polling manner.
5. According to the edge IoT data access method for the power IoT according to claim 4, It is characterized in that The concurrent access control method includes three processes: sensor grouping, centralized call and supplementary retransmission; In the process of sensor grouping, the maximum throughput of the edge IoT terminal is N bps, the total number of sensors is M, and the number of sensors that can be accessed concurrently is T. After the edge IoT terminal completes the initialization interaction with all sensors, it obtains the deviceID number of the sensor through statistics; the edge IoT terminal divides all sensors into several groups according to the following formula, each group includes T sensors: T=N / Len In the formula, len is the maximum service message length of the sensor; In the process of centralized call, the edge IoT terminal initiates a centralized cycle for the sensors in the sensor group Gj by broadcasting based on the known deviceID number of each sensor in the sensor group Gj and the number of sensors in the sensor group Gj. Then, all sensors in the sensor group Gj report data to the edge IoT terminal in a competitive manner within the centralized cycle time. During the supplementary retransmission process, the edge IoT terminal counts the sensors that failed to upload, forms the sensor set Gr that needs to be supplemented with retransmission, and then performs supplementary retransmission on the corresponding sensors; the edge IoT terminal allocates respective time slots and spectrum resources to each sensor, and notifies the sensors in the sensor set Gr by broadcasting to initiate supplementary retransmission. Each sensor in the sensor set Gr reports business data in a polling manner until all sensors in the sensor set Gr achieve a 100% copying success rate.
6. According to the edge IoT data access method for the power IoT according to claim 1, It is characterized in that In the control method of sensor-edge IoT terminal-IoT platform-master station four-party collaboration: The sensor goes online and registers with the edge IoT terminal in a self-describing format; The edge IoT terminal performs address scanning according to the port address code setting rules and protocol setting rules to find the sensor device online; after discovery, it registers the sensor service, collects the sensor's application protocol, takes out the corresponding protocol point table from the protocol library, collects data, and matches the information; according to the address code definition rules, the sensor and the primary device type are grouped, and the primary device data collection point and sensor point table are established to correspond data, and data is collected and stored; The IoT platform is used to register edge IoT terminals, report the device type and address code once, and report the device collection data to the master station according to the predetermined device data collection point table once; The master station is used to confirm the equipment connection relationship based on the preliminary survey, and to carry out primary and secondary equipment connection and overall business use.
7. An edge IoT data access system for power IoT, It is characterized in that include: The data upload module is used in the edge IoT terminal to separate devices and services using the pre-established microservice layered system architecture, shield the underlying device drivers, deploy services in a unified manner, and complete the centralized and unified upload of data; The sensor access module is used to implement sensor access based on the centrally uploaded data using a concurrent access control method; The sensor self-registration module is used to adopt the sensor-edge IoT terminal-IoT platform-master station four-party collaborative control method to realize self-registration of connected sensors and complete edge IoT data access for the power Internet of Things.
8. According to the edge IoT data access system for the power IoT according to claim 7, It is characterized in that The microservice layered system architecture adopted by the data upload module includes a device service layer, a core data service layer, a metadata service layer, a database and a message bus; Among them, the device service layer receives data reported by the device or sensor. After the device service layer normalizes the data format, it initiates a request to add data records to the core data service layer. The core data service layer is used to receive the request to add data records and query the metadata service layer whether the device exists. After the core data service layer successfully queries the device, it inserts data into the database and publishes the corresponding data to the message bus. The core data service layer returns a success instruction to the device service layer.
9. According to the edge IoT data access system for the power IoT according to claim 7, It is characterized in that The concurrent access control method adopted by the sensor access module includes three processes: sensor grouping, centralized call and supplementary retransmission; In the process of sensor grouping, the maximum throughput of the edge IoT terminal is N bps, the total number of sensors is M, and the number of sensors that can be accessed concurrently is T. After the edge IoT terminal completes the initialization interaction with all sensors, it obtains the deviceID number of the sensor through statistics; the edge IoT terminal divides all sensors into several groups according to the following formula, each group includes T sensors: T=N / Len In the formula, len is the maximum service message length of the sensor; In the process of centralized call, the edge IoT terminal initiates a centralized cycle for the sensors in the sensor group Gj by broadcasting based on the known deviceID number of each sensor in the sensor group Gj and the number of sensors in the sensor group Gj. Then, all sensors in the sensor group Gj report data to the edge IoT terminal in a competitive manner within the centralized cycle time. During the supplementary retransmission process, the edge IoT terminal counts the sensors that failed to upload, forms the sensor set Gr that needs to be supplemented with retransmission, and then performs supplementary retransmission on the corresponding sensors; the edge IoT terminal allocates respective time slots and spectrum resources to each sensor, and notifies the sensors in the sensor set Gr by broadcasting to initiate supplementary retransmission. Each sensor in the sensor set Gr reports business data in a polling manner until all sensors in the sensor set Gr achieve a 100% copying success rate.
10. According to the edge IoT data access system for power IoT according to claim 7, It is characterized in that In the sensor self-registration module adopts the sensor-edge IoT terminal-IoT platform-master station four-party collaborative control method: The sensor goes online and registers with the edge IoT terminal in a self-describing format; The edge IoT terminal performs address scanning according to the port address code setting rules and protocol setting rules to find the sensor device online; after discovery, it registers the sensor service, collects the sensor's application protocol, takes out the corresponding protocol point table from the protocol library, collects data, and matches the information; according to the address code definition rules, the sensor and the primary device type are grouped, and the primary device data collection point and sensor point table are established to correspond data, and data is collected and stored; The IoT platform is used to register edge IoT terminals, report the device type and address code once, and report the device collection data to the master station according to the predetermined device data collection point table once; The master station is used to confirm the equipment connection relationship based on the preliminary survey, and to carry out primary and secondary equipment connection and overall business use.
11. An electronic device, It is characterized in that It includes a processor and a memory, and the processor is used to execute a computer program stored in the memory to implement the edge IoT data access method for the power IoT as described in any one of claims 1 to 6.
12. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores at least one instruction, and when the at least one instruction is executed by the processor, it implements the edge IoT data access method for the power IoT as described in any one of claims 1 to 6.
