Device Wireless Debugging Method, Device, Computer Device and Storage Medium

The device connection is established through the device discovery module and the preset trusted device list, and debugging commands are generated, which solves the problem of low wireless debugging efficiency and realizes efficient and secure connection and debugging between the main control device and the equipment to be debugged.

CN115734259BActive Publication Date: 2025-07-08深圳开鸿数字产业发展有限公司
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211304311.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-24
Publication Date
2025-07-08
Estimated Expiration
2042-10-24

AI Technical Summary

Technical Problem

In the prior art, equipment debugging efficiency is low, especially wireless debugging methods, which requires a lot of preparation work, affecting the efficiency of developers, and the problems of data cable aging and messy layout have not been effectively solved.

Method used

The device discovery module obtains the main control device and the equipment to be debugged, establishes a connection relationship based on the preset trusted equipment list, and generates debugging commands for equipment debugging, supporting one-to-one or many-to-many connection between the main control device and the equipment to be debugged, realizing device authentication and log management.

Benefits of technology

It improves the efficiency of equipment debugging, ensures the security and credibility of equipment connections, reduces preparation work, and improves the work efficiency of developers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115734259B_ABST
    Figure CN115734259B_ABST
Patent Text Reader

Abstract

The present application relates to the field of wireless debugging technology, and discloses a device wireless debugging method, device, equipment and storage medium. The method includes: when receiving a device debugging request, calling a device discovery module to obtain at least one master device and at least one device to be debugged; based on a preset trusted device list, at least one of the master devices and at least one of the devices to be debugged, obtaining at least one trusted master device and at least one trusted device to be debugged, and calling a connection establishment module to establish a connection relationship between the trusted master device and the trusted device to be debugged; based on the connection relationship, when receiving a debugging requirement set by a user, generating at least one debugging command to debug at least one of the trusted devices to be debugged. This method realizes one-to-one debugging and many-to-many debugging between the master device and the device to be debugged, thereby improving the efficiency of device debugging.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of wireless debugging technologies, and in particular, to a method and device for wirelessly debugging a device, a computer device, and a storage medium. Background Art

[0002] During the development process, debugging has always been a necessary process to identify problems, isolate the source of problems, and then correct and solve them. The currently widely used debugging method is to connect the development environment to the device to be debugged using a data cable, and then debug the device to be debugged. However, due to the material of the data cable or long-term plugging and unplugging, the connection may lose stability at a certain time; moreover, when connecting multiple devices, the layout of the data cables may affect the desktop environment, and even the situation of insufficient interfaces may occur, thus affecting the work efficiency of developers. The wireless connection debugging method effectively solves the problems of data cable aging, insufficient interfaces, and messiness. However, the current wireless debugging method requires a large amount of preparatory work every time before debugging, reducing the efficiency of device debugging. Therefore, how to improve the efficiency of device debugging is a technical problem that needs to be solved urgently at present. Summary of the Invention

[0003] This application provides a method and device for wirelessly debugging a device, a computer device, and a storage medium to improve the efficiency of device debugging.

[0004] In a first aspect, this application provides a method for wirelessly debugging a device, and the method includes:

[0005] When a device debugging request is received, call the device discovery module to obtain at least one master device and at least one device to be debugged;

[0006] Based on a preset list of trusted devices, at least one of the master devices, and at least one of the devices to be debugged, obtain at least one trusted master device and at least one trusted device to be debugged, and call the connection establishment module to establish a connection relationship between the trusted master device and the trusted device to be debugged;

[0007] Based on the connection relationship, when a debugging requirement set by a user is received, generate at least one debugging command to debug at least one of the trusted devices to be debugged.

[0008] In one embodiment, the step of based on a preset list of trusted devices, at least one of the master devices, and at least one of the devices to be debugged, obtain at least one trusted master device and at least one trusted device to be debugged, and call the connection establishment module to establish a connection relationship between the trusted master device and the trusted device to be debugged includes:

[0009] Compare the master device and the device to be debugged with the devices in the preset trusted device list;

[0010] If the master device and the device to be debugged exist in the preset trusted device list, use the master device and the device to be debugged as the trusted master device and the trusted device to be debugged;

[0011] Call the connection establishment module to establish the connection relationship for at least one of the trusted master devices and at least one of the trusted devices to be debugged.

[0012] In one embodiment, after comparing the master device and the device to be debugged with the devices in the preset trusted device list, it further includes:

[0013] If the master device and / or the device to be debugged do not exist in the preset trusted device list, obtain the device to be authenticated, and call the device authentication module to send authentication information to the device to be authenticated;

[0014] Receive the verification code sent by the device to be authenticated based on the authentication information, and verify the verification code to obtain a verification result;

[0015] When the verification code passes the verification, use the device to be authenticated as the trusted master device and / or the trusted device to be debugged, and store it in the trusted device list;

[0016] Call the connection establishment module to establish the connection relationship for the trusted master device and / or the trusted device to be debugged.

[0017] In one embodiment, the receiving the verification code sent by the device to be authenticated based on the authentication information, and verifying the verification code to obtain a verification result, further includes:

[0018] When the verification code fails the verification, generate an authentication failure prompt for the user to adjust.

[0019] In one embodiment, based on the connection relationship, when receiving the debugging requirements set by the user, generate at least one debugging command to debug at least one of the trusted devices to be debugged, including:

[0020] When receiving the debugging requirements, generate at least one of the debugging commands, call the command sending module of the master device, and send the debugging commands to at least one of the devices to be debugged;

[0021] Call the command receiving module of the device to be debugged to receive and store at least one of the debugging commands sent by at least one of the master devices;

[0022] Call the command execution module to parse the debugging command and debug at least one of the devices to be debugged based on the reception order of the debugging commands.

[0023] In one embodiment, after obtaining at least one trusted master device and at least one trusted device to be debugged based on a preset trusted device list, at least one of the master devices, and at least one of the devices to be debugged, and calling the connection establishment module to establish a connection relationship between the trusted master device and the trusted device to be debugged, the method further includes:

[0024] Obtain the log information of the trusted device to be debugged and store the log information in the log information database;

[0025] Call the log sending module to send the log information to the trusted master device and determine whether the debugging information of the current debugging already exists in the log information;

[0026] When the debugging information does not exist in the log information, maintain the connection relationship;

[0027] When the debugging information exists in the log information, call the connection disconnection module to disconnect the connection relationship.

[0028] In one embodiment, after generating at least one debugging command based on the connection relationship to debug at least one of the trusted devices to be debugged when a debugging requirement set by a user is received, the method further includes:

[0029] Update the log information based on the debugging information of the device to be debugged, send the updated log information to the trusted master device, and display it to the user for the user to obtain the debugging result.

[0030] In a second aspect, the present application further provides a device wireless debugging device, where the device includes:

[0031] A device discovery module, configured to call the device discovery module to obtain at least one master device and at least one device to be debugged when a device debugging request is received;

[0032] A connection establishment module, configured to obtain at least one trusted master device and at least one trusted device to be debugged based on a preset trusted device list, at least one of the master devices, and at least one of the devices to be debugged, and call the connection establishment module to establish a connection relationship between the trusted master device and the trusted device to be debugged;

[0033] The device debugging module is used to generate at least one debugging command based on the connection relationship when a debugging requirement set by the user is received, so as to debug at least one of the trusted devices to be debugged.

[0034] In a third aspect, the present application further provides a computer device, which includes a memory and a processor; the memory is used to store a computer program; the processor is used to execute the computer program and implement the device wireless debugging method as described above when executing the computer program.

[0035] In a fourth aspect, the present application further provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the processor is enabled to implement the device wireless debugging method as described above.

[0036] The present application discloses a device wireless debugging method, device, computer device and storage medium. When a device debugging request is received, the device discovery module is called to obtain at least one master device and at least one device to be debugged; based on a preset trusted device list, at least one of the master devices and at least one of the devices to be debugged, at least one trusted master device and at least one trusted device to be debugged are obtained, and the connection establishment module is called to establish a connection relationship between the trusted master device and the trusted device to be debugged; based on the connection relationship, when a debugging requirement set by the user is received, at least one debugging command is generated to debug at least one of the trusted devices to be debugged. This method realizes the debugging of the device to be debugged by connecting the master device and the device to be debugged. One master device can debug at least one device to be debugged, and the device to be debugged can also receive at least one debugging command sent by multiple master devices, thereby improving the efficiency of device debugging. Description of the Drawings

[0037] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0038] Figure 1 It is a schematic flowchart in the first embodiment of a device wireless debugging method provided by an embodiment of the present application;

[0039] Figure 2 It is a schematic flowchart in the second embodiment of a device wireless debugging method provided by an embodiment of the present application;

[0040] Figure 3It is a schematic flowchart in the third embodiment of a device wireless debugging method provided by an embodiment of the present application;

[0041] Figure 4 It is a schematic flowchart in the fourth embodiment of a device wireless debugging method provided by an embodiment of the present application;

[0042] Figure 5 It is a flowchart of the multi-device debugging process of a device wireless debugging method provided by an embodiment of the present application;

[0043] Figure 6 It is a schematic block diagram of a device wireless debugging device provided by an embodiment of the present application;

[0044] Figure 7 It is a schematic block diagram of the structure of a computer device provided by an embodiment of the present application. Detailed implementation manners

[0045] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.

