Method and apparatus for debugging device

US2022012165A1 · US · A1

Patent metadata
FieldValue
Publication numberUS-2022012165-A1
Application numberUS-202117484938-A
CountryUS
Kind codeA1
Filing dateSep 24, 2021
Priority dateDec 20, 2019
Publication dateJan 13, 2022
Grant date

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, the target running status information being 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, 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, 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 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 being different from the target running status information, status difference value information between the actual running status information and the target running status information; 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, the peak value information comprising 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 target running status information corresponding to the peak value information according to a set condition, wherein the set condition comprises at least one of a set threshold value or a target task, the set threshold value is used to represent a proportional relationship between the peak value information and the target running status information, and the target running status information comprises at least one piece of sub-target running status information. 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 comprises: acquiring device information of the target device, the device information comprising at least one of hardware information or software information; matching the device information with the target running status information, 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 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 comprises: determining, for running configuration information in the at least one piece of running configuration information, 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 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 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 corresponding to the log information; and combining at least one piece of sub-running status information corresponding to the at least one piece of log information to constitute the actual running status information of the target device. 6 . 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 target device when running in a target running status, and 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; generating a first control instruction according to running configuration information in the running configuration template, and sending the first control instruction to the target device; sending, in response to detecting target log information belonging to the target device and corresponding to the first control instruction, the target log information to the cloud; and receiving an updated running configuration template sent by the cloud, generating a second control instruction according to running configuration information in the updated running configuration template, and sending the second control instruction to the target device. 7 . The method according to claim 6 , wherein the generating a first control instruction according to running configuration information in the running configuration template comprises: analyzing the at least one piece of running configuration information from the running configuration template; and generating, for running configuration information in the at least one piece of running configuration information, a first control sub-instruction corresponding to the running configuration information. 8 . The method according to claim 6 , further comprising: monitoring, in response to sending the first control instruction to the target device, device log information of the target device; and marking, in response to detecting the device log information, at least one piece of log information being in the device log information and corresponding to the running configuration information as the target log information corresponding to the first control instruction. 9 . An electronic device, comprising: one or more processors; and a storage device, configured to store one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform an operation for processing information, comprising: acquiring target running status information of a target device, the target running status information being 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, 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, 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 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 com

Assignees

Inventors

Classifications

  • Data logging (G06F11/14, G06F11/2205 take precedence) · CPC title

  • for performance assessment · 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

  • Root cause analysis, i.e. error or fault diagnosis (in a hardware test environment G06F11/22; in a software test environment G06F11/36) · 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

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 US2022012165A1 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/3476. Mapped technology areas include Physics.
When was this patent published?
Publication date Thu Jan 13 2022 00:00:00 GMT+0000 (Coordinated Universal Time) (A1). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 1 related publication on this page (citations in our corpus or others sharing the same primary CPC).