WO2019184527A1 - Method and apparatus for testing stability of set top box, and electronic device - Google Patents

Method and apparatus for testing stability of set top box, and electronic device Download PDF

Info

Publication number
WO2019184527A1
WO2019184527A1 PCT/CN2018/125752 CN2018125752W WO2019184527A1 WO 2019184527 A1 WO2019184527 A1 WO 2019184527A1 CN 2018125752 W CN2018125752 W CN 2018125752W WO 2019184527 A1 WO2019184527 A1 WO 2019184527A1
Authority
WO
WIPO (PCT)
Prior art keywords
top box
set top
video frame
frame data
ddr
Prior art date
Application number
PCT/CN2018/125752
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 WO2019184527A1 publication Critical patent/WO2019184527A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • H04N17/004Diagnosis, testing or measuring for television systems or their details for digital television systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • H04N17/04Diagnosis, testing or measuring for television systems or their details for receivers
    • 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
    • H04N21/4425Monitoring of client processing errors or hardware failure

Definitions

  • the present invention relates to the field of set top box technologies, and in particular, to a method, device and electronic device for testing the stability of a set top box.
  • the stability of double rate synchronous dynamic random access memory (DDR) in the set top box is the basis of the stability of the set top box. If the DDR is unstable, the set-top box may have video mosaics or even crashes.
  • DDR double rate synchronous dynamic random access memory
  • the common method for testing DDR stability is to burn a set of parameters of the set DDR into the Flash of the set-top box, and use multiple set-top boxes to do the copy machine test.
  • the set-top box needs to run continuously for several days. The number of days the machine is operated varies depending on the project objectives and company standards, and usually takes 3 to 7 days. If the set-top box works normally in the copying test, the set of DDR parameters is considered appropriate. If there is a problem with the copying test result, the DDR parameter needs to be modified, a new DDR parameter is configured, and a new round of testing is performed.
  • the inventor found that the related art has at least the following problems: in the initial stage of the set-top box test, since many sets of DDR parameters are not stable enough, it is necessary to modify the DDR parameters multiple times and re-test the machine, thereby causing the product. The development time is extended and the research and development costs are increased.
  • the technical problem to be solved by the embodiments of the present application is to provide a method, a device and an electronic device for testing the stability of a set top box, and to solve the technical problem that the existing set top box test has long debugging time and high research and development cost.
  • An aspect of the embodiments of the present application provides a method for testing stability of a set top box, which is applied to an intelligent terminal, where the method includes:
  • the next video frame data of the decoded video file is repeatedly obtained, and the obtained video frame data is compared with the preset database. And verifying, when the video frame data acquired in the preset time period is consistent with the verification data in the preset database, determining that the set top box is stable, and determining the first initial parameter as Stable parameters of the set top box.
  • the method further includes:
  • the method further includes:
  • Second initial parameter Comparing the obtained video frame data corresponding to the at least two different sets of second initial parameters with the verification data in the preset database, respectively, to obtain the least number of inconsistencies between the video frame data and the verification data.
  • the obtained second initial parameter is determined as a stable parameter of the set top box.
  • Another aspect of an embodiment of the present application provides a method for testing stability of a set top box, which is applied to a set top box, and the method includes:
  • a further aspect of the embodiments of the present application provides a device for testing stability of a set top box, which is applied to a smart terminal, and the device includes:
  • a first sending module configured to send a running program command to the set top box after establishing a connection with the set top box, wherein the running program command is used to initialize the set top box, and the initializing comprises configuring a DDR in the set top box First initial parameter;
  • a second sending module configured to send a preset video file and a decoding command to the set top box, so that when the DDR of the set top box is run under the first initial parameter, the video file is decoded according to the decoding command;
  • a first acquiring module configured to acquire video frame data of the decoded video file
  • a first determining module configured to determine whether the video frame data and the verification data in the preset database are consistent
  • a first processing module configured to: if the video frame data is consistent with the verification data in the preset database, repeatedly acquiring the next video frame data of the decoded video file, and acquiring the obtained video frame data Comparing with the verification data in the preset database, when the video frame data acquired in the preset time period is consistent with the verification data in the preset database, determining that the set top box is stable, and The first initial parameter is determined as a stable parameter of the set top box.
  • the device further includes:
  • a second processing module configured to: if the video frame data is inconsistent with the verification data in the preset database, adjust a first initial parameter of the DDR, and jump to the video that obtains the decoded video file Frame data step.
  • the device further includes:
  • a third processing module configured to configure at least two different sets of second initial parameters for the DDR if the video frame data is inconsistent with the verification data in the preset database, and send the preset video file to the set top box And decoding a command to decode the video file according to the decoding command when the DDR of the set top box is operated under the at least two different sets of second initial parameters;
  • a second acquiring module configured to acquire, according to the same preset time, video frame data corresponding to the at least two different second initial parameters after decoding
  • a third acquiring module configured to compare the acquired video frame data corresponding to the at least two different sets of second initial parameters with the verification data in the preset database, to obtain the video frame data and the a second initial parameter that verifies that the data inconsistency is the least;
  • a fourth processing module configured to determine the obtained second initial parameter as a stable parameter of the set top box.
  • a device for testing stability of a set top box which is applied to a set top box, and the device includes:
  • a first receiving module configured to receive a running program command sent by the smart terminal, and perform initialization according to the running program command, where the initializing includes configuring a first initial parameter of the DDR in the set top box;
  • a second receiving module configured to receive a preset video file and a decoding command sent by the smart terminal
  • a first decoding module configured to: when the DDR of the set top box is running under the first initial parameter, decode the video file according to the decoding command to generate video frame data;
  • the third sending module is configured to send the generated video frame data to the smart terminal, so that the smart terminal determines whether the set top box is stable according to the video frame data and the verification data in the preset database.
  • an electronic device includes: at least one processor; and a memory communicably coupled to the at least one processor; wherein the memory is stored for processing by the at least one An instruction executed by the at least one processor to enable the at least one processor to perform the method as described above.
  • a non-transitory computer readable storage medium storing computer-executable instructions for causing a computer to execute the above The method described.
  • a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions, when When the program instructions are executed by the computer, the computer is caused to perform the method as described above.
  • the initial parameters of the DDR in the set top box are configured by the smart terminal, and the preset video file is sent to the set top box, so that when the set top box runs under the configured initial parameters, the video file is decoded to generate a video frame.
  • the smart terminal obtains the video frame data from the set top box, and compares the video frame data with the verification data in the preset database. If the matching is consistent, the current running state of the set top box is stable, and the initial parameters of the configuration are consistent. Claim.
  • This embodiment can shorten the time of the set-top box stability test, and can obtain the appropriate DDR parameters more quickly, thereby shortening the development time of the product and reducing the development cost.
  • FIG. 1 is a schematic diagram of an operating environment of an embodiment of the present application.
  • FIG. 2 is a flowchart of a method for testing stability of a set top box according to Embodiment 1 of the present application;
  • FIG. 3 is a flowchart of a method for testing stability of a set top box according to Embodiment 2 of the present application;
  • FIG. 5 is a flowchart of a method for testing stability of a set top box according to Embodiment 4 of the present application.
  • FIG. 6 is a schematic structural diagram of an apparatus for testing stability of a set top box according to Embodiment 5 of the present application;
  • FIG. 7 is a schematic structural diagram of an apparatus for testing stability of a set top box according to Embodiment 6 of the present application.
  • FIG. 8 is a schematic structural diagram of hardware of an electronic device according to Embodiment 7 of the present application.
  • FIG. 1 is a schematic diagram of an operating environment of an embodiment of the present application, and the operating environment includes an intelligent environment.
  • Terminal 10 and set top box 20 The smart terminal 10 is connected to the set top box 20.
  • the smart terminal 10 can be connected to the set top box 20 through the debug controller, the debugging tool software is run on the smart terminal 10, and then the JTAG interface of the set top box 30 is connected through the debug controller 20.
  • the data exchange between the smart terminal 10 and the set top box 20 can be performed at high speed.
  • the smart terminal 10 can be connected to the debug controller through a USB data line, and the debug controller can connect the set top box 20 through a JTAG data line.
  • the smart terminal 10 may specifically be a desktop computer, a notebook computer, a tablet computer, a smart phone, or the like.
  • the set top box 20 may specifically be a one-way set top box, a two-way set top box, an IPTV set top box, and the like.
  • the set top box 20 is provided with a processor and a double rate synchronous dynamic random access memory (DDR).
  • the JTAG interface is disposed in the processor, and the processor and the DDR can be connected through a DDR data bus.
  • the smart terminal 10 is mainly used to test the stability of the set top box 20.
  • the smart terminal 10 first sends a command trigger running program to the set top box 20 to cause the program of the set top box 20 to start running for initialization, which includes configuring the initial parameters of the DDR in the set top box 20.
  • the smart terminal 10 sends a preset video file and a decoding command to the set top box 20, so that the set top box 20 decodes the video file according to the decoding command in the running state of the configured initial parameters, thereby generating the decoded image.
  • Video frame data The smart terminal 10 acquires the video frame data, and matches the video frame data with the verification data in the preset database.
  • the decoded video frame data can be continuously obtained, and the obtained video frame is acquired each time.
  • the data is matched with the verification data in the preset database. If the video frame data acquired within the preset time matches the verification data in the preset database, it is determined that the set top box 20 is stable, and the determined DDR is initialized.
  • the initial parameters are parameters that stabilize the set top box 20.
  • the smart terminal 10 can establish a connection relationship with the set top box 20 through other means, such as Bluetooth, etc., in addition to establishing a connection relationship with the set top box 20 through the debug controller.
  • a method of testing the stability of a set top box for use in the above described operating environment is provided below.
  • FIG. 2 is a flowchart of a method for testing stability of a set-top box according to Embodiment 1 of the present application. The method is performed by the smart terminal 10, and the method includes:
  • Step 101 After establishing a connection with the set top box, send a running program command to the set top box, where the running program command is used to initialize the set top box, and the initializing includes configuring a first initial parameter of the DDR in the set top box. .
  • the set-top box is commonly used as a dynamic memory, and the stability of the DDR is the basis of the stability of the set-top box. Therefore, the main purpose of the embodiment of the present application is to determine a relatively stable set of DDR parameters.
  • the initial parameters are first determined, and the first initial parameter is the preset DDR initial parameter.
  • the above running program command may be generated by the running debugging tool software in the smart terminal 10, and the function thereof is to trigger the initialization of the set top box 20, and after triggering the initialization of the set top box 20, all hardware including the DDR starts to be initialized, DDR.
  • Initialization primarily includes configuring a first initial parameter of the DDR. For the contents mainly included in the DDR parameters, reference may be made to the description in the related art.
  • Step 102 Send a preset video file and a decoding command to the set top box, so that when the DDR of the set top box is run under the first initial parameter, the video file is decoded according to the decoding command.
  • Step 103 Obtain video frame data of the decoded video file.
  • Step 104 Determine whether the video frame data and the verification data in the preset database are consistent.
  • Step 105 If the video frame data is consistent with the verification data in the preset database, the next video frame data of the decoded video file is repeatedly obtained, and the obtained video frame data and the pre-prepared The verification data in the database is compared, and when the video frame data acquired in the preset time period is consistent with the verification data in the preset database, determining that the set top box is stable, and the first initial is The parameter is determined as a stable parameter of the set top box.
  • the video file may be a video file of any type.
  • the video file is first compression-coded, and then the compressed video file and the decoding command are sent to the set-top box 20.
  • the set top box 20 decodes the video file according to the decoding command.
  • the DDR randomly generates read/write or calculation errors, resulting in the final decoded video. Error in frame data. Therefore, in the present embodiment, it is possible to determine whether the first initial parameter of the DDR is sufficient temperature by successive video decoding and verifying the decoded video frame data.
  • the decoding process of the video file is run in the DDR, and the decoded video frame data is saved in the DDR.
  • the smart terminal 10 obtains the decoded video frame data from the DDR, and compares the obtained video frame data with the verification data in the preset database. If the two video frame data are consistent, the smart terminal continues to obtain decoding from the DDR. The next video frame data of the video file is continued, and the obtained video frame data is continuously compared with the verification data in the preset database. If the two video frame data are consistent, the process is repeated until the preset time is over. .
  • the first initial parameter of the DDR is a finally determined relatively stable DDR parameter, that is, the DDR is The set top box can be kept stable when running under the first initial parameter.
  • the verification data in the preset database is a video frame file that is pre-decoded by the preset video file and stored in a database, where each video frame data decoded in the DDR is respectively corresponding thereto.
  • the pre-stored video frame data is compared to ensure data consistency.
  • the length of the preset time may be determined according to experience or experiment to ensure that the DDR parameter determined within the preset time is most suitable, and the preset time may take 24 hours, if within 24 hours, the DDR is in the Under the operation of the first initial parameter, the decoded video frame data is consistent with the verification data, indicating that the set top box 20 is sufficiently stable.
  • the finalized DDR parameters can be further verified by a copy machine test to ensure that the DDR parameters are most suitable.
  • the length of the preset time can be adjusted according to the test result of the video frame data each time, for example, if three consecutive sets of the same video frame data are obtained, the test can be ended; or as long as a group is detected If the video frame data is different, the test can be terminated. Thereby, the test time can be flexibly set, and the test efficiency can be improved.
  • the newly decoded video frame data will cover the DDR area occupied by the previous video frame data, thereby ensuring that the storage space of the DDR is not occupied too much, saving its storage space.
  • An embodiment of the present application provides a method for testing stability of a set top box, where the smart terminal configures an initial parameter of the DDR in the set top box, and sends a preset video file to the set top box, so that the set top box runs under the configured initial parameters. Decoding the video file to generate video frame data, the smart terminal acquires the video frame data from the set top box, and compares the video frame data with the verification data in the preset database. If the matching is consistent, the set top box is currently running. The state is stable and the initial parameters of the configuration meet the requirements.
  • This embodiment can shorten the time of the set-top box stability test, and can obtain the appropriate DDR parameters more quickly, thereby shortening the development time of the product and reducing the development cost.
  • FIG. 3 is a flowchart of a method for testing the stability of a set-top box according to Embodiment 2 of the present application.
  • the main difference between FIG. 3 and FIG. 2 is that the method further includes:
  • Step 106 If the video frame data is inconsistent with the verification data in the preset database, adjust the first initial parameter of the DDR, and jump to the step of acquiring the decoded video frame data of the video file.
  • the smart terminal 10 can control the first initial parameter of the DDR in the set top box 20, and after adjusting the first initial parameter, continue to perform acquiring the decoded video frame data, and the obtained video frame is obtained.
  • the step of comparing the data with the verification data in the preset database The decoded video frame data is decoded by the video file under a new DDR parameter after the first initial parameter is adjusted.
  • the new DDR parameter is continuously adjusted, and the above process is repeated.
  • the test process can be ended upon receipt of a termination command.
  • the adjusting process of the DDR parameter may be performed based on the first initial parameter, for example, by using a preset threshold as a minimum unit, and making the first adjusted DDR parameter and the first initial based on the first initial parameter.
  • the parameters differ by one of the minimum units, such that the second adjusted DDR parameter differs from the first initial parameter by two of the minimum units, and so on, thereby determining the adjusted DDR parameter.
  • an erroneous data address may be output on the display screen of the smart terminal 10, so that the tester can grasp the specific error in time.
  • an adjustment method is provided, according to which the most suitable DDR parameter can be determined as soon as possible, thereby reducing the development cost of the product.
  • FIG. 4 is a flowchart of a method for testing stability of a set-top box according to Embodiment 3 of the present application.
  • the main difference between FIG. 4 and FIG. 2 is that the method further includes:
  • Step 107 If the video frame data is inconsistent with the verification data in the preset database, configure at least two different sets of second initial parameters for the DDR, and send a preset video file and a decoding command to the set top box.
  • the DDR of the set top box is operated under the at least two different sets of second initial parameters, decoding the video file according to the decoding command;
  • Step 108 Obtain, according to the same preset time, video frame data corresponding to the at least two different sets of second initial parameters after decoding, respectively.
  • Step 109 Compare the obtained video frame data corresponding to the at least two different sets of second initial parameters with the verification data in the preset database, respectively, to obtain that the video frame data is inconsistent with the verification data.
  • the second initial parameter with the least number
  • Step 110 Determine the obtained second initial parameter as a stable parameter of the set top box.
  • the DDR parameter is reconfigured, that is, the first initial parameter is adjusted.
  • the difference between this embodiment and the foregoing embodiment 2 is that at least two different sets of second initial parameters are reconfigured at the same time.
  • the second initial parameter is different from the first initial parameter, and each set of second initial parameters is also different from each other.
  • the same video file is separately decoded based on the same time under each set of second initial parameters, and at least two sets of video frame data are obtained, and at least two sets of video frame data are respectively obtained.
  • the verification data in the database is compared, and the probability that each video frame in the at least two sets of video frame data is the same as each video frame in the verification data is calculated, and finally the video frame data with the same probability of having the same video frame is present.
  • the corresponding second initial parameter is determined as a DDR parameter that makes the set top box 20 relatively stable.
  • the embodiments of the present application simultaneously test multiple sets of DDR parameters, so that the DDR parameters that make the set-top box relatively stable can be obtained more quickly. Compared with the prior art, the embodiment improves the test efficiency and shortens the test period of the product. Reduced product development costs.
  • FIG. 5 is a flowchart of a method for testing the stability of a set-top box according to Embodiment 4 of the present application. The method is performed by the set top box 20, and the method includes:
  • Step 201 Receive a running program command sent by the smart terminal, and perform initialization according to the running program command, where the initializing includes configuring a first initial parameter of the DDR in the set top box;
  • Step 202 Receive a preset video file and a decoding command sent by the smart terminal.
  • Step 203 When the DDR of the set top box is running under the first initial parameter, decoding the video file according to the decoding command to generate video frame data.
  • Step 204 Send the generated video frame data to the smart terminal, so that the smart terminal determines whether the set top box is stable according to the video frame data and the verification data in the preset database.
  • the method performed by the embodiment of the present application corresponds to the method performed by the set top box 20 in the first embodiment.
  • the method performed by the embodiment of the present application has the same beneficial effects as the method performed in the first embodiment.
  • FIG. 6 is a schematic structural diagram of an apparatus for testing stability of a set-top box according to Embodiment 5 of the present application.
  • the device is applied to the smart terminal 10, and the device 30 includes: a first sending module 301, The second sending module 302, the first obtaining module 303, the first determining module 304, and the first processing module 305.
  • the first sending module 301 is configured to send a running program command to the set top box after establishing a connection with the set top box, where the running program command is used to initialize the set top box, and the initializing includes configuring the set top box a first initial parameter of the DDR; a second sending module 302, configured to send a preset video file and a decoding command to the set top box, so that when the DDR of the set top box is run under the first initial parameter, according to the The decoding command decodes the video file; the first obtaining module 303 is configured to obtain the decoded video frame data of the video file; the first determining module 304 is configured to determine the video frame data and the preset database.
  • the first processing module 305 is configured to: if the video frame data is consistent with the verification data in the preset database, repeatedly obtain the next video frame data of the decoded video file, and obtain the Comparing the video frame data with the verification data in the preset database, the video frame data acquired in a preset time period is the same as the Verify disposed coincident data in the database, it is determined that the set-top box stability, and initial parameter determining the first parameter of the set-top box to stabilize.
  • the apparatus 30 further includes a second processing module 306.
  • the second processing module 306 is configured to: if the video frame data is inconsistent with the verification data in the preset database, adjust the first initial parameter of the DDR, and jump to the acquiring the decoded video.
  • the video frame data step of the file is configured to: if the video frame data is inconsistent with the verification data in the preset database, adjust the first initial parameter of the DDR, and jump to the acquiring the decoded video.
  • the apparatus 30 further includes a third processing module 307 , a second obtaining module 308 , a third obtaining module 309 , and a fourth processing module 310 .
  • the third processing module 307 is configured to configure at least two different sets of second initial parameters for the DDR if the video frame data is inconsistent with the verification data in the preset database, and send a preset to the set top box.
  • the second obtaining module 308 is configured to Obtaining, by the same preset time, the video frame data corresponding to the at least two different sets of second initial parameters that are decoded, and the third obtaining module 309, configured to obtain the at least two different sets of second initial parameters that are obtained Corresponding video frame data is compared with the verification data in the preset database, respectively, to obtain a second initial parameter that is inconsistent with the verification data by the video frame data.
  • the fourth processing module 310 is configured to acquire The second initial parameter obtained is determined as a stable parameter of the set top box.
  • the information exchange, the execution process, and the like between the modules in the apparatus for testing the set-top box stability in the embodiment of the present application are based on the same as the first embodiment, the second embodiment, and the third embodiment of the present application.
  • the various modules in the embodiments of the present application can be implemented as separate hardware or software, and a combination of functions of the respective units can be implemented using separate hardware or software as needed.
  • An embodiment of the present application provides a device for testing stability of a set top box, where the device configures an initial parameter of a DDR in a set top box through an intelligent terminal, and sends a preset video file to the set top box, so that the set top box runs under the configured initial parameters.
  • the smart terminal acquires the video frame data from the set top box, and compares the video frame data with the verification data in the preset database. If the matching is consistent, the set top box is currently running. The state is stable and the initial parameters of the configuration meet the requirements.
  • This embodiment can shorten the time of the set-top box stability test, and can obtain the appropriate DDR parameters more quickly, thereby shortening the development time of the product and reducing the development cost.
  • FIG. 7 is a schematic structural diagram of the apparatus for testing stability of a set top box according to Embodiment 6 of the present application.
  • the apparatus is applied to the set top box 20, and the apparatus 40 includes: a first receiving module 401, The second receiving module 402, the first decoding module 403, and the third sending module 404.
  • the first receiving module 401 is configured to receive a running program command sent by the smart terminal, and perform initialization according to the running program command, where the initializing includes: configuring a first initial parameter of the DDR in the set top box; and the second receiving module
  • the first decoding module 403 is configured to: when the DDR of the set top box is running under the first initial parameter, according to the decoding command, the first decoding module 403 is configured to receive the preset video file and the decoding command sent by the smart terminal. Decoding the video file to generate video frame data; the third sending module 404 is configured to send the generated video frame data to the smart terminal, so that the smart terminal is configured according to the video frame data and preset
  • the verification data in the database determines whether the set top box is stable.
  • the information interaction, the execution process, and the like between the modules in the device for testing the set-top box stability in the embodiment of the present application are based on the same concept as the fourth embodiment of the method of the present application, and the specific content is also applicable to the test.
  • a device for the stability of a set top box The various modules in the embodiments of the present application can be implemented as separate hardware or software, and a combination of functions of the respective units can be implemented using separate hardware or software as needed.
  • the apparatus for testing the stability of the set top box in the embodiment of the present application has the same beneficial effects as the method for testing the stability of the set top box in the fourth embodiment.
  • FIG. 8 is a schematic structural diagram of hardware of an electronic device according to Embodiment 7 of the present application.
  • the electronic device 50 can perform the method for testing the stability of the set top box in the foregoing embodiment.
  • the electronic device 50 can be specifically a desktop computer, a notebook computer, a tablet computer, a smart phone, a set top box, and the like, and has other electronic devices with data interaction functions. As shown in FIG. 8, the electronic device 50 includes:
  • One or more processors 501 and memory 502, one processor 501 is taken as an example in FIG.
  • the processor 501 and the memory 502 may be connected by a bus or other means, as exemplified by a bus connection in FIG.
  • the electronic device that performs the method of testing the stability of the set top box may further include: an input device 503 and an output device 504.
  • the memory 502 is a non-volatile computer readable storage medium, and can be used for storing non-volatile software programs, non-volatile computer-executable programs, and modules, such as a method for testing set-top box stability in the embodiment of the present application.
  • Program instructions/modules for example, the first sending module 301, the second sending module 302, the first obtaining module 303, the first determining module 304, the first processing module 305, and the second processing module 306 shown in FIG.
  • the third processing module 307, the second obtaining module 308, the third obtaining module 309, and the fourth processing module 310 The processor 501 executes various functional applications of the server and data processing by running non-volatile software programs, instructions, and modules stored in the memory 502, that is, a method of testing the stability of the set-top box by implementing the above method embodiments.
  • the memory 502 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 use of the device for testing the stability of the set top box, etc. .
  • memory 502 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device.
  • memory 502 can optionally include memory remotely located relative to processor 501 that can be connected over a network to a device that tests set-top box stability. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
  • Input device 503 can receive input numeric or character information and generate key signal inputs related to user settings and function control of the device that tests set-top box stability.
  • Output device 504 can include a display device such as a display screen.
  • the one or more modules are stored in the memory 502, and when executed by the one or more processors 501, perform a method of testing set-top box stability in any of the above method embodiments, for example, performing the above described Method 101 to step 105 in FIG. 2, method step 101 to step 106 in FIG. 3, method step 101 to step 110 in FIG. 4, method step 201 to step 204 in FIG. 5, implement the module in FIG. 301-310, the function of modules 401-404 in FIG.
  • the embodiment of the present application provides a non-transitory computer readable storage medium storing computer-executable instructions that are executed by an electronic device to perform any of the above method embodiments.
  • the method for testing the stability of the set top box for example, performing the method steps 101 to 105 in FIG. 2 described above, the method steps 101 to 106 in FIG. 3, the method steps 101 to 110 in FIG. 4, FIG.
  • the method steps 201 to 204 in the method implement the functions of the modules 301-310 in FIG. 6, and the modules 401-404 in FIG.
  • An embodiment of the present application provides a computer program product, including a computing 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,
  • the computer performs the method for testing the stability of the set top box in any of the above method embodiments, for example, performing the method steps 101 to 105 in FIG. 2 described above, the method steps 101 to 106 in FIG. 3, and the method steps in FIG. From 101 to 110, the method steps 201 to 204 in FIG. 5 implement the functions of the modules 301-310 in FIG. 6, and the modules 401-404 in FIG.
  • the device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, ie may be located A place, or it can be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Databases & Information Systems (AREA)
  • Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The present application relates to the technical field of set top boxes, and in particular to a method and apparatus for testing the stability of a set top box, and an electronic device. The method comprises: after establishing a connection with a set top box, sending a program running command to the set top box; sending a preset video file and a decoding command to the set top box, such that the video file is decoded according to the decoding command when a DDR of the set top box runs under a first initial parameter; obtaining video frame data of the decoded video file; determining whether the video frame data is consistent with verification data in a preset database; and if the video frame data is consistent with the verification data in the preset database, repeatedly obtaining the next video frame data of the decoded video file, comparing the obtained video frame data with the verification data in the preset database, and if the video frame data obtained within a preset period of time is consistent with the verification data in the preset database, determining that the set top box is stable. The embodiment can shorten a period of time for testing the stability of a set top box.

