Equipment debugging method, device and system

Through wireless communication and pre-connected debugging modules, the problems of low device debugging efficiency and poor user experience are solved, efficient debugging and program crash information acquisition are achieved, and terminal operating efficiency and user experience are improved.

CN115842762BActive Publication Date: 2024-08-23QINGDAO HAIER TECH +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111004059.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-30
Publication Date
2024-08-23
Estimated Expiration
2041-08-30

AI Technical Summary

Technical Problem

Existing device debugging methods have low debugging efficiency and affect user experience, mainly because the debugging system software needs to be run in the terminal device, which takes up resources and is cumbersome to operate.

Method used

Using wireless communication, the debugging module is pre-connected to the device to be debugged. The mobile terminal sends debugging instructions. The debugging module forwards the instructions and obtains the debugging results when the device to be debugged is accessible. Otherwise, the program crash information is obtained and the debugged device is debugged through wireless communication. The results are fed back to the mobile terminal.

Benefits of technology

It improves the debugging efficiency and user experience, reduces the resource occupation of the mobile terminal, and enables the acquisition of program crash information when the device to be debugged is inaccessible. The analysis can determine the reason why the device is inaccessible.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115842762B
    Figure CN115842762B
Patent Text Reader

Abstract

The present application provides a device debugging method, apparatus and system, wherein the debugging module is pre-connected with the device to be debugged, and the debugging module receives the debugging instruction sent by the mobile terminal through wireless communication. When it is determined that the device to be debugged is in an accessible state, the debugging instruction is sent to the device to be debugged, and the debugging result information of the device to be debugged debugging itself based on the debugging instruction is obtained; when it is determined that the device to be debugged is in an inaccessible state, the stored program crash information is obtained; and the debugging result information or program crash information is sent to the mobile terminal through wireless communication. The acquisition of program crash information when the device to be debugged is in an inaccessible state is realized, and since there is no need to connect the mobile terminal and the debugging module through a connecting line, the operation is convenient, the user experience is improved, and there is no need to install the debugging system software in the mobile terminal, which reduces the resource occupation of the mobile terminal, thereby improving the operation efficiency of the mobile terminal, and then improving the debugging efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a device debugging method, device and system. Background Art

[0002] After the equipment is installed or a fault occurs, it is necessary to debug the equipment.

[0003] At present, the device debugging method is: the debugging system software is installed on both the terminal device and the device to be debugged, the terminal device and the device to be debugged are connected through a connecting line, and the command printing log is exchanged with the device to be debugged through communication methods such as uart (Universal Asynchronous Receiver / Transmitter) or SWD J-LINK (Serial Wire Debug J-LINK) to debug the device to be debugged. Since the debugging system software needs to be run in the terminal device, a large number of debugging functions need to be registered in the terminal device, which occupies more resources and affects the performance of the terminal device, resulting in low debugging efficiency. In addition, each debugging needs to be connected through a connecting line, which is cumbersome to operate and affects the user experience. Summary of the invention

[0004] The present application provides a device debugging method, apparatus and system, aiming to solve the problems of low debugging efficiency and impact on user experience in existing device debugging methods.

[0005] In order to achieve the above objectives, this application provides the following technical solutions:

[0006] A device debugging method is applied to a debugging module, wherein the debugging module is pre-connected with a device to be debugged, and the method comprises:

[0007] Receiving a debugging instruction sent by a mobile terminal through wireless communication;

[0008] When the device to be debugged is in an accessible state, the debugging instruction is sent to the device to be debugged, and debugging result information fed back by the device to be debugged is obtained; the debugging result information is information obtained by the device to be debugged debugging the device to be debugged based on the debugging instruction and using a preset debugging component;

[0009] When the device to be debugged is in an inaccessible state, obtaining program crash information stored in the debugging module; the program crash information is information obtained when a program crash is detected on the device to be debugged;

[0010] The debugging result information or the program crash information is sent to the mobile terminal through the wireless communication method.

[0011] In the above method, optionally, the step of obtaining the program crash information in the debugging module includes:

[0012] Determining whether program crash information is stored in the debugging module;

[0013] If the debugging module stores program crash information, the program crash information in the debugging module is obtained.

[0014] The above method may optionally further include:

[0015] If the debugging module does not store program crash information, then obtaining pre-stored device status information of the device to be debugged;

[0016] determining target information from the device status information;

[0017] The target information is fed back to the mobile terminal through the wireless communication method.

[0018] Optionally, in the above method, the device to be debugged uses a preset debugging component to debug the device to be debugged based on the debugging instruction to obtain debugging result information, including:

[0019] The device to be debugged uses a preset debugging component to parse the debugging instruction to obtain a parsing result, obtains a debugging function corresponding to the parsing result, calls the debugging function, debugs the device to be debugged, and obtains debugging result information.

