CN108011883A - A kind of remote debugging method, terminal device and server - Google Patents

A kind of remote debugging method, terminal device and server Download PDF

Info

Publication number
CN108011883A
CN108011883A CN201711265524.3A CN201711265524A CN108011883A CN 108011883 A CN108011883 A CN 108011883A CN 201711265524 A CN201711265524 A CN 201711265524A CN 108011883 A CN108011883 A CN 108011883A
Authority
CN
China
Prior art keywords
terminal device
debugging
server
sent
instruction
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.)
Pending
Application number
CN201711265524.3A
Other languages
Chinese (zh)
Inventor
吕萌
吕一萌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Skyworth Software Co Ltd
Original Assignee
Shenzhen Skyworth Software Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shenzhen Skyworth Software Co Ltd filed Critical Shenzhen Skyworth Software Co Ltd
Priority to CN201711265524.3A priority Critical patent/CN108011883A/en
Publication of CN108011883A publication Critical patent/CN108011883A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/161Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
    • H04L69/162Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields involving adaptations of sockets based mechanisms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/133Protocols for remote procedure calls [RPC]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources

Abstract

The embodiment of the invention discloses a kind of remote debugging method, terminal device and server, the described method includes:Two-way communication link between server is established based on webSocket agreements;Receive and perform the debugging instruction that the server is sent;The implementing result for performing the debugging instruction acquisition is sent to the server, wherein, the implementing result is used to indicate follow-up debugging operations.By using above-mentioned technical proposal, it can be achieved that remote management to terminal device, convenient that remote debugging is carried out to terminal device, solves the failure problems of terminal device.

Description