Description

一种测试机顶盒稳定性的方法、装置及电子设备Method, device and electronic device for testing stability of set top box 【技术领域】[Technical Field]
本申请涉及机顶盒技术领域,尤其涉及一种测试机顶盒稳定性的方法、装置及电子设备。The present invention relates to the field of set top box technologies, and in particular, to a method, device and electronic device for testing the stability of a set top box.
【背景技术】【Background technique】
为了确保机顶盒在客户使用时能够长时间的稳定运行,通常在机顶盒开发阶段需要对机顶盒进行稳定性测试。机顶盒中双倍速率同步动态随机存储器(Double Data Rate,DDR)的稳定性是机顶盒稳定性的基础。如果DDR不稳定,机顶盒可能会出现视频马赛克,甚至是死机现象。In order to ensure that the set-top box can run stably for a long time when the customer uses it, it is usually necessary to perform stability test on the set-top box in the development stage of the set-top box. The stability of double rate synchronous dynamic random access memory (DDR) in the set top box is the basis of the stability of the set top box. If the DDR is unstable, the set-top box may have video mosaics or even crashes.
目前,测试DDR稳定性的常用方法是,将设定好的DDR的一组参数烧录到机顶盒的Flash中,用多台机顶盒做拷机测试,在测试过程中,机顶盒需要连续运行若干天,拷机的运行天数根据项目目标和企业标准而不同,通常需要3至7天。如果机顶盒在拷机测试中正常工作,则认为该组DDR参数是合适的,如果拷机测试结果有问题,则需要修改DDR参数,配置新的DDR参数并进行新一轮的测试。At present, the common method for testing DDR stability is to burn a set of parameters of the set DDR into the Flash of the set-top box, and use multiple set-top boxes to do the copy machine test. During the test, the set-top box needs to run continuously for several days. The number of days the machine is operated varies depending on the project objectives and company standards, and usually takes 3 to 7 days. If the set-top box works normally in the copying test, the set of DDR parameters is considered appropriate. If there is a problem with the copying test result, the DDR parameter needs to be modified, a new DDR parameter is configured, and a new round of testing is performed.
在实现本申请的过程中,发明人发现相关技术至少存在以下问题:在机顶盒测试的初始阶段,由于很多组DDR参数不够稳定,需要多次修改DDR参数并重新做拷机测试,从而造成产品的开发时间延长,增加了研发成本。In the process of implementing the present application, the inventor found that the related art has at least the following problems: in the initial stage of the set-top box test, since many sets of DDR parameters are not stable enough, it is necessary to modify the DDR parameters multiple times and re-test the machine, thereby causing the product. The development time is extended and the research and development costs are increased.
【发明内容】[Summary of the Invention]
本申请实施例要解决的技术问题是提供一种测试机顶盒稳定性的方法、装置及电子设备,解决现有的机顶盒测试存在调试时间长、研发成本高的技术问题。The technical problem to be solved by the embodiments of the present application is to provide a method, a device and an electronic device for testing the stability of a set top box, and to solve the technical problem that the existing set top box test has long debugging time and high research and development cost.
本申请实施例的一个方面,提供一种测试机顶盒稳定性的方法,应用于智能终端,所述方法包括:An aspect of the embodiments of the present application provides a method for testing stability of a set top box, which is applied to an intelligent terminal, where the method includes:
在与机顶盒建立连接后,向所述机顶盒发送运行程序命令,其中,所述运行程序命令用于使所述机顶盒初始化,所述初始化包括配置所述机顶盒中 的DDR的第一初始参数;After establishing a connection with the set top box, sending a running program command to the set top box, wherein the running program command is used to initialize the set top box, and the initializing comprises configuring a first initial parameter of the DDR in the set top box;
向所述机顶盒发送预设的视频文件和解码命令,以使所述机顶盒的DDR在所述第一初始参数下运行时,根据所述解码命令解码所述视频文件;Sending a preset video file and a decoding command to the set top box, so that when the DDR of the set top box is run under the first initial parameter, the video file is decoded according to the decoding command;
获取解码后的所述视频文件的视频帧数据;Obtaining video frame data of the decoded video file;
判断所述视频帧数据和预设数据库中的验证数据是否一致;Determining whether the video frame data and the verification data in the preset database are consistent;
若所述视频帧数据与预设数据库中的验证数据一致,则重复获取解码后的所述视频文件的下一视频帧数据,并将获取到的所述视频帧数据与所述预设数据库中的验证数据进行比较,在预设时间内获取到的所述视频帧数据均与所述预设数据库中的验证数据一致时,则确定所述机顶盒稳定,并且将所述第一初始参数确定为所述机顶盒的稳定参数。If the video frame data is consistent with the verification data in the preset database, the next video frame data of the decoded video file is repeatedly obtained, and the obtained video frame data is compared with the preset database. And verifying, when the video frame data acquired in the preset time period is consistent with the verification data in the preset database, determining that the set top box is stable, and determining the first initial parameter as Stable parameters of the set top box.
可选地,所述方法还包括:Optionally, the method further includes:
若所述视频帧数据与预设数据库中的验证数据不一致,则调整所述DDR的第一初始参数,并跳转至所述获取解码后的所述视频文件的视频帧数据步骤。And if the video frame data is inconsistent with the verification data in the preset database, adjusting the first initial parameter of the DDR, and jumping to the step of acquiring the decoded video frame data of the video file.
可选地,所述方法还包括:Optionally, the method further includes:
若所述视频帧数据与预设数据库中的验证数据不一致,则为所述DDR配置至少两组不同的第二初始参数,并且向所述机顶盒发送预设的视频文件和解码命令,以使所述机顶盒的DDR在所述至少两组不同的第二初始参数下运行时,根据所述解码命令解码所述视频文件;If the video frame data is inconsistent with the verification data in the preset database, configure at least two different sets of second initial parameters for the DDR, and send a preset video file and a decoding command to the set top box to enable the Decoding the video file according to the decoding command when the DDR of the set top box is operated under the at least two different sets of second initial parameters;
基于相同的预设时间,分别获取解码后所述至少两组不同的第二初始参数对应的视频帧数据;Obtaining, according to the same preset time, video frame data corresponding to the at least two different sets of second initial parameters after decoding;
将获取到的所述至少两组不同的第二初始参数对应的视频帧数据与所述预设数据库中的验证数据分别进行比较,以获取所述视频帧数据与所述验证数据不一致数量最少的第二初始参数;Comparing the obtained video frame data corresponding to the at least two different sets of second initial parameters with the verification data in the preset database, respectively, to obtain the least number of inconsistencies between the video frame data and the verification data. Second initial parameter;
将获取到的所述第二初始参数确定为所述机顶盒的稳定参数。The obtained second initial parameter is determined as a stable parameter of the set top box.
本申请实施例的另一方面,提供一种测试机顶盒稳定性的方法,应用于机顶盒,所述方法包括:Another aspect of an embodiment of the present application provides a method for testing stability of a set top box, which is applied to a set top box, and the method includes:
接收智能终端发送的运行程序命令,并根据所述运行程序命令进行初始化,所述初始化包括配置所述机顶盒中的DDR的第一初始参数;Receiving a running program command sent by the smart terminal, and initializing according to the running program command, where the initializing includes configuring a first initial parameter of the DDR in the set top box;
接收所述智能终端发送的预设的视频文件和解码命令;Receiving a preset video file and a decoding command sent by the smart terminal;
在所述机顶盒的DDR在所述第一初始参数下运行时,根据所述解码命令对所述视频文件进行解码,生成视频帧数据;When the DDR of the set top box is running under the first initial parameter, decoding the video file according to the decoding command to generate video frame data;
向所述智能终端发送生成的所述视频帧数据,以使所述智能终端根据所述视频帧数据和预设数据库中的验证数据判断所述机顶盒是否稳定。Sending the generated video frame data to the smart terminal, so that the smart terminal determines whether the set top box is stable according to the video frame data and the verification data in a preset database.
本申请实施例的又一方面,提供一种测试机顶盒稳定性的装置,应用于智能终端,所述装置包括:A further aspect of the embodiments of the present application provides a device for testing stability of a set top box, which is applied to a smart terminal, and the device includes:
第一发送模块,用于在与机顶盒建立连接后,向所述机顶盒发送运行程序命令,其中,所述运行程序命令用于使所述机顶盒初始化,所述初始化包括配置所述机顶盒中的DDR的第一初始参数;a first sending module, configured to send a running program command to the set top box after establishing a connection with the set top box, wherein the running program command is used to initialize the set top box, and the initializing comprises configuring a DDR in the set top box First initial parameter;
第二发送模块,用于向所述机顶盒发送预设的视频文件和解码命令,以使所述机顶盒的DDR在所述第一初始参数下运行时,根据所述解码命令解码所述视频文件;a second sending module, configured to send a preset video file and a decoding command to the set top box, so that when the DDR of the set top box is run under the first initial parameter, the video file is decoded according to the decoding command;
第一获取模块,用于获取解码后的所述视频文件的视频帧数据;a first acquiring module, configured to acquire video frame data of the decoded video file;
第一判断模块,用于判断所述视频帧数据和预设数据库中的验证数据是否一致;a first determining module, configured to determine whether the video frame data and the verification data in the preset database are consistent;
第一处理模块,用于若所述视频帧数据与预设数据库中的验证数据一致,则重复获取解码后的所述视频文件的下一视频帧数据,并将获取到的所述视频帧数据与所述预设数据库中的验证数据进行比较,在预设时间内获取到的所述视频帧数据均与所述预设数据库中的验证数据一致时,则确定所述机顶盒稳定,并且将所述第一初始参数确定为所述机顶盒的稳定参数。a first processing module, configured to: if the video frame data is consistent with the verification data in the preset database, repeatedly acquiring the next video frame data of the decoded video file, and acquiring the obtained video frame data Comparing with the verification data in the preset database, when the video frame data acquired in the preset time period is consistent with the verification data in the preset database, determining that the set top box is stable, and The first initial parameter is determined as a stable parameter of the set top box.
可选地,所述装置还包括:Optionally, the device further includes:
第二处理模块,用于若所述视频帧数据与预设数据库中的验证数据不一致,则调整所述DDR的第一初始参数,并跳转至所述获取解码后的所述视频文件的视频帧数据步骤。a second processing module, configured to: if the video frame data is inconsistent with the verification data in the preset database, adjust a first initial parameter of the DDR, and jump to the video that obtains the decoded video file Frame data step.
可选地,所述装置还包括:Optionally, the device further includes:
第三处理模块,用于若所述视频帧数据与预设数据库中的验证数据不一致,则为所述DDR配置至少两组不同的第二初始参数,并且向所述机顶盒发送预设的视频文件和解码命令,以使所述机顶盒的DDR在所述至少两组不同的第二初始参数下运行时,根据所述解码命令解码所述视频文件;a third processing module, configured to configure at least two different sets of second initial parameters for the DDR if the video frame data is inconsistent with the verification data in the preset database, and send the preset video file to the set top box And decoding a command to decode the video file according to the decoding command when the DDR of the set top box is operated under the at least two different sets of second initial parameters;
第二获取模块,用于基于相同的预设时间,分别获取解码后所述至少两 组不同的第二初始参数对应的视频帧数据;a second acquiring module, configured to acquire, according to the same preset time, video frame data corresponding to the at least two different second initial parameters after decoding;
第三获取模块,用于将获取到的所述至少两组不同的第二初始参数对应的视频帧数据与所述预设数据库中的验证数据分别进行比较,以获取所述视频帧数据与所述验证数据不一致数量最少的第二初始参数;a third acquiring module, configured to compare the acquired video frame data corresponding to the at least two different sets of second initial parameters with the verification data in the preset database, to obtain the video frame data and the a second initial parameter that verifies that the data inconsistency is the least;
第四处理模块,用于将获取到的所述第二初始参数确定为所述机顶盒的稳定参数。And a fourth processing module, configured to determine the obtained second initial parameter as a stable parameter of the set top box.
本申请实施例的再一方面,提供一种测试机顶盒稳定性的装置,应用于机顶盒,所述装置包括:In still another aspect of the embodiments of the present application, a device for testing stability of a set top box is provided, which is applied to a set top box, and the device includes:
第一接收模块,用于接收智能终端发送的运行程序命令,并根据所述运行程序命令进行初始化,所述初始化包括配置所述机顶盒中的DDR的第一初始参数;a first receiving module, configured to receive a running program command sent by the smart terminal, and perform initialization according to the running program command, where the initializing includes configuring a first initial parameter of the DDR in the set top box;
第二接收模块,用于接收所述智能终端发送的预设的视频文件和解码命令;a second receiving module, configured to receive a preset video file and a decoding command sent by the smart terminal;
第一解码模块,用于在所述机顶盒的DDR在所述第一初始参数下运行时,根据所述解码命令对所述视频文件进行解码,生成视频帧数据;a first decoding module, configured to: when the DDR of the set top box is running under the first initial parameter, decode the video file according to the decoding command to generate video frame data;
第三发送模块,用于向所述智能终端发送生成的所述视频帧数据,以使所述智能终端根据所述视频帧数据和预设数据库中的验证数据判断所述机顶盒是否稳定。The third sending module is configured to send the generated video frame data to the smart terminal, so that the smart terminal determines whether the set top box is stable according to the video frame data and the verification data in the preset database.
本申请实施例的还一方面,提供一种电子设备,包括:至少一个处理器;以及,与所述至少一个处理器通信连接的存储器;其中,所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行如上所述的方法。In still another aspect of an embodiment of the present application, an electronic device includes: at least one processor; and a memory communicably coupled to the at least one processor; wherein the memory is stored for processing by the at least one An instruction executed by the at least one processor to enable the at least one processor to perform the method as described above.
本申请实施例的又另一方面,提供一种非易失性计算机可读存储介质,所述计算机可读存储介质存储有计算机可执行指令,所述计算机可执行指令用于使计算机执行如上所述的方法。In still another aspect of an embodiment of the present application, a non-transitory computer readable storage medium storing computer-executable instructions for causing a computer to execute the above The method described.
本申请实施例的再另一方面,提供一种计算机程序产品,所述计算机程序产品包括存储在非易失性计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行如上所述的方法。In still another aspect of an embodiment of the present application, a computer program product is provided, the computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions, when When the program instructions are executed by the computer, the computer is caused to perform the method as described above.
在本申请实施例中,通过智能终端配置机顶盒中DDR的初始参数,并且向机顶盒发送预设的视频文件,以使机顶盒在配置好的初始参数下运行时,解码所述视频文件,生成视频帧数据,智能终端从机顶盒中获取该视频帧数据,并将该视频帧数据与预设数据库中的验证数据进行比较,如果匹配一致,则表示该机顶盒当前运行状态稳定,并且该配置的初始参数符合要求。该实施方式能够缩短机顶盒稳定性测试的时间,能够更快的获取到合适的DDR参数,从而缩短了产品的开发时间,降低了研发成本。In the embodiment of the present application, the initial parameters of the DDR in the set top box are configured by the smart terminal, and the preset video file is sent to the set top box, so that when the set top box runs under the configured initial parameters, the video file is decoded to generate a video frame. Data, the smart terminal obtains the video frame data from the set top box, and compares the video frame data with the verification data in the preset database. If the matching is consistent, the current running state of the set top box is stable, and the initial parameters of the configuration are consistent. Claim. This embodiment can shorten the time of the set-top box stability test, and can obtain the appropriate DDR parameters more quickly, thereby shortening the development time of the product and reducing the development cost.
【附图说明】[Description of the Drawings]
一个或多个实施例通过与之对应的附图中的图片进行示例性说明,这些示例性说明并不构成对实施例的限定,附图中具有相同参考数字标号的元件表示为类似的元件,除非有特别申明,附图中的图不构成比例限制。The one or more embodiments are exemplified by the accompanying drawings in the accompanying drawings, and FIG. The figures in the drawings do not constitute a scale limitation unless otherwise stated.
图1是本申请实施例的运行环境示意图;1 is a schematic diagram of an operating environment of an embodiment of the present application;
图2是本申请实施例一提供的一种测试机顶盒稳定性的方法的流程图;2 is a flowchart of a method for testing stability of a set top box according to Embodiment 1 of the present application;
图3是本申请实施例二提供的一种测试机顶盒稳定性的方法的流程图;3 is a flowchart of a method for testing stability of a set top box according to Embodiment 2 of the present application;
图4是本申请实施例三提供的一种测试机顶盒稳定性的方法的流程图;4 is a flowchart of a method for testing stability of a set top box according to Embodiment 3 of the present application;
图5是本申请实施例四提供的一种测试机顶盒稳定性的方法的流程图;5 is a flowchart of a method for testing stability of a set top box according to Embodiment 4 of the present application;
图6是本申请实施例五提供的这一种测试机顶盒稳定性的装置的结构示意图;6 is a schematic structural diagram of an apparatus for testing stability of a set top box according to Embodiment 5 of the present application;
图7是本申请实施例六提供的这一种测试机顶盒稳定性的装置的结构示意图;7 is a schematic structural diagram of an apparatus for testing stability of a set top box according to Embodiment 6 of the present application;
图8是本申请实施例七提供的电子设备的硬件结构示意图。FIG. 8 is a schematic structural diagram of hardware of an electronic device according to Embodiment 7 of the present application.
【具体实施方式】【detailed description】
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本申请,并不用于限定本申请。In order to make the objects, technical solutions, and advantages of the present application more comprehensible, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the application and are not intended to be limiting.
需要说明的是,如果不冲突,本申请实施例中的各个特征可以相互组合, 均在本申请的保护范围之内。另外,虽然在装置示意图中进行了功能模块的划分,在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于装置示意图中的模块划分,或流程图中的顺序执行所示出或描述的步骤。It should be noted that, if there is no conflict, the various features in the embodiments of the present application may be combined with each other, and are all within the protection scope of the present application. In addition, although the division of the functional modules is performed in the device schematic, the logical sequence is shown in the flowchart, but in some cases, it may be performed in a different manner from the modules in the device schematic, or in the order in the flowchart. The steps shown or described.
为了方便读者更好地理解本申请,在对本申请的申请思想进行描述之前,先对本申请的运行环境进行描述,请参阅图1,图1是本申请实施例的运行环境示意图,运行环境包括智能终端10和机顶盒20。智能终端10与机顶盒20之间建立连接,具体地,智能终端10可以通过调试控制器连接机顶盒20,智能终端10上运行调试工具软件,然后通过调试控制器20连接机顶盒30的JTAG接口,由此,智能终端10与机顶盒20之间可以高速地进行数据交换。其中,智能终端10可以通过USB数据线连接所述调试控制器,所述调试控制器可以通过JTAG数据线连接所述机顶盒20。In order to facilitate the reader's understanding of the present application, the operating environment of the present application will be described before the description of the application of the present application. Referring to FIG. 1 , FIG. 1 is a schematic diagram of an operating environment of an embodiment of the present application, and the operating environment includes an intelligent environment. Terminal 10 and set top box 20. The smart terminal 10 is connected to the set top box 20. Specifically, the smart terminal 10 can be connected to the set top box 20 through the debug controller, the debugging tool software is run on the smart terminal 10, and then the JTAG interface of the set top box 30 is connected through the debug controller 20. The data exchange between the smart terminal 10 and the set top box 20 can be performed at high speed. The smart terminal 10 can be connected to the debug controller through a USB data line, and the debug controller can connect the set top box 20 through a JTAG data line.
所述智能终端10具体可以是台式计算机、笔记本电脑、平板电脑、智能手机等等。所述机顶盒20具体可以是单向机顶盒、双向机顶盒、IPTV机顶盒等等。所述机顶盒20中设有处理器和双倍速率同步动态随机存储器(Double Data Rate,DDR),上述JTAG接口设置于所述处理器中,处理器与DDR之间可以通过DDR数据总线连接。The smart terminal 10 may specifically be a desktop computer, a notebook computer, a tablet computer, a smart phone, or the like. The set top box 20 may specifically be a one-way set top box, a two-way set top box, an IPTV set top box, and the like. The set top box 20 is provided with a processor and a double rate synchronous dynamic random access memory (DDR). The JTAG interface is disposed in the processor, and the processor and the DDR can be connected through a DDR data bus.
在本申请实施例中,智能终端10主要用于对机顶盒20的稳定性进行测试。在该过程中,智能终端10首先向机顶盒20发送命令触发运行程序,使机顶盒20的程序开始运行,以进行初始化,该初始化包括配置机顶盒20中DDR的初始参数。机顶盒20初始化完成后,智能终端10向机顶盒20发送预设的视频文件和解码命令,以使机顶盒20在配置好的初始参数的运行状态下,根据解码命令对视频文件进行解码,从而生成解码后的视频帧数据。智能终端10获取该视频帧数据,并且将该视频帧数据与预设数据库中的验证数据进行匹配,若匹配一致,则可以继续获取解码后的视频帧数据,并将每次获取到的视频帧数据与预设数据库中的验证数据进行匹配,如果在预设时间内获取到的视频帧数据与预设数据库中的验证数据均匹配一致,则确定所述机顶盒20稳定,此时初始化确定的DDR的初始参数为使所述机顶盒20稳定的参数。In the embodiment of the present application, the smart terminal 10 is mainly used to test the stability of the set top box 20. In the process, the smart terminal 10 first sends a command trigger running program to the set top box 20 to cause the program of the set top box 20 to start running for initialization, which includes configuring the initial parameters of the DDR in the set top box 20. After the initialization of the set top box 20 is completed, the smart terminal 10 sends a preset video file and a decoding command to the set top box 20, so that the set top box 20 decodes the video file according to the decoding command in the running state of the configured initial parameters, thereby generating the decoded image. Video frame data. The smart terminal 10 acquires the video frame data, and matches the video frame data with the verification data in the preset database. If the matching is consistent, the decoded video frame data can be continuously obtained, and the obtained video frame is acquired each time. The data is matched with the verification data in the preset database. If the video frame data acquired within the preset time matches the verification data in the preset database, it is determined that the set top box 20 is stable, and the determined DDR is initialized. The initial parameters are parameters that stabilize the set top box 20.
此外,智能终端10除了通过调试控制器与机顶盒20建立连接关系之外,还可以通过其他方式与机顶盒20建立连接,比如蓝牙等。In addition, the smart terminal 10 can establish a connection relationship with the set top box 20 through other means, such as Bluetooth, etc., in addition to establishing a connection relationship with the set top box 20 through the debug controller.
下面提供一种应用于上述运行环境的测试机顶盒稳定性的方法。A method of testing the stability of a set top box for use in the above described operating environment is provided below.
实施例一Embodiment 1
请参阅图2,图2是本申请实施例一提供的一种测试机顶盒稳定性的方法的流程图,该方法由上述智能终端10执行,该方法包括:Referring to FIG. 2, FIG. 2 is a flowchart of a method for testing stability of a set-top box according to Embodiment 1 of the present application. The method is performed by the smart terminal 10, and the method includes:
步骤101、在与机顶盒建立连接后,向所述机顶盒发送运行程序命令,其中,所述运行程序命令用于使所述机顶盒初始化,所述初始化包括配置所述机顶盒中的DDR的第一初始参数。Step 101: After establishing a connection with the set top box, send a running program command to the set top box, where the running program command is used to initialize the set top box, and the initializing includes configuring a first initial parameter of the DDR in the set top box. .
目前,机顶盒常用DDR作为动态存储器,DDR的稳定性是机顶盒整机稳定性的基础,因此,本申请实施例的主要目的在于确定一组相对稳定的DDR参数。为了获取到最终相对稳定的DDR参数,首先确定其初始参数,上述第一初始参数即预设的DDR初始参数。上述运行程序命令可以是智能终端10中的运行的调试工具软件生成的,其作用在于触发所述机顶盒20初始化,在触发机顶盒20开始初始化后,其中包括DDR在内的所有硬件都开始初始化,DDR初始化主要包括配置所述DDR的第一初始参数。其中,关于DDR参数主要包括的内容可以参考相关技术中的记载。At present, the set-top box is commonly used as a dynamic memory, and the stability of the DDR is the basis of the stability of the set-top box. Therefore, the main purpose of the embodiment of the present application is to determine a relatively stable set of DDR parameters. In order to obtain the final relatively stable DDR parameter, the initial parameters are first determined, and the first initial parameter is the preset DDR initial parameter. The above running program command may be generated by the running debugging tool software in the smart terminal 10, and the function thereof is to trigger the initialization of the set top box 20, and after triggering the initialization of the set top box 20, all hardware including the DDR starts to be initialized, DDR. Initialization primarily includes configuring a first initial parameter of the DDR. For the contents mainly included in the DDR parameters, reference may be made to the description in the related art.
步骤102、向所述机顶盒发送预设的视频文件和解码命令,以使所述机顶盒的DDR在所述第一初始参数下运行时,根据所述解码命令解码所述视频文件。Step 102: Send a preset video file and a decoding command to the set top box, so that when the DDR of the set top box is run under the first initial parameter, the video file is decoded according to the decoding command.
步骤103、获取解码后的所述视频文件的视频帧数据。Step 103: Obtain video frame data of the decoded video file.
步骤104、判断所述视频帧数据和预设数据库中的验证数据是否一致。Step 104: Determine whether the video frame data and the verification data in the preset database are consistent.
步骤105、若所述视频帧数据与预设数据库中的验证数据一致,则重复获取解码后的所述视频文件的下一视频帧数据,并将获取到的所述视频帧数据与所述预设数据库中的验证数据进行比较,在预设时间内获取到的所述视频帧数据均与所述预设数据库中的验证数据一致时,则确定所述机顶盒稳定,并且将所述第一初始参数确定为所述机顶盒的稳定参数。Step 105: If the video frame data is consistent with the verification data in the preset database, the next video frame data of the decoded video file is repeatedly obtained, and the obtained video frame data and the pre-prepared The verification data in the database is compared, and when the video frame data acquired in the preset time period is consistent with the verification data in the preset database, determining that the set top box is stable, and the first initial is The parameter is determined as a stable parameter of the set top box.
其中,上述视频文件可以是任意类型格式的视频文件,考虑到带宽传输的效率问题,在这里先对所述视频文件进行压缩编码,然后再发送压缩后的视频文件和解码命令至所述机顶盒20中,机顶盒20根据所述解码命令对所述视频文件进行解码。The video file may be a video file of any type. In consideration of the efficiency of the bandwidth transmission, the video file is first compression-coded, and then the compressed video file and the decoding command are sent to the set-top box 20. The set top box 20 decodes the video file according to the decoding command.
需要说明的是,由于视频文件在解码过程中会涉及到大量的计算,如果 所述DDR的第一初始参数配置不合理,则DDR会随机产生读写或者计算错误,从而导致最终解码出来的视频帧数据出错。因此,在本实施例中,通过连续视频解码并检验解码后的视频帧数据即可以判断所述DDR的第一初始参数是否足够温度。It should be noted that, since the video file involves a large number of calculations in the decoding process, if the first initial parameter configuration of the DDR is unreasonable, the DDR randomly generates read/write or calculation errors, resulting in the final decoded video. Error in frame data. Therefore, in the present embodiment, it is possible to determine whether the first initial parameter of the DDR is sufficient temperature by successive video decoding and verifying the decoded video frame data.
其中,视频文件的解码过程在所述DDR中运行,解码后的视频帧数据保存在所述DDR中。智能终端10从所述DDR中获取解码后的视频帧数据,并将获取到的视频帧数据与预设数据库中的验证数据进行比较,如果两项视频帧数据一致,则继续从DDR中获取解码后的所述视频文件的下一视频帧数据,并且继续将获取到的视频帧数据与预设数据库中的验证数据进行比较,如果两项视频帧数据一致,重复该过程直至预设的时间结束。在所述预设时间内,如果全部的视频帧数据均与预设数据库中的验证数据一致,则表示所述DDR的第一初始参数是最终确定的相对稳定的DDR参数,也即表示DDR在所述第一初始参数下运行时能够保持所述机顶盒整机稳定。The decoding process of the video file is run in the DDR, and the decoded video frame data is saved in the DDR. The smart terminal 10 obtains the decoded video frame data from the DDR, and compares the obtained video frame data with the verification data in the preset database. If the two video frame data are consistent, the smart terminal continues to obtain decoding from the DDR. The next video frame data of the video file is continued, and the obtained video frame data is continuously compared with the verification data in the preset database. If the two video frame data are consistent, the process is repeated until the preset time is over. . During the preset time, if all the video frame data are consistent with the verification data in the preset database, it indicates that the first initial parameter of the DDR is a finally determined relatively stable DDR parameter, that is, the DDR is The set top box can be kept stable when running under the first initial parameter.
其中,所述预设数据库中的验证数据是所述预设的视频文件预先解码好的并且存储在数据库中的视频帧文件,在这里,将DDR中解码的每一视频帧数据分别与其对应的预存的视频帧数据进行比较,从而保证数据的一致性。所述预设时间的长短可以根据经验或者实验确定,以保证在该预设时间内确定的DDR参数是最合适的,该预设时间可以取24小时,如果在24小时内,DDR在所述第一初始参数运行下,解码的视频帧数据与验证数据均一致,则说明所述机顶盒20是足够稳定的。另外,最终确定的DDR参数可以进一步通过拷机测试进行验证,以确保该DDR参数是最合适的。The verification data in the preset database is a video frame file that is pre-decoded by the preset video file and stored in a database, where each video frame data decoded in the DDR is respectively corresponding thereto. The pre-stored video frame data is compared to ensure data consistency. The length of the preset time may be determined according to experience or experiment to ensure that the DDR parameter determined within the preset time is most suitable, and the preset time may take 24 hours, if within 24 hours, the DDR is in the Under the operation of the first initial parameter, the decoded video frame data is consistent with the verification data, indicating that the set top box 20 is sufficiently stable. In addition, the finalized DDR parameters can be further verified by a copy machine test to ensure that the DDR parameters are most suitable.
需要说明的是,在测试过程中可以根据每次对视频帧数据的测试结果调整预设时间的长短,比如得到连续三组相同的视频帧数据,则可以结束测试;或者只要检测到存在一组视频帧数据不同,则可以终止测试。由此,能够灵活地设置测试时间,提高测试效率。It should be noted that, during the testing process, the length of the preset time can be adjusted according to the test result of the video frame data each time, for example, if three consecutive sets of the same video frame data are obtained, the test can be ended; or as long as a group is detected If the video frame data is different, the test can be terminated. Thereby, the test time can be flexibly set, and the test efficiency can be improved.
此外,在连续测试的过程中,新解码的视频帧数据会覆盖上一视频帧数据所占据的DDR区域,从而保证DDR的存储空间不被占用太多,节约其存储空间。In addition, in the process of continuous testing, the newly decoded video frame data will cover the DDR area occupied by the previous video frame data, thereby ensuring that the storage space of the DDR is not occupied too much, saving its storage space.
本申请实施例提供了一种测试机顶盒稳定性的方法,该方法通过智能终端配置机顶盒中DDR的初始参数,并且向机顶盒发送预设的视频文件,以使 机顶盒在配置好的初始参数下运行时,解码所述视频文件,生成视频帧数据,智能终端从机顶盒中获取该视频帧数据,并将该视频帧数据与预设数据库中的验证数据进行比较,如果匹配一致,则表示该机顶盒当前运行状态稳定,并且该配置的初始参数符合要求。该实施方式能够缩短机顶盒稳定性测试的时间,能够更快的获取到合适的DDR参数,从而缩短了产品的开发时间,降低了研发成本。An embodiment of the present application provides a method for testing stability of a set top box, where the smart terminal configures an initial parameter of the DDR in the set top box, and sends a preset video file to the set top box, so that the set top box runs under the configured initial parameters. Decoding the video file to generate video frame data, the smart terminal acquires the video frame data from the set top box, and compares the video frame data with the verification data in the preset database. If the matching is consistent, the set top box is currently running. The state is stable and the initial parameters of the configuration meet the requirements. This embodiment can shorten the time of the set-top box stability test, and can obtain the appropriate DDR parameters more quickly, thereby shortening the development time of the product and reducing the development cost.
实施例二Embodiment 2
请参阅图3,图3是本申请实施例二提供的一种测试机顶盒稳定性的方法的流程图,图3与上述图2的主要区别在于,所述方法还包括:Referring to FIG. 3, FIG. 3 is a flowchart of a method for testing the stability of a set-top box according to Embodiment 2 of the present application. The main difference between FIG. 3 and FIG. 2 is that the method further includes:
步骤106、若所述视频帧数据与预设数据库中的验证数据不一致,则调整所述DDR的第一初始参数,并跳转至所述获取解码后的所述视频文件的视频帧数据步骤。Step 106: If the video frame data is inconsistent with the verification data in the preset database, adjust the first initial parameter of the DDR, and jump to the step of acquiring the decoded video frame data of the video file.
在上述实施例一的基础上,当解码出的视频帧数据与预设数据库中的验证数据不一致时,说明当前配置的第一初始参数有问题,在视频文件解码过程中由于读写或者计算错误而导致解码出的视频帧数据与预设数据库中的验证数据不一致。此时,所述智能终端10可以控制调整所述机顶盒20中DDR的第一初始参数,在调整所述第一初始参数后,继续执行获取解码后的视频帧数据,并将获取到的视频帧数据与预设数据库中的验证数据进行比较的步骤。其中,解码后的视频帧数据是视频文件在第一初始参数被调整后的新的DDR参数下进行解码的。另外,如果在新的DDR参数下,获取到的视频帧数据与预设数据库中的验证数据还不一致时,则继续调整所述新的DDR参数,并且重复上述过程。可以在接收到终止命令,结束该测试过程。On the basis of the foregoing embodiment 1, when the decoded video frame data is inconsistent with the verification data in the preset database, it indicates that there is a problem with the first initial parameter of the current configuration, and the read/write or calculation error occurs during the decoding process of the video file. The decoded video frame data is inconsistent with the verification data in the preset database. At this time, the smart terminal 10 can control the first initial parameter of the DDR in the set top box 20, and after adjusting the first initial parameter, continue to perform acquiring the decoded video frame data, and the obtained video frame is obtained. The step of comparing the data with the verification data in the preset database. The decoded video frame data is decoded by the video file under a new DDR parameter after the first initial parameter is adjusted. In addition, if the acquired video frame data is not consistent with the verification data in the preset database under the new DDR parameter, the new DDR parameter is continuously adjusted, and the above process is repeated. The test process can be ended upon receipt of a termination command.
其中,上述DDR参数的调整过程可以是基于所述第一初始参数进行调整,比如以预设阈值为最小单位,在第一初始参数的基础上使第一个调整后的DDR参数与第一初始参数相差一个所述最小单位,使第二个调整后的DDR参数与第一初始参数相差两个所述最小单位,依次类推,从而确定调整后的DDR参数。The adjusting process of the DDR parameter may be performed based on the first initial parameter, for example, by using a preset threshold as a minimum unit, and making the first adjusted DDR parameter and the first initial based on the first initial parameter. The parameters differ by one of the minimum units, such that the second adjusted DDR parameter differs from the first initial parameter by two of the minimum units, and so on, thereby determining the adjusted DDR parameter.
此外,当解码出的视频帧数据与预设数据库中的验证数据不一致时,可以在所述智能终端10的显示屏上输出错误的数据地址,以便测试人员及时掌握具体地错误。In addition, when the decoded video frame data is inconsistent with the verification data in the preset database, an erroneous data address may be output on the display screen of the smart terminal 10, so that the tester can grasp the specific error in time.
本申请实施例在解码后的视频帧数据与预设数据库中的验证数据不一致时,给出了一种调整方法,根据该方法能够尽快地确定最合适的DDR参数,从而降低产品的研发成本。In the embodiment of the present application, when the decoded video frame data is inconsistent with the verification data in the preset database, an adjustment method is provided, according to which the most suitable DDR parameter can be determined as soon as possible, thereby reducing the development cost of the product.
实施例三Embodiment 3
请参阅图4,图4是本申请实施例三提供的一种测试机顶盒稳定性的方法的流程图,图4与上述图2的主要区别在于,所述方法还包括:Referring to FIG. 4, FIG. 4 is a flowchart of a method for testing stability of a set-top box according to Embodiment 3 of the present application. The main difference between FIG. 4 and FIG. 2 is that the method further includes:
步骤107、若所述视频帧数据与预设数据库中的验证数据不一致,则为所述DDR配置至少两组不同的第二初始参数,并且向所述机顶盒发送预设的视频文件和解码命令,以使所述机顶盒的DDR在所述至少两组不同的第二初始参数下运行时,根据所述解码命令解码所述视频文件;Step 107: If the video frame data is inconsistent with the verification data in the preset database, configure at least two different sets of second initial parameters for the DDR, and send a preset video file and a decoding command to the set top box. When the DDR of the set top box is operated under the at least two different sets of second initial parameters, decoding the video file according to the decoding command;
步骤108、基于相同的预设时间,分别获取解码后所述至少两组不同的第二初始参数对应的视频帧数据;Step 108: Obtain, according to the same preset time, video frame data corresponding to the at least two different sets of second initial parameters after decoding, respectively.
步骤109、将获取到的所述至少两组不同的第二初始参数对应的视频帧数据与所述预设数据库中的验证数据分别进行比较,以获取所述视频帧数据与所述验证数据不一致数量最少的第二初始参数;Step 109: Compare the obtained video frame data corresponding to the at least two different sets of second initial parameters with the verification data in the preset database, respectively, to obtain that the video frame data is inconsistent with the verification data. The second initial parameter with the least number;
步骤110、将获取到的所述第二初始参数确定为所述机顶盒的稳定参数。Step 110: Determine the obtained second initial parameter as a stable parameter of the set top box.
在上述实施例一的基础上,本申请实施例在所述解码后的视频帧数据与所述预设数据库中的验证数据不同时,重新配置DDR参数,即调整第一初始参数。本实施例与上述实施例二的区别在于,同时重新配置至少两组不同的第二初始参数。所述第二初始参数不同于所述第一初始参数,并且每一组第二初始参数之间也互相不同。然后基于上述实施例一中的步骤,在每一组第二初始参数下基于相同的时间分别解码相同的视频文件,得到至少两组视频帧数据,将得到的至少两组视频帧数据分别与预设数据库中的验证数据进行比较,统计所述至少两组视频帧数据中每一视频帧与所述验证数据中每一视频帧相同的概率,最后将存在相同的视频帧概率大的视频帧数据对应的第二初始参数确定为使所述机顶盒20相对稳定的DDR参数。On the basis of the foregoing embodiment 1, when the decoded video frame data is different from the verification data in the preset database, the DDR parameter is reconfigured, that is, the first initial parameter is adjusted. The difference between this embodiment and the foregoing embodiment 2 is that at least two different sets of second initial parameters are reconfigured at the same time. The second initial parameter is different from the first initial parameter, and each set of second initial parameters is also different from each other. Then, based on the steps in the first embodiment, the same video file is separately decoded based on the same time under each set of second initial parameters, and at least two sets of video frame data are obtained, and at least two sets of video frame data are respectively obtained. The verification data in the database is compared, and the probability that each video frame in the at least two sets of video frame data is the same as each video frame in the verification data is calculated, and finally the video frame data with the same probability of having the same video frame is present. The corresponding second initial parameter is determined as a DDR parameter that makes the set top box 20 relatively stable.
本申请实施例同时对多组DDR参数进行测试,从而能够更快的获取到使机顶盒相对稳定的DDR参数,相比较于现有技术,本实施方式提高了测试效率,缩短了产品的测试周期,降低了产品开发成本。The embodiments of the present application simultaneously test multiple sets of DDR parameters, so that the DDR parameters that make the set-top box relatively stable can be obtained more quickly. Compared with the prior art, the embodiment improves the test efficiency and shortens the test period of the product. Reduced product development costs.
实施例四Embodiment 4
请参阅图5,图5是本申请实施例四提供的一种测试机顶盒稳定性的方法的流程图,该方法由上述机顶盒20执行,该方法包括:Referring to FIG. 5, FIG. 5 is a flowchart of a method for testing the stability of a set-top box according to Embodiment 4 of the present application. The method is performed by the set top box 20, and the method includes:
步骤201、接收智能终端发送的运行程序命令,并根据所述运行程序命令进行初始化,所述初始化包括配置所述机顶盒中的DDR的第一初始参数;Step 201: Receive a running program command sent by the smart terminal, and perform initialization according to the running program command, where the initializing includes configuring a first initial parameter of the DDR in the set top box;
步骤202、接收所述智能终端发送的预设的视频文件和解码命令;Step 202: Receive a preset video file and a decoding command sent by the smart terminal.
步骤203、在所述机顶盒的DDR在所述第一初始参数下运行时,根据所述解码命令对所述视频文件进行解码,生成视频帧数据;Step 203: When the DDR of the set top box is running under the first initial parameter, decoding the video file according to the decoding command to generate video frame data.
步骤204、向所述智能终端发送生成的所述视频帧数据,以使所述智能终端根据所述视频帧数据和预设数据库中的验证数据判断所述机顶盒是否稳定。Step 204: Send the generated video frame data to the smart terminal, so that the smart terminal determines whether the set top box is stable according to the video frame data and the verification data in the preset database.
本申请实施例所执行的方法与上述实施例一中机顶盒20所执行的方法相对应,具体可以参考上述实施例一中的描述,在此不再赘述。另外,本申请实施例所执行的方法与上述实施例一中所执行的方法具备相同的有益效果。The method performed by the embodiment of the present application corresponds to the method performed by the set top box 20 in the first embodiment. For details, refer to the description in the first embodiment, and details are not described herein again. In addition, the method performed by the embodiment of the present application has the same beneficial effects as the method performed in the first embodiment.
实施例五Embodiment 5
请参阅图6,图6是本申请实施例五提供的这一种测试机顶盒稳定性的装置的结构示意图,所述装置应用于上述智能终端10,所述装置30包括:第一发送模块301、第二发送模块302、第一获取模块303、第一判断模块304以及第一处理模块305。Referring to FIG. 6 , FIG. 6 is a schematic structural diagram of an apparatus for testing stability of a set-top box according to Embodiment 5 of the present application. The device is applied to the smart terminal 10, and the device 30 includes: a first sending module 301, The second sending module 302, the first obtaining module 303, the first determining module 304, and the first processing module 305.
其中,第一发送模块301,用于在与机顶盒建立连接后,向所述机顶盒发送运行程序命令,其中,所述运行程序命令用于使所述机顶盒初始化,所述初始化包括配置所述机顶盒中的DDR的第一初始参数;第二发送模块302,用于向所述机顶盒发送预设的视频文件和解码命令,以使所述机顶盒的DDR在所述第一初始参数下运行时,根据所述解码命令解码所述视频文件;第一获取模块303,用于获取解码后的所述视频文件的视频帧数据;第一判断模块304,用于判断所述视频帧数据和预设数据库中的验证数据是否一致;第一处理模块305,用于若所述视频帧数据与预设数据库中的验证数据一致,则重复获取解码后的所述视频文件的下一视频帧数据,并将获取到的所述视频帧数据与所述预设数据库中的验证数据进行比较,在预设时间内获取到的所述视频帧数据均与所述预设数据库中的验证数据一致时,则确定所述机顶盒稳定,并且将所述第一初始参数确定为所述机顶盒的稳定参数。The first sending module 301 is configured to send a running program command to the set top box after establishing a connection with the set top box, where the running program command is used to initialize the set top box, and the initializing includes configuring the set top box a first initial parameter of the DDR; a second sending module 302, configured to send a preset video file and a decoding command to the set top box, so that when the DDR of the set top box is run under the first initial parameter, according to the The decoding command decodes the video file; the first obtaining module 303 is configured to obtain the decoded video frame data of the video file; the first determining module 304 is configured to determine the video frame data and the preset database. Verifying whether the data is consistent; the first processing module 305 is configured to: if the video frame data is consistent with the verification data in the preset database, repeatedly obtain the next video frame data of the decoded video file, and obtain the Comparing the video frame data with the verification data in the preset database, the video frame data acquired in a preset time period is the same as the Verify disposed coincident data in the database, it is determined that the set-top box stability, and initial parameter determining the first parameter of the set-top box to stabilize.
在其他一些实施例中,同样请参阅图6,所述装置30还包括第二处理模块306。所述第二处理模块306,用于若所述视频帧数据与预设数据库中的验证数据不一致,则调整所述DDR的第一初始参数,并跳转至所述获取解码后的所述视频文件的视频帧数据步骤。In other embodiments, referring also to FIG. 6, the apparatus 30 further includes a second processing module 306. The second processing module 306 is configured to: if the video frame data is inconsistent with the verification data in the preset database, adjust the first initial parameter of the DDR, and jump to the acquiring the decoded video. The video frame data step of the file.
在其他一些实施例中,同样请参阅图6,所述装置30还包括第三处理模块307、第二获取模块308、第三获取模块309以及第四处理模块310。其中,第三处理模块307,用于若所述视频帧数据与预设数据库中的验证数据不一致,则为所述DDR配置至少两组不同的第二初始参数,并且向所述机顶盒发送预设的视频文件和解码命令,以使所述机顶盒的DDR在所述至少两组不同的第二初始参数下运行时,根据所述解码命令解码所述视频文件;第二获取模块308,用于基于相同的预设时间,分别获取解码后所述至少两组不同的第二初始参数对应的视频帧数据;第三获取模块309,用于将获取到的所述至少两组不同的第二初始参数对应的视频帧数据与所述预设数据库中的验证数据分别进行比较,以获取所述视频帧数据与所述验证数据不一致数量最少的第二初始参数;第四处理模块310,用于将获取到的所述第二初始参数确定为所述机顶盒的稳定参数。In other embodiments, referring to FIG. 6 , the apparatus 30 further includes a third processing module 307 , a second obtaining module 308 , a third obtaining module 309 , and a fourth processing module 310 . The third processing module 307 is configured to configure at least two different sets of second initial parameters for the DDR if the video frame data is inconsistent with the verification data in the preset database, and send a preset to the set top box. a video file and a decoding command to decode the video file according to the decoding command when the DDR of the set top box is run under the at least two different sets of second initial parameters; the second obtaining module 308 is configured to Obtaining, by the same preset time, the video frame data corresponding to the at least two different sets of second initial parameters that are decoded, and the third obtaining module 309, configured to obtain the at least two different sets of second initial parameters that are obtained Corresponding video frame data is compared with the verification data in the preset database, respectively, to obtain a second initial parameter that is inconsistent with the verification data by the video frame data. The fourth processing module 310 is configured to acquire The second initial parameter obtained is determined as a stable parameter of the set top box.
需要说明的是,本申请实施例中的测试机顶盒稳定性的装置中的各个模块之间的信息交互、执行过程等内容,由于与本申请方法实施例一、实施例二以及实施例三基于同一构思,具体内容同样适用于测试机顶盒稳定性的装置。本申请实施例中的各个模块能作为单独的硬件或软件来实现,并且可以根据需要使用单独的硬件或软件来实现各个单元的功能的组合。It should be noted that the information exchange, the execution process, and the like between the modules in the apparatus for testing the set-top box stability in the embodiment of the present application are based on the same as the first embodiment, the second embodiment, and the third embodiment of the present application. The concept, the same applies to the device for testing the stability of the set-top box. The various modules in the embodiments of the present application can be implemented as separate hardware or software, and a combination of functions of the respective units can be implemented using separate hardware or software as needed.
本申请实施例提供了一种测试机顶盒稳定性的装置,该装置通过智能终端配置机顶盒中DDR的初始参数,并且向机顶盒发送预设的视频文件,以使机顶盒在配置好的初始参数下运行时,解码所述视频文件,生成视频帧数据,智能终端从机顶盒中获取该视频帧数据,并将该视频帧数据与预设数据库中的验证数据进行比较,如果匹配一致,则表示该机顶盒当前运行状态稳定,并且该配置的初始参数符合要求。该实施方式能够缩短机顶盒稳定性测试的时间,能够更快的获取到合适的DDR参数,从而缩短了产品的开发时间,降低了研发成本。An embodiment of the present application provides a device for testing stability of a set top box, where the device configures an initial parameter of a DDR in a set top box through an intelligent terminal, and sends a preset video file to the set top box, so that the set top box runs under the configured initial parameters. Decoding the video file to generate video frame data, the smart terminal acquires the video frame data from the set top box, and compares the video frame data with the verification data in the preset database. If the matching is consistent, the set top box is currently running. The state is stable and the initial parameters of the configuration meet the requirements. This embodiment can shorten the time of the set-top box stability test, and can obtain the appropriate DDR parameters more quickly, thereby shortening the development time of the product and reducing the development cost.
实施例六Embodiment 6
请参阅图7,图7是本申请实施例六提供的这一种测试机顶盒稳定性的装置的结构示意图,所述装置应用于上述机顶盒20,所述装置40包括:第一接收模块401、第二接收模块402、第一解码模块403以及第三发送模块404。Please refer to FIG. 7. FIG. 7 is a schematic structural diagram of the apparatus for testing stability of a set top box according to Embodiment 6 of the present application. The apparatus is applied to the set top box 20, and the apparatus 40 includes: a first receiving module 401, The second receiving module 402, the first decoding module 403, and the third sending module 404.
其中,第一接收模块401,用于接收智能终端发送的运行程序命令,并根据所述运行程序命令进行初始化,所述初始化包括配置所述机顶盒中的DDR的第一初始参数;第二接收模块402,用于接收所述智能终端发送的预设的视频文件和解码命令;第一解码模块403,用于在所述机顶盒的DDR在所述第一初始参数下运行时,根据所述解码命令对所述视频文件进行解码,生成视频帧数据;第三发送模块404,用于向所述智能终端发送生成的所述视频帧数据,以使所述智能终端根据所述视频帧数据和预设数据库中的验证数据判断所述机顶盒是否稳定。The first receiving module 401 is configured to receive a running program command sent by the smart terminal, and perform initialization according to the running program command, where the initializing includes: configuring a first initial parameter of the DDR in the set top box; and the second receiving module The first decoding module 403 is configured to: when the DDR of the set top box is running under the first initial parameter, according to the decoding command, the first decoding module 403 is configured to receive the preset video file and the decoding command sent by the smart terminal. Decoding the video file to generate video frame data; the third sending module 404 is configured to send the generated video frame data to the smart terminal, so that the smart terminal is configured according to the video frame data and preset The verification data in the database determines whether the set top box is stable.
需要说明的是,本申请实施例中的测试机顶盒稳定性的装置中的各个模块之间的信息交互、执行过程等内容,由于与本申请方法实施例四基于同一构思,具体内容同样适用于测试机顶盒稳定性的装置。本申请实施例中的各个模块能作为单独的硬件或软件来实现,并且可以根据需要使用单独的硬件或软件来实现各个单元的功能的组合。此外,本申请实施例中的测试机顶盒稳定性的装置与实施例四中的测试机顶盒稳定性的方法具备相同的有益效果。It should be noted that the information interaction, the execution process, and the like between the modules in the device for testing the set-top box stability in the embodiment of the present application are based on the same concept as the fourth embodiment of the method of the present application, and the specific content is also applicable to the test. A device for the stability of a set top box. The various modules in the embodiments of the present application can be implemented as separate hardware or software, and a combination of functions of the respective units can be implemented using separate hardware or software as needed. In addition, the apparatus for testing the stability of the set top box in the embodiment of the present application has the same beneficial effects as the method for testing the stability of the set top box in the fourth embodiment.
实施例七Example 7
请参阅图8,图8是本申请实施例七提供的电子设备的硬件结构示意图。所述电子设备50可以执行上述实施例中的测试机顶盒稳定性的方法,所述电子设备50具体可以是台式计算机、笔记本电脑、平板电脑、智能手机、机顶盒等其他具有数据交互功能的电子装置。如图8所示,该电子设备50包括:Please refer to FIG. 8. FIG. 8 is a schematic structural diagram of hardware of an electronic device according to Embodiment 7 of the present application. The electronic device 50 can perform the method for testing the stability of the set top box in the foregoing embodiment. The electronic device 50 can be specifically a desktop computer, a notebook computer, a tablet computer, a smart phone, a set top box, and the like, and has other electronic devices with data interaction functions. As shown in FIG. 8, the electronic device 50 includes:
一个或多个处理器501以及存储器502,图8中以一个处理器501为例。One or more processors 501 and memory 502, one processor 501 is taken as an example in FIG.
处理器501和存储器502可以通过总线或者其他方式连接,图8中以通过总线连接为例。The processor 501 and the memory 502 may be connected by a bus or other means, as exemplified by a bus connection in FIG.
执行测试机顶盒稳定性的方法的电子设备还可以包括:输入装置503和输出装置504。The electronic device that performs the method of testing the stability of the set top box may further include: an input device 503 and an output device 504.
存储器502作为一种非易失性计算机可读存储介质,可用于存储非易失性软件程序、非易失性计算机可执行程序以及模块,如本申请实施例中的测 试机顶盒稳定性的方法对应的程序指令/模块(例如,附图6所示的第一发送模块301、第二发送模块302、第一获取模块303、第一判断模块304、第一处理模块305、第二处理模块306、第三处理模块307、第二获取模块308、第三获取模块309以及第四处理模块310)。处理器501通过运行存储在存储器502中的非易失性软件程序、指令以及模块,从而执行服务器的各种功能应用以及数据处理,即实现上述方法实施例测试机顶盒稳定性的方法。The memory 502 is a non-volatile computer readable storage medium, and can be used for storing non-volatile software programs, non-volatile computer-executable programs, and modules, such as a method for testing set-top box stability in the embodiment of the present application. Program instructions/modules (for example, the first sending module 301, the second sending module 302, the first obtaining module 303, the first determining module 304, the first processing module 305, and the second processing module 306 shown in FIG. The third processing module 307, the second obtaining module 308, the third obtaining module 309, and the fourth processing module 310). The processor 501 executes various functional applications of the server and data processing by running non-volatile software programs, instructions, and modules stored in the memory 502, that is, a method of testing the stability of the set-top box by implementing the above method embodiments.
存储器502可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储根据测试机顶盒稳定性的装置的使用所创建的数据等。此外,存储器502可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实施例中,存储器502可选包括相对于处理器501远程设置的存储器,这些远程存储器可以通过网络连接至测试机顶盒稳定性的装置。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 502 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 use of the device for testing the stability of the set top box, etc. . Moreover, memory 502 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, memory 502 can optionally include memory remotely located relative to processor 501 that can be connected over a network to a device that tests set-top box stability. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
输入装置503可接收输入的数字或字符信息,以及产生与测试机顶盒稳定性的装置的用户设置以及功能控制有关的键信号输入。输出装置504可包括显示屏等显示设备。 Input device 503 can receive input numeric or character information and generate key signal inputs related to user settings and function control of the device that tests set-top box stability. Output device 504 can include a display device such as a display screen.
所述一个或者多个模块存储在所述存储器502中,当被所述一个或者多个处理器501执行时,执行上述任意方法实施例中的测试机顶盒稳定性的方法,例如,执行以上描述的图2中的方法步骤101至步骤105,图3中的方法步骤101至步骤106,图4中的方法步骤101至步骤110,图5中的方法步骤201至步骤204,实现图6中的模块301-310,图7中的模块401-404的功能。The one or more modules are stored in the memory 502, and when executed by the one or more processors 501, perform a method of testing set-top box stability in any of the above method embodiments, for example, performing the above described Method 101 to step 105 in FIG. 2, method step 101 to step 106 in FIG. 3, method step 101 to step 110 in FIG. 4, method step 201 to step 204 in FIG. 5, implement the module in FIG. 301-310, the function of modules 401-404 in FIG.
上述产品可执行本申请实施例所提供的方法,具备执行方法相应的功能模块和有益效果。未在本实施例中详尽描述的技术细节,可参见本申请实施例所提供的方法。The above products can perform the methods provided by the embodiments of the present application, and have the corresponding functional modules and beneficial effects of the execution method. For technical details that are not described in detail in this embodiment, reference may be made to the method provided by the embodiments of the present application.
实施例八Example eight
本申请实施例提供了一种非易失性计算机可读存储介质,所述非易失性计算机可读存储介质存储有计算机可执行指令,该计算机可执行指令被电子设备执行上述任意方法实施例中的测试机顶盒稳定性的方法,例如,执行以 上描述的图2中的方法步骤101至步骤105,图3中的方法步骤101至步骤106,图4中的方法步骤101至步骤110,图5中的方法步骤201至步骤204,实现图6中的模块301-310,图7中的模块401-404的功能。The embodiment of the present application provides a non-transitory computer readable storage medium storing computer-executable instructions that are executed by an electronic device to perform any of the above method embodiments. The method for testing the stability of the set top box, for example, performing the method steps 101 to 105 in FIG. 2 described above, the method steps 101 to 106 in FIG. 3, the method steps 101 to 110 in FIG. 4, FIG. The method steps 201 to 204 in the method implement the functions of the modules 301-310 in FIG. 6, and the modules 401-404 in FIG.
实施例九Example nine
本申请实施例提供了一种计算机程序产品,包括存储在非易失性计算机可读存储介质上的计算程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时时,使所述计算机执行上述任意方法实施例中的测试机顶盒稳定性的方法,例如,执行以上描述的图2中的方法步骤101至步骤105,图3中的方法步骤101至步骤106,图4中的方法步骤101至步骤110,图5中的方法步骤201至步骤204,实现图6中的模块301-310,图7中的模块401-404的功能。An embodiment of the present application provides a computer program product, including a computing 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, The computer performs the method for testing the stability of the set top box in any of the above method embodiments, for example, performing the method steps 101 to 105 in FIG. 2 described above, the method steps 101 to 106 in FIG. 3, and the method steps in FIG. From 101 to 110, the method steps 201 to 204 in FIG. 5 implement the functions of the modules 301-310 in FIG. 6, and the modules 401-404 in FIG.
以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, ie may be located A place, or it can be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
通过以上的实施方式的描述,本领域普通技术人员可以清楚地了解到各实施方式可借助软件加通用硬件平台的方式来实现,当然也可以通过硬件。本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(RandomAccessMemory,RAM)等。Through the description of the above embodiments, those skilled in the art can clearly understand that the various embodiments can be implemented by means of software plus a general hardware platform, and of course, by hardware. A person skilled in the art can understand that all or part of the process of implementing the above embodiments can be completed by a computer program to instruct related hardware, and the program can be stored in a computer readable storage medium. When executed, the flow of an embodiment of the methods as described above may be included. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;在本申请的思路下,以上实施例或者不同实施例中的技术特征之间也可以进行组合,步骤可以以任意顺序实现,并存在如上所述的本申请的不同方面的许多其它变化,为了简明,它们没有在细节中提供;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征 进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, and are not limited thereto; in the idea of the present application, the technical features in the above embodiments or different embodiments may also be combined. The steps may be carried out in any order, and there are many other variations of the various aspects of the present application as described above, which are not provided in the details for the sake of brevity; although the present application has been described in detail with reference to the foregoing embodiments, The skilled person should understand that the technical solutions described in the foregoing embodiments may be modified, or some of the technical features may be equivalently replaced; and the modifications or substitutions do not deviate from the embodiments of the present application. The scope of the technical solution.

