Method and device for enabling debugging mode of equipment

A debugging mode and device technology, applied in the field of communication, can solve the problem of complex operation process of opening the device debugging mode

Active Publication Date: 2022-01-04
TENCENT TECH (SHENZHEN) CO LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0019] Embodiments of the present invention provide a method and device for enabling the debugging mode of a device, so as to at least solve the technical problem in the related art that the operation process of enabling the debugging mode of the device is complicated

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for enabling debugging mode of equipment
  • Method and device for enabling debugging mode of equipment
  • Method and device for enabling debugging mode of equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0041] According to an embodiment of the present invention, an embodiment of a method for enabling a debugging mode of a device is provided.

[0042] Optionally, in this embodiment, the method for enabling the debugging mode of the above-mentioned device can be applied to such as figure 2 In the hardware environment constituted by the server 202 and the terminal 204 as shown. figure 2 It is a schematic diagram of a hardware environment of a method for enabling a debug mode of a device according to an embodiment of the present invention. Such as figure 1 As shown, the server 202 is connected to the terminal 204 through a network. The above-mentioned network includes but not limited to: a wide area network, a metropolitan area network or a local area network. The terminal 204 is not limited to a PC, a mobile phone, a tablet computer, and the like. The method for enabling the debugging mode of the device in the embodiment of the present invention may be executed by the server...

Embodiment 2

[0107] The technical solutions of the present invention will be described below in conjunction with preferred embodiments. Specifically, the first terminal is a computer device, the second terminal is an Android device, the first target port is an ADB port, and the second target port is a USB port.

[0108] This embodiment searches for the USB port of the Android device, and sends an opening instruction for opening the USB debugging mode of the Android device to the Android device through the USB port, so as to directly open the USB debugging mode of the Android device, and then automatically open the USB of the Android device. Debug mode without the purpose of user action.

[0109] The method for enabling the debug mode of the device in this embodiment can be executed by an ADB command module, a device driver module, a USB port communication module, and a client module.

[0110] The ADB command module mainly communicates with the Android device by calling the ADB tool, and t...

Embodiment 3

[0133] According to an embodiment of the present invention, there is also provided a device for enabling a debug mode of a device for implementing the above method for enabling a debug mode of a device. Figure 8 It is a schematic diagram of an opening device of a debugging mode of a device according to an embodiment of the present invention. Such as Figure 8 As shown, the device for enabling the debugging mode of the device may include: a first enumeration unit 10 , a second enumeration unit 20 , a first establishment unit 30 and a sending unit 40 .

[0134] The first enumeration unit 10 is configured to enumerate the first target port of the second terminal when the first terminal receives a connection instruction indicating to connect the second terminal, wherein the first target port is used to communicate with the second terminal Establish a communication connection.

[0135] The first enumeration unit 10 is used to enumerate the first target ports of the second termin...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a method and a device for starting a debugging mode of equipment. Wherein, the method includes: enumerating the first target port of the second terminal when the first terminal receives a connection instruction indicating to connect to the second terminal, wherein the first target port is used to establish a communication connection with the second terminal ; In the case of failure to enumerate the first target port, enumerate the path information of the second target port of the second terminal, so as to send to the second terminal through the second target port the information for opening the preset debugging mode of the second terminal Opening an instruction; in the case of enumerating the path information of the second target port successfully, establishing a communication connection with the second terminal through the path information; sending an opening instruction to the second terminal through the communication connection, so that the second terminal opens the preset according to the opening instruction Set debug mode. The invention solves the technical problem in the related art that the operation process of starting the equipment debugging mode is complicated.

Description

technical field [0001] The present invention relates to the communication field, in particular, to a method and device for enabling a debugging mode of a device. Background technique [0002] At present, when computer (PC) assistant software connects and manages a terminal device, the user needs to manually enable the debugging mode on the terminal device. Serial bus (Universal Serial BUS, referred to as USB) debugging mode, which requires the software to display different interactions and prompts according to the model, and the user needs to complete the operation of opening the USB debugging mode step by step according to the displayed content, so as to provide and inconvenience to users. [0003] figure 1 It is a flow chart of a development method of a debugging mode of a device according to the related art. Such as figure 1 As shown, the method includes the following steps: [0004] Step S101, the PC assistant starts to connect to the Android (Android) mobile phone....

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Patents(China)
IPC IPC(8): G06F13/10
CPCG06F13/102
Inventor 颜泰国
Owner TENCENT TECH (SHENZHEN) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products