Cloud edge-end cooperation method and device for power internet of things, electronic equipment and storage medium
By implementing cloud edge-end collaboration method in the cloud center system of the power Internet of Things, and allocating and processing tasks according to event categories and device identification, the problems of cloud center system resource overload and network bandwidth pressure in the power Internet of Things are solved, and resource utilization is improved Efficiency, response speed and system reliability.
Patent Information
- Application Number
- CN202411544587.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-31
- Publication Date
- 2025-02-11
AI Technical Summary
In the power IoT, centralized processing causes cloud center system resource overload and network bandwidth pressure, especially when handling a large number of high-priority events, processing delays and resource bottlenecks may occur.
By implementing the cloud edge collaboration method in the cloud center system, the event processing request reported by the terminal device is received, and the event processing task is allocated to the appropriate resources according to the event category and device identification. High-priority events are processed by cloud center systems, and low-priority events are processed by edge devices to reduce data transmission and alleviate network bandwidth pressure.
Through reasonable event classification and processing strategies, the resource utilization efficiency, response speed and system reliability of the power Internet of Things are significantly improved, and the cloud center system resource overload and high network bandwidth pressure are avoided.
Smart Images

Figure CN119420753A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer application technology, and in particular to a cloud-edge-end collaboration method, device, electronic device and storage medium for power Internet of Things. Background Art
[0002] In the electric power Internet of Things, terminal devices frequently report various event processing requests, and the urgency and importance of these events vary.
[0003] In the related art, the centralized processing method is to hand over all events to the cloud center system for processing, which will cause the cloud center system to be overloaded and the response time to be prolonged. In particular, when processing a large number of high-priority events, processing delays and resource bottlenecks may occur. In addition, for some low-priority events, if centralized processing is also adopted, a large amount of network bandwidth and computing resources will be wasted, reducing the overall efficiency and response speed of the system. Summary of the invention
[0004] The present invention provides a cloud-edge-end collaboration method, device, electronic device and storage medium for the power Internet of Things to solve the problems in related technologies that all events are handled by the cloud center system, resulting in overload of cloud center system resources and high network bandwidth pressure.
[0005] According to one aspect of the present invention, a cloud-edge-device collaboration method for power Internet of Things is provided, which is applied to a cloud center system. The method includes:
[0006] Receive an event processing request corresponding to an event to be processed reported by a terminal device in the power Internet of Things, and determine the event category of the event to be processed and the device identifier of the terminal device, wherein the event category is associated with the urgency of the event and / or the importance of the event;
[0007] In the case where the event category is the first category, calling the system resources in the cloud center system to process the event to be processed, and feeding back the event processing result of the event to be processed to the terminal device according to the device identifier;
[0008] When the event category is the second category, the event to be processed and the device identification are sent to the edge device of the cloud center system for processing. When the event processing result corresponding to the event to be processed and the device identification reported by the edge device are received, the event processing result is fed back to the terminal device according to the device identification.
[0009] According to another aspect of the present invention, a cloud-edge-end collaboration device for power Internet of Things is provided, which is configured in a cloud center system, and includes:
[0010] An event request receiving module, used to receive an event processing request corresponding to an event to be processed reported by a terminal device in the power Internet of Things, and determine the event category of the event to be processed and the device identifier of the terminal device, wherein the event category is associated with the urgency of the event and / or the importance of the event;
[0011] A cloud event processing module, used for, when the event category is the first category, calling the system resources in the cloud center system to process the event to be processed, and feeding back the event processing result of the event to be processed to the terminal device according to the device identifier;
[0012] An edge-side event processing module is used to send the event to be processed and the device identifier to the edge device of the cloud center system for processing when the event category is the second category; upon receiving the event processing result corresponding to the event to be processed and the device identifier reported by the edge device, the event processing result is fed back to the terminal device according to the device identifier.
[0013] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0014] at least one processor; and
[0015] a memory communicatively connected to the at least one processor; wherein,
[0016] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the cloud-edge-terminal collaboration method for the power Internet of Things described in any embodiment of the present invention.
[0017] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the cloud-edge-terminal collaboration method for the power Internet of Things described in any embodiment of the present invention when executed.
[0018] The technical solution of the embodiment of the present invention determines the event category of the event to be processed and the device identification of the terminal device by receiving an event processing request corresponding to the event to be processed reported by the terminal device in the power Internet of Things. Since the event category is associated with the urgency of the event and / or the importance of the event, priority processing of key events can be achieved; then, when the event category is the first category, the system resources in the cloud center system are called to process the event to be processed, and the event processing result of the event to be processed is fed back to the terminal device according to the device identification, so that high-priority events can be processed by the cloud center system and data transmission delay can be reduced; when the event category is the first category, the system resources in the cloud center system are called to process the event to be processed, and the event processing result of the event to be processed is fed back to the terminal device according to the device identification, so that high-priority events can be processed by the cloud center system and data transmission delay can be reduced; In the case of the second category, the event to be processed and the device identification are sent to the edge device of the cloud center system for processing. When the event processing result corresponding to the event to be processed and the device identification reported by the edge device are received, the event processing result is fed back to the terminal device according to the device identification. This can reduce the amount of data transmission when low-priority events are processed on the edge device, alleviate network bandwidth pressure, and solve the problem in related technologies that all events are processed by the cloud center system, resulting in overload of cloud center system resources and high network bandwidth pressure. Through reasonable event classification and processing strategies, the resource utilization efficiency, response speed and system reliability of the power Internet of Things are significantly improved.
[0019] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0021] Figure 1 This is a flow chart of a cloud-edge-device collaboration method for the power Internet of Things provided according to the first embodiment of the present invention;
[0022] Figure 2 This is a flow chart of a cloud-edge-device collaboration method for power Internet of Things provided according to Embodiment 2 of the present invention;
[0023] Figure 3 This is a structural diagram of a cloud-edge-end collaboration device for power Internet of Things provided according to Embodiment 3 of the present invention;
[0024] Figure 4It is a structural diagram of an electronic device that implements the cloud-edge-terminal collaboration method for the power Internet of Things according to an embodiment of the present invention. DETAILED DESCRIPTION
[0025] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0026] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0027] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0028] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0029] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.
[0030] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.
[0031] As an optional but non-limiting implementation, in response to receiving an active request from the user, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.
[0032] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet the relevant laws and regulations may also be applied to the implementation of the present disclosure.
[0033] It is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and relevant provisions.
[0034] Embodiment 1
[0035] Figure 1 A flowchart of a cloud-edge-terminal collaboration method for the power Internet of Things is provided for the first embodiment of the present invention. This embodiment is applicable to situations in the power Internet of Things where high-priority and low-priority events need to be efficiently processed. The method can be executed by a cloud-edge-terminal collaboration device for the power Internet of Things. The cloud-edge-terminal collaboration device for the power Internet of Things can be implemented in the form of hardware and / or software, and optionally, can be implemented by an electronic device, which can be a mobile terminal, a PC or a server, etc.
[0036] like Figure 1 As shown, the method is applied to a cloud center system and may specifically include:
[0037] S110. Receive an event processing request corresponding to an event to be processed reported by a terminal device in the power Internet of Things, determine the event category of the event to be processed and the device identification of the terminal device, wherein the event category is associated with the urgency of the event and / or the importance of the event.
[0038] Among them, the power Internet of Things can be understood as connecting various power devices through the Internet to achieve data exchange and remote control between power devices. It can be understood that the application of power Internet of Things technology can improve the efficiency of power grid operation and enhance the reliability and safety of the power system. The terminal device can be understood as various intelligent devices installed on site in the power Internet of Things, such as smart meters or sensors. The terminal device is responsible for collecting the operation data of the power system and can send data or requests to the cloud center system. The event processing request can be understood as the information sent to the cloud center system when the terminal device detects a specific situation or anomaly, requesting corresponding processing. The event processing request may include but is not limited to fault reports and maintenance requests. The event category can be understood as dividing the event into different categories according to its nature. The event category is associated with the urgency of the event and / or the importance of the event. Exemplarily, the event category may include but is not limited to important and urgent event categories, important and non-urgent event categories, urgent and non-important event categories, and non-important and non-urgent event categories. The device identifier can be understood as a unique identifier of the terminal device, which is used to identify the terminal device in the power Internet of Things. The device identifier may include but is not limited to a physical address, a serial number or other forms of coding. To ensure the safe and stable operation of the power Internet of Things, strict security verification must be performed on the access terminal devices. This can effectively prevent malicious devices from accessing the network and avoid security risks such as data leakage and network attacks.
[0039] In order to ensure the safe and stable operation of the power Internet of Things, strict security verification can be performed on the terminal devices to be connected. This can effectively prevent malicious devices from accessing the network and avoid security risks such as data leakage and network attacks. Therefore, based on the above scheme, optionally, before receiving the event processing request corresponding to the event to be processed reported by the terminal device in the power Internet of Things, it also includes: performing security verification on the terminal device to be connected to the power Internet of Things, and connecting the terminal device to the power Internet of Things if the terminal device passes the security verification.
[0040] Among them, the security verification can be understood as a check on the terminal device before allowing it to access the power Internet of Things to ensure the working status of the terminal device.
[0041] As an optional implementation of an embodiment of the present invention, when the power Internet of Things receives an access request from a terminal device, the device attribute information of the terminal device to be connected to the power Internet of Things is checked to verify its legitimacy. The check of the device attribute information may include checking the unique identifier of the device such as the MAC address and serial number, and / or verifying the security credentials such as the digital certificate or password of the device. Further, when the device attribute information is verified, the security performance of the terminal device will be tested. The detection of security performance may include checking whether the device has known vulnerabilities and / or whether malware is installed. When the security performance test is passed, the terminal device may be further assigned access rights based on the security verification results of the terminal device to determine which network resources the device can access, which operations it can perform, etc. After completing the above verification, the terminal device will be allowed to access the power Internet of Things. At this point, the terminal device can start communicating and exchanging data with other devices in the network.
[0042] On the basis of the above scheme, optionally, the security verification of the terminal device to be connected to the power Internet of Things includes: detecting the working status of multiple device components of the terminal device to be connected to the power Internet of Things; when it is detected that the device component whose working status is a faulty status and the device component is a preset component, determining that the terminal device has not passed the security verification; when it is detected that the device component whose working status is a faulty status and the device component is not a preset component, or when the device component whose working status is not detected as a faulty status, determining that the terminal device has passed the security verification.
[0043] Among them, the working state can be understood as the current operating state of the device component, and the working state can be a normal working state or a fault state, etc. The fault state can be understood as the state when the device component cannot work normally, indicating that the component is faulty. The preset component can be understood as a device component that is specially designated as a key component during the security verification process. The working state of the preset component directly affects the overall security and reliability of the terminal device. Exemplarily, the communication module can be regarded as a preset component, because the failure of the communication module may cause the terminal device to be unable to communicate with the cloud center.
[0044] In an optional implementation, a health check module is set up inside the terminal device to perform status detection on each device component regularly or on demand, and the detection result includes the current working status (normal status or faulty status) of each device component; a preset component list is set up in the cloud center system, listing device components that are considered to be key components, such as communication modules, main control chips, and encryption modules, etc. The working status of device components will affect the security of the terminal device; the preset component list can be managed through a configuration file or a database; the cloud center system receives the working status of each device component reported by the terminal device, and checks whether any preset component is in a faulty state according to the preset component list; when a device component is detected to be in a faulty state, it is determined that the terminal device has failed the security verification; when a device component in a faulty state is detected and the corresponding device component is not a preset component, it is determined that the terminal device has passed the security verification.
[0045] The above scheme can effectively detect the working status of multiple device components of the terminal device, and determine whether the terminal device has passed the security verification based on the status of the preset components, ensuring that terminal devices that meet safety standards can access the power Internet of Things, thereby improving the safety and reliability of the entire system.
[0046] On the basis of the above scheme, optionally, after the event processing request corresponding to the event to be processed reported by the terminal device in the receiving power Internet of Things, it also includes: when the event category is the third category, determining the event processing method corresponding to the event to be processed, and sending the event to be processed, the event processing method and the device identification to the edge device of the cloud center system for processing, so that the edge device processes the event to be processed according to the event processing method; when receiving the event processing result corresponding to the event to be processed and the device identification reported by the edge device, the event processing result is fed back to the terminal device according to the device identification.
[0047] Among them, the third category can be understood as an unimportant and non-urgent event category. The event processing method can be understood as a pre-defined processing step for a specific event category. Exemplarily, the event processing method may include but is not limited to restarting the device, sending an alarm, and recording a log. The edge device can be understood as a computing node located near the source of data generation, which can perform some data processing tasks, reduce data transmission delays, and improve response speed. Edge devices locally process some tasks that do not require a large amount of computing resources, which can be used to reduce the burden on the cloud center system.
[0048] It is understandable that the third category of pending events is neither urgent nor important and can be given a lower priority for processing. For the third category of pending events, the cloud center system will determine the appropriate event processing method and send the event processing method together with the pending event and device identification to the edge device, instructing the edge device to process the pending event according to the event processing method.
[0049] The above scheme, by sending the third category of pending events, their event processing methods and device identifications to the edge device for processing, can not only effectively reduce the burden on the cloud center system and improve the response speed, but also ensure that the events are handled in a timely and appropriate manner. After the edge device completes the processing locally, it feeds back the event processing results to the cloud center system, and the cloud center system returns the results to the terminal device according to the device identification, ensuring the accurate transmission of information and closed-loop management, and improving the overall operation efficiency and reliability of the power Internet of Things.
[0050] S120. When the event category is the first category, call the system resources in the cloud center system to process the event to be processed, and feed back the event processing result of the event to be processed to the terminal device according to the device identifier.
[0051] The first category can be understood as the event category that needs to be quickly processed by the cloud center system by directly calling system resources. The first category of pending events has a high degree of urgency and importance. The system resources can be understood as the hardware and software resources that can be used to execute the pending events in the cloud center system. For example, the system resources may include but are not limited to computing power, storage space, and network bandwidth.
[0052] S130. When the event category is the second category, the event to be processed and the device identifier are sent to the edge device of the cloud center system for processing. Upon receiving the event processing result and the device identifier corresponding to the event to be processed reported by the edge device, the event processing result is fed back to the terminal device according to the device identifier.
[0053] Among them, the second category can be understood as the category of events processed by the edge devices of the cloud center system. Compared with the first category, the second category of events has a lower degree of urgency or importance, and can be processed in a timely manner closer to the data source (i.e., the edge device) to reduce dependence on the central system and reduce its burden. The second category may include important but not urgent events, urgent but not important events, etc. The edge device can be understood as a device located between the cloud center system and the terminal device, which can perform preliminary processing on some data locally, thereby reducing data transmission delays and speeding up response speed.
[0054] On the basis of the above scheme, optionally, after sending the event to be processed and the device identifier to the edge device of the cloud center system for processing, it also includes: detecting the event processing status of the event to be processed by the edge device, wherein the event processing status is used to characterize whether the event to be processed is in an abnormal processing state; when the event to be processed is in an abnormal processing state, determining an event processing method corresponding to the abnormal processing state, and sending the event processing method to the edge device, so that the edge device processes the event to be processed according to the event processing method.
[0055] Among them, the event processing status can be understood as the status of the processing progress and results of the pending event on the edge device. Exemplarily, the event processing status can be used to characterize whether the pending event is in an abnormal processing state. The abnormal processing status can be understood as an abnormal situation occurring during the processing of the pending event on the edge device. Exemplarily, the abnormal processing status can include but is not limited to processing timeout, processing failure, and insufficient resources.
[0056] The above scheme can detect and handle abnormal situations in a timely manner by detecting the event processing status of the edge device for the event to be processed. When it is detected that the event is in an abnormal processing state, it will determine and send the corresponding event processing method to guide the edge device to perform correct processing. This not only improves the reliability and efficiency of event processing, reduces delays and errors caused by abnormal processing, but also enhances the overall stability and responsiveness of the system, ensuring that the terminal devices in the power Internet of Things can operate normally.
[0057] The technical solution of the embodiment of the present invention determines the event category of the event to be processed and the device identification of the terminal device by receiving an event processing request corresponding to the event to be processed reported by the terminal device in the power Internet of Things. Since the event category is associated with the urgency of the event and / or the importance of the event, priority processing of key events can be achieved; then, when the event category is the first category, the system resources in the cloud center system are called to process the event to be processed, and the event processing result of the event to be processed is fed back to the terminal device according to the device identification, so that high-priority events can be processed by the cloud center system and data transmission delay can be reduced; when the event category is the first category, the system resources in the cloud center system are called to process the event to be processed, and the event processing result of the event to be processed is fed back to the terminal device according to the device identification, so that high-priority events can be processed by the cloud center system and data transmission delay can be reduced; In the case of the second category, the event to be processed and the device identification are sent to the edge device of the cloud center system for processing. When the event processing result corresponding to the event to be processed and the device identification reported by the edge device are received, the event processing result is fed back to the terminal device according to the device identification. This can reduce the amount of data transmission when low-priority events are processed on the edge device, alleviate network bandwidth pressure, and solve the problem in related technologies that all events are processed by the cloud center system, resulting in overload of cloud center system resources and high network bandwidth pressure. Through reasonable event classification and processing strategies, the resource utilization efficiency, response speed and system reliability of the power Internet of Things are significantly improved.
[0058] Embodiment 2
[0059] Figure 2 A flowchart of a cloud-edge collaboration method for electric power Internet of Things provided in Embodiment 2 of the present invention, this embodiment is a further supplement to the above embodiments. Optionally, after the event to be processed and the device identifier are sent to the edge device of the cloud center system for processing, it also includes: detecting the event processing status of the event to be processed by the edge device, wherein the event processing status is used to characterize whether the event to be processed is in an abnormal processing state; when the event to be processed is in an abnormal processing state, the event category of the event to be processed is adjusted to the first category, the edge device stops processing the event to be processed, and the system resources in the cloud center system are called to process the event to be processed. For specific implementation methods, please refer to the description of this embodiment. Among them, the technical features that are the same or similar to the above embodiments are not repeated here.
[0060] like Figure 2 As shown, the method may specifically include:
[0061] S210, receiving an event processing request corresponding to an event to be processed reported by a terminal device in the power Internet of Things, determining the event category of the event to be processed and the device identification of the terminal device, wherein the event category is associated with the urgency of the event and / or the importance of the event.
[0062] S220. When the event category is the first category, call the system resources in the cloud center system to process the event to be processed, and feed back the event processing result of the event to be processed to the terminal device according to the device identifier.
[0063] S230. When the event category is the second category, the event to be processed and the device identifier are sent to the edge device of the cloud center system for processing, and the event processing status of the event to be processed by the edge device is detected, wherein the event processing status is used to characterize whether the event to be processed is in an abnormal processing state.
[0064] Based on the above solution, the edge device not only processes some tasks that do not require a large amount of computing resources locally, but also detects the event processing status in real time through preset abnormal detection conditions. Optionally, the event processing status of the edge device for the event to be processed includes:
[0065] When a preset abnormality detection condition is met, the event processing state of the edge device for the event to be processed is determined as an abnormal processing state; wherein the abnormality detection condition includes:
[0066]
[0067] Wherein, H represents the standard data of the event to be processed, N represents the real-time data of the event to be processed processed in real time by the edge device, and T h Indicates the standard processing time of the pending event, T n represents the total time length of the edge device processing the event to be processed, μ represents the weight of the event to be processed, and δ is a preset constant.
[0068] Among them, the abnormal detection condition can be understood as a condition for judging whether the processing of the event to be processed by the edge device is in an abnormal state. The standard data can be understood as the processing data that the event to be processed should reach under normal circumstances according to historical data or preset standards, which is used to compare the actual processing data and evaluate whether the processing is normal. The actual data can be understood as the data generated by the edge device when actually processing the event to be processed. The standard processing time can be understood as the processing time that the event to be processed should reach under normal circumstances according to historical data or preset standards, which is used to compare the actual processing time and evaluate whether the processing is normal. The preset constant can be understood as a threshold for judging the abnormal processing state. It can be understood that when the calculation result of the abnormal detection formula is greater than or equal to this preset constant, it is judged that the event processing state is in an abnormal processing state.
[0069] The above scheme, by introducing abnormal detection conditions, can detect in real time the processing status of the edge device for the second category of pending events. When an abnormal processing status is detected, it can promptly discover and take corresponding measures to ensure the accuracy and timeliness of event processing. It not only improves the robustness and reliability of the system, but also reduces delays and errors caused by abnormal processing, thereby improving the overall operating efficiency of the power Internet of Things.
[0070] S240. When the event to be processed is in an abnormal processing state, the event category of the event to be processed is adjusted to the first category, the edge device stops processing the event to be processed, and the system resources in the cloud center system are called to process the event to be processed.
[0071] It is understandable that when a pending event is in an abnormal processing state, it means that the edge device may not be able to process the pending event normally, or processing the event may lead to some adverse consequences (such as device overload, data loss, etc.). In this case, the event category of the pending event is adjusted to the first category, so that the pending event has a higher priority or requires a more special processing method; then, the edge device stops processing the pending event; finally, the system resources in the cloud center system are called to process the pending event, because the cloud center system usually has more powerful processing capabilities and more resources.
[0072] S250: When receiving the event processing result and the device identification reported by the edge device and corresponding to the event to be processed, feed back the event processing result to the terminal device according to the device identification.
[0073] The technical solution of the embodiment of the present invention detects the processing status of the second category of pending events by the edge device in real time, and uses the exception detection condition to determine whether the pending events are abnormal. When the abnormal processing status is detected, the event category is adjusted to the first category, the processing of the edge device is stopped, and the resources of the cloud center system are called for processing. This not only can timely discover and handle abnormal situations, avoiding problems caused by edge device processing failures, but also improves the response speed and processing efficiency of the system, ensures the timely processing of high-priority events, and improves the overall stability and reliability of the power Internet of Things.
[0074] Embodiment 3
[0075] Figure 3 This is a schematic diagram of the structure of a cloud-edge-end collaboration device for the power Internet of Things provided in the third embodiment of the present invention. Figure 3 As shown, the device is configured in a cloud center system, including: an event request receiving module 310, a cloud event processing module 320, and an edge side event processing module 330.
[0076] Among them, the event request receiving module 310 is used to receive an event processing request corresponding to the event to be processed reported by the terminal device in the power Internet of Things, determine the event category of the event to be processed and the device identification of the terminal device, wherein the event category is associated with the urgency of the event and / or the importance of the event; the cloud event processing module 320 is used to call the system resources in the cloud center system to process the event to be processed when the event category is the first category, and feedback the event processing result of the event to be processed to the terminal device according to the device identification; the edge side event processing module 330 is used to send the event to be processed and the device identification to the edge device of the cloud center system for processing when the event category is the second category, and when receiving the event processing result corresponding to the event to be processed and the device identification reported by the edge device, feedback the event processing result to the terminal device according to the device identification.
[0077] The technical solution of the embodiment of the present invention receives, through the event request receiving module 310, an event processing request corresponding to the event to be processed reported by the terminal device in the power Internet of Things, and determines the event category of the event to be processed and the device identification of the terminal device. Since the event category is associated with the urgency of the event and / or the importance of the event, priority processing of key events can be achieved; then, through the cloud event processing module 320, when the event category is the first category, the system resources in the cloud center system are called to process the event to be processed, and the event processing result of the event to be processed is fed back to the terminal device according to the device identification, so that high-priority events can be processed by the cloud center system and data transmission delay can be reduced; finally, through the edge When the event category is the second category, the edge-side event processing module 330 sends the event to be processed and the device identification to the edge device of the cloud center system for processing. When receiving the event processing result and the device identification corresponding to the event to be processed reported by the edge device, the event processing result is fed back to the terminal device according to the device identification. This can reduce the amount of data transmission when low-priority events are processed on the edge device, alleviate network bandwidth pressure, and solve the problem in related technologies that all events are processed by the cloud center system, resulting in overload of cloud center system resources and high network bandwidth pressure. Through reasonable event classification and processing strategies, the resource utilization efficiency, response speed and system reliability of the power Internet of Things are significantly improved.
[0078] On the basis of the above scheme, optionally, the cloud-edge-end collaboration device for the power Internet of Things also includes: a first event processing status checking module and a first pending event processing module.
[0079] Among them, the first event processing status checking module is used to detect the event processing status of the event to be processed by the edge device after the event to be processed and the device identifier are sent to the edge device of the cloud center system for processing, wherein the event processing status is used to characterize whether the event to be processed is in an abnormal processing state; the event processing module to be processed is used to adjust the event category of the event to be processed to the first category when the event to be processed is in an abnormal processing state, stop the edge device from processing the event to be processed, and call the system resources in the cloud center system to process the event to be processed.
[0080] On the basis of the above scheme, optionally, the cloud-edge-end collaboration device for the power Internet of Things also includes: a second event processing status checking module and a second pending event processing module.
[0081] Among them, the second event processing status checking module is used to detect the event processing status of the event to be processed by the edge device after sending the event to be processed and the device identifier to the edge device of the cloud center system for processing, wherein the event processing status is used to characterize whether the event to be processed is in an abnormal processing state; the second event processing module to be processed is used to determine the event processing method corresponding to the abnormal processing state when the event to be processed is in an abnormal processing state, and send the event processing method to the edge device, so that the edge device processes the event to be processed according to the event processing method.
[0082] Based on the above solution, optionally, the first event processing status checking module includes: an exception processing status determining submodule.
[0083] Wherein, when a preset abnormality detection condition is met, the event processing state of the edge device for the event to be processed is determined as an abnormal processing state; wherein the abnormality detection condition includes:
[0084]
[0085] Wherein, H represents the standard data of the event to be processed, N represents the real-time data of the event to be processed processed in real time by the edge device, and T h Indicates the standard processing time of the pending event, T n represents the total time length of the edge device processing the event to be processed, μ represents the weight of the event to be processed, and δ is a preset constant.
[0086] On the basis of the above scheme, optionally, the cloud-edge-end collaboration device for the power Internet of Things also includes: a third event processing module to be processed and an event processing result feedback module.
[0087] Among them, the third pending event processing module is used to determine the event processing method corresponding to the pending event after the event processing request corresponding to the pending event is reported by the terminal device in the receiving power Internet of Things, when the event category is the third category, and send the pending event, the event processing method and the device identification to the edge device of the cloud center system for processing, so that the edge device processes the pending event according to the event processing method; the event processing result feedback module is used to feedback the event processing result to the terminal device according to the device identification when receiving the event processing result corresponding to the pending event reported by the edge device and the device identification.
[0088] Based on the above solution, optionally, the cloud-edge-end collaboration device for the power Internet of Things also includes: a terminal device access module.
[0089] Among them, the terminal device access module is used to perform security verification on the terminal device to be connected to the power Internet of Things before receiving the event processing request corresponding to the event to be processed reported by the terminal device in the power Internet of Things, and connect the terminal device to the power Internet of Things if the terminal device passes the security verification.
[0090] On the basis of the above solution, optionally, the terminal device access module includes: a working status detection submodule, a first terminal device security verification submodule, and a second terminal device security verification submodule.
[0091] Among them, the working status detection submodule is used to detect the working status of multiple device components of the terminal device to be connected to the power Internet of Things; the first terminal device security verification submodule is used to determine that the terminal device has not passed the security verification when it is detected that the device component whose working status is a fault state and the device component is a preset component; the second terminal device security verification submodule is used to determine that the terminal device has passed the security verification when it is detected that the device component whose working status is a fault state and the device component is not a preset component, or when the device component whose working status is a fault state is not detected.
[0092] The cloud-edge-end collaboration device for the power Internet of Things provided by an embodiment of the present invention can execute the cloud-edge-end collaboration method for the power Internet of Things provided by any embodiment of the present invention, and has functional modules and beneficial effects corresponding to the execution method.
[0093] Embodiment 4
[0094] Figure 4 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0095] like Figure 4As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0096] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0097] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The processor 11 executes the various methods and processes described above, such as a cloud-edge-end collaboration method for the power Internet of Things.
[0098] In some embodiments, a cloud-edge-end collaboration method for the power Internet of Things may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the cloud-edge-end collaboration method for the power Internet of Things described above may be executed. Alternatively, in other embodiments, the processor 11 may be configured to execute a cloud-edge-end collaboration method for the power Internet of Things in any other appropriate manner (for example, by means of firmware).
[0099] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0100] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0101] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0102] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0103] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0104] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0105] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0106] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A cloud-edge-end collaboration method for power Internet of Things, characterized in that: Applied to a cloud center system, the method comprises: Receive an event processing request corresponding to an event to be processed reported by a terminal device in the power Internet of Things, and determine the event category of the event to be processed and the device identifier of the terminal device, wherein the event category is associated with the urgency of the event and / or the importance of the event; In the case where the event category is the first category, calling the system resources in the cloud center system to process the event to be processed, and feeding back the event processing result of the event to be processed to the terminal device according to the device identifier; When the event category is the second category, the event to be processed and the device identification are sent to the edge device of the cloud center system for processing. When the event processing result corresponding to the event to be processed and the device identification reported by the edge device are received, the event processing result is fed back to the terminal device according to the device identification.
2. The method according to claim 1, characterized in that After sending the event to be processed and the device identifier to the edge device of the cloud center system for processing, the method further includes: Detecting an event processing state of the event to be processed by the edge device, wherein the event processing state is used to indicate whether the event to be processed is in an abnormal processing state; When the event to be processed is in an abnormal processing state, the event category of the event to be processed is adjusted to the first category, the edge device stops processing the event to be processed, and the system resources in the cloud center system are called to process the event to be processed.
3. The method according to claim 1, characterized in that: After sending the event to be processed and the device identifier to the edge device of the cloud center system for processing, the method further includes: Detecting an event processing state of the event to be processed by the edge device, wherein the event processing state is used to indicate whether the event to be processed is in an abnormal processing state; When the event to be processed is in an abnormal processing state, an event processing method corresponding to the abnormal processing state is determined, and the event processing method is sent to the edge device, so that the edge device processes the event to be processed according to the event processing method.
4. The method according to claim 2, characterized in that: The detecting the event processing status of the edge device for the event to be processed includes: When a preset abnormality detection condition is met, the event processing state of the edge device for the event to be processed is determined as an abnormal processing state; wherein the abnormality detection condition includes: Wherein, H represents the standard data of the event to be processed, N represents the real-time data of the event to be processed processed in real time by the edge device, and T h Indicates the standard processing time of the pending event, T n represents the total time taken by the edge device to process the event to be processed, μ represents the weight of the event to be processed, and δ is a preset constant.
5. The method according to claim 1, characterized in that After the event processing request corresponding to the event to be processed reported by the terminal device in the power Internet of Things is received, the method further includes: In the case where the event category is the third category, determining an event processing method corresponding to the event to be processed, and sending the event to be processed, the event processing method and the device identifier to the edge device of the cloud center system for processing, so that the edge device processes the event to be processed according to the event processing method; When receiving the event processing result and the device identification reported by the edge device and corresponding to the event to be processed, the event processing result is fed back to the terminal device according to the device identification.
6. The method according to claim 1, characterized in that Before the receiving of the event processing request corresponding to the event to be processed reported by the terminal device in the power Internet of Things, the method further includes: A security verification is performed on the terminal device to be connected to the power Internet of Things. If the terminal device passes the security verification, the terminal device is connected to the power Internet of Things.
7. The method according to claim 6, characterized in that The security verification of the terminal device to be connected to the power Internet of Things includes: Detect the working status of multiple device components of the terminal device to be connected to the power Internet of Things; In the case where it is detected that the device component whose working state is a fault state and the device component is a preset component, determining that the terminal device has failed the security verification; When it is detected that the device component whose working state is a faulty state and the device component is not a preset component, or when it is not detected that the device component whose working state is a faulty state, it is determined that the terminal device passes the security verification.
8. A cloud-edge-end collaboration device for power Internet of Things, characterized in that: Configured in the cloud center system, including: An event request receiving module, used to receive an event processing request corresponding to an event to be processed reported by a terminal device in the power Internet of Things, and determine the event category of the event to be processed and the device identifier of the terminal device, wherein the event category is associated with the urgency of the event and / or the importance of the event; A cloud event processing module, used for, when the event category is the first category, calling the system resources in the cloud center system to process the event to be processed, and feeding back the event processing result of the event to be processed to the terminal device according to the device identifier; An edge-side event processing module is used to send the event to be processed and the device identifier to the edge device of the cloud center system for processing when the event category is the second category; upon receiving the event processing result corresponding to the event to be processed and the device identifier reported by the edge device, the event processing result is fed back to the terminal device according to the device identifier.
9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the cloud-edge-terminal collaboration method for the power Internet of Things as described in any one of claims 1-7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the cloud-edge-terminal collaboration method for the power Internet of Things as described in any one of claims 1-7 when executed.
Citation Information
Patent Citations
Edge-cloud heterogeneity-oriented multi-level transaction scheduling allocation strategy
CN109684083A
Edge cloud collaborative scheduling method and system
CN116708451A
Method for determining priority of calculation unloading task
CN116775053A