CN111726607A - Method and system for testing hardware of convergence gateway - Google Patents

Method and system for testing hardware of convergence gateway Download PDF

Info

Publication number
CN111726607A
CN111726607A CN202010594802.5A CN202010594802A CN111726607A CN 111726607 A CN111726607 A CN 111726607A CN 202010594802 A CN202010594802 A CN 202010594802A CN 111726607 A CN111726607 A CN 111726607A
Authority
CN
China
Prior art keywords
test
top box
gateway
gateway system
instruction
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202010594802.5A
Other languages
Chinese (zh)
Inventor
杨建斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Youhua Technology Co ltd
Original Assignee
Shenzhen Youhua Technology Co ltd
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 Shenzhen Youhua Technology Co ltd filed Critical Shenzhen Youhua Technology Co ltd
Priority to CN202010594802.5A priority Critical patent/CN111726607A/en
Publication of CN111726607A publication Critical patent/CN111726607A/en
Pending legal-status Critical Current

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
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • General Health & Medical Sciences (AREA)
  • Multimedia (AREA)
  • Environmental & Geological Engineering (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention relates to a method and a system for testing hardware of a convergence gateway, wherein the method comprises the following steps: enabling telnet services of the gateway system; configuring a test platform, and enabling the test platform to be connected with the gateway system through telnet; constructing a communication link between the gateway system and the set-top box system to establish scoket communication between the gateway system and the set-top box system; defining an instruction type, and enabling the gateway system to send a test instruction to the set top box system according to the instruction type; and after receiving the test instruction, the set top box system calls the corresponding interface to test the hardware and feeds back a test result. The invention can complete the hardware test of the gateway system and the set-top box system only by one station, thereby greatly reducing the time and labor cost, reducing the complexity of operation and improving the test efficiency.

Description

Method and system for testing hardware of convergence gateway
Technical Field
The invention relates to the technical field of digital set-top boxes, in particular to a method and a system for testing hardware of a convergence gateway.
Background
The convergence gateway is a device which integrates the optical modem and the set-top box in the same shell and can simultaneously realize the functions of accessing internet and watching television through optical fibers.
The convergence gateway device is divided into a gateway module and a set-top box module, chips and systems of the two modules are independent, and because the gateway and the set-top box are two sets of independent operating systems, a test platform needs to be connected with the gateway and the set-top box system respectively for testing.
The most common test methods used today are as follows:
1) the gateway and the set-top box are tested at the same station, the set-top box part is a single machine test, and a test program execution result is checked by connecting a television interface;
2) after the set-top box part finishes testing, a test result is submitted to a gateway system in an http post mode through an internal link channel of the gateway part;
3) the gateway system tests the connection test platform, and after the test is finished, the test result submitted by the set-top box is read and reported to the test platform.
Due to the high complexity and the high number of operating steps, it is not possible to place the two test items in the same workstation. The result is that the two stations must be scored to respectively build a testing environment of a gateway part and a testing environment of a set-top box part, and the time and labor cost is relatively high.
Disclosure of Invention
Therefore, a hardware test method and a system for the convergence gateway are needed, and the hardware test of the whole convergence gateway product can be completed by only setting up a set of test environment at one side of the gateway system and using one station.
In order to achieve the above purpose, the invention adopts the following technical scheme.
The invention firstly provides a hardware testing method of a convergence gateway, wherein the convergence gateway comprises a network relation and a set top box system connected with the gateway system through a network, and the method comprises the following steps:
enabling a telnet service of the gateway system;
configuring a test platform, and enabling the test platform to be connected with the gateway system through telnet;
constructing a communication link between the gateway system and the set-top box system to establish scoket communication between the gateway system and the set-top box system;
defining an instruction type, and enabling the gateway system to send a test instruction to the set top box system according to the instruction type;
and after receiving the test instruction, the set top box system calls the corresponding interface to test the hardware and feeds back a test result.
In the above method, before the step of enabling the telnet service of the gateway system, the method further includes the steps of:
the production mode of the gateway system is enabled.
In the method, the step of establishing a communication link between the gateway system and the set top box system to establish a scoket communication between the gateway system and the set top box system specifically includes:
and a physical link is constructed between the gateway system and the set top box system, so that data interaction is carried out between the gateway system and the set top box system through socket communication, and the data format is json.
In the above method, the step of defining the instruction type and causing the gateway system to send the test instruction to the set-top box system according to the instruction type specifically includes:
defining an instruction type which comprises an instruction and target interface data which can be executed by a gateway system and identified by a set top box system, wherein the instruction and the target interface data are packaged by adopting a json format;
and controlling the gateway system to send the test instructions to the set-top box system one by one through the test platform.
In the above method, after receiving the test instruction, the set-top box system calls a corresponding interface to test the hardware, and the step of feeding back the test result further includes:
analyzing the test instruction to obtain an instruction to be tested and a target interface;
calling a system related interface to test hardware;
and sending the test result to the gateway system in a json format data form.
In the above method, after the step of sending the test result to the gateway system in the form of json-formatted data, the method further includes the steps of:
and the gateway system prints the test result received from the set-top box system and forwards the test result to the test platform, and the test platform judges whether the test is passed or not.
In the method, the target interface comprises a USB interface, a TF card slot, an infrared receiving head, an infrared extension line interface, a standby key, an HDMI interface and an AV interface.
The invention also provides a hardware test system of the convergence gateway, which comprises the convergence gateway, wherein the convergence gateway comprises a network relation and a set top box system connected with the gateway system through a network, and further comprises a test platform connected with the gateway system through telnet; the gateway system and the set top box system establish scoket communication through a communication link; the gateway system is suitable for sending a test instruction to the set-top box system according to the defined instruction type, the set-top box system calls a corresponding interface to test hardware after receiving the test instruction, a test result is fed back, and the test platform judges whether the test is passed or not.
By adopting the scheme of the invention, the fusion gateway is tested only by one station, the testing platform is connected with the gateway system only and sends an instruction to test the hardware of the set-top box system through the gateway system, and the set-top box is tested without additionally building a testing platform, so that the hardware test of the two modules of the gateway system and the set-top box system can be completed only by one station, the time and labor cost is greatly reduced, the complexity of operation is reduced, and the testing efficiency is improved.
Drawings
Fig. 1 is a schematic flowchart of a hardware testing method of a convergence gateway in this embodiment;
fig. 2 is a timing diagram illustrating a hardware testing method of the convergence gateway in this embodiment.
The implementation of the objects of the present invention and their functions and principles will be further explained in the detailed description with reference to the attached drawings.
Detailed Description
The following further description is made with reference to the drawings and specific embodiments.
As shown in fig. 1 and fig. 2, the present invention provides a hardware testing method for a convergence gateway, where the convergence gateway includes a network system and a set-top box system connected to the gateway system via a network, and the method mainly includes the following steps:
s10: enabling telnet services of the gateway system;
s20: configuring a test platform to enable the test platform to be connected with a gateway system through telnet;
s30: a communication link is constructed between the gateway system and the set-top box system, so that scoket communication is established between the gateway system and the set-top box system;
s40: defining an instruction type, and enabling the gateway system to send a test instruction to the set top box system according to the instruction type;
s50: and after receiving the test instruction, the set top box system calls the corresponding interface to test the hardware and feeds back a test result.
Further, before step S10, the method further includes the steps of:
s5: the production mode of the gateway system is enabled.
After the production and assembly of the convergence gateway are finished, a production mode can be started by default, in the mode, a gateway system automatically starts telnet service, and after a test platform is networked with the gateway system, the gateway system can be connected through telnet and sends a test instruction to directly test each hardware interface of the gateway system.
Meanwhile, in the embodiment, a communication link is constructed between the gateway system and the set top box system, so that scoket communication is established between the gateway system and the set top box system, and the communication link is preferably a physical link to enhance reliability. Meanwhile, data interaction is carried out between the gateway system and the set top box system through socket communication, and the data format is json. When the gateway system and the set-top box system carry out data interaction, the special communication channel and the data format can ensure the communication safety between the gateway system and the set-top box system and avoid interference.
The gateway system and the set-top box system interact through predefined instruction types, the instructions comprise instructions which can be executed by the gateway system and can be identified by the set-top box system and target interface data, and the instructions and the target interface data are packaged in a json format.
For example, one of the instructions that the gateway system can execute is "flash set SMART _ IPTV _ TEST xxx", where xxx represents a hardware interface TEST command that the set-top box needs to execute, including TF _ TEST (TF card slot TEST), usb1_ TEST/usb2_ TEST (usb1 port, usb2 port TEST), ir _ TEST (infrared receiving head TEST), ir _ line _ TEST (infrared extension TEST), itv _ key _ TEST (standby key TEST), AV _ TEST (AV interface TEST), HDMI _ TEST (HDMI interface TEST), and so on.
And the testing platform controls the gateway system to send the testing instructions to the set-top box system one by one, and the set-top box system executes the testing instructions one by one.
After receiving the test instruction, the set-top box system calls the corresponding interface to test the hardware and feeds back a test result, specifically:
analyzing the test instruction to obtain an instruction to be tested and a target interface;
calling a system related interface to test hardware;
and sending the test result to the gateway system in a json format data form.
After the test result is sent to the gateway system in a json format data form, the gateway system prints the test result received from the set top box system and forwards the test result to the test platform, and the test platform judges whether the test is passed or not.
The target interface comprises a USB interface, a TF card slot, an infrared receiving head, an infrared extension line interface, a standby key, an HDMI interface and an AV interface.
The above are steps and a flow of the testing method of this embodiment for testing the set top box system, and it is easy to understand that, because the test platform is connected to the gateway system by telnet, the test platform and the gateway system can directly perform data and instruction interaction, and the test platform can call various instructions to perform hardware testing on the gateway system, and the specific steps are known technologies and are not described herein again.
According to the gateway-integrated hardware testing method, the testing platform can complete hardware testing of the network system and the set top box system only by being connected with the gateway system, so that hardware testing of two modules can be completed only by one station, complexity and difficulty of operation are reduced, testing efficiency is improved, and risk of accidental damage to equipment in the testing process is reduced.
The invention also provides a hardware test system of the convergence gateway, which mainly comprises the convergence gateway and a test platform, wherein the convergence gateway comprises a network relation and a set top box system connected with the gateway system through a network. The test platform is connected with the gateway system through telnet; the gateway system and the set top box system establish scoket communication through a communication link; the gateway system is suitable for sending a test instruction to the set-top box system according to the defined instruction type, the set-top box system calls a corresponding interface to test hardware after receiving the test instruction, a test result is fed back, and the test platform judges whether the test is passed or not.
The instruction types comprise instructions executable by the gateway system and recognizable by the set-top box system and target interface data, and the instructions and the target interface data are in json format. The target interface comprises a USB interface, a TF card slot, an infrared receiving head, an infrared extension line interface, a standby key, an HDMI interface, an AV interface and the like.
In summary, according to the scheme of the invention, only one station is needed to test the convergence gateway, the test platform only needs to be connected with the gateway system and sends an instruction through the gateway system to perform a hardware test on the set-top box system, and an additional test platform is not needed to be built to test the set-top box independently, so that the hardware test of the two modules, namely the gateway system and the set-top box system, can be completed through only one station, the time and labor cost is greatly reduced, the operation complexity is reduced, and the test efficiency is improved.
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention.