Claims (11)

  1. 一种测试机顶盒稳定性的方法,应用于智能终端,其特征在于,所述方法包括:A method for testing stability of a set top box is applied to an intelligent terminal, and the method includes:
    在与机顶盒建立连接后,向所述机顶盒发送运行程序命令,其中,所述运行程序命令用于使所述机顶盒初始化,所述初始化包括配置所述机顶盒中的DDR的第一初始参数;After establishing a connection with the set top box, sending a running program command to the set top box, wherein the running program command is used to initialize the set top box, and the initializing includes configuring a first initial parameter of the DDR in the set top box;
    向所述机顶盒发送预设的视频文件和解码命令,以使所述机顶盒的DDR在所述第一初始参数下运行时,根据所述解码命令解码所述视频文件;Sending a preset video file and a decoding command to the set top box, so that when the DDR of the set top box is run under the first initial parameter, the video file is decoded according to the decoding command;
    获取解码后的所述视频文件的视频帧数据;Obtaining video frame data of the decoded video file;
    判断所述视频帧数据和预设数据库中的验证数据是否一致;Determining whether the video frame data and the verification data in the preset database are consistent;
    若所述视频帧数据与预设数据库中的验证数据一致,则重复获取解码后的所述视频文件的下一视频帧数据,并将获取到的所述视频帧数据与所述预设数据库中的验证数据进行比较,在预设时间内获取到的所述视频帧数据均与所述预设数据库中的验证数据一致时,则确定所述机顶盒稳定,并且将所述第一初始参数确定为所述机顶盒的稳定参数。If the video frame data is consistent with the verification data in the preset database, the next video frame data of the decoded video file is repeatedly obtained, and the obtained video frame data is compared with the preset database. And verifying, when the video frame data acquired in the preset time period is consistent with the verification data in the preset database, determining that the set top box is stable, and determining the first initial parameter as Stable parameters of the set top box.
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1 further comprising:
    若所述视频帧数据与预设数据库中的验证数据不一致,则调整所述DDR的第一初始参数,并跳转至所述获取解码后的所述视频文件的视频帧数据步骤。And if the video frame data is inconsistent with the verification data in the preset database, adjusting the first initial parameter of the DDR, and jumping to the step of acquiring the decoded video frame data of the video file.
  3. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1 further comprising:
    若所述视频帧数据与预设数据库中的验证数据不一致,则为所述DDR配置至少两组不同的第二初始参数,并且向所述机顶盒发送预设的视频文件和解码命令,以使所述机顶盒的DDR在所述至少两组不同的第二初始参数下运行时,根据所述解码命令解码所述视频文件;If the video frame data is inconsistent with the verification data in the preset database, configure at least two different sets of second initial parameters for the DDR, and send a preset video file and a decoding command to the set top box to enable the Decoding the video file according to the decoding command when the DDR of the set top box is operated under the at least two different sets of second initial parameters;
    基于相同的预设时间,分别获取解码后所述至少两组不同的第二初始参数对应的视频帧数据;Obtaining, according to the same preset time, video frame data corresponding to the at least two different sets of second initial parameters after decoding;
    将获取到的所述至少两组不同的第二初始参数对应的视频帧数据与所述预设数据库中的验证数据分别进行比较,以获取所述视频帧数据与所述验证数据不一致数量最少的第二初始参数;Comparing the obtained video frame data corresponding to the at least two different sets of second initial parameters with the verification data in the preset database, respectively, to obtain the least number of inconsistencies between the video frame data and the verification data. Second initial parameter;
    将获取到的所述第二初始参数确定为所述机顶盒的稳定参数。The obtained second initial parameter is determined as a stable parameter of the set top box.
  4. 一种测试机顶盒稳定性的方法,应用于机顶盒,其特征在于,所述方法包括:A method for testing the stability of a set top box is applied to a set top box, wherein the method comprises:
    接收智能终端发送的运行程序命令,并根据所述运行程序命令进行初始化,所述初始化包括配置所述机顶盒中的DDR的第一初始参数;Receiving a running program command sent by the smart terminal, and initializing according to the running program command, where the initializing includes configuring a first initial parameter of the DDR in the set top box;
    接收所述智能终端发送的预设的视频文件和解码命令;Receiving a preset video file and a decoding command sent by the smart terminal;
    在所述机顶盒的DDR在所述第一初始参数下运行时,根据所述解码命令对所述视频文件进行解码,生成视频帧数据;When the DDR of the set top box is running under the first initial parameter, decoding the video file according to the decoding command to generate video frame data;
    向所述智能终端发送生成的所述视频帧数据,以使所述智能终端根据所述视频帧数据和预设数据库中的验证数据判断所述机顶盒是否稳定。Sending the generated video frame data to the smart terminal, so that the smart terminal determines whether the set top box is stable according to the video frame data and the verification data in a preset database.
  5. 一种测试机顶盒稳定性的装置,应用于智能终端,其特征在于,所述装置包括:A device for testing stability of a set top box is applied to a smart terminal, characterized in that the device comprises:
    第一发送模块,用于在与机顶盒建立连接后,向所述机顶盒发送运行程序命令,其中,所述运行程序命令用于使所述机顶盒初始化,所述初始化包括配置所述机顶盒中的DDR的第一初始参数;a first sending module, configured to send a running program command to the set top box after establishing a connection with the set top box, wherein the running program command is used to initialize the set top box, and the initializing comprises configuring a DDR in the set top box First initial parameter;
    第二发送模块,用于向所述机顶盒发送预设的视频文件和解码命令,以使所述机顶盒的DDR在所述第一初始参数下运行时,根据所述解码命令解码所述视频文件;a second sending module, configured to send a preset video file and a decoding command to the set top box, so that when the DDR of the set top box is run under the first initial parameter, the video file is decoded according to the decoding command;
    第一获取模块,用于获取解码后的所述视频文件的视频帧数据;a first acquiring module, configured to acquire video frame data of the decoded video file;
    第一判断模块,用于判断所述视频帧数据和预设数据库中的验证数据是否一致;a first determining module, configured to determine whether the video frame data and the verification data in the preset database are consistent;
    第一处理模块,用于若所述视频帧数据与预设数据库中的验证数据一致,则重复获取解码后的所述视频文件的下一视频帧数据,并将获取到的所述视频帧数据与所述预设数据库中的验证数据进行比较,在预设时间内获取到的所述视频帧数据均与所述预设数据库中的验证数据一致时,则确定所述机顶盒稳定,并且将所述第一初始参数确定为所述机顶盒的稳定参数。a first processing module, configured to: if the video frame data is consistent with the verification data in the preset database, repeatedly acquiring the next video frame data of the decoded video file, and acquiring the obtained video frame data Comparing with the verification data in the preset database, when the video frame data acquired in the preset time period is consistent with the verification data in the preset database, determining that the set top box is stable, and The first initial parameter is determined as a stable parameter of the set top box.
  6. 根据权利要求5所述的装置,其特征在于,所述装置还包括:The device according to claim 5, wherein the device further comprises:
    第二处理模块,用于若所述视频帧数据与预设数据库中的验证数据不一致,则调整所述DDR的第一初始参数,并跳转至所述获取解码后的所述视频文件的视频帧数据步骤。a second processing module, configured to: if the video frame data is inconsistent with the verification data in the preset database, adjust a first initial parameter of the DDR, and jump to the video that obtains the decoded video file Frame data step.
  7. 根据权利要求5所述的装置,其特征在于,所述装置还包括:The device according to claim 5, wherein the device further comprises:
    第三处理模块,用于若所述视频帧数据与预设数据库中的验证数据不一致,则为所述DDR配置至少两组不同的第二初始参数,并且向所述机顶盒发送预设的视频文件和解码命令,以使所述机顶盒的DDR在所述至少两组不同的第二初始参数下运行时,根据所述解码命令解码所述视频文件;a third processing module, configured to configure at least two different sets of second initial parameters for the DDR if the video frame data is inconsistent with the verification data in the preset database, and send the preset video file to the set top box And decoding a command to decode the video file according to the decoding command when the DDR of the set top box is operated under the at least two different sets of second initial parameters;
    第二获取模块,用于基于相同的预设时间,分别获取解码后所述至少两组不同的第二初始参数对应的视频帧数据;a second acquiring module, configured to acquire, according to the same preset time, video frame data corresponding to the at least two different sets of second initial parameters after decoding;
    第三获取模块,用于将获取到的所述至少两组不同的第二初始参数对应的视频帧数据与所述预设数据库中的验证数据分别进行比较,以获取所述视频帧数据与所述验证数据不一致数量最少的第二初始参数;a third acquiring module, configured to compare the acquired video frame data corresponding to the at least two different sets of second initial parameters with the verification data in the preset database, to obtain the video frame data and the a second initial parameter that verifies that the data inconsistency is the least;
    第四处理模块,用于将获取到的所述第二初始参数确定为所述机顶盒的稳定参数。And a fourth processing module, configured to determine the obtained second initial parameter as a stable parameter of the set top box.
  8. 一种测试机顶盒稳定性的装置,应用于机顶盒,其特征在于,所述装置包括:A device for testing the stability of a set top box is applied to a set top box, characterized in that the device comprises:
    第一接收模块,用于接收智能终端发送的运行程序命令,并根据所述运行程序命令进行初始化,所述初始化包括配置所述机顶盒中的DDR的第一初始参数;a first receiving module, configured to receive a running program command sent by the smart terminal, and perform initialization according to the running program command, where the initializing includes configuring a first initial parameter of the DDR in the set top box;
    第二接收模块,用于接收所述智能终端发送的预设的视频文件和解码命令;a second receiving module, configured to receive a preset video file and a decoding command sent by the smart terminal;
    第一解码模块,用于在所述机顶盒的DDR在所述第一初始参数下运行时,根据所述解码命令对所述视频文件进行解码,生成视频帧数据;a first decoding module, configured to: when the DDR of the set top box is running under the first initial parameter, decode the video file according to the decoding command to generate video frame data;
    第三发送模块,用于向所述智能终端发送生成的所述视频帧数据,以使所述智能终端根据所述视频帧数据和预设数据库中的验证数据判断所述机顶盒是否稳定。The third sending module is configured to send the generated video frame data to the smart terminal, so that the smart terminal determines whether the set top box is stable according to the video frame data and the verification data in the preset database.
  9. 一种电子设备,其特征在于,包括:An electronic device, comprising:
    至少一个处理器;以及,At least one processor; and,
    与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein
    所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行权利要求1-4任一项所述的方法。The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the method of any of claims 1-4 method.
  10. 一种非易失性计算机可读存储介质,其特征在于,所述计算机可读 存储介质存储有计算机可执行指令,所述计算机可执行指令用于使计算机执行权利要求1-4任一项所述的方法。A non-transitory computer readable storage medium, characterized in that the computer readable storage medium stores computer executable instructions for causing a computer to perform any of claims 1-4 The method described.
  11. 一种计算机程序产品,其特征在于,所述计算机程序产品包括存储在非易失性计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行权利要求1-4任一项所述的方法。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, The computer is caused to perform the method of any of claims 1-4.
