Method and apparatus for debugging a device

US11740997B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-11740997-B2
Application numberUS-202117484938-A
CountryUS
Kind codeB2
Filing dateSep 24, 2021
Priority dateDec 20, 2019
Publication dateAug 29, 2023
Grant dateAug 29, 2023

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

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.

First claim

Opening claim text (preview).

What is claimed is: 1. A method for debugging a device, comprising: acquiring target running status information of a target device, wherein the target running status information of the target device is used to represent a target running status of the target device when running normally; constructing a running configuration template and a log collection template according to the target running status information of the target device, wherein the running configuration template is used to specify at least one piece of running configuration information of the target device when running in the target running status, wherein the log collection template is used to instruct an edge computing device to collect at least one piece of target log information of the target device when running according to the running configuration information, and wherein the edge computing device is electrically connected with the target device; sending the running configuration template and the log collection template to the edge computing device, and receiving target log information sent by the edge computing device; determining actual running status information of the target device through the target log information; determining, in response to the actual running status information of the target device being different from the target running status information of the target device, status difference value information between the actual running status information of the target device and the target running status information of the target device; and modifying the running configuration template through the status difference value information to obtain an updated running configuration template, and sending the updated running configuration template to the edge computing device, to cause the edge computing device to debug the target device. 2. The method according to claim 1 , wherein the acquiring target running status information of a target device comprises: acquiring peak value information of the target device, wherein the peak value information of the target device comprises at least one of: a processor frequency peak value, a memory usage peak value, a network bandwidth peak value, or a failure-free time peak value; and determining the target running status information of the target device corresponding to the peak value information of the target device according to a set condition, wherein the set condition comprises at least one of a set threshold value or a target task, wherein the set threshold value is used to represent a proportional relationship between the peak value information of the target device and the target running status information of the target device, and wherein the target running status information of the target device comprises at least one piece of sub-target running status information of the target device. 3. The method according to claim 1 , wherein the constructing a running configuration template and a log collection template according to the target running status information of the target device comprises: acquiring device information of the target device, wherein the device information of the target device comprises at least one of hardware information or software information; matching the device information of the target device with the target running status information of the target device, to determine the at least one piece of running configuration information of the target device; and encapsulating the at least one piece of running configuration information of the target device into the running configuration template. 4. The method according to claim 3 , wherein the constructing a running configuration template and a log collection template according to the target running status information of the target device comprises: determining, for running configuration information in the at least one piece of running configuration information of the target device, log information corresponding to the running configuration information; and encapsulating at least one piece of log information corresponding to the at least one piece of running configuration information of the target device into the log collection template. 5. The method according to claim 1 , wherein the target log information comprises at least one piece of log information, and wherein the determining actual running status information of the target device through the target log information comprises: querying, for log information in the at least one piece of log information in the target log information, sub-running status information of the target device corresponding to the log information; and combining at least one piece of sub-running status information of the target device corresponding to the at least one piece of log information to constitute the actual running status information of the target device. 6. A non-transitory computer readable storage medium, storing a computer program, wherein the computer program, when executed by a processor, implements the method according to claim 1 . 7. The non-transitory computer readable storage medium according to claim 6 , wherein the acquiring target running status information of a target device comprises: acquiring peak value information of the target device, wherein the peak value information of the target device comprises at least one of: a processor frequency peak value, a memory usage peak value, a network bandwidth peak value, or a failure-free time peak value; and determining the target running status information of the target device corresponding to the peak value information of the target device according to a set condition, wherein the set condition comprises at least one of a set threshold value or a target task, wherein the set threshold value is used to represent a proportional relationship between the peak value information of the target device and the target running status information of the target device, and wherein the target running status information of the target device comprises at least one piece of sub-target running status information of the target device. 8. The non-transitory computer readable storage medium according to claim 7 , wherein the constructing a running configuration template and a log collection template according to the target running status information of the target device comprises: acquiring device information of the target device, wherein the device information of the target device comprises at least one of hardware information or software information; matching the device information of the target device with the target running status information of the target device, to determine the at least one piece of running configuration information of the target device; and encapsulating the at least one piece of running configuration information of the target device into the running configuration template. 9. A method for debugging a device, comprising: receiving a running configuration template and a log collection template sent by a cloud, wherein the running configuration template is used to specify at least one piece of running configuration information of a target device when running in a target running status, and wherein the log collection template is used to instruct an edge computing device to collect at least one piece of target log information of the target device when running according to the at least one piece of running configuration information of the target device; generating a first control instruction according to the at least one piece of running configuration information of the target device in the running configuration template, and sending the first control instruction to the target device; sending, in response to detecting the at least one piece of

Assignees

Inventors

Classifications

  • using a specific debug interface · CPC title

  • where the computing system is distributed, e.g. networked systems, clusters, multiprocessor systems (multiprogramming arrangements G06F9/46; allocation of resources G06F9/50) · CPC title

  • Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs (verification or detection of system hardware configuration G06F11/2247) · CPC title

  • the data filtering being achieved in order to maintain consistency among the monitored data, e.g. ensuring that the monitored data belong to the same timeframe, to the same system or component · CPC title

  • Computer systems status display (G06F11/327 takes precedence) · CPC title

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US11740997B2 cover?
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 d…
Who is the assignee on this patent?
Beijing Baidu Netcom Sci & Tech Co Ltd
What technology area does this patent fall under?
Primary CPC classification G06F11/3656. Mapped technology areas include Physics.
When was this patent published?
Publication date Tue Aug 29 2023 00:00:00 GMT+0000 (Coordinated Universal Time) (B2). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 3 related publications on this page (citations in our corpus or others sharing the same primary CPC).