A smart city intelligent linkage method and system based on edge-cloud collaboration
By adopting an intelligent linkage method based on edge-cloud collaboration in smart cities, configuring common linkage principles and using edge servers to process linkage data, the problem of existing systems being difficult to achieve complex scenario linkage is solved, linkage efficiency is improved and cloud-side pressure is slowed down.
Patent Information
- Application Number
- CN202211684616.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-27
- Publication Date
- 2025-03-28
- Estimated Expiration
- 2042-12-27
AI Technical Summary
The existing smart city intelligent linkage system can only support the linkage operation of a single scenario, resulting in low efficiency of linkage application and difficulty in achieving complex scenario linkage.
The smart city intelligent linkage method based on edge-cloud collaboration is adopted, and the common linkage principle is configured through the cloud management platform, and the edge server is used to monitor and process linkage data in real time to ensure that each linkage task execution device executes tasks in accordance with the general linkage principle.
It realizes flexible linkage in massive equipment scenarios in smart cities, allows linkage of complex scenarios, reduces linkage event processing time, improves linkage efficiency, and slows down the pressure on massive storage, computing and network bandwidth on the cloud side.
Smart Images

Figure CN116800744B_ABST
Abstract
Description
Technical Field
[0001] The present invention proposes a smart city intelligent linkage method, device and system based on edge-cloud collaboration, which belongs to the field of smart city technology. Background Art
[0002] Smart city intelligent linkage often sets corresponding linkage rules according to different scenarios. Once the system detects a linkage event, it will immediately call the device to perform the linkage task. In this case, the linkage system only supports linkage in some simple scenarios, and it is difficult to achieve linkage in complex scenarios; the linkage event processing time is long and the linkage efficiency is low. Summary of the invention
[0003] The present invention provides a smart city intelligent linkage method, device and system based on edge-cloud collaboration, which is used to solve the problem that the linkage operation application efficiency of the existing linkage system is low because the linkage rules can only support the linkage operation of a single scene:
[0004] A smart city intelligent linkage device based on edge-cloud collaboration, the smart city intelligent linkage device comprising a cloud management platform, a smart city platform, network components and multiple linkage task execution devices; the cloud management platform is data-connected to the smart city platform via the network components; the smart city platform is data-connected to multiple linkage task execution devices via the network components.
[0005] Furthermore, the network components include a distributed gateway and an edge server; a connection relationship is established between the distributed gateway and the edge server.
[0006] A smart city intelligent linkage method based on edge-cloud collaboration, the smart city intelligent linkage method comprising:
[0007] The cloud management platform configures a general linkage principle according to the linkage task requirements, and adjusts the linkage principle according to changes in the linkage task requirements, to obtain a general linkage principle corresponding to the current linkage task requirements;
[0008] The cloud management platform monitors in real time whether a linkage start instruction sent by the smart city platform is received, and after receiving the linkage start instruction sent by the smart city platform, sends the general linkage principle to the smart city platform;
[0009] The cloud management platform obtains the linkage data of each linkage task execution device sent by the smart city platform in real time, and stores and manages the linkage data.
[0010] Furthermore, the process of sending linkage data of each linkage task execution device by the smart city platform includes:
[0011] The smart city platform obtains linkage data of the linkage task execution device in the process of executing the linkage task in real time through the network component;
[0012] The smart city platform sends the linkage data acquired in real time to the cloud management platform through the network component.
[0013] Furthermore, the smart city platform sends the linkage data acquired in real time to the cloud management platform through a network component, including:
[0014] The edge server in the network component receives the linkage data sent by the smart city platform;
[0015] The edge server in the network component determines whether each linkage task execution device executes the linkage task according to the general linkage principle through the linkage data;
[0016] The edge server in the network component statistically classifies the linkage devices that perform linkage tasks according to the general linkage principle and their corresponding linkage devices, and the linkage devices that do not perform linkage tasks according to the general linkage principle and their corresponding linkage devices, obtains the classified linkage data, and sends the classified linkage data to the cloud management platform;
[0017] The edge server in the network component sends information about the linkage devices and their corresponding linkage devices that fail to perform linkage tasks according to the general linkage principle to the smart city platform, and issues an alarm prompt on the smart city platform.
[0018] Furthermore, the cloud management platform monitors in real time whether a linkage start instruction sent by the smart city platform is received, and after receiving the linkage start instruction sent by the smart city platform, sends the general linkage principle to the smart city platform, including:
[0019] The smart city platform needs to obtain the linkage data of the linkage task execution device in the process of executing the linkage task in real time through the network component. After receiving the linkage start instruction sent by the smart city platform, the linkage data of each linkage task execution device in the process of executing the linkage task will be added with the device identification of the corresponding linkage task execution device, and then the linkage data with the added identification will be combined to form the general linkage principle data and sent to the smart city platform. The specific steps include:
[0020] Step A1: Use formula (1) to add the device ID of the corresponding linkage task execution device to the linkage data of each linkage task execution device during the linkage task execution process.
[0021] [Z(a)] 16 =[G(a)] 16<<L0+[B(a)] 16 (1)
[0022] where [Z(a)] 16 Indicates the hexadecimal form of the linkage data corresponding to the ath linkage task execution device after adding the device identifier; [G(a)] 16 Indicates the hexadecimal form of the linkage data corresponding to the ath linkage task execution device before the device identification is added; L0 indicates the number of data bits of the device identification data in hexadecimal form (the number of data bits of all device data in hexadecimal form is L0); [B(a)] 16 Indicates the hexadecimal form of the identification data of the a-th linkage task execution device; << indicates left shift;
[0023] Step A2: Use formula (2) to combine the linkage data with the added identifier to form the general linkage principle data
[0024]
[0025] Where R 16 Indicates the hexadecimal format of the general linkage principle data; A 16 The hexadecimal format of the general frame header representing the general linkage principle data; E 16 Indicates the hexadecimal form of the general frame tail of the general linkage principle data; {,,} indicates that the three hexadecimal data separated by commas in the brackets are connected head to tail according to their positions to form a new hexadecimal data; [Z(0)] 16 Indicates the set intermediate calculation amount, its value is 0; [Z(b)] 16 If b>0, it means the hexadecimal form of the linkage data corresponding to the bth linkage task execution device after adding the device identifier. If b=0, it means [Z(0)] 16 ; n represents the total number of the linkage task execution devices;
[0026] Step A3: After the general linkage principle data is sent to the smart city platform, when the smart city platform needs to check the linkage data of a specific linkage task execution device, the corresponding linkage data is extracted from the general linkage principle data according to the device information of the linkage task execution device being checked using formula (3).
[0027] G[B(K)] 16 =R 16 {I{[B(K-1)] 16 ,R 16 [(i+L0)→i]}+1→J{[B(K)] 16 ,R 16 [(j+1)→(j+L0)]}} (3)
[0028] where G[B(K)] 16 Indicates that the extracted identification data is [B(K)] 16 The corresponding linkage data of the linkage task execution device; [B(K)] 16 Indicates the hexadecimal form of the identification data of the K-th linkage task execution device; [B(K-1)] 16 The hexadecimal format of the identification data of the K-1th linkage task execution device; R 16 [(j+1)→(j+L0)] represents hexadecimal data R 16 The hexadecimal data from the j+1th bit to the j+L0th bit in J{[B(K)] 16 ,R 16 [(j+1)→(j+L0)]} means to change the value of k from 1 to len(R 16 ) is substituted into the formula to obtain [B(K)] 16 =R 16 The value of j at [(k+1)→(j+L0)]; I{[B(K-1)] 16 ,R 16 [(i+L0)→i]} means to change the value of i from 1 to len(R 16 ) into the formula to obtain [B(K-1)] 16 =R 16 The value of i when [(i+L0)→i]; len(R 16 ) represents hexadecimal data R 16 The total number of data bits; R 16 {I{[L(K-1)] 16 ,R 16 [(i+L0)→i]}+1→J{[B(K)] 16 ,R 16 [(j+1)→(j+L0)]}} represents the hexadecimal data R 16 From the I{[B(K-1)] 16 ,R 16 [(i+L0)→i]}+1 to Jth {[B(K)] 16 ,R 16 [(j+1)→(j+L0)]} hexadecimal data on the position.
[0029] A smart city intelligent linkage system based on edge-cloud collaboration, the smart city intelligent linkage system comprising:
[0030] The principle setting module is used for the cloud management platform to configure the general linkage principle according to the linkage task requirements, and adjust the linkage principle according to the changes in the linkage task requirements, and obtain the general linkage principle corresponding to the current linkage task requirements;
[0031] The command sending module is used for the cloud management platform to monitor in real time whether the linkage start command sent by the smart city platform is received, and after receiving the linkage start command sent by the smart city platform, send the general linkage principle to the smart city platform;
[0032] The data acquisition module is used for the cloud management platform to obtain the linkage data of each linkage task execution device sent by the smart city platform in real time, and to store and manage the linkage data.
[0033] Furthermore, the data acquisition module includes:
[0034] A linkage data acquisition module is used for the smart city platform to obtain the linkage data of the linkage task execution device in the process of executing the linkage task in real time through the network component;
[0035] The data sending module is used for the smart city platform to send the linkage data acquired in real time to the cloud management platform through the network component.
[0036] Furthermore, the data sending module includes:
[0037] A data receiving module, used for the edge server in the network component to receive the linkage data sent by the smart city platform;
[0038] A task execution judgment module, used for the edge server in the network component to judge whether each linkage task execution device executes the linkage task according to the general linkage principle through the linkage data;
[0039] A linkage data classification module is used for the edge server in the network component to statistically classify the linkage devices that perform linkage tasks according to the general linkage principle and their corresponding linkage devices, and the linkage devices that do not perform linkage tasks according to the general linkage principle and their corresponding linkage devices, obtain the classified linkage data, and send the classified linkage data to the cloud management platform;
[0040] The alarm module is used to send information about the linkage device and its corresponding linkage device whose edge server in the network component fails to perform the linkage task according to the general linkage principle to the smart city platform, and to issue an alarm prompt on the smart city platform.
[0041] Furthermore, the instruction sending module includes:
[0042] The smart city platform needs to obtain the linkage data of the linkage task execution device in the process of executing the linkage task in real time through the network component. After receiving the linkage start instruction sent by the smart city platform, the linkage data of each linkage task execution device in the process of executing the linkage task will be added with the device identification of the corresponding linkage task execution device, and then the linkage data with the added identification will be combined to form the general linkage principle data and sent to the smart city platform. The specific steps include:
[0043] Step A1: Use formula (1) to add the device ID of the corresponding linkage task execution device to the linkage data of each linkage task execution device during the linkage task execution process.
[0044] [Z(a)] 16 =[G(a)] 16 <<L0+[B(a)] 16 (1)
[0045] where [Z(a)] 16 Indicates the hexadecimal form of the linkage data corresponding to the ath linkage task execution device after adding the device identifier; [G(a)] 16 Indicates the hexadecimal form of the linkage data corresponding to the ath linkage task execution device before the device identification is added; L0 indicates the number of data bits of the device identification data in hexadecimal form (the number of data bits of all device data in hexadecimal form is L0); [B(a)] 16 Indicates the hexadecimal form of the identification data of the a-th linkage task execution device; << indicates left shift;
[0046] Step A2: Use formula (2) to combine the linkage data with the added identifier to form the general linkage principle data
[0047]
[0048] Where R 16 Indicates the hexadecimal format of the general linkage principle data; A 16 The hexadecimal format of the general frame header representing the general linkage principle data; E 16 Indicates the hexadecimal form of the general frame tail of the general linkage principle data; {,,} indicates that the three hexadecimal data separated by commas in the brackets are connected head to tail according to their positions to form a new hexadecimal data; [Z(0)] 16 Indicates the set intermediate calculation amount, its value is 0; [Z(b)] 16 If b>0, it means the hexadecimal form of the linkage data corresponding to the bth linkage task execution device after adding the device identifier. If b=0, it means [Z(0)] 16; n represents the total number of the linkage task execution devices;
[0049] Step A3: After the general linkage principle data is sent to the smart city platform, when the smart city platform needs to check the linkage data of a specific linkage task execution device, the corresponding linkage data is extracted from the general linkage principle data according to the device information of the linkage task execution device being checked using formula (3).
[0050] G[B(K)] 16 =R 16 {I{[B(K-1)] 16 ,R 16 [(i+L0)→i]}+1→J{[B(K)] 16 ,R 16 [(j+1)→(j+L0)]}} (3)
[0051] where G[B(K)] 16 Indicates that the extracted identification data is [B(K)] 16 The corresponding linkage data of the linkage task execution device; [B(K)] 16 Indicates the hexadecimal form of the identification data of the K-th linkage task execution device; [B(K-1)] 16 The hexadecimal format of the identification data of the K-1th linkage task execution device; R 16 [(j+1)→(j+L0)] represents hexadecimal data R 16 The hexadecimal data from the j+1th bit to the j+L0th bit in J{[B(K)] 16 ,R 16 [(j+1)→(j+L0)]} means to change the value of k from 1 to len(R 16 ) is substituted into the formula to obtain [B(K)] 16 =R 16 The value of j at [(k+1)→(j+L0)]; I{[B(K-1)] 16 ,R 16 [(i+L0)→i]} means to change the value of i from 1 to len(R 16 ) into the formula to obtain [B(K-1)] 16 =R 16 The value of i when [(i+L0)→i]; len(R 16 ) represents hexadecimal data R 16 The total number of data bits; R 16 {I{[L(K-1)] 16 ,R 16 [(i+L0)→i]}+1→J{[B(K)]16 ,R 16 [(j+1)→(j+L0)]}} represents the hexadecimal data R 16 From the I{[B(K-1)] 16 ,R 16 [(i+L0)→i]}+1 to Jth {[B(K)] 16 ,R 16 [(j+1)→(j+L0)]} hexadecimal data on the position.
[0052] Beneficial effects of the present invention:
[0053] The present invention proposes a smart city intelligent linkage method, device and system based on edge-cloud collaboration: configuring general linkage rules is more suitable for scenarios with massive devices in smart cities and has higher flexibility; using edge-cloud collaboration strategies during the linkage process allows complex scenario linkage, reduces the time for linkage event processing, improves linkage efficiency, and also alleviates the pressure on massive storage, computing and network bandwidth on the cloud side. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] Figure 1 is a schematic diagram of the device of the present invention;
[0055] Figure 2 is a flow chart of the method of the present invention;
[0056] Figure 3 The system block diagram of the system of the present invention. DETAILED DESCRIPTION
[0057] The preferred embodiments of the present invention are described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.
[0058] The embodiment of the present invention proposes a smart city intelligent linkage device based on edge-cloud collaboration, such as Figure 1 As shown, the smart city intelligent linkage device includes a cloud management platform, a smart city platform, a network component and a plurality of linkage task execution devices; the cloud management platform is connected to the smart city platform through the network component; the smart city platform is connected to the plurality of linkage task execution devices through the network component. Among them, the network component includes a distributed gateway and an edge server; a connection relationship is established between the distributed gateway and the edge server.
[0059] The working principle of the above technical solution is: first, the cloud management platform configures the general linkage principle according to the linkage task requirements, and adjusts the linkage principle according to the changes in the linkage task requirements, and obtains the general linkage principle corresponding to the current linkage task requirements; then, the cloud management platform monitors in real time whether the linkage start instruction sent by the smart city platform is received, and after receiving the linkage start instruction sent by the smart city platform, the general linkage principle is sent to the smart city platform; finally, the cloud management platform obtains in real time the linkage data of each linkage task execution device sent by the smart city platform, and stores and manages the linkage data.
[0060] The effect of the above technical solution is: the general linkage rules for configuring a smart city intelligent linkage device based on edge-cloud collaboration proposed in this embodiment are more suitable for scenarios with massive devices in smart cities and have higher flexibility; the edge-cloud collaboration strategy is used in the linkage process, allowing complex scenario linkage, reducing the time for linkage event processing, improving linkage efficiency, and also alleviating the pressure on massive storage, computing and network bandwidth on the cloud side.
[0061] The embodiment of the present invention proposes a smart city intelligent linkage method based on edge-cloud collaboration, such as Figure 2 As shown, the smart city intelligent linkage method includes:
[0062] S1. The cloud management platform configures a general linkage principle according to the linkage task requirements, and adjusts the linkage principle according to changes in the linkage task requirements to obtain a general linkage principle corresponding to the current linkage task requirements;
[0063] S2. The cloud management platform monitors in real time whether it has received the linkage start instruction sent by the smart city platform, and after receiving the linkage start instruction sent by the smart city platform, sends the general linkage principle to the smart city platform;
[0064] S3. The cloud management platform obtains the linkage data of each linkage task execution device sent by the smart city platform in real time, and stores and manages the linkage data.
[0065] The working principle of the above technical solution is: first, the cloud management platform configures the general linkage principle according to the linkage task requirements, and adjusts the linkage principle according to the changes in the linkage task requirements, and obtains the general linkage principle corresponding to the current linkage task requirements; then, the cloud management platform monitors in real time whether the linkage start instruction sent by the smart city platform is received, and after receiving the linkage start instruction sent by the smart city platform, the general linkage principle is sent to the smart city platform; finally, the cloud management platform obtains in real time the linkage data of each linkage task execution device sent by the smart city platform, and stores and manages the linkage data.
[0066] The effect of the above technical solution is: the smart city intelligent linkage method based on edge-cloud collaboration proposed in this embodiment configures general linkage rules, which is more suitable for the scenario of massive devices in smart cities and has higher flexibility; the edge-cloud collaboration strategy is used in the linkage process, which allows complex scenario linkage, reduces the time for linkage event processing, improves linkage efficiency, and also reduces the pressure on massive storage, computing and network bandwidth on the cloud side.
[0067] In one embodiment of the present invention, the process of the smart city platform sending linkage data of each linkage task execution device includes:
[0068] S301, the smart city platform obtains linkage data of the linkage task execution device in the process of executing the linkage task in real time through the network component;
[0069] S302: The smart city platform sends the linkage data acquired in real time to the cloud management platform through a network component.
[0070] The smart city platform sends the linkage data acquired in real time to the cloud management platform through a network component, including:
[0071] S3021. The edge server in the network component receives the linkage data sent by the smart city platform;
[0072] S3022: The edge server in the network component determines whether each linkage task execution device executes the linkage task according to the general linkage principle through the linkage data;
[0073] S3023, the edge server in the network component statistically classifies the linkage devices that perform linkage tasks according to the general linkage principle and their corresponding linkage devices, and the linkage devices that do not perform linkage tasks according to the general linkage principle and their corresponding linkage devices, obtains the classified linkage data, and sends the classified linkage data to the cloud management platform;
[0074] S3024. The edge server in the network component sends information about the linkage devices and their corresponding linkage devices that fail to perform linkage tasks according to the general linkage principle to the smart city platform, and issues an alarm prompt on the smart city platform.
[0075] The working principle of the above technical solution is: first, the smart city platform obtains the linkage data of the linkage task execution device in the process of executing the linkage task in real time through the network component; then, the smart city platform sends the real-time acquired linkage data to the cloud management platform through the network component.
[0076] The smart city platform sends the linkage data acquired in real time to the cloud management platform through the network component, specifically:
[0077] First, the edge server in the network component receives the linkage data sent by the smart city platform; then, the edge server in the network component determines whether the linkage task execution devices perform the linkage tasks according to the general linkage principle through the linkage data; subsequently, the edge server in the network component statistically classifies the linkage devices that perform the linkage tasks according to the general linkage principle and their corresponding linkage devices, and the linkage devices that do not perform the linkage tasks according to the general linkage principle and their corresponding linkage devices, obtains the classified linkage data, and sends the classified linkage data to the cloud management platform; finally, the edge server in the network component sends the information of the linkage devices that do not perform the linkage tasks according to the general linkage principle and their corresponding linkage devices to the smart city platform, and issues an alarm prompt on the smart city platform.
[0078] The effects of the above technical solution are: by configuring general linkage rules, it is more suitable for the scenario of massive devices in smart cities and has higher flexibility; using edge-cloud collaboration strategies during the linkage process allows complex scenario linkage, reduces the time for linkage event processing, improves linkage efficiency, and also reduces the pressure on massive storage, computing and network bandwidth on the cloud side.
[0079] In one embodiment of the present invention, the cloud management platform monitors in real time whether a linkage start instruction sent by the smart city platform is received, and after receiving the linkage start instruction sent by the smart city platform, sends the general linkage principle to the smart city platform, including:
[0080] The smart city platform needs to obtain the linkage data of the linkage task execution device in the process of executing the linkage task in real time through the network component. After receiving the linkage start instruction sent by the smart city platform, the linkage data of each linkage task execution device in the process of executing the linkage task will be added with the device identification of the corresponding linkage task execution device, and then the linkage data with the added identification will be combined to form the general linkage principle data and sent to the smart city platform. The specific steps include:
[0081] Step A1: Use formula (1) to add the device ID of the corresponding linkage task execution device to the linkage data of each linkage task execution device during the linkage task execution process.
[0082] [Z(a)] 16 =[G(a)] 16 <<L0+[B(a)] 16 (1)
[0083] where [Z(a)]16 Indicates the hexadecimal form of the linkage data corresponding to the ath linkage task execution device after adding the device identifier; [G(a)] 16 Indicates the hexadecimal form of the linkage data corresponding to the ath linkage task execution device before the device identification is added; L0 indicates the number of data bits of the device identification data in hexadecimal form (the number of data bits of all device data in hexadecimal form is L0); [B(a)] 16 Indicates the hexadecimal form of the identification data of the a-th linkage task execution device; << indicates left shift;
[0084] Step A2: Use formula (2) to combine the linkage data with the added identifier to form the general linkage principle data
[0085]
[0086] Where R 16 Indicates the hexadecimal format of the general linkage principle data; A 16 The hexadecimal format of the general frame header representing the general linkage principle data; E 16 Indicates the hexadecimal form of the general frame tail of the general linkage principle data; {,,} indicates that the three hexadecimal data separated by commas in the brackets are connected head to tail according to their positions to form a new hexadecimal data; [Z(0)] 16 Indicates the set intermediate calculation amount, its value is 0; [Z(b)] 16 If b>0, it means the hexadecimal form of the linkage data corresponding to the bth linkage task execution device after adding the device identifier. If b=0, it means [Z(0)] 16 ; n represents the total number of the linkage task execution devices;
[0087] Step A3: After the general linkage principle data is sent to the smart city platform, when the smart city platform needs to check the linkage data of a specific linkage task execution device, the corresponding linkage data is extracted from the general linkage principle data according to the device information of the linkage task execution device being checked using formula (3).
[0088] G[B(K)] 16 =R 16 {I{[B(K-1)] 16 ,R 16 [(i+L0)→i]}+1→J{[B(K)] 16 ,R 16 [(j+1)→(j+L0)]}} (3)
[0089] where G[B(K)] 16 Indicates that the extracted identification data is [B(K)]16 The corresponding linkage data of the linkage task execution device; [B(K)] 16 Indicates the hexadecimal form of the identification data of the K-th linkage task execution device; [B(K-1)] 16 The hexadecimal format of the identification data of the K-1th linkage task execution device; R 16 [(j+1)→(j+L0)] represents hexadecimal data R 16 The hexadecimal data from the j+1th bit to the j+L0th bit in J{[B(K)] 16 ,R 16 [(j+1)→(j+L0)]} means to change the value of j from 1 to len(R 16 ) is substituted into the formula to obtain [B(K)] 16 =R 16 The value of j at [(j+1)→(j+L0)]; I{[B(K-1)] 16 ,R 16 [(i+L0)→i]} means to change the value of i from 1 to len(R 16 ) into the formula to obtain [B(K-1)] 16 =R 16 The value of i when [(i+L0)→i]; len(R 16 ) represents hexadecimal data R 16 The total number of data bits; R 16 {I{[B(K-1)] 16 ,R 16 [(i+L0)→i]}+1→J{[B(K)] 16 ,R 16 [(j+1)→(j+L0)]}} represents the hexadecimal data R 16 From the I{[B(K-1)] 16 ,R 16 [(i+L0)→i]}+1 to Jth {[B(K)] 16 ,R 16 [(j+1)→(j+L0)]} hexadecimal data on the position.
[0090] The beneficial effect of the above technical solution is: using the formula (1) of step A1, the linkage data of each linkage task execution device in the process of executing the linkage task will be added with the device identification of the corresponding linkage task execution device, thereby providing an identification basis for subsequent targeted data extraction; then using the formula (2) of step A2, the linkage data with the added identification is combined to form general linkage principle data, thereby ensuring the integrity of the data; finally, using the formula (3) of step A3, the corresponding linkage data is extracted from the general linkage principle data according to the device information of the linkage task execution device being consulted, so that the corresponding linkage data can be automatically and quickly found in the general linkage principle data according to the identification, thereby ensuring the efficiency and intelligence of the system.
[0091] The embodiment of the present invention proposes a smart city intelligent linkage system based on edge-cloud collaboration, such as Figure 2 As shown, the smart city intelligent linkage system includes:
[0092] The principle setting module is used for the cloud management platform to configure the general linkage principle according to the linkage task requirements, and adjust the linkage principle according to the changes in the linkage task requirements, and obtain the general linkage principle corresponding to the current linkage task requirements;
[0093] The command sending module is used for the cloud management platform to monitor in real time whether the linkage start command sent by the smart city platform is received, and after receiving the linkage start command sent by the smart city platform, send the general linkage principle to the smart city platform;
[0094] The data acquisition module is used for the cloud management platform to obtain the linkage data of each linkage task execution device sent by the smart city platform in real time, and to store and manage the linkage data.
[0095] The working principle of the above technical solution is: first, the cloud management platform is controlled by the principle setting module to configure the general linkage principle according to the linkage task requirements, and the linkage principle is adjusted according to the changes in the linkage task requirements to obtain the general linkage principle corresponding to the current linkage task requirements; then, the instruction sending module is used to control the cloud management platform to monitor in real time whether the linkage start instruction sent by the smart city platform is received, and after receiving the linkage start instruction sent by the smart city platform, the general linkage principle is sent to the smart city platform; finally, the data acquisition module is used to control the cloud management platform to obtain in real time the linkage data of each linkage task execution device sent by the smart city platform, and store and manage the linkage data.
[0096] The effect of the above technical solution is: the general linkage rules configured for the smart city intelligent linkage system based on edge-cloud collaboration proposed in this embodiment are more suitable for the scenario of massive devices in smart cities and have higher flexibility; the edge-cloud collaboration strategy is used in the linkage process, which allows complex scenario linkage, reduces the time for linkage event processing, improves linkage efficiency, and also reduces the pressure on massive storage, computing and network bandwidth on the cloud side.
[0097] In one embodiment of the present invention, the data acquisition module includes:
[0098] A linkage data acquisition module is used for the smart city platform to obtain the linkage data of the linkage task execution device in the process of executing the linkage task in real time through the network component;
[0099] The data sending module is used for the smart city platform to send the linkage data acquired in real time to the cloud management platform through the network component.
[0100] The data sending module comprises:
[0101] A data receiving module, used for the edge server in the network component to receive the linkage data sent by the smart city platform;
[0102] A task execution judgment module, used for the edge server in the network component to judge whether each linkage task execution device executes the linkage task according to the general linkage principle through the linkage data;
[0103] A linkage data classification module is used for the edge server in the network component to statistically classify the linkage devices that perform linkage tasks according to the general linkage principle and their corresponding linkage devices, and the linkage devices that do not perform linkage tasks according to the general linkage principle and their corresponding linkage devices, obtain the classified linkage data, and send the classified linkage data to the cloud management platform;
[0104] The alarm module is used to send information about the linkage device and its corresponding linkage device whose edge server in the network component fails to perform the linkage task according to the general linkage principle to the smart city platform, and to issue an alarm prompt on the smart city platform.
[0105] The working principle of the above technical solution is: first, the linkage data acquisition module is used to control the smart city platform to obtain the linkage data of the linkage task execution device in the process of executing the linkage task in real time through the network component; then, the data sending module is used to control the smart city platform to send the real-time acquired linkage data to the cloud management platform through the network component.
[0106] The operation process of the data sending module includes:
[0107] First, the edge server in the network component is controlled by a data receiving module to receive the linkage data sent by the smart city platform;
[0108] Then, the task execution judgment module is used to control the edge server in the network component to judge whether each linkage task execution device executes the linkage task according to the general linkage principle through the linkage data;
[0109] Afterwards, the linkage data classification module is used to control the edge server in the network component to statistically classify the linkage devices that perform linkage tasks according to the general linkage principle and their corresponding linkage devices, and the linkage devices that do not perform linkage tasks according to the general linkage principle and their corresponding linkage devices, to obtain the classified linkage data, and to send the classified linkage data to the cloud management platform;
[0110] Finally, an alarm module is used to control the edge server in the network component to send information of the linkage device and its corresponding linkage device that fail to perform the linkage task according to the general linkage principle to the smart city platform, and an alarm prompt is issued on the smart city platform.
[0111] The effects of the above technical solution are: by configuring general linkage rules, it is more suitable for the scenario of massive devices in smart cities and has higher flexibility; using edge-cloud collaboration strategies during the linkage process allows complex scenario linkage, reduces the time for linkage event processing, improves linkage efficiency, and also reduces the pressure on massive storage, computing and network bandwidth on the cloud side.
[0112] In one embodiment of the present invention, the instruction sending module includes:
[0113] The smart city platform needs to obtain the linkage data of the linkage task execution device in the process of executing the linkage task in real time through the network component. After receiving the linkage start instruction sent by the smart city platform, the linkage data of each linkage task execution device in the process of executing the linkage task will be added with the device identification of the corresponding linkage task execution device, and then the linkage data with the added identification will be combined to form the general linkage principle data and sent to the smart city platform. The specific steps include:
[0114] Step A1: Use formula (1) to add the device ID of the corresponding linkage task execution device to the linkage data of each linkage task execution device during the linkage task execution process.
[0115] [Z(a)] 16 =[G(a)] 16 <<L0+[B(a)] 16 (1)
[0116] where [Z(a)]16 Indicates the hexadecimal form of the linkage data corresponding to the ath linkage task execution device after adding the device identifier; [G(a)] 16 Indicates the hexadecimal form of the linkage data corresponding to the ath linkage task execution device before the device identification is added; L0 indicates the number of data bits of the device identification data in hexadecimal form (the number of data bits of all device data in hexadecimal form is L0); [B(a)] 16 Indicates the hexadecimal form of the identification data of the a-th linkage task execution device; << indicates left shift;
[0117] Step A2: Use formula (2) to combine the linkage data with the added identifier to form the general linkage principle data
[0118]
[0119] Where R 16 Indicates the hexadecimal format of the general linkage principle data; A 16 The hexadecimal format of the general frame header representing the general linkage principle data; E 16 Indicates the hexadecimal form of the general frame tail of the general linkage principle data; {,,} indicates that the three hexadecimal data separated by commas in the brackets are connected head to tail according to their positions to form a new hexadecimal data; [Z(0)] 16 Indicates the set intermediate calculation amount, its value is 0; [Z(b)] 16 If b>0, it means the hexadecimal form of the linkage data corresponding to the bth linkage task execution device after adding the device identifier. If b=0, it means [Z(0)] 16 ; n represents the total number of the linkage task execution devices;
[0120] Step A3: After the general linkage principle data is sent to the smart city platform, when the smart city platform needs to check the linkage data of a specific linkage task execution device, the corresponding linkage data is extracted from the general linkage principle data according to the device information of the linkage task execution device being checked using formula (3).
[0121] G[B(K)] 16 =R 16 {I{[B(K-1)] 16 ,R 16 [(i+L0)→i]}+1→J{[B(K)] 16 ,R 16 [(j+1)→(j+L0)]}} (3)
[0122] where G[B(K)] 16 Indicates that the extracted identification data is [B(K)]16 The corresponding linkage data of the linkage task execution device; [B(K)] 16 Indicates the hexadecimal form of the identification data of the K-th linkage task execution device; [B(K-1)] 16 The hexadecimal format of the identification data of the K-1th linkage task execution device; R 16 [(j+1)→(j+L0)] represents hexadecimal data R 16 The hexadecimal data from the j+1th bit to the j+L0th bit in J{[B(K)] 16 ,R 16 [(j+1)→(j+L0)]} means to change the value of j from 1 to len(R 16 ) is substituted into the formula to obtain [B(K)] 16 =R 16 The value of j at [(j+1)→(j+L0)]; I{[B(K-1)] 16 ,R 16 [(i+L0)→i]} means to change the value of i from 1 to len(R 16 ) into the formula to obtain [B(K-1)] 16 =R 16 The value of i when [(i+L0)→i]; len(R 16 ) represents hexadecimal data R 16 The total number of data bits; R 16 {I{[B(K-1)] 16 ,R 16 [(i+L0)→i]}+1→J{[B(K)] 16 ,R 16 [(j+1)→(j+L0)]}} represents the hexadecimal data R 16 From the Ith {[L(K-1)] 16 ,R 16 [(i+L0)→i]}+1 to Jth {[B(K)] 16 ,R 16 [(j+1)→(j+L0)]} hexadecimal data on the position.
[0123] The beneficial effect of the above technical solution is: using formula (1) of step A1, the linkage data of each linkage task execution device in the process of executing the linkage task will be added with the device identification of the corresponding linkage task execution device, thereby providing an identification basis for subsequent targeted data extraction; then using formula (2) of step A2, the linkage data with the added identification is combined to form general linkage principle data, thereby ensuring the integrity of the data; finally, using formula (3) of step A3, the corresponding linkage data is extracted from the general linkage principle data according to the device information of the linkage task execution device being consulted, so that the corresponding linkage data can be automatically and quickly found in the general linkage principle data according to the identification, thereby ensuring the efficiency and intelligence of the system.
[0124] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A smart city intelligent linkage method based on edge-cloud collaboration, characterized in that: The smart city intelligent linkage method comprises: The cloud management platform configures a general linkage principle according to the linkage task requirements, and adjusts the linkage principle according to changes in the linkage task requirements, to obtain a general linkage principle corresponding to the current linkage task requirements; The cloud management platform monitors in real time whether a linkage start instruction sent by the smart city platform is received, and after receiving the linkage start instruction sent by the smart city platform, sends the general linkage principle to the smart city platform; The cloud management platform obtains the linkage data of each linkage task execution device sent by the smart city platform in real time, and stores and manages the linkage data; The cloud management platform monitors in real time whether it has received the linkage start instruction sent by the smart city platform, and after receiving the linkage start instruction sent by the smart city platform, sends the general linkage principle to the smart city platform, including: The smart city platform needs to obtain the linkage data of the linkage task execution device in the process of executing the linkage task in real time through the network component. After receiving the linkage start instruction sent by the smart city platform, the linkage data of each linkage task execution device in the process of executing the linkage task is added with the device identification of the corresponding linkage task execution device, and then the linkage data with the added identification are combined to form the general linkage principle data and sent to the smart city platform. The specific steps include: Step A1: Use formula (1) to add the device ID of each linkage task execution device to the linkage data of each linkage task execution device during the linkage task execution process. [Z(a)] 16 =[G(a)] 16 <<L0+[B(a)] 16 (1) where [Z(a)] 16 Indicates the hexadecimal form of the linkage data corresponding to the ath linkage task execution device after adding the device identifier; [G(a)] 16 Indicates the hexadecimal form of the linkage data corresponding to the ath linkage task execution device before the device identification is added; L0 indicates the number of data bits of the device identification data in hexadecimal form, and the number of data bits of all device data in hexadecimal form is L0; [B(a)] 16 Indicates the hexadecimal form of the identification data of the a-th linkage task execution device; << indicates left shift; Step A2: Use formula (2) to combine the linkage data with the added identifier to form the general linkage principle data Where R 16 Indicates the hexadecimal format of the general linkage principle data; A 16 The hexadecimal format of the general frame header representing the general linkage principle data; E 16 Indicates the hexadecimal form of the general frame tail of the general linkage principle data; {,,} indicates that the three hexadecimal data separated by commas in the brackets are connected head to tail according to their positions to form a new hexadecimal data; [Z(0)] 16 Indicates the set intermediate calculation amount, its value is 0; [Z(b)] 16 If b>0, it means the hexadecimal form of the linkage data corresponding to the bth linkage task execution device after adding the device identifier. If b=0, it means [Z(0)] 16 ; n represents the total number of the linkage task execution devices; Step A3: After the general linkage principle data is sent to the smart city platform, when the smart city platform needs to check the linkage data of a specific linkage task execution device, the corresponding linkage data is extracted from the general linkage principle data according to the device information of the linkage task execution device being checked using formula (3). G[B(K)] 16 =R 16 {I{[B(K-1)] 16 ,R 16 [(i+L0)→i]}+1→J{[B(K)] 16 ,R 16 [(j+1)→(j+L0)]}}(3) where G[B(K)] 16 Indicates that the extracted identification data is [B(K)] 16 The corresponding linkage data of the linkage task execution device; [B(K)] 16 Indicates the hexadecimal form of the identification data of the K-th linkage task execution device; [B(K-1)] 16 The hexadecimal format of the identification data of the K-1th linkage task execution device; R 16 [(j+1)→(j+L0)] represents hexadecimal data R 16 The hexadecimal data from the j+1th bit to the j+L0th bit in J{[B(K)] 16 ,R 16 [(j+1)→(j+L0)]} means to change the value of j from 1 to len(R 16 ) is substituted into the formula to obtain [B(K)] 16 =R 16 The value of j at [(j+1)→(j+L0)]; I{[B(K-1)] 16 ,R 16 [(i+L0)→i]} means to change the value of i from 1 to len(R 16 ) into the formula to obtain [B(K-1)] 16 =R 16 The value of i when [(i+L0)→i]; len(R 16 ) represents hexadecimal data R 16 The total number of data bits; R 16 {I{[B(K-1)] 16 ,R 16 [(i+L0)→i]}+1→J{[B(K)] 16 ,R 16 [(j+1)→(j+L0)]}} represents the hexadecimal data R 16 From the I{[B(K-1)] 16 ,R 16 [(i+L0)→i]}+1 to Jth {[B(K)] 16 ,R 16 [(j+1)→(j+L0)]} hexadecimal data on the position.
2. The smart city intelligent linkage method according to claim 1, characterized in that: The process of sending linkage data of each linkage task execution device by the smart city platform includes: The smart city platform obtains linkage data of the linkage task execution device in the process of executing the linkage task in real time through the network component; The smart city platform sends the linkage data acquired in real time to the cloud management platform through the network component.
3. The smart city intelligent linkage method according to claim 1 is characterized in that: The smart city platform sends the linkage data acquired in real time to the cloud management platform through a network component, including: The edge server in the network component receives the linkage data sent by the smart city platform; The edge server in the network component determines whether each linkage task execution device executes the linkage task according to the general linkage principle through the linkage data; The edge server in the network component statistically classifies the information of linkage devices that perform linkage tasks according to the general linkage principle and their corresponding linkage devices, and the information of linkage devices that do not perform linkage tasks according to the general linkage principle and their corresponding linkage devices, obtains the classified linkage data, and sends the classified linkage data to the cloud management platform; The edge server in the network component sends information about linkage devices that fail to perform linkage tasks according to the general linkage principle and their corresponding linkage devices to the smart city platform, and issues an alarm prompt on the smart city platform.
4. A smart city intelligent linkage system based on edge-cloud collaboration, characterized in that: The smart city intelligent linkage system includes: The principle setting module is used for the cloud management platform to configure the general linkage principle according to the linkage task requirements, and adjust the linkage principle according to the changes in the linkage task requirements, and obtain the general linkage principle corresponding to the current linkage task requirements; An instruction sending module is used for the cloud management platform to monitor in real time whether the linkage start instruction sent by the smart city platform is received, and after receiving the linkage start instruction sent by the smart city platform, send the general linkage principle to the smart city platform; A data acquisition module is used for the cloud management platform to obtain the linkage data of each linkage task execution device sent by the smart city platform in real time, and to store and manage the linkage data; Wherein, the instruction sending module includes: The smart city platform needs to obtain the linkage data of the linkage task execution device in the process of executing the linkage task in real time through the network component. After receiving the linkage start instruction sent by the smart city platform, the linkage data of each linkage task execution device in the process of executing the linkage task is added with the device identification of the corresponding linkage task execution device, and then the linkage data with the added identification are combined to form the general linkage principle data and sent to the smart city platform. The specific steps include: Step A1: Use formula (1) to add the device ID of each linkage task execution device to the linkage data of each linkage task execution device during the linkage task execution process. [Z(a)] 16 =[G(a)] 16 <<L0+[B(a)] 16 (1) where [Z(a)] 16 Indicates the hexadecimal form of the linkage data corresponding to the ath linkage task execution device after adding the device identifier; [G(a)] 16 Indicates the hexadecimal form of the linkage data corresponding to the ath linkage task execution device before the device identification is added; L0 indicates the number of data bits of the device identification data in hexadecimal form, and the number of data bits of all device data in hexadecimal form is L0; [B(a)] 16 Indicates the hexadecimal form of the identification data of the a-th linkage task execution device; << indicates left shift; Step A2: Use formula (2) to combine the linkage data with the added identifier to form the general linkage principle data Where R 16 Indicates the hexadecimal format of the general linkage principle data; A 16 The hexadecimal format of the general frame header representing the general linkage principle data; E 16 Indicates the hexadecimal form of the general frame tail of the general linkage principle data; {,,} indicates that the three hexadecimal data separated by commas in the brackets are connected head to tail according to their positions to form a new hexadecimal data; [Z(0)] 16 Indicates the set intermediate calculation amount, its value is 0; [Z(b)] 16 If b>0, it means the hexadecimal form of the linkage data corresponding to the bth linkage task execution device after adding the device identifier. If b=0, it means [Z(0)] 16 ; n represents the total number of the linkage task execution devices; Step A3: After the general linkage principle data is sent to the smart city platform, when the smart city platform needs to check the linkage data of a specific linkage task execution device, the corresponding linkage data is extracted from the general linkage principle data according to the device information of the linkage task execution device being checked using formula (3). G[B(K)] 16 =R 16 {I{[B(K-1)] 16 ,R 16 [(i+L0)→i]}+1→J{[B(K)] 16 ,R 16 [(j+1)→(j+L0)]}}(3) where G[B(K)] 16 Indicates that the extracted identification data is [B(K)] 16 The corresponding linkage data of the linkage task execution device; [B(K)] 16 Indicates the hexadecimal form of the identification data of the K-th linkage task execution device; [B(K-1)] 16 The hexadecimal format of the identification data of the K-1th linkage task execution device; R 16 [(j+1)→(j+L0)] represents hexadecimal data R 16 The hexadecimal data from the j+1th bit to the j+L0th bit in J{[B(K)] 16 ,R 16 [(j+1)→(j+L0)]} means to change the value of j from 1 to len(R 16 ) is substituted into the formula to obtain [B(K)] 16 =R 16 The value of j at [(j+1)→(j+L0)]; I{[B(K-1)] 16 ,R 16 [(i+L0)→i]} means to change the value of i from 1 to len(R 16 ) into the formula to obtain [B(K-1)] 16 =R 16 The value of i when [(i+L0)→i]; len(R 16 ) represents hexadecimal data R 16 The total number of data bits; R 16 {I{[B(K-1)] 16 ,R 16 [(i+L0)→i]}+1→J{[B(K)] 16 ,R 16 [(j+1)→(j+L0)]}} represents the hexadecimal data R 16 From the I{[B(K-1)] 16 ,R 16 [(i+L0)→i]}+1 to Jth {[B(K)] 16 ,R 16 [(j+1)→(j+L0)]} hexadecimal data on the position.
5. According to claim 4, the smart city intelligent linkage system is characterized in that: The data acquisition module comprises: A linkage data acquisition module is used for the smart city platform to obtain the linkage data of the linkage task execution device in the process of executing the linkage task in real time through the network component; The data sending module is used for the smart city platform to send the linkage data acquired in real time to the cloud management platform through the network component.
6. The smart city intelligent linkage system according to claim 4 is characterized in that: The data sending module comprises: A data receiving module, used for an edge server in a network component to receive the linkage data sent by the smart city platform; A task execution judgment module, used for the edge server in the network component to judge whether each linkage task execution device executes the linkage task according to the general linkage principle through the linkage data; A linkage data classification module is used for the edge server in the network component to statistically classify the information of linkage devices that perform linkage tasks according to the general linkage principle and their corresponding linkage devices, and the information of linkage devices that do not perform linkage tasks according to the general linkage principle and their corresponding linkage devices, obtain the classified linkage data, and send the classified linkage data to the cloud management platform; The alarm module is used for the edge server in the network component to send the information of the linkage device and its corresponding linkage device that fails to perform the linkage task according to the general linkage principle to the smart city platform, and issue an alarm prompt on the smart city platform.
Citation Information
Patent Citations
Smart city intelligent linkage method based on side-cloud cooperation
CN111200528A