Device debugging information acquisition method, device and device debugging information generation method

By supporting multiple preset types of connection methods in device debugging, the problem of low equipment debugging efficiency in the prior art is solved, and the effect of quickly establishing the equipment debugging environment is achieved.

CN112069008BActive Publication Date: 2024-12-10SHENZHEN SKYWORTH RGB ELECTRONICS CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202010908856.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-09-02
Publication Date
2024-12-10
Estimated Expiration
2040-09-02

AI Technical Summary

Technical Problem

The existing equipment debugging methods are single when communicating with the equipment, resulting in low data transmission efficiency and reducing the efficiency of the overall equipment debugging process.

Method used

By establishing a preset type connection with the target device, entering the corresponding preset debugging mode, sending debug authorization requests and instructions, and receiving debugging information, it supports a variety of communication methods such as wired and wireless connections, improving debugging efficiency.

Benefits of technology

It realizes the rapid establishment of communication connection between the terminal and the target equipment according to user needs, improves the equipment debugging efficiency, and facilitates equipment research and development, production and after-sales personnel to quickly establish a debugging environment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112069008B_ABST
    Figure CN112069008B_ABST
Patent Text Reader

Abstract

The present invention provides a method, apparatus and method for generating device debugging information, the method for acquiring device debugging information includes: establishing a preset type of connection with a target device and entering a corresponding preset debugging mode; sending a debugging authorization request to the target device through the preset type of connection; after receiving the debugging authorization information transmitted by the target device, sending a preset debugging instruction to the target device; receiving the debugging information transmitted by the target device. The device debugging information acquisition method of the present invention can be connected to the target device through a variety of preset types of communication methods, so that the user can select the required communication connection method to connect to the target device according to the needs, and perform debugging, thereby improving the debugging efficiency of the target device and facilitating the equipment R&D, production and after-sales personnel to quickly establish a debugging environment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of device debugging, and in particular to a method and device for acquiring device debugging information, a method for generating device debugging information, a mobile terminal and a readable storage medium. Background Art

[0002] The existing device debugging method has a relatively simple mode when communicating with the device, thereby reducing the efficiency of data transmission during debugging, and further making the efficiency of the overall device debugging process low. Summary of the invention

[0003] In view of the above problems, the present invention provides a method and apparatus for obtaining device debugging information, a method for generating device debugging information, a mobile terminal and a readable storage medium, so as to quickly establish a communication connection between the terminal and the target debugging device according to user needs, so as to improve the debugging efficiency of the target device and facilitate equipment R&D, production and after-sales personnel to quickly establish a debugging environment.

[0004] In order to achieve the above object, the present invention adopts the following technical solution:

[0005] A method for obtaining device debugging information, comprising:

[0006] Establish a preset type of connection with the target device and enter the corresponding preset debugging mode;

[0007] Sending a debugging authorization request to the target device via the connection of the preset type;

[0008] After receiving the debugging authorization information transmitted by the target device, sending a preset debugging instruction to the target device;

[0009] Receive debugging information transmitted by the target device.

[0010] Preferably, in the device debugging information acquisition method, the preset type of connection includes a wired connection and a wireless connection, and the preset debugging mode includes a wired debugging mode and a wireless debugging mode.

[0011] Preferably, in the device debugging information acquisition method, establishing a preset type of connection with the target device and entering a corresponding preset debugging mode includes:

[0012] When it is detected that a preset type of data cable is connected, a corresponding wired debugging option is generated;

[0013] In response to the triggering of the wired debugging option, establishing the wired connection with the target device, loading the driver of the preset type of data cable, and entering the wired debugging mode;

[0014] The transmission parameters of the preset type of data line are set according to the preset configuration information and synchronized to the target device.

[0015] Preferably, the device debugging information acquisition method further includes:

[0016] A wireless debugging option is provided, and in response to triggering of the wireless debugging option, the wireless connection is established with the target device, and a wireless debugging mode is entered.

[0017] Preferably, the device debugging information acquisition method further includes:

[0018] The debugging information is transmitted to a backend server.

[0019] The present invention also provides a method for generating device debugging information, comprising:

[0020] Establish a preset type of connection with the debugging end and enter the corresponding preset debugging mode;

[0021] receiving a debugging authorization request sent by the debugging terminal, and if the debugging authorization request is legal, sending corresponding debugging authorization information to the debugging terminal;