[0020] A device debugging method, applied to a mobile terminal, comprising:

[0021] Obtaining a debugging instruction for debugging the device to be debugged;

[0022] The debugging instruction is sent to the debugging module by wireless communication, so that the debugging module forwards the debugging instruction to the device to be debugged when the device to be debugged is in an accessible state, and obtains the debugging result information fed back by the device to be debugged, or obtains the program crash information stored in the debugging module when the device to be debugged is in an inaccessible state; wherein the debugging module is pre-connected with the device to be debugged, and the debugging result information is the information obtained by the device to be debugged by debugging the device to be debugged based on the debugging instruction and using a preset debugging component;

[0023] The debugging result information or program crash information fed back by the debugging module via wireless communication is obtained.

[0024] The above method, optionally, after obtaining the debugging result information or program crash information fed back by the debugging module via wireless communication, further comprises:

[0025] The debugging result information or the program crash information is displayed.

[0026] In the above method, optionally, obtaining a debugging instruction for debugging the device to be debugged includes:

[0027] In response to a debugging request for debugging the device to be debugged, starting the communication software;

[0028] Acquire a debugging instruction input by a user through a preset interface in the communication software.

[0029] A device debugging apparatus, applied to a debugging module, wherein the debugging module is pre-connected with a device to be debugged, and the apparatus comprises:

[0030] A receiving unit, used for receiving a debugging instruction sent by a mobile terminal through wireless communication;

[0031] A first acquisition unit is used to send the debugging instruction to the device to be debugged and obtain debugging result information fed back by the device to be debugged when the device to be debugged is in an accessible state; the debugging result information is information obtained by the device to be debugged by debugging the device to be debugged based on the debugging instruction and using a preset debugging component;

[0032] A second acquisition unit is used to acquire program crash information stored in the debugging module when the device to be debugged is in an inaccessible state; the program crash information is information acquired when a program crash is detected on the device to be debugged;

[0033] The first sending unit is used to send the debugging result information or the program crash information to the mobile terminal through the wireless communication method.

[0034] A device debugging apparatus is applied to a mobile terminal, and the method comprises:

[0035] A third acquisition unit is used to acquire a debugging instruction for debugging the device to be debugged;

[0036] a second sending unit, configured to send the debugging instruction to the debugging module by wireless communication, so that the debugging module forwards the debugging instruction to the device to be debugged when the device to be debugged is in an accessible state, and obtains debugging result information fed back by the device to be debugged, or, when the device to be debugged is in an inaccessible state, obtains program crash information stored in the debugging module; wherein the debugging module is pre-connected with the device to be debugged, and the debugging result information is information obtained by the device to be debugged by debugging the device to be debugged based on the debugging instruction using a preset debugging component;

[0037] The fourth acquisition unit is used to acquire the debugging result information or program crash information fed back by the debugging module via wireless communication.

[0038] A device debugging system, comprising:

[0039] A mobile terminal and a debugging module pre-connected with the device to be debugged;

[0040] The mobile terminal is used to execute the device debugging method as described above;

[0041] The debugging module is used to execute the device debugging method as described above.

[0042] A storage medium stores an instruction set, wherein the instruction set implements the above-mentioned device debugging method when executed by a processor.

[0043] An electronic device, comprising:

[0044] A memory for storing at least one set of instructions;

[0045] The processor is used to execute the instruction set stored in the memory, and implement the above-mentioned device debugging method by executing the instruction set.

[0046] Compared with the prior art, this application has the following advantages:

[0047] The present application provides a device debugging method, apparatus and system, including: a debugging module is pre-connected with a device to be debugged, a mobile terminal sends a debugging instruction to the debugging module through wireless communication, and when the debugging module determines that the device to be debugged is in an accessible state, the debugging instruction is sent to the device to be debugged, so that the device to be debugged can debug the device to be debugged based on the debugging instruction and use a preset debugging component to obtain debugging result information, and feedback the debugging result information to the debugging module; when the debugging module determines that the device to be debugged is in an inaccessible state, the program crash information stored is obtained; and the debugging module sends the debugging result information or program crash information to the mobile terminal through wireless communication. It can be seen that the present application scheme realizes the acquisition of program crash information when the device to be debugged is in an inaccessible state, and the debugging module is pre-connected with the device to be debugged, and the debugging module and the mobile terminal transmit data through wireless communication, without connecting the mobile terminal and the debugging device through a connecting line, which is convenient to operate, thereby improving the user experience, and the mobile terminal only needs to send and receive debugging instructions and receive debugging result information, so there is no need to install debugging system software in the mobile terminal, which reduces the resource occupation of the mobile terminal, thereby improving the operation efficiency of the mobile terminal, and then improving the debugging efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0049] Figure 1 A method flow chart of a device debugging method provided by this application;

