WO2018090995A1 - Method and system for set-top box debugging - Google Patents

Method and system for set-top box debugging Download PDF

Info

Publication number
WO2018090995A1
WO2018090995A1 PCT/CN2017/111943 CN2017111943W WO2018090995A1 WO 2018090995 A1 WO2018090995 A1 WO 2018090995A1 CN 2017111943 W CN2017111943 W CN 2017111943W WO 2018090995 A1 WO2018090995 A1 WO 2018090995A1
Authority
WO
WIPO (PCT)
Prior art keywords
top box
set top
instruction
debugging
execution
Prior art date
Application number
PCT/CN2017/111943
Other languages
French (fr)
Chinese (zh)
Inventor
李冠良
Original Assignee
深圳创维数字技术有限公司
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 深圳创维数字技术有限公司 filed Critical 深圳创维数字技术有限公司
Publication of WO2018090995A1 publication Critical patent/WO2018090995A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/12Applying verification of the received information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/422Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
    • H04N21/42204User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor
    • H04N21/42206User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor characterized by hardware details
    • H04N21/42225User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor characterized by hardware details characterized by types of remote control, e.g. universal remote control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/426Internal components of the client ; Characteristics thereof
    • H04N21/42684Client identification by a unique number or address, e.g. serial number, MAC address, socket ID
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/462Content or additional data management, e.g. creating a master electronic program guide from data received from the Internet and a Head-end, controlling the complexity of a video stream by scaling the resolution or bit-rate based on the client capabilities
    • H04N21/4627Rights management associated to the content

