CN107040777A - A kind of remote debugging method, set top box and server - Google Patents
A kind of remote debugging method, set top box and server Download PDFInfo
- Publication number
- CN107040777A CN107040777A CN201710431214.8A CN201710431214A CN107040777A CN 107040777 A CN107040777 A CN 107040777A CN 201710431214 A CN201710431214 A CN 201710431214A CN 107040777 A CN107040777 A CN 107040777A
- Authority
- CN
- China
- Prior art keywords
- top box
- set top
- ssh
- server
- debugging
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N17/00—Diagnosis, testing or measuring for television systems or their details
- H04N17/04—Diagnosis, testing or measuring for television systems or their details for receivers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/41—Structure of client; Structure of client peripherals
- H04N21/426—Internal components of the client ; Characteristics thereof
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/16—Implementing security features at a particular protocol layer
- H04L63/168—Implementing security features at a particular protocol layer above the transport layer
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- Biomedical Technology (AREA)
- General Health & Medical Sciences (AREA)
- Debugging And Monitoring (AREA)
Abstract
The embodiment of the invention discloses a kind of remote debugging method, set top box and server, wherein, method includes:Based on SSH agreements, set up SSH with server and be connected, the server is arranged in long-range outer net;Receive and perform the debugging instruction that the server is sent;During the debugging instruction is performed, according to predetermined period, the output data of the set top box is periodically gathered;Based on the SSH connections, the server is output data to described in transmission, makes remote server according to the output data, performs follow-up debugging operations.Long-range external network server is solved without being first linked into Intranet, can remote debugging Intranet set top box technical problem, the technique effect of remote debugging set top box truly is realized, is that user, after sale personnel and technical staff bring convenient, real-time, efficient, inexpensive service experience.
Description
Technical field
The present invention relates to remote debugging technical field, more particularly to a kind of remote debugging method, set top box and server.
Background technology
The terminal devices such as top box of digital machine, financial intelligent terminating machine, nowadays have been widely used for the daily of people
In Working Life.
When user uses this kind of terminal device failure problem, the operator of the terminal device is generally selected by electricity
Words carry out failure communication with user, by telephone guidance user, allow user to attempt to carry out failure tune with its various method instructed
Examination, still, because the schooling of user is had nothing in common with each other, and patience is limited, is asked so solving failure in this way
Topic wastes time and energy;Or selection sends attendant to provide to visit malfunction test service, but it is such make house calls, manpower and
Time cost is very high;Or selection allows user that failed terminals equipment directly is sent it into designated maintenance center's progress maintenance and debugging,
And so cost of transportation is also very high, and also there is delay on the time, have a strong impact on Consumer's Experience.
The current existing unique distant debugging acid for the smart machine based on Android operation system is debugging bridge
(android debug bridge, adb), but abd is not remote debugging instrument truly, because abd can only
It is confined to the internal debugging of Intranet.For example, when the set top box in user family is out of order, can only if debugged using adb
Selection is sent technical staff to provide and made house calls.Abd debugging will be first installed and be connected to same LAN with computer and set top box
On, then recycle adb to debug set top box.Debugged using adb, one carrys out the limitation by network attribute, and needs
Attendant is wanted to provide debugging services of visiting, it is cumbersome.
The content of the invention
To solve Related Technical Issues, the present invention provides a kind of method, set top box and server for debugging set top box, solved
The confinement problems of existing adb debugging, realize remote debugging truly.
To achieve the above object, the embodiment of the present invention is adopted the following technical scheme that:
In a first aspect, the embodiments of the invention provide a kind of remote debugging method, applied to set top box, the set top box is set
It is placed in long-range Intranet, methods described includes:
Based on SSH agreements, set up SSH with server and be connected, the server is arranged in long-range outer net;
Receive and perform the debugging instruction that the server is sent;
During the debugging instruction is performed, according to predetermined period, the output data of the set top box is periodically gathered;
Based on the SSH connections, the server is output data to described in transmission, makes remote server according to the output
Data, perform follow-up debugging operations.
Second aspect, the embodiments of the invention provide a kind of remote debugging method, applied to server, the server is set
It is placed in long-range outer net, methods described includes:
Based on SSH agreements, set up SSH with set top box and be connected, the set top box is arranged in long-range Intranet;
Debugging instruction is sent to the set top box, makes the set top box during the debugging instruction is performed, periodically
Gather the output data of the set top box;
Based on the SSH connections, the output data is obtained from the set top box, according to the output data, after execution
Continuous debugging operations.
The third aspect, the embodiments of the invention provide a kind of set top box, is arranged in long-range Intranet, the set top box bag
Include:
One or more first processors;
First storage device, for storing one or more programs;
When one or more of programs are performed by one or more of first processors so that one or more of
First processor realizes the remote debugging method that aforementioned first aspect is provided.
Fourth aspect, the embodiments of the invention provide a kind of server, is arranged in long-range outer net, the server bag
Include:
One or more second processors;
Second storage device, for storing one or more programs;
When one or more of programs are performed by one or more of second processors so that one or more of
Second processor realizes the remote debugging method that foregoing second aspect is provided.
The beneficial effect that technical scheme provided in an embodiment of the present invention is brought:
The present invention provides a kind of method, set top box and server for debugging set top box, by taking external network server to be based on
SSH agreements are set up SSH with set top box to be debugged in Intranet and are connected so that the set top box in Intranet can receive external network server
The debugging instruction sent;Also, in debugging process, set top box is periodically sent by set top box and is output data to outside long-range
Network server so that server can be better carried out follow-up debugging operations according to output data, to smoothly complete to set top box
Remote debugging.Long-range external network server is solved without being first linked into Intranet, you can the skill of the set top box of remote debugging Intranet
Art problem, realizes the technique effect of remote debugging set top box truly, is that user, after sale personnel and technical staff bring
Convenient, real-time, efficient, inexpensive service experience.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, institute in being described below to the embodiment of the present invention
The accompanying drawing needed to use is 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, on the premise of not paying creative work, can also be according to present invention implementation
The content and these accompanying drawings of example obtain other accompanying drawings.
Fig. 1 is a kind of schematic flow sheet of remote debugging method provided in an embodiment of the present invention;
Fig. 2 is the schematic flow sheet of another remote debugging method provided in an embodiment of the present invention;
Fig. 3 is the schematic flow sheet of another remote debugging method provided in an embodiment of the present invention;
Fig. 4 is the schematic flow sheet of another remote debugging method provided in an embodiment of the present invention;
Fig. 5 is a kind of structural representation of set top box provided in an embodiment of the present invention;
Fig. 6 is a kind of structural representation of server provided in an embodiment of the present invention.
Embodiment
For make present invention solves the technical problem that, the technical scheme that uses and the technique effect that reaches it is clearer, below
The technical scheme of the embodiment of the present invention will be described in further detail with reference to accompanying drawing, it is clear that described embodiment is only
It is a part of embodiment of the invention, rather than whole embodiments.Based on the embodiment in the present invention, those skilled in the art exist
The every other embodiment obtained under the premise of creative work is not made, the scope of protection of the invention is belonged to.
Fig. 1 is a kind of schematic flow sheet of remote debugging method provided in an embodiment of the present invention, and the method for the present embodiment can
Set top box carries out the scene of remote debugging suitable for long-range Intranet, and this method can be held set top box in long-range outer net
OK, as shown in figure 1, the method that the present embodiment is provided may include steps of:
S110, based on SSH agreements, set up SSH with server and be connected, server is arranged in long-range outer net.
In one embodiment, set top box is provided with out in long-range Intranet with the remote control that set top box is used cooperatively
The shortcut of remote debugging is opened, when set top box breaks down (non-start failure), when user has remote debugging demand, in set top box
The shortcut for opening remote debugging is pressed after start, set top box starts remote debugging service, based on SSH agreements and server
Server in IP address, the outer net long-range with being arranged at is set up SSH and is connected.
It should be noted that because remote debugging needs root authority, it is preferred that the function of startup remote debugging will be realized
Module is integrated into the built-in system of set top box so that the shortcut that user need to only press remote debugging can enable remote debugging
Service, or remote debugging service can also be enabled by other means.
S120, the debugging instruction for receiving simultaneously execute server transmission.
In one embodiment, server can be by conventional Solarnumen Comdebug (such as COM Debug Assistant) to machine top
Box sends debugging instruction (such as input keyevent KEYCODE_POWER instructions), and set top box, which receives and performs the debugging, to be referred to
Order.
S130, during debugging instruction is performed, according to predetermined period, periodically gather the output data of set top box.
In one embodiment, predetermined period is preferably 100ms, and the output data of set top box is preferably screenshot picture, also
Real-time logs file can be included.Set top box is carried out during debugging instruction is performed every 100ms to the broadcasting pictures of set top box
Screenshotss, obtain screenshot picture, and obtain journal file.
It is exemplary, it is foregoing press the shortcut for opening remote debugging when, set top box is except enabling remote debugging service
Outside, long-range blit service also is enabled simultaneously, set top box is serviced by long-range blit, one is performed every preset duration (such as 100ms)
Secondary screenshotss grabgraf operation, and crawl log file.
S140, based on SSH connections, transmission outputs data to server, makes remote server according to output data, after execution
Continuous debugging operations.
In one embodiment, set top box is based on SSH agreements, will be adopted every time in real time by scp (secure copy) orders
The output data collected is sent to long-range server, and the output data of reception further can be sent to technology people by server
The webpage client of member so that technical staff can be immediately seen screenshot picture and daily record data by webpage client, will cut
Screen picture is linked to be the broadcasting pictures that broadcasting together is exactly set top box, and technical staff analyzes the failure of set top box according to broadcasting pictures,
Follow-up debugging operations are performed as the case may be.
Technical staff by webpage client in addition to the screenshot picture and daily record data that can check set top box, can be with
Debugging instruction (such as input keyevent KEYCODE_POWER instructions) is inputted by webpage client, is transferred to after server
Re-send to set top box;Technical staff can also webpage client by some conventional buttons such as upper and lower, left and right, confirmation,
The input such as numerical key command mappings are into quick botton, and technical staff only needs to the button on a webpage client, webpage client
The order of input analogue-keys will be sent to server, and server is connected with set top box based on SSH agreements, so set top box
Directly receive and performed after order, realize the Remote to set top box.
To sum up, in the technical program, by taking external network server based on machine top to be debugged in SSH agreements and Intranet
Box sets up SSH connections so that the set top box in Intranet can receive the debugging instruction that external network server is sent;Also, in debugging
During, set top box is periodically sent by set top box and outputs data to long-range external network server so that server is according to defeated
Follow-up debugging operations can be better carried out by going out data, to smoothly complete the remote debugging to set top box.Solve long-range outer net
Server is without being first linked into Intranet, you can the technical problem of the set top box of remote debugging Intranet, realize truly remote
Journey debugs the technique effect of set top box, is that user, after sale personnel and technical staff bring convenient, real-time, efficient, inexpensive clothes
Business experience.
Fig. 2 is the schematic flow sheet of another remote debugging method provided in an embodiment of the present invention, and the present embodiment is above-mentioned
On the basis of embodiment, the first ssh client and the first SSH service ends optionally, on set top box have been built;
It is described set up with server SSH be connected including:
SSH reverse tunnels are set up by the first ssh client and server;
Based on SSH reverse tunnels, by the first SSH service ends, what the reception server was sent sets up connection request, with service
Device sets up SSH connections.
Based on above-mentioned optimization, as shown in Fig. 2 another remote debugging method that the present embodiment is provided, can specifically include
Following steps:
S210, based on SSH agreements, SSH reverse tunnels are set up by the first ssh client and server.
It is preferred that, it is described that SSH reverse tunnels are set up by the first ssh client and server, including:
According to the IP address of server, by the first ssh client, the first port of set top box is mirrored to server
In second port.
In one embodiment, the IP address of set top box is 172.28.253.155 in long-range Intranet, including 22 ports are (i.e.
First port), the IP address of server is 192.168.2.230 in long-range outer net, including 19998 ports (i.e. second port),
Accordingly the second ssh client and the 2nd SSH service ends have been built on server.Start remote debugging service after set-top-box opening
When, set top box actively initiates SSH connections by the first ssh client to the 2nd SSH service ends of server, sets up SSH reverse
Tunnel, is forwarded by port, and 19998 ports of server are forwarded to 22 port mirrors of 22 ports of set top box, i.e. set top box
As on 19998 ports of server.First ssh client of set top box sends SSH orders to server:ssh-R19998:
localhost:22root@192.168.2.230, it is specific as follows:
root@RD2test:~#ssh-R 19998:localhost:22root@192.168.2.230
root@19192.168.2.230’s password:
welcome to ubuntu 12.04LTS(GNU/Linux 3.2.0-32-generic x86_64)
*Documentation:https://help.ubuntu.com/
New release’14.04.1LTS’available.
Run’do-release-upgrade’to upgrade to it.
Last login:Fri Mar 3 15:51:30 2017from 192.168.11.106
root@RD2TEAM:~#cd/home/caoli/co
code/config/
root@RD2TEAM:~#cd/home/caoli/co
code/config/
In this way, set top box side has been put into the serial ports of server, a SSH reverse tunnel is established, is realized from set top box
To the connection of server.
It should be noted that because SSH reverse tunnels need root authority, it is advantageous to the built-in services by set top box
To complete the operation for setting up SSH reverse tunnels.
S220, based on SSH reverse tunnels, by the first SSH service ends, what the reception server was sent sets up connection request,
SSH is set up with server to be connected.
In one embodiment, set up after SSH reverse tunnels, the second ssh client of server is to the first of set top box
SSH service ends initiate SSH orders:Ssh localhost-p 19998, it is specific as follows:
root@RD2TEAM:~#ssh localhost-p 19998
The authenticity of host‘[localhost]:19998([127.0.0.1]:19998)’can’t
be established.
ECDSA Key fingerprint is bd:81:5a:58:21:58:c2:1c:b5:df:6a:39:f8:4b:
75:4a.
Are you sure you want to continue connecting(yes/no)yes
warning:permanently added‘[localhost]:19998’(ECDSA)to the list of
know hosts.
root@localhost’s password:
permission denied,please try again.
root@localhost’s password:
Connection closed by 127.0.0.1
root@RD2TEAM:~#cd/home/^d/home/^c
root@RD2TEAM:~#^c
root@RD2TEAM:~#^c
root@RD2TEAM:~#
root@RD2TEAM:~#
root@RD2TEAM:~#
In this way, establish server to the connection of 22 ports of set top box, server just can direct AccessPort machine top
Box, realizes server to the connection of set top box.
S230, the debugging instruction for receiving simultaneously execute server transmission.
S240, during debugging instruction is performed, according to predetermined period, periodically gather the output data of set top box.
S250, based on SSH connections, transmission outputs data to server, makes remote server according to output data, after execution
Continuous debugging operations.
To sum up, in the technical program, by taking external network server based on machine top to be debugged in SSH agreements and Intranet
Box sets up SSH tunnels and SSH connections so that the set top box in Intranet can receive the debugging instruction that external network server is sent;And
And, in debugging process, set top box is periodically sent by set top box and outputs data to long-range external network server so that service
Device can be better carried out follow-up debugging operations according to output data, to smoothly complete the remote debugging to set top box.Solve
Long-range external network server is without being first linked into Intranet, you can the technical problem of the set top box of remote debugging Intranet, realizes real meaning
The technique effect of remote debugging set top box in justice, it is convenient, real-time, efficient, low to be that user, after sale personnel and technical staff bring
The service experience of cost.
Fig. 3 is the schematic flow sheet of another remote debugging method provided in an embodiment of the present invention, the method for the present embodiment
Be applicable to in long-range Intranet set top box carry out remote debugging scene, this method can in long-range outer net server Lai
Perform, as shown in figure 3, the method that the present embodiment is provided may include steps of:
S310, based on SSH agreements, set up SSH with set top box and be connected, set top box is arranged in long-range Intranet.
In one embodiment, set top box is provided with out in long-range Intranet with the remote control that set top box is used cooperatively
The shortcut of remote debugging is opened, when set top box breaks down (non-start failure), when user has remote debugging demand, in set top box
The shortcut for opening remote debugging is pressed after start, set top box starts remote debugging service, based on SSH agreements and server
IP address, is sent to the server being arranged in long-range outer net and sets up connection request, and server respond request is built with set top box
Vertical SSH connections.
It should be noted that because remote debugging needs root authority, it is preferred that realize set top box side and start long-range adjust
The functional module of examination is integrated into the built-in system of set top box so that the shortcut that user need to only press remote debugging can be enabled
Remote debugging is serviced, or can also enable remote debugging service by other means.
S320, to set top box debugging instruction is sent, make set top box during debugging instruction is performed, periodically harvester top
The output data of box.
In one embodiment, server can be by conventional Solarnumen Comdebug (such as COM Debug Assistant) to machine top
Box sends debugging instruction (such as input keyevent KEYCODE_POWER instructions), and set top box, which receives and performs the debugging, to be referred to
Order.
Wherein, predetermined period is preferably 100ms, and the output data of set top box is preferably screenshot picture, can also be included real
When journal file.Set top box is during debugging instruction is performed, and set top box is cut every 100ms to the broadcasting pictures of set top box
Screen, obtains screenshot picture, and obtain journal file.
It is exemplary, it is foregoing press the shortcut for opening remote debugging when, set top box is except enabling remote debugging service
Outside, long-range blit service also is enabled simultaneously, set top box is serviced by long-range blit, one is performed every preset duration (such as 100ms)
Secondary screenshotss grabgraf operation, and crawl log file.
S330, based on SSH connections, obtain output data from set top box, according to output data, perform follow-up debugging operations.
In one embodiment, set top box is based on SSH agreements, will be adopted every time in real time by scp (secure copy) orders
The output data collected is sent to long-range server, and server receives output data, and server can be further by reception
Output data is sent to the webpage client of technical staff so that technical staff can be immediately seen screenshotss by webpage client
Picture and daily record data, are linked to be the broadcasting pictures that broadcasting together is exactly set top box, technical staff is according to broadcasting picture by screenshot picture
The failure of surface analysis set top box, performs follow-up debugging operations as the case may be.
Technical staff by webpage client in addition to the screenshot picture and daily record data that can check set top box, can be with
Debugging instruction (such as input keyevent KEYCODE_POWER instructions) is inputted by webpage client, is transferred to after server
Re-send to set top box;Technical staff can also webpage client by some conventional buttons such as upper and lower, left and right, confirmation,
The input such as numerical key command mappings are into quick botton, and technical staff only needs to the button on a webpage client, webpage client
The order of input analogue-keys will be sent to server, and server is connected with set top box based on SSH agreements, so set top box
Directly receive and performed after order, realize the Remote to set top box.
To sum up, in the technical program, by taking external network server based on machine top to be debugged in SSH agreements and Intranet
Box sets up SSH connections so that the set top box in Intranet can receive the debugging instruction that external network server is sent;Also, in debugging
During, set top box is periodically sent by set top box and outputs data to long-range external network server so that server is according to defeated
Follow-up debugging operations can be better carried out by going out data, to smoothly complete the remote debugging to set top box.Solve long-range outer net
Server is without being first linked into Intranet, you can the technical problem of the set top box of remote debugging Intranet, realize truly remote
Journey debugs the technique effect of set top box, is that user, after sale personnel and technical staff bring convenient, real-time, efficient, inexpensive clothes
Business experience.
Fig. 4 is the schematic flow sheet of another remote debugging method provided in an embodiment of the present invention, and the present embodiment is above-mentioned
On the basis of embodiment, the second ssh client and the 2nd SSH service ends optionally, on server have been built;
It is described to set up SSH with set top box and be connected, including:
SSH reverse tunnels are set up by the 2nd SSH service ends and set top box;
Based on SSH reverse tunnels, by the second client, sent to set top box and set up connection request, set up with set top box
SSH connections.
Based on above-mentioned optimization, as shown in figure 4, another remote debugging method that the present embodiment is provided, can specifically include
Following steps:
S410, based on SSH agreements, SSH reverse tunnels are set up by the 2nd SSH service ends and set top box.
It is preferred that, it is shown that SSH reverse tunnels are set up by the 2nd SSH service ends and set top box, including:
By the 2nd SSH service ends, the first port information for the set top box that the first ssh client is sent is received, by machine top
The first port of box is mirrored in the second port of server.
In one embodiment, the IP address of set top box is 172.28.253.155 in long-range Intranet, including 22 ports are (i.e.
First port), the IP address of server is 192.168.2.230 in long-range outer net, including 19998 ports (i.e. second port),
Accordingly the second ssh client and the 2nd SSH service ends have been built on server.Start remote debugging service after set-top-box opening
When, set top box actively initiates SSH connections by the first ssh client to the 2nd SSH service ends of server, sets up SSH reverse
Tunnel, is forwarded by port, and 19998 ports of server are forwarded to 22 port mirrors of 22 ports of set top box, i.e. set top box
As on 19998 ports of server.First ssh client of set top box sends SSH orders to server:ssh-R19998:
localhost:22root@192.168.2.230, it is specific as follows:
root@RD2test:~#ssh-R 19998:localhost:22root@192.168.2.230
root@19192.168.2.230’s password:
welcome to ubuntu 12.04LTS(GNU/Linux 3.2.0-32-generic x86_64)
*Documentation:https://help.ubuntu.com/
New release’14.04.1LTS’available.
Run’do-release-upgrade’to upgrade to it.
Last login:Fri Mar 3 15:51:30 2017from 192.168.11.106
root@RD2TEAM:~#cd/home/caoli/co
code/config/
root@RD2TEAM:~#cd/home/caoli/co
code/config/
In this way, set top box side has been put into the serial ports of server, a SSH reverse tunnel is established, is realized from set top box
To the connection of server.
It should be noted that because SSH reverse tunnels need root authority, it is advantageous to the built-in services by set top box
To complete the operation for setting up SSH reverse tunnels.
S420, based on SSH reverse tunnels, by the second client, sent to set top box and set up connection request, with set top box
Set up SSH connections.
In one embodiment, set up after SSH reverse tunnels, the second ssh client of server is to the first of set top box
SSH service ends initiate SSH orders:Ssh localhost-p 19998, it is specific as follows:
root@RD2TEAM:~#ssh localhost-p 19998
The authenticity of host‘[localhost]:19998([127.0.0.1]:19998)’can’t
be established.
ECDSA Key fingerprint is bd:81:5a:58:21:58:c2:1c:b5:df:6a:39:f8:4b:
75:4a.
Are you sure you want to continue connecting(yes/no)yes
warning:permanently added‘[localhost]:19998’(ECDSA)to the list of
know hosts.
root@localhost’s password:
permission denied,please try again.
root@localhost’s password:
Connection closed by 127.0.0.1
root@RD2TEAM:~#cd/home/^d/home/^c
root@RD2TEAM:~#^c
root@RD2TEAM:~#^c
root@RD2TEAM:~#
root@RD2TEAM:~#
root@RD2TEAM:~#
In this way, establish server to the connection of 22 ports of set top box, server just can direct AccessPort machine top
Box, realizes server to the connection of set top box.
S430, to set top box debugging instruction is sent, make set top box during debugging instruction is performed, periodically harvester top
The output data of box.
S440, based on SSH connections, obtain output data from set top box, according to output data, perform follow-up debugging operations.
To sum up, in the technical program, by taking external network server based on machine top to be debugged in SSH agreements and Intranet
Box sets up SSH tunnels and SSH connections so that the set top box in Intranet can receive the debugging instruction that external network server is sent;And
And, in debugging process, set top box is periodically sent by set top box and outputs data to long-range external network server so that service
Device can be better carried out follow-up debugging operations according to output data, to smoothly complete the remote debugging to set top box.Solve
Long-range external network server is without being first linked into Intranet, you can the technical problem of the set top box of remote debugging Intranet, realizes real meaning
The technique effect of remote debugging set top box in justice, it is convenient, real-time, efficient, low to be that user, after sale personnel and technical staff bring
The service experience of cost.
Fig. 5 is a kind of structural representation of set top box provided in an embodiment of the present invention.Fig. 5 is shown suitable for being used for realizing this
The block diagram of the exemplary set-top box 512 of invention embodiment.The set top box 512 that Fig. 5 is shown is only an example, should not be to this
The function of inventive embodiments and use range band come any limitation.
As shown in figure 5, set top box 512 is showed in the form of universal set-top box (STB) equipment.The component of set top box 512 can include
But it is not limited to:One or more first processor or first processing units 516, system storage 528 connect different system
The bus 518 of component (including system storage 528 and first processing units 516).
Also, when one or more program included by above-mentioned set top box 512 is handled by one or more of first
When device or the execution of first processing units 516, program is proceeded as follows:
Based on SSH agreements, set up SSH with server and be connected, the server is arranged in long-range outer net;Receive and hold
The debugging instruction that the row server is sent;During the debugging instruction is performed, according to predetermined period, institute is periodically gathered
State the output data of set top box;Based on the SSH connections, the server is output data to described in transmission, makes remote server
According to the output data, follow-up debugging operations are performed.
Bus 518 represents the one or more in a few class bus structures, including memory bus or Memory Controller,
Peripheral bus, graphics acceleration port, first processor or total using the local of any bus structures in a variety of bus structures
Line.For example, these architectures include but is not limited to industry standard architecture (ISA) bus, MCA
(MAC) bus, enhanced isa bus, VESA's (VESA) local bus and periphery component interconnection (PCI) are total
Line.
Set top box 512 typically comprises various computing systems computer-readable recording medium.These media can be it is any can be by machine
The usable medium that top box 512 is accessed, including volatibility and non-volatile media, moveable and immovable medium.
System storage 528 can include the computer system readable media of form of volatile memory, for example, deposit at random
Access to memory (RAM) 530 and/or cache memory 532.Set top box 512 may further include it is other it is removable/can not
Mobile, volatile/non-volatile computer system storage medium.Only as an example, storage system 34 can be used for read-write not
Movably, non-volatile magnetic media (Fig. 5 is not shown, is commonly referred to as " hard disk drive ").Although not shown in Fig. 5, can with
There is provided for the disc driver to may move non-volatile magnetic disk (such as " floppy disk ") read-write, and to removable non-volatile
The CD drive of CD (such as CD-ROM, DVD-ROM or other optical mediums) read-write.In these cases, each driving
Device can be connected by one or more data media interfaces with bus 518.Memory 528 can include at least one program
Product, the program product has one group of (for example, at least one) program module, and these program modules are configured to perform the present invention
The function of each embodiment.
Program/utility 540 with one group of (at least one) program module 542, can be stored in such as memory
In 528, such program module 542 includes but is not limited to operating system, one or more application program, other program modules
And routine data, the realization of network environment is potentially included in each or certain combination in these examples.Program module 542
Generally perform the function and/or method in embodiment described in the invention.
Set top box 512 can also communicate with one or more external equipments 514 (such as sensing equipment, display 524),
The equipment communication interacted with the set top box 512 can be also enabled a user to one or more, and/or with causing the set top box
512 any equipment (such as network interface card, modem etc.) communications that can be communicated with one or more of the other computing device.
This communication can be carried out by input/output (I/O) interface 522.Also, set top box 512 can also pass through network adapter
520 lead to one or more network (such as LAN (LAN), wide area network (WAN) and/or public network, such as internet)
Letter.As illustrated, network adapter 520 is communicated by bus 518 with other modules of set top box 512.Although it should be understood that figure
Not shown in, set top box 512 can be combined and use other hardware and/or software module, included but is not limited to:Microcode, equipment
Driver, redundancy first processing units, external disk drive array, RAID system, tape drive and data backup storage
System etc..
First processing units 516 are stored in the program in system storage 528 by operation, should so as to perform various functions
With and data processing, for example realize the remote debugging method that the embodiment of the present invention is provided.
Fig. 6 is a kind of structural representation of server provided in an embodiment of the present invention.Fig. 6 is shown suitable for being used for realizing this
The block diagram of the exemplary servers 612 of invention embodiment.The server 612 that Fig. 6 is shown is only an example, should not be to this
The function of inventive embodiments and use range band come any limitation.
As shown in fig. 6, server 612 is showed in the form of universal computing device.The component of server 612 can include but
It is not limited to:One or more second processor or second processing unit 616, system storage 628 connect different system group
The bus 618 of part (including system storage 628 and second processing unit 616).
Also, when one or more program included by above-mentioned server 612 is by one or more of second processings
When device or the execution of second processing unit 616, program is proceeded as follows:
Based on SSH agreements, set up SSH with set top box and be connected, the set top box is arranged in long-range Intranet;To the machine
Top box sends debugging instruction, makes the set top box during the debugging instruction is performed, periodically gathers the set top box
Output data;Based on the SSH connections, the output data is obtained from the set top box, according to the output data, after execution
Continuous debugging operations.
To the detailed description of the structure of server 612, detailed description of the above-described embodiment to set top box 512 is referred to,
It is no longer repeated for this.
Note, 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 it is various it is obvious change,
Readjust and substitute without departing from protection scope of the present invention.Therefore, although the present invention is carried out by above example
It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also
Other more equivalent embodiments can be included, and the scope of the present invention is determined by scope of the appended claims.
Claims (10)
1. a kind of remote debugging method, applied to set top box, the set top box is arranged in long-range Intranet, it is characterised in that
Methods described includes:
Based on SSH agreements, set up SSH with server and be connected, the server is arranged in long-range outer net;
Receive and perform the debugging instruction that the server is sent;
During the debugging instruction is performed, according to predetermined period, the output data of the set top box is periodically gathered;
Based on the SSH connections, the server is output data to described in transmission, makes remote server according to the output number
According to the follow-up debugging operations of execution.
2. the method as described in claim 1, it is characterised in that the first ssh client and first have been built on the set top box
SSH service ends;
It is described set up with server SSH be connected including:
SSH reverse tunnels are set up by first ssh client and the server;
Based on the SSH reverse tunnels, by the first SSH service ends, the foundation connection that the reception server is sent please
Ask, setting up the SSH with the server is connected.
3. method as claimed in claim 2, it is characterised in that described to pass through first ssh client and the server
The step of setting up SSH reverse tunnels includes:
According to the IP address of the server, by first ssh client, the set top box first port is mirrored to institute
State in the second port of server.
4. the method as described in any one of claims 1 to 3, it is characterised in that:
The predetermined period is 100ms;
The output data for periodically gathering the set top box, including:
Screenshotss are carried out to the broadcasting pictures of the set top box every 100ms.
5. a kind of remote debugging method, applied to server, the server is arranged in long-range outer net, it is characterised in that
Methods described includes:
Based on SSH agreements, set up SSH with set top box and be connected, the set top box is arranged in long-range Intranet;
Debugging instruction is sent to the set top box, makes the set top box during the debugging instruction is performed, periodically gathers
The output data of the set top box;
Based on the SSH connections, the output data is obtained from the set top box, according to the output data, follow-up adjust is performed
Examination operation.
6. method as claimed in claim 5, it is characterised in that the second ssh client and second have been built on the server
SSH service ends;
It is described to set up SSH with set top box and be connected, including:
SSH reverse tunnels are set up by the 2nd SSH service ends and the set top box;
Based on the SSH reverse tunnels, by second client, sent to the set top box and set up connection request, with institute
State set top box and set up the SSH connections.
7. method as claimed in claim 6, it is characterised in that described to pass through the 2nd SSH service ends and the set top box
The step of setting up SSH reverse tunnels, including:
By the 2nd SSH service ends, the first port information for the set top box that first ssh client is sent is received, will
The first port of the set top box is mirrored in the second port of server.
8. the method as described in any one of claim 5~7, it is characterised in that:
The predetermined period is 100ms;
The output data for periodically gathering the set top box, including:
The set top box carries out screenshotss every 100ms to the broadcasting pictures of the set top box.
9. a kind of set top box, is arranged in long-range Intranet, it is characterised in that the set top box includes:
One or more first processors;
First storage device, for storing one or more programs;
When one or more of programs are performed by one or more of first processors so that one or more of first
Processor realizes the remote debugging method as described in any in Claims 1 to 4.
10. a kind of server, is arranged in long-range outer net, it is characterised in that the server includes:
One or more second processors;
Second storage device, for storing one or more programs;
When one or more of programs are performed by one or more of second processors so that one or more of second
Processor realizes the remote debugging method as described in any in claim 5~8.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710431214.8A CN107040777A (en) | 2017-06-08 | 2017-06-08 | A kind of remote debugging method, set top box and server |
PCT/CN2017/110066 WO2018223598A1 (en) | 2017-06-08 | 2017-11-09 | Remote debugging method, set-top box and server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710431214.8A CN107040777A (en) | 2017-06-08 | 2017-06-08 | A kind of remote debugging method, set top box and server |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107040777A true CN107040777A (en) | 2017-08-11 |
Family
ID=59541462
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710431214.8A Pending CN107040777A (en) | 2017-06-08 | 2017-06-08 | A kind of remote debugging method, set top box and server |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN107040777A (en) |
WO (1) | WO2018223598A1 (en) |
Cited By (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107623698A (en) * | 2017-10-20 | 2018-01-23 | 深圳市共进电子股份有限公司 | Remote debugging network equipment method and device |
CN108011883A (en) * | 2017-12-05 | 2018-05-08 | 深圳市创维软件有限公司 | A kind of remote debugging method, terminal device and server |
CN108650552A (en) * | 2018-04-25 | 2018-10-12 | 晶晨半导体(上海)股份有限公司 | A kind of remote management platform for set-top box |
CN108880877A (en) * | 2018-06-07 | 2018-11-23 | 深圳市茁壮网络股份有限公司 | A kind of acquisition methods and device of log |
WO2018223598A1 (en) * | 2017-06-08 | 2018-12-13 | 深圳市创维软件有限公司 | Remote debugging method, set-top box and server |
CN109861950A (en) * | 2017-11-30 | 2019-06-07 | 阿里巴巴集团控股有限公司 | Equipment remote debugging method, device, equipment and storage medium |
CN109996121A (en) * | 2019-04-12 | 2019-07-09 | 晶晨半导体(上海)股份有限公司 | A kind of method of remote control video playing terminal |
CN110502418A (en) * | 2018-05-17 | 2019-11-26 | 长沙博为软件技术股份有限公司 | A method of realizing remote debugging |
CN110650199A (en) * | 2019-09-25 | 2020-01-03 | 湖南快乐阳光互动娱乐传媒有限公司 | Remote connection method and device |
CN110908703A (en) * | 2019-10-24 | 2020-03-24 | 中国船舶重工集团公司第七0九研究所 | Software package warehouse on-demand mirroring method, device and system |
CN110971434A (en) * | 2018-09-30 | 2020-04-07 | 华为技术有限公司 | Method, device and system for managing intranet network equipment |
CN111131814A (en) * | 2018-10-30 | 2020-05-08 | 深圳市茁壮网络股份有限公司 | Data feedback method and device and set top box |
CN111212155A (en) * | 2019-12-30 | 2020-05-29 | 深圳Tcl新技术有限公司 | Log debugging method, television and storage medium |
CN111831499A (en) * | 2020-07-21 | 2020-10-27 | 北京千丁互联科技有限公司 | Remote debugging method, device, server, readable storage medium and system |
CN112203147A (en) * | 2020-09-04 | 2021-01-08 | 深圳创维-Rgb电子有限公司 | Method and device for processing television software log grabbing based on mobile phone and intelligent terminal |
CN112449251A (en) * | 2019-09-03 | 2021-03-05 | 深圳Tcl数字技术有限公司 | Method, system, equipment and storage medium for realizing video picture return |
CN112492301A (en) * | 2020-12-02 | 2021-03-12 | 湖南快乐阳光互动娱乐传媒有限公司 | Performance test method and system of IPTV set top box |
CN112491970A (en) * | 2020-11-09 | 2021-03-12 | 山东星宏电讯有限责任公司 | Remote debugging end deployment method based on virtual network link |
Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102508775A (en) * | 2011-10-31 | 2012-06-20 | 彭勇 | Interactive automation test system |
CN103338290A (en) * | 2013-06-04 | 2013-10-02 | 宁波大学 | A method for automatically testing performance of an Android handset |
CN103634165A (en) * | 2013-12-05 | 2014-03-12 | 北京奇虎科技有限公司 | Method, terminal device and system for realizing network testing based on reverse proxy |
CN103927255A (en) * | 2013-01-16 | 2014-07-16 | 腾讯科技(深圳)有限公司 | Software testing method based on cloud testing system, cloud testing system and client side of cloud testing system |
CN104243210A (en) * | 2014-09-17 | 2014-12-24 | 湖北盛天网络技术股份有限公司 | Method and system for remotely having access to administrative web pages of routers |
CN105281943A (en) * | 2014-07-25 | 2016-01-27 | 中兴通讯股份有限公司 | Webpage-based remote equipment management method and device |
CN105323598A (en) * | 2014-07-28 | 2016-02-10 | 中兴通讯股份有限公司 | Set top box management method, apparatus and system |
CN106254862A (en) * | 2016-08-02 | 2016-12-21 | 四川长虹电器股份有限公司 | Remote visualization online service system and method |
CN106357773A (en) * | 2016-09-19 | 2017-01-25 | 杭州当虹科技有限公司 | Remote assist system based on SSHv2 protocol |
CN106383785A (en) * | 2016-09-21 | 2017-02-08 | 网易(杭州)网络有限公司 | Mobile application debugging method and apparatus |
CN106708489A (en) * | 2015-11-17 | 2017-05-24 | 杭州海康威视数字技术股份有限公司 | Debugging method and system of equipment |
CN106776320A (en) * | 2016-12-16 | 2017-05-31 | 四川长虹电器股份有限公司 | Android intelligent terminal automatization test system and method |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1067458A1 (en) * | 1999-07-09 | 2001-01-10 | CANAL+ Société Anonyme | Running and testing applications |
CN102984230B (en) * | 2012-11-19 | 2016-06-29 | 北京奇虎科技有限公司 | Data transmission device in remote assistance and method |
CN104320653A (en) * | 2014-10-22 | 2015-01-28 | 中国电信集团工会上海市网络操作维护中心委员会 | Intelligent all-service fault diagnosing system |
CN106502913B (en) * | 2016-11-29 | 2019-02-15 | 北京元心科技有限公司 | Method and device for debugging dual-system mobile terminal |
CN107040777A (en) * | 2017-06-08 | 2017-08-11 | 深圳市创维软件有限公司 | A kind of remote debugging method, set top box and server |
-
2017
- 2017-06-08 CN CN201710431214.8A patent/CN107040777A/en active Pending
- 2017-11-09 WO PCT/CN2017/110066 patent/WO2018223598A1/en active Application Filing
Patent Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102508775A (en) * | 2011-10-31 | 2012-06-20 | 彭勇 | Interactive automation test system |
CN103927255A (en) * | 2013-01-16 | 2014-07-16 | 腾讯科技(深圳)有限公司 | Software testing method based on cloud testing system, cloud testing system and client side of cloud testing system |
CN103338290A (en) * | 2013-06-04 | 2013-10-02 | 宁波大学 | A method for automatically testing performance of an Android handset |
CN103634165A (en) * | 2013-12-05 | 2014-03-12 | 北京奇虎科技有限公司 | Method, terminal device and system for realizing network testing based on reverse proxy |
CN105281943A (en) * | 2014-07-25 | 2016-01-27 | 中兴通讯股份有限公司 | Webpage-based remote equipment management method and device |
CN105323598A (en) * | 2014-07-28 | 2016-02-10 | 中兴通讯股份有限公司 | Set top box management method, apparatus and system |
CN104243210A (en) * | 2014-09-17 | 2014-12-24 | 湖北盛天网络技术股份有限公司 | Method and system for remotely having access to administrative web pages of routers |
CN106708489A (en) * | 2015-11-17 | 2017-05-24 | 杭州海康威视数字技术股份有限公司 | Debugging method and system of equipment |
CN106254862A (en) * | 2016-08-02 | 2016-12-21 | 四川长虹电器股份有限公司 | Remote visualization online service system and method |
CN106357773A (en) * | 2016-09-19 | 2017-01-25 | 杭州当虹科技有限公司 | Remote assist system based on SSHv2 protocol |
CN106383785A (en) * | 2016-09-21 | 2017-02-08 | 网易(杭州)网络有限公司 | Mobile application debugging method and apparatus |
CN106776320A (en) * | 2016-12-16 | 2017-05-31 | 四川长虹电器股份有限公司 | Android intelligent terminal automatization test system and method |
Non-Patent Citations (1)
Title |
---|
吴倩,等: "《Android安全机制解析与应用实践》", 31 May 2013 * |
Cited By (24)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018223598A1 (en) * | 2017-06-08 | 2018-12-13 | 深圳市创维软件有限公司 | Remote debugging method, set-top box and server |
CN107623698A (en) * | 2017-10-20 | 2018-01-23 | 深圳市共进电子股份有限公司 | Remote debugging network equipment method and device |
CN107623698B (en) * | 2017-10-20 | 2021-01-22 | 深圳市共进电子股份有限公司 | Method and device for remotely debugging network equipment |
CN109861950A (en) * | 2017-11-30 | 2019-06-07 | 阿里巴巴集团控股有限公司 | Equipment remote debugging method, device, equipment and storage medium |
CN108011883A (en) * | 2017-12-05 | 2018-05-08 | 深圳市创维软件有限公司 | A kind of remote debugging method, terminal device and server |
CN108650552A (en) * | 2018-04-25 | 2018-10-12 | 晶晨半导体(上海)股份有限公司 | A kind of remote management platform for set-top box |
CN110502418A (en) * | 2018-05-17 | 2019-11-26 | 长沙博为软件技术股份有限公司 | A method of realizing remote debugging |
CN108880877A (en) * | 2018-06-07 | 2018-11-23 | 深圳市茁壮网络股份有限公司 | A kind of acquisition methods and device of log |
CN110971434A (en) * | 2018-09-30 | 2020-04-07 | 华为技术有限公司 | Method, device and system for managing intranet network equipment |
CN110971434B (en) * | 2018-09-30 | 2021-11-09 | 华为技术有限公司 | Method, device and system for managing intranet network equipment |
CN111131814A (en) * | 2018-10-30 | 2020-05-08 | 深圳市茁壮网络股份有限公司 | Data feedback method and device and set top box |
CN109996121A (en) * | 2019-04-12 | 2019-07-09 | 晶晨半导体(上海)股份有限公司 | A kind of method of remote control video playing terminal |
CN112449251A (en) * | 2019-09-03 | 2021-03-05 | 深圳Tcl数字技术有限公司 | Method, system, equipment and storage medium for realizing video picture return |
CN110650199A (en) * | 2019-09-25 | 2020-01-03 | 湖南快乐阳光互动娱乐传媒有限公司 | Remote connection method and device |
CN110650199B (en) * | 2019-09-25 | 2022-08-12 | 湖南快乐阳光互动娱乐传媒有限公司 | Remote connection method and device |
CN110908703A (en) * | 2019-10-24 | 2020-03-24 | 中国船舶重工集团公司第七0九研究所 | Software package warehouse on-demand mirroring method, device and system |
CN111212155A (en) * | 2019-12-30 | 2020-05-29 | 深圳Tcl新技术有限公司 | Log debugging method, television and storage medium |
CN111212155B (en) * | 2019-12-30 | 2023-03-10 | 深圳Tcl新技术有限公司 | Log debugging method, television and storage medium |
CN111831499A (en) * | 2020-07-21 | 2020-10-27 | 北京千丁互联科技有限公司 | Remote debugging method, device, server, readable storage medium and system |
CN111831499B (en) * | 2020-07-21 | 2024-04-23 | 北京千丁互联科技有限公司 | Remote debugging method, device, server, readable storage medium and system |
CN112203147A (en) * | 2020-09-04 | 2021-01-08 | 深圳创维-Rgb电子有限公司 | Method and device for processing television software log grabbing based on mobile phone and intelligent terminal |
CN112491970A (en) * | 2020-11-09 | 2021-03-12 | 山东星宏电讯有限责任公司 | Remote debugging end deployment method based on virtual network link |
CN112491970B (en) * | 2020-11-09 | 2022-06-21 | 山东星宏电讯有限责任公司 | Remote debugging end deployment method based on virtual network link |
CN112492301A (en) * | 2020-12-02 | 2021-03-12 | 湖南快乐阳光互动娱乐传媒有限公司 | Performance test method and system of IPTV set top box |
Also Published As
Publication number | Publication date |
---|---|
WO2018223598A1 (en) | 2018-12-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107040777A (en) | A kind of remote debugging method, set top box and server | |
US20160132866A1 (en) | Device, system, and method for creating virtual credit card | |
US20130139233A1 (en) | System and method for controlling user access to a service processor | |
CN107273280A (en) | A kind of log processing method, device, electronic equipment and storage medium | |
US20220050765A1 (en) | Method for processing logs in a computer system for events identified as abnormal and revealing solutions, electronic device, and cloud server | |
CN109982134B (en) | Video teaching method based on diagnosis equipment, diagnosis equipment and system | |
US20150153731A1 (en) | Method for remote monitoring, and system for signal capturing and remote monitoring | |
CN105095103A (en) | Storage device management method and device used for cloud environment | |
CN108322917B (en) | Wireless network access fault positioning method, device, system and storage medium | |
CN106254328A (en) | A kind of access control method and device | |
CN112256498A (en) | Fault processing method and device | |
US9223664B1 (en) | Energy storage for memory protection during power event | |
CN112235300B (en) | Cloud virtual network vulnerability detection method, system, device and electronic equipment | |
US20130151897A1 (en) | Diagnostic handling server, diagnostic handling method, and program for the same server | |
CN116684489A (en) | Remote test method, system, device and storage medium | |
CN109246800B (en) | Wireless connection method and device | |
CN110489210A (en) | Create method, apparatus, equipment and the computer storage medium of virtual machine | |
CN105225035A (en) | A kind ofly realize the unified robot of E-Government | |
CN205050185U (en) | Film ticket ticketing system | |
CN205050186U (en) | Real -time automatic system of booking rooms | |
CN114969175A (en) | Method for butting insurance platform and external system and related equipment | |
CN114499984A (en) | Identity authentication method, device, equipment and medium based on AI and RPA | |
CN114745426A (en) | Method, device and equipment for monitoring abnormity of terminal, readable storage medium and system | |
CN109936567A (en) | Detection method, device, electronic equipment and the storage medium of log-on message | |
CN112416743A (en) | Test control system, method and equipment |
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: 20170811 |