[0046] The flowchart shown in the accompanying drawings is only an example illustration, and does not necessarily include all the contents and operations / steps, nor does it necessarily need to be executed in the described order. For example, some operations / steps can also be decomposed, combined, or partially merged. Therefore, the actual execution order may be changed according to the actual situation.

[0047] It should be understood that the terms used in the specification of the present application are only for the purpose of describing specific embodiments and are not intended to limit the present application. As used in the specification of the present application and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an", and "the" are intended to include the plural forms.

[0048] It should also be understood that the term " / and" as used in the specification of the present application and the appended claims refers to any combination and all possible combinations of one or more of the related listed items, and includes these combinations.

[0049] The embodiments of the present application provide a device wireless debugging method, device, computer device, and storage medium. Among them, the device wireless debugging method can be applied to a server, and by implementing one-to-one debugging and many-to-many debugging between the master device and the device to be debugged, the efficiency of device debugging is improved. Among them, the server can be an independent server or a server cluster.

[0050] The following will describe in detail some embodiments of the present application with reference to the accompanying drawings. Without conflict, the following embodiments and the features in the embodiments may be combined with each other.

[0051] Please refer to Figure 1 , Figure 1 which is a schematic flowchart of a method for wireless debugging of a device provided by an embodiment of the present application. This method for wireless debugging of a device can be applied to a server and is used to enable a master device to debug at least one device to be debugged, and the device to be debugged can also receive at least one debugging command sent by multiple master devices, so as to improve the efficiency of device debugging.

[0052] As Figure 1 shown, this method for wireless debugging of a device specifically includes steps S101 to S103.

[0053] S101. When a device debugging request is received, call the device discovery module to obtain at least one master device and at least one device to be debugged.

[0054] In one embodiment, based on the communication ability of the distributed soft bus of KaihongOS, call the device discovery module to search for the master device and the device to be debugged. The master device can debug at least one device to be debugged; the device to be debugged, as the controlled device, can receive the debugging commands sent by at least one master device.

[0055] Specifically, KaihongOS can configure a startup debugging process during the startup process, and the debugging process will call the device discovery module to discover the master device or the device to be debugged that can publish debugging commands or receive logs.

[0056] S102. Based on a preset trusted device list, at least one of the master devices, and at least one of the devices to be debugged, obtain at least one trusted master device and at least one trusted device to be debugged, and call the connection establishment module to establish a connection relationship between the trusted master device and the trusted device to be debugged.

[0057] Based on a preset list of trusted devices, at least one of the master devices, and at least one of the devices to be debugged, obtain at least one trusted master device and at least one trusted device to be debugged, and call the connection establishment module. After establishing a connection relationship between the trusted master device and the trusted device to be debugged, it further includes: obtaining the log information of the trusted device to be debugged, storing the log information in a log information database; calling the log sending module to send the log information to the trusted master device, and determining whether the debug information of the current debugging already exists in the log information; when the debug information does not exist in the log information, maintain the connection relationship; when the debug information exists in the log information, call the connection disconnection module to disconnect the connection relationship.

[0058] In one embodiment, the preset list of trusted devices may include identifiers such as device names and device numbers that can uniquely identify a device. Extract the relevant device identification information of the devices discovered by the device discovery module, and compare it with the identifiers in the preset list of trusted device information. After successful comparison, the currently discovered master device and the device to be debugged are regarded as trusted devices.

[0059] Specifically, after confirming the trusted devices, the connection establishment module can be called to establish a connection relationship between the trusted master device and the trusted device to be debugged. One trusted master device can be connected to at least one trusted device to be debugged. At the same time, one trusted device to be debugged can also be connected to at least one trusted master device.

[0060] In one embodiment, after the connection establishment is completed, obtain the log information of the device to be debugged. If the debug information of the current debugging already exists in the log information, it means that the device to be debugged has been debugged, and then disconnect its connection with the master device; if the debug information of the current debugging does not exist in the log information, it means that the device has not been debugged, and then maintain the connection and wait for debugging.

[0061] Specifically, the log information of the device to be debugged will be stored in the log information database, and the log sending module is called to send the log to the master device.

[0062] S103. Based on the connection relationship, when receiving the debugging requirements set by the user, generate at least one debugging command to debug at least one of the trusted devices to be debugged.

[0063] After generating at least one debugging command to debug at least one of the trusted devices to be debugged based on the connection relationship when receiving the debugging requirements set by the user, it further includes:

[0064] Update the log information based on the debugging information of the device to be debugged, send the updated log information to the trusted master device, and display it to the user for the user to obtain the debugging result.

[0065] In one embodiment, a debugging command is generated according to the user's debugging requirements. Each trusted master device generates different debugging commands according to different debugging requirements. It can be sent to a certain trusted device to be debugged by one trusted master device, or sent to a certain trusted device to be debugged by multiple trusted master devices, or sent to multiple trusted devices to be debugged.