Definitions

  • the present disclosure relates to the field of set top boxes, for example, to a set top box debugging method and system.
  • the RS232 serial port tool requires a serial cable and the RS232 serial interface must be on the set-top box. If it is a product already shipped, the set-top box does not have a serial port interface; using a completely open adb and telnet debugging tools has certain security risks. Use these debugging tools to attack set-top box devices; use Wireshark third-party tools to connect to a professional capture switch. Therefore, the debugging of the set-top box debugging method in the related art is cumbersome, and the security risk during debugging is high, and the debugging cost is high, which brings inconvenience to the user to debug the set-top box.
  • the present disclosure provides a method and system for debugging a set top box, which aims to solve the cumbersome debugging of the set top box debugging method in the related art, and has the safety risk during debugging, and the debugging cost is high, which brings inconvenience technical problems for the user to debug the set top box.
  • the present disclosure provides a method for debugging a set top box, including:
  • the computer After the embedded web server integrated in the set top box starts and enters the listening port state, the computer displays the login interface of the embedded web server, and displays the set top box management after detecting that the verification information input in the login interface is correct. page;
  • the computer sends a debugging instruction to the set top box according to the set top box management page, so that the set top box executes the debugging instruction;
  • the computer receives and displays an execution result of the debug instruction.
  • the set top box is provided with a corresponding function function for implementing the embedded web server. And the corresponding function page.
  • the computer displays a login interface of the embedded web server, and when detecting that the verification information entered in the login interface is correct, the step of displaying the set top box management page includes:
  • the computer inputs a network protocol IP address corresponding to the set top box through a built-in browser to display the login interface;
  • the computer acquires a user name and password input by the user, and after the user name and the password are successfully verified, the set top box management page is displayed.
  • the step of the computer sending a debugging instruction to the set top box according to the set top box management page, so that the set top box executes the debugging instruction comprises:
  • the computer initiates execution of the debugging instruction by means of a webpage, and sends the debugging instruction to the set top box in the webpage;
  • the step of the computer receiving and displaying the execution result of the debugging instruction includes:
  • the computer receives an execution result of the debugging instruction replied by the set top box, and presents the execution result in a webpage form.
  • the method further includes:
  • the computer downloads an execution result of the stop execution instruction according to a URL fed back by the set top box.
  • the present disclosure also provides a method for debugging a set top box, including:
  • the embedded web server built in the set top box is started to enter a listening state
  • the set top box receives and executes a debugging instruction sent by the computer to the set top box by the web server;
  • the set top box sends an execution result of the debug instruction to the computer.
  • a corresponding function function and a corresponding function page for implementing the embedded web server are disposed in the set top box.
  • the present disclosure also provides a debugging system for a set top box, including:
  • a verification module set to start and advance in an embedded web server integrated in the set top box After entering the listening port state, displaying the login interface of the embedded web server, and displaying the set top box management page after detecting that the verification information entered in the login interface is correct;
  • the instruction execution module is configured to send a debugging instruction to the set top box according to the set top box management page, so that the set top box executes the debugging instruction;
  • the execution result display module is configured to receive and display an execution result of the debug instruction.
  • a corresponding function function and a corresponding function page for implementing the embedded web server are disposed in the set top box.
  • the verification module is set to:
  • the instruction execution module is set to:
  • the execution result display module is set to:
  • the instruction execution module is further configured to:
  • the debugging system further includes: a downloading module,
  • the downloading module is configured to download an execution result of the stop execution instruction according to a URL fed back by the set top box.
  • the present disclosure also provides a debugging system for a set top box, including:
  • a listening detection module configured to: after the set top box is started, start an embedded web server built in the set top box to enter a listening state;
  • the instruction receiving execution module is configured to receive and execute a debugging instruction sent by the computer to the set top box by the web server, and send an execution result of the debugging instruction to the computer.
  • a corresponding function function and a corresponding function page for implementing the embedded web server are disposed in the set top box.
  • the present disclosure also provides a computer readable storage medium storing computer executable instructions for performing any of the methods described above.
  • the present disclosure also provides a set top box including one or more processors, a memory, and one or more programs, the one or more programs being stored in a memory, when executed by one or more processors, executing
  • the above execution body is a debugging method of the set top box.
  • the present disclosure also provides a computer comprising one or more processors, a memory, and one or more programs, the one or more programs being stored in a memory, when executed by one or more processors, executing
  • the above execution body is a debugging method of a computer.
  • the present disclosure also provides a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions, when the program instructions are executed by a computer, Having the computer perform any of the methods described above.
  • the present disclosure provides a debugging method and system for a set top box.
  • the set top box has the function of a web server, and the user and the maintenance personnel can input the set top box IP to remotely monitor, maintain, and interact with the set top box through the browser. And other functions.
  • the user can debug the set-top box through the network through the PC end, and does not need to solder a dedicated interface on the set-top box, thereby saving production cost, and the execution of the debugging work is completed in the set-top box, which is beneficial to maintenance personnel to maintain and upgrade the set-top box through the network. Control of debug instructions is more secure than open code debugging.
  • FIG. 1 is a flowchart of a method for debugging a set top box based on an embedded web according to an embodiment.
  • step 2 is a flow chart of the refinement step of step 200 in FIG.
  • FIG. 3 is a flow chart of the refinement step of step 300 in FIG. 1.
  • step 400 of FIG. 4 is a flow chart of the refinement steps of a further embodiment of step 300 of FIG. 1.
  • FIG. 5 is a flowchart of a method for debugging a set top box based on an embedded web according to an embodiment.
  • FIG. 6 is a flowchart of still another method for debugging a set top box based on an embedded web according to an embodiment.
  • FIG. 7 is a flowchart of still another method for debugging a set top box based on an embedded web according to an embodiment.
  • FIG. 8 is a functional block diagram of an embedded web-based set-top box debugging system according to an embodiment.
  • FIG. 9 is a functional block diagram of a login and verification module of a set-top box debugging system based on an embedded web according to an embodiment.
  • FIG. 10 is a functional block diagram of an instruction execution display module of an embedded web-based set top box debugging system according to an embodiment.
  • FIG. 11 is a further functional block diagram of an instruction execution display module of an embedded web-based set top box debugging system according to an embodiment.
  • FIG. 12 is a structural block diagram of a set top box debugging system according to an embodiment.
  • FIG. 13 is a structural block diagram of still another set top box debugging system according to an embodiment.
  • FIG. 14 is a schematic structural diagram of hardware of a set top box according to an embodiment.
  • FIG. 15 is a schematic structural diagram of a hardware of a computer according to an embodiment.
  • the embodiment provides a flowchart of a set-top box debugging method based on an embedded web server.
  • the method includes: Step 100: After the set-top box of the integrated embedded web server is started, the web server is automatically started, and the method is started. Listen for port status.
  • a web server is integrated in the set top box, and the web server can also be called a web server.
  • the set top box can be called an STB terminal.
  • An embedded web server of the GoAhead type can be integrated in the set top box.
  • the GoAhead-type embedded web server is a free, powerful, embedded WebServer that can run on multiple platforms. When the STB terminal starts, it automatically starts the web server and enters the listening port state.
  • the method may further include:
  • Step S Integrating an embedded web server in the set top box in advance, and setting a corresponding function function and a corresponding function page of the web server.
  • the STB terminal integrates a Web Server (for example, GoAhead type), and is provided with a corresponding ASP function (tcpdump, logcat, ps, top, etc.) and related function pages for implementing the Web server.
  • TcpDump can completely intercept packets transmitted over the network to provide analysis.
  • Tcpdump supports filtering for network layers, protocols, hosts, networks, or ports, and provides logical statements such as and, or, and not to help remove unwanted information.
  • Logcat is a command line tool in Android, which can be used to get the log information of the program.
  • the function functions such as ps, top and netstat are debugging functions based on the Linux system.
  • Step 200 The computer (personal computer, PC) enters the web server login interface corresponding to the set top box, and enters the set top box management page when it detects that the input verification information is correct.
  • the web page corresponding to the STB terminal is obtained by using the PC, and the web server login interface corresponding to the STB terminal is accessed, and corresponding verification information is input according to the information prompted by the login interface.
  • the STB management page is displayed.
  • step 200 may include:
  • Step 201 The PC enters a web server login interface corresponding to the set top box by inputting a network protocol (Internet Protocol, IP) address corresponding to the set top box through the browser;
  • IP Internet Protocol
  • Step 202 The web server login interface obtains the user name and password input by the user, and after the verification succeeds, enters the set top box management interface.
  • the PC enters the STB IP login interface through the browser and enters the STB Web server login interface. After entering the username and password, if the authentication username and password are normal, the STB management page is entered.
  • Step 300 The PC sends an execution instruction to the set top box, and the set top box returns to the execution status and displays it on the PC end.
  • the PC end receives the user instruction and sends the instruction to be executed to the STB, for example, the debugging instruction.
  • the STB replies to the execution status of the instruction, and the execution status of the instruction may be in execution or execution failure, and the PC side displays the instruction status of the STB reply. For users to view.
  • step 300 includes:
  • Step 301 The PC end initiates execution of the instruction by using a webpage, and the webpage sends the instruction to the set top box;
  • Step 302 The set top box returns an execution status of the instruction, and is presented on the PC side by using a webpage form.
  • the PC end initiates the execution of the instruction by means of a webpage (for example, http) (for example: tcpdump network capture instruction); the execution status of the STB reply instruction (for example, execution, execution failure), and is presented on the PC side through a webpage form, for Immediately feedback the result of the instruction, directly reply to the execution result to the PC side.
  • a webpage for example, http
  • tcpdump network capture instruction for example: tcpdump network capture instruction
  • STB reply instruction for example, execution, execution failure
  • the method further includes:
  • Step 303 The PC sends a stop execution instruction to the set top box through the web page;
  • Step 304 The set top box ends the currently executed instruction according to the stop execution instruction, and executes the result. Save to the specified path, and feed the specified path to the PC through the Uniform Resource Locator (URL).
  • URL Uniform Resource Locator
  • Step 305 The PC end downloads an execution result of the instruction according to the URL fed back by the set top box.
  • the execution instruction is sent to the STB through the webpage; after receiving the stop instruction, the STB ends the currently executed instruction, saves the execution result to the specified path, and feeds the path to the PC through the URL method.
  • the PC end downloads the execution result of the URL through the feedback of the STB for maintenance personnel to analyze the problem.
  • the present disclosure also proposes a timing diagram of a set-top box debugging method based on an embedded web, which is a PC management terminal and an STB terminal, that is, a set top box. As shown in Figure 5, the timing is as follows:
  • the STB terminal starts the Web Sever
  • the PC management terminal launches the browser
  • the PC management terminal enters the STB IP address in the browser and logs in to the Web Server through authentication information authentication;
  • the browser enters the STB Web Server management page
  • the PC side starts executing instructions through the web page
  • the PC end initiates execution of the instruction through the web page
  • the PC side downloads the execution result through the web page.
  • the embodiment provides a set-top box debugging method based on an embedded web
  • the embedded device set top box
  • the embedded device set top box
  • the maintenance personnel can input the IP of the set-top box anywhere, and remotely monitor, maintain and exchange data with the set-top box through the browser.
  • the PC management terminal does not need an additional application, only needs an http browser, and all work is completed on the STB side, which is convenient for maintenance and upgrade; and is not limited by geography and space, as long as it can be connected to the network, it can pass through the network.
  • the STB terminal is managed and debugged; the STB terminal does not need to be soldered with a dedicated serial interface (RS232), which saves production costs; it is safer than traditional open debugging methods such as adb and telnet by controlling the debugging instructions.
  • RS232 dedicated serial interface
  • an embodiment provides a method for debugging a set top box, where the method includes:
  • Step 610 After the embedded web server integrated in the set top box starts and enters the listening port state, the computer displays the login interface of the embedded web server, and displays the set top box management page when detecting that the verification information entered in the login interface is correct. .
  • Step 620 The computer sends a debugging instruction to the set top box according to the set top box management page, so that the set top box executes the debugging instruction.
  • Step 630 The computer receives and displays the execution result of the debugging instruction.
  • the embedded set-top web server is transplanted in the set-top box, so that the set-top box has the function of the web server, and the user and the maintenance personnel can remotely monitor, maintain, and interact with the set-top box by inputting the IP address of the set-top box through a computer browser anywhere. And other functions.
  • the set top box is provided with a corresponding function function and a corresponding function page for implementing the embedded web server.
  • the computer displays a login interface of the embedded web server, and when detecting that the verification information entered in the login interface is correct, the step of displaying the set top box management page includes:
  • the computer inputs a network protocol IP address corresponding to the set top box through a built-in browser to display the login interface;
  • the computer acquires a user name and password input by the user, and after the user name and the password are successfully verified, the set top box management page is displayed.
  • the step of the computer sending a debugging instruction to the set top box according to the set top box management page, so that the set top box executes the debugging instruction comprises:
  • the computer initiates execution of the debugging instruction by means of a webpage, and sends the debugging instruction to the set top box in the webpage;
  • the step of the computer receiving and displaying the execution result of the debugging instruction includes:
  • the computer receives an execution result of the debugging instruction replied by the set top box, and presents the execution result in a webpage form.
  • the method further includes:
  • the computer downloads an execution result of the stop execution instruction according to a URL fed back by the set top box.
  • an embodiment provides another method for debugging a set top box, where the method includes:
  • Step 710 After the set top box is started, the embedded web server built in the set top box is started to enter a listening state.
  • Step 720 The set top box receives and executes a debugging instruction sent by the computer to the set top box through the web server.
  • Step 730 The set top box sends an execution result of the debugging instruction to the computer.
  • the embedded set-top web server is transplanted in the set-top box, so that the set-top box has the function of the web server, and the user and the maintenance personnel can input the set-top box IP in the browser anywhere, and remotely monitor and maintain the set-top box through the network. Data interaction and other functions.
  • the set top box is provided with a corresponding function function and a corresponding function page for implementing the embedded web server.
  • a functional block diagram of a set-top box debugging system based on an embedded web is provided. As shown in FIG. 8, the system includes:
  • the listening module 100 after the set-top box is set to be integrated with the embedded web server, automatically starts the web server and enters the listening port state; refer to the content described in the method embodiment.
  • the login and verification module 200 is configured to enter the web server login interface corresponding to the set top box of the PC, and enter the set top box management page when the input verification information is detected correctly; refer to the content described in the method embodiment.
  • the instruction execution display module 300 is configured to send an execution instruction to the set top box by the PC end, and the set top box replies to the execution status and displays it on the PC side; reference may be made to the content described in the method embodiment.
  • the embedded web-based set-top box debugging system wherein the system further comprises:
  • the preset module is configured to integrate the embedded web server in the set top box in advance, and set corresponding function functions and corresponding function pages of the web server; refer to the content described in the method embodiment.
  • the login and verification module 200 further includes:
  • the webpage registration unit 201 is configured to enter the top of the set top box by using a browser to enter the top of the set by the browser.
  • the corresponding web server login interface of the box reference may be made to the content described in the method embodiment.
  • the verification unit 202 is configured to obtain the user name and password input by the user by using the web server login interface. After the verification is successful, the user enters the web server login interface; refer to the content described in the method embodiment.
  • the instruction execution display module 300 further includes:
  • the instruction sending unit 301 is configured to initiate execution of the instruction by using the webpage by the PC, and the webpage sends the instruction to the set top box; refer to the content described in the method embodiment.
  • the instruction display unit 302 is configured to set the execution status of the set-top box reply instruction, and is presented on the PC side through a webpage form; reference may be made to the content described in the method embodiment.
  • the instruction execution display module 300 further includes:
  • the execution instruction transmitting unit 303 is stopped, and the PC terminal is configured to stop executing the instruction to the set top box through the page; refer to the content described in the method embodiment.
  • the execution result storage and feedback unit 304 is configured to set the set-top box to execute the currently executed instruction according to the stop execution instruction, and save the execution result to the specified path, and feed the specified path to the PC through the URL method; Content.
  • the execution result obtaining unit 305 is configured to perform an execution result of the URL download instruction according to the feedback of the set-top box by the PC; reference may be made to the content described in the method embodiment.
  • the embodiment provides a method and a system for debugging a set top box based on an embedded web.
  • the method includes: after the set top box integrated with the embedded web server is started, the web server is automatically started, and the state of the listening port is entered; the PC enters The web server login interface corresponding to the set top box enters the set top box management page when the input verification information is detected correctly; the PC end sends an execution instruction to the set top box, and the set top box replies to the execution status and displays it on the PC side.
  • the set-top box can be debugged through the network through the PC end, no special interface is needed to be welded on the set-top box, and the production cost is saved.
  • the execution of all the debugging work is completed in the set-top box, which is beneficial to the maintenance personnel to maintain and upgrade the set-top box through the network. Control of debug instructions is more secure than open code debugging.
  • an embodiment provides a debugging system for a set top box, including: a verification module 1210, an instruction execution module 1220, and an execution result display module 1230.
  • the verification module 1210 is configured to display the login interface of the embedded web server after the embedded web server integrated in the set top box starts and enters the listening port state, and detects the After the verification information entered in the login interface is correct, the set top box management page is displayed;
  • the instruction execution module 1220 is configured to send a debugging instruction to the set top box according to the set top box management page, so that the set top box executes the debugging instruction;
  • the execution result display module 1230 is configured to receive and display an execution result of the debug instruction.
  • the embedded set-top web server is transplanted in the set-top box, so that the set-top box has the function of the web server, and the user and the maintenance personnel can input the set-top box IP in the browser anywhere, and remotely monitor and maintain the set-top box through the network. And other functions such as data interaction.
  • the set top box is provided with a corresponding function function and a corresponding function page for implementing the embedded web server.
  • the verification module 1210 is configured to: input a network protocol IP address corresponding to the set top box through a browser to display the login interface; obtain a user name and password input by the user, where the user name and the password After the verification is successful, the set top box management page is displayed.
  • the instruction execution module 1220 is configured to: initiate execution of the debugging instruction by using a webpage, and send the debugging instruction to the set top box in the webpage;
  • the execution result display module 1230 is configured to: receive an execution result of the debug command replied by the set top box, and present the execution result in a webpage form.
  • the instruction execution module 1220 is further configured to:
  • the debugging system further includes: a downloading module 1240,
  • the downloading module 1240 is configured to download an execution result of the stop execution instruction according to a URL fed back by the set top box.
  • an embodiment provides a set top box debugging system, which includes: a listening detection module 1310 and an instruction receiving execution module 1320.
  • the interception detection module 1310 is configured to: after the set top box is started, start an embedded web server built in the set top box to enter a listening state;
  • the instruction receiving execution module 1320 is configured to receive and execute a debugging instruction sent by the computer to the set top box by the web server, and send an execution result of the debugging instruction to the computer.
  • the embedded set-top web server is transplanted in the set-top box, so that the set-top box has the function of the web server, and the user and the maintenance personnel can input the set-top box IP in the browser anywhere, and remotely monitor and maintain the set-top box through the network. And other functions such as data interaction.
  • the set top box is provided with a corresponding function function and a corresponding function page for implementing the embedded web server.
  • An embodiment further provides a computer readable storage medium storing computer executable instructions for performing any of the methods described above.
  • FIG. 14 is a schematic diagram showing the hardware structure of a set top box according to the present embodiment.
  • the set top box includes: one or more processors 1410 and a memory 1420.
  • a processor 1410 is taken as an example in FIG.
  • the set top box may further include: an input device 1430 and an output device 1440.
  • the processor 1410, the memory 1420, the input device 1430, and the output device 1440 in the set top box may be connected by a bus or other means, and the bus connection is taken as an example in FIG.
  • Input device 1430 can receive input numeric or character information
  • output device 1440 can include a display device such as a display screen.
  • the memory 1420 is a computer readable storage medium that can be used to store software programs, computer executable programs, and modules.
  • the processor 1410 executes a plurality of functional applications and data processing by executing software programs, instructions, and modules stored in the memory 1420 to implement a debugging method in which the execution subject is a set top box.
  • the memory 1420 may include a storage program area and an storage data area, wherein the storage program area may store an operating system, an application required for at least one function; the storage data area may store data created according to usage of the set top box, and the like.
  • the memory may include volatile memory such as random access memory (RAM), and may also include non-volatile memory such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device.
  • Memory 1420 can be a non-transitory computer storage medium or a transitory computer storage medium.
  • Non-temporary State computer storage medium such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device.
  • memory 1420 can optionally include memory remotely located relative to processor 1410, which can be connected to the set top box via a network. Examples of the above networks may include the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
  • Input device 1430 can be used to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the set top box.
  • the output device 1440 can include a display device such as a display screen.
  • the set top box of this embodiment may also include communication means 1450 for transmitting and/or receiving information over a communication network.
  • a person skilled in the art can understand that all or part of the process of implementing the above embodiment method can be completed by executing related hardware by a computer program, and the program can be stored in a non-transitory computer readable storage medium.
  • the program when executed, may include the flow of an embodiment of the method as described above, wherein the non-transitory computer readable storage medium may be a magnetic disk, an optical disk, a read only memory (ROM), or a random access memory (RAM). Wait.
  • FIG. 15 is a diagram showing the hardware structure of a computer according to the present embodiment. As shown in FIG. 15, the computer includes one or more processors 1510 and a memory 1520. A processor 1510 is taken as an example in FIG.
  • the computer may also include an input device 1530 and an output device 1540.
  • the processor 1510, the memory 1520, the input device 1530, and the output device 1540 in the computer may be connected by a bus or other means, and the bus connection is taken as an example in FIG.
  • the input device 1530 can receive input numeric or character information
  • the output device 1540 can include a display device such as a display screen.
  • the memory 1520 is a computer readable storage medium that can be used to store software programs, computer executable programs, and modules.
  • the processor 1510 executes a plurality of functional applications and data processing by executing software programs, instructions, and modules stored in the memory 1520 to implement a debugging method of any one of the above embodiments.
  • the memory 1520 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function; the storage data area may be stored according to a computer Use the created data, etc.
  • the memory may include volatile memory such as random access memory (RAM), and may also include non-volatile memory such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device.
  • Memory 1520 can be a non-transitory computer storage medium or a transitory computer storage medium.
  • the non-transitory computer storage medium such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device.
  • memory 1520 can optionally include memory remotely located relative to processor 1510, which can be connected to the computer via a network. Examples of the above networks may include the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
  • Input device 1530 can be used to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the computer.
  • the output device 1540 can include a display device such as a display screen.
  • the computer of this embodiment may also include communication means 1550 for transmitting and/or receiving information over a communication network.
  • a person skilled in the art can understand that all or part of the process of implementing the above embodiment method can be completed by executing related hardware by a computer program, and the program can be stored in a non-transitory computer readable storage medium.
  • the program when executed, may include the flow of an embodiment of the method as described above, wherein the non-transitory computer readable storage medium may be a magnetic disk, an optical disk, a read only memory (ROM), or a random access memory (RAM). Wait.
  • the present disclosure provides a debugging method and system for a set top box.
  • the user and the maintenance personnel can input the set top box IP in the browser anywhere, and perform remote monitoring, maintenance, and data interaction functions on the set top box through the network.

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Computer Security & Cryptography (AREA)
  • Databases & Information Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Power Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Debugging And Monitoring (AREA)