A kind of remote debugging method, terminal device and server
Technical field
The present embodiments relate to DTV STB field, more particularly to a kind of remote debugging method, terminal device And server.
Background technology
With the fast development of globalization DTV industry, top box of digital machine is throughout vast family.In teaching machine While top box is fast-developing, user uses the problem of inevitably various during set-top box how Accurately and effectively solve the problems, such as that user runs into the major issue faced as each operator and set-top box producer.
At present, when user runs into failure problems using set-top box, set-top box operation business is generally selected by phone with using Family carries out failure communication, and guides user to carry out malfunction test, but since the schooling of user is different, some users It may not understand what other side saying, therefore malfunction test can not be carried out under its guidance.Or set-top box operation business selects group The maintenance personnel of specialty provides and makes house calls, but not only manpower and time cost are high for this mode, but also promptness is not strong.
The content of the invention
To solve Related Technical Issues, the present invention provides a kind of remote debugging method, terminal device and server, by this Method can realize the remote management to terminal device, convenient that remote debugging is carried out to terminal device, solves the failure of terminal device Problem.
To achieve the above object, the embodiment of the present invention adopts the following technical scheme that:
In a first aspect, an embodiment of the present invention provides a kind of remote debugging method, applied to terminal device, the method bag Include:
Two-way communication link between server is established based on webSocket agreements;
Receive and perform the debugging instruction that the server is sent;
The implementing result for performing the debugging instruction acquisition is sent to the server, wherein, the implementing result is used In the follow-up debugging operations of instruction.
Further, the two-way communication link established based on webSocket agreements between server, including:
WebSocket handshake requests are sent to the default port of the server;
Receive the response message that the default port of the server is sent;
Communication protocol is updated to by webSocket agreements based on the response message.
Further, the debugging instruction includes:Order line debugging instruction, analogue-key debugging instruction or screen transmission Debugging instruction.
Further, performing the analogue-key debugging instruction that the server is sent includes:
Corresponding keyboard-coding is parsed from the analogue-key debugging instruction;
Send the keyboard-coding.
Further, it is described based on webSocket agreements establish and server between two-way communication link before, institute The method of stating further includes:
According to enabled instruction Start-up and Adjustment software;
Wherein, the debugging software is preset at the terminal device.
Second aspect, an embodiment of the present invention provides a kind of remote debugging method, applied to server, with above-mentioned first party Remote debugging method described in face, which coordinates, to be performed, the described method includes:
Two-way communication link between terminal device is established based on webSocket agreements;
Debugging instruction is sent to the terminal device;
The implementing result that the terminal device is sent is received, wherein, the implementing result is used to indicate follow-up debugging behaviour Make.
Further, the two-way communication link established based on webSocket agreements between terminal device, including:
In the default port binding socket Socket of the server;
Receive the webSocket handshake requests that the terminal device is sent;
Response message is generated based on the webSocket handshake requests;
The response message is sent to terminal device.
Further, after receiving the implementing result that the terminal device is sent, further include:
Show the implementing result;Or
The implementing result is sent to webpage client and is shown.
The third aspect, an embodiment of the present invention provides a kind of terminal device, including first memory, first processor and is deposited Store up the computer program that can be run on a memory and on first processor, it is characterised in that the first processor performs The remote debugging method as described in above-mentioned first aspect is realized during the computer program.
The third aspect, an embodiment of the present invention provides a kind of server, including second memory, second processor and storage On second memory and the computer program that can be run in second processor, it is characterised in that the second processor is held The remote debugging method as described in above-mentioned second aspect is realized during the row computer program.
Remote debugging method provided in an embodiment of the present invention, by establishing terminal device and clothes based on webSocket agreements Two-way communication link between business device, realizes being in communication with each other between terminal device and server;Terminal device passes through reception And the debugging instruction that execute server is sent, and debugging instruction implementing result is sent to server, server receives debugging After instruction execution result, technical staff can be according to the failure problems of debugging instruction implementing result analysing terminal equipment, and can be into one Step determines follow-up debugging instruction, and debugging instruction is sent to terminal device by server, is realized to the remote of terminal device Journey debugging, management and failure problems existing for solution terminal device.
Brief description of the drawings
To describe the technical solutions in the embodiments of the present invention more clearly, institute in being described below to the embodiment of the present invention Attached drawing to be used is needed to be briefly described, it should be apparent that, drawings in the following description are only some implementations of the present invention Example, for those of ordinary skill in the art, without creative efforts, can also implement according to the present invention The content of example and these attached drawings obtain other attached drawings.
Fig. 1 is a kind of flow diagram for remote debugging method that the embodiment of the present invention one provides;
Fig. 2 is the flow diagram for realizing remote debugging that the embodiment of the present invention one provides;
Fig. 3 is a kind of flow diagram of remote debugging method provided by Embodiment 2 of the present invention;
Fig. 4 is a kind of flow diagram for remote debugging method that the embodiment of the present invention three provides;
Fig. 5 is a kind of structure diagram for terminal device that the embodiment of the present invention four provides;
Fig. 6 is a kind of structure diagram for server that the embodiment of the present invention five provides.
Embodiment
For make present invention solves the technical problem that, the technical solution that uses and the technique effect that reaches it is clearer, below The technical solution of the embodiment of the present invention will be described in further detail with reference to attached drawing, it is clear that described embodiment is only It is part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those skilled in the art exist All other embodiments obtained under the premise of creative work are not made, belong to the scope of protection of the invention.
Embodiment one
Fig. 1 is a kind of flow diagram for remote debugging method that the embodiment of the present invention one provides.The debugging of the present embodiment Method can be performed by remote testing device, and wherein the device can generally be integrated in terminal by software and/or hardware realization In equipment, which can be any terminal device of carrying Android operation system, such as digital TV integrated machine, machine top Box, smart projector, mobile phone or portable digital assistants etc..The adjustment method can be used for remotely adjusting terminal device Examination, it is convenient that terminal device is managed and safeguarded;When terminal device occurs abnormal (such as when the terminal device is machine top During box, specific video can not be played by the set-top box), the remote debugging method that can be provided through this embodiment is to set-top box Existing failure problems are positioned, to solve the problems, such as that particular video frequency can not play.Referring specifically to shown in Fig. 1, this method can To include the following steps:
110:Two-way communication link between server is established based on webSocket agreements.
Specifically, it can will realize that the function module for starting remote debugging is preset in the built-in system of terminal device, is passed through The button for starting remote adjusting functid is set in terminal equipment side, and when exception occurs in terminal device, user there are the need of remote debugging When asking, the key to run remote debugging service of remote adjusting functid can be started by pressing;Or user can be directly by beating The application of dynamic remote debugging is opened to start remote debugging service, the application can be specifically the debugging software of specialty, pass through Debugging software is preset in terminal device, when user has remote debugging demand, can then may be used by opening the debugging software Start remote debugging service, terminal device is based on webSocket agreements and actively establishes communication connection with server.
Full-duplex communication between terminal device and server can be realized by webSocket agreements, facilitate terminal to set It is standby that information exchange is carried out between server, and the two-way communication link between server is established based on webSocket agreements Only need terminal device to do a dohandshake action with server and connection can be achieved, webSocket agreements need not obtain terminal and set The authority of any rank of standby or server, such as root authority etc., therefore can be conveniently and efficiently by webSocket agreements Realize the communication connection between terminal device and server.The communication connection established between terminal device and server is to realize far The committed step of journey debugging, the transmission of follow-up debugging instruction and the feedback of instruction execution result all rely on this communicate to connect into OK.
Exemplarily, the two-way communication link established based on webSocket agreements between server, including:
WebSocket handshake requests are sent to the default port of the server;
Receive the response message that the default port of the server is sent;
Communication protocol is updated to by webSocket agreements based on the response message.
Would generally be in advance in one socket of some port binding of server, when the socket of server end is supervised Hear that handshake request can generate a new socket afterwards, and the Key in handshake request is parsed, then according to certain Rule the edit operation such as the Key that parses is encoded and is encrypted, finally information feeds back to terminal and sets in response Standby, terminal device updates communication protocol to webSocket agreements, so far, terminal device and service after receiving response message Full-duplex communication connection between device is successfully established.Debugging operations afterwards will communicate under this lasting passage.
120:Receive and perform the debugging instruction that the server is sent.
Wherein, debugging instruction be used for instruction terminal equipment perform specific operation, the specific operation for example can be open/ Close some application of terminal device, to the real time screen progress shot operation of terminal device or the system for capturing terminal device Daily record, system print etc..The debugging instruction can in real time be formulated by commissioning staff's connected applications scene and sent by server To terminal device, or it can also be and debugging instruction is pre-stored in server end, it is whole from trend to be based on setting rule by server End equipment sends debugging instruction, and the setting rule for example can be that order sends existing debugging instruction.
Specifically, the debugging instruction can include:Order line debugging instruction, analogue-key debugging instruction or screen pass Defeated debugging instruction.Wherein, performing order line debugging instruction can be by the static state side for the Runtime classes for calling Android system to provide Method exec () is performed.Analogue-key debugging instruction or screen transmission debugging instruction represented using special character string, Wherein, analogue-key debugging instruction is used for realization the transmission of analogue-key, and screen transmission debugging instruction is used to open screen transmission Function.
Exemplarily, performing the analogue-key debugging instruction that the server is sent includes:
Corresponding keyboard-coding is parsed from the analogue-key debugging instruction;
Send the keyboard-coding.
Specifically, the form of analogue-key debugging instruction can be " send android key+ key assignments ", terminal device connects Key assignments coding is parsed from debugging instruction after receiving this debugging instruction, is then provided by calling Android system The sendKeyDownUpSync of Instrumentation classes sends the key assignments coding.Can be with by analogue-key debugging instruction Realize and the remote key-press of terminal device is operated, and then realize the remote control to terminal device.Screen transmission debugging instruction Form can be " start screen record " and " stop screen record ", this two debugging instructions correspond to respectively The opening and closing of screen transmission function.The class that the realization of screen transmission function is provided based on Android system MediaProjection is completed, and can be recorded screen change into video flowing by class MediaProjection, be passed through rtmp Agreement uploads to video flowing on the rtmp servers built, and commissioning staff can get screen by the rtmp servers Change information, realizes and the long-range of terminal device is checked.
130:The implementing result for performing the debugging instruction acquisition is sent to the server, wherein, it is described to perform knot Fruit is used to indicate follow-up debugging operations.
Wherein, it is probably specifically the screenshot picture of terminal device, screen to perform the implementing result that the debugging instruction obtains Video, system log or printing etc..By the way that the implementing result is sent to server, commissioning staff can be obtained by server The implementing result is obtained, can be adjusted further according to the failure problems of the implementing result analysing terminal equipment by continuing to formulate Examination instructs and is sent to terminal device by server, realizes that the remote debugging to terminal device, management and solution terminal are set Standby existing failure problems.Or follow-up debugging operations are carried out according to the implementing result automatically by server.
Remote debugging method provided in an embodiment of the present invention, by establishing terminal device and clothes based on webSocket agreements Two-way communication link between business device, realizes being in communication with each other between terminal device and server;Terminal device passes through reception And the debugging instruction that execute server is sent, and debugging instruction implementing result is sent to server, server receives debugging After instruction execution result, technical staff can be according to the failure problems of debugging instruction implementing result analysing terminal equipment, and can be into one Step determines follow-up debugging instruction, and debugging instruction is sent to terminal device by server, is realized to the remote of terminal device Journey debugging, management and failure problems existing for solution terminal device.
On the basis of above-described embodiment, connect in the two-way communication established based on webSocket agreements between server Before connecing, the remote debugging method can also include:
According to enabled instruction Start-up and Adjustment software;
Wherein, the debugging software is preset at the terminal device.
Specifically, the enabled instruction, which can be user, presses the instruction that some button is triggered, it can also be that user beats Open the instruction of the action triggering of debugging software.Remote debugging is carried out to terminal device whole system in order to realize, can be at end The debugging software is preset in terminal device when end equipment is dispatched from the factory., can be by beating when user has remote debugging demand The debugging software is opened to start remote debugging service.
Below when terminal device is set-top box exemplified by, connected applications scene carries out above-mentioned remote debugging method further Explain:
For example, when user wants to watch certain TV play by set-top box, when navigate to TV play in application, the application but without Method is opened, or is automatically closed i.e. to be in the presence of dodging at once again after opening and is moved back, at this time it is believed that exception occurs in set-top box Situation, user have the demand of remote debugging.Reference can be made to the flow diagram for realizing remote debugging shown in Fig. 2, user opens pre- Put in set-top box debugging software (usually when set-top box dispatches from the factory can the preset debugging software, facilitate commissioning staff to machine Top box carries out remote management, and when user is broken down in use can be solved in time), remote debugging service It is activated.Set-top box is based on webSocket agreements and actively establishes communication connection with server, after communication connection is successfully established (in general, opening the debugging software of server side after the commissioning staff of server side reaches the standard grade in practical applications, then set-top box is with taking Communication connection between business device is successfully established), the debugging software of set-top box side starts waiting for server side and sends debugging instruction, adjusts Examination instruction can be formulated by commissioning staff and debugging instruction is sent to server by the debugging software of server side.Formulate first The foundation of bar debugging instruction can be the description that the problem of user runs into oneself is carried out, such as user can pass through service in advance Hot line carries out problem description with commissioning staff, and commissioning staff would generally instruct user set-top box is run to boundary of problems Face, such as the TV play application do not opened is found, and stop at this interface.When the debugging software of set-top box side receives server After the debugging instruction of transmission, the debugging instruction is performed, and the real-time output information of set-top box after execution debugging instruction is fed back To server, so that commissioning staff carries out anomaly analysis.The debugging instruction function for example can be specifically be again turned on it is described TV play application, if not opening still or still occurring dodging situation about moving back, can make set top box capturing system by debugging instruction System daily record, and system log is fed back into server, commissioning staff can be further abnormal according to the syslog analysis of set-top box The problem of where, such as according to system log inspection during application operation whether there is function error calls situation.
Embodiment two
Fig. 3 is a kind of flow diagram of remote debugging method provided by Embodiment 2 of the present invention.In above-described embodiment On the basis of, remote debugging method provided in this embodiment is suitable for server, the remote debugging method provided with above-described embodiment Cooperate and perform.Remote debugging method provided in this embodiment can be performed by remote testing device, and wherein the device can By software and/or hardware realization, can generally integrate in the server.Referring specifically to shown in Fig. 3, specifically comprise the following steps:
310:Two-way communication link between terminal device is established based on webSocket agreements.
Specifically, the two-way communication link established based on webSocket agreements between terminal device, including:
In the default port binding socket of the server;
Receive the webSocket handshake requests that the terminal device is sent;
Response message is generated based on the webSocket handshake requests;
The response message is sent to terminal device.
It can generate a new socket after socket of server end listens to handshake request, and by handshake request In Key parse, then the edit operation such as the Key parsed is encoded and is encrypted according to certain rule, Finally information feeds back to terminal device in response,
320:Debugging instruction is sent to the terminal device.
Wherein, debugging instruction be used for instruction terminal equipment perform specific operation, the specific operation for example can be open/ Close some application of terminal device, to the real time screen progress shot operation of terminal device or the system for capturing terminal device Daily record, system print etc..The debugging instruction can in real time be formulated by commissioning staff's connected applications scene and sent by server To terminal device, or it can also be and debugging instruction is pre-stored in server end, it is whole from trend to be based on setting rule by server End equipment sends debugging instruction, and the setting rule for example can be that order sends existing debugging instruction.
Specifically, the debugging instruction can include:Order line debugging instruction, analogue-key debugging instruction or screen pass Defeated debugging instruction.
330th, the implementing result that the terminal device is sent is received, wherein, the implementing result is used to indicate follow-up tune Examination operation.
Wherein, the implementing result is probably specifically the screenshot picture of terminal device, screen video, system log or beats Print etc..
Further, after receiving the implementing result that the terminal device is sent, the method further includes:
Show the implementing result;Or
The implementing result is sent to webpage client and is shown.
Wherein, it is a kind of mode that commissioning staff obtains the implementing result to show the implementing result.Commissioning staff obtains After taking the implementing result, anomaly analysis is carried out according to the implementing result or continues to work out next debugging instruction, finally Realize the remote debugging to terminal device, management and solve failure problems existing for terminal device.
Remote debugging method provided in this embodiment is applied to server, with the remote debugging method described in above-described embodiment Coordinate and perform, by establishing the two-way communication link between terminal device based on webSocket agreements, to the terminal device The debugging instruction is sent, receives the implementing result that the terminal device is sent, wherein, the implementing result is used to indicate follow-up Debugging operations technological means, realize remote debugging to terminal device, management and solve existing for terminal device therefore Barrier problem.
Embodiment three
Fig. 4 is a kind of flow diagram for remote debugging method that the embodiment of the present invention three provides, in above-described embodiment On the basis of, the present embodiment show in particular the interaction between terminal device and server during remote debugging.Specifically Shown in Figure 4, this method specifically comprises the following steps:
410th, terminal device is according to enabled instruction Start-up and Adjustment software.
In general, when terminal device dispatches from the factory, debugging software can be preset in terminal device, when user has remote debugging to need When asking, the debugging software can be opened, the opening action of user can trigger enabled instruction.
420th, terminal device sends webSocket handshake requests to the default port of server.
In general, can be in the advance bound socket Socket in the default port of server.
430th, server receives the webSocket handshake requests that the terminal device is sent, and is based on the webSocket Handshake request generates response message, and the response message is sent to terminal device.
440th, terminal device receives the response message that the default port of the server is sent, and is based on the response message Communication protocol is updated to webSocket agreements.
So far, the connection setup success between terminal device and server, both follow-up interactive operations are logical by this Letter connection carries out, such as server sends debugging instruction to terminal device, and implementing result is fed back to server etc. by terminal device Communication is carried out by the communication connection of above-mentioned foundation.
450th, server sends debugging instruction to terminal device.
460th, terminal device receives and performs the debugging instruction, and the implementing result for performing the debugging instruction acquisition is sent out Give the server.
470th, server receives the implementing result, and shows the implementing result, and commissioning staff performs knot according to described Fruit formulates follow-up debugging instruction.
Shown alternatively, sending the implementing result to webpage client, so that commissioning staff refers to, commissioning staff The debugging instruction of next step is formulated according to implementing result, to position and solve failure problems existing for terminal device, or with reality Now to the remote management of terminal device.
On the basis of above-described embodiment, the present embodiment set forth in detail terminal device and service during remote debugging Interaction between device, is performed by the cooperation of terminal device and server, is realized the remote debugging to terminal device, is managed Failure problems existing for reason and solution terminal device.
Example IV
Fig. 5 is a kind of structure diagram for terminal device that the embodiment of the present invention four provides.As shown in figure 5, the terminal is set It is standby to include:First processor 570, first memory 571 and it is stored on first memory 571 and can be in first processor 570 The computer program of upper operation;Wherein, the quantity of first processor 570 can be one or more, with one first in Fig. 5 Exemplified by reason device 570;First processor 570 realizes the long-range tune as described in above-described embodiment one when performing the computer program Method for testing.As shown in figure 5, the terminal device can also include the first input unit 572 and the first output device 573.First Processor 570, first memory 571, the first input unit 572 and the first output device 573 can pass through bus or its other party Formula connects, in Fig. 5 exemplified by being connected by bus.
First memory 571 is used as a kind of computer-readable recording medium, can be held available for storage software program, computer Line program and module, if the corresponding programmed instruction/module of remote debugging method in the embodiment of the present invention one is (for example, long-range Module, debugging instruction receiving module or sending module etc. are established in communication connection in debugging apparatus).First processor 570 is logical Software program, instruction and module that operation is stored in first memory 571 are crossed, so as to perform the various functions of terminal device Using and data processing, that is, realize above-mentioned remote debugging method.
First memory 571 can mainly include storing program area and storage data field, wherein, storing program area can store behaviour Make system, the application program needed at least one function;Storage data field can be stored uses created data according to terminal Deng.In addition, first memory 571 can include high-speed random access memory, nonvolatile memory can also be included, such as At least one disk memory, flush memory device or other non-volatile solid state memory parts.In some instances, first deposit Reservoir 571 can further comprise passing through relative to the remotely located memory of first processor 570, these remote memories Network connection is to terminal device/server.The example of above-mentioned network include but not limited to internet, intranet, LAN, Mobile radio communication and combinations thereof.
First input unit 572 can be used for the numeral or character information for receiving input, and produce the use with terminal device The key signals input that family is set and function control is related.First output device 573 may include the display devices such as display screen.
Embodiment five
Fig. 6 is a kind of structure diagram for server that the embodiment of the present invention five provides.As shown in fig. 6, the server bag Include:Second processor 670, second memory 671 and it is stored on second memory 671 and can be transported in second processor 670 Capable computer program;Wherein, the quantity of second processor 670 can be one or more, with a second processor in Fig. 6 Exemplified by 670;Second processor 670 realizes the remote debugging side as described in above-described embodiment two when performing the computer program Method.As shown in fig. 6, the server can also include 672 and second output device 673 of secondary input device.Second processor 670th, second memory 671, secondary input device 672 can be connected with the second output device 673 by bus or other modes, In Fig. 6 exemplified by being connected by bus.
Second memory 671 is used as a kind of computer-readable recording medium, can be held available for storage software program, computer Line program and module, if the corresponding programmed instruction/module of remote debugging method in the embodiment of the present invention two is (for example, long-range Module, debugging instruction sending module or implementing result receiving module etc. are established in communication connection in debugging apparatus).Second processing Device 670 is stored in software program, instruction and module in second memory 671 by operation, so as to perform terminal device Various function application and data processing, that is, realize above-mentioned remote debugging method.
Second memory 671 can mainly include storing program area and storage data field, wherein, storing program area can store behaviour Make system, the application program needed at least one function;Storage data field can be stored uses created data according to terminal Deng.In addition, second memory 671 can include high-speed random access memory, nonvolatile memory can also be included, such as At least one disk memory, flush memory device or other non-volatile solid state memory parts.In some instances, second deposit Reservoir 671 can further comprise passing through relative to the remotely located memory of second processor 670, these remote memories Network connection is to terminal device/server.The example of above-mentioned network include but not limited to internet, intranet, LAN, Mobile radio communication and combinations thereof.
Secondary input device 672 can be used for the numeral or character information for receiving input, and produce the use with terminal device The key signals input that family is set and function control is related.Second output device 673 may include the display devices such as display screen.
By the description above with respect to embodiment, it is apparent to those skilled in the art that, the present invention It can be realized by software and required common hardware, naturally it is also possible to which by hardware realization, but the former is more in many cases Good embodiment.Based on such understanding, what technical scheme substantially in other words contributed the prior art Part can be embodied in the form of software product, which can be stored in computer-readable recording medium In, floppy disk, read-only storage (Read-Only Memory, ROM), random access memory (Random such as computer Access Memory, RAM), flash memory (FLASH), hard disk or CD etc., including some instructions are with so that a computer is set Standby (can be personal computer, server, or network equipment etc.) performs the method described in each embodiment of the present invention.
Note that it above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that The invention is not restricted to specific embodiment described here, can carry out for a person skilled in the art various obvious changes, Readjust and substitute without departing from protection scope of the present invention.Therefore, although being carried out by above example to the present invention It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also It can include other more equivalent embodiments, and the scope of the present invention is determined by scope of the appended claims.

