Remote Debugging Edge Devices via Log Templates
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
In scenarios of the Internet of Things and edge computing, debugging smart devices deployed at network edges is challenging due to unknown deployment sites, complex conditions, poor hardware capabilities, and unstable network speeds, making it difficult for technicians to promptly identify and fix errors in edge computing devices.
Innovation Solution
A method and apparatus that acquire target running status information, construct and send running configuration and log collection templates to edge computing devices, receive log information, determine actual status, calculate differences, and update configuration templates to facilitate remote debugging of target devices.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Ease of operation
If technicians perform on-site debugging by directly logging in to the device through externally connected screen and keyboard, then debugging can be performed at the device location, but it requires technician presence at unknown deployment sites which increases time loss and reduces debugging efficiency
Solution Approach 1:
The patent introduces an edge computing device as an intermediary between the cloud platform and the target smart device. This edge computing device collects logs from the target device and transmits them to the cloud platform, enabling remote debugging without requiring technicians to physically visit the deployment site. The intermediary resolves the contradiction by providing debugging accessibility through remote access while eliminating time loss associated with on-site presence.
Solution Approach 2:
The patent replaces the mechanical system of physical on-site debugging (technician traveling to device location, connecting external screen and keyboard) with an automated information-based system. The edge computing device automatically collects logs and transmits them via network to the cloud platform, substituting the mechanical debugging process with an automated remote debugging mechanism that eliminates travel time and on-site operations.
2Loss of time
If remote debugging is performed by technicians logging in to edge computing device based on cloud, then technician presence is not required at deployment site, but network instability and poor hardware capability make it difficult to position error information in time
Solution Approach 1:
The patent implements preliminary action by having the edge computing device continuously collect and buffer log information from the target smart device before debugging is needed. The logs are pre-processed and stored at the edge computing device, so when debugging is required, the information is already prepared and can be quickly transmitted to the cloud platform even under unstable network conditions. This preliminary preparation ensures debugging reliability without requiring fast real-time network connectivity.
Solution Approach 2:
The edge computing device performs self-service by automatically collecting logs from the target device, processing the log information, and making it available for remote debugging. This automation eliminates the need for technician intervention at the deployment site while ensuring that log information is properly captured and prepared, overcoming the limitations of unstable networks and poor hardware capabilities through automated local processing.
3Loss of information
If comprehensive log information is collected from target device, then complete debugging information is obtained, but increased data transmission and processing requirements exacerbate the impact of poor hardware capability and unstable network
Solution Approach 1:
The patent applies extraction by having the edge computing device selectively collect and extract relevant log information from the target smart device. Instead of transmitting all possible data, the system extracts only the error-related and diagnostically valuable log entries. This reduces the volume of data that needs to be transmitted over the unstable network while maintaining complete error information, thereby resolving the contradiction between information completeness and transmission complexity.
Solution Approach 2:
The patent segments the debugging information collection process into two stages: local collection at the edge computing device and remote analysis at the cloud platform. The edge computing device performs initial segmentation by collecting and filtering logs locally, then transmits only the essential segmented data to the cloud. This segmentation reduces network transmission requirements and processing complexity while ensuring complete error information is captured and analyzed.
Data Source
AI summary
Disclosed are a method and apparatus for debugging a device. A particular embodiment of the method comprises: acquiring target running state information of a target device; constructing a running configuration template and a log collection template according to the target running state information; sending the running configuration template and the log collection template to an edge computing device, and receiving target log information sent by the edge computing device, so as to determine actual running state information; when the actual running state information is different from the target running state information, computing state difference information; and finally, modifying the running configuration template by means of the state difference information value information in order to obtain an updated running configuration template, and sending the updated running configuration template to the edge computing device.


