IPTV and OTT set top box test method and test device with consistency comparison function
阅读说明:本技术 一种具备一致性对比功能的iptv和ott机顶盒测试方法及测试装置 (IPTV and OTT set top box test method and test device with consistency comparison function ) 是由 林桂云 于 2019-10-31 设计创作,主要内容包括:本发明提出了一种具备一致性对比功能的IPTV和OTT机顶盒测试方法及装置,所述方法步骤如下:S1、配置虚拟遥控器模型和机顶盒测试任务;S2、采集遥控器红外信号进行虚拟遥控器模型的按键学习;S3、利用虚拟遥控器模型执行机顶盒测试任务,获取测试结果;S4、基于图像匹配算法分析测试结果,进行视频数据一致性对比。所述装置包括箱体和箱盖,所述箱体前面板上设置有网络接口,箱体后面板上设置有电源输入口、电源输出口、HDMI输入口和HDMI输出口,箱体内部设置交换模块、HDMI三通模块、HDMI公头、HDMI母头和继电器。本发明方法和装置的测试成本较低,测试配置简单,测试环境与用户环境一致,测试结果更贴近用户实际感知,测试精准度高。(The invention provides a method and a device for testing an IPTV set top box and an OTT set top box with consistency comparison functions, wherein the method comprises the following steps: s1, configuring a virtual remote controller model and a set top box test task; s2, collecting infrared signals of the remote controller to learn the keys of the virtual remote controller model; s3, executing a set top box test task by using the virtual remote controller model to obtain a test result; and S4, analyzing the test result based on the image matching algorithm, and performing video data consistency comparison. The device comprises a box body and a box cover, wherein a network interface is arranged on a front panel of the box body, a power input port, a power output port, an HDMI input port and an HDMI output port are arranged on a rear panel of the box body, and an exchange module, an HDMI three-way module, an HDMI male head, an HDMI female head and a relay are arranged inside the box body. The method and the device have the advantages of low test cost, simple test configuration, consistent test environment and user environment, closer test result to the actual perception of the user and high test accuracy.)
1. A method for testing an IPTV set top box and an OTT set top box with consistency comparison function is characterized by comprising the following steps:
s1, configuring a virtual remote controller model and a set top box test task on a human-computer operation interface;
s2, collecting infrared signals of the entity remote controller, and performing key learning of the virtual remote controller model;
s3, executing a set top box test task by using the learned virtual remote controller model, and acquiring and storing a test result;
and S4, analyzing the test result based on the image matching algorithm, and comparing the consistency of the data at the program source side and the data at the set top box user side.
2. The IPTV and OTT set-top box testing method with consistency comparison function as claimed in claim 1, wherein the specific operation of configuring the virtual remote controller model on the human-machine operation interface is as follows:
and searching a remote controller model in a remote controller model library according to the set top box manufacturer, the remote controller manufacturer and the remote controller model, judging whether the remote controller model meets the requirements when the remote controller model is searched, taking the remote controller model meeting the requirements as a virtual remote controller model, and configuring the name, the position and the key shape of each key on a blank remote controller model when the model is not searched or the searched model does not meet the requirements to generate the virtual remote controller model.
3. The IPTV and OTT set-top box testing method with consistency comparison function as claimed in claim 1, wherein the specific operation of configuring the set-top box testing task on the human-machine operation interface is as follows:
sequentially selecting a test index, a remote controller key and a test operation according to a test requirement to generate a set top box test task; the testing indexes comprise the total starting time of the set top box, the channel response time of the set top box, the channel switching time of the set top box, the page poster loading time and the video output by the set top box, the keys of the remote controller comprise key names and key sequences, and the testing operation comprises video recording, screen capturing, data capturing and abnormal testing analysis.
4. The IPTV and OTT set-top box testing method with consistency comparison function as claimed in claim 3, wherein the specific operation of step S2 is as follows:
s21, selecting a key on the virtual remote controller model to perform key learning;
s22, pressing a corresponding key on the entity remote controller, receiving an infrared signal emitted by the entity remote controller by using infrared receiving equipment, and converting the infrared signal into an electric signal;
s23, carrying out detection, shaping and amplification operations on the electric signal, then carrying out data sampling on the electric signal, and storing binary data of each sampling point into a database by taking 8 bits as a unit;
and S24, repeating the steps S21-S23 until the key learning of all keys on the virtual remote controller model is completed, and obtaining a remote control command library corresponding to the virtual remote controller model.
5. The IPTV and OTT set-top box testing method with consistency comparison function as claimed in claim 4, wherein the specific operation of step S3 is:
selecting a set top box test task, acquiring a test index, a remote controller key and a test operation of the set top box test task, sending a virtual remote control instruction by using the remote controller key and a remote control command library, controlling the set top box to perform the test operation, acquiring the test index by using software, extracting video data at the program source side and video data at the set top box side by using a test device, and storing the test index and the acquired video data as a test result.
6. The IPTV and OTT set-top box testing method with consistency comparison function as claimed in claim 1, wherein the specific operations of step S4 are as follows:
the method comprises the steps of setting a plurality of test points in a test device according to a time coordinate, configuring screen capture test operation for an infrared probe of each test point, sequentially capturing images of program source side video data and set top box side video data by using the test device, obtaining a plurality of groups of screen capture data, carrying out data matching on the program source side images and the set top box side images in each group of screen capture data based on an image matching algorithm, and judging whether the program source side images are consistent with set top box user side images.
7. The IPTV and OTT set top box testing device with the consistency comparison function comprises a box body and a box cover, and is characterized in that a network interface is arranged on a front panel of the box body, a power supply input port, a power supply output port, an HDMI input port and an HDMI output port are arranged on a rear panel of the box body, and an exchange module, an HDMI three-way module, 2 HDMI male heads, 2 HDMI female heads and a relay are arranged in the box body;
the switching module is installed on the inner side of a front panel of the chassis, the switching module is sequentially connected with a network interface on the front panel, the HDMI three-way module and the 2 HDMI male heads are respectively and fixedly installed on a panel at the bottom of the box body, the 2 HDMI female heads are respectively installed on a rear panel of the box body, the input end and the output end of the HDMI three-way module are respectively connected with one end of the 2 HDMI male heads, the other end of the 2 HDMI male heads are respectively connected with one end of the 2 HDMI female heads, the other end of the 2 HDMI female heads are respectively connected with an HDMI input port and an HDMI output port on the rear panel, the relay is fixedly installed on the panel at the bottom of the box body, and two ends of;
the power supply input port is connected with an external direct-current power supply.
8. The IPTV and OTT set-top box testing device with consistency comparison function as claimed in claim 7, wherein a motherboard fixing bracket is installed inside the box body, an equipment motherboard is fixed on the motherboard fixing bracket, an internal memory, a CPU fan, a CPU heat sink and a LAN port are installed on the equipment motherboard, the CPU fan and the CPU heat sink are fixed on one side of the internal memory, the CPU heat sink is distributed around the CPU fan, and the LAN port is connected with the switching module through a cable.
9. The IPTV and OTT set-top box testing device with consistency comparison function as claimed in claim 7, wherein the back panel of the box body is further provided with an IR interface, and the inside of the box body is provided with a USB-IR line connected with the IR interface.
10. The IPTV and OTT set-top box testing device with consistency comparison function as defined in claim 7, wherein a DC-DC conversion module is further installed inside the box body, one end of the DC-DC conversion module is connected with the power input port, and the other end of the DC-DC conversion module is respectively connected with the relay, the switching module and the power output port.
Technical Field
The invention relates to a set top box testing method and a set top box testing device for testing IPTV and OTT video service quality, and belongs to the technical field of video service quality testing.
Background
The IPTV/OTT service depends on IP network transmission, the video service flow is larger, super-definition and 4K videos are gradually popularized along with the improvement of the requirement of a user on video experience, and the requirement on ensuring the quality of the IPTV/OTT service is higher and higher. Various test technologies and test instruments based on IPTV/OTT service content consistency comparison, network quality, service quality, safety protection, user behavior analysis and the like are developed, and the existing test instruments related to IPTV/OTT service quality have the following defects:
(1) the method can realize the requirements of acquisition and quality analysis of mass set-top box terminal data, but because network quality indexes are sensitive, index fluctuation in the test can not completely correspond to the actual film viewing experience of a user, a large number of data samples are needed to be analyzed by combining information such as operator network architecture, video resolution, video content, set-top box terminal model and the like, and the monitoring cost is high;
(2) a professional monitoring instrument is deployed on an upper layer network of the set top box, the monitoring instrument simulates the full-scale packet capture analysis of the video playing behavior of a user, and the detection equipment needs to support the initiation of a large-concurrency test request, so that the equipment configuration is far higher than that of the set top box equipment, the hardware and the network environment of the set top box terminal equipment are different, the monitoring result is different, and only the overall quality trend can be evaluated.
Disclosure of Invention
The invention provides a method and a device for testing an IPTV (Internet protocol television) and an OTT (over-the-top box) set-top box with a consistency comparison function, which are used for solving the problems of overhigh monitoring cost and insufficient accuracy of a monitoring result of a testing instrument of the existing IPTV/OTT video service testing method.
In order to solve the technical problems, the invention adopts the following technical means:
a method for testing an IPTV set top box and an OTT set top box with consistency comparison function specifically comprises the following steps:
s1, configuring a virtual remote controller model and a set top box test task on a human-computer operation interface;
s2, collecting infrared signals of the entity remote controller, and performing key learning of the virtual remote controller model;
s3, executing a set top box test task by using the learned virtual remote controller model, and acquiring and storing a test result;
and S4, analyzing the test result based on the image matching algorithm, and comparing the consistency of the data at the program source side and the data at the set top box user side.
Further, the specific operation of configuring the virtual remote controller model on the human-computer operation interface is as follows:
and searching a remote controller model in a remote controller model library according to the set top box manufacturer, the remote controller manufacturer and the remote controller model, judging whether the remote controller model meets the requirements when the remote controller model is searched, taking the remote controller model meeting the requirements as a virtual remote controller model, and configuring the name, the position and the key shape of each key on a blank remote controller model when the model is not searched or the searched model does not meet the requirements to generate the virtual remote controller model.
Further, the specific operation of configuring the set top box test task on the human-computer operation interface is as follows:
sequentially selecting a test index, a remote controller key and a test operation according to a test requirement to generate a set top box test task; the testing indexes comprise the total starting time of the set top box, the channel response time of the set top box, the channel switching time of the set top box, the page poster loading time and the video output by the set top box, the keys of the remote controller comprise key names and key sequences, and the testing operation comprises video recording, screen capturing, data capturing and abnormal testing analysis.
Further, the specific operation of step S2 is as follows:
s21, selecting a key on the virtual remote controller model to perform key learning;
s22, pressing a corresponding key on the entity remote controller, receiving an infrared signal emitted by the entity remote controller by using infrared receiving equipment, and converting the infrared signal into an electric signal;
s23, carrying out detection, shaping and amplification operations on the electric signal, then carrying out data sampling on the electric signal, and storing binary data of each sampling point into a database by taking 8 bits as a unit;
and S24, repeating the steps S21-S23 until the key learning of all keys on the virtual remote controller model is completed, and obtaining a remote control command library corresponding to the virtual remote controller model.
Further, the specific operation of step S3 is:
selecting a set top box test task, acquiring a test index, a remote controller key and a test operation of the set top box test task, sending a virtual remote control instruction by using the remote controller key and a remote control command library, controlling the set top box to perform the test operation, acquiring the test index by using software, extracting video data at the program source side and video data at the set top box side by using a test device, and storing the test index and the acquired video data as a test result.
Further, the specific operation of step S4 is:
the method comprises the steps of setting a plurality of test points in a test device according to a time coordinate, configuring screen capture test operation for an infrared probe of each test point, sequentially capturing images of program source side video data and set top box side video data by using the test device, obtaining a plurality of groups of screen capture data, carrying out data matching on the program source side images and the set top box side images in each group of screen capture data based on an image matching algorithm, and judging whether the program source side images are consistent with set top box user side images.
An IPTV and OTT set top box testing device with consistency comparison function comprises a box body and a box cover, wherein a network interface is arranged on a front panel of the box body, a power supply input port, a power supply output port, an HDMI input port and an HDMI output port are arranged on a rear panel of the box body, and an exchange module, an HDMI three-way module, 2 HDMI male heads, 2 HDMI female heads and a relay are arranged in the box body; the switching module is installed on the inner side of a front panel of the chassis, the switching module is sequentially connected with a network interface on the front panel, the HDMI three-way module and the 2 HDMI male heads are respectively and fixedly installed on a panel at the bottom of the box body, the 2 HDMI female heads are respectively installed on a rear panel of the box body, the input end and the output end of the HDMI three-way module are respectively connected with one end of the 2 HDMI male heads, the other end of the 2 HDMI male heads are respectively connected with one end of the 2 HDMI female heads, the other end of the 2 HDMI female heads are respectively connected with an HDMI input port and an HDMI output port on the rear panel, the relay is fixedly installed on the panel at the bottom of the box body, and two ends of; the power supply input port is connected with an external direct-current power supply.
Furthermore, a mainboard fixing support is installed inside the box body, an equipment mainboard is fixed on the mainboard fixing support, an internal memory, a CPU fan, a CPU radiating fin and a LAN port are installed on the equipment mainboard, the CPU fan and the CPU radiating fin are fixed on one side of the internal memory, the CPU radiating fin is distributed around the CPU fan, and the LAN port is connected with the switching module through a cable.
Furthermore, an IR interface is further arranged on the rear panel of the box body, and a USB-IR wire connected with the IR interface is arranged in the box body.
Furthermore, a DC-DC conversion module is further installed inside the box body, one end of the DC-DC conversion module is connected with the power input port, and the other end of the DC-DC conversion module is respectively connected with the relay, the exchange module and the power output port.
The following advantages can be obtained by adopting the technical means:
the invention provides a method and a device for testing an IPTV set top box and an OTT set top box with a consistency comparison function. The advantages of the device of the invention are as follows: (1) the system has multiple functions, and simultaneously has the functions of network forwarding, infrared learning, infrared emission, test script recording and execution, test result analysis and the like; (2) the device has small volume and is easy to deploy, and the front panel and the rear panel are provided with various interfaces such as a power interface, a network interface, an HDMI interface and the like, so that the connection requirements of equipment such as a network, a power supply, a display and the like in the automatic test process of the set top box can be met, the connection function of the set top box is realized under the condition of not increasing additional interfaces and hardware equipment, and the video service quality test is realized; (3) the device has higher efficiency, and can realize full-automatic and uninterrupted test by matching with the script only by carrying out one-time remote controller configuration and test task configuration. The method and the device have the advantages of low test cost, simple test configuration, consistent test environment and user environment, closer test result to the actual perception of the user and higher test accuracy.
Drawings
Fig. 1 is a flowchart illustrating steps of a method for testing an IPTV set-top box and an OTT set-top box with consistency comparison function according to the present invention.
FIG. 2 is a structural diagram of an IPTV and OTT set-top box testing device with consistency comparison function according to the present invention; wherein, (a) is the inside structure chart of the apparatus, (b) is the structure chart of the front panel of the box, (c) is the structure chart of the rear panel of the box, (d) is the structure chart of the equipment mainboard in the apparatus, and (e) is the structure chart of the mainboard fixing bracket in the apparatus.
Fig. 3 is a schematic diagram of the connection between the apparatus and the TV network, the set-top box, and the TV monitor according to the embodiment of the present invention.
In the figure, 1 is a box body, 2 is a box cover, 3 is a switching module, 4 is an HDMI three-way module, 5 is an HDMI male connector, 6 is an HDMI female connector, 7 is a relay, 8 is a USB-IR line, 9 is a USB module, 10 is a heat radiation FAN, 11 is a cable, 12 is a mesh heat radiation port, 13 is a mounting lug, 14 is a network interface, 15 is a power input port, 16 is a power output port, 17 is an HDMI input port, 18 is an HDMI output port, 19 is a power switch, 20 is a serial port, 21 is a USB port, 22 is an IR interface, 23 is an equipment main board, 24 is a memory, 25 is a CPU FAN, 26 is a CPU heat radiation fin, 27 is a LAN port, 28 is an SATA-PWR port, 29 is a SATA port, 30 is an ATX port, 31 is a SYS-FAN port, 32 is a main board fixing bracket, 33 is a screw hole, 34 is a switching module heat radiation fin, 35 is a fixing plate, 36 is a DC-DC conversion module, 37 is a TV network, 38 is,
Detailed Description
The technical scheme of the invention is further explained by combining the accompanying drawings as follows:
a method for testing an IPTV set top box and an OTT set top box with consistency comparison function is disclosed, as shown in figure 1, and comprises the following steps:
s1, configuring a virtual remote controller model and a set top box test task on a human-computer operation interface; the human-computer interface is generally a page configured at a computer end, and not only can be used for configuring a virtual remote controller model and a set top box test task, but also can be used for sending a test task execution instruction, displaying a test result and the like.
Aiming at the common set top boxes in the market, the data of the set top box remote controllers can be collected firstly, corresponding remote controller models are established and stored in a remote controller model library, each remote controller model in the remote controller model library corresponds to manufacturer and model information, and in addition, a blank remote controller model is also arranged in the remote controller model library, namely, only a blank shell is provided with a model without specific keys. The remote controller model library is linked with a key library, and various key shapes are stored in the key library. When a virtual remote controller model needs to be configured, a remote controller model base is accessed from a human-computer operation interface, the remote controller model base is searched for in the remote controller model base according to a set top box manufacturer, a remote controller manufacturer and a remote controller model, when the remote controller model is searched, the remote controller model is displayed on the human-computer operation interface, whether the remote controller model meets requirements can be judged manually or by using a machine, namely whether the remote controller model is the same as an entity remote controller, the remote controller model is used as the virtual remote controller model meeting the requirements, when the model is not searched or the searched model does not meet the requirements, a blank remote controller model can be called, key shapes are selected from a linked key base according to the entity remote controller, and the name, the position and the key shapes of each key are configured on the blank remote controller model to generate the.
Sequentially selecting a test index, a remote controller key and a test operation on a human-computer operation interface according to a test requirement to generate a set top box test task; the testing indexes comprise the total starting time length of the set top box, the channel response time length of the set top box, the channel switching time length of the set top box, the page poster loading time length, the video output time length of the set top box and the like, the keys of the remote controller comprise key names, key sequences and the like, and the testing operation comprises video recording, screen capturing, data capturing, abnormal testing analysis and the like. For example, the test index of a certain set top box test task is the set top box channel switching duration, the key names in the corresponding remote controller keys comprise a starting key, a channel switching case and a confirmation key, the key sequence is that the starting key is clicked in the first step, the confirmation case is clicked in the second step to enter the first channel, the channel switching key is clicked in the third step, and the confirmation key is clicked in the fourth step to enter the next channel. The corresponding test operations are video recording and time data capturing.
S2, collecting infrared signals of the entity remote controller, and performing key learning of the virtual remote controller model; the specific operation is as follows:
and S21, selecting a key on the virtual remote controller model to perform key learning.
And S22, pressing corresponding keys on the entity remote controller, wherein the entity remote controller transmits key information by using an infrared light emitting diode and infrared light as a carrier, receives infrared signals emitted by the entity remote controller by using infrared receiving equipment, and converts the infrared signals into electric signals.
And S23, detecting, shaping and amplifying the electric signal, sampling the electric signal, and storing the binary data of each sampling point into a database by taking 8 bits as a unit.
And S24, repeating the steps S21-S23 until the key learning of all keys on the virtual remote controller model is completed, and obtaining a remote control command library corresponding to the virtual remote controller model, wherein the remote control command library comprises key names and digital remote control commands corresponding to the keys, and the set top box can be controlled by calling the remote control commands even if key operation is not performed on an entity remote controller.
S3, executing a set top box test task by using the learned virtual remote controller model, and acquiring and storing a test result; the specific operation is as follows:
selecting a set top box test task, acquiring a test index, a remote controller key and a test operation of the set top box test task, sending a virtual remote control instruction by using the remote controller key and a remote control command library, controlling the set top box to perform the test operation, acquiring the test index by using software, extracting video data at the program source side and video data at the set top box side by using a test device, and storing the test index and the acquired video data as a test result.
S4, analyzing the test result based on the image matching algorithm, and comparing the consistency of the data at the source side of the program and the data at the user side of the set-top box; the specific operation is as follows:
the method comprises the steps of setting a plurality of test points in a test device according to a time coordinate, configuring screen capture test operation for an infrared probe of each test point, sequentially capturing images of program source side video data and set top box side video data by using the test device, obtaining a plurality of groups of screen capture data, carrying out data matching on the program source side images and the set top box side images in each group of screen capture data based on an image matching algorithm, and judging whether the program source side images are consistent with set top box user side images.
When the set top box test task is configured, the time interval for executing the test task and the time length for executing each time can be set, so that after the set top box test task is selected in the step S3, the set top box test task can be automatically and repeatedly executed according to the time interval and the execution time length, and the test result is continuously updated, so that the timeliness and the accuracy of the test result are ensured.
In addition, the method can automatically execute a plurality of set top box test tasks only by staggering the execution time of different set top box test tasks, thereby realizing comprehensive and reliable video service quality test.
The utility model provides an integration STB testing arrangement, as shown in fig. 2, 3, the device includes
The front panel of the box body is provided with 3 network interfaces 14, wherein 2 network interfaces are respectively used for connecting a
Inside the box body, there are
Because this device is inside to contain a large amount of electron devices, when the device circular telegram during operation, these electron devices can produce certain heat, if the heat in the box can't in time be discharged, can lead to the box internal temperature too high, cause the potential safety hazard. Be provided with
The power input port of the device is usually connected with 12V voltage, in order to ensure the normal operation of each electronic device in the device, a DC-
Still install mainboard fixed bolster 32 in the inside of box, mainboard fixed bolster surface is provided with the screw hole, and the both sides of mainboard fixed bolster are provided with the mounting panel, have seted up the screw hole on the mounting panel, and the mainboard fixed bolster passes through the bolt fastening in the box to with bottom half panel interval certain distance. The device mainboard is fixed on the mainboard fixing support through a stud, an
The working principle of the device of the invention is as follows: the network interfaces on the front panel of the box body are respectively connected with a TV network and a network port of the set-top box, the power input port on the rear panel of the case is connected with an external power supply, the power output port is connected with the power port of the set-top box, the HDMI input port is connected with the HDMI port of the set-top box, and the HDMI output port is connected with a display of the television. After the power is switched on, according to the virtual remote controller model key learning task, the IR interface receives the infrared signal of the entity remote controller, and the equipment mainboard analyzes the received infrared signal to complete key learning. The switching module acquires video data of a TV network from the network interface, and simultaneously switches the network video data into the set top box through the network interface, and the HDMI female head acquires the video data of the set top box through the HDMI input port and transmits the data to the television display through the HDMI output port. The equipment mainboard is connected with the switching module and the HDMI tee module through cables, respectively obtains program source side video data, set top box side video data and test indexes transmitted by a TV network according to a set top box test task, and carries out consistency comparison on the program source side video data and the set top box side video data to finish video service quality test.
The method and the device of the invention can test based on the actual playing effect of the set-top box terminal, can obtain the actual watching experience of the user on the set-top box terminal equipment, realize the video service quality test during the video playing of the set-top box and the EPG browsing by the mode of image recognition and packet capturing analysis, and can compare the data of the program source side and the set-top box user side, thereby realizing the consistency comparison function of the IPTV/OTT video service. The device has the characteristics of integration and portability, can improve the deployment efficiency of the test environment of equipment, and has the advantages of low device deployment cost, low video test cost, simple test configuration, wide test content, consistent test environment and user environment and closer test result to the actual perception of a user compared with the prior art.
The embodiments of the present invention have been described in detail with reference to the drawings, but the present invention is not limited to the above embodiments, and various changes can be made within the knowledge of those skilled in the art without departing from the gist of the present invention.
- 上一篇:一种医用注射器针头装配设备
- 下一篇:存储完整性检测方法、装置和计算机设备