Claims (10)

1. A hardware testing method for a convergence gateway, the convergence gateway comprising a network system and a set top box system connected with the gateway system via a network, the method comprising the steps of:
enabling a telnet service of the gateway system;
configuring a test platform, and enabling the test platform to be connected with the gateway system through telnet;
constructing a communication link between the gateway system and the set-top box system to establish scoket communication between the gateway system and the set-top box system;
defining an instruction type, and enabling the gateway system to send a test instruction to the set top box system according to the instruction type;
and after receiving the test instruction, the set top box system calls the corresponding interface to test the hardware and feeds back a test result.
2. The method of claim 1, wherein said step of enabling telnet services of the gateway system is preceded by the step of:
the production mode of the gateway system is enabled.
3. The method of claim 1, wherein the step of establishing a communication link between the gateway system and the set-top box system such that the scoket communication is established between the gateway system and the set-top box system specifically comprises:
and a physical link is constructed between the gateway system and the set top box system, so that data interaction is carried out between the gateway system and the set top box system through socket communication, and the data format is json.
4. The method according to claim 1, wherein the step of defining a command type and causing the gateway system to send a test command to the set-top box system according to the command type specifically comprises:
defining an instruction type which comprises an instruction and target interface data which can be executed by a gateway system and identified by a set top box system, wherein the instruction and the target interface data are packaged by adopting a json format;
and controlling the gateway system to send the test instructions to the set-top box system one by one through the test platform.
5. The method of claim 4, wherein the step of calling the corresponding interface to test the hardware and feeding back the test result after the set-top box system receives the test instruction further comprises:
analyzing the test instruction to obtain an instruction to be tested and a target interface;
calling a system related interface to test hardware;
and sending the test result to the gateway system in a json format data form.
6. The method of claim 5, wherein after the step of transmitting the test results to the gateway system in json formatted data, further comprising the step of:
and the gateway system prints the test result received from the set-top box system and forwards the test result to the test platform, and the test platform judges whether the test is passed or not.
7. The method of claim 5 or 6, wherein the target interface comprises a USB interface, a TF card slot, an infrared receiver, an infrared extension cord interface, a standby key, an HDMI interface, and an AV interface.
8. A hardware test system of a convergence gateway comprises the convergence gateway, wherein the convergence gateway comprises a network relation and a set top box system connected with the gateway system through a network; the gateway system and the set top box system establish scoket communication through a communication link; the gateway system is suitable for sending a test instruction to the set-top box system according to the defined instruction type, the set-top box system calls a corresponding interface to test hardware after receiving the test instruction, a test result is fed back, and the test platform judges whether the test is passed or not.
9. The system of claim 8, wherein the type of instructions includes instructions executable by the gateway system and recognizable by the set-top box system and target interface data in json format.
10. The system of claim 8, wherein the target interface comprises a USB interface, a TF card slot, an infrared receiver, an infrared extension cord interface, a standby key, an HDMI interface, and an AV interface.
CN202010594802.5A 2020-06-28 2020-06-28 Method and system for testing hardware of convergence gateway Pending CN111726607A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010594802.5A CN111726607A (en) 2020-06-28 2020-06-28 Method and system for testing hardware of convergence gateway

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010594802.5A CN111726607A (en) 2020-06-28 2020-06-28 Method and system for testing hardware of convergence gateway

Publications (1)

Publication Number Publication Date
CN111726607A true CN111726607A (en) 2020-09-29

Family

ID=72569042

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010594802.5A Pending CN111726607A (en) 2020-06-28 2020-06-28 Method and system for testing hardware of convergence gateway

Country Status (1)

Country Link
CN (1) CN111726607A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113315681A (en) * 2021-05-28 2021-08-27 深圳市吉祥腾达科技有限公司 Automatic testing method and system based on intelligent home gateway plug-in
CN115865731A (en) * 2022-11-28 2023-03-28 四川天邑康和通信股份有限公司 Communication test system, method and storage medium for gateway equipment and network set-top box

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100050215A1 (en) * 2006-12-01 2010-02-25 Teliasonera Ab System and method for bandwidth handling
CN103369402A (en) * 2013-07-05 2013-10-23 北京市博汇科技有限公司 Method and system for comparing functional consistency of multiple set top boxes
CN103997641A (en) * 2014-05-23 2014-08-20 深圳创维数字技术股份有限公司 Interface detection device and method
CN104811689A (en) * 2015-03-19 2015-07-29 百度在线网络技术(北京)有限公司 Set top box remote test method, device and system
CN110662096A (en) * 2019-10-12 2020-01-07 深圳市友华软件科技有限公司 Data burning method and device for converged terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100050215A1 (en) * 2006-12-01 2010-02-25 Teliasonera Ab System and method for bandwidth handling
CN103369402A (en) * 2013-07-05 2013-10-23 北京市博汇科技有限公司 Method and system for comparing functional consistency of multiple set top boxes
CN103997641A (en) * 2014-05-23 2014-08-20 深圳创维数字技术股份有限公司 Interface detection device and method
CN104811689A (en) * 2015-03-19 2015-07-29 百度在线网络技术(北京)有限公司 Set top box remote test method, device and system
CN110662096A (en) * 2019-10-12 2020-01-07 深圳市友华软件科技有限公司 Data burning method and device for converged terminal

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113315681A (en) * 2021-05-28 2021-08-27 深圳市吉祥腾达科技有限公司 Automatic testing method and system based on intelligent home gateway plug-in
CN113315681B (en) * 2021-05-28 2022-11-08 深圳市吉祥腾达科技有限公司 Automatic testing method and system based on intelligent home gateway plug-in
CN115865731A (en) * 2022-11-28 2023-03-28 四川天邑康和通信股份有限公司 Communication test system, method and storage medium for gateway equipment and network set-top box
CN115865731B (en) * 2022-11-28 2024-04-09 四川天邑康和通信股份有限公司 Gateway equipment and network set top box communication test system, method and storage medium