[0050] Figure 2 An example diagram of a device debugging method provided in this application;

[0051] Figure 3 A flowchart of another method of a device debugging method provided by the present application;

[0052] Figure 4 A schematic diagram of the structure of a device debugging system provided for this application;

[0053] Figure 5 Another example diagram of a device debugging method provided by the present application;

[0054] Figure 6 A schematic diagram of the structure of an equipment debugging device provided for this application;

[0055] Figure 7Another structural schematic diagram of an equipment debugging device provided by this application;

[0056] Figure 8 A schematic diagram of the structure of an electronic device provided in this application. DETAILED DESCRIPTION

[0057] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0058] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.

[0059] It should be noted that the concepts such as "first" and "second" mentioned in the present application are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0060] It should be noted that the modifications of "one" and "plurality" mentioned in the disclosure of this application are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0061] The present application embodiment provides a device debugging method, which is applied to a debugging module. The flowchart of the device debugging method is as follows: Figure 1 As shown, specifically including:

[0062] S101. Receive a debugging instruction sent by a mobile terminal through wireless communication.

[0063] In this embodiment, the debugging module is pre-connected with the device to be debugged. Optionally, the connection method between the debugging module and the device to be debugged includes but is not limited to: connecting through a connecting line, or inserting the debugging module into the device to be debugged, that is, the device to be debugged needs to support an idle spi (Serial Peripheral Interface) and uart (Universal Asynchronous Receiver / Transmitter) interface, which is connected to the debugging module. In other words, the debugging module is an independent module on the device to be debugged.

[0064] In this embodiment, the debugging module includes a storage unit store and a communication unit comm. The storage unit is used to store the debugging result of the device to be debugged and the device status information of the device to be debugged. The communication unit is used to realize data interaction between the device to be debugged and the mobile terminal.

[0065] See also Figure 2 , Figure 2 The schematic diagram of the connection between the debugging module and the device to be debugged is shown. The storage unit store in the debugging module is connected to the device to be debugged through the spi interface, and the communication unit comm in the debugging module is connected to the device to be debugged through the uart interface.

[0066] In this embodiment, the debugging module initializes the communication unit after being powered on to complete the data transparent transmission function.

[0067] In this embodiment, the mobile terminal is wirelessly connected to the debugging module. Optionally, the mobile terminal is connected to the debugging module via WiFi or Bluetooth. After receiving the debugging instruction for the device to be debugged, the mobile terminal sends the debugging instruction to the debugging module via wireless communication, and the debugging module receives the debugging instruction sent by the mobile terminal.

[0068] S102, determine whether the device to be debugged is in an accessible state, if so, execute S103, if not, execute S104.

[0069] S103, sending a debugging instruction to the device to be debugged, and obtaining debugging result information fed back by the device to be debugged; the debugging result information is information obtained by the device to be debugged by debugging the device to be debugged based on the debugging instruction and using a preset debugging component.

[0070] In this embodiment, a data transmission pipeline is preset in the debugging module, and when the device to be debugged is in an accessible state, the data transmission pipeline is opened to send the debugging instruction to the device to be debugged. The accessible state is used to indicate that the device to be debugged has not crashed.

[0071] In this embodiment, a debugging component is preset in the device to be debugged, and the debugging component includes a debugging function and a command parsing rule, wherein the command parsing rule is set based on the product, business, and demand. It should be noted that different products, different businesses, or different demands have different corresponding command parsing rules. When the debugging component is initialized, the interface for registering the debugging component is initialized in the device to be debugged, and the service function address of the device to be debugged is obtained. Optionally, the service function can be an interrupt function. The debugging component kernel adds a flag in the service function, and the flag is used to indicate whether a debugging instruction is received.

[0072] In this embodiment, a registration table is stored in advance in the debugging component, and the corresponding relationship between the keywords and the debugging functions is stored in the registration table.

[0073] In this embodiment, after receiving the debugging instruction, the device to be debugged uses a preset debugging component to debug the device to be debugged, thereby obtaining debugging result data.

[0074] Specifically, the device to be debugged uses a preset debugging component to debug the device to be debugged based on the debugging instruction and obtains the debugging result information, including the following steps:

[0075] The device to be debugged uses a preset debugging component to parse the debugging instruction, obtain a parsing result, obtain a debugging function corresponding to the parsing result, call the debugging function, debug the device to be debugged, and obtain debugging result information.