Claims (10)

  1. A kind of 1. remote debugging method, applied to terminal device, it is characterised in that the described method includes:
    Two-way communication link between server is established based on webSocket agreements;
    Receive and perform the debugging instruction that the server is sent;
    The implementing result for performing the debugging instruction acquisition is sent to the server, wherein, the implementing result is used to refer to Show follow-up debugging operations.
  2. 2. according to the method described in claim 1, it is characterized in that, it is described based on webSocket agreements establish with server it Between two-way communication link, including:
    WebSocket handshake requests are sent to the default port of the server;
    Receive the response message that the default port of the server is sent;
    Communication protocol is updated to by webSocket agreements based on the response message.
  3. 3. according to the method described in claim 1, it is characterized in that, the debugging instruction includes:Order line debugging instruction, simulation Button debugging instruction or screen transmission debugging instruction.
  4. 4. according to the method described in claim 3, it is characterized in that, perform the analogue-key debugging instruction that the server is sent Including:
    Corresponding keyboard-coding is parsed from the analogue-key debugging instruction;
    Send the keyboard-coding.
  5. 5. according to the method described in claim 1, it is characterized in that, described based on the foundation of webSocket agreements and server Between two-way communication link before, the method further includes:
    According to enabled instruction Start-up and Adjustment software;
    Wherein, the debugging software is preset at the terminal device.
  6. 6. a kind of remote debugging method, applied to server, coordinates with claim 1-5 any one of them remote debugging method Perform, it is characterised in that the described method includes:
    Two-way communication link between terminal device is established based on webSocket agreements;
    Debugging instruction is sent to the terminal device;
    The implementing result that the terminal device is sent is received, wherein, the implementing result is used to indicate follow-up debugging operations.
  7. It is 7. according to the method described in claim 6, it is characterized in that, described based on the foundation of webSocket agreements and terminal device Between two-way communication link, including:
    In the default port binding socket Socket of the server;
    Receive the webSocket handshake requests that the terminal device is sent;
    Response message is generated based on the webSocket handshake requests;
    The response message is sent to terminal device.
  8. 8. according to the method described in claim 6, it is characterized in that, after receiving the implementing result that the terminal device is sent, Further include:
    Show the implementing result;Or
    The implementing result is sent to webpage client and is shown.
  9. 9. a kind of terminal device, including first memory, first processor and storage are on a memory and can be in first processor The computer program of upper operation, it is characterised in that the first processor realizes that right such as will when performing the computer program Seek any remote debugging method in 1-5.
  10. 10. a kind of server, including second memory, second processor and it is stored on second memory and can be in second processing The computer program run on device, it is characterised in that the second processor realizes such as right when performing the computer program It is required that any remote debugging method in 6-8.