[0022] receiving a debugging instruction sent by the debugging terminal, performing a debugging operation according to the debugging instruction, and generating debugging information;

[0023] The debugging information is sent to the debugging end.

[0024] Preferably, in the method for generating standby debugging information, the preset type of connection includes a wired connection and a wireless connection, and the preset debugging mode includes a wired debugging mode and a wireless debugging mode.

[0025] The present invention also provides a device for obtaining device debugging information, comprising:

[0026] The target device connection module is used to establish a connection of a preset type with the target device and enter a corresponding preset debugging mode;

[0027] A debugging request sending module, used to send a debugging authorization request to the target device through the connection of the preset type;

[0028] A debugging instruction sending module, used for sending a preset debugging instruction to the target device after receiving the debugging authorization information transmitted by the target device;

[0029] The debugging information receiving module is used to receive the debugging information transmitted by the target device.

[0030] The present invention also provides a mobile terminal, comprising a memory and a processor, wherein the memory stores a computer program, and the processor runs the computer program to enable the mobile terminal to execute the device debugging information acquisition method.

[0031] The present invention also provides a readable storage medium storing a computer program, and the computer program executes the device debugging information acquisition method when running on a processor.

[0032] The present invention provides a method for obtaining device debugging information, which includes: establishing a preset type of connection with a target device and entering a corresponding preset debugging mode; sending a debugging authorization request to the target device through the preset type of connection; after receiving the debugging authorization information transmitted by the target device, sending a preset debugging instruction to the target device; receiving the debugging information transmitted by the target device. The device debugging information acquisition method of the present invention can be connected to the target device through a variety of preset types of communication methods, so that the user can select the required communication connection method to connect to the target device according to the needs, and perform debugging, thereby improving the debugging efficiency of the target device and facilitating equipment research and development, production and after-sales personnel to quickly establish a debugging environment.

[0033] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the technical solution of the present invention, the following is a brief introduction to the drawings required for use in the embodiments. It should be understood that the following drawings only illustrate certain embodiments of the present invention and should not be regarded as limiting the scope of protection of the present invention. In each of the drawings, similar components are numbered similarly.

[0035] Figure 1 is a flow chart of a method for obtaining device debugging information provided by Embodiment 1 of the present invention;

[0036] Figure 2 is a flow chart of establishing a connection with a target device provided by Embodiment 2 of the present invention;

[0037] Figure 3 is another flow chart of establishing a connection with a target device provided by Embodiment 2 of the present invention;

[0038] Figure 4 is a flow chart of a method for obtaining device debugging information provided by Embodiment 3 of the present invention;

[0039] Figure 5 is a flow chart of a method for generating device debugging information provided by Embodiment 4 of the present invention;

[0040] Figure 6 It is a structural diagram of a device debugging information acquisition apparatus provided in Example 5 of the present invention. DETAILED DESCRIPTION

[0041] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments.

[0042] The components of the embodiments of the present invention generally described and shown in the drawings herein may be arranged and designed in a variety of different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0043] Hereinafter, the terms "including", "having" and their cognates, which may be used in various embodiments of the present invention, are intended only to indicate specific features, numbers, steps, operations, elements, components or combinations of the foregoing items, and should not be understood as first excluding the existence of one or more other features, numbers, steps, operations, elements, components or combinations of the foregoing items or adding the possibility of one or more features, numbers, steps, operations, elements, components or combinations of the foregoing items.

[0044] Furthermore, the terms “first”, “second”, “third”, etc. are merely used for distinguishing descriptions and are not to be understood as indicating or implying relative importance.

[0045] Unless otherwise defined, all terms (including technical terms and scientific terms) used herein have the same meanings as those generally understood by those skilled in the art to which the various embodiments of the present invention belong. The terms (such as those defined in generally used dictionaries) will be interpreted as having the same meanings as the contextual meanings in the relevant technical field and will not be interpreted as having idealized meanings or overly formal meanings unless clearly defined in the various embodiments of the present invention.

[0046] Example 1

[0047] Figure 1 1 is a flow chart of a method for obtaining device debugging information provided by Embodiment 1 of the present invention, the method comprising the following steps:

[0048] Step S11: Establishing a preset type of connection with the target device and entering a corresponding preset debugging mode.