[0076] In this embodiment, after receiving the debugging instruction, the device to be debugged parses the debugging instruction. Specifically, the debugging instruction is processed by calling the process method in the debugging component to implement the command parsing rules in the debugging component, and the debugging instruction is parsed by keywords to obtain the keywords corresponding to the debugging instruction. The optional process method can be represented by cmd_process, where the keywords include but are not limited to project keywords and function keywords. The project keywords are used to identify the developer, and the function keywords are used to identify the corresponding functions.

[0077] In this embodiment, the device to be debugged obtains the debugging function corresponding to the parsing result. Specifically, based on the parsing result, the debugging function corresponding to the parsing result in the registry is searched, and the debugging function is called to debug the device to be debugged, and the debugging result information is obtained, and the debugging result information is sent to the debugging module.

[0078] In this embodiment, the debugging module obtains debugging result information fed back by the debugging device.

[0079] S104, determining whether the debugging module stores program crash information, if so, executing S105, if not, executing S106.

[0080] In this embodiment, if the device to be debugged is in an inaccessible state, it is further determined whether the debugging module stores program crash information, that is, it is determined whether the storage unit of the debugging module stores program crash information. Specifically, when the device to be debugged is in an inaccessible state, the debugging module closes the data sending pipeline and opens the data access permission to determine whether the storage unit store stores program crash information.

[0081] Among them, the program crash information is the information obtained by the debugging module when the debugging module detects that a program crash occurs on the device to be debugged, and the program crash information includes but is not limited to the function call stack and register status information; specifically, when a program crash occurs on the device to be debugged, a preset crash processing function is used to obtain the program crash information when the program crash occurs on the device to be debugged, and the program crash information is stored in the storage unit of the debugging module.

[0082] The inaccessible state is used to indicate that the device to be debugged has crashed.

[0083] It should be noted that the reason why the device to be debugged is inaccessible can be analyzed through the program crash information.

[0084] S105: Obtain program crash information stored in the debugging module.

[0085] In this embodiment, when the device to be debugged is in an inaccessible state, if the program crash information is stored in the debugging module, it means that when it is monitored that the device to be debugged is in an inaccessible state, the preset crash processing function captures the program crash information of the device to be processed and obtains the program crash information stored in the debugging module.

[0086] S106: Acquire pre-stored device status information of the device to be debugged, and determine target information from the device status information.

[0087] In this embodiment, the device to be debugged obtains its own device status information according to the preset status sending rules, and sends the device status information to the debugging module. The debugging module stores the device status information of the device to be debugged in its own storage unit store, wherein the status sending rules can be sent according to a preset period, and the device status information includes the software and hardware status information of the device to be debugged.

[0088] In this embodiment, when the device to be debugged is in an inaccessible state, if the debugging module does not store program crash information, the pre-stored device state information of the device to be debugged is obtained from the storage unit store.

[0089] In this embodiment, target information is determined from device status information according to a preset strategy. The preset strategy can be modified as needed. Optionally, device status information within a preset time period can be determined as target information, or all device status information can be determined as target information.

[0090] Optionally, when the device to be debugged is in an inaccessible state, pre-stored device status information of the device to be debugged before it is in an inaccessible state may be uploaded to the cloud server.

[0091] S107: Send debugging result information, program crash information or target information to the mobile terminal via wireless communication.

[0092] In this embodiment, the debugging result information, program crash information or target information is sent to the mobile terminal by wireless communication.

[0093] Optionally, after sending the debugging result information to the mobile terminal, the debugging result information may also be stored.

[0094] It should be noted that when there is no need to debug the device to be debugged, the debugging module is in low power consumption mode. When data needs to be uploaded or online debugging is required, the debugging module is awakened externally, including but not limited to interruption, Bluetooth, NFC (NearField Communication), infrared, WiFi and other methods.

[0095] In the device debugging method provided in the embodiment of the present application, the debugging module is pre-connected with the device to be debugged, and the debugging module and the mobile terminal transmit data through wireless communication. There is no need to connect the mobile terminal and the debugging device through a connecting line, which is convenient to operate, thereby improving the user experience. In addition, the mobile terminal only needs to send and receive debugging instructions, and receive debugging result information. Therefore, there is no need to install debugging system software in the mobile terminal, which reduces the resource occupation of the mobile terminal, thereby improving the operating efficiency of the mobile terminal, and then improving the debugging efficiency, and realizing the acquisition of program crash information when the device to be debugged is in an inaccessible state, and then the reason why the device to be debugged is inaccessible can be analyzed based on the program crash information.

[0096] The present application also provides another device debugging method, which is applied to a mobile terminal. The flowchart of the device debugging method is as follows: Figure 3 As shown, specifically including:

[0097] S301: Obtain a debugging instruction for debugging a device to be debugged.

[0098] In this embodiment, the mobile terminal includes but is not limited to a mobile phone and a laptop computer. The mobile terminal does not need to install system debugging software, and can send and receive debugging instructions and receive debugging result information through communication software (eg, Bluetooth assistant, etc.).

[0099] In this embodiment, a debugging instruction for debugging the device to be debugged is obtained. Specifically, in response to a debugging request for debugging the device to be debugged, the communication software is started to obtain the debugging instruction input by the user through a preset interface in the communication software.

[0100] In this embodiment, the debugging request may be a request sent by the user by clicking an icon of the communication software in the mobile terminal.

[0101] In this embodiment, the user can input debugging instructions for debugging the device to be debugged through a preset interface in the communication software. Optionally, the preset interface can be a message sending interface of the communication software. It should be noted that the debugging instructions input by the user are instructions that can be recognized by the debugging component of the device to be debugged, that is, the instruction input rules are predefined, and the user inputs the debugging instructions based on the predefined instruction input rules.

[0102] In this embodiment, the mobile terminal obtains the debugging instruction input by the user through the preset interface of the communication software.

[0103] S302. Send a debugging instruction to a debugging module by wireless communication, so that the debugging module forwards the debugging instruction to the device to be debugged when the device to be debugged is in an accessible state, and obtains debugging result information fed back by the device to be debugged, or obtains program crash information stored in the debugging module when the device to be debugged is in an inaccessible state; wherein the debugging module is pre-connected with the device to be debugged, and the debugging result information is information obtained by the device to be debugged by debugging the device to be debugged based on the debugging instruction using a preset debugging component.

[0104] In this embodiment, the debugging module is pre-connected to the device to be debugged.

[0105] In this embodiment, the mobile terminal sends the debugging instruction to the debugging module via wireless communication.

[0106] In this embodiment, when the device to be debugged is in an accessible state, the debugging module sends a debugging instruction to the device to be debugged. After receiving the debugging instruction, the device to be debugged uses a preset debugging component to parse the debugging instruction to obtain a parsing result, obtains a debugging function corresponding to the parsing result through a registry, and calls the debugging function, thereby debugging the device to be debugged and obtaining debugging result information. The device to be debugged sends the debugging result information to the debugging module.

[0107] In this embodiment, when the device to be debugged is in an inaccessible state, the debugging module obtains the stored program crash information if the debugging module stores program crash information.

[0108] S303: Obtain debugging result information or program crash information fed back by the debugging module via wireless communication.

[0109] In this embodiment, the debugging module sends the debugging result information or program crash information to the mobile terminal through wireless communication, and the mobile terminal obtains the debugging result information of the device to be debugged.

[0110] Optionally, debugging result information or program crash information may also be displayed. Specifically, the debugging result information is displayed in the communication software.

[0111] Optionally, when the device to be debugged is in an inaccessible state, if the debugging module does not store program crash information, the debugging module obtains pre-stored device status information, determines target information from the device status information, and feeds back the target information to the mobile terminal via wireless communication.

[0112] In the device debugging method provided in the embodiment of the present application, the debugging module is pre-connected with the device to be debugged, and the debugging module and the mobile terminal transmit data by wireless communication, and there is no need to connect the mobile terminal and the debugging device through a connecting line, which is convenient to operate, thereby improving the user experience, and the mobile terminal only needs to send and receive debugging instructions, and receive debugging result information, so there is no need to install debugging system software in the mobile terminal, which reduces the resource occupation of the mobile terminal, thereby improving the operation efficiency of the mobile terminal, and then improving the debugging efficiency. And it realizes the acquisition of program crash information when the device to be debugged is in an inaccessible state, and then the reason why the device to be debugged is inaccessible can be analyzed based on the program crash information.

[0113] The present application also provides a device debugging system. The structural diagram of the device debugging system is as follows: Figure 4 As shown, specifically including:

[0114] A mobile terminal 401 and a debugging module 402 pre-connected with a device to be debugged.

[0115] Mobile terminal 401, used to execute the above embodiment Figure 3 The steps shown are not repeated here.

[0116] Debug module 402, used to execute the above embodiment Figure 1 The steps shown are not repeated here.

[0117] In the device debugging system provided in the embodiment of the present application, the debugging module is pre-connected with the device to be debugged, and the debugging module and the mobile terminal transmit data through wireless communication. There is no need to connect the mobile terminal and the debugging device through a connecting line, which is convenient to operate, thereby improving the user experience. In addition, the mobile terminal only needs to send and receive debugging instructions, and receive debugging result information. Therefore, there is no need to install debugging system software in the mobile terminal, which reduces the resource occupation of the mobile terminal, thereby improving the operating efficiency of the mobile terminal, and then improving the debugging efficiency, and realizing the acquisition of program crash information when the device to be debugged is in an inaccessible state, and then the reason why the device to be debugged is inaccessible can be analyzed based on the program crash information.

