CN110086889B - Terminal device debugging method and device - Google Patents
Terminal device debugging method and device Download PDFInfo
- Publication number
- CN110086889B CN110086889B CN201910407643.0A CN201910407643A CN110086889B CN 110086889 B CN110086889 B CN 110086889B CN 201910407643 A CN201910407643 A CN 201910407643A CN 110086889 B CN110086889 B CN 110086889B
- Authority
- CN
- China
- Prior art keywords
- cloud server
- target cloud
- set port
- debugging
- terminal equipment
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
- H04L67/025—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/08—Protocols specially adapted for terminal emulation, e.g. Telnet
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/141—Setup of application sessions
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Debugging And Monitoring (AREA)
Abstract
The embodiment of the disclosure provides a terminal device debugging method and device, wherein the method comprises the following steps: starting a debugging bridge program according to the acquired configuration instruction, and monitoring a set port; starting a Universal Serial Bus (USB) debugging mode and a click simulation function; sending the network address and the set port of the terminal equipment to a target cloud server so that the target cloud server sends a connection request to the terminal equipment according to the network address and the set port; when a connection request sent by a target cloud server is monitored at a set port, connection with the target cloud server is established, so that a tester can remotely debug the terminal equipment through a test client connected with the target cloud server, the terminal equipment and the target cloud server can be connected without deploying a complex service program on a personal computer by the user, the operation is simple and convenient, and the access willingness of the user is high.
Description
Technical Field
The embodiment of the disclosure relates to the technical field of computer and network communication, in particular to a terminal device debugging method and device.
Background
With the improvement of the hardware performance of terminal devices such as mobile phones and tablet computers and the continuous progress of artificial intelligence technology, more and more Applications (APPs) are running on the terminal devices. Sometimes, a user can find a leak in the APP in the process of using the APP, the leak can be fed back to a tester, the terminal device of the user needs to be debugged to the cloud server at this time, and a program of a remote real machine runs on the cloud server so as to facilitate the tester to remotely control the mobile phone device and repair the leak, wherein the remote real machine is a technology capable of remotely controlling the mobile phone device on a webpage.
At present, the conventional terminal device debugging method is to connect the terminal device to the personal computer through a Universal Serial Bus (USB); then deploying a service program corresponding to the remote real-machine server on the personal computer, wherein the common method is that the service program is programmed into a desktop client by using windows32/MFC on the personal computer, or the service program is packaged into a so executable file by using go language and is started by a script; and finally, connecting the terminal equipment with the cloud server through a service program of the personal computer so that a tester can debug the terminal equipment through the cloud server and repair the loopholes.
However, the inventor finds that the conventional terminal device debugging method has at least the following technical problems: the user is required to deploy a complex service program on the personal computer, so that the connection process is complicated, and the access willingness of the user is reduced.
Disclosure of Invention
The embodiment of the disclosure provides a terminal device debugging method and device, so as to solve the problems that in the prior art, a user needs to deploy a complex service program on a personal computer, so that the connection process is complicated, and the user access will be reduced.
In a first aspect, an embodiment of the present disclosure provides a terminal device debugging method, including:
starting a debugging bridge program according to the acquired configuration instruction, and monitoring a set port;
starting a Universal Serial Bus (USB) debugging mode and a click simulation function;
sending the network address of the terminal equipment and the set port to a target cloud server so that the target cloud server sends a connection request to the terminal equipment according to the network address and the set port;
when a connection request sent by the target cloud server is monitored at the set port, connection with the target cloud server is established, so that a tester can remotely debug the terminal equipment through a test client connected with the target cloud server.
In one possible design, the enabling the USB debug mode and the simulated click function include:
and entering a developer mode, and starting a USB debugging mode and a click simulation function.
In one possible design, the sending the network address and the set port of the terminal device to the target cloud server, so that the target cloud server sends the connection request to the terminal device according to the network address and the set port, includes:
sending the network address and the set port to a public network server so that the public network server sends the network address and the set port to a plurality of cloud servers of an intranet server cluster;
receiving communication messages sent by the plurality of cloud servers;
and sending response messages to the plurality of cloud servers according to the communication messages, so that a target cloud server which receives the response messages in the plurality of servers at the fastest speed sends a connection request to the terminal equipment according to the network address and the set port.
In one possible design, the connection established between the terminal device and the target cloud server includes: the terminal device is connected with the target cloud server, or the terminal device is connected with the target cloud server through the public network server.
In a possible design, the starting a debug bridge program according to the obtained configuration instruction and monitoring a set port includes:
starting a debugging bridge program of the terminal according to the acquired configuration instruction so that the debugging bridge program selects a local initialization mode;
and starting a wireless connection mode according to the local initialization mode, and monitoring the set port in the wireless connection mode.
In a possible design, before starting the debug bridge program according to the obtained configuration instruction and monitoring the set port, the method further includes:
receiving a configuration instruction sent by a Personal Computer (PC), wherein the configuration instruction comprises an instruction for opening a debugging bridge program and the setting port, and the configuration instruction is input on the PC by a user.
In one possible embodiment, the terminal device is connected to the PC via a universal serial bus USB.
In one possible design, the configuration instruction is input by a user on the terminal device.
In one possible design, the debug bridge program is an android debug bridge program or an IOS debug bridge program.
In a second aspect, an embodiment of the present disclosure provides a terminal device debugging device, including:
the configuration module is used for starting a debugging bridge program according to the acquired configuration instruction and monitoring a set port;
the debugging starting module is used for starting a Universal Serial Bus (USB) debugging mode and a simulated click function;
the sending module is used for sending the network address and the set port of the terminal equipment to a target cloud server so that the target cloud server sends a connection request to the terminal equipment according to the network address and the set port;
and the connection module is used for establishing connection with the target cloud server when monitoring a connection request sent by the target cloud server at the set port so as to enable a tester to carry out remote debugging on the terminal equipment through a test client connected with the target cloud server.
In one possible design, the debug initiation module is specifically configured to enter a developer mode, turn on a USB debug mode, and simulate a click function.
In a possible design, the sending module is specifically configured to send the network address and the set port to a public network server, so that the public network server sends the network address and the set port to a plurality of cloud servers of an intranet server cluster; receiving communication messages sent by the plurality of cloud servers; and sending response messages to the plurality of cloud servers according to the communication messages, so that a target cloud server which receives the response messages in the plurality of servers at the fastest speed sends a connection request to the terminal equipment according to the network address and the set port.
In one possible design, the connection established between the terminal device and the target cloud server includes: the terminal device is connected with the target cloud server, or the terminal device is connected with the target cloud server through the public network server.
In a possible design, the configuration module is specifically configured to open a debug bridge program of the terminal according to the acquired configuration instruction, so that the debug bridge program selects a local initialization mode; and starting a wireless connection mode according to the local initialization mode, and monitoring the set port in the wireless connection mode.
In one possible design, the apparatus further includes: the receiving module is used for receiving a configuration instruction sent by a Personal Computer (PC), wherein the configuration instruction comprises an instruction for starting a debugging bridge program and the setting port, and the configuration instruction is input on the PC by a user.
In one possible embodiment, the terminal device is connected to the PC via a universal serial bus USB.
In one possible design, the configuration instruction is input by a user on the terminal device.
In one possible design, the debug bridge program is an android debug bridge program or an IOS debug bridge program.
In a third aspect, an embodiment of the present disclosure provides an electronic device, including: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executes computer-executable instructions stored by the memory to cause the at least one processor to perform the terminal device commissioning method as described above in the first aspect and in various possible designs of the first aspect.
In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, where a computer-executable instruction is stored in the computer-readable storage medium, and when a processor executes the computer-executable instruction, the terminal device debugging method according to the first aspect and various possible designs of the first aspect is implemented.
According to the terminal device debugging method and device provided by the embodiment of the disclosure, the debugging bridge program is started according to the acquired configuration instruction, the set port is monitored, the USB debugging mode and the simulated click function are started, the network address of the terminal device and the set port are sent to the target cloud server, the terminal device can be connected with the target cloud server, the terminal device and the target cloud server can be connected without the user deploying a complex service program on a personal computer, the operation is simple and convenient, and the user access intention is high.
Drawings
In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present disclosure, and for those skilled in the art, other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a schematic structural diagram of a system for debugging a terminal device according to an embodiment of the present disclosure;
fig. 2 is a first flowchart of a terminal device debugging method provided in the embodiment of the present disclosure;
fig. 3 is a schematic flowchart of a terminal device debugging method according to an embodiment of the present disclosure;
fig. 4 is a schematic flowchart of a terminal device debugging method according to an embodiment of the present disclosure;
fig. 5 is a block diagram of a terminal device debugging device provided in the embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present disclosure more clear, the technical solutions of the embodiments of the present disclosure will be described clearly and completely with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are some, but not all embodiments of the present disclosure. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present disclosure.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a system for debugging a terminal device according to an embodiment of the present disclosure. As shown in fig. 1, the present system includes a terminal device 101; the intranet server cluster 102 is composed of a plurality of cloud servers 1021, and the cloud servers 1021 are used for running a debugging program of a remote real machine; the test client 103 is used for a tester to remotely debug the terminal equipment through the test client; and the public network server 104 is used for communication among the terminal equipment 101, the intranet server cluster 102 and the test client 103. The terminal Device 101 may be a mobile terminal such as a mobile phone, a notebook computer, a Digital broadcast receiver, a Personal Digital Assistant (PDA), a tablet computer (PAD), a Portable Media Player (PMP), a car terminal (e.g., car navigation terminal), and the like, which a user needs to be debugged, and a fixed terminal such as a Digital TV, a desktop computer, and the like.
Referring to fig. 2, fig. 2 is a first flowchart of a terminal device debugging method provided in the embodiment of the present disclosure. The method of this embodiment may be applied to the terminal device shown in fig. 1, and the terminal device debugging method includes:
s201: and starting a debugging bridge program according to the acquired configuration instruction, and monitoring a set port.
In this embodiment, the terminal device may be connected to a PC, and a user inputs a configuration instruction on the PC and then receives the configuration instruction sent by the PC; or the user can directly input the configuration instruction on the terminal equipment. The configuration instruction input by the user comprises an instruction for opening the debugging bridge program and a setting port.
The debugging bridge program can be classified into an Android debugging bridge program (ADBD for short) or an IOS debugging bridge program according to the type of the terminal device. The ADBD is used for terminal equipment of the android system, and the IOS debugging bridge program is used for terminal equipment of the IOS system.
The set port may be a default port 8888, or other ports may be selected as needed.
S202: starting a USB debugging mode and simulating a click function.
In this embodiment, a developer mode can be entered on the terminal device, and the USB debug mode and the simulated click function are turned on. For example, the terminal may be clicked to "set up the option", the developer mode is turned on, and then the USB debug mode and the simulated click function are turned on in the developer mode.
S203: and sending the network address of the terminal equipment and the set port to a target cloud server so that the target cloud server sends a connection request to the terminal equipment according to the network address and the set port.
In this embodiment, a preset program (for example, an APK program) may be installed in the terminal device, and a network address (for example, an IP address of WiFi of the terminal device) and a set port of a network where the terminal device is located may be obtained by running the preset program. Optionally, the network address and the set port may be encapsulated into a hypertext transfer Protocol (HTTP) message (e.g., a POST format message), and the message is sent to the target cloud server.
The target cloud server may be any one of the cloud servers in the intranet server cluster 102 in fig. 1, and the target cloud server runs a program of a remote real machine capable of testing the terminal device. Specifically, the sending, by the target cloud server, the connection request to the terminal device according to the network address and the set port may include: and the target cloud server determines the terminal equipment according to the network address and sends a connection request to a set port of the terminal equipment according to the set port.
S204: when a connection request sent by the target cloud server is monitored at the set port, connection with the target cloud server is established, so that a tester can remotely debug the terminal equipment through a test client connected with the target cloud server.
In this embodiment, the monitoring of the connection request sent by the target cloud server at the set port means that the connection request sent by the target cloud server is received through the set port.
As can be seen from the above description, according to the configuration instruction, the debugging bridge program is started, the set port is monitored, the USB debugging mode and the click simulation function are started, the network address of the terminal device and the set port are sent to the target cloud server, the terminal device can be connected to the target cloud server, the terminal device and the target cloud server can be connected without deploying a complex service program on a personal computer by a user, the operation is simple and convenient, and the user access intention is high.
Referring to fig. 3, fig. 3 is a schematic flowchart of a terminal device debugging method according to an embodiment of the present disclosure. As shown in fig. 3, on the basis of the embodiment in fig. 2, this embodiment describes in detail the specific process of step S203, and the method is as follows:
s301: and sending the network address and the set port to a public network server so that the public network server sends the network address and the set port to an intranet server cluster, wherein the server cluster comprises a plurality of cloud servers.
In this embodiment, the network address and the set port may be encapsulated into a POST format message, and sent to the public network server.
S302: and receiving the communication messages sent by the cloud servers.
In this embodiment, the communication message may be a ping message, such as a ping message "ping PHONE _ IP" for establishing communication with the mobile PHONE.
S303: and sending response messages to the plurality of cloud servers according to the communication messages, so that a target cloud server which receives the response messages in the plurality of servers at the fastest speed sends a connection request to the terminal equipment according to the network address and the set port.
As can be seen from the above description, by sending the network address and the set port to the public network server, the public network server sends the network address and the set port to the plurality of cloud servers of the intranet server cluster, and takes the cloud server that communicates with the terminal device at the fastest speed as the target cloud server, and establishes a connection, the speed of accessing the terminal device to the cloud server can be increased, and the user experience can be improved.
Referring to fig. 4, fig. 4 is a schematic flowchart of a terminal device debugging method according to an embodiment of the present disclosure. As shown in fig. 4, on the basis of the embodiment in fig. 2, this embodiment describes in detail a specific process of opening a debug bridge program according to an obtained configuration instruction in step S201 and monitoring a set port, where the method includes:
s401: and starting a debugging bridge program of the terminal according to the acquired configuration instruction so that the debugging bridge program selects a local initialization mode.
S402: and starting a wireless connection mode according to the local initialization mode, and monitoring the set port in the wireless connection mode.
In this embodiment, the wireless connection mode may be a WiFi wireless connection mode, a 4G connection mode, or a 5G connection mode. The monitoring setting port in the wireless connection mode may be any mode of existing wireless monitoring, and the disclosure is not limited in any way.
After a debugging bridge program of a terminal is started in the prior art, the terminal equipment can enter a USB initialization mode, and the terminal equipment is firstly in USB communication connection with a personal computer, so that the terminal equipment can be connected with a cloud server by deploying a complex service program on the personal computer. In this embodiment, by selecting the local initialization mode, the terminal device starts the wireless connection mode, and monitors the set port in the wireless connection mode, so that the terminal device can establish connection with the cloud server without accessing a personal computer.
In an embodiment of the present disclosure, before the step S201 starts a debug bridge program according to the acquired configuration instruction and monitors the set port, the method further includes:
receiving a configuration instruction sent by a Personal Computer (PC), wherein the configuration instruction comprises an instruction for opening a debugging bridge program and the setting port, and the configuration instruction is input on the PC by a user.
In this embodiment, the terminal device and the PC are connected via a universal serial bus USB.
In an embodiment of the present disclosure, the connection established between the terminal device and the target cloud server includes: the terminal device is connected with the target cloud server, or the terminal device is connected with the target cloud server through the public network server. The tester can control the terminal equipment to carry out remote debugging through a test client (such as a browser) connected with the target cloud server.
Optionally, when the terminal device and the target cloud server can be directly connected, a direct connection mode of the terminal device and the target cloud server is adopted; when the terminal equipment can not be directly connected with the target cloud server, the terminal equipment is connected with the target cloud server through the public network server, so that the speed of accessing the terminal equipment into the target cloud server is further increased.
Corresponding to the terminal device debugging method in the foregoing embodiment, fig. 5 is a block diagram of a terminal device debugging device provided in the embodiment of the present disclosure. For ease of illustration, only portions that are relevant to embodiments of the present disclosure are shown. Referring to fig. 5, the terminal device commissioning apparatus 500 includes: a configuration module 501, a debug initiation module 502, a sending module 503, and a connection module 504.
The configuration module 501 is configured to start a debug bridge program according to an obtained configuration instruction, and monitor a set port;
a debugging start module 502, configured to start a universal serial bus USB debugging mode and a simulated click function;
a sending module 503, configured to send the network address and the set port of the terminal device to a target cloud server, so that the target cloud server sends a connection request to the terminal device according to the network address and the set port;
the connection module 504 is configured to establish connection with the target cloud server when a connection request sent by the target cloud server is monitored at the set port, so that a tester can perform remote debugging on the terminal device through a test client connected with the target cloud server.
In an embodiment of the present disclosure, the debug starting module 502 is specifically configured to enter a developer mode, start a USB debug mode, and simulate a click function.
In an embodiment of the present disclosure, the sending module 503 is specifically configured to send the network address and the set port to a public network server, so that the public network server sends the network address and the set port to a plurality of cloud servers of an intranet server cluster; receiving communication messages sent by the plurality of cloud servers; and sending response messages to the plurality of cloud servers according to the communication messages, so that a target cloud server which receives the response messages in the plurality of servers at the fastest speed sends a connection request to the terminal equipment according to the network address and the set port.
In an embodiment of the present disclosure, the connection established between the terminal device and the target cloud server includes: the terminal device is connected with the target cloud server, or the terminal device is connected with the target cloud server through the public network server.
In an embodiment of the present disclosure, the configuration module 501 is specifically configured to start a debug bridge program of the terminal according to an obtained configuration instruction, so that the debug bridge program selects a local initialization mode; and starting a wireless connection mode according to the local initialization mode, and monitoring the set port in the wireless connection mode.
In one embodiment of the present disclosure, the apparatus further comprises: a receiving module 505, configured to receive a configuration instruction sent by a personal computer PC, where the configuration instruction includes an instruction for starting a debug bridge program and the setting port, and the configuration instruction is input by a user on the PC.
In one embodiment of the present disclosure, the terminal device and the PC are connected through a universal serial bus USB.
In one embodiment of the present disclosure, the configuration instruction is input by a user on the terminal device.
In one embodiment of the present disclosure, the debugging bridge program is an android debugging bridge program or an IOS debugging bridge program.
The device provided in this embodiment may be used to implement the technical solution of the above method embodiment, and the implementation principle and technical effect are similar, which are not described herein again.
Referring to fig. 6, a schematic structural diagram of an electronic device 600 suitable for implementing the embodiment of the present disclosure is shown, where the electronic device 600 may be a terminal device or a server. Among them, the terminal Device may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a Digital broadcast receiver, a Personal Digital Assistant (PDA), a tablet computer (PAD), a Portable Multimedia Player (PMP), a car terminal (e.g., car navigation terminal), etc., and a fixed terminal such as a Digital TV, a desktop computer, etc. The electronic device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 6, the electronic device 600 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 601, which may perform various suitable actions and processes according to a program stored in a Read Only Memory (ROM) 602 or a program loaded from a storage means 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for the operation of the electronic apparatus 600 are also stored. The processing device 601, the ROM602, and the RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
Generally, the following devices may be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 607 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 608 including, for example, tape, hard disk, etc.; and a communication device 609. The communication means 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. While fig. 6 illustrates an electronic device 600 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means 609, or may be installed from the storage means 608, or may be installed from the ROM 602. The computer program, when executed by the processing device 601, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to perform the methods shown in the above embodiments.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of Network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the present disclosure, and not for limiting the same; while the present disclosure has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art will understand that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present disclosure.
Claims (18)
1. A terminal device debugging method is characterized by comprising the following steps:
receiving a configuration instruction input by a user on terminal equipment;
starting a debugging bridge program according to the acquired configuration instruction, and monitoring a set port;
starting a Universal Serial Bus (USB) debugging mode and a click simulation function;
sending the network address of the terminal equipment and the set port to a target cloud server so that the target cloud server sends a connection request to the terminal equipment according to the network address and the set port;
when a connection request sent by the target cloud server is monitored at the set port, connection with the target cloud server is established, so that a tester can remotely debug the terminal equipment through a test client connected with the target cloud server.
2. The method of claim 1, wherein the initiating the USB debug mode and the emulating click functionality comprises:
and entering a developer mode, and starting a USB debugging mode and a click simulation function.
3. The method of claim 1, wherein sending the network address and the set port of the terminal device to the target cloud server, so that the target cloud server sends a connection request to the terminal device according to the network address and the set port comprises:
sending the network address and the set port to a public network server so that the public network server sends the network address and the set port to a plurality of cloud servers of an intranet server cluster;
receiving communication messages sent by the plurality of cloud servers;
and sending response messages to the plurality of cloud servers according to the communication messages, so that a target cloud server which receives the response messages in the plurality of servers at the fastest speed sends a connection request to the terminal equipment according to the network address and the set port.
4. The method of claim 1, wherein the connection established between the terminal device and the target cloud server comprises: the terminal equipment is connected with the target cloud server, or the terminal equipment is connected with the target cloud server through a public network server.
5. The method according to claim 1, wherein the starting of the debug bridge program according to the acquired configuration instruction and the monitoring of the set port comprise:
starting a debugging bridge program of the terminal according to the acquired configuration instruction so that the debugging bridge program selects a local initialization mode;
and starting a wireless connection mode according to the local initialization mode, and monitoring the set port in the wireless connection mode.
6. The method according to claim 1, wherein before starting the debug bridge program according to the obtained configuration instruction and monitoring the set port, the method further comprises:
receiving a configuration instruction sent by a Personal Computer (PC), wherein the configuration instruction comprises an instruction for opening a debugging bridge program and the setting port, and the configuration instruction is input on the PC by a user.
7. The method according to claim 6, wherein the terminal device and the PC are connected via a Universal Serial Bus (USB).
8. The method of any one of claims 1 to 7, wherein the debugging bridge program is an android or IOS debugging bridge program.
9. A terminal device debugging device, comprising:
the receiving module is used for receiving a configuration instruction input by a user on the terminal equipment;
the configuration module is used for starting a debugging bridge program according to the acquired configuration instruction and monitoring a set port;
the debugging starting module is used for starting a Universal Serial Bus (USB) debugging mode and a simulated click function;
the sending module is used for sending the network address and the set port of the terminal equipment to a target cloud server so that the target cloud server sends a connection request to the terminal equipment according to the network address and the set port;
and the connection module is used for establishing connection with the target cloud server when monitoring a connection request sent by the target cloud server at the set port so as to enable a tester to carry out remote debugging on the terminal equipment through a test client connected with the target cloud server.
10. The device according to claim 9, wherein the debug initiation module is specifically configured to enter a developer mode, turn on a USB debug mode and simulate a click function.
11. The device according to claim 9, wherein the sending module is specifically configured to send the network address and the set port to a public network server, so that the public network server sends the network address and the set port to a plurality of cloud servers of an intranet server cluster; receiving communication messages sent by the plurality of cloud servers; and sending response messages to the plurality of cloud servers according to the communication messages, so that a target cloud server which receives the response messages in the plurality of servers at the fastest speed sends a connection request to the terminal equipment according to the network address and the set port.
12. The device of claim 9, wherein the connection established between the terminal device and the target cloud server comprises: the terminal equipment is connected with the target cloud server, or the terminal equipment is connected with the target cloud server through a public network server.
13. The device according to claim 9, wherein the configuration module is specifically configured to open a debug bridge program of the terminal according to the obtained configuration instruction, so that the debug bridge program selects a local initialization mode; and starting a wireless connection mode according to the local initialization mode, and monitoring the set port in the wireless connection mode.
14. The apparatus of claim 9, further comprising: the receiving module is used for receiving a configuration instruction sent by a Personal Computer (PC), wherein the configuration instruction comprises an instruction for starting a debugging bridge program and the setting port, and the configuration instruction is input on the PC by a user.
15. The device according to claim 14, wherein the terminal device and the PC are connected via a universal serial bus USB.
16. The device of any of claims 9 to 15, wherein the debug bridge is an android debug bridge or an IOS debug bridge.
17. An electronic device, comprising: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executing the computer-executable instructions stored by the memory causes the at least one processor to perform the terminal device commissioning method of any one of claims 1 to 8.
18. A computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when a processor executes the computer-executable instructions, the terminal device debugging method according to any one of claims 1 to 8 is implemented.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910407643.0A CN110086889B (en) | 2019-05-16 | 2019-05-16 | Terminal device debugging method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910407643.0A CN110086889B (en) | 2019-05-16 | 2019-05-16 | Terminal device debugging method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110086889A CN110086889A (en) | 2019-08-02 |
CN110086889B true CN110086889B (en) | 2022-02-18 |
Family
ID=67420506
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910407643.0A Active CN110086889B (en) | 2019-05-16 | 2019-05-16 | Terminal device debugging method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110086889B (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110838953B (en) * | 2019-11-01 | 2021-08-17 | 北京字节跳动网络技术有限公司 | Test method, test system, electronic equipment and storage medium |
CN111162960B (en) * | 2019-12-03 | 2022-12-02 | 支付宝实验室(新加坡)有限公司 | Method and server for starting debugging panel |
CN111064794B (en) * | 2019-12-19 | 2022-04-15 | 浙江诺诺网络科技有限公司 | Fault detection method, device, equipment and storage medium of terminal equipment |
CN114006847B (en) * | 2020-07-14 | 2023-07-07 | 成都鼎桥通信技术有限公司 | Automatic test method for private network terminal |
CN112052164A (en) * | 2020-08-19 | 2020-12-08 | 深圳创维-Rgb电子有限公司 | Remote debugging method of Android device, storage medium and debugging terminal |
CN114884848B (en) * | 2022-03-18 | 2023-08-18 | 潍柴动力股份有限公司 | Vehicle-mounted network connection terminal, and adjustment and measurement method, adjustment and measurement device and adjustment and measurement system thereof |
CN115988234A (en) * | 2022-12-05 | 2023-04-18 | 中信银行股份有限公司 | Audio and video processing method and system |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9727445B2 (en) * | 2013-11-09 | 2017-08-08 | Microsoft Technology Licensing, Llc. | Debugging a web application locally during development |
CN107026764B (en) * | 2016-02-02 | 2020-01-14 | 腾讯科技(深圳)有限公司 | Remote debugging method, device, server and system |
CN105915628B (en) * | 2016-05-31 | 2019-05-03 | 珠海金山网络游戏科技有限公司 | A kind of cell phone system remotely controls adjustment method, system and device |
CN108509333A (en) * | 2017-02-28 | 2018-09-07 | 腾讯科技(深圳)有限公司 | Adjustment method and device |
CN107463499B (en) * | 2017-08-08 | 2020-10-13 | 百度在线网络技术(北京)有限公司 | ADB remote connection method, device, equipment and storage medium |
CN107590036A (en) * | 2017-08-11 | 2018-01-16 | 北京奇虎科技有限公司 | Remote debugging method, server and the system of Android device |
CN109286654B (en) * | 2018-08-01 | 2021-08-06 | 深圳市德卡科技股份有限公司 | Remote equipment debugging system and method based on serial port |
-
2019
- 2019-05-16 CN CN201910407643.0A patent/CN110086889B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN110086889A (en) | 2019-08-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110086889B (en) | Terminal device debugging method and device | |
US20240022646A1 (en) | Chaos engineering experimentation method for system, device and storage medium | |
CN111177617A (en) | Web direct operation and maintenance method and device based on operation and maintenance management system and electronic equipment | |
CN105260082B (en) | A kind of test data methods of exhibiting and exploitation terminal | |
CN113553257B (en) | Test method, device, storage medium and electronic equipment | |
CN110362488B (en) | Page testing method and device, electronic equipment and storage medium | |
CN109471647B (en) | Data updating method and device, electronic equipment and readable medium | |
WO2021147455A1 (en) | Message processing method and device, and electronic apparatus | |
WO2021088823A1 (en) | Interaction control method, device, terminal, and storage medium | |
CN113608812A (en) | Remote control method, device, system and storage medium | |
US20240220384A1 (en) | Information display method, apparatus, device and storage medium | |
CN113691602A (en) | Service processing method, system, device, equipment and medium based on cloud mobile phone | |
CN113709243B (en) | Equipment remote control method and device, electronic equipment and storage medium | |
CN113608997B (en) | Remote debugging method and device for embedded webpage of application program and electronic equipment | |
CN110764983A (en) | Test method, device, medium and electronic equipment | |
CN112131092A (en) | Page debugging method and device | |
CN109947659B (en) | System, method and apparatus for testing applications | |
CN111273967A (en) | Remote hook setting method and device suitable for Android system and electronic equipment | |
CN115022328B (en) | Server cluster, testing method and device of server cluster and electronic equipment | |
CN111193717A (en) | FTP black and white list control method and device and electronic equipment | |
CN111382058A (en) | Service testing method and device, server and storage medium | |
EP4142297A1 (en) | Method, apparatus and device for configuring video special effect, and storage medium | |
CN114244700A (en) | Port processing method and device, electronic equipment and computer readable storage medium | |
CN112433938A (en) | Method and device for testing application of mobile terminal | |
CN112486826B (en) | Test method, test device, electronic equipment and computer readable medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |