A method and apparatus based on multi-device edge computing
By combining an edge computing device list and a consensus module, data synchronization consensus among multiple devices is achieved, solving the problems of data consistency and accuracy between devices, improving the reliability and security of the system, and reducing central dependency and latency.
Patent Information
- Application Number
- CN202210090525.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-25
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2042-01-25
AI Technical Summary
In existing technologies, it is difficult to guarantee the consistency and accuracy of data synchronization between multiple devices, which leads to the failure of calculation results, insufficient system reliability and security, and high cost and high latency due to reliance on a central node.
By adopting a multi-device edge computing approach, data synchronization consensus between devices is achieved by setting up an edge computing device list and a consensus module. Consensus data blocks and edge computing operation logic are used to ensure the consistency and accuracy of the calculation results.
It achieves fast and reliable data synchronization and consistency of calculation results among multiple devices, reduces dependence on the central node, reduces construction costs, improves system reliability and security, and has the ability to share computing power and redundancy.
Smart Images

Figure CN116541157B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of Internet technology, specifically to the fields of communication and Internet of Things (IoT) technology, and particularly to a method and apparatus based on multi-device edge computing. Background Technology
[0002] In the field of Internet technology, when there are a large number of devices that need to collect, analyze and perform edge computing on various types of data, such edge computing can usually only be performed within each device. Due to communication delays and data transmission reliability issues, the data produced between devices cannot be subjected to comprehensive edge computing across multiple devices.
[0003] The conventional solution is to collect all data from these devices and transmit it to a data center, where it performs comprehensive calculations before sending the results back to the devices. However, this centralized computing approach places high demands on the computing power of the central nodes and incurs significant costs. Furthermore, the operational stability of the central nodes directly determines the stability of the entire system; a failure in the central node will halt the computation of all devices. Moreover, during the repeated transmission of raw data and calculation results between devices and the central node, issues such as transmission delays and data reliability can cause the calculated results to become useless, even after the central node has processed them and transmitted them to the front-end devices.
[0004] For example, in vehicle-to-everything (V2X) and autonomous driving applications, since vehicles and road sensors operate within a physical space of several hundred meters, the current solution involves uploading all data to a remote data center via the operator's network for comprehensive computation before distributing it to the front-end vehicle control system for execution. This approach heavily relies on data centers, and the remote computation method significantly increases the design complexity and construction investment of data centers, increases network transmission pressure, reduces system reliability, and increases the probability of safety incidents.
[0005] For example, in industrial control applications, when numerous devices and sensors need to work collaboratively in close proximity, current solutions still use a central node approach for calculation and feedback. This reduces system reliability, increases the possibility of industrial data leakage, and also increases the risk of remote control and hijacking. Summary of the Invention
[0006] This disclosure addresses the problem of ensuring consistency and accuracy of data synchronization among multiple devices in existing technologies by proposing a method based on multi-device edge computing. This method guarantees fast and reliable data synchronization among multiple devices within the same spatial area, achieving consistency and accuracy in the results of simultaneous edge computing across numerous devices. Furthermore, it eliminates dependence on data centers, reduces construction costs, and improves the accuracy of edge computing and the reliability and security of the system.
[0007] The first aspect of this disclosure provides a method based on multi-device edge computing. Applied to a network with a consensus module, the method includes: Set up an edge computing device list, with each edge computing device list corresponding to an edge computing operation logic; Based on the edge computing device list, extract data on devices to participate in edge computing from the consensus module; The data of the devices to be involved in edge computing are processed according to the edge computing operation logic to determine the result of multi-device comprehensive edge computing; Based on the data of the devices to be involved in edge computing, the results of the multi-device integrated edge computing, and the generation time of the edge computing results, a consensus data block is determined, wherein the consensus data block is used for data synchronization consensus among multiple devices.
[0008] In some embodiments, the method includes: The edge computing device list includes a list of address codes for the devices to participate in edge computing. The data of the device to participate in edge computing is determined based on the address code list of the device.
[0009] In some embodiments, determining the consensus data block based on the data of the device to participate in edge computing, the result of the multi-device integrated edge computing, and the generation time of the edge computing result includes: Obtain data from the devices participating in edge computing, wherein the data from the devices participating in edge computing includes at least a data source identifier; Determine the result of the multi-device integrated edge computing and the generation time of the edge computing result; Add the data's timestamp and the data source identifier to the result of the multi-device integrated edge computing to form the consensus data block.
[0010] In some embodiments, the method further includes: The device periodically collects data from the device to participate in edge computing through its sensors, and synchronizes the data of the device to participate in edge computing to the consensus module in the form of consensus data blocks. The consensus data blocks are formed by adding the sampling time of the data of the device to participate in edge computing and the data source identifier of the data of the device to participate in edge computing to the data of the device to participate in edge computing.
[0011] In some embodiments, the method further includes: The consensus module extracts the consensus data block and stores it in the edge computing data storage queue, identifying it as data for the device to participate in edge computing; and / or, the consensus data block is synchronized to all device nodes in the network by the consensus module through a data consensus insertion mechanism.
[0012] In some embodiments, the method further includes: The consensus data block is synchronized to all device nodes in the multi-device network by the consensus module. When the verification result of any device in the network device is not the preset result, the result of the edge computing is corrected, wherein the verification result is the verification result determined by any device in the network device for the consensus data block based on the result of its corresponding edge computing.
[0013] In some embodiments, the method further includes: The corresponding list of edge computing devices, the edge computing operation logic, and the edge data storage queue are combined to form an edge computing group; The edge computing group can be set up or removed on any device node, so that the edge computing group can be synchronized to other device nodes in the network, excluding the device node that sets up the edge computing group, through a consensus mechanism.
[0014] In some embodiments, the method further includes: the edge computing method is applied to a network comprising an edge computing module and a consensus module, wherein each consensus module corresponds to one edge computing module.
[0015] In some embodiments, the method can be applied to vehicle-road cooperation and edge computing in the aviation field to form a closed-loop feedback system.
[0016] In some embodiments, the method can be applied to the edge computing field of AI recognition cameras to reduce system execution failures and alleviate load pressure.
[0017] The second aspect of this disclosure provides a consensus module for multi-device data consensus, which is applied to any possible implementation of the method of the first aspect described above. The consensus module includes at least one consensus data storage linked list, at least one consensus communication sending port, and at least one consensus communication receiving port to synchronize the consensus data block to each device node in the multi-device network or to obtain data from each device node in the multi-device network. The consensus module may also include a data insertion interface and a consensus retrieval interface to insert data to be processed into the consensus module or to extract data from the consensus module.
[0018] The second aspect of this disclosure provides a multi-device edge computing apparatus applicable to any possible implementation of the method described in the first aspect. The apparatus includes: a setting unit for setting an edge computing device list, each edge computing device list corresponding to an edge computing operation logic; an acquisition unit for extracting data of devices to participate in edge computing from a consensus module based on the edge computing device list; a calculation unit for performing calculations on the data of the devices to participate in edge computing according to the edge computing operation logic to determine the result of multi-device comprehensive edge computing; and a determination unit for determining a consensus data block based on the data of the devices to participate in edge computing, the result of the multi-device comprehensive edge computing, and the generation time of the edge computing result, wherein the consensus data block is used for data synchronization consensus among multiple devices.
[0019] In some embodiments, the acquisition unit is configured to: set an address code list of the devices to participate in edge computing in the edge computing device list; The data of the device to participate in edge computing is determined based on the address code list of the device.
[0020] In some embodiments, the determining unit is configured to: acquire data from the device participating in edge computing, wherein the data from the device participating in edge computing includes at least a data source identifier; Determine the result of the multi-device integrated edge computing and the generation time of the edge computing result; add the data timestamp and the data source identifier to the result of the multi-device integrated edge computing to form the consensus data block.
[0021] In some embodiments, the apparatus further includes: The acquisition unit is used to periodically acquire data from the device to participate in edge computing through the sensors of the device. A synchronization unit is used to synchronize the data of the device to participate in edge computing to the consensus module in the form of consensus data blocks, wherein the consensus data blocks are formed by adding the sampling time of the data of the device to participate in edge computing and the data source identifier of the data of the device to participate in edge computing to the data of the device to participate in edge computing.
[0022] In some embodiments, the apparatus further includes: The extraction unit is used to extract the consensus data block through the consensus module and store it in the edge computing data storage queue, and determine it as data of the device to participate in edge computing for edge computing. The consensus insertion unit is used to synchronize the consensus data block to all device nodes in the network through the data consensus insertion mechanism by the consensus module.
[0023] In some embodiments, the apparatus further includes: The configuration unit is used to form an edge computing group by combining the corresponding list of edge computing devices, the edge computing operation logic and the edge data storage queue. The edge computing group can be set up or removed on any device node, so that the edge computing group can be synchronized to other device nodes in the network, excluding the device node that sets up the edge computing group, through a consensus mechanism.
[0024] A fourth aspect of this disclosure provides a communication device comprising: a memory for storing processor-executable instructions; and a processor connected to the memory; wherein the processor is configured to perform any possible implementation of the method of the first aspect.
[0025] A fifth aspect of this disclosure provides a communication device that, when instructions in the storage medium are executed by a computer's processor, enables the computer to perform any method that may be implemented as in the first aspect.
[0026] The technical solutions provided by the embodiments of this disclosure may include the following beneficial effects: The method disclosed herein is applied to a network with a consensus module. It involves setting up an edge computing device list; extracting data of devices to participate in edge computing from the consensus module based on the edge computing device list; performing calculations on the data of devices to participate in edge computing according to edge computing operation logic to determine the result of multi-device comprehensive edge computing; and finally, determining a consensus data block based on the result and time of multi-device comprehensive edge computing for data synchronization consensus among multiple devices.
[0027] The method described in this embodiment can achieve the effect of multi-node edge computing. Conventional edge computing can only be implemented within a single IoT device, and cannot achieve edge computing between devices. To achieve comprehensive edge computing between devices, a central node must be built for data collection and distribution. The construction cost of the central node is high, the reliability is low, and the data transmission latency is large. Moreover, the data transmission of the entire network is limited by the performance of the central node, resulting in large latency, slow response, and high difficulty in edge computing between devices, which cannot meet the needs of various existing applications.
[0028] The edge computing method employed in this embodiment, utilizing a data consensus mechanism, can quickly and reliably ensure the synchronization and consistency of data between devices. By combining the same edge computing operation logic, it can be absolutely guaranteed that after different devices process synchronized and consistent data using the same edge computing operation logic, the final calculation results will maintain consistency and correctness, without relying on the operation of one or a few device nodes. Even if one or a few device nodes fail, the group effect of synchronization consensus can still ensure the security and reliability of edge computing.
[0029] The edge computing method employed in this embodiment also has the beneficial effect of distributing computing power. For example, if a node A needs to perform a very complex edge computation, performing the computation independently by A would result in high computing power pressure and long computation latency. This invention utilizes a data synchronization consensus mechanism to break down the computation logic into multiple simple sub-computation logics, which are then distributed to multiple devices B, C, D, E, etc., for distributed parallel computation processing. The computation results are then consensused to finally calculate the final result. This reduces the computing power pressure on A, shortens the computation time, and improves computational efficiency.
[0030] The edge computing method in this embodiment can share and utilize the computing power of all device nodes in the network, avoiding excessive computing load on one node while other nodes remain idle.
[0031] The edge computing method of this embodiment has the beneficial effect of fault redundancy. The edge computing of this disclosure does not depend on the operation of one or a few device nodes. When one or a few nodes fail or are under excessive operating pressure, other nodes can perform redundant computing simultaneously.
[0032] The edge computing method in this embodiment has the beneficial effect of result verification. Based on the same consistent data and using the same computational logic, the calculated results are identical. Through data consensus, the edge computing logic across multiple devices can be synchronously verified, ensuring the absolute correctness and consistency of the calculation results; thus avoiding dangerous situations caused by the failure of a single node leading to incorrect calculation results. Attached Figure Description
[0033] The present disclosure will be further described in detail below with reference to the accompanying drawings and preferred embodiments. However, those skilled in the art will appreciate that these drawings are drawn for the purpose of explaining the preferred embodiments only and should therefore not be construed as limiting the scope of the present disclosure.
[0034] Figure 1 This is a schematic diagram of a multi-device edge computing method according to an exemplary embodiment; Figure 2 This is a schematic diagram illustrating the flow of a method based on multi-device edge computing according to an exemplary embodiment; Figure 3 This is a flowchart illustrating a method based on multi-device edge computing according to an exemplary embodiment; Figure 4 This is a schematic diagram of an edge computing group according to an exemplary embodiment; Figure 5 This is a schematic diagram of the structure of a communication device provided in an embodiment of this application; Figure 6 This is a schematic diagram of the structure of a communication device provided in an embodiment of this application.
[0035] Example The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0036] The edge computing disclosed herein is a method based on multiple devices being located in the same network area, and the data of multiple devices in the same network area is based on synchronous consensus. Using edge computing can maintain data consistency and accuracy among various devices.
[0037] like Figure 1 The diagram shows a module schematic of a multi-device edge computing method. The edge computing method disclosed herein includes at least an edge computing module and a consensus module.
[0038] The edge computing module is used to perform comprehensive edge computing on the data of device nodes within a spatial area.
[0039] The consensus module is used to quickly and reliably synchronize and reach consensus on the data of device nodes within the spatial area, ensuring that the data between devices remains consistent.
[0040] Each of the consensus modules corresponds to one of the edge computing modules. The edge computing method disclosed herein can quickly maintain the synchronization and consistency of data between device nodes within a spatial area; that is, each device node's consensus data storage chain contains copies of data from all other device nodes, and these data copies are completely identical. Therefore, by utilizing the edge computing modules based on the edge computing device list and edge computing operation logic, comprehensive edge computing across multiple devices can be performed securely and reliably.
[0041] This embodiment discloses a method based on multi-device edge computing, the method comprising the following steps: S110: Set up an edge computing device list, where each edge computing device list corresponds to an edge computing operation logic; S120: Extract data of devices to participate in edge computing from the consensus module according to the edge computing device list; S130: Perform calculations on the data of the devices to be involved in edge computing according to the edge computing operation logic to determine the result of multi-device comprehensive edge computing; S140: Determine a consensus data block based on the data of the device to participate in edge computing, the result of the multi-device integrated edge computing, and the generation time of the edge computing result, wherein the consensus data block is used for data synchronization consensus among multiple devices.
[0042] like Figure 2 The diagram shows a process flow of a multi-device edge computing method. In this embodiment, each edge computing device list corresponds to an edge computing operation logic and an edge computing data storage queue.
[0043] In this embodiment, the data of the devices to be involved in edge computing is extracted, stored, and computed from the edge computing device list.
[0044] The method disclosed herein involves the edge computing module obtaining data on devices to be included in edge computing from the consensus module. Further, based on the edge computing device list, the module obtains the data of these devices from the consensus module and stores it in an edge data storage queue. Finally, the data in the edge computing storage queue is subjected to logical operations using edge computing computation logic to obtain the result of multi-device integrated edge computing.
[0045] Furthermore, the edge computing result needs to be tagged with data and time to be used in the final consensus data block for multi-device synchronization consensus. Here, "data" refers to the result calculated using the method disclosed herein, and "time" refers to the moment corresponding to the edge computing result. The edge computing result data is processed through a consensus data synchronization mechanism, with data source encoding and a timestamp added, forming a new consensus data block which is then inserted into the consensus module for rapid synchronization consensus of the edge computing result.
[0046] In this disclosure, the consensus data block formed after edge computing includes at least device data and the result of edge computing, as well as the generation time of the edge computing result. The device data includes at least a data source identifier. The consensus data block of this disclosure consists of at least a consensus unique identifier, a core data block, and a consensus verification block. Furthermore, the consensus data block includes at least a data source identifier and a data timestamp. This identifier is used to uniquely identify the core data block that needs to be synchronized and agreed upon in the network. This consensus unique identifier is different for different data generated by all device nodes in the entire network. The data source identifier is used to identify the data source code of the core data block and can be a device code that can identify the data source, such as a device ID, device address code, UUID code, or IP address code. The data timestamp is the moment corresponding to the edge computing result. This time point is determined by a high-precision synchronization timekeeping unit. Depending on the precision requirements of the network system, this high-precision synchronization timekeeping unit can be at the millisecond, microsecond, or nanosecond level. Furthermore, the core data block includes at least other content of the device data and the result of edge computing.
[0047] In the method disclosed herein, when the edge computing operation logic is the same between devices, all devices ensure data synchronization consistency between devices based on the data consensus mechanism. All different devices use the same edge computing operation logic to perform edge computing on the synchronized consensus data, and the edge computing results obtained will remain the same and consistent across all devices.
[0048] In some embodiments, a method based on multi-device edge computing includes: The edge computing device list includes a list of address codes for devices that will participate in edge computing. The data of the devices to be included in edge computing is determined based on the device's address code list.
[0049] The edge computing device list records the device address codes of devices participating in edge computing operations. Based on this device address code list, the data of the devices to participate in edge computing is determined, and then the data of the corresponding devices is obtained from the consensus module for edge computing of multiple devices.
[0050] In some embodiments, a consensus data block is determined based on the data of the device to participate in edge computing, the result of the multi-device integrated edge computing, and the generation time of the edge computing result, including: Obtain data from the devices participating in edge computing, wherein the data from the devices participating in edge computing includes at least a data source identifier; Determine the result of the multi-device integrated edge computing and the generation time of the edge computing result; Add the data's timestamp and the data source identifier to the result of the multi-device integrated edge computing to form the consensus data block.
[0051] In this disclosure, once the result of edge computing is generated, the timestamp needs to be edited in the data to ensure the accuracy of edge computing time synchronization. Combined with the composition of consensus data blocks, the consensus data blocks formed after edge computing can be formed by adding the timestamp and data source identifier to the result of edge computing.
[0052] It should be noted that in any embodiment of this disclosure, the insertion of the timestamp is defined based on the same system time to ensure the timeliness and accuracy of data synchronization.
[0053] In some embodiments, a method based on multi-device edge computing further includes: The device periodically collects data from the device to participate in edge computing through its sensors, and synchronizes the data of the device to participate in edge computing to the consensus module in the form of consensus data blocks. The consensus data blocks are formed by adding the sampling time and the data source identifier of the data of the device to participate in edge computing to the data of the device to participate in edge computing.
[0054] In some embodiments, the method further includes: extracting the consensus data block through the consensus module and storing it in the edge computing data storage queue, determining it as data of the device to participate in edge computing for edge computing; and / or, synchronizing the consensus data block to all device nodes in the network by the consensus module through a data consensus insertion mechanism.
[0055] like Figure 3The diagram illustrates a process flow of a multi-device edge computing method. In this embodiment, the edge computing module executes the computation result and, along with the computation result, execution result, and periodically sampled data from sensors, synchronizes it to all other device nodes via a data consensus insertion mechanism. This process repeats continuously, performing new edge computing logic calculations to achieve a closed-loop edge computing logic that iteratively generates data, synchronizes consensus, performs edge computing, confirms results, executes tasks, and generates data again among system devices. This allows multiple devices to achieve a secure, reliable, and highly efficient automated control system based solely on data consensus and edge computing logic, without relying on the reliability and performance of any one or a few central nodes.
[0056] In the method of this disclosure, the edge computing module in the above embodiments includes: Equipment data periodic sampling is used to periodically sample data from the equipment's sensors.
[0057] Consensus data synchronization is used to add the data sampling timestamp and data source code to the data obtained by the device periodically sampling, form a consensus data block, and insert it into the consensus module to complete the synchronization consensus of data between devices.
[0058] The edge computing device list records the address codes of devices participating in edge computing operations. Based on this device address code list, the data source for consensus data is determined, and the corresponding consensus data blocks are obtained from the consensus module for edge computing across multiple devices.
[0059] Consensus data extraction is used to obtain data on devices participating in edge computing from the consensus module based on the edge computing device list.
[0060] The edge computing data storage queue is used to retrieve the data of devices participating in edge computing from the consensus module based on the edge computing device list and store it in this queue.
[0061] Edge computing operation logic is used to perform logical operations on the data in the edge computing storage queue to obtain the results of multi-device comprehensive edge computing.
[0062] In this embodiment, a method based on multi-device edge computing further includes: After the consensus data block is synchronized to all device nodes in the multi-device network by the consensus module, When the verification result of any device in the network is not a preset result, the edge computing result is corrected. The verification result is the result determined by any device in the network based on its corresponding edge computing result for the consensus data block. After the edge computing result of this invention is synchronized to all other device nodes in the spatial region, the other device nodes will use the new edge computing operation logic to compare and verify the correctness of the previous edge computing result. Other device nodes will perform data verification on the consensus data block based on their corresponding edge computing results and synchronize the verification result to other device nodes in the multi-device network through the consensus mechanism.
[0063] In a multi-device network, any device node will execute the correct task once the calculation result is verified to be correct. If the calculation result is verified to be incorrect, the error and abnormal data will be synchronized and agreed upon through a consensus mechanism to correct and handle the errors in the edge computing results, thus ensuring the absolute security and reliability of edge computing among multiple devices.
[0064] In some embodiments, a method based on multi-device edge computing further includes: The corresponding list of edge computing devices, edge computing operation logic, and edge data storage queue are formed into an edge computing group.
[0065] Edge computing groups can be set up or removed on any device node, allowing them to be synchronized to other devices in the network, excluding the device node that sets up the edge computing group, via a consensus mechanism.
[0066] The method in this embodiment includes at least one list of edge computing devices, each list of edge computing devices corresponding to an edge computing operation logic and an edge computing data storage queue. For example... Figure 4 The schematic diagram of the edge computing group shown is used in this embodiment to refer to the corresponding list of edge computing devices, edge computing operation logic, and edge computing data storage queue as an edge computing group.
[0067] This embodiment includes at least one edge computing group, which is managed dynamically. Edge computing groups can be added and deleted on any device node. Using a consensus mechanism, the edge computing group will be quickly synchronized to all device nodes in the spatial area.
[0068] Adding or deleting edge computing groups only requires adding or deleting edge computing operation logic. The edge computing operation logic extracts the edge computing device list, and then, based on the edge computing device list, obtains the consensus data blocks of the required data source from the consensus module and stores them in the edge computing data storage queue.
[0069] It should be noted that the time period for the periodic sampling of device data in the edge computing method disclosed herein can be a second period, a millisecond period, or even a microsecond or nanosecond period. The edge computing operation logic can be performed in a periodic manner or in a condition-triggered manner.
[0070] In some embodiments, a multi-device edge computing-based method can be applied to edge computing in vehicle-road cooperation to form a closed-loop feedback system.
[0071] In vehicle-road cooperative applications, various sensor devices in vehicles and on the road periodically collect sensor data and then use a consensus mechanism to send the collected data to other device nodes. Each device node has an edge computing unit that, according to the edge computing rules, extracts the data from the consensus data storage chain of the consensus module that needs to participate in the calculation, performs edge computing, and calculates the result. Then, based on the calculation result, the vehicle's actuators are driven and executed. Simultaneously, the calculation result and the drive execution result are sent to other device nodes using the consensus mechanism to facilitate edge computing by other device nodes, thus forming a complete closed-loop feedback system.
[0072] Conventional vehicle-road cooperative systems rely entirely on central base stations for data communication. If the central base station malfunctions, is overloaded, or experiences communication interference, the integrity of the edge computing data will be affected, leading to incorrect calculation results. This disclosure, based on a consensus mechanism, ensures the consistency of data calculated by all devices. Under the same calculation rules, the calculation results of all sensors will remain consistent, and all vehicles will use consistent results to drive their vehicles, thus avoiding traffic accidents.
[0073] For example, on a certain road, vehicle A receives consensus information from a traffic light sensor, while a rear-end collision avoidance sensor monitors the following distance. Vehicle A calculates its braking result using edge computing and sends it out through a consensus mechanism, simultaneously executing its braking action. Vehicle B, following behind, also receives the braking calculation result from vehicle A in the consensus data and performs corresponding edge computing to prepare for braking. After vehicle A's braking result is executed and communicated to vehicle B, vehicle B also calculates and executes its braking result, simultaneously sending the result back to vehicle A through the consensus mechanism. Vehicle A detects vehicle B's braking and, simultaneously, the rear-end collision avoidance sensor detects that vehicle B has moved away. Vehicle A then again uses edge computing to increase its braking force. Therefore, a closed-loop feedback loop is formed, rapidly timing the emergency braking of vehicles A and B, ensuring the safety of vehicle A and preventing a rear-end collision with vehicle B.
[0074] Based on the same principle, the method disclosed herein can also be used for an edge computing method in the aviation field. Similar to the vehicle-road cooperative method described above, this method utilizes a consensus mechanism to perform edge computing in the aviation field using various sensors in aircraft, as well as sensors between multiple aircraft and at airports such as lights, weather, and rainfall sensors, forming a closed-loop feedback to ensure aviation safety.
[0075] In this embodiment, the method disclosed herein, based on the same principle, can be applied to various industrial sensors in industrial control, such as temperature, humidity, pressure, and speed sensors, as well as various industrial actuators such as motors, hydraulic presses, and machine tools. Through a consensus mechanism, closed-loop feedback calculations for industrial control are achieved, thereby achieving high-precision, high-reliability, and high-safety operation in the industrial control process.
[0076] In some embodiments, a multi-device edge computing-based method can be applied to the edge computing field of AI recognition cameras to reduce system execution failures.
[0077] In facial recognition products using cameras, the camera's computing power determines how many faces it can recognize simultaneously, and also determines the product's cost. The higher the camera's computing power, the more faces it can recognize at the same time, and the more expensive the camera will be.
[0078] In practical use, for example, eight facial recognition cameras at an intersection, facing eight directions, can perform facial recognition. On average, each camera's computing power can simultaneously recognize four faces in the image, which meets the requirements of regular patrols. However, during major holidays, event days, and other important times, the flow of people in one direction is relatively dense, with more than four people walking by at the same time, while there is no flow of people in other directions. In this case, the computing power of one camera is insufficient, while the computing power of the other seven cameras is idle.
[0079] By using a consensus mechanism, the images of camera A, which has insufficient computing power, are shared with the other seven cameras. Then, the images are segmented. Each camera, after completing its own image face recognition, assists camera A in performing face recognition calculations after image segmentation, thereby solving the problem of insufficient computing power of camera A.
[0080] Therefore, using a public method, a consensus mechanism is employed to share the image from camera A, which lacks sufficient computing power, with the other seven cameras, achieving edge computing across a cluster of multiple cameras. Furthermore, through configuration, each group of cameras can compute a segmented image. Because the consensus technology maintains synchronization and consistency across all cameras, the same data combined with the same algorithm ensures that the calculated result is always the same. The consensus technology also helps identify any errors during the computation process by multiple cameras, preventing system failures caused by single-node computational errors.
[0081] The second aspect of this disclosure provides a consensus module for multi-device data consensus, applicable to any possible implementation of the method described in the first aspect above. For example... Figure 1 As shown, the consensus module includes at least one consensus data storage linked list, at least one consensus communication sending port, and at least one consensus communication receiving port to synchronize the consensus data block to each device node in the multi-device network or to obtain data from each device node in the multi-device network; the consensus module may also include a data insertion interface and a consensus retrieval interface to insert data to be processed into the consensus module or to extract data from the consensus module.
[0082] Each consensus module in this disclosure includes at least one consensus data storage linked list, at least one consensus communication sending port, and at least one consensus communication receiving port; consensus data blocks received from any consensus communication receiving port are stored in the consensus data storage linked list and then sent out from all consensus communication sending ports without modification; the consensus module does not perform acknowledgment processing when receiving data, nor does it wait for confirmation when sending data.
[0083] The consensus module disclosed herein has a data insertion interface, which is used to insert core data content generated internally or externally by IoT device nodes, which needs to be transmitted to all other consensus modules in the network via consensus, into the consensus module to form a consensus data block. The consensus module also has a consensus retrieval interface, which is used by IoT device nodes to retrieve the synchronized consensus core data from the consensus data storage chain.
[0084] Furthermore, the consensus mechanism or consensus method described in any of the above embodiments is a method of synchronizing data to each device node in a multi-device network through a consensus module, or a method of obtaining data from each device node in a multi-device network through a consensus module.
[0085] A third aspect of this disclosure provides an apparatus based on multi-device edge computing, such as... Figure 5 The diagram shows a structural schematic of a communication device, which is applied to any possible implementation of the first aspect described above. The device is applied in a network with a consensus module and includes: a setting unit for setting an edge computing device list, each of the edge computing lists corresponding to an edge computing operation logic; and an acquisition unit for extracting the results and times of collaborative edge computing to be participated in from the consensus module according to the edge computing device list, and determining consensus data blocks, wherein the consensus data blocks are used for data synchronization consensus among multiple devices.
[0086] A fourth aspect of this disclosure provides a communication device comprising: a memory for storing processor-executable instructions; and a processor connected to the memory; wherein the processor is configured to perform any possible implementation of the method of the first aspect.
[0087] A fifth aspect of this disclosure provides a communication device that, when instructions in the storage medium are executed by a computer's processor, enables the computer to perform any method that may be implemented as in the first aspect.
[0088] Figure 6 This is a block diagram illustrating a communication device 600 according to an exemplary embodiment. The method or apparatus according to embodiments of this disclosure can also be implemented using the architecture of a computing device. Figure 6 A schematic diagram of the architecture of an exemplary computing device according to embodiments of the present disclosure is shown. Figure 6 As shown, the computing device 600 may include a bus 601, one or more CPUs 602, a read-only memory (ROM) 603, a random access memory (RAM) 504, a communication port 605 connected to a network, an input / output component 606, a hard disk 607, etc. The storage devices in the computing device 600, such as the ROM 603 or the hard disk 607, may store various data or files used for processing and / or communication in the data processing method based on inter-node data sharing provided in this disclosure, as well as program instructions executed by the CPU. The computing device 600 may also include a user interface 608. Of course, Figure 6 The architecture shown is merely exemplary and can be omitted as needed when implementing different devices. Figure 6 One or more components in the computing device shown.
[0089] According to another aspect of this disclosure, a computer-readable storage medium is also provided.
[0090] The computer storage medium stores computer-readable instructions. When the computer-readable instructions are executed by a processor, a data processing method based on inter-node data sharing according to embodiments of the present disclosure, as described with reference to the above figures, can be performed. The computer-readable storage medium includes, but is not limited to, volatile memory and / or non-volatile memory. The volatile memory may include, for example, random access memory (RAM) and / or cache memory. The non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc.
[0091] Those skilled in the art will understand that the contents disclosed herein can be varied and modified in many ways. For example, the various devices or components described above can be implemented in hardware, or in software, firmware, or a combination of some or all of the three.
[0092] Furthermore, while this disclosure makes various references to certain units in systems according to embodiments of this disclosure, any number of different units may be used and run on clients and / or servers. The units described are merely illustrative, and different aspects of the systems and methods may use different units.
[0093] Those skilled in the art will understand that all or part of the steps in the above methods can be implemented by a program instructing related hardware, and the program can be stored in a computer-readable storage medium, such as a read-only memory, a disk, or an optical disk. Optionally, all or part of the steps in the above embodiments can also be implemented using one or more integrated circuits. Accordingly, each module / unit in the above embodiments can be implemented in hardware or as a software functional module. This disclosure is not limited to any particular combination of hardware and software.
[0094] Unless otherwise defined, all terms used herein (including technical and scientific terms) shall have the same meaning as commonly understood by one of ordinary skill in the art to which this disclosure pertains. It should also be understood that terms such as those defined in a common dictionary shall be interpreted as having a meaning consistent with their meaning in the context of the relevant art, and not as having an idealized or highly formalized meaning, unless expressly defined herein.
[0095] The foregoing description is intended to illustrate the present disclosure and should not be construed as limiting it. While several exemplary embodiments of the present disclosure have been described, those skilled in the art will readily understand that many modifications may be made to the exemplary embodiments without departing from the novel teachings and advantages of the present disclosure. Therefore, all such modifications are intended to be included within the scope of the present disclosure as defined by the claims. It should be understood that the foregoing description is intended to illustrate the present disclosure and should not be construed as limiting it to the specific embodiments disclosed, and modifications to the disclosed embodiments and other embodiments are intended to be included within the scope of the appended claims. The present disclosure is defined by the claims and their equivalents.
Claims
1. A method based on multi-device edge computing, characterized in that, When applied to a network with a consensus module, the method includes: Set up an edge computing device list, with each edge computing device list corresponding to an edge computing operation logic; Based on the edge computing device list, extract data on devices to participate in edge computing from the consensus module; The data of the devices to be involved in edge computing are processed according to the edge computing operation logic to determine the result of multi-device comprehensive edge computing; Based on the data of the devices to be involved in edge computing, the results of the multi-device integrated edge computing, and the generation time of the edge computing results, a consensus data block is determined, wherein the consensus data block is used for data synchronization consensus among multiple devices; The edge computing device list contains a list of address codes for devices that are to participate in edge computing; A consensus data block must contain at least a data source identifier and a data timestamp; The data source identifier is used to identify the data source code of the core data block, which is the device ID, device address code, UUID code, and IP address. Address codes can identify the device codes from which data originates.
2. The method for multi-device edge computing according to claim 1, characterized in that, The step of extracting data on devices to participate in edge computing from the consensus module based on the edge computing device list includes: The edge computing device list includes a list of address codes for the devices to participate in edge computing. The data of the device to participate in edge computing is determined based on the address code list of the device.
3. The method for multi-device edge computing according to claim 1, characterized in that, The step of determining the consensus data block based on the data of the devices to participate in edge computing, the results of the multi-device integrated edge computing, and the generation time of the edge computing results includes: Obtain data from the devices participating in edge computing, wherein the data from the devices participating in edge computing includes at least a data source identifier; Determine the result of the multi-device integrated edge computing and the generation time of the edge computing result; Add the data's timestamp and the data source identifier to the result of the multi-device integrated edge computing to form the consensus data block.
4. The method for multi-device edge computing according to claim 1, characterized in that, The method further includes: The device periodically collects data from the device to participate in edge computing through its sensors, and synchronizes the data of the device to participate in edge computing to the consensus module in the form of consensus data blocks. The consensus data blocks are formed by adding the sampling time and the data source identifier of the data of the device to participate in edge computing to the data of the device to participate in edge computing.
5. A method for multi-device edge computing according to any one of claims 1-4, characterized in that, The method further includes: The consensus data block is extracted by the consensus module and stored in the edge computing data storage queue, thus identifying it as data from the device to participate in edge computing; and / or The consensus data block is synchronized to all device nodes in the network by the consensus module through the data consensus insertion mechanism.
6. The method for multi-device edge computing according to claim 1, characterized in that, The method further includes: The consensus data block is synchronized to all device nodes in the multi-device network by the consensus module. When the verification result obtained from any device in the network device is not a preset result, the result of the edge computing is corrected, wherein the verification result is the verification result determined by any device in the network device for the consensus data block based on the result of its corresponding edge computing.
7. The method for multi-device edge computing according to claim 1, characterized in that, The method further includes: The corresponding list of edge computing devices, the edge computing operation logic, and the edge data storage queue are combined to form an edge computing group; The edge computing group can be set up or removed on any device node, so that the edge computing group can be synchronized to other device nodes in the network, excluding the device node that sets up the edge computing group, through a consensus mechanism.
8. The method for multi-device edge computing according to claim 1, characterized in that, The method further includes: the edge computing method is applied to a network containing edge computing modules and consensus modules, wherein each consensus module corresponds to one edge computing module.
9. The method for multi-device edge computing according to claim 8, characterized in that, The method can be applied to vehicle-road cooperation and edge computing in the aviation field to form a closed-loop feedback system.
10. The method for multi-device edge computing according to claim 8, characterized in that, The method can be applied to the edge computing field of AI recognition cameras to reduce system execution failures and alleviate load pressure.
11. A consensus module for multi-device data consensus, applied to a multi-device edge computing method according to any one of claims 1-10, characterized in that, The consensus module includes at least one consensus data storage linked list, at least one consensus communication sending port, and at least one consensus communication receiving port to synchronize the consensus data block to each device node in the multi-device network or to obtain data from each device node in the multi-device network. The consensus module may also include a data insertion interface and a consensus retrieval interface to insert data to be processed into the consensus module or to extract data from the consensus module.
12. An apparatus for multi-device edge computing, applied to the multi-device edge computing method described in claims 1 to 10, characterized in that, The device, applied in a network with a consensus module, includes: The setting unit is used to set up an edge computing device list, and each edge computing device list corresponds to an edge computing operation logic; The acquisition unit is used to extract data of devices to participate in edge computing from the consensus module according to the edge computing device list; The computing unit is used to perform calculations on the data of the device to participate in edge computing according to the edge computing operation logic, and determine the result of multi-device comprehensive edge computing; The determining unit is used to determine a consensus data block based on the data of the device to participate in edge computing, the result of the multi-device integrated edge computing, and the generation time of the edge computing result, wherein the consensus data block is used for data synchronization consensus among multiple devices.
13. The device based on multi-device edge computing according to claim 12, characterized in that, The acquisition unit is used for: The edge computing device list includes a list of address codes for the devices to participate in edge computing. The data of the device to participate in edge computing is determined based on the address code list of the device.
14. The device based on multi-device edge computing according to claim 12, characterized in that, The determining unit is used for: Obtain data from the devices participating in edge computing, wherein the data from the devices participating in edge computing includes at least a data source identifier; Determine the result of the multi-device integrated edge computing and the generation time of the edge computing result; Add the data's timestamp and the data source identifier to the result of the multi-device integrated edge computing to form the consensus data block.
15. The device based on multi-device edge computing according to claim 12, characterized in that, The device further includes: The acquisition unit is used to periodically acquire data from the device to participate in edge computing through the sensors of the device. The synchronization unit is used to synchronize the data of the device to participate in edge computing to the consensus module in the form of consensus data blocks, wherein the consensus data blocks are formed by adding the sampling time of the data of the device to participate in edge computing and the data source identifier of the data of the device to participate in edge computing to the data of the device to participate in edge computing.
16. A device based on multi-device edge computing according to any one of claims 12-15, characterized in that, The device further includes: An extraction unit is used to extract the consensus data block through the consensus module and store it in the edge computing data storage queue, determining it as data of the device to participate in edge computing for edge computing; and / or, a consensus insertion unit is used to synchronize the consensus data block to all device nodes in the network through the data consensus insertion mechanism.
17. The device based on multi-device edge computing according to claim 12, characterized in that, The device further includes: The configuration unit is used to form an edge computing group by combining the corresponding list of edge computing devices, the edge computing operation logic and the edge data storage queue. The edge computing group can be set up or removed on any device node, so that the edge computing group can be synchronized to other device nodes in the network, excluding the device node that sets up the edge computing group, through a consensus mechanism.
18. A communication device, characterized in that, include: Memory used to store processor-executable instructions; A processor connected to the memory; wherein the processor is configured to perform the method as described in any one of claims 1 to 8.
19. A non-transitory computer-readable storage medium, wherein instructions in the storage medium, when executed by a processor of a computer, enable the computer to perform the method as described in any one of claims 1 to 8.
Citation Information
Patent Citations
Industrial data detection block chain network architecture based on edge computing and detection method
CN109302405A
Cooperative computing method under edge computing system
CN110134507A