[0118] See also Figure 5 The above-mentioned device debugging method is illustrated as follows, including:

[0119] S501: A mobile terminal obtains a debugging instruction for debugging a device to be debugged.

[0120] In this embodiment, the mobile terminal responds to a debugging request for debugging the device to be debugged, and moves the communication software to obtain a debugging instruction input by the user through a preset interface in the communication software.

[0121] S502: The mobile terminal sends a debugging instruction to the debugging module.

[0122] In this embodiment, the mobile terminal sends a debugging instruction to the debugging module via wireless communication.

[0123] S503, the debugging module determines whether the device to be debugged is in an accessible state, if so, execute S504, if not, execute S505.

[0124] S504: The debugging module sends a debugging instruction to the device to be debugged.

[0125] In this embodiment, when the debugging module determines that the device to be debugged is in an accessible state, the debugging instruction sent by the mobile terminal is forwarded to the device to be debugged.

[0126] S505, the debugging module determines whether program crash information is stored, if so, execute S506, if not, execute S507.

[0127] S506: The debugging module obtains the stored program crash information and sends the program crash information to the mobile terminal.

[0128] In this embodiment, when the debugging module determines that the device to be debugged is in an inaccessible state, if the debugging module stores program crash information, the stored program crash information is obtained and sent to the mobile terminal via wireless communication.

[0129] S507: The debugging module obtains pre-stored device status information of the device to be debugged, and determines target information from the device status information.

[0130] In this embodiment, when the debugging module determines that the device to be debugged is in an inaccessible state, if the debugging module does not store program crash information, it obtains the device status information of the device to be debugged, and determines the target information from the device status information based on a preset strategy. Optionally, the device status information within a preset time period can be determined as the target information, or all device status information can be determined as the target information.

[0131] S508: The debugging module sends target information to the mobile terminal.

[0132] In this embodiment, the debugging module sends the target information to the mobile terminal via wireless communication.

[0133] S509: The mobile terminal displays program crash information.

[0134] In this embodiment, the mobile terminal receives the program crash information sent by the debugging module, and displays the program crash information in the communication software of the mobile terminal.

[0135] S510: The mobile terminal displays target information.

[0136] In this embodiment, the mobile terminal receives the target information sent by the debugging module, and displays the target information in the communication software of the mobile terminal.

[0137] S511: The device to be debugged debugs the device to be debugged based on the debugging instruction and using a preset debugging component to obtain debugging result information.

[0138] In this embodiment, the device to be debugged uses a preset debugging component to parse the debugging instruction to obtain a parsing result, obtains a debugging function corresponding to the parsing result through a registry, calls the debugging function, debugs the device to be debugged, and obtains debugging result information.

[0139] S512: The device to be debugged sends debugging result information to the debugging module.

[0140] S513: The debugging module sends debugging result information to the mobile terminal.

[0141] In this embodiment, the debugging sends debugging result information to the mobile terminal through wireless communication.

[0142] S514: The mobile terminal displays debugging result information.

[0143] In this embodiment, the mobile terminal receives the debugging result information sent by the debugging module, and displays the debugging result information in the communication software of the mobile terminal.

[0144] It should be noted that although the operations are depicted in a particular order, this should not be understood as requiring that the operations be performed in the particular order shown or in a sequential order. In certain circumstances, multitasking and parallel processing may be advantageous.

[0145] It should be understood that the various steps described in the method embodiments disclosed in the present application can be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present application is not limited in this respect.

[0146] and Figure 1 Corresponding to the method described above, the embodiment of the present application also provides a device debugging apparatus, which is applied to the debugging module and is used to Figure 1 The specific implementation of the method is shown in the following diagram: Figure 6 As shown, specifically including:

[0147] The receiving unit 601 is used to receive the debugging instruction sent by the mobile terminal through wireless communication;

[0148] The first acquisition unit 602 is used to send the debugging instruction to the device to be debugged, and obtain the debugging result information fed back by the device to be debugged when the device to be debugged is in an accessible state; the debugging result information is the information obtained by the device to be debugged by debugging the device to be debugged based on the debugging instruction and using a preset debugging component;

[0149] The second acquisition unit 603 is used to acquire the program crash information stored in the debugging module when the device to be debugged is in an inaccessible state; the program crash information is information acquired when a program crash is detected on the device to be debugged;

[0150] The first sending unit 604 is used to send the debugging result information or the program crash information to the mobile terminal through the wireless communication method.