Abstract

A method and system for set-top box debugging. The method comprises: when a set-top box of an integrated embedded web server is started, the web server is automatically started and goes into a port listening state; a PC side enters a web server login interface corresponding to the set-top box and, upon detecting that inputted authentication information is correct, enters a set-top box management page; the PC side transmits an executable instruction to the set-top box, and the set-top box replies an execution state and displays on the PC side.

Description

机顶盒调试方法及***Set top box debugging method and system 技术领域Technical field
本公开涉及机顶盒技术领域,例如涉及一种机顶盒调试方法及***。The present disclosure relates to the field of set top boxes, for example, to a set top box debugging method and system.
背景技术Background technique
随着嵌入式技术与互联网技术的发展,互联网技术越来越多的应用到嵌入式设备中。而相关技术中对于对机顶盒进行调试时有以下几种方式:利用RS232串口工具抓取机顶盒调试信息(例如,打印、抓包、***运行及状态信息等);针对android***设备利用调试桥(Android Debug Bridge,adb)抓取调试信息;利用telnet调试工具进入***后台查看调试信息;或利用自己开发的调试工具及第三方开发的调试工具(例如Wireshark等)。With the development of embedded technology and Internet technology, Internet technology is increasingly applied to embedded devices. In the related art, there are several ways to debug the set-top box: use the RS232 serial port tool to capture the set-top box debugging information (for example, printing, packet capture, system operation and status information, etc.); use the debug bridge for the android system device (Android) Debug Bridge, adb) to capture debugging information; use telnet debugging tools to enter the system background to view debugging information; or use their own development of debugging tools and third-party development of debugging tools (such as Wireshark, etc.).
但是利用RS232串口工具,需要串口线且机顶盒上必须有RS232串口接口,如果是已经出货的产品,机顶盒并不具备串口接口;使用完全开放的adb和telnet等调试工具,有一定安全风险,可以利用这些调试工具对机顶盒设备进行攻击;利用Wireshark第三方工具,需外接专业的抓包交换机。因此相关技术中的机顶盒调试方法调试繁琐,而且调试时具有安全风险,调试成本高,为用户调试机顶盒带来了不便。However, the RS232 serial port tool requires a serial cable and the RS232 serial interface must be on the set-top box. If it is a product already shipped, the set-top box does not have a serial port interface; using a completely open adb and telnet debugging tools has certain security risks. Use these debugging tools to attack set-top box devices; use Wireshark third-party tools to connect to a professional capture switch. Therefore, the debugging of the set-top box debugging method in the related art is cumbersome, and the security risk during debugging is high, and the debugging cost is high, which brings inconvenience to the user to debug the set-top box.
发明内容Summary of the invention
本公开提供一种机顶盒调试方法及***,旨在解决相关技术中机顶盒调试方法调试繁琐,而且调试时具有安全风险,调试成本高,为用户调试机顶盒带来了不便的技术问题。The present disclosure provides a method and system for debugging a set top box, which aims to solve the cumbersome debugging of the set top box debugging method in the related art, and has the safety risk during debugging, and the debugging cost is high, which brings inconvenience technical problems for the user to debug the set top box.
本公开提供一种机顶盒的调试方法,包括:The present disclosure provides a method for debugging a set top box, including:
在所述机顶盒中集成的嵌入式万维网web服务器启动并进入侦听端口状态后,计算机显示嵌入式web服务器的登陆界面,并当检测到所述登陆界面中输入的验证信息正确后,显示机顶盒管理页面;After the embedded web server integrated in the set top box starts and enters the listening port state, the computer displays the login interface of the embedded web server, and displays the set top box management after detecting that the verification information input in the login interface is correct. page;
所述计算机根据所述机顶盒管理页面向所述机顶盒发送调试指令,以使所述机顶盒执行所述调试指令;The computer sends a debugging instruction to the set top box according to the set top box management page, so that the set top box executes the debugging instruction;
所述计算机接收并显示所述调试指令的执行结果。The computer receives and displays an execution result of the debug instruction.
可选地,所述机顶盒中设置有实现所述嵌入式web服务器的相应的功能函数 及对应的功能页面。Optionally, the set top box is provided with a corresponding function function for implementing the embedded web server. And the corresponding function page.
可选地,所述计算机显示嵌入式web服务器的登陆界面,当检测到所述登陆界面中输入的验证信息正确后,显示机顶盒管理页面的步骤包括:Optionally, the computer displays a login interface of the embedded web server, and when detecting that the verification information entered in the login interface is correct, the step of displaying the set top box management page includes:
所述计算机通过内置的浏览器输入与所述机顶盒对应的网络协议IP地址以显示所述登陆界面;The computer inputs a network protocol IP address corresponding to the set top box through a built-in browser to display the login interface;
所述计算机获取用户输入的用户名和口令,在所述用户名和所述口令验证成功后,显示所述机顶盒管理页面。The computer acquires a user name and password input by the user, and after the user name and the password are successfully verified, the set top box management page is displayed.
可选地,所述计算机根据所述机顶盒管理页面向所述机顶盒发送调试指令,以使所述机顶盒执行所述调试指令的步骤包括:Optionally, the step of the computer sending a debugging instruction to the set top box according to the set top box management page, so that the set top box executes the debugging instruction comprises:
所述计算机通过网页的方式发起所述调试指令的执行,在所述网页中将所述调试指令发送至所述机顶盒;The computer initiates execution of the debugging instruction by means of a webpage, and sends the debugging instruction to the set top box in the webpage;
所述计算机接收并显示所述调试指令的执行结果的步骤包括:The step of the computer receiving and displaying the execution result of the debugging instruction includes:
所述计算机接收所述机顶盒回复的所述调试指令的执行结果,并通过网页形式呈现出所述执行结果。The computer receives an execution result of the debugging instruction replied by the set top box, and presents the execution result in a webpage form.
可选地,所述计算机接收并显示所述调试指令的执行结果的步骤之后还包括:Optionally, after the step of the computer receiving and displaying the execution result of the debugging instruction, the method further includes:
所述计算机通过所述网页下达停止执行指令至所述机顶盒,以使所述机顶盒根据所述停止执行指令结束当前执行的调试指令,并将所述停止执行指令执行结果保存到指定路径,以及将所述指定路径通过统一资源定位符URL的方式反馈给所述计算机;Sending, by the webpage, the execution instruction to the set top box, so that the set top box ends the currently executed debugging instruction according to the stop execution instruction, and saves the execution result of the stop execution instruction to a specified path, and The specified path is fed back to the computer by means of a uniform resource locator URL;
所述计算机根据所述机顶盒反馈的URL下载所述停止执行指令的执行结果。The computer downloads an execution result of the stop execution instruction according to a URL fed back by the set top box.
本公开还提供一种机顶盒的调试方法,包括:The present disclosure also provides a method for debugging a set top box, including:
所述机顶盒启动后,启动所述机顶盒内置的嵌入式万维网web服务器以进入侦听状态;After the set top box is started, the embedded web server built in the set top box is started to enter a listening state;
所述机顶盒接收并执行计算机通过所述web服务器向所述机顶盒发送的调试指令;The set top box receives and executes a debugging instruction sent by the computer to the set top box by the web server;
所述机顶盒向所述计算机发送所述调试指令的执行结果。The set top box sends an execution result of the debug instruction to the computer.
可选地,所述机顶盒中设置有实现所述嵌入式web服务器的相应的功能函数及对应的功能页面。Optionally, a corresponding function function and a corresponding function page for implementing the embedded web server are disposed in the set top box.
本公开还提供一种机顶盒的调试***,包括:The present disclosure also provides a debugging system for a set top box, including:
验证模块,设置为在所述机顶盒中集成的嵌入式万维网web服务器启动并进 入侦听端口状态后,显示嵌入式web服务器的登陆界面,并当检测到所述登陆界面中输入的验证信息正确后,显示机顶盒管理页面;a verification module, set to start and advance in an embedded web server integrated in the set top box After entering the listening port state, displaying the login interface of the embedded web server, and displaying the set top box management page after detecting that the verification information entered in the login interface is correct;
指令执行模块,设置为根据所述机顶盒管理页面向所述机顶盒发送调试指令,以使所述机顶盒执行所述调试指令;The instruction execution module is configured to send a debugging instruction to the set top box according to the set top box management page, so that the set top box executes the debugging instruction;
执行结果显示模块,设置为接收并显示所述调试指令的执行结果。The execution result display module is configured to receive and display an execution result of the debug instruction.
可选地,所述机顶盒中设置有实现所述嵌入式web服务器的相应的功能函数及对应的功能页面。Optionally, a corresponding function function and a corresponding function page for implementing the embedded web server are disposed in the set top box.
可选地,所述验证模块是设置为:Optionally, the verification module is set to:
通过浏览器输入与所述机顶盒对应的网络协议IP地址以显示所述登陆界面;Entering, by using a browser, a network protocol IP address corresponding to the set top box to display the login interface;
获取用户输入的用户名和口令,在所述用户名和所述口令验证成功后,显示所述机顶盒管理页面。Obtaining a user name and password input by the user, and displaying the set top box management page after the user name and the password verification succeed.
可选地,所述指令执行模块是设置为:Optionally, the instruction execution module is set to:
通过网页的方式发起所述调试指令的执行,在所述网页中将所述调试指令发送至所述机顶盒;Initiating execution of the debugging instruction by means of a webpage, and sending the debugging instruction to the set top box in the webpage;
所述执行结果显示模块是设置为:The execution result display module is set to:
接收所述机顶盒回复的所述调试指令的执行结果,并通过网页形式呈现出所述执行结果。Receiving an execution result of the debugging instruction replied by the set top box, and presenting the execution result in a webpage form.
可选地,所述指令执行模块还设置为:Optionally, the instruction execution module is further configured to:
在所述接收并显示所述调试指令的执行结果的步骤之后,通过所述网页下达停止执行指令至所述机顶盒,以使所述机顶盒根据所述停止执行指令结束当前执行的调试指令,并将所述停止执行指令的执行结果保存到指定路径,以及接收通过统一资源定位符URL的方式反馈的所述指定路径;After the step of receiving and displaying the execution result of the debug instruction, stopping execution of the instruction to the set top box through the web page, so that the set top box ends the currently executed debug instruction according to the stop execution instruction, and Saving the execution result of the execution execution instruction to the specified path, and receiving the specified path fed back by means of the uniform resource locator URL;
所述调试***还包括:下载模块,The debugging system further includes: a downloading module,
所述下载模块设置为根据所述机顶盒反馈的URL下载所述停止执行指令的执行结果。The downloading module is configured to download an execution result of the stop execution instruction according to a URL fed back by the set top box.
本公开还提供一种机顶盒的调试***,包括:The present disclosure also provides a debugging system for a set top box, including:
侦听检测模块,设置为在所述机顶盒启动后,启动所述机顶盒内置的嵌入式万维网web服务器以进入侦听状态;a listening detection module, configured to: after the set top box is started, start an embedded web server built in the set top box to enter a listening state;
指令接收执行模块,设置为接收并执行计算机通过所述web服务器向所述机顶盒发送的调试指令,以及向所述计算机发送所述调试指令的执行结果。The instruction receiving execution module is configured to receive and execute a debugging instruction sent by the computer to the set top box by the web server, and send an execution result of the debugging instruction to the computer.
可选地,其中, Optionally, wherein
所述机顶盒中设置有实现所述嵌入式web服务器的相应的功能函数及对应的功能页面。A corresponding function function and a corresponding function page for implementing the embedded web server are disposed in the set top box.
本公开还提供一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行上述任一方法。The present disclosure also provides a computer readable storage medium storing computer executable instructions for performing any of the methods described above.
本公开还提供一种机顶盒,该机顶盒包括一个或多个处理器、存储器以及一个或多个程序,所述一个或多个程序存储在存储器中,当被一个或多个处理器执行时,执行上述执行主体为机顶盒的调试方法。The present disclosure also provides a set top box including one or more processors, a memory, and one or more programs, the one or more programs being stored in a memory, when executed by one or more processors, executing The above execution body is a debugging method of the set top box.
本公开还提供一种计算机,该计算机包括一个或多个处理器、存储器以及一个或多个程序,所述一个或多个程序存储在存储器中,当被一个或多个处理器执行时,执行上述执行主体为计算机的调试方法。The present disclosure also provides a computer comprising one or more processors, a memory, and one or more programs, the one or more programs being stored in a memory, when executed by one or more processors, executing The above execution body is a debugging method of a computer.
本公开还提供了一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行上述任意一种方法。The present disclosure also provides a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions, when the program instructions are executed by a computer, Having the computer perform any of the methods described above.
本公开提供了一种机顶盒的调试方法及***,通过在机顶盒中设置web服务器,使得机顶盒具备Web服务器的功能,用户与维护人员可以输入机顶盒IP通过浏览器对机顶盒进行远程监控、维护、数据交互等功能。本公开中用户通过PC端即可通过网络对机顶盒进行调试,无需在机顶盒上焊接专用的接口,节约生产成本,调试工作的执行在机顶盒完成,有利于维修人员对机顶盒的维护和升级,通过网络对调试指令控制,比开放代码调试方法更安全。The present disclosure provides a debugging method and system for a set top box. By setting a web server in the set top box, the set top box has the function of a web server, and the user and the maintenance personnel can input the set top box IP to remotely monitor, maintain, and interact with the set top box through the browser. And other functions. In the disclosure, the user can debug the set-top box through the network through the PC end, and does not need to solder a dedicated interface on the set-top box, thereby saving production cost, and the execution of the debugging work is completed in the set-top box, which is beneficial to maintenance personnel to maintain and upgrade the set-top box through the network. Control of debug instructions is more secure than open code debugging.
附图说明DRAWINGS
图1为一实施例提供的一种基于嵌入式web的机顶盒调试方法的流程图。FIG. 1 is a flowchart of a method for debugging a set top box based on an embedded web according to an embodiment.
图2为图1中步骤200的细化步骤流程图。2 is a flow chart of the refinement step of step 200 in FIG.
图3为图1中步骤300的细化步骤流程图。FIG. 3 is a flow chart of the refinement step of step 300 in FIG. 1.
图4为图1中步骤300的进一步实施例的细化步骤流程图。4 is a flow chart of the refinement steps of a further embodiment of step 300 of FIG. 1.
图5为一实施例提供的一种基于嵌入式web的机顶盒调试方法的流程图。FIG. 5 is a flowchart of a method for debugging a set top box based on an embedded web according to an embodiment.
图6为一实施例提供的又一种基于嵌入式web的机顶盒调试方法的流程图。FIG. 6 is a flowchart of still another method for debugging a set top box based on an embedded web according to an embodiment.
图7为一实施例提供的又一种基于嵌入式web的机顶盒调试方法的流程图。FIG. 7 is a flowchart of still another method for debugging a set top box based on an embedded web according to an embodiment.
图8为一实施例提供的一种基于嵌入式web的机顶盒调试***的功能原理框图。FIG. 8 is a functional block diagram of an embedded web-based set-top box debugging system according to an embodiment.
图9为一实施例提供的一种基于嵌入式web的机顶盒调试***的登录与验证模块的功能原理框图。 FIG. 9 is a functional block diagram of a login and verification module of a set-top box debugging system based on an embedded web according to an embodiment.
图10为一实施例提供的一种基于嵌入式web的机顶盒调试***的指令执行显示模块的功能原理框图。FIG. 10 is a functional block diagram of an instruction execution display module of an embedded web-based set top box debugging system according to an embodiment.
图11为一实施例提供的一种基于嵌入式web的机顶盒调试***的指令执行显示模块进一步的功能原理框图。FIG. 11 is a further functional block diagram of an instruction execution display module of an embedded web-based set top box debugging system according to an embodiment.
图12为一实施例提供的一种机顶盒调试***的结构框图。FIG. 12 is a structural block diagram of a set top box debugging system according to an embodiment.
图13为一实施例提供的又一种机顶盒调试***的结构框图。FIG. 13 is a structural block diagram of still another set top box debugging system according to an embodiment.
图14为一实施例提供的一种机顶盒的硬件结构示意图。FIG. 14 is a schematic structural diagram of hardware of a set top box according to an embodiment.
图15为一实施例提供的一种计算机的硬件结构示意图。FIG. 15 is a schematic structural diagram of a hardware of a computer according to an embodiment.
具体实施方式detailed description
本实施例提供了一种基于嵌入式万维网web服务器的机顶盒调试方法的流程图,如图1所示,该方法包括:步骤100、集成嵌入式web服务器的机顶盒启动后,自动启动web服务器,进入侦听端口状态。The embodiment provides a flowchart of a set-top box debugging method based on an embedded web server. As shown in FIG. 1 , the method includes: Step 100: After the set-top box of the integrated embedded web server is started, the web server is automatically started, and the method is started. Listen for port status.
机顶盒中集成有Web服务器,Web服务器也可称为Web Server,机顶盒可称为STB终端。可以在机顶盒集成GoAhead类型的嵌入式web服务器。GoAhead类型的嵌入式web服务器是一个源码免费、功能强大、可以在多个平台运行的嵌入式WebServer。STB终端启动时,自动启动web Server,进入侦听端口状态。A web server is integrated in the set top box, and the web server can also be called a web server. The set top box can be called an STB terminal. An embedded web server of the GoAhead type can be integrated in the set top box. The GoAhead-type embedded web server is a free, powerful, embedded WebServer that can run on multiple platforms. When the STB terminal starts, it automatically starts the web server and enters the listening port state.
其中步骤100之前还可以包括:Before step 100, the method may further include:
步骤S、预先在机顶盒中集成嵌入式web服务器,并设置实现web服务器的相应的功能函数及对应的功能页面。Step S: Integrating an embedded web server in the set top box in advance, and setting a corresponding function function and a corresponding function page of the web server.
STB终端集成有Web Server(例如GoAhead类型),并设置有实现Web服务端相应的ASP功能函数(tcpdump、logcat、ps、top等)及相关的功能页面。例如,TcpDump可以将网络中传送的数据包完全截获下来以提供分析。tcpdump支持针对网络层、协议、主机、网络或端口的过滤,并提供and、or和not等逻辑语句来帮助去掉无用的信息。logcat是Android中一个命令行工具,可以用于得到程序的日志log信息,ps、top和netstat等功能函数为基于linux***的调试功能函数。 The STB terminal integrates a Web Server (for example, GoAhead type), and is provided with a corresponding ASP function (tcpdump, logcat, ps, top, etc.) and related function pages for implementing the Web server. For example, TcpDump can completely intercept packets transmitted over the network to provide analysis. Tcpdump supports filtering for network layers, protocols, hosts, networks, or ports, and provides logical statements such as and, or, and not to help remove unwanted information. Logcat is a command line tool in Android, which can be used to get the log information of the program. The function functions such as ps, top and netstat are debugging functions based on the Linux system.
步骤200、计算机(personal computer,PC)端进入机顶盒对应的web服务器登陆界面,当检测到输入的验证信息正确后进入机顶盒管理页面。Step 200: The computer (personal computer, PC) enters the web server login interface corresponding to the set top box, and enters the set top box management page when it detects that the input verification information is correct.
利用PC端获取STB终端对应的web页面,并进入STB终端对应的web Server登陆界面,并根据登陆界面提示的信息,输入对应的验证信息。当web Server后台验证输入的验证信息无误后,显示出STB管理页面。The web page corresponding to the STB terminal is obtained by using the PC, and the web server login interface corresponding to the STB terminal is accessed, and corresponding verification information is input according to the information prompted by the login interface. When the verification information input by the web server background verification is correct, the STB management page is displayed.
可选地,如图2所示,步骤200可以包括:Optionally, as shown in FIG. 2, step 200 may include:
步骤201、PC端通过浏览器输入机顶盒对应的网络协议(Internet Protocol,IP)地址进入机顶盒对应的web服务器登陆界面;Step 201: The PC enters a web server login interface corresponding to the set top box by inputting a network protocol (Internet Protocol, IP) address corresponding to the set top box through the browser;
步骤202、web服务器登陆界面获取用户输入的用户名和口令,验证成功后,进入机顶盒管理界面。Step 202: The web server login interface obtains the user name and password input by the user, and after the verification succeeds, enters the set top box management interface.
PC端通过浏览器输入STB IP进入STB Web server登陆界面,输入用户名与口令后,若验证用户名和口令正常则进入STB管理页面。The PC enters the STB IP login interface through the browser and enters the STB Web server login interface. After entering the username and password, if the authentication username and password are normal, the STB management page is entered.
步骤300、PC端向机顶盒发送执行指令,机顶盒回复执行情况,并显示在PC端。Step 300: The PC sends an execution instruction to the set top box, and the set top box returns to the execution status and displays it on the PC end.
PC端接收用户指令向STB发送要执行的指令,例如调试指令,STB接收到调试指令后,回复指令执行情况,指令执行情况可能为执行中或执行失败,PC端将STB回复的指令情况进行显示,供用户查看。The PC end receives the user instruction and sends the instruction to be executed to the STB, for example, the debugging instruction. After receiving the debugging instruction, the STB replies to the execution status of the instruction, and the execution status of the instruction may be in execution or execution failure, and the PC side displays the instruction status of the STB reply. For users to view.
可选的,如图3所示,步骤300包括:Optionally, as shown in FIG. 3, step 300 includes:
步骤301、PC端通过网页的方式发起指令的执行,网页将指令发送至机顶盒;Step 301: The PC end initiates execution of the instruction by using a webpage, and the webpage sends the instruction to the set top box;
步骤302、机顶盒回复指令的执行状态,并通过网页形式在PC端呈现。Step 302: The set top box returns an execution status of the instruction, and is presented on the PC side by using a webpage form.
PC端通过网页(例如http)的方式发起指令的执行(例如:tcpdump网络抓包指令);STB回复指令的执行状况(例如:执行中、执行失败),并通过网页形式在PC端呈现,对于立即可反馈结果的指令,直接回复执行结果给PC端呈现。The PC end initiates the execution of the instruction by means of a webpage (for example, http) (for example: tcpdump network capture instruction); the execution status of the STB reply instruction (for example, execution, execution failure), and is presented on the PC side through a webpage form, for Immediately feedback the result of the instruction, directly reply to the execution result to the PC side.
可选的,如图4所示,步骤302之后还包括:Optionally, as shown in FIG. 4, after step 302, the method further includes:
步骤303、PC端通过web页面下达停止执行指令至机顶盒;Step 303: The PC sends a stop execution instruction to the set top box through the web page;
步骤304、机顶盒根据停止执行指令,结束当前执行的指令,并将执行结果 保存到指定路径,并将指定路径通过统一资源定位符(Uniform Resource Locator,URL)方式反馈给PC端;Step 304: The set top box ends the currently executed instruction according to the stop execution instruction, and executes the result. Save to the specified path, and feed the specified path to the PC through the Uniform Resource Locator (URL).
步骤305、PC端根据机顶盒反馈的URL下载指令的执行结果。Step 305: The PC end downloads an execution result of the instruction according to the URL fed back by the set top box.
当执行者需要停止执行指令时,通过网页下达停止执行指令给STB端;STB接收到停止指令后,结束当前执行的指令,并将执行结果保存到指定路径,并把路径通过URL方式反馈给PC端;PC端通过STB反馈的URL下载指令的执行结果,供维护人员进行问题分析。When the executor needs to stop executing the instruction, the execution instruction is sent to the STB through the webpage; after receiving the stop instruction, the STB ends the currently executed instruction, saves the execution result to the specified path, and feeds the path to the PC through the URL method. The PC end downloads the execution result of the URL through the feedback of the STB for maintenance personnel to analyze the problem.
本公开还提出了一种基于嵌入式web的机顶盒调试方法的时序图,分别是PC管理端和STB终端,即机顶盒。如图5所示,时序如下包括:The present disclosure also proposes a timing diagram of a set-top box debugging method based on an embedded web, which is a PC management terminal and an STB terminal, that is, a set top box. As shown in Figure 5, the timing is as follows:
STB终端启动Web Sever;The STB terminal starts the Web Sever;
PC管理端启动浏览器;The PC management terminal launches the browser;
PC管理端在浏览器输入STB IP地址通过验证信息认证登陆Web Server;The PC management terminal enters the STB IP address in the browser and logs in to the Web Server through authentication information authentication;
浏览器进入STB Web Server管理页面;The browser enters the STB Web Server management page;
PC端通过web页面开始执行指令;The PC side starts executing instructions through the web page;
STB回复指令正在执行中;STB reply instruction is being executed;
PC端通过web页面发起停止执行指令;The PC end initiates execution of the instruction through the web page;
STB停止指令执行且反馈执行结果;STB stops instruction execution and feeds back execution results;
PC端通过web页面下载执行结果。The PC side downloads the execution result through the web page.
由以上方法实施例,可知本实施例提出一种基于嵌入式web的机顶盒调试方法,通过在嵌入式设备(机顶盒)中移植嵌入式web服务器,使得嵌入式设备(机顶盒)具备Web服务器功能,用户与维护人员可以在任何地方输入机顶盒的IP通过浏览器对机顶盒进行远程监控、维护和数据交互等功能。本实施例中PC管理端不需要额外的应用程序,仅需要一个http浏览器,所有工作都在STB端完成,利于维护与升级;不受地理与空间限制,只要可以接上网络就可以通过网络对STB终端进行管理与调试;STB终端不需要焊接专用的串行接口(RS232),节约了生产成本;通过对调试指令的控制,比开放adb、telnet等传统调试方法更为安全。According to the above method embodiment, it can be seen that the embodiment provides a set-top box debugging method based on an embedded web, and the embedded device (set top box) is provided with a web server function by using an embedded web server in an embedded device (set top box). The maintenance personnel can input the IP of the set-top box anywhere, and remotely monitor, maintain and exchange data with the set-top box through the browser. In this embodiment, the PC management terminal does not need an additional application, only needs an http browser, and all work is completed on the STB side, which is convenient for maintenance and upgrade; and is not limited by geography and space, as long as it can be connected to the network, it can pass through the network. The STB terminal is managed and debugged; the STB terminal does not need to be soldered with a dedicated serial interface (RS232), which saves production costs; it is safer than traditional open debugging methods such as adb and telnet by controlling the debugging instructions.
参考图6,一实施例中提供一种机顶盒的调试方法,该方法包括: Referring to FIG. 6, an embodiment provides a method for debugging a set top box, where the method includes:
步骤610、在机顶盒中集成的嵌入式万维网web服务器启动并进入侦听端口状态后,计算机显示嵌入式web服务器的登陆界面,并当检测到登陆界面中输入的验证信息正确后,显示机顶盒管理页面。Step 610: After the embedded web server integrated in the set top box starts and enters the listening port state, the computer displays the login interface of the embedded web server, and displays the set top box management page when detecting that the verification information entered in the login interface is correct. .
步骤620、计算机根据机顶盒管理页面向机顶盒发送调试指令,以使机顶盒执行调试指令。Step 620: The computer sends a debugging instruction to the set top box according to the set top box management page, so that the set top box executes the debugging instruction.
步骤630、计算机接收并显示调试指令的执行结果。Step 630: The computer receives and displays the execution result of the debugging instruction.
本实施例的方法,通过在机顶盒中移植嵌入式万维网web服务器,使得机顶盒具备Web服务器功能,用户与维护人员可以在任何地方通过计算机浏览器输入机顶盒IP地址对机顶盒进行远程监控、维护和数据交互等功能。In the method of the embodiment, the embedded set-top web server is transplanted in the set-top box, so that the set-top box has the function of the web server, and the user and the maintenance personnel can remotely monitor, maintain, and interact with the set-top box by inputting the IP address of the set-top box through a computer browser anywhere. And other functions.
可选地,其中,所述机顶盒中设置有实现所述嵌入式web服务器的相应的功能函数及对应的功能页面。Optionally, wherein the set top box is provided with a corresponding function function and a corresponding function page for implementing the embedded web server.
可选地,其中,所述计算机显示嵌入式web服务器的登陆界面,当检测到所述登陆界面中输入的验证信息正确后,显示机顶盒管理页面的步骤包括:Optionally, the computer displays a login interface of the embedded web server, and when detecting that the verification information entered in the login interface is correct, the step of displaying the set top box management page includes:
所述计算机通过内置的浏览器输入与所述机顶盒对应的网络协议IP地址以显示所述登陆界面;The computer inputs a network protocol IP address corresponding to the set top box through a built-in browser to display the login interface;
所述计算机获取用户输入的用户名和口令,在所述用户名和所述口令验证成功后,显示所述机顶盒管理页面。The computer acquires a user name and password input by the user, and after the user name and the password are successfully verified, the set top box management page is displayed.
可选地,其中,所述计算机根据所述机顶盒管理页面向所述机顶盒发送调试指令,以使所述机顶盒执行所述调试指令的步骤包括:Optionally, the step of the computer sending a debugging instruction to the set top box according to the set top box management page, so that the set top box executes the debugging instruction comprises:
所述计算机通过网页的方式发起所述调试指令的执行,在所述网页中将所述调试指令发送至所述机顶盒;The computer initiates execution of the debugging instruction by means of a webpage, and sends the debugging instruction to the set top box in the webpage;
所述计算机接收并显示所述调试指令的执行结果的步骤包括:The step of the computer receiving and displaying the execution result of the debugging instruction includes:
所述计算机接收所述机顶盒回复的所述调试指令的执行结果,并通过网页形式呈现出所述执行结果。The computer receives an execution result of the debugging instruction replied by the set top box, and presents the execution result in a webpage form.
可选地,其中,所述计算机接收并显示所述调试指令的执行结果的步骤之后还包括:Optionally, after the step of the computer receiving and displaying the execution result of the debugging instruction, the method further includes:
所述计算机通过所述网页下达停止执行指令至所述机顶盒,以使所述机顶盒根据所述停止执行指令结束当前执行的调试指令,并将所述停止执行指令的 执行结果保存到指定路径,以及将所述指定路径通过统一资源定位符URL的方式反馈给所述计算机;Sending, by the webpage, the execution instruction to the set top box by the webpage, so that the set top box ends the currently executed debugging instruction according to the stop execution instruction, and stops the execution of the instruction The execution result is saved to the specified path, and the specified path is fed back to the computer by means of a uniform resource locator URL;
所述计算机根据所述机顶盒反馈的URL下载所述停止执行指令的执行结果。The computer downloads an execution result of the stop execution instruction according to a URL fed back by the set top box.
参考图7,一实施例提供又一种机顶盒调试方法,该方法包括:Referring to FIG. 7, an embodiment provides another method for debugging a set top box, where the method includes:
步骤710、机顶盒启动后,启动机顶盒内置的嵌入式万维网web服务器以进入侦听状态。Step 710: After the set top box is started, the embedded web server built in the set top box is started to enter a listening state.
步骤720、机顶盒接收并执行计算机通过web服务器向机顶盒发送的调试指令。Step 720: The set top box receives and executes a debugging instruction sent by the computer to the set top box through the web server.
步骤730、机顶盒向计算机发送调试指令的执行结果。Step 730: The set top box sends an execution result of the debugging instruction to the computer.
本实施例的方法,通过在机顶盒中移植嵌入式万维网web服务器,使得机顶盒具备Web服务器功能,用户与维护人员可以在任何地方在浏览器中输入机顶盒IP,通过网络对机顶盒进行远程监控、维护和数据交互等功能。In the method of the embodiment, the embedded set-top web server is transplanted in the set-top box, so that the set-top box has the function of the web server, and the user and the maintenance personnel can input the set-top box IP in the browser anywhere, and remotely monitor and maintain the set-top box through the network. Data interaction and other functions.
可选地,其中,所述机顶盒中设置有实现所述嵌入式web服务器的相应的功能函数及对应的功能页面。一实施例中提供了一种基于嵌入式web的机顶盒调试***的功能原理框图,如图8所示,该***包括:Optionally, wherein the set top box is provided with a corresponding function function and a corresponding function page for implementing the embedded web server. In an embodiment, a functional block diagram of a set-top box debugging system based on an embedded web is provided. As shown in FIG. 8, the system includes:
侦听模块100,设置为集成嵌入式web服务器的机顶盒启动后,自动启动web服务器,进入侦听端口状态;可参考方法实施例所述的内容。The listening module 100, after the set-top box is set to be integrated with the embedded web server, automatically starts the web server and enters the listening port state; refer to the content described in the method embodiment.
登录与验证模块200,设置为PC端进入机顶盒对应的web服务器登陆界面,当检测到输入的验证信息正确后进入机顶盒管理页面;可参考方法实施例所述的内容。The login and verification module 200 is configured to enter the web server login interface corresponding to the set top box of the PC, and enter the set top box management page when the input verification information is detected correctly; refer to the content described in the method embodiment.
指令执行显示模块300,设置为PC端向机顶盒发送执行指令,机顶盒回复执行情况,并显示在PC端;可参考方法实施例所述的内容。The instruction execution display module 300 is configured to send an execution instruction to the set top box by the PC end, and the set top box replies to the execution status and displays it on the PC side; reference may be made to the content described in the method embodiment.
可选地,基于嵌入式web的机顶盒调试***,其中,***还包括:Optionally, the embedded web-based set-top box debugging system, wherein the system further comprises:
预先设置模块,设置为预先在机顶盒中集成嵌入式web服务器,并设置实现web服务器的相应的功能函数及对应的功能页面;可参考方法实施例所述的内容。The preset module is configured to integrate the embedded web server in the set top box in advance, and set corresponding function functions and corresponding function pages of the web server; refer to the content described in the method embodiment.
可选地,如图9所示,登录与验证模块200还包括:Optionally, as shown in FIG. 9, the login and verification module 200 further includes:
网页登录单元201,设置为PC端通过浏览器输入机顶盒对应的IP进入机顶 盒对应的web服务器登陆界面;可参考方法实施例所述的内容。The webpage registration unit 201 is configured to enter the top of the set top box by using a browser to enter the top of the set by the browser. The corresponding web server login interface of the box; reference may be made to the content described in the method embodiment.
验证单元202,设置为web服务器登陆界面获取用户输入的用户名和口令,验证成功后,进入web服务器登陆界面;可参考方法实施例所述的内容。The verification unit 202 is configured to obtain the user name and password input by the user by using the web server login interface. After the verification is successful, the user enters the web server login interface; refer to the content described in the method embodiment.
可选地,如图10所示,指令执行显示模块300还包括:Optionally, as shown in FIG. 10, the instruction execution display module 300 further includes:
指令发送单元301,设置为PC端通过网页的方式发起指令的执行,网页将指令发送至机顶盒;可参考方法实施例所述的内容。The instruction sending unit 301 is configured to initiate execution of the instruction by using the webpage by the PC, and the webpage sends the instruction to the set top box; refer to the content described in the method embodiment.
指令显示单元302,设置为机顶盒回复指令的执行状态,并通过网页形式在PC端呈现;可参考方法实施例所述的内容。The instruction display unit 302 is configured to set the execution status of the set-top box reply instruction, and is presented on the PC side through a webpage form; reference may be made to the content described in the method embodiment.
可选地,如图11所示,指令执行显示模块300还包括:Optionally, as shown in FIG. 11, the instruction execution display module 300 further includes:
停止执行指令发送单元303,设置为PC端通过页面下达停止执行指令至机顶盒;可参考方法实施例所述的内容。The execution instruction transmitting unit 303 is stopped, and the PC terminal is configured to stop executing the instruction to the set top box through the page; refer to the content described in the method embodiment.
执行结果存储与反馈单元304,设置为机顶盒根据停止执行指令,结束当前执行的指令,并将执行结果保存到指定路径,并将指定路径通过URL方式反馈给PC端;可参考方法实施例所述的内容。The execution result storage and feedback unit 304 is configured to set the set-top box to execute the currently executed instruction according to the stop execution instruction, and save the execution result to the specified path, and feed the specified path to the PC through the URL method; Content.
执行结果获取单元305,设置为PC端根据机顶盒反馈的URL下载指令的执行结果;可参考方法实施例所述的内容。The execution result obtaining unit 305 is configured to perform an execution result of the URL download instruction according to the feedback of the set-top box by the PC; reference may be made to the content described in the method embodiment.
综上所述,本实施例提供了一种基于嵌入式web的机顶盒调试方法及***,方法包括:集成嵌入式web服务器的机顶盒启动后,自动启动web服务器,进入侦听端口状态;PC端进入机顶盒对应的web服务器登陆界面,当检测到输入的验证信息正确后进入机顶盒管理页面;PC端向机顶盒发送执行指令,机顶盒回复执行情况,并显示在PC端。本实施例通过PC端即可通过网络对机顶盒进行调试,无需在机顶盒上焊接专用的接口,节约生产成本,所有调试工作的执行在机顶盒完成,有利于维修人员对机顶盒的维护和升级,通过网络对调试指令控制,比开放代码调试方法更安全。In summary, the embodiment provides a method and a system for debugging a set top box based on an embedded web. The method includes: after the set top box integrated with the embedded web server is started, the web server is automatically started, and the state of the listening port is entered; the PC enters The web server login interface corresponding to the set top box enters the set top box management page when the input verification information is detected correctly; the PC end sends an execution instruction to the set top box, and the set top box replies to the execution status and displays it on the PC side. In this embodiment, the set-top box can be debugged through the network through the PC end, no special interface is needed to be welded on the set-top box, and the production cost is saved. The execution of all the debugging work is completed in the set-top box, which is beneficial to the maintenance personnel to maintain and upgrade the set-top box through the network. Control of debug instructions is more secure than open code debugging.
参考图12,一实施例中提供一种机顶盒的调试***,包括:验证模块1210、指令执行模块1220和执行结果显示模块1230,Referring to FIG. 12, an embodiment provides a debugging system for a set top box, including: a verification module 1210, an instruction execution module 1220, and an execution result display module 1230.
验证模块1210,设置为在所述机顶盒中集成的嵌入式万维网web服务器启动并进入侦听端口状态后,显示嵌入式web服务器的登陆界面,并当检测到所 述登陆界面中输入的验证信息正确后,显示机顶盒管理页面;The verification module 1210 is configured to display the login interface of the embedded web server after the embedded web server integrated in the set top box starts and enters the listening port state, and detects the After the verification information entered in the login interface is correct, the set top box management page is displayed;
指令执行模块1220,设置为根据所述机顶盒管理页面向所述机顶盒发送调试指令,以使所述机顶盒执行所述调试指令;The instruction execution module 1220 is configured to send a debugging instruction to the set top box according to the set top box management page, so that the set top box executes the debugging instruction;
执行结果显示模块1230,设置为接收并显示所述调试指令的执行结果。The execution result display module 1230 is configured to receive and display an execution result of the debug instruction.
本实施例的调试***,通过在机顶盒中移植嵌入式万维网web服务器,使得机顶盒具备Web服务器功能,用户与维护人员可以在任何地方在浏览器中输入机顶盒IP,通过网络对机顶盒进行远程监控、维护和数据交互等功能。In the debugging system of the embodiment, the embedded set-top web server is transplanted in the set-top box, so that the set-top box has the function of the web server, and the user and the maintenance personnel can input the set-top box IP in the browser anywhere, and remotely monitor and maintain the set-top box through the network. And other functions such as data interaction.
可选地,其中,所述机顶盒中设置有实现所述嵌入式web服务器的相应的功能函数及对应的功能页面。Optionally, wherein the set top box is provided with a corresponding function function and a corresponding function page for implementing the embedded web server.
可选地,其中,验证模块1210是设置为:通过浏览器输入与所述机顶盒对应的网络协议IP地址以显示所述登陆界面;获取用户输入的用户名和口令,在所述用户名和所述口令验证成功后,显示所述机顶盒管理页面。Optionally, the verification module 1210 is configured to: input a network protocol IP address corresponding to the set top box through a browser to display the login interface; obtain a user name and password input by the user, where the user name and the password After the verification is successful, the set top box management page is displayed.
可选地,其中,指令执行模块1220是设置为:通过网页的方式发起所述调试指令的执行,在所述网页中将所述调试指令发送至所述机顶盒;Optionally, the instruction execution module 1220 is configured to: initiate execution of the debugging instruction by using a webpage, and send the debugging instruction to the set top box in the webpage;
执行结果显示模块1230是设置为:接收所述机顶盒回复的所述调试指令的执行结果,并通过网页形式呈现出所述执行结果。The execution result display module 1230 is configured to: receive an execution result of the debug command replied by the set top box, and present the execution result in a webpage form.
可选地,其中,所述指令执行模块1220还设置为:Optionally, the instruction execution module 1220 is further configured to:
在所述接收并显示所述调试指令的执行结果的步骤之后,通过所述网页下达停止执行指令至所述机顶盒,以使所述机顶盒根据所述停止执行指令结束当前执行的调试指令,并将所述停止执行指令的执行结果保存到指定路径,以及接收通过统一资源定位符URL的方式反馈的所述指定路径;After the step of receiving and displaying the execution result of the debug instruction, stopping execution of the instruction to the set top box through the web page, so that the set top box ends the currently executed debug instruction according to the stop execution instruction, and Saving the execution result of the execution execution instruction to the specified path, and receiving the specified path fed back by means of the uniform resource locator URL;
所述调试***还包括:下载模块1240,The debugging system further includes: a downloading module 1240,
所述下载模块1240设置为根据所述机顶盒反馈的URL下载所述停止执行指令的执行结果。The downloading module 1240 is configured to download an execution result of the stop execution instruction according to a URL fed back by the set top box.
参考图13,一实施例中提供一种机顶盒调试***,该***包括:侦听检测模块1310和指令接收执行模块1320,Referring to FIG. 13, an embodiment provides a set top box debugging system, which includes: a listening detection module 1310 and an instruction receiving execution module 1320.
侦听检测模块1310,设置为在所述机顶盒启动后,启动所述机顶盒内置的嵌入式万维网web服务器以进入侦听状态; The interception detection module 1310 is configured to: after the set top box is started, start an embedded web server built in the set top box to enter a listening state;
指令接收执行模块1320,设置为接收并执行计算机通过所述web服务器向所述机顶盒发送的调试指令,以及向所述计算机发送所述调试指令的执行结果。The instruction receiving execution module 1320 is configured to receive and execute a debugging instruction sent by the computer to the set top box by the web server, and send an execution result of the debugging instruction to the computer.
本实施例的调试***,通过在机顶盒中移植嵌入式万维网web服务器,使得机顶盒具备Web服务器功能,用户与维护人员可以在任何地方在浏览器中输入机顶盒IP,通过网络对机顶盒进行远程监控、维护和数据交互等功能。In the debugging system of the embodiment, the embedded set-top web server is transplanted in the set-top box, so that the set-top box has the function of the web server, and the user and the maintenance personnel can input the set-top box IP in the browser anywhere, and remotely monitor and maintain the set-top box through the network. And other functions such as data interaction.
可选地,其中,所述机顶盒中设置有实现所述嵌入式web服务器的相应的功能函数及对应的功能页面。Optionally, wherein the set top box is provided with a corresponding function function and a corresponding function page for implementing the embedded web server.
一实施例还提供一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行上述任一方法。An embodiment further provides a computer readable storage medium storing computer executable instructions for performing any of the methods described above.
图14是根据本实施例的一种机顶盒的硬件结构示意图,如图14所示,该机顶盒包括:一个或多个处理器1410和存储器1420。图14中以一个处理器1410为例。FIG. 14 is a schematic diagram showing the hardware structure of a set top box according to the present embodiment. As shown in FIG. 14, the set top box includes: one or more processors 1410 and a memory 1420. A processor 1410 is taken as an example in FIG.
所述机顶盒还可以包括:输入装置1430和输出装置1440。The set top box may further include: an input device 1430 and an output device 1440.
所述机顶盒中的处理器1410、存储器1420、输入装置1430和输出装置1440可以通过总线或者其他方式连接,图14中以通过总线连接为例。The processor 1410, the memory 1420, the input device 1430, and the output device 1440 in the set top box may be connected by a bus or other means, and the bus connection is taken as an example in FIG.
输入装置1430可以接收输入的数字或字符信息,输出装置1440可以包括显示屏等显示设备。 Input device 1430 can receive input numeric or character information, and output device 1440 can include a display device such as a display screen.
存储器1420作为一种计算机可读存储介质,可用于存储软件程序、计算机可执行程序以及模块。处理器1410通过运行存储在存储器1420中的软件程序、指令以及模块,从而执行多种功能应用以及数据处理,以实现上述实施例中的任意一种执行主体为机顶盒的调试方法。The memory 1420 is a computer readable storage medium that can be used to store software programs, computer executable programs, and modules. The processor 1410 executes a plurality of functional applications and data processing by executing software programs, instructions, and modules stored in the memory 1420 to implement a debugging method in which the execution subject is a set top box.
存储器1420可以包括存储程序区和存储数据区,其中,存储程序区可存储操作***、至少一个功能所需要的应用程序;存储数据区可存储根据机顶盒的使用所创建的数据等。此外,存储器可以包括随机存取存储器(Random Access Memory,RAM)等易失性存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件或者其他非暂态固态存储器件。The memory 1420 may include a storage program area and an storage data area, wherein the storage program area may store an operating system, an application required for at least one function; the storage data area may store data created according to usage of the set top box, and the like. In addition, the memory may include volatile memory such as random access memory (RAM), and may also include non-volatile memory such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device.
存储器1420可以是非暂态计算机存储介质或暂态计算机存储介质。该非暂 态计算机存储介质,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实施例中,存储器1420可选包括相对于处理器1410远程设置的存储器,这些远程存储器可以通过网络连接至机顶盒。上述网络的实例可以包括互联网、企业内部网、局域网、移动通信网及其组合。 Memory 1420 can be a non-transitory computer storage medium or a transitory computer storage medium. Non-temporary State computer storage medium, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, memory 1420 can optionally include memory remotely located relative to processor 1410, which can be connected to the set top box via a network. Examples of the above networks may include the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
输入装置1430可用于接收输入的数字或字符信息,以及产生与机顶盒的用户设置以及功能控制有关的键信号输入。输出装置1440可包括显示屏等显示设备。 Input device 1430 can be used to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the set top box. The output device 1440 can include a display device such as a display screen.
本实施例的机顶盒还可以包括通信装置1450,通过通信网络传输和/或接收信息。The set top box of this embodiment may also include communication means 1450 for transmitting and/or receiving information over a communication network.
本领域普通技术人员可理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来执行相关的硬件来完成的,该程序可存储于一个非暂态计算机可读存储介质中,该程序在执行时,可包括如上述方法的实施例的流程,其中,该非暂态计算机可读存储介质可以为磁碟、光盘、只读存储记忆体(ROM)或随机存储记忆体(RAM)等。A person skilled in the art can understand that all or part of the process of implementing the above embodiment method can be completed by executing related hardware by a computer program, and the program can be stored in a non-transitory computer readable storage medium. The program, when executed, may include the flow of an embodiment of the method as described above, wherein the non-transitory computer readable storage medium may be a magnetic disk, an optical disk, a read only memory (ROM), or a random access memory (RAM). Wait.
图15是根据本实施例的一种计算机的硬件结构示意图,如图15所示,该计算机包括:一个或多个处理器1510和存储器1520。图15中以一个处理器1510为例。15 is a diagram showing the hardware structure of a computer according to the present embodiment. As shown in FIG. 15, the computer includes one or more processors 1510 and a memory 1520. A processor 1510 is taken as an example in FIG.
所述计算机还可以包括:输入装置1530和输出装置1540。The computer may also include an input device 1530 and an output device 1540.
所述计算机中的处理器1510、存储器1520、输入装置1530和输出装置1540可以通过总线或者其他方式连接,图15中以通过总线连接为例。The processor 1510, the memory 1520, the input device 1530, and the output device 1540 in the computer may be connected by a bus or other means, and the bus connection is taken as an example in FIG.
输入装置1530可以接收输入的数字或字符信息,输出装置1540可以包括显示屏等显示设备。The input device 1530 can receive input numeric or character information, and the output device 1540 can include a display device such as a display screen.
存储器1520作为一种计算机可读存储介质,可用于存储软件程序、计算机可执行程序以及模块。处理器1510通过运行存储在存储器1520中的软件程序、指令以及模块,从而执行多种功能应用以及数据处理,以实现上述实施例中的任意一种执行主体为计算机的调试方法。The memory 1520 is a computer readable storage medium that can be used to store software programs, computer executable programs, and modules. The processor 1510 executes a plurality of functional applications and data processing by executing software programs, instructions, and modules stored in the memory 1520 to implement a debugging method of any one of the above embodiments.
存储器1520可以包括存储程序区和存储数据区,其中,存储程序区可存储操作***、至少一个功能所需要的应用程序;存储数据区可存储根据计算机的 使用所创建的数据等。此外,存储器可以包括随机存取存储器(Random Access Memory,RAM)等易失性存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件或者其他非暂态固态存储器件。The memory 1520 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function; the storage data area may be stored according to a computer Use the created data, etc. In addition, the memory may include volatile memory such as random access memory (RAM), and may also include non-volatile memory such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device.
存储器1520可以是非暂态计算机存储介质或暂态计算机存储介质。该非暂态计算机存储介质,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实施例中,存储器1520可选包括相对于处理器1510远程设置的存储器,这些远程存储器可以通过网络连接至计算机。上述网络的实例可以包括互联网、企业内部网、局域网、移动通信网及其组合。 Memory 1520 can be a non-transitory computer storage medium or a transitory computer storage medium. The non-transitory computer storage medium, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, memory 1520 can optionally include memory remotely located relative to processor 1510, which can be connected to the computer via a network. Examples of the above networks may include the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
输入装置1530可用于接收输入的数字或字符信息,以及产生与计算机的用户设置以及功能控制有关的键信号输入。输出装置1540可包括显示屏等显示设备。 Input device 1530 can be used to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the computer. The output device 1540 can include a display device such as a display screen.
本实施例的计算机还可以包括通信装置1550,通过通信网络传输和/或接收信息。The computer of this embodiment may also include communication means 1550 for transmitting and/or receiving information over a communication network.
本领域普通技术人员可理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来执行相关的硬件来完成的,该程序可存储于一个非暂态计算机可读存储介质中,该程序在执行时,可包括如上述方法的实施例的流程,其中,该非暂态计算机可读存储介质可以为磁碟、光盘、只读存储记忆体(ROM)或随机存储记忆体(RAM)等。A person skilled in the art can understand that all or part of the process of implementing the above embodiment method can be completed by executing related hardware by a computer program, and the program can be stored in a non-transitory computer readable storage medium. The program, when executed, may include the flow of an embodiment of the method as described above, wherein the non-transitory computer readable storage medium may be a magnetic disk, an optical disk, a read only memory (ROM), or a random access memory (RAM). Wait.
工业实用性Industrial applicability
本公开提供一种机顶盒的调试方法和***,用户与维护人员可以在任何地方在浏览器中输入机顶盒IP,通过网络对机顶盒进行远程监控、维护和数据交互等功能。 The present disclosure provides a debugging method and system for a set top box. The user and the maintenance personnel can input the set top box IP in the browser anywhere, and perform remote monitoring, maintenance, and data interaction functions on the set top box through the network.

