Set top box debugging method, system and equipment for realizing ADB instruction graphical configuration and medium
By binding and executing ADB instructions in the graphical interface tool, the traditional ADB command line input efficiency is solved and the graphical debugging method cannot adapt to the complex parameter configuration of set-top boxes, and an efficient and simplified set-top box debugging process is achieved.
Patent Information
- Application Number
- CN202411161337.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-22
- Publication Date
- 2024-11-15
AI Technical Summary
The traditional ADB command line input method is inefficient in set-top box debugging, and the existing ADB graphical debugging method cannot meet the needs of complex parameter configuration of set-top box, making debugging difficult.
Provides a set-top box debugging method for graphical configuration of ADB instructions. By adding connection components and debugging components to the graphical interface tool, binding ADB instructions, and executing instructions in preset order in the debugging graphical interface, simplifying the debugging process.
It realizes the rapid execution of instructions by clicking the component at one time, improves debugging efficiency, reduces the possibility of human input errors, adapts to diverse debugging needs, has reliable design principles and simple structure.
Smart Images

Figure CN118972550A_ABST
Abstract
Description
Background Art
[0002] Set-top boxes are becoming more and more important as an important part of modern home entertainment equipment. During the development and testing of set-top box functions, it is necessary to debug and optimize software and hardware through data monitoring and collection. The debugging process involves a large number of command debugging actions. The traditional conventional operation method is to input and execute commands through the ADB command line interface. Usually, the development of a set-top box function requires repeated debugging of commands to verify the correct data results. Frequent command input seriously affects the debugging efficiency. Therefore, the traditional ADB command line input method cannot meet the frequent debugging needs of set-top boxes.
[0003] Currently, some ADB graphical command debugging methods have appeared on the market, but they only stay at the conventional general ADB command shortcuts, and there is no ADB graphical debugging method for debugging set-top boxes. The operating system of the set-top box is mostly an Android system customized according to user needs. The debugging process involves a lot of parameter configuration and settings other than general commands, and the command fields of such configuration parameters are often relatively long. Entering each debugging command is very cumbersome, which greatly increases the difficulty of debugging.
[0004] This is a shortcoming of the prior art. Therefore, in view of the above-mentioned defects in the prior art, it is very necessary to provide a set-top box debugging method, system, device and medium for realizing graphical configuration of ADB commands. Summary of the invention
[0005] The above-mentioned traditional method of manually inputting ADB command lines for set-top box debugging in the prior art obviously cannot meet the debugging efficiency requirements. The existing ADB command graphical debugging method on the market has not been applied in set-top box debugging, and the existing ADB command graphical method is only for general commands, which cannot adapt to the defects of complex parameter configuration settings for set-top box debugging. The present invention provides a set-top box debugging method, system, device and medium for implementing ADB command graphical configuration to solve the above technical problems. In the first aspect, the present invention provides a set-top box debugging method for implementing ADB command graphical configuration, comprising the following steps:
[0006] S1. Add a set-top box connection component and a set-top box debugging component in the graphical interface tool;
[0007] S2 will connect the components and connect the set-top box ADB command to bind, and each debugging component and the corresponding preset debugging set-top box ADB command to bind, generate a set-top box debugging graphical interface;
[0008] S3. After the connection component is connected to the set-top box in the set-top box debugging graphical interface, the debugging component is executed in a pre-set execution order to run each preset debugging set-top box ADB command to obtain the set-top box debugging result.
[0009] Furthermore, the specific steps of step S1 are as follows:
[0010] S11. Designing a pattern of connecting components in a graphical interface tool and selecting a type of connecting components;
[0011] S12 obtains the number of ADB commands for debugging the set-top box and designs an equal number of debugging components in the graphical interface tool;
[0012] S13. Select the type of the set-top box debugging component, design the pattern of the set-top box debugging component, and display the execution sequence number in the debugging component pattern according to the execution order.
[0013] Furthermore, the specific steps of step S2 are as follows:
[0014] S21 preload the ADB command to connect the set-top box in the graphical interface tool, and bind the ADB command to connect the set-top box to the connection component;
[0015] S22. Load the preset ADB commands for debugging set-top boxes in the graphical interface tool, and bind the debugging components with the corresponding execution sequence numbers in the execution order;
[0016] S23 sets the display component in the graphical interface work, and establishes a connection between the display component and the execution results of each debugging component;
[0017] S24. Output the connection component, display component and each debugging component as a set-top box debugging graphical interface. Further, the specific steps of step S21 are as follows:
[0018] S211. Establish a connection between the graphical interface tool and the ADB command line tool;
[0019] S212 obtains the port number of the set-top box and preloads the ADB command for connecting to the set-top box;
[0020] S213. Use the port number of the set-top box as a parameter of the ADB command for connecting to the set-top box, and bind the connection component. Further, the specific steps of step S22 are as follows:
[0021] S221 obtains and analyzes the ADB commands of each debugging set-top box in turn;
[0022] When the ADB command for debugging the set-top box is only a general command, go to step S222;
[0023] When the ADB instruction for debugging the set-top box is command+parameter, go to step S223;
[0024] When the ADB instruction for debugging the set-top box is command+parameter+value, go to step S226;
[0025] S222. The general instructions of the ADB instructions for debugging the set-top box are bound to the debugging components corresponding to the execution sequence in the execution order, and the process proceeds to step S23;
[0026] S223 determines whether the number of ADB commands for debugging set-top boxes with the same command and different parameters is greater than the set threshold;
[0027] If not, proceed to step S224;
[0028] If yes, go to step S225;
[0029] S224. Bind the command + parameter of the ADB instruction of the debug set-top box to the debug component corresponding to the execution sequence number in the execution order;
[0030] S225. Add parameter acquisition component, debug the command of the ADB command of the set-top box + the value of the parameter acquisition component is bound to the debugging component corresponding to the execution sequence number in the execution order, and enter step S23;
[0031] S226. Determine whether the number of ADB instructions for debugging set-top boxes with the same command, the same parameters and different values is greater than a set threshold;
[0032] If not, proceed to step S227;
[0033] If yes, go to step S228;
[0034] S227. Bind the command + parameter + value of the ADB instruction of the debug set-top box to the debug component corresponding to the execution sequence in the execution order, and proceed to step S23;
[0035] S228. Add a value acquisition component, and bind the command + parameter + value acquisition component value of the ADB instruction of the debugging set-top box to the debugging component of the corresponding execution sequence number according to the execution order.
[0036] Furthermore, the specific steps of step S3 are as follows:
[0037] S31 configures the test machine and the set-top box network connectivity, and executes the set-top box debugging graphical interface on the test machine; S32 responds to the user's action to execute the connection component, connecting the set-top box;
[0038] S33. In response to the actions of the debugging components executed in sequence by the user, the ADB instructions corresponding to the debugging set-top box are executed, and the debugging results are displayed.
[0039] Furthermore, the specific steps of step S32 are as follows:
[0040] S321. When the connection component is triggered by the user, the ADB command and its parameters for connecting to the set-top box are automatically input into the underlying ADB command line tool;
[0041] S322. The ADB command tool parses the parameters of the ADB command for connecting to the set-top box and identifies the port of the set-top box for connecting to the set-top box;
[0042] If the connection is successful, go to step S33;
[0043] If the connection fails, the set-top box connection error is returned and the process ends;
[0044] The specific steps of step S33 are as follows:
[0045] S331. Response to the debugging component triggered by the user;
[0046] When there is no parameter acquisition component and value acquisition component, go to step S332;
[0047] When there is a parameter acquisition component, go to step S333;
[0048] When there is a value acquisition component, go to step S334;
[0049] S332 automatically inputs the ADB command of the debugging set-top box corresponding to the debugging component into the underlying ADB command line tool for execution, and displays the debugging results in the display component, and ends;
[0050] S333 obtains the parameters input by the user, automatically inputs the ADB command command of the debugging set-top box corresponding to the debugging component + the obtained parameters into the underlying ADB command line tool for execution, and displays the debugging results in the display component, and ends;
[0051] S334. Obtain the value input by the user, automatically input the command + parameter + obtained value of the ADB instruction of the debugging set-top box corresponding to the debugging component into the underlying ADB command line tool for execution, and display the debugging result on the display component, and end.
[0052] In a second aspect, the present invention provides a set-top box debugging system for implementing graphical configuration of ADB instructions, comprising:
[0053] A component adding module, used for adding a set-top box connection component and a set-top box debugging component in the graphical interface tool;
[0054] The component function binding module is used to bind the connection component with the ADB command of the connection set-top box, and to bind each debugging component with the corresponding preset ADB command of each debugging set-top box, so as to generate a set-top box debugging graphical interface;
[0055] The set-top box debugging module is used to execute the connection component in the set-top box debugging graphical interface to connect with the set-top box, and then execute the debugging component to run the preset ADB instructions of each debugging set-top box in accordance with the preset execution sequence to obtain the set-top box debugging result.
[0056] In a third aspect, the present invention provides an electronic device, including a processor and a memory;
[0057] The memory is used to store a computer program, and the processor is used to call and run the computer program from the memory, so that the electronic device executes the method described in the first aspect above.
[0058] In a fourth aspect, the present invention provides a storage medium,
[0059] The storage medium stores instructions, which, when executed on a computer, enable the computer to execute the method described in the first aspect.
[0060] The beneficial effects of the present invention are:
[0061] The set-top box debugging method, system, device and medium for implementing graphical configuration of ADB commands provided by the present invention can quickly complete the execution of commands by clicking a component once, simplifying the operations that originally required manual input and execution, greatly improving the debugging efficiency and reducing the possibility of human input of erroneous commands, and can flexibly adapt to diverse debugging needs.
[0062] In addition, the invention has a reliable design principle, a simple structure and a very broad application prospect.
[0063] It can be seen that compared with the prior art, the present invention has outstanding substantive features and significant progress, and the beneficial effects of its implementation are also obvious. BRIEF DESCRIPTION OF THE DRAWINGS
[0064] In order to more clearly illustrate the embodiments of the present invention 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, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0065] Figure 1 The present invention is a flow chart of a set-top box debugging method for implementing ADB command graphical configuration.
[0066] Figure 2 The present invention is a schematic diagram of a set-top box debugging system for implementing graphical configuration of ADB instructions. DETAILED DESCRIPTION
[0067] The set-top box debugging method for implementing graphical configuration of ADB commands can be applied to one or more electronic devices, wherein the electronic device is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application specific integrated circuits (ASICs), programmable gate arrays (FPGAs), digital signal processors (DSPs), embedded devices, etc.
[0068] An electronic device can be any electronic product that can interact with a user, such as a personal computer, a tablet computer, a smart phone, a personal digital assistant (PDA), an interactive network television (IPTV), etc. The network in which the electronic device is located includes but is not limited to the Internet, a wide area network, a metropolitan area network, a local area network, a virtual private network (VPN), etc.
[0069] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0070] See also Figure 1 The figure shows a set-top box debugging method for realizing ADB command graphical configuration in a specific implementation, comprising the following steps:
[0071] S1. Add a set-top box connection component and a set-top box debugging component in the graphical interface tool;
[0072] S2 will connect the components and connect the set-top box ADB command to bind, and each debugging component and the corresponding preset debugging set-top box ADB command to bind, generate a set-top box debugging graphical interface;
[0073] S3. After the connection component is connected to the set-top box in the set-top box debugging graphical interface, the debugging component is executed in a pre-set execution order to run each preset debugging set-top box ADB command to obtain the set-top box debugging result.
[0074] In this embodiment, the specific steps of step S1 are as follows:
[0075] S11. Designing a pattern of connecting components in a graphical interface tool and selecting a type of connecting components;
[0076] S12 obtains the number of ADB commands for debugging the set-top box and designs an equal number of debugging components in the graphical interface tool;
[0077] S13. Select the type of set-top box debugging component, design the pattern of the set-top box debugging component, and display the execution sequence number in the pattern of the debugging component in accordance with the execution order;
[0078] The specific steps of step S2 are as follows:
[0079] S21 preload the ADB command to connect the set-top box in the graphical interface tool, and bind the ADB command to connect the set-top box to the connection component;
[0080] S22. Load the preset ADB commands for debugging set-top boxes in the graphical interface tool, and bind the debugging components with the corresponding execution sequence numbers in the execution order;
[0081] S23 sets the display component in the graphical interface work, and establishes a connection between the display component and the execution results of each debugging component;
[0082] S24. Output the connection components, display components and debugging components as a set-top box debugging graphical interface;
[0083] The specific steps of step S3 are as follows:
[0084] S31 configures the test machine and the set-top box network connectivity, and executes the set-top box debugging graphical interface on the test machine;
[0085] S32 responds to the user's action of executing the connection component, connecting the set-top box;
[0086] S33. In response to the actions of the debugging components executed in sequence by the user, the ADB instructions corresponding to the debugging set-top box are executed, and the debugging results are displayed.
[0087] In some embodiments, step S21 includes the following steps:
[0088] S211. Establish a connection between the graphical interface tool and the ADB command line tool;
[0089] S212 obtains the port number of the set-top box and preloads the ADB command for connecting to the set-top box;
[0090] S213. The port number of the set-top box is used as a parameter of the ADB command to connect to the set-top box, and the connection component is bound;
[0091] The specific steps of step S22 are as follows:
[0092] S221 obtains and analyzes the ADB commands of each debugging set-top box in turn;
[0093] When the ADB command for debugging the set-top box is only a general command, go to step S222;
[0094] When the ADB instruction for debugging the set-top box is command+parameter, go to step S223;
[0095] When the ADB instruction for debugging the set-top box is command+parameter+value, go to step S226;
[0096] S222. The general instructions of the ADB instructions for debugging the set-top box are bound to the debugging components corresponding to the execution sequence in the execution order, and the process proceeds to step S23;
[0097] S223 determines whether the number of ADB commands for debugging set-top boxes with the same command and different parameters is greater than the set threshold;
[0098] If not, proceed to step S224;
[0099] If yes, go to step S225;
[0100] S224. Bind the command + parameter of the ADB instruction of the debug set-top box to the debug component corresponding to the execution sequence number in the execution order;
[0101] S225. Add parameter acquisition component, debug the command of the ADB command of the set-top box + the value of the parameter acquisition component is bound to the debugging component corresponding to the execution sequence number in the execution order, and enter step S23;
[0102] S226. Determine whether the number of ADB instructions for debugging set-top boxes with the same command, the same parameters and different values is greater than a set threshold;
[0103] If not, proceed to step S227;
[0104] If yes, go to step S228;
[0105] S227. Bind the command + parameter + value of the ADB instruction of the debug set-top box to the debug component corresponding to the execution sequence in the execution order, and proceed to step S23;
[0106] S228. Add a value acquisition component to debug the set-top box ADB command command + parameter + value acquisition component value in accordance with the execution order and the corresponding execution sequence number of the debugging component binding;
[0107] The specific steps of step S32 are as follows:
[0108] S321. When the connection component is triggered by the user, the ADB command and its parameters for connecting to the set-top box are automatically input into the underlying ADB command line tool;
[0109] S322. The ADB command tool parses the parameters of the ADB command for connecting to the set-top box and identifies the port of the set-top box for connecting to the set-top box;
[0110] If the connection is successful, go to step S33;
[0111] If the connection fails, the set-top box connection error is returned and the process ends;
[0112] The specific steps of step S33 are as follows:
[0113] S331. Response to the debugging component triggered by the user;
[0114] When there is no parameter acquisition component and value acquisition component, go to step S332;
[0115] When there is a parameter acquisition component, go to step S333;
[0116] When there is a value acquisition component, go to step S334;
[0117] S332 automatically inputs the ADB command of the debugging set-top box corresponding to the debugging component into the underlying ADB command line tool for execution, and displays the debugging results in the display component, and ends;
[0118] S333 obtains the parameters input by the user, automatically inputs the ADB command command of the debugging set-top box corresponding to the debugging component + the obtained parameters into the underlying ADB command line tool for execution, and displays the debugging results in the display component, and ends;
[0119] S334. Obtain the value input by the user, automatically input the command + parameter + obtained value of the ADB instruction of the debugging set-top box corresponding to the debugging component into the underlying ADB command line tool for execution, and display the debugging result on the display component, and end.
[0120] Taking the following set-top box debugging requirements as an example, it is necessary to test whether the differentiated advertising delivery function of the set-top box in different regions is normal. The test process is as follows:
[0121] 1. Modify the set-top box advertising configuration to the test environment:
[0122] setprop persist.sys.avit.ad.ip http: / / 172.16.20.217:9005 /
[0123] 2. Set area code A
[0124] setprop persist.sys.area.id 10001
[0125] Observe the advertising situation
[0126] 3. Set area code B
[0127] setprop persist.sys.area.id 10002
[0128] Observe the advertising situation
[0129] 4. After verification is completed, the switch will be to the official advertising environment
[0130] setprop persist.sys.avit.ad.ip http: / / csgd.adavit.ad.net:9005 /
[0131] The original ADB command line tool was used for debugging, and all the above instructions needed to be manually entered into the command line in sequence for execution. If the debugging process required multiple debugging, it would need to be manually entered multiple times, which was time-consuming and labor-intensive, and prone to errors. The existing ADB graphical interface can only be used to quickly enter the setprop command part, and the parameters and values still need to be manually entered, which cannot fully meet the debugging needs of the set-top box.
[0132] The set-top box debugging graphical interface of the present invention is used, by pre-entering the ADB instructions of the above-mentioned debugging set-top box, establishing the mapping of the ADB instructions of the debugging set-top box and the interface button as the debugging component. The entry process is as follows: add instruction items through the tool to modify the above-mentioned example to the test environment, set the area code, switch to the formal environment, name the instruction items, configure them such as instructions + parameters + values, and save them as buttons as debugging components. The mapping establishment process is as follows: the set-top box debugging graphical interface tool will display the entered ADB instructions of the debugging set-top box in the form of debugging components such as buttons, and the button name is the configuration instruction item name. The user clicks the button to trigger the execution of the corresponding instruction. Execution data echo: The execution data and instruction results of the ADB instructions of the debugging set-top box will be displayed in the output box as a display component, which is convenient for viewing and verifying the debugging results.
[0133] In the above example, modifying the set-top box advertising configuration to the test environment is packaged as button A, setting the area code 10001 and viewing the advertising delivery of area code 10001 is packaged as button B, setting the area code 10002 and viewing the advertising delivery of area code 10002 is packaged as button C, and modifying the set-top box advertising configuration to the advertising environment is packaged as button D. Click button A->click button B->observe the advertising delivery situation->click button C->observe the advertising delivery situation->click button D to get the debugging results, eliminating the tediousness of manually typing commands.
[0134] Because the IP address in the test environment is the value of the parameter persist.sys.avit.ad.ip, the value acquisition component is started to manually enter the IP address only when the number of IP addresses exceeds the limit, so as to realize the flexible input of custom IP addresses, reduce some efficiency and increase the flexibility of IP address input.
[0135] Since the area code in the test environment is the value of the parameter persist.sys.area.id, the value acquisition component is started to manually enter the area code only when the number of area codes exceeds the limit, so as to realize the flexible input of custom area codes, reduce some efficiency and increase the flexibility of area code input.
[0136] It should be understood that the order of execution of the steps in the above embodiment does not mean that the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.
[0137] The following is an embodiment of a set-top box debugging system for implementing graphical configuration of ADB commands provided by an embodiment of the present disclosure. The system and the set-top box debugging method for implementing graphical configuration of ADB commands in the above-mentioned embodiments belong to the same inventive concept. For details not described in detail in the embodiment of the set-top box debugging system for implementing graphical configuration of ADB commands, reference can be made to the above-mentioned embodiment of the set-top box debugging method for implementing graphical configuration of ADB commands.
[0138] like Figure 2 As shown, the system includes:
[0139] A component adding module, used for adding a set-top box connection component and a set-top box debugging component in the graphical interface tool;
[0140] The component function binding module is used to bind the connection component with the ADB command of the connection set-top box, and to bind each debugging component with the corresponding preset ADB command of each debugging set-top box, so as to generate a set-top box debugging graphical interface;
[0141] The set-top box debugging module is used to execute the connection component in the set-top box debugging graphical interface to connect with the set-top box, and then execute the debugging component to run the preset ADB instructions of each debugging set-top box in accordance with the preset execution sequence to obtain the set-top box debugging result.
[0142] The set-top box debugging method for realizing the graphical configuration of ADB instructions provided by the present invention is a module and an algorithm step of each example described in conjunction with the embodiments disclosed herein, and can be implemented with electronic hardware, computer software or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to the function. Whether these functions are executed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but this implementation should not be considered to exceed the scope of the present invention.
[0143] Those skilled in the art will appreciate that various aspects of the set-top box debugging method for implementing graphical configuration of ADB instructions provided by the present invention can be implemented as a system, method or program product. Therefore, various aspects of the present disclosure can be specifically implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or an implementation combining hardware and software, which can be collectively referred to as "circuit", "module" or "system" here.
[0144] In the non-transient computer-readable storage medium of the set-top box debugging method of storing the graphical configuration of ADB instructions, it can be but not limited to the system, device or device of electricity, magnetism, light, electromagnetism, infrared ray or semiconductor, or any combination above.The more specific example (non-exhaustive list) of readable storage medium includes: have the electrical connection of one or more wires, portable disk, hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device or above-mentioned any suitable combination.
[0145] Although the present invention has been described in detail with reference to the accompanying drawings and in combination with the preferred embodiments, the present invention is not limited thereto. Without departing from the spirit and essence of the present invention, a person of ordinary skill in the art may make various equivalent modifications or substitutions to the embodiments of the present invention, and these modifications or substitutions shall be within the scope of the present invention. Any person of ordinary skill in the art may easily think of changes or substitutions within the technical scope disclosed by the present invention, and these shall be within the scope of protection of the present invention.
Claims
1. A set-top box debugging method for implementing ADB command graphical configuration, It is characterized in that The steps include: S1. Add a set-top box connection component and a set-top box debugging component in the graphical interface tool; S2 will connect the components and connect the set-top box ADB command to bind, and each debugging component and the corresponding preset debugging set-top box ADB command to bind, generate a set-top box debugging graphical interface; S3. After the connection component is connected to the set-top box in the set-top box debugging graphical interface, the debugging component is executed in a pre-set execution order to run each preset debugging set-top box ADB command to obtain the set-top box debugging result.
2. The set-top box debugging method for implementing ADB command graphical configuration as claimed in claim 1, It is characterized in that The specific steps of step S1 are as follows: S11. Designing a pattern of connecting components in a graphical interface tool and selecting a type of connecting components; S12 obtains the number of ADB commands for debugging the set-top box and designs an equal number of debugging components in the graphical interface tool; S13. Select the type of the set-top box debugging component, design the pattern of the set-top box debugging component, and display the execution sequence number in the debugging component pattern according to the execution order.
3. The set-top box debugging method for implementing ADB command graphical configuration as claimed in claim 2, It is characterized in that The specific steps of step S2 are as follows: S21 preload the ADB command to connect the set-top box in the graphical interface tool, and bind the ADB command to connect the set-top box to the connection component; S22. Load the preset ADB commands for debugging set-top boxes in the graphical interface tool, and bind the debugging components with the corresponding execution sequence numbers in the execution order; S23 sets the display component in the graphical interface work, and establishes a connection between the display component and the execution results of each debugging component; S24. Outputting the connection components, display components and debugging components as a set-top box debugging graphical interface.
4. The set-top box debugging method for implementing ADB command graphical configuration as claimed in claim 3, It is characterized in that The specific steps of step S21 are as follows: S211. Establish a connection between the graphical interface tool and the ADB command line tool; S212 obtains the port number of the set-top box and preloads the ADB command for connecting to the set-top box; S213. Use the port number of the set-top box as a parameter of the ADB command for connecting to the set-top box, and bind the connection component.
5. The set-top box debugging method for implementing ADB command graphical configuration as claimed in claim 4, It is characterized in that The specific steps of step S22 are as follows: S221 obtains and analyzes the ADB commands of each debugging set-top box in turn; When the ADB command for debugging the set-top box is only a general command, go to step S222; When the ADB instruction for debugging the set-top box is command+parameter, go to step S223; When the ADB instruction for debugging the set-top box is command+parameter+value, go to step S226; S222. The general instructions of the ADB instructions for debugging the set-top box are bound to the debugging components corresponding to the execution sequence in the execution order, and the process proceeds to step S23; S223 determines whether the number of ADB commands for debugging set-top boxes with the same command and different parameters is greater than the set threshold; If not, proceed to step S224; If yes, go to step S225; S224. Bind the command + parameter of the ADB instruction of the debug set-top box to the debug component corresponding to the execution sequence number in the execution order; S225. Add parameter acquisition component, debug the command of the ADB command of the set-top box + the value of the parameter acquisition component is bound to the debugging component corresponding to the execution sequence number in the execution order, and enter step S23; S226. Determine whether the number of ADB instructions for debugging set-top boxes with the same command, the same parameters and different values is greater than a set threshold; If not, proceed to step S227; If yes, go to step S228; S227. Bind the command + parameter + value of the ADB instruction of the debug set-top box to the debug component corresponding to the execution sequence number in the execution order, and proceed to step S23; S228. Add a value acquisition component, and bind the command + parameter + value acquisition component value of the ADB instruction of the debugging set-top box to the debugging component of the corresponding execution sequence number according to the execution order.
6. The set-top box debugging method for implementing ADB command graphical configuration as claimed in claim 5, It is characterized in that The specific steps of step S3 are as follows: S31 configures the test machine and the set-top box network connectivity, and executes the set-top box debugging graphical interface on the test machine; S32 responds to the user's action of executing the connection component, connecting the set-top box; S33. In response to the actions of the debugging components executed in sequence by the user, the ADB instructions corresponding to the debugging set-top box are executed, and the debugging results are displayed.
7. The set-top box debugging method for implementing ADB command graphical configuration as claimed in claim 6, It is characterized in that The specific steps of step S32 are as follows: S321. When the connection component is triggered by the user, the ADB command and its parameters for connecting to the set-top box are automatically input into the underlying ADB command line tool; S322. The ADB command tool parses the parameters of the ADB command for connecting to the set-top box and identifies the port of the set-top box for connecting to the set-top box; If the connection is successful, go to step S33; If the connection fails, the set-top box connection error is returned and the process ends; The specific steps of step S33 are as follows: S331. Response to the debugging component triggered by the user; When there is no parameter acquisition component and value acquisition component, go to step S332; When there is a parameter acquisition component, go to step S333; When there is a value acquisition component, go to step S334; S332 automatically inputs the ADB command of the debugging set-top box corresponding to the debugging component into the underlying ADB command line tool for execution, and displays the debugging results in the display component, and ends; S333 obtains the parameters input by the user, automatically inputs the ADB command command of the debugging set-top box corresponding to the debugging component + the obtained parameters into the underlying ADB command line tool for execution, and displays the debugging results in the display component, and ends; S334. Obtain the value input by the user, automatically input the command + parameter + obtained value of the ADB instruction of the debugging set-top box corresponding to the debugging component into the underlying ADB command line tool for execution, and display the debugging result on the display component, and end.
8. A set-top box debugging system that implements ADB command graphical configuration, It is characterized in that include: A component adding module, used for adding a set-top box connection component and a set-top box debugging component in the graphical interface tool; The component function binding module is used to bind the connection component with the ADB command of the connection set-top box, and to bind each debugging component with the corresponding preset ADB command of each debugging set-top box, so as to generate a set-top box debugging graphical interface; The set-top box debugging module is used to execute the connection component in the set-top box debugging graphical interface to connect with the set-top box, and then execute the debugging component to run the preset ADB instructions of each debugging set-top box in accordance with the preset execution sequence to obtain the set-top box debugging result.
9. An electronic device, It is characterized in that including a processor and a memory; The memory is used to store a computer program, and the processor is used to call and run the computer program from the memory, so that the electronic device executes the method described in any one of claims 1 to 7.
10. A storage medium, It is characterized in that The storage medium stores instructions, which, when executed on a computer, enable the computer to execute the method described in any one of claims 1 to 7.