[0151] In the device debugging apparatus provided in the embodiment of the present application, the debugging module is pre-connected with the device to be debugged, and the debugging module and the mobile terminal transmit data through wireless communication. There is no need to connect the mobile terminal and the debugging device through a connecting line, which is easy to operate, thereby improving the user experience. In addition, the mobile terminal only needs to send and receive debugging instructions and receive debugging result information. Therefore, there is no need to install debugging system software in the mobile terminal, which reduces the resource occupation of the mobile terminal, thereby improving the operating efficiency of the mobile terminal, and then improving the debugging efficiency, and realizing the acquisition of program crash information when the device to be debugged is in an inaccessible state.

[0152] In one embodiment of the present application, based on the above solution, the second acquisition unit 603 is specifically used to:

[0153] Determining whether program crash information is stored in the debugging module;

[0154] If the debugging module stores program crash information, the program crash information in the debugging module is obtained.

[0155] In one embodiment of the present application, based on the above solution, it can also be configured as follows:

[0156] a fifth acquiring unit, configured to acquire pre-stored device status information of the device to be debugged if the program crash information is not stored in the debugging module;

[0157] a determining unit, configured to determine target information from the device status information;

[0158] A feedback unit is used to feed back the target information to the mobile terminal through the wireless communication method.

[0159] In one embodiment of the present application, based on the above-mentioned solution, when the first acquisition unit 602 debugs the device to be debugged based on the debugging instruction and using a preset debugging component to obtain the debugging result information, it is specifically used to:

[0160] The device to be debugged uses a preset debugging component to parse the debugging instruction to obtain a parsing result, obtains a debugging function corresponding to the parsing result, calls the debugging function, debugs the device to be debugged, and obtains debugging result information.

[0161] and Figure 3 Corresponding to the method described above, the embodiment of the present application also provides a device debugging apparatus, which is applied to a mobile terminal and is used to debug Figure 3 The specific implementation of the method is shown in the following diagram: Figure 7 As shown, specifically including:

[0162] The third acquisition unit 701 is used to acquire a debugging instruction for debugging the device to be debugged;

[0163] The second sending unit 702 is used to send the debugging instruction to the debugging module by wireless communication, so that the debugging module forwards the debugging instruction to the device to be debugged when the device to be debugged is in an accessible state, and obtains the debugging result information fed back by the device to be debugged, or obtains the program crash information stored in the debugging module when the device to be debugged is in an inaccessible state; wherein the debugging module is pre-connected with the device to be debugged, and the debugging result information is the information obtained by the device to be debugged by debugging the device to be debugged based on the debugging instruction using a preset debugging component;

[0164] The fourth acquisition unit 703 is used to acquire the debugging result information or program crash information fed back by the debugging module via wireless communication.

[0165] In the device debugging apparatus provided in the embodiment of the present application, the debugging module is pre-connected with the device to be debugged, and the debugging module and the mobile terminal transmit data through wireless communication. There is no need to connect the mobile terminal and the debugging device through a connecting line, which is easy to operate, thereby improving the user experience. In addition, the mobile terminal only needs to send and receive debugging instructions and receive debugging result information. Therefore, there is no need to install debugging system software in the mobile terminal, which reduces the resource occupation of the mobile terminal, thereby improving the operating efficiency of the mobile terminal, and then improving the debugging efficiency, and realizing the acquisition of program crash information when the device to be debugged is in an inaccessible state.

[0166] In one embodiment of the present application, based on the above solution, it can also be configured as follows:

[0167] The display unit is used to display the debugging result information or the program crash information.

[0168] In one embodiment of the present application, based on the above solution, the third acquisition unit 701 is specifically used to:

[0169] In response to a debugging request for debugging the device to be debugged, starting the communication software;

[0170] Acquire a debugging instruction input by a user through a preset interface in the communication software.

[0171] An embodiment of the present application further provides a storage medium, wherein the storage medium stores an instruction set, wherein when the instruction set is executed, the device debugging method disclosed in any of the above embodiments is executed.

[0172] The present application also provides an electronic device, whose structural diagram is as follows: Figure 8As shown, it specifically includes a memory 801 for storing at least one set of instruction sets; a processor 802 for executing the instruction sets stored in the memory by executing the device debugging method disclosed in any of the above embodiments.

[0173] It should be noted that each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the embodiments can be referred to each other. For the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0174] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0175] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing the present application, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0176] It can be known from the description of the above implementation methods that those skilled in the art can clearly understand that the present application can be implemented by means of software plus a necessary general hardware platform. Based on such an understanding, the technical solution of the present application can be essentially or partly contributed to the prior art in the form of a software product, which can be stored in a storage medium such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present application or certain parts of the embodiments.