CN201711265524.3A 2017-12-05 2017-12-05 A kind of remote debugging method, terminal device and server Pending CN108011883A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711265524.3A CN108011883A (en) 2017-12-05 2017-12-05 A kind of remote debugging method, terminal device and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711265524.3A CN108011883A (en) 2017-12-05 2017-12-05 A kind of remote debugging method, terminal device and server

Publications (1)

Publication Number Publication Date
CN108011883A true CN108011883A (en) 2018-05-08

Family

ID=62056655

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711265524.3A Pending CN108011883A (en) 2017-12-05 2017-12-05 A kind of remote debugging method, terminal device and server

Country Status (1)

Country Link
CN (1) CN108011883A (en)

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108667941A (en) * 2018-06-15 2018-10-16 王为 A kind of stent system at remote control mobile terminal visual angle
CN109002366A (en) * 2018-07-26 2018-12-14 广东蔚海数问大数据科技有限公司 A kind of remote debugging method and device of mobile terminal webpage
CN109002374A (en) * 2018-06-28 2018-12-14 郑州云海信息技术有限公司 A kind of server Debug method, system, equipment and computer media
CN109660856A (en) * 2018-12-27 2019-04-19 贵州省广播电视信息网络股份有限公司 A method of set-top box manages exception information in a production environment
CN109727595A (en) * 2018-12-29 2019-05-07 神思电子技术股份有限公司 A kind of software design approach of speech recognition server
CN109726129A (en) * 2018-12-29 2019-05-07 北京小米移动软件有限公司 Code segment operation method, device, terminal and storage medium
CN109962925A (en) * 2019-04-09 2019-07-02 苏州浪潮智能科技有限公司 A kind of method and device for testing terminal
CN110099262A (en) * 2019-04-11 2019-08-06 深圳市橙子数字科技有限公司 Long-range control method, system, server-side and the client of projector
CN110209545A (en) * 2019-06-12 2019-09-06 武汉通威电子有限公司 A kind of debugging of server and Fault Quick Diagnosis device
CN111092780A (en) * 2018-10-23 2020-05-01 山东华软金盾软件股份有限公司 Method and system for dynamically debugging android system
CN111158925A (en) * 2019-12-05 2020-05-15 中移(杭州)信息技术有限公司 Remote terminal debugging method, terminal, server and storage medium
CN111258906A (en) * 2020-01-19 2020-06-09 北京皮尔布莱尼软件有限公司 Remote debugging method and system for page
CN111953954A (en) * 2020-07-31 2020-11-17 深圳创维-Rgb电子有限公司 Terminal white balance debugging and configuration method, display terminal, cloud platform and system
CN111970364A (en) * 2020-08-17 2020-11-20 创新奇智(重庆)科技有限公司 Hardware debugging execution method and device, electronic equipment and storage medium
CN112241356A (en) * 2019-07-16 2021-01-19 腾讯科技(深圳)有限公司 Page testing method, device, equipment and storage medium
CN112269701A (en) * 2020-11-11 2021-01-26 深圳创维-Rgb电子有限公司 User side debugging method, user side and readable storage medium
CN112910741A (en) * 2021-02-26 2021-06-04 平安普惠企业管理有限公司 Interface testing method and device, computer equipment and storage medium
CN113259448A (en) * 2021-05-27 2021-08-13 四川长虹网络科技有限责任公司 Method and system for transmitting and monitoring log data

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104298591A (en) * 2013-07-18 2015-01-21 阿里巴巴集团控股有限公司 WebApp remote debugging method and system
CN104301799A (en) * 2013-07-19 2015-01-21 深圳市同洲电子股份有限公司 Method and system for communication between server and digital TV terminal
CN105959827A (en) * 2016-04-22 2016-09-21 深圳市茁壮网络股份有限公司 Data interaction method, set top box, and front-end server
WO2017053961A1 (en) * 2015-09-25 2017-03-30 Contec, Llc Universal device testing system
US20170149915A1 (en) * 2015-11-25 2017-05-25 Sap Se System and method of feed data transmission
CN107040777A (en) * 2017-06-08 2017-08-11 深圳市创维软件有限公司 A kind of remote debugging method, set top box and server

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104298591A (en) * 2013-07-18 2015-01-21 阿里巴巴集团控股有限公司 WebApp remote debugging method and system
CN104301799A (en) * 2013-07-19 2015-01-21 深圳市同洲电子股份有限公司 Method and system for communication between server and digital TV terminal
WO2017053961A1 (en) * 2015-09-25 2017-03-30 Contec, Llc Universal device testing system
US20170149915A1 (en) * 2015-11-25 2017-05-25 Sap Se System and method of feed data transmission
CN105959827A (en) * 2016-04-22 2016-09-21 深圳市茁壮网络股份有限公司 Data interaction method, set top box, and front-end server
CN107040777A (en) * 2017-06-08 2017-08-11 深圳市创维软件有限公司 A kind of remote debugging method, set top box and server