[0066] Specifically, at least one master device discovered by the device discovery module can be used as a master device group, and at least one device to be debugged can be used as a device to be debugged group. The devices in the master device group and the devices in the controlled device group establish a connection after being authenticated by the device authentication module, and then debugging can be carried out. For the master device, it can debug the controlled device group or select a single device for debugging; for the controlled device, when receiving a debugging command from a single master device or multiple debugging commands sent by the master device group, all commands will be stored in the debugging command database and executed one by one in the order of arrival.

[0067] In one embodiment, after debugging is completed, the debugging log information will be stored in the log information of the device to be debugged, and the updated log information will be sent to the device to be debugged and displayed to the user. The user can judge whether the current device to be debugged has been successfully debugged based on the log information.

[0068] The device wireless debugging method, device, computer device and storage medium provided in the above embodiment, when receiving a device debugging request, call the device discovery module to obtain at least one master device and at least one device to be debugged; based on a preset trusted device list, at least one of the master devices and at least one of the devices to be debugged, obtain at least one trusted master device and at least one trusted device to be debugged, and call the connection establishment module to establish a connection relationship between the trusted master device and the trusted device to be debugged; based on the connection relationship, when receiving the debugging requirements set by the user, generate at least one debugging command to debug at least one of the trusted devices to be debugged. This method realizes the debugging of the device to be debugged through the connection between the master device and the device to be debugged. One master device can debug at least one device to be debugged, and the device to be debugged can also receive at least one debugging command sent by multiple master devices, thereby improving the efficiency of device debugging.

[0069] Please refer to Figure 2 , Figure 2It is a schematic flowchart of a device wireless debugging method provided by an embodiment of the present application. This device wireless debugging method can be applied to a server and is used to enable a master device to debug at least one device to be debugged, and the device to be debugged can also receive at least one debugging command sent by multiple master devices, so as to improve the device debugging efficiency.

[0070] As Figure 2 shown, step S102 of this device wireless debugging method specifically includes step S201 to step S203.

[0071] S201. Compare the master device and the device to be debugged with the devices in the preset trusted device list.

[0072] In one embodiment, compare the device identifiers of the master device and the device to be debugged with the device identifiers of each device in the preset trusted device list.

[0073] S202. If the master device and the device to be debugged exist in the preset trusted device list, use the master device and the device to be debugged as the trusted master device and the trusted device to be debugged.

[0074] In one embodiment, if the device identifier in the trusted device list is the same as the device identifier of the currently discovered master device or the device to be debugged, it means that the currently discovered device exists in the trusted device list, and it is used as the trusted master device or the trusted device to be debugged.

[0075] S203. Call the connection establishment module to establish the connection relationship for at least one trusted master device and at least one trusted device to be debugged.

[0076] In one embodiment, regardless of whether it is the discovery of the master device or the discovery of the controlled device, on the premise that the device is a trusted device, both types of devices can initiate a connection actively. After the connection is established, log sending and receiving and debugging command sending and receiving can be carried out.

[0077] The device wireless debugging method, device, computer device, and storage medium provided by the above embodiments compare the master device and the device to be debugged with the devices in the preset trusted device list; if the master device and the device to be debugged exist in the preset trusted device list, the master device and the device to be debugged are used as the trusted master device and the trusted device to be debugged; the connection establishment module is called to establish the connection relationship for at least one trusted master device and at least one trusted device to be debugged. By comparing the master device and the device to be debugged with the preset trusted device list, this method ensures the security of device debugging. A master device can be connected to at least one device to be debugged, and the device to be debugged can also be connected to multiple master devices, thereby improving the efficiency of device debugging.

[0078] Please refer to Figure 3 , Figure 3 which is a schematic flowchart of a device wireless debugging method provided by an embodiment of the present application. This device wireless debugging method can be applied to a server and is used to enable a master device to debug at least one device to be debugged, and the device to be debugged can also receive at least one debugging command sent by multiple master devices to improve the efficiency of device debugging.

[0079] As Figure 3 shown, after step S201 of this device wireless debugging method, it specifically includes steps S301 to S304.

[0080] S301. If the master device and / or the device to be debugged do not exist in the preset trusted device list, obtain the device to be authenticated, and call the device authentication module to send authentication information to the device to be authenticated.

[0081] In one embodiment, if the currently discovered master device or the device to be debugged does not exist in the preset trusted device list, it is used as the device to be authenticated, and the device authentication module is used to send authentication information to the device to be authenticated. The authentication information includes a PIN (Personal Identification Number) code.

[0082] S302. Receive the verification code sent by the device to be authenticated based on the authentication information, and verify the verification code to obtain a verification result.

[0083] After receiving the verification code sent by the device to be authenticated based on the authentication information and verifying the verification code to obtain a verification result, it further includes: when the verification of the verification code fails, generating an authentication failure prompt for the user to adjust.

[0084] In one embodiment, after receiving the verification code, it is checked whether it conforms to the authentication information. If it conforms, the verification passes and waits for the next step; if it does not conform, the verification fails and a verification failure prompt message is initiated, and the user can make adjustments according to the prompt message.

[0085] S303. When the verification code passes the verification, regard the device to be authenticated as the trusted master device and / or the trusted device to be debugged, and store it in the trusted device list.

[0086] In one embodiment, in a device wireless debugging solution based on a distributed soft bus, a device only needs to be authenticated once, and then it can automatically form a network during subsequent debugging processes and can be connected and debugged by multiple devices at the same time.

[0087] Specifically, after the device passes the verification, store the device in the trusted device list, and this device is a trusted device during subsequent use and does not need to be authenticated again.

[0088] S304. Invoke the connection establishment module to establish the connection relationship for the trusted master device and / or the trusted device to be debugged.

[0089] In one embodiment, a trusted device after successful authentication can, through the connection establishment module, establish a connection relationship between the trusted master device and the trusted device to be debugged.

[0090] For the device wireless debugging method, device, computer device, and storage medium provided in the above embodiments, if the master device and / or the device to be debugged do not exist in the preset trusted device list, obtain the device to be authenticated, and invoke the device authentication module to send authentication information to the device to be authenticated; receive the verification code sent by the device to be authenticated based on the authentication information, and check the verification code to obtain a verification result; when the verification code passes the verification, regard the device to be authenticated as the trusted master device and / or the trusted device to be debugged, and store it in the trusted device list; invoke the connection establishment module to establish the connection relationship for the trusted master device and / or the trusted device to be debugged. This method stores the authenticated device in the preset trusted device list after authentication, and does not need to authenticate the device during the next debugging, thereby improving the efficiency of device debugging.

[0091] Please refer to Figure 4 , Figure 4 is a schematic flowchart of a device wireless debugging method provided by an embodiment of the present application. This device wireless debugging method can be applied to a server and is used to enable a master device to debug at least one device to be debugged, and the device to be debugged can also receive at least one debugging command sent by multiple master devices, so as to improve the device debugging efficiency.

[0092] As shown in Figure 4 Step S103 of the wireless debugging method of the device specifically includes steps S401 to S403.

[0093] S401. When the debugging requirement is received, generate at least one of the debugging commands, call the command sending module of the master device, and send the debugging command to at least one of the devices to be debugged.

[0094] In one embodiment, as shown in Figure 5 According to the user's debugging requirements, each master device can generate a debugging command, and the command sending module can send the debugging command to the device to be debugged. The debugging command can be sent from one master device to one device to be debugged, or from multiple master devices to one device to be debugged, or from multiple master devices to multiple devices to be debugged and from one master device to multiple devices to be debugged.

[0095] S402. Call the command receiving module of the device to be debugged to receive and store at least one of the debugging commands sent by at least one of the master devices.

[0096] In one embodiment, the command receiving module receives at least one debugging command from the master device and stores all at least one debugging command in the debugging command database for waiting to be executed.

[0097] S403. Call the command execution module to parse the debugging command and debug at least one of the devices to be debugged based on the receiving order of the debugging command.

[0098] In one embodiment, the command receiving module receives at least one debugging command from the master device, all commands are stored in the debugging command database, and the command execution module executes them one by one in the order of command reception to complete the debugging work of the device to be debugged.

[0099] For the wireless debugging method, device, computer device, and storage medium provided in the above embodiments, when the debugging requirement is received, at least one of the debugging commands is generated, the command sending module of the master device is called, and the debugging command is sent to at least one of the devices to be debugged; the command receiving module of the device to be debugged is called to receive and store at least one of the debugging commands sent by at least one of the master devices; the command execution module is called to parse the debugging command and debug at least one of the devices to be debugged based on the receiving order of the debugging command. This method enables one master device to debug at least one device to be debugged, and the device to be debugged can also receive at least one debugging command sent by multiple master devices, thereby improving the efficiency of device debugging.

[0100] Please refer toFigure 6 , Figure 6 FIG. Figure 6 is a schematic block diagram of a device wireless debugging apparatus provided by an embodiment of the present application. The device wireless debugging apparatus is used to execute the foregoing device wireless debugging method. Among them, the device wireless debugging apparatus may be configured in a server.

[0101] As Figure 6 shown, the device wireless debugging apparatus 500 includes:

[0102] A device discovery module 501, configured to, when receiving a device debugging request, call the device discovery module to obtain at least one master device and at least one device to be debugged;

[0103] A connection establishment module 502, configured to obtain at least one trusted master device and at least one trusted device to be debugged based on a preset trusted device list, at least one of the master devices, and at least one of the devices to be debugged, and call the connection establishment module to establish a connection relationship between the trusted master device and the trusted device to be debugged;

[0104] A device debugging module 503, configured to generate at least one debugging command based on the connection relationship to debug at least one of the trusted devices to be debugged when receiving debugging requirements set by a user.

[0105] In one embodiment, the connection establishment module 502 includes:

[0106] A comparison result obtaining unit, configured to compare the master device and the device to be debugged with the devices in the preset trusted device list;

[0107] A trusted device obtaining unit, configured to, if the master device and the device to be debugged exist in the preset trusted device list, use the master device and the device to be debugged as the trusted master device and the trusted device to be debugged;

[0108] A connection establishment unit, configured to call the connection establishment module to establish the connection relationship for at least one trusted master device and at least one trusted device to be debugged.

[0109] In one embodiment, the connection establishment module 502 further includes:

[0110] An authentication information sending unit, configured to, if the master device and / or the device to be debugged do not exist in the preset trusted device list, obtain a device to be authenticated, and call a device authentication module to send authentication information to the device to be authenticated;

[0111] The verification code verification unit is configured to receive the verification code sent by the device to be authenticated based on the authentication information, and verify the verification code to obtain a verification result;

[0112] The trusted device acquisition unit is configured to, when the verification code passes the verification, regard the device to be authenticated as the trusted master device and / or the trusted device to be debugged, and store it in the trusted device list;

[0113] The connection establishment unit is configured to call the connection establishment module to establish the connection relationship for the trusted master device and / or the trusted device to be debugged.

[0114] In one embodiment, the comparison result acquisition unit further includes:

[0115] The authentication failure prompt subunit is configured to generate an authentication failure prompt for the user to adjust when the verification code fails the verification.

[0116] In one embodiment, the device debugging module 503 includes:

[0117] The debugging command sending unit is configured to generate at least one debugging command when receiving the debugging requirement, call the command sending module of the master device, and send the debugging command to at least one device to be debugged;

[0118] The debugging command receiving unit is configured to call the command receiving module of the device to be debugged, receive and store at least one debugging command sent by at least one master device;

[0119] The debugging command execution unit is configured to call the command execution module to parse the debugging command, and debug at least one device to be debugged based on the receiving order of the debugging command.

[0120] In one embodiment, the device wireless debugging device 500 further includes a log information storage module, and the log information storage module includes:

[0121] The log information acquisition unit is configured to acquire the log information of the trusted device to be debugged, and store the log information in the log information database;

[0122] The log information sending unit is configured to call the log sending module to send the log information to the trusted master device, and determine whether the debugging information of the current debugging already exists in the log information;

[0123] The connection maintenance unit is configured to maintain the connection relationship when the debugging information does not exist in the log information;

[0124] A connection disconnection unit, configured to call a connection disconnection module to disconnect the connection relationship when the debug information exists in the log information.

[0125] In one embodiment, the device wireless debugging apparatus 500 further includes a log information update module, and the log information update module includes:

[0126] A log information update unit, configured to update the log information based on the debug information of the device to be debugged, send the updated log information to the trusted master device, and display it to the user for the user to obtain the debug result.

[0127] It should be noted that those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working processes of the above-described apparatus and each module can refer to the corresponding processes in the foregoing method embodiments, and will not be described herein again.

[0128] The above apparatus can be implemented in the form of a computer program, and the computer program can run on a computer device as shown in Figure 7 shown.

[0129] Please refer to Figure 7 , Figure 7 which is a schematic block diagram of the structure of a computer device provided by an embodiment of the present application. The computer device can be a server.

[0130] Referring to Figure 7 , the computer device includes a processor, a memory, and a network interface connected through a system bus. Among them, the memory can include a non-volatile storage medium and an internal memory.

[0131] The non-volatile storage medium can store an operating system and a computer program. The computer program includes program instructions, and when the program instructions are executed, the processor can execute any device wireless debugging method.

[0132] The processor is used to provide computing and control capabilities to support the operation of the entire computer device.

[0133] The internal memory provides an environment for the operation of the computer program in the non-volatile storage medium. When the computer program is executed by the processor, the processor can execute any device wireless debugging method.

[0134] The network interface is used for network communication, such as sending assigned tasks, etc. Those skilled in the art can understand that Figure 7The structure shown is only a block diagram of some of the structures related to the solution of this application, and does not constitute a limitation on the computer device to which the solution of this application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine some components, or have a different component layout.