[0177] The above is a detailed introduction to a device debugging method, apparatus and system provided by the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for general technical personnel in this field, according to the idea of ​​the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A device debugging method, characterized in that: Applied to a debugging module, the debugging module is pre-connected with a device to be debugged, the method comprising: Receiving a debugging instruction sent by a mobile terminal through wireless communication; When the device to be debugged is in an accessible state, the debugging instruction is sent to the device to be debugged, and debugging result information fed back by the device to be debugged is obtained; the debugging result information is information obtained by the device to be debugged debugging the device to be debugged based on the debugging instruction and using a preset debugging component; When the device to be debugged is in an inaccessible state, obtaining program crash information stored in the debugging module; the program crash information is information obtained when a program crash occurs on the device to be debugged, and the program crash information includes a function call stack and register status information; The debugging result information or the program crash information is sent to the mobile terminal through the wireless communication method.

2. The method according to claim 1, characterized in that The obtaining of program crash information in the debugging module includes: Determining whether program crash information is stored in the debugging module; If the debugging module stores program crash information, the program crash information in the debugging module is obtained.

3. The method according to claim 2, characterized in that Also includes: If the debugging module does not store program crash information, then obtaining pre-stored device status information of the device to be debugged; determining target information from the device status information; The target information is fed back to the mobile terminal through the wireless communication method.

4. The method according to claim 1, characterized in that The device to be debugged debugs the device to be debugged based on the debugging instruction and using a preset debugging component to obtain debugging result information, including: The device to be debugged uses a preset debugging component to parse the debugging instruction to obtain a parsing result, obtains a debugging function corresponding to the parsing result, calls the debugging function, debugs the device to be debugged, and obtains debugging result information.

5. A device debugging method, characterized in that: Applied to a mobile terminal, the method comprises: Obtaining a debugging instruction for debugging the device to be debugged; The debugging instruction is sent to the debugging module by wireless communication, so that the debugging module forwards the debugging instruction to the device to be debugged when the device to be debugged is in an accessible state, and obtains the debugging result information fed back by the device to be debugged, and obtains the program crash information stored in the debugging module when the device to be debugged is in an inaccessible state, wherein the program crash information is information obtained when a program crash is detected on the device to be debugged; wherein the debugging module is pre-connected with the device to be debugged, and the debugging result information is information obtained by the device to be debugged by debugging the device to be debugged based on the debugging instruction and using a preset debugging component; The debugging result information or program crash information fed back by the debugging module via wireless communication is obtained, wherein the program crash information includes a function call stack and register status information.

6. The method according to claim 5, characterized in that After obtaining the debugging result information or program crash information fed back by the debugging module via wireless communication, the method further includes: The debugging result information or the program crash information is displayed.

7. The method according to claim 5, characterized in that The step of obtaining a debugging instruction for debugging the device to be debugged includes: In response to a debugging request for debugging the device to be debugged, starting the communication software; Acquire a debugging instruction input by a user through a preset interface in the communication software.

8. A device debugging apparatus, characterized in that: Applied to a debugging module, the debugging module is pre-connected with the device to be debugged, and the device comprises: A receiving unit, used for receiving a debugging instruction sent by a mobile terminal through wireless communication; A first acquisition unit is used to send the debugging instruction to the device to be debugged when the device to be debugged is in an accessible state, and to acquire debugging result information fed back by the device to be debugged; the debugging result information is information obtained by the device to be debugged by debugging the device to be debugged based on the debugging instruction and using a preset debugging component; A second acquisition unit is used to acquire program crash information stored in the debugging module when the device to be debugged is in an inaccessible state; the program crash information is information acquired when a program crash occurs on the device to be debugged, and the program crash information includes a function call stack and register status information; The first sending unit is used to send the debugging result information or the program crash information to the mobile terminal through the wireless communication method.

9. A device debugging device, characterized in that: Applied to a mobile terminal, the device comprises: A third acquisition unit is used to acquire a debugging instruction for debugging the device to be debugged; a second sending unit, configured to send the debugging instruction to the debugging module by wireless communication, so that the debugging module forwards the debugging instruction to the device to be debugged when the device to be debugged is in an accessible state, and obtains debugging result information fed back by the device to be debugged, and obtains program crash information stored in the debugging module when the device to be debugged is in an inaccessible state, wherein the program crash information is information obtained when a program crash is detected on the device to be debugged; wherein the debugging module is pre-connected with the device to be debugged, and the debugging result information is information obtained by the device to be debugged by debugging the device to be debugged based on the debugging instruction using a preset debugging component; The fourth acquisition unit is used to acquire the debugging result information or program crash information fed back by the debugging module via wireless communication, wherein the program crash information includes a function call stack and register status information.

10. A device debugging system, characterized in that: include: A mobile terminal and a debugging module pre-connected with the device to be debugged; The mobile terminal is used to execute the device debugging method according to any one of claims 5 to 7 above; The debugging module is used to execute the device debugging method as described in any one of claims 1 to 4 above.