Cited By (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108667941A (en) * 2018-06-15 2018-10-16 王为 A kind of stent system at remote control mobile terminal visual angle
CN109002374A (en) * 2018-06-28 2018-12-14 郑州云海信息技术有限公司 A kind of server Debug method, system, equipment and computer media
CN109002366A (en) * 2018-07-26 2018-12-14 广东蔚海数问大数据科技有限公司 A kind of remote debugging method and device of mobile terminal webpage
CN111092780A (en) * 2018-10-23 2020-05-01 山东华软金盾软件股份有限公司 Method and system for dynamically debugging android system
CN109660856A (en) * 2018-12-27 2019-04-19 贵州省广播电视信息网络股份有限公司 A method of set-top box manages exception information in a production environment
CN109727595A (en) * 2018-12-29 2019-05-07 神思电子技术股份有限公司 A kind of software design approach of speech recognition server
CN109726129A (en) * 2018-12-29 2019-05-07 北京小米移动软件有限公司 Code segment operation method, device, terminal and storage medium
CN109726129B (en) * 2018-12-29 2022-08-12 北京小米移动软件有限公司 Code segment operation method, device, terminal and storage medium
CN109962925A (en) * 2019-04-09 2019-07-02 苏州浪潮智能科技有限公司 A kind of method and device for testing terminal
CN110099262B (en) * 2019-04-11 2021-01-01 深圳市橙子数字科技有限公司 Remote control method, system, server and client of projector
CN110099262A (en) * 2019-04-11 2019-08-06 深圳市橙子数字科技有限公司 Long-range control method, system, server-side and the client of projector
CN110209545A (en) * 2019-06-12 2019-09-06 武汉通威电子有限公司 A kind of debugging of server and Fault Quick Diagnosis device
CN112241356A (en) * 2019-07-16 2021-01-19 腾讯科技(深圳)有限公司 Page testing method, device, equipment and storage medium
CN111158925A (en) * 2019-12-05 2020-05-15 中移(杭州)信息技术有限公司 Remote terminal debugging method, terminal, server and storage medium
CN111158925B (en) * 2019-12-05 2024-02-23 中移(杭州)信息技术有限公司 Remote terminal debugging method, terminal, server and storage medium
CN111258906A (en) * 2020-01-19 2020-06-09 北京皮尔布莱尼软件有限公司 Remote debugging method and system for page
CN111953954A (en) * 2020-07-31 2020-11-17 深圳创维-Rgb电子有限公司 Terminal white balance debugging and configuration method, display terminal, cloud platform and system
CN111970364A (en) * 2020-08-17 2020-11-20 创新奇智(重庆)科技有限公司 Hardware debugging execution method and device, electronic equipment and storage medium
CN112269701A (en) * 2020-11-11 2021-01-26 深圳创维-Rgb电子有限公司 User side debugging method, user side and readable storage medium
CN112910741A (en) * 2021-02-26 2021-06-04 平安普惠企业管理有限公司 Interface testing method and device, computer equipment and storage medium
CN113259448A (en) * 2021-05-27 2021-08-13 四川长虹网络科技有限责任公司 Method and system for transmitting and monitoring log data

Similar Documents

Publication Publication Date Title
CN108011883A (en) A kind of remote debugging method, terminal device and server
CN103369363B (en) The control method of a kind of application program, system and device
CN113497945B (en) Live broadcast and configuration method based on cloud mobile phone and related device and system
CN103491119B (en) Multi-screen interaction system and multi-screen interaction method
CN103051865B (en) The method that picture controls and terminal, video conference device
CN107277612A (en) Method and apparatus for playing Media Stream in web browser
US11188188B2 (en) System and method of providing automated customer service with augmented reality and social media integration
CN105612738A (en) Multifunctional conferencing systems and methods
CN104918105B (en) More screen playing methods, equipment and the system of media file
CN104602098A (en) Video barrage display method and equipment thereof
CN204887304U (en) Record screen terminal equipment
CN107992279A (en) A kind of method of mobile terminal control visualization large-size screen monitors synchronization
CN102438173A (en) Method and system for remotely controlling set top box (STB)
CN104102495B (en) A kind of window display method and device
CN104144087A (en) Remote desktop detection system and detection method thereof
US11038955B2 (en) Method and a system for controlling multimedia file on external screen device
CN110032507A (en) Applied program testing method, device, system, electronic equipment and storage medium
CN106303634A (en) A kind of TV equipment barrage sends system and method
CN105338318A (en) Monitoring system and remote control method thereof
WO2017016568A1 (en) Method and telecommunications network for streaming and for reproducing applications
CN111352600A (en) Large screen control system, method and device and electronic equipment
WO2020015750A1 (en) Data sharing method and apparatus, electronic device and storage medium
CN106303429B (en) Remote configuring method and device
CN106371846A (en) Rapid development method and business system based on network data and message-oriented middleware
CN107992337A (en) Method, the system of cross-system remote deployment operation system

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180508