[0049] In the embodiment of the present invention, the preset type of connection includes a wired connection and a wireless connection, and the preset debugging mode includes a wired debugging mode and a wireless debugging mode. The target device includes electronic devices that need to be debugged, such as televisions and display screens, and a mobile terminal such as a mobile phone and a tablet computer can be used to establish a preset type of communication connection with the target device, so that the user can use the mobile terminal to enter the corresponding debugging mode to debug the target device.

[0050] In an embodiment of the present invention, when the above-mentioned wired connection is used, a data cable can be used to connect to the UART interface (UART, Universal Asynchronous Receiver / Transmitter) of the target device and then connected to the mobile terminal through an adapter cable. For example, when the mobile terminal is a mobile phone, the UART interface can be converted to a USB interface (USB, Universal Serial Bus) and then converted to an adapted OTG connection cable (OTG, On-The-Go) to connect to the mobile phone.

[0051] In the embodiment of the present invention, the wireless connection can be made using the wireless communication module of the target device and the mobile terminal, and the wireless communication module includes a wifi module, a Bluetooth module, etc. Before the mobile terminal establishes a connection with the target device, or after the connection is established, a user login interface can be displayed so that the user can enter the account and password used for debugging to log in, so that a debugging authorization request including debugging account information can be generated when debugging is requested later, so that the target device can verify whether the debugging is legal.

[0052] Step S12: Sending a debugging authorization request to the target device via the connection of the preset type.

[0053] In an embodiment of the present invention, after determining to use a wireless connection or a wired connection to communicate with the target device, the mobile terminal will send a debugging authorization request to the target device via a wireless connection or a wired connection, and the target device will respond according to the debugging authorization request after receiving the debugging authorization request, such as replying a request success message or a request failure message. Among them, the above-mentioned debugging authorization request includes debugging account information so that the target device can verify the legitimacy of the debugging, and the debugging authorization request can be pre-stored in the cloud server. After the user uses the mobile terminal to log in to the debugging account, the mobile terminal can download the corresponding debugging authorization request from the cloud server, or after the user enters the debugging account to log in, the mobile terminal generates the debugging authorization request according to the debugging account information, which is not limited here.

[0054] Step S13: after receiving the debugging authorization information transmitted by the target device, sending a preset debugging instruction to the target device.

[0055] In the embodiment of the present invention, after the mobile terminal receives the debugging authorization information transmitted by the target device, that is, after the target device verifies the debugging authorization request, the mobile terminal will send a debugging instruction to the target device. The debugging instruction includes a commonly used target device debugging instruction and a debugging instruction preset by the user. The debugging instruction can be generated or pre-stored according to the specific model of the target device, which is not limited here. For example, the boot stage information and hardware loading information in the target device system can be obtained through the debugging instruction.

[0056] Step S14: receiving the debugging information transmitted by the target device.

[0057] In the embodiment of the present invention, a plurality of preset types of communication methods can be used to connect to the target device, so that the user can select the required communication connection method according to the needs to connect to the target device and perform debugging, thereby improving the debugging efficiency of the target device and facilitating equipment R&D, production and after-sales personnel to quickly establish a debugging environment.

[0058] Example 2

[0059] Figure 2 This is a flow chart of establishing a connection with a target device provided by Embodiment 2 of the present invention, comprising the following steps:

[0060] Step S21: when it is detected that a preset type of data cable is connected, a corresponding wired debugging option is generated.

[0061] In the embodiment of the present invention, when establishing a connection with the target device, the mobile terminal may first detect whether a preset type of data cable is connected. For example, it may detect whether an adapted OTG data cable is connected, wherein the process of detecting whether a preset type of data cable is connected may be implemented by an application program, which is not limited here.

[0062] In the embodiment of the present invention, after determining that a preset type of data line is connected, the mobile terminal will load the driver of the preset type of data line so as to connect to the target device through the data line and transmit data. After loading the driver of the preset type of data line, a corresponding wired debugging option can also be generated in the mobile terminal, and the wired debugging option can be displayed so that the user can select the wired debugging option according to the needs, and use the data line to establish data transmission with the target device to debug the target device.

[0063] Step S22: in response to the triggering of the wired debugging option, establishing the wired connection with the target device, loading the driver of the preset type of data cable, and entering the wired debugging mode.

[0064] In the embodiment of the present invention, the process of loading the driver program of the preset type of data line may also be performed after the wired debugging option is triggered, which is not limited here.

[0065] Step S23: setting the transmission parameters of the preset type of data line according to the preset configuration information, and synchronizing to the target device.

[0066] In the embodiment of the present invention, after it is determined that the preset type of data line is used to connect to the target device to enter the wired debugging mode, the transmission parameters of the preset type of data line will be set. The transmission parameters include parameters such as the baud rate of the transmission and the number of serial port debugging bits. The above transmission parameters can be pre-stored in the mobile terminal, or the user can input the transmission parameters for setting. The transmission parameters of the preset type of data line will be synchronized to the target device to ensure the matching of the communication between the two ends.

[0067] Figure 3 This is another flow chart of establishing a connection with a target device provided by Embodiment 2 of the present invention, and further includes the following steps:

[0068] Step S24: providing a wireless debugging option, establishing the wireless connection with the target device in response to triggering the wireless debugging option, and entering a wireless debugging mode.

[0069] In the embodiment of the present invention, the mobile terminal will also provide a wireless debugging option, and can display the wireless debugging option while displaying the priority debugging option, so that the user can select it according to the needs. Among them, the mobile terminal can also store the acquired debugging information in a preset storage space, so that the user can subsequently extract the corresponding debugging information from the storage space, which is not limited here.

[0070] Example 3

[0071] Figure 4 3 is a flow chart of a method for obtaining device debugging information provided by embodiment 3 of the present invention, the method comprising the following steps:

[0072] Step S41: Establishing a preset type of connection with the target device and entering a corresponding preset debugging mode.

[0073] This step is consistent with the above step S11 and will not be described again here.

[0074] Step S42: Sending a debugging authorization request to the target device via the connection of the preset type.

[0075] This step is consistent with the above step S12 and will not be repeated here.

[0076] Step S43: after receiving the debugging authorization information transmitted by the target device, sending a preset debugging instruction to the target device.

[0077] This step is consistent with the above step S13 and will not be repeated here.

[0078] Step S44: receiving the debugging information transmitted by the target device.

[0079] This step is consistent with the above step S14 and will not be repeated here.

[0080] Step S45: Transmit the debugging information to the backend server.

[0081] In an embodiment of the present invention, after obtaining the debugging information of the target device, the mobile terminal can also transmit the debugging information to the background server so that the R&D personnel, production personnel and after-sales personnel of the target device can formulate corresponding services for the users of the target device according to the debugging information, thereby improving the user experience.

[0082] Example 4

[0083] Figure 5 4 is a flowchart of a method for generating device debugging information provided by embodiment 4 of the present invention, the method comprising the following steps:

[0084] Step S51: Establishing a connection of a preset type with the debugging end and entering a corresponding preset debugging mode.

[0085] In the embodiment of the present invention, the preset type of connection includes a wired connection and a wireless connection, and the preset debugging mode includes a wired debugging mode and a wireless debugging mode.

[0086] Step S52: receiving a debugging authorization request sent by the debugging end, and if the debugging authorization request is legal, sending corresponding debugging authorization information to the debugging end.

[0087] Step S53: receiving the debugging instruction sent by the debugging terminal, performing debugging operations according to the debugging instruction, and generating debugging information.

[0088] Step S54: Send the debugging information to the debugging end.

[0089] Example 5

[0090] Figure 6 It is a structural diagram of a device debugging information acquisition apparatus provided by Embodiment 5 of the present invention;

[0091] The target device connection module 610 is used to establish a connection of a preset type with the target device and enter a corresponding preset debugging mode;

[0092] A debugging request sending module 620, configured to send a debugging authorization request to the target device via the connection of the preset type;

[0093] The debugging instruction sending module 630 is used to send a preset debugging instruction to the target device after receiving the debugging authorization information transmitted by the target device;

[0094] The debugging information receiving module 640 is used to receive the debugging information transmitted by the target device.

[0095] In the embodiment of the present invention, a more detailed functional description of each of the above modules can be referred to the corresponding parts of the aforementioned embodiment, which will not be repeated here.

[0096] In addition, the present invention also provides a mobile terminal, which may include a smart phone, a tablet computer, a car computer, a smart wearable device, etc. The mobile terminal includes a memory and a processor, the memory can be used to store a computer program, and the processor runs the computer program, so that the mobile terminal executes the functions of each module in the above method or the above device debugging information acquisition device.