Similar Documents

Publication Publication Date Title
US20150081859A1 (en) Method, apparatus and system for connecting devices to a network
CN111726607A (en) Method and system for testing hardware of convergence gateway
CN105072012A (en) Quick network access method of intelligent device
CN104936266A (en) Network access method and network access device
EP2503772A1 (en) Set top box version upgrade method and system
CN105306264A (en) Network configuration and remote registration binding method and system for intelligent household appliance
CN107205239B (en) Method for detecting wireless network connection and detection equipment
CN109709915B (en) Method and system for intelligent collaborative production among multiple production lines
CN106656562B (en) A kind of OLT batch issues the detection method and device of ONU configuration
CN108055564B (en) Method and system for synchronously playing played contents of multiple playing terminals
CN106559688A (en) The upgrading test method and apparatus of remote control
CN102065139A (en) Software upgrading method and device and multimedia terminal
CN103237071B (en) A kind of method of wireless EoC terminal centralized management
EP3094047A1 (en) Method and device for automatically commissioning aisg remote electrical tilt antennas in batches
CN103686439A (en) Reporting method and device of television fault information
CN104768177A (en) Automated Android equipment Wi-Fi module function testing method
CN110662096A (en) Data burning method and device for converged terminal
CN102984578A (en) Method, video terminal and system for processing program channel list information
CN109640181B (en) Method for upgrading home gateway through set top box
CN115514667A (en) Access service processing method, system, device, electronic equipment and storage medium
CN106160852A (en) The network system of a kind of transmission equipment and remote upgrade method thereof
CN113347580B (en) Intelligent device network distribution method and device, electronic device and storage medium
CN112469104A (en) Networking method of dual-system electronic whiteboard and electronic whiteboard
CN109587763B (en) Intelligent data acquisition method and system for die casting machines based on different die casting machine systems
CN113038499B (en) Terminal Wi-Fi compatibility testing method, device, system, equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200929

RJ01 Rejection of invention patent application after publication