PCT/CN2018/125752 2018-03-29 2018-12-29 Method and apparatus for testing stability of set top box, and electronic device WO2019184527A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810270013.9A CN108650501B (en) 2018-03-29 2018-03-29 A kind of method, apparatus and electronic equipment for testing stability of set-top box
CN201810270013.9 2018-03-29

Publications (1)

Publication Number Publication Date
WO2019184527A1 true WO2019184527A1 (en) 2019-10-03

Family

ID=63744775

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/125752 WO2019184527A1 (en) 2018-03-29 2018-12-29 Method and apparatus for testing stability of set top box, and electronic device

Country Status (2)

Country Link
CN (1) CN108650501B (en)
WO (1) WO2019184527A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114390502A (en) * 2022-03-23 2022-04-22 荣耀终端有限公司 Bluetooth communication method, device and storage medium

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108650501B (en) * 2018-03-29 2019-11-12 深圳市九洲电器有限公司 A kind of method, apparatus and electronic equipment for testing stability of set-top box
CN109413417B (en) * 2018-12-17 2020-12-04 南京普物科技有限公司 System and method for detecting interactive television service quality
CN111212280B (en) * 2019-12-27 2022-04-15 杭州艾芯智能科技有限公司 Method and system for testing depth camera module, computer equipment and storage medium
CN112911394B (en) * 2021-01-28 2023-05-02 湖南国科微电子股份有限公司 Dead halt judging method, device, equipment and medium of set top box

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101719180A (en) * 2009-11-23 2010-06-02 北京中星微电子有限公司 Method and device for verifying multimedia chip
CN102447944A (en) * 2011-11-01 2012-05-09 深圳市融创天下科技股份有限公司 Production test method and system as well as terminal device
WO2012167147A1 (en) * 2011-06-03 2012-12-06 Echostar Technologies L.L.C. Systems and methods for testing video hardware by evaluating output video frames containing embedded reference characteristics
CN102917242A (en) * 2012-09-10 2013-02-06 福州瑞芯微电子有限公司 Testing system and testing method of multi-format video decoder
CN102932649A (en) * 2011-08-08 2013-02-13 华为软件技术有限公司 Video decoding quality detection method and device of set top box
CN103455396A (en) * 2013-09-03 2013-12-18 北京安兔兔科技有限公司 Test method and test device of hardware performance of electronic equipment
WO2014055321A1 (en) * 2012-10-04 2014-04-10 Dish Network, L.L.C. Frame block comparison
CN106954063A (en) * 2017-03-17 2017-07-14 山东浪潮商用系统有限公司 A kind of set-top box test method, apparatus and system
CN108650501A (en) * 2018-03-29 2018-10-12 深圳市九洲电器有限公司 A kind of method, apparatus and electronic equipment of test stability of set-top box

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1921019A (en) * 2005-08-24 2007-02-28 英业达股份有限公司 Method for testing storage by data compressing treatment
CN101448172A (en) * 2007-11-27 2009-06-03 上海未来宽带技术及应用工程研究中心有限公司 Method for automatically testing stability of set-top box in batches
CN101740137B (en) * 2008-11-06 2012-08-22 奇岩电子股份有限公司 Method for testing memory
CN201518506U (en) * 2009-10-28 2010-06-30 福建新大陆通信科技有限公司 Test equipment for stabilization of software of set top box
CN102737727B (en) * 2012-05-22 2015-09-09 华为技术有限公司 The method and system of Double Data Rate synchronous DRAM stability test
CN102890971B (en) * 2012-10-22 2016-08-03 上海华虹宏力半导体制造有限公司 The method for testing reliability of memorizer
CN103605604B (en) * 2013-11-21 2016-06-29 四川九洲电器集团有限责任公司 A kind of method of batch testing set-top box software stability
CN104022921B (en) * 2014-06-26 2019-01-08 北京安兔兔科技有限公司 A kind of equipment performance test method and device
CN104639938A (en) * 2015-03-11 2015-05-20 浪潮软件集团有限公司 Method and device for testing set top box equipment
CN104883564B (en) * 2015-05-19 2017-07-21 福建新大陆通信科技股份有限公司 A kind of OTT set-top box produces the method for testing and system of ageing stability

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101719180A (en) * 2009-11-23 2010-06-02 北京中星微电子有限公司 Method and device for verifying multimedia chip
WO2012167147A1 (en) * 2011-06-03 2012-12-06 Echostar Technologies L.L.C. Systems and methods for testing video hardware by evaluating output video frames containing embedded reference characteristics
CN102932649A (en) * 2011-08-08 2013-02-13 华为软件技术有限公司 Video decoding quality detection method and device of set top box
CN102447944A (en) * 2011-11-01 2012-05-09 深圳市融创天下科技股份有限公司 Production test method and system as well as terminal device
CN102917242A (en) * 2012-09-10 2013-02-06 福州瑞芯微电子有限公司 Testing system and testing method of multi-format video decoder
WO2014055321A1 (en) * 2012-10-04 2014-04-10 Dish Network, L.L.C. Frame block comparison
CN103455396A (en) * 2013-09-03 2013-12-18 北京安兔兔科技有限公司 Test method and test device of hardware performance of electronic equipment
CN106954063A (en) * 2017-03-17 2017-07-14 山东浪潮商用系统有限公司 A kind of set-top box test method, apparatus and system
CN108650501A (en) * 2018-03-29 2018-10-12 深圳市九洲电器有限公司 A kind of method, apparatus and electronic equipment of test stability of set-top box

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114390502A (en) * 2022-03-23 2022-04-22 荣耀终端有限公司 Bluetooth communication method, device and storage medium
CN114390502B (en) * 2022-03-23 2022-12-20 荣耀终端有限公司 Bluetooth communication method, device and storage medium