[0097] The memory may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the mobile terminal (such as audio data, a phone book, etc.), etc. In addition, the memory may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0098] This embodiment also provides a readable storage medium for storing a computer program used in the above mobile terminal.

[0099] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and structure diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present invention. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in an alternative implementation, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the structure diagram and / or the flow chart, and the combination of boxes in the structure diagram and / or the flow chart, can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0100] In addition, the functional modules or units in the various embodiments of the present invention may be integrated together to form an independent part, or each module may exist independently, or two or more modules may be integrated to form an independent part.

[0101] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for enabling a mobile terminal (which can be a smart phone, a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0102] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A method for obtaining device debugging information, characterized in that: include: Establishing a preset type of connection with a target device and entering a corresponding preset debugging mode; wherein the preset type of connection includes a wired connection and a wireless connection, and the preset debugging mode includes a wired debugging mode and a wireless debugging mode; wherein establishing a preset type of connection with a target device and entering a corresponding preset debugging mode includes: when an application detects that a preset type of data cable is connected, generating a corresponding wired debugging option and displaying the wired debugging option; in response to triggering the wired debugging option, establishing the wired connection with the target device, loading a driver for the preset type of data cable, and entering a wired debugging mode; setting transmission parameters of the preset type of data cable according to preset configuration information, and synchronizing with the target device; and / or providing a wireless debugging option, in response to triggering the wireless debugging option, establishing the wireless connection with the target device and entering a wireless debugging mode; Sending a debugging authorization request to the target device via the connection of the preset type; After receiving the debugging authorization information transmitted by the target device, sending a preset debugging instruction to the target device; Receive the debugging information transmitted by the target device; and transmit the debugging information to a background server.

2. A method for generating device debugging information, characterized in that: include: Establishing a preset type of connection with the debugging end and entering a corresponding preset debugging mode; wherein the preset type of connection includes a wired connection and a wireless connection, and the preset debugging mode includes a wired debugging mode and a wireless debugging mode; Wherein, establishing a preset type of connection with the target device and entering a corresponding preset debugging mode includes: generating a corresponding wired debugging option and displaying the wired debugging option when the application detects that a preset type of data cable is connected; in response to the triggering of the wired debugging option, establishing the wired connection with the target device, loading a driver for the preset type of data cable, and entering a wired debugging mode; setting transmission parameters of the preset type of data cable according to preset configuration information, and synchronizing to the target device; receiving a debugging authorization request sent by the debugging terminal, and if the debugging authorization request is legal, sending corresponding debugging authorization information to the debugging terminal; receiving a debugging instruction sent by the debugging terminal, performing a debugging operation according to the debugging instruction, and generating debugging information; Send the debugging information to the debugging end; transmit the debugging information to the background server.

3. A device for obtaining device debugging information, characterized in that: include: A target device connection module, used to establish a preset type of connection with the target device and enter a corresponding preset debugging mode; wherein the preset type of connection includes a wired connection and a wireless connection, and the preset debugging mode includes a wired debugging mode and a wireless debugging mode; Wherein, establishing a preset type of connection with the target device and entering a corresponding preset debugging mode includes: generating a corresponding wired debugging option and displaying the wired debugging option when the application detects that a preset type of data cable is connected; in response to the triggering of the wired debugging option, establishing the wired connection with the target device, loading a driver for the preset type of data cable, and entering a wired debugging mode; setting transmission parameters of the preset type of data cable according to preset configuration information, and synchronizing to the target device; A debugging request sending module, used for sending a debugging authorization request to the target device through the connection of the preset type; A debugging instruction sending module, used for sending a preset debugging instruction to the target device after receiving the debugging authorization information transmitted by the target device; The debugging information receiving module is used to receive the debugging information transmitted by the target device and transmit the debugging information to the background server.

4. A mobile terminal, characterized in that: The device comprises a memory and a processor, wherein the memory stores a computer program, and the processor runs the computer program to enable the mobile terminal to execute the device debugging information acquisition method according to claim 1.

5. A readable storage medium, characterized in that: A computer program is stored therein, and when the computer program is run on a processor, the method for obtaining device debugging information according to claim 1 is executed.

Citation Information

Patent Citations

  • Terminal authentication method, apparatus and system

    CN109413010A