Claims (15)

  1. 一种机顶盒的调试方法,包括:A method for debugging a set top box, comprising:
    在所述机顶盒中集成的嵌入式万维网web服务器启动并进入侦听端口状态后,计算机显示嵌入式web服务器的登陆界面,并当检测到所述登陆界面中输入的验证信息正确后,显示机顶盒管理页面;After the embedded web server integrated in the set top box starts and enters the listening port state, the computer displays the login interface of the embedded web server, and displays the set top box management after detecting that the verification information input in the login interface is correct. page;
    所述计算机根据所述机顶盒管理页面向所述机顶盒发送调试指令,以使所述机顶盒执行所述调试指令;The computer sends a debugging instruction to the set top box according to the set top box management page, so that the set top box executes the debugging instruction;
    所述计算机接收并显示所述调试指令的执行结果。The computer receives and displays an execution result of the debug instruction.
  2. 根据权利要求1所述的调试方法,其中,The debugging method according to claim 1, wherein
    所述机顶盒中设置有实现所述嵌入式web服务器的相应的功能函数及对应的功能页面。A corresponding function function and a corresponding function page for implementing the embedded web server are disposed in the set top box.
  3. 根据权利要求2所述的调试方法,其中,所述计算机显示嵌入式web服务器的登陆界面,当检测到所述登陆界面中输入的验证信息正确后,显示机顶盒管理页面的步骤包括:The debugging method according to claim 2, wherein the computer displays a login interface of the embedded web server, and when detecting that the verification information input in the login interface is correct, the step of displaying the set top box management page comprises:
    所述计算机通过内置的浏览器输入与所述机顶盒对应的网络协议IP地址以显示所述登陆界面;The computer inputs a network protocol IP address corresponding to the set top box through a built-in browser to display the login interface;
    所述计算机获取用户输入的用户名和口令,在所述用户名和所述口令验证成功后,显示所述机顶盒管理页面。The computer acquires a user name and password input by the user, and after the user name and the password are successfully verified, the set top box management page is displayed.
  4. 根据权利要求3所述的调试方法,其中,所述计算机根据所述机顶盒管理页面向所述机顶盒发送调试指令,以使所述机顶盒执行所述调试指令的步骤包括:The debugging method according to claim 3, wherein the step of the computer transmitting a debugging instruction to the set top box according to the set top box management page, so that the set top box executes the debugging instruction comprises:
    所述计算机通过网页的方式发起所述调试指令的执行,在所述网页中将所述调试指令发送至所述机顶盒;The computer initiates execution of the debugging instruction by means of a webpage, and sends the debugging instruction to the set top box in the webpage;
    所述计算机接收并显示所述调试指令的执行结果的步骤包括:The step of the computer receiving and displaying the execution result of the debugging instruction includes:
    所述计算机接收所述机顶盒回复的所述调试指令的执行结果,并通过网页形式呈现出所述执行结果。The computer receives an execution result of the debugging instruction replied by the set top box, and presents the execution result in a webpage form.
  5. 根据权利要求4所述的调试方法,其中,所述计算机接收并显示所述调试指令的执行结果的步骤之后还包括:The debugging method according to claim 4, wherein the step of the computer receiving and displaying the execution result of the debugging instruction further comprises:
    所述计算机通过所述网页下达停止执行指令至所述机顶盒,以使所述机顶盒根据所述停止执行指令结束当前执行的调试指令,并将所述停止执行指令执行结果保存到指定路径,以及将所述指定路径通过统一资源定位符URL的方式反馈给所述计算机; Sending, by the webpage, the execution instruction to the set top box, so that the set top box ends the currently executed debugging instruction according to the stop execution instruction, and saves the execution result of the stop execution instruction to a specified path, and The specified path is fed back to the computer by means of a uniform resource locator URL;
    所述计算机根据所述机顶盒反馈的URL下载所述停止执行指令的执行结果。The computer downloads an execution result of the stop execution instruction according to a URL fed back by the set top box.
  6. 一种机顶盒的调试方法,包括:A method for debugging a set top box, comprising:
    所述机顶盒启动后,启动所述机顶盒内置的嵌入式万维网web服务器以进入侦听状态;After the set top box is started, the embedded web server built in the set top box is started to enter a listening state;
    所述机顶盒接收并执行计算机通过所述web服务器向所述机顶盒发送的调试指令;The set top box receives and executes a debugging instruction sent by the computer to the set top box by the web server;
    所述机顶盒向所述计算机发送所述调试指令的执行结果。The set top box sends an execution result of the debug instruction to the computer.
  7. 根据权利要求6所述的调试方法,其中,The debugging method according to claim 6, wherein
    所述机顶盒中设置有实现所述嵌入式web服务器的相应的功能函数及对应的功能页面。A corresponding function function and a corresponding function page for implementing the embedded web server are disposed in the set top box.
  8. 一种机顶盒的调试***,包括:A debugging system for a set top box, comprising:
    验证模块,设置为在所述机顶盒中集成的嵌入式万维网web服务器启动并进入侦听端口状态后,显示嵌入式web服务器的登陆界面,并当检测到所述登陆界面中输入的验证信息正确后,显示机顶盒管理页面;a verification module, configured to display a login interface of the embedded web server after the embedded web server integrated in the set top box starts and enters a listening port state, and when detecting that the verification information entered in the login interface is correct , display the set-top box management page;
    指令执行模块,设置为根据所述机顶盒管理页面向所述机顶盒发送调试指令,以使所述机顶盒执行所述调试指令;The instruction execution module is configured to send a debugging instruction to the set top box according to the set top box management page, so that the set top box executes the debugging instruction;
    执行结果显示模块,设置为接收并显示所述调试指令的执行结果。The execution result display module is configured to receive and display an execution result of the debug instruction.
  9. 根据权利要求8所述的调试***,其中,The debugging system according to claim 8, wherein
    所述机顶盒中设置有实现所述嵌入式web服务器的相应的功能函数及对应的功能页面。A corresponding function function and a corresponding function page for implementing the embedded web server are disposed in the set top box.
  10. 根据权利要求9所述的调试***,其中,所述验证模块是设置为:The debugging system of claim 9 wherein said verification module is configured to:
    通过浏览器输入与所述机顶盒对应的网络协议IP地址以显示所述登陆界面;Entering, by using a browser, a network protocol IP address corresponding to the set top box to display the login interface;
    获取用户输入的用户名和口令,在所述用户名和所述口令验证成功后,显示所述机顶盒管理页面。Obtaining a user name and password input by the user, and displaying the set top box management page after the user name and the password verification succeed.
  11. 根据权利要求10所述的调试***,其中,所述指令执行模块是设置为:The debugging system of claim 10, wherein the instruction execution module is configured to:
    通过网页的方式发起所述调试指令的执行,在所述网页中将所述调试指令发送至所述机顶盒;Initiating execution of the debugging instruction by means of a webpage, and sending the debugging instruction to the set top box in the webpage;
    所述执行结果显示模块是设置为:The execution result display module is set to:
    接收所述机顶盒回复的所述调试指令的执行结果,并通过网页形式呈现出所述执行结果。Receiving an execution result of the debugging instruction replied by the set top box, and presenting the execution result in a webpage form.
  12. 根据权利要求11所述的调试***,其中,所述指令执行模块还设置为: The debugging system of claim 11 wherein said instruction execution module is further configured to:
    在所述接收并显示所述调试指令的执行结果的步骤之后,通过所述网页下达停止执行指令至所述机顶盒,以使所述机顶盒根据所述停止执行指令结束当前执行的调试指令,并将所述停止执行指令的执行结果保存到指定路径,以及接收通过统一资源定位符URL的方式反馈的所述指定路径;After the step of receiving and displaying the execution result of the debug instruction, stopping execution of the instruction to the set top box through the web page, so that the set top box ends the currently executed debug instruction according to the stop execution instruction, and Saving the execution result of the execution execution instruction to the specified path, and receiving the specified path fed back by means of the uniform resource locator URL;
    所述调试***还包括:下载模块,The debugging system further includes: a downloading module,
    所述下载模块设置为根据所述机顶盒反馈的URL下载所述停止执行指令的执行结果。The downloading module is configured to download an execution result of the stop execution instruction according to a URL fed back by the set top box.
  13. 一种机顶盒的调试***,包括:A debugging system for a set top box, comprising:
    侦听检测模块,设置为在所述机顶盒启动后,启动所述机顶盒内置的嵌入式万维网web服务器以进入侦听状态;a listening detection module, configured to: after the set top box is started, start an embedded web server built in the set top box to enter a listening state;
    指令接收执行模块,设置为接收并执行计算机通过所述web服务器向所述机顶盒发送的调试指令,以及向所述计算机发送所述调试指令的执行结果。The instruction receiving execution module is configured to receive and execute a debugging instruction sent by the computer to the set top box by the web server, and send an execution result of the debugging instruction to the computer.
  14. 根据权利要求13所述的调试***,其中,The debugging system according to claim 13, wherein
    所述机顶盒中设置有实现所述嵌入式web服务器的相应的功能函数及对应的功能页面。A corresponding function function and a corresponding function page for implementing the embedded web server are disposed in the set top box.
  15. 一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求1-5和6-7中任一项的方法。 A computer readable storage medium storing computer executable instructions for performing the method of any of claims 1-5 and 6-7.
