Method for remotely operating set top box to execute curl command and upload execution result based on wide area network
By starting the daemon process and cloud server collaboratively working on the OTT box side, remotely operating the set-top box to execute curl commands, solving the problem of high network problem diagnosis cost in the existing technology, achieving rapid network problem judgment, and reducing manual operation and maintenance costs.
Patent Information
- Application Number
- CN202411068300.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-06
- Publication Date
- 2024-12-13
AI Technical Summary
The existing technology lacks the way to quickly execute curl commands in a commercial environment, which leads to high cost of diagnosis of set-top box network problems and relies on manual operation and maintenance.
By starting the daemon process on the OTT box side, establishing a long link to communicate with the cloud server, configuring and pushing curl command execution policies, parsing and executing policies, uploading execution results to the cloud server, and remotely operating the set-top box to execute curl commands.
Quickly understand the accessibility of the set-top box network to the website, reduce manual operation and maintenance costs, and achieve preliminary network problem judgments.
Smart Images

Figure CN119135958A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer software technology, and specifically is a method for remotely operating a set-top box to execute a curl command and upload the execution result based on a wide area network. Background Art
[0002] As the number of set-top box products increases and the number of user usage scenarios increases, more and more problems are faced. Therefore, the operation and maintenance pressure of set-top box products is increasing. When understanding the network status of set-top boxes, the existing technology is as follows:
[0003] The existing technical solutions mainly collect system operation logs and analyze the logs in the following ways:
[0004] 1. Configure the target website address and other policy data of the "curl" command on the cloud operation management system
[0005] 2. The cloud server sends the policy configuration to the box guardian service process
[0006] 3. After receiving the command, the daemon service process executes the "cur" command.
[0007] 4. After executing the "curl" command, upload the result to the command execution service of the Feng Assistant cloud server. 5. The command execution service stores the execution result in the database.
[0008] 6. The cloud operation management system displays the execution results, including execution strategy, execution time, and execution data.
[0009] However, existing OTT products do not have a way to quickly execute curl commands in a commercial environment. Even if there is a way, it is hard-coded in a test environment and needs to rely on the debugging capabilities of developers. Summary of the invention
[0010] The purpose of this application is to provide a method for remotely operating a set-top box to execute a curl command and upload the execution result based on a wide area network, so as to solve the technical problems raised in the above background.
[0011] To achieve the above purpose, the present application discloses the following technical solution: a method for remotely operating a set-top box to execute a curl command and upload the execution result based on a wide area network, the method comprising the following steps in sequence:
[0012] Start the OTT box daemon;
[0013] Establish long link communication with cloud server;
[0014] Configure the CURL command execution strategy on the cloud graphics input terminal;
[0015] The cloud server pushes the execution policy configuration to the OTT box;
[0016] The daemon process on the OTT box side receives the execution policy and then parses it;
[0017] After parsing is complete, the underlying system command is called and executed according to the execution strategy;
[0018] Get the execution results and upload them to the cloud server;
[0019] The cloud server receives and saves the execution results, and outputs complete task data records in combination with the strategy configuration.
[0020] Preferably, the execution strategy includes execution times and / or access targets.
[0021] Beneficial effect: The method of remotely operating a set-top box based on a wide area network to execute a curl command and upload the execution result is helpful to understand the accessibility of the set-top box's current network to a certain website, thereby assisting operations and developers to quickly understand the set-top box's own network status, achieve preliminary network problem judgment and reduce the cost of manual on-site operation and maintenance. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.
[0023] Figure 1 A flowchart of a method for remotely operating a set-top box based on a wide area network to execute a curl command and upload the execution result provided in an embodiment of the present application. DETAILED DESCRIPTION
[0024] The technical solutions in the embodiments of the present application are described clearly and completely below. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present application.
[0025] In this article, the term "comprising" is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of more restrictions, the elements defined by the sentence "comprising..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0026] This embodiment mainly adopts an intelligent log analysis method for the Android system of the set-top box, such as Figure 1 As shown, the method comprises the following steps in sequence:
[0027] Start the OTT box daemon;
[0028] Establish long link communication with cloud server;
[0029] The cloud graphics input terminal configures the CURL command execution strategy; the execution strategy can include but is not limited to the number of executions, access targets, etc.
[0030] The cloud server pushes the execution policy configuration to the OTT box;
[0031] The daemon process on the OTT box side receives the execution policy and then parses it;
[0032] After parsing is complete, the underlying system command is called and executed according to the execution strategy;
[0033] Get the execution results and upload them to the cloud server;
[0034] The cloud server receives and saves the execution results, and outputs complete task data records in combination with the strategy configuration.
[0035] Based on the above, the intelligent log analysis method for the Android system of the set-top box in this embodiment realizes the remote control of the Peak Assistant wireless set-top box through the wide area network to execute the curl command. Executing the curl command helps to understand the accessibility of the current network of the set-top box to a certain website, thereby assisting operations and developers to quickly understand the network status of the set-top box itself, realize preliminary network problem judgment and reduce the cost of manual on-site operation and maintenance.
[0036] In the embodiments provided in the present application, it should be understood that the embodiments described herein can be implemented in hardware, software, firmware, middleware, code or any appropriate combination thereof. For hardware implementation, the processor can be implemented in one or more of the following units: application specific integrated circuit (ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), processor, controller, microcontroller, microprocessor, other electronic units designed to implement the functions described herein or their combination. For software implementation, part or all of the flow of the embodiment can be completed by instructing the relevant hardware through a computer program. When implemented, the above program can be stored in a computer-readable storage medium or transmitted as one or more instructions or codes on a computer-readable storage medium. Computer-readable storage media include computer storage media and communication media, wherein the communication medium includes any medium that is convenient for transmitting a computer program from one place to another. The storage medium can be any available medium that a computer can access. The computer-readable storage medium can include but is not limited to RAM, ROM, EEPROM, CD-ROM or other optical disk storage, disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of an instruction or data structure and can be accessed by a computer.
[0037] Finally, it should be noted that the above is only a preferred embodiment of the present application and is not intended to limit the present application. Although the present application has been described in detail with reference to the aforementioned embodiments, it is still possible for those skilled in the art to modify the technical solutions described in the aforementioned embodiments or to make equivalent substitutions for some of the technical features therein. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. A method for remotely operating a set-top box to execute a curl command and upload the execution result based on a wide area network, characterized in that: The method comprises the following steps in sequence: Start the OTT box daemon; Establish long link communication with cloud server; Configure the CURL command execution strategy on the cloud graphics input terminal; The cloud server pushes the execution policy configuration to the OTT box; The daemon process on the OTT box side receives the execution policy and then parses it; After parsing is complete, the underlying system command is called and executed according to the execution strategy; Get the execution results and upload them to the cloud server; The cloud server receives and saves the execution results, and outputs complete task data records in combination with the strategy configuration.
2. The method for executing curl command and uploading execution result of remotely operating a set-top box based on a wide area network according to claim 1, characterized in that: The execution strategy includes execution times and / or access targets.