[0135] It should be understood that the processor may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0136] In one embodiment, the processor is used to run a computer program stored in the memory to implement the following steps:

[0137] When a device debugging request is received, call the device discovery module to obtain at least one master device and at least one device to be debugged;

[0138] Based on a preset trusted device list, at least one of the master devices, and at least one of the devices to be debugged, obtain at least one trusted master device and at least one trusted device to be debugged, and call the connection establishment module to establish a connection relationship between the trusted master device and the trusted device to be debugged;

[0139] Based on the connection relationship, when a debugging requirement set by the user is received, generate at least one debugging command to debug at least one of the trusted devices to be debugged.

[0140] In one embodiment, when the processor implements obtaining at least one trusted master device and at least one trusted device to be debugged based on a preset trusted device list, at least one of the master devices, and at least one of the devices to be debugged, and calling the connection establishment module to establish a connection relationship between the trusted master device and the trusted device to be debugged, it is used to implement:

[0141] Compare the master device and the device to be debugged with the devices in the preset trusted device list;

[0142] If the master device and the device to be debugged exist in the preset trusted device list, the master device and the device to be debugged are used as the trusted master device and the trusted device to be debugged;

[0143] Call the connection establishment module to establish the connection relationship for at least one of the trusted master devices and at least one of the trusted devices to be debugged.

[0144] In one embodiment, after the processor compares the master device and the device to be debugged with the devices in the preset trusted device list, it is further configured to:

[0145] If the master device and / or the device to be debugged do not exist in the preset trusted device list, obtain the device to be authenticated, and call the device authentication module to send authentication information to the device to be authenticated;

[0146] Receive the verification code sent by the device to be authenticated based on the authentication information, and verify the verification code to obtain a verification result;

[0147] When the verification code passes the verification, use the device to be authenticated as the trusted master device and / or the trusted device to be debugged, and store it in the trusted device list;

[0148] Call the connection establishment module to establish the connection relationship for the trusted master device and / or the trusted device to be debugged.

[0149] In one embodiment, after the processor receives the verification code sent by the device to be authenticated based on the authentication information, and verifies the verification code to obtain a verification result, it is further configured to:

[0150] When the verification code fails to pass the verification, generate an authentication failure prompt for the user to make adjustments.

[0151] In one embodiment, when the processor generates at least one debugging command based on the connection relationship to debug at least one of the trusted devices to be debugged when receiving the debugging requirements set by the user, it is configured to:

[0152] When receiving the debugging requirements, generate at least one of the debugging commands, call the command sending module of the master device, and send the debugging commands to at least one of the devices to be debugged;

[0153] Call the command receiving module of the device to be debugged to receive and store at least one of the debugging commands sent by at least one of the master devices;

[0154] Call the command execution module, parse the debug command, and debug at least one of the devices to be debugged based on the reception order of the debug command.

[0155] In one embodiment, after the processor obtains at least one trusted master device and at least one trusted device to be debugged based on a preset trusted device list, at least one of the master devices, and at least one of the devices to be debugged, and calls the connection establishment module to establish a connection relationship between the trusted master device and the trusted device to be debugged, the processor is further configured to:

[0156] Obtain the log information of the trusted device to be debugged, and store the log information in the log information database;

[0157] Call the log sending module to send the log information to the trusted master device, and determine whether the debug information of the current debug already exists in the log information;

[0158] When the debug information does not exist in the log information, maintain the connection relationship;

[0159] When the debug information exists in the log information, call the connection disconnection module to disconnect the connection relationship.

[0160] In one embodiment, after the processor generates at least one debug command based on the connection relationship to debug at least one of the trusted devices to be debugged when receiving a debug requirement set by a user, the processor is further configured to:

[0161] Update the log information based on the debug information of the device to be debugged, send the updated log information to the trusted master device, and display it to the user for the user to obtain the debug result.

[0162] An embodiment of the present application further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and the computer program includes program instructions. The processor executes the program instructions to implement any one of the device wireless debugging methods provided by the embodiments of the present application.

[0163] Wherein, the computer-readable storage medium may be an internal storage unit of the computer device described in the foregoing embodiment, such as the hard disk or memory of the computer device. The computer-readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk equipped on the computer device, a Smart Media Card (SMC), a Secure Digital (SD) card, a Flash Card, etc.

[0164] As described above, it is only the specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art within the technical scope disclosed by the present application can easily think of various equivalent modifications or substitutions, and these modifications or substitutions should be covered within the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims

1. A method for wireless debugging of a device, characterized in that, Including: When receiving a device debugging request, call the device discovery module to obtain at least one master device and at least one device to be debugged; Based on a preset trusted device list, at least one of the master devices and at least one of the devices to be debugged, obtain at least one trusted master device and at least one trusted device to be debugged, and call the connection establishment module to establish a connection relationship between the trusted master device and the trusted device to be debugged; Based on the connection relationship, when receiving the debugging requirements set by the user, generate at least one debugging command to debug at least one of the trusted devices to be debugged according to the order of the debugging commands; Among them, the step of obtaining at least one trusted master device and at least one trusted device to be debugged based on a preset trusted device list, at least one of the master devices and at least one of the devices to be debugged, and calling the connection establishment module to establish a connection relationship between the trusted master device and the trusted device to be debugged includes: Compare the master device and the device to be debugged with the devices in the preset trusted device list; If the master device and the device to be debugged exist in the preset trusted device list, use the master device and the device to be debugged as the trusted master device and the trusted device to be debugged; Call the connection establishment module to establish the connection relationship for at least one trusted master device and at least one trusted device to be debugged.

2. The method for wireless debugging of the device according to claim 1, characterized in that, After comparing the master device and the device to be debugged with the devices in the preset trusted device list, it further includes: If the master device and / or the device to be debugged do not exist in the preset trusted device list, obtain the device to be authenticated, and call the device authentication module to send authentication information to the device to be authenticated; Receive the verification code sent by the device to be authenticated based on the authentication information, and verify the verification code to obtain a verification result; When the verification code passes the verification, use the device to be authenticated as the trusted master device and / or the trusted device to be debugged, and store it in the trusted device list; Call the connection establishment module to establish the connection relationship for the trusted master device and / or the trusted device to be debugged.

3. The method for wireless debugging of the device according to claim 2, wherein The step of receiving the verification code sent by the device to be authenticated based on the authentication information, and verifying the verification code to obtain a verification result further includes: When the verification code fails to pass the verification, generate an authentication failure prompt for the user to make adjustments.

4. The method for wireless debugging of the device according to claim 1, wherein The step of generating at least one debugging command based on the connection relationship to debug at least one of the trusted devices to be debugged when receiving the debugging requirements set by the user includes: When receiving the debugging requirements, generate at least one of the debugging commands, call the command sending module of the master device, and send the debugging commands to at least one of the devices to be debugged; Call the command receiving module of the device to be debugged to receive and store at least one of the debugging commands sent by at least one of the master devices. Call the command execution module to parse the debugging command and debug at least one of the devices to be debugged based on the reception order of the debugging command.

5. The method for wireless debugging of the device according to claim 1, characterized in that After obtaining at least one trusted master device and at least one trusted device to be debugged based on the preset trusted device list, at least one of the master devices, and at least one of the devices to be debugged, and calling the connection establishment module to establish a connection relationship between the trusted master device and the trusted device to be debugged, it further includes: Obtain the log information of the trusted device to be debugged and store the log information in the log information database; Call the log sending module to send the log information to the trusted master device and determine whether the debugging information of the current debugging already exists in the log information; When the debugging information does not exist in the log information, maintain the connection relationship; When the debugging information exists in the log information, call the connection disconnection module to disconnect the connection relationship.

6. The method for wireless debugging of the device according to any one of claims 1 to 5, characterized in that, After generating at least one debugging command based on the connection relationship to debug at least one of the trusted devices to be debugged when a debugging requirement set by the user is received, it further includes: Update the log information based on the debugging information of the device to be debugged, send the updated log information to the trusted master device, and display it to the user for the user to obtain the debugging result.

7. A wireless debugging device for a device, characterized in that, It includes: The device discovery module is used to call the device discovery module to obtain at least one master device and at least one device to be debugged when a device debugging request is received; The connection establishment module is used to obtain at least one trusted master device and at least one trusted device to be debugged based on the preset trusted device list, at least one of the master devices, and at least one of the devices to be debugged, and call the connection establishment module to establish a connection relationship between the trusted master device and the trusted device to be debugged; The device debugging module is used to generate at least one debugging command based on the connection relationship to debug at least one of the trusted devices to be debugged when a debugging requirement set by the user is received; Among them, the connection establishment module includes: The comparison result obtaining unit is used to compare the master device and the device to be debugged with the devices in the preset trusted device list; The trusted device obtaining unit is used to use the master device and the device to be debugged as the trusted master device and the trusted device to be debugged if the master device and the device to be debugged exist in the preset trusted device list; The connection establishment unit is used to call the connection establishment module to establish the connection relationship for at least one trusted master device and at least one trusted device to be debugged.

8. A computer device, characterized in that, The computer device includes a memory and a processor; The memory is used to store a computer program; The processor is used to execute the computer program and implement the device wireless debugging method according to any one of claims 1 to 6 when executing the computer program.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor is caused to implement the device wireless debugging method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Debugging control method, main control equipment, debugging server, controlled equipment and system

    CN110879676A