PCT/CN2017/111943 2016-11-21 2017-11-20 Method and system for set-top box debugging WO2018090995A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201611022402.7A CN106534130A (en) 2016-11-21 2016-11-21 Method and system for debugging set-top box based on embedded web
CN201611022402.7 2016-11-21

Publications (1)

Publication Number Publication Date
WO2018090995A1 true WO2018090995A1 (en) 2018-05-24

Family

ID=58353071

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/111943 WO2018090995A1 (en) 2016-11-21 2017-11-20 Method and system for set-top box debugging

Country Status (2)

Country Link
CN (1) CN106534130A (en)
WO (1) WO2018090995A1 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106534130A (en) * 2016-11-21 2017-03-22 深圳创维数字技术有限公司 Method and system for debugging set-top box based on embedded web
CN109218846B (en) * 2017-06-29 2021-08-17 中国电信股份有限公司 Method, device and system for optimizing long polling performance of set top box browser application
CN108337146B (en) * 2018-01-29 2020-12-08 深圳创维数字技术有限公司 Terminal debugging device, system and method
CN111131814A (en) * 2018-10-30 2020-05-08 深圳市茁壮网络股份有限公司 Data feedback method and device and set top box
CN110225142A (en) * 2019-07-10 2019-09-10 深圳市友华通信技术有限公司 ONU adjustment method
CN113676724B (en) * 2021-08-18 2024-02-23 中邮科通信技术股份有限公司 Automatic dial testing system and method for programs in IPTV service
CN113784117B (en) * 2021-09-13 2024-02-20 贵州广电新媒体产业发展有限公司 Online non-embedded debugging method for set top box

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1929399A (en) * 2006-09-12 2007-03-14 成都迈普产业集团有限公司 Embedded Web network management system and its interactive method
CN101409731A (en) * 2008-10-09 2009-04-15 上海第二工业大学 Remote control method for household electrical equipment through IE
CN101778130A (en) * 2009-12-30 2010-07-14 四川长虹电器股份有限公司 Remote management method of set top box
CN105933766A (en) * 2016-01-21 2016-09-07 上海东方明珠新媒体股份有限公司 WebOS system based on set top box and set top box
CN106534130A (en) * 2016-11-21 2017-03-22 深圳创维数字技术有限公司 Method and system for debugging set-top box based on embedded web

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1929399A (en) * 2006-09-12 2007-03-14 成都迈普产业集团有限公司 Embedded Web network management system and its interactive method
CN101409731A (en) * 2008-10-09 2009-04-15 上海第二工业大学 Remote control method for household electrical equipment through IE
CN101778130A (en) * 2009-12-30 2010-07-14 四川长虹电器股份有限公司 Remote management method of set top box
CN105933766A (en) * 2016-01-21 2016-09-07 上海东方明珠新媒体股份有限公司 WebOS system based on set top box and set top box
CN106534130A (en) * 2016-11-21 2017-03-22 深圳创维数字技术有限公司 Method and system for debugging set-top box based on embedded web