Also Published As

Publication number Publication date
CN108650501B (en) 2019-11-12
CN108650501A (en) 2018-10-12

Similar Documents

Publication Publication Date Title
WO2019184527A1 (en) Method and apparatus for testing stability of set top box, and electronic device
CN108959068B (en) Software interface testing method, device and storage medium
WO2017166446A1 (en) Vulnerability-fixing method and device
US9021443B1 (en) Test automation API for host devices
KR102158754B1 (en) Method and apparatus for operating on smart network interface card
CN110493812B (en) Distribution network test processing method, device and system, processor and master control equipment
CN108173712B (en) Double-mirror image BMC stability testing method
US20130166243A1 (en) Test device and method for testing stability of electronic devices
CN108563579B (en) White box testing method, device and system and storage medium
WO2017202338A1 (en) Method and system for loading drive to set-top box
US20170177466A1 (en) Volume testing
US9378122B2 (en) Adopting an existing automation script to a new framework
US10261880B1 (en) Error generation using a computer add-in card
US9753711B1 (en) Automated implementation of best practices for solution deployment
WO2018218954A1 (en) Verification platform and verification method, and computer storage medium
WO2018000918A1 (en) Network-based set-top box testing method and system
CN112996020A (en) Bluetooth-based automatic testing method and device and Bluetooth testing terminal
CN108628733B (en) Method and device for testing batch service processing operation
US20130080751A1 (en) Method and device for updating bios program for computer system
CN115599438A (en) Method, device, equipment and medium for constructing application program publishing package
CN111026667B (en) Script execution method and device and electronic equipment
CN114040196B (en) Bluetooth equipment testing method, testing control host and Bluetooth testing system
CN115878402A (en) Server testing method and device, electronic equipment and storage medium
CN112702511B (en) Method and device for outputting video
CN113868128B (en) Method and device for testing PXE (PCI express) guide function and storage medium

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: 18912334

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 29.01.2021)

122 Ep: pct application non-entry in european phase

Ref document number: 18912334

Country of ref document: EP

Kind code of ref document: A1