Also Published As

Publication number Publication date
CN106534130A (en) 2017-03-22

Similar Documents

Publication Publication Date Title
WO2018090995A1 (en) Method and system for set-top box debugging
CN107493344B (en) Method and system for Web access to Docker container
TWI524787B (en) Configuring secure wireless networks
TWI542171B (en) Automatically set the way the gateway device
CN105591819B (en) The method and device of Configuration network equipment
US8589881B2 (en) Web-based software debugging apparatus and method for remote debugging
CN107623698B (en) Method and device for remotely debugging network equipment
CN106789535B (en) IP access method and device of SSL VPN
US10432613B2 (en) HTTPS enabled client tool
CN108076123B (en) Webpage debugging method, device and system
CN110311970B (en) Remote debugging system and method thereof
CN103825881A (en) Method and apparatus for realizing redirection of WLAN user based on wireless access controller (AC)
CN110166547B (en) Terminal remote access control method
WO2015131524A1 (en) Remote access server method and web server
CN105812406A (en) Information transmission method and device based on WEB simulation terminal system
CN106911541B (en) Method and device for acquiring status information of convergence terminal
CN110781512A (en) Server user permission control method, device and system and springboard machine
CN103384246A (en) Safety supervision system login assistant method
CN111786932B (en) Account login method and device, electronic equipment and computer storage medium
CN112688981A (en) System for remotely operating Linux host through one-way isolation optical gate and implementation method
CN108363922B (en) Automatic malicious code simulation detection method and system
KR102119931B1 (en) Data communication method and device
CN112804201A (en) Method and device for acquiring equipment information
TWI803213B (en) Network connection method based on intelligent baseboard management controller
CN105554170A (en) DNS message processing method, device and system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17872676

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17872676

Country of ref document: EP

Kind code of ref document: A1