WO2017000734A1 - Set top box and automatic key code table transmission test method thereof - Google Patents
Set top box and automatic key code table transmission test method thereof Download PDFInfo
- Publication number
- WO2017000734A1 WO2017000734A1 PCT/CN2016/084267 CN2016084267W WO2017000734A1 WO 2017000734 A1 WO2017000734 A1 WO 2017000734A1 CN 2016084267 W CN2016084267 W CN 2016084267W WO 2017000734 A1 WO2017000734 A1 WO 2017000734A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- signal
- top box
- main cpu
- set top
- key code
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/41—Structure of client; Structure of client peripherals
- H04N21/422—Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/41—Structure of client; Structure of client peripherals
- H04N21/426—Internal components of the client ; Characteristics thereof
- H04N21/42676—Internal components of the client ; Characteristics thereof for modulating an analogue carrier signal to encode digital information or demodulating it to decode digital information, e.g. ADSL or cable modem
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/41—Structure of client; Structure of client peripherals
- H04N21/422—Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
- H04N21/42204—User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor
- H04N21/42206—User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor characterized by hardware details
- H04N21/42221—Transmission circuitry, e.g. infrared [IR] or radio frequency [RF]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/442—Monitoring 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/442—Monitoring 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/4424—Monitoring of the internal components or processes of the client device, e.g. CPU or memory load, processing speed, timer, counter or percentage of the hard disk space used
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/443—OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/443—OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
- H04N21/4436—Power management, e.g. shutting down unused components of the receiver
Definitions
- the present invention relates to the field of set top boxes, and more particularly to a set top box and a method for its automatic key testing.
- the traditional long-term testing method of the set-top box requires a lot of manpower and material resources, which greatly consumes the company's resources, the testing intensity is not big enough, the simulation environment is not bad enough, and the effect is not good.
- the technical problem to be solved by the present invention is to solve the problem that the testing of the set top box in the prior art is not great, the manpower and material resources are consumed, and the test effect is not good.
- the present invention provides the following technical solutions:
- the invention provides a set top box.
- the set top box includes a main CPU, a standby CPU, and an infrared (Infrared Radiation) component, wherein:
- the main CPU is configured to acquire a key code table by using a preset manner; and send the key code table and an enable command to the standby CPU;
- the standby CPU is configured to randomly send an analog IR signal corresponding to a table value in the key code table to the IR component according to a preset communication standard when receiving an enable command;
- the IR component is configured to receive, demodulate the analog IR signal and/or the real IR signal, and generate an IR signal, and send the IR signal to a main CPU of the set top box;
- the main CPU is further configured to receive and respond to the IR signal.
- the IR component includes a first channel, a second channel, and a demodulation unit, the first channel is for receiving the analog IR signal, and the second channel is for receiving the real IR signal.
- the first channel and the second channel are connected by means of a line and output a first IR signal, and the first IR signal is demodulated by the demodulation unit to generate an IR signal.
- the preset manner includes interface input, built-in code, and read movement One of the ways to store devices.
- the predetermined communication standard is an IR communication standard
- the analog IR signal is a high/low level signal conforming to the IR communication standard.
- the standby CPU is a single chip device that is included in the set top box.
- the present invention provides a method of applying an automatic keying test to the set top box described above.
- the method of the automatic keying test includes:
- the main CPU obtains the key code table by a preset manner
- the main CPU sends the key code table and the enable command to the standby CPU;
- the standby CPU When receiving the enable command, the standby CPU randomly transmits the analog IR signal corresponding to the table value in the key code table to the IR component according to a preset communication standard;
- the IR component receives, demodulates the analog IR signal and/or the real IR signal, and generates an IR signal, and sends the IR signal to the main CPU of the set top box;
- the main CPU receives and responds to the IR signal.
- the IR component receives, demodulates the analog IR signal and/or the real IR signal, and generates an IR signal
- the step of transmitting the IR signal to the main CPU of the set top box includes:
- the first channel of the IR component receives the analog IR signal
- the second channel of the IR component receives the real IR signal
- the first IR signal is demodulated by a demodulation unit to generate an IR signal
- the IR signal is output to the main CPU.
- the step of the main CPU acquiring the key code table by using a preset manner includes:
- the main CPU obtains the key code table by means of interface input; or
- the main CPU obtains the key code table by means of built-in code
- the main CPU obtains the key code table by reading the mobile storage device.
- the predetermined communication standard is an IR communication standard
- the analog IR signal is a high/low level signal conforming to the IR communication standard.
- the standby CPU is a single chip device that is included in the set top box.
- the beneficial effects of the present invention are that the key code table is obtained by a preset manner, and the key code table and the enable command are sent to the standby CPU, and the standby CPU receives the enable command according to the preset communication standard. And randomly transmitting an analog IR signal corresponding to the table value in the key code table to the IR component, and the IR component receives, demodulates the analog IR signal and/or the real IR signal, generates an IR signal, and sends the IR signal to The main CPU of the set top box receives and responds to the IR signal. In the process, the standby CPU repeatedly generates an analog IR signal by repeatedly outputting an analog IR signal when receiving the enable command, and the operability is strong.
- the input channel of the analog IR signal is added to the IR component, and the input channel line of the real IR signal is connected and connected, so that the IR component inputs IR at only one end.
- the IR signal is output to the main CPU, so that the main CPU correctly parses the IR signal, and the interference signal can be filtered at the hardware layer, and the test effect is better.
- FIG. 1 is a schematic structural view of a first embodiment of a set top box according to the present invention.
- FIG. 2 is a schematic structural view of an embodiment of an IR component of a set top box of the present invention
- FIG. 3 is a schematic flow chart of a first embodiment of a method for applying an automatic keying test of a set top box according to the present invention
- FIG. 4 is a schematic diagram of the refinement process of step S40 in FIG. 3.
- Embodiment 1 is a first embodiment of a set top box provided by the present invention.
- FIG. 1 is a schematic structural view of a first embodiment of a set top box according to the present invention.
- the set top box includes a main CPU 10, a standby CPU 20, an IR component 30, a communication connection between the main CPU 10 and the standby CPU 20, and a signal connection between the standby CPU 20 and the IR component 30.
- the standby CPU 20 is a single-chip microcomputer that is included in the set-top box; in other embodiments, the standby CPU 20 is connected to the main CPU 10. It may not be a self-contained MCU of the set-top box, such as other electronic devices that are connected to the set-top box;
- the main CPU 10 is configured to acquire a key code table by a preset manner; and send the key code table and enable command to the standby CPU 20;
- the main CPU 10 can be acquired by one of interface input, built-in code, and way of reading a mobile storage device.
- the key code table is a set top box key information and a set top box operation instruction mapping table.
- an interface input is added in an application running in the main CPU for the user to input the key code table, and the main CPU 10 obtains by reading the key code table input by the user.
- a key code table; or the key code table is built in advance in an application code running on the main CPU.
- the main CPU 10 can obtain the button by reading a key code table built in the code.
- the main CPU 10 After acquiring the key code table, the main CPU 10 sends the key code table to the standby CPU 20 and simultaneously sends an enable command to the standby CPU 20.
- the standby CPU 20 is configured to, when receiving the enable command, randomly send an analog IR signal corresponding to the table value in the key code table to the IR component 30 according to a preset communication standard;
- the standby CPU 20 starts transmitting the analog IR signal to the IR component 30 upon receiving the enable command.
- the analog IR signal is a series of high/low level signals of an analog IR communication standard randomly transmitted corresponding to the table value in the key code table to simulate an infrared light signal emitted by the remote controller.
- the embodiment of the present invention can independently generate an analog test environment by repeatedly outputting an analog IR signal, and has high operability, and improves the test efficiency without artificially Participation has greatly saved manpower and material resources.
- the IR component 30 is configured to receive, demodulate the analog IR signal and/or the real IR signal, and generate an IR signal, and send the IR signal to the main CPU 10 of the set top box; the main CPU 10 is further configured to receive And responding to the IR signal.
- the present invention improves the IR component in the existing set top box.
- an input channel for the analog IR signal is added to the signal input end.
- the two signals are connected by line and by default.
- the true IR signal input and the analog IR signal input are both high.
- the IR component outputs the IR signal.
- the main CPU 10 can correctly receive the IR signal and interpret the key value.
- the two signals are mutually Interference, the IR component cannot output a strict high and low signal, and the main CPU 10 cannot analyze the IR signal normally, and the performance is not responding, that is, the interference signal can be filtered at the hardware layer.
- the key code table is obtained by a preset manner, and the key code table and the enable command are sent to the standby CPU, and when the standby CPU receives the enable command, the standby code is randomly sent according to the preset communication standard.
- the table value in the table corresponds to the analog IR signal to the IR component, the IR component receives, demodulates the analog IR signal and/or the real IR signal, and generates an IR signal, and sends the IR signal to the main CPU of the set top box, the main CPU Receiving and responding to the IR signal, in the process, the standby CPU repeatedly generates an analog IR signal by repeatedly outputting an analog IR signal when receiving an enable command, and constructs a more severe test environment, and has high operability, while improving test efficiency.
- Embodiment 2 is a second embodiment of a set top box provided by the present invention.
- FIG. 2 is a schematic structural view of an embodiment of an IR component of a set top box according to the present invention.
- the IR component 30 includes a first channel 31, a second channel 32, and a demodulation unit 33, the first channel 31 is configured to receive the analog IR signal, The second channel 32 is configured to receive the real IR signal, and the first channel 31 is connected to the second channel 32 by a line-and-connect method to output a first IR signal, where the first IR signal is decoded by the demodulation unit 33.
- the IR signal is generated after adjustment.
- the present invention improves the IR component in the existing set top box, based on the original single signal input (referring to the input channel of the real IR signal, that is, the second channel 32 in this embodiment).
- the input channel of the analog IR signal is added to the input end, that is, the first channel 31 in this embodiment.
- the two signals are connected by means of line and, by default, the real IR signal input end and the analog IR signal input end are both Presented as a high level, when only one end inputs the IR signal, the IR component outputs the IR signal after demodulation by the demodulation unit 33, so that the main CPU 10 can correctly receive the IR signal and interpret its key value, when the real IR signal
- the two signals interfere with each other, and the IR component cannot output a strict high and low signal, and the main CPU 10 cannot analyze the IR signal normally, and the performance is non-responsive, that is, it can be filtered at the hardware layer. Interference signal.
- the embodiment of the present invention can make the set top box group test each other by outputting an analog IR signal. No interference, through the real IR signal and the analog IR signal line and connection, it can also accept the real external IR signal at the same time, and maximally compress the test space of different project collective test without isolation processing.
- Embodiment 3 is a first embodiment of a method for applying the automatic keying test of the set top box provided by the present invention.
- FIG. 3 is a schematic flow chart of a first embodiment of a method for applying an automatic keying test of a set top box according to the present invention.
- the method of the automatic keying test includes:
- S10 The main CPU acquires a key code table by using a preset manner
- S20 The main CPU sends the key code table and the enable command to the standby CPU;
- the main CPU can be obtained by one of interface input, built-in code, and a method of reading a mobile storage device.
- the key code table is a set top box key information and a set top box operation instruction mapping table.
- an interface input is added in an application running in the main CPU for the user to input a key code table, and the main CPU acquires a key by reading a key code table input by the user.
- a code table; or the key code table is built in advance in an application code running on the main CPU.
- the main CPU can obtain the key code table by reading a key code table built in the code. Or storing the key code table in a file in a mobile storage device.
- the mobile storage device When the set top box needs to be tested, the mobile storage device is connected, and the main CPU reads a key code table pre-stored by the mobile storage device. After acquiring the key code table, the main CPU sends the key code table to the standby CPU, and simultaneously sends an enable command to the standby CPU.
- the standby CPU starts transmitting the analog IR signal to the IR component when receiving the enable command.
- the analog IR signal is a series of high/low level signals of an analog IR communication standard randomly transmitted corresponding to the table value in the key code table to simulate an infrared light signal emitted by the remote controller.
- the embodiment of the present invention can independently generate an analog test environment by repeatedly outputting an analog IR signal, and has high operability, and improves the test efficiency without artificially Participation has greatly saved manpower and material resources.
- the IR component receives, demodulates the analog IR signal and/or the real IR signal, and generates an IR signal, and sends the IR signal to the main CPU of the set top box;
- S50 The main CPU receives and responds to the IR signal.
- the present invention improves the IR component in the existing set top box.
- an input channel for the analog IR signal is added to the signal input end.
- the two signals are connected by line and by default.
- the true IR signal input and the analog IR signal input are both high.
- the IR component outputs the IR signal.
- the main CPU can correctly receive the IR signal and interpret its key value.
- the two signals interfere with each other, and the IR component cannot output a strict high and low signal, and the main CPU cannot Normally, the IR signal is parsed and appears to be unresponsive, that is, the interference signal can be filtered at the hardware layer.
- the key code table is obtained by a preset manner, and the key code table and the enable command are sent to the standby CPU, and when the standby CPU receives the enable command, the standby code is randomly sent according to the preset communication standard.
- the table value in the table corresponds to the analog IR signal to the IR component, the IR component receives, demodulates the analog IR signal and/or the real IR signal, and generates an IR signal, and sends the IR signal to the main CPU of the set top box, the main CPU Receiving and responding to the IR signal, in the process, the standby CPU repeatedly generates an analog IR signal by repeatedly outputting an analog IR signal when receiving an enable command, and constructs a more severe test environment, and has high operability, while improving test efficiency.
- Embodiment 4 is a second embodiment of the method for applying the automatic keying test of the set top box provided by the present invention.
- FIG. 4 is a schematic diagram of the refinement process of step S40 in FIG.
- the step S40 in the embodiment 3 specifically includes:
- the first channel of the IR component receives the analog IR signal.
- the second channel of the IR component receives the real IR signal.
- the first IR signal is demodulated by a demodulation unit to generate an IR signal.
- the present invention improves the IR component in the existing set top box, based on the original single signal input (refers to the input channel of the real IR signal, that is, the second channel in this embodiment).
- the input channel of the analog IR signal is added to the signal input end, that is, the first channel in this embodiment, and at the same time, the two signals are connected by means of line and, by default, the real IR signal input end and the analog IR signal input end. Both are presented as high levels.
- the IR component outputs the IR signal after demodulation by the demodulation unit, so that the main CPU can correctly receive the IR signal and interpret its key value when the real IR signal is input.
- the two signals interfere with each other, and the IR component cannot output a strict high and low signal.
- the main CPU cannot analyze the IR signal normally, and the performance is not responding, that is, the interference signal can be filtered at the hardware layer. .
- the embodiment of the invention can output the analog IR signal so that the set-top box group can be tested without interference, and the real IR signal and the analog IR signal line can be connected and connected, and the external real IR signal can also be accepted at the same time, without isolation processing. In the case, the test space for collective testing of different projects is maximized.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Software Systems (AREA)
- Computer Networks & Wireless Communication (AREA)
- Databases & Information Systems (AREA)
- General Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Input From Keyboards Or The Like (AREA)
- Selective Calling Equipment (AREA)
Abstract
The present invention relating to the field of set top box provides a set top box and an automatic key code table transmission test method thereof, and the set top box in the embodiments of the present invention includes a main CPU, a standby CPU and an IR component; the main CPU obtains a key code table via a preset manner and transmits the key code table and an enable command to the standby CPU; when the standby CPU receives the enable command, the standby CPU randomly transmits analogue IR signals corresponding to tabular values in the key code table to the IR component according to a preset communication standard; the IR component receives and demodulates the analogue IR signals and/or real IR signals to generate IR signals, and then transmits the IR signals to the main CPU of the set top box. The main CPU receives and responds to the IR signals. According to the present invention, the standby CPU repeatedly and randomly outputs the analogue IR signals to construct a worse test environment while receiving the enable command, so that the set top box has strong maneuverability, improves the testing efficiency and greatly saves the manpower and material resources, without any manual participation.
Description
本发明涉及机顶盒领域,尤其涉及机顶盒及其自动发键测试的方法。The present invention relates to the field of set top boxes, and more particularly to a set top box and a method for its automatic key testing.
随着人们生活水平的不断提高,人们对机顶盒系统的要求越来越高,特别是系统的稳定性的要求。为保证机顶盒的稳定性,必须加大对机顶盒的测试力度。With the continuous improvement of people's living standards, people's requirements for set-top box systems are getting higher and higher, especially the stability requirements of the system. In order to ensure the stability of the set-top box, it is necessary to increase the testing strength of the set-top box.
然而传统的机顶盒长期测试的方法需要耗费大量的人力物力,极大的耗费了公司的资源,测试力度不够大,模拟环境不够恶劣,效果不太好。However, the traditional long-term testing method of the set-top box requires a lot of manpower and material resources, which greatly consumes the company's resources, the testing intensity is not big enough, the simulation environment is not bad enough, and the effect is not good.
【发明内容】[Summary of the Invention]
本发明要解决的技术问题是解决现有技术中对机顶盒的测试力度不大、耗费人力物力,测试效果不好的问题。The technical problem to be solved by the present invention is to solve the problem that the testing of the set top box in the prior art is not great, the manpower and material resources are consumed, and the test effect is not good.
为解决上述技术问题,本发明提供以下技术方案:In order to solve the above technical problems, the present invention provides the following technical solutions:
一方面,本发明提供一种机顶盒。In one aspect, the invention provides a set top box.
所述机顶盒包括主CPU、待机CPU、IR(红外线,Infrared Radiation)部件,其中:The set top box includes a main CPU, a standby CPU, and an infrared (Infrared Radiation) component, wherein:
所述主CPU,用于通过预设的方式获取按键码表;以及发送所述按键码表和使能命令至所述待机CPU;The main CPU is configured to acquire a key code table by using a preset manner; and send the key code table and an enable command to the standby CPU;
所述待机CPU,用于在接收到使能命令时,按照预设的通讯标准随机发送与所述按键码表中的表值对应的模拟IR信号至所述IR部件;The standby CPU is configured to randomly send an analog IR signal corresponding to a table value in the key code table to the IR component according to a preset communication standard when receiving an enable command;
所述IR部件,用于接收、解调所述模拟IR信号和/或真实IR信号,并生成IR信号,发送所述IR信号至机顶盒的主CPU;The IR component is configured to receive, demodulate the analog IR signal and/or the real IR signal, and generate an IR signal, and send the IR signal to a main CPU of the set top box;
所述主CPU还用于接收并响应所述IR信号。The main CPU is further configured to receive and respond to the IR signal.
在一些实施例中,所述IR部件包括第一通道、第二通道和解调单元,所述第一通道用于接收所述模拟IR信号,所述第二通道用于接收所述真实IR信号,所述第一通道与所述第二通道通过线与的方式连接后输出第一IR信号,所述第一IR信号经解调单元解调后生成IR信号。In some embodiments, the IR component includes a first channel, a second channel, and a demodulation unit, the first channel is for receiving the analog IR signal, and the second channel is for receiving the real IR signal The first channel and the second channel are connected by means of a line and output a first IR signal, and the first IR signal is demodulated by the demodulation unit to generate an IR signal.
在一些实施例中,所述预设的方式包括界面输入、内置于代码和读取移动
存储设备的方式中的其中一种。In some embodiments, the preset manner includes interface input, built-in code, and read movement
One of the ways to store devices.
在一些实施例中,所述预设的通讯标准为IR通讯标准,所述模拟IR信号为符合所述IR通讯标准的高/低电平信号。In some embodiments, the predetermined communication standard is an IR communication standard, and the analog IR signal is a high/low level signal conforming to the IR communication standard.
在一些实施例中,所述待机CPU为机顶盒自带的单片机。In some embodiments, the standby CPU is a single chip device that is included in the set top box.
另一方面,本发明提供一种应用于上述机顶盒的自动发键测试的方法。In another aspect, the present invention provides a method of applying an automatic keying test to the set top box described above.
所述自动发键测试的方法包括:The method of the automatic keying test includes:
主CPU通过预设的方式获取按键码表;The main CPU obtains the key code table by a preset manner;
主CPU发送所述按键码表和使能命令至待机CPU;The main CPU sends the key code table and the enable command to the standby CPU;
待机CPU在接收到使能命令时,按照预设的通讯标准随机发送与所述按键码表中的表值对应的模拟IR信号至IR部件;When receiving the enable command, the standby CPU randomly transmits the analog IR signal corresponding to the table value in the key code table to the IR component according to a preset communication standard;
IR部件接收、解调所述模拟IR信号和/或真实IR信号,并生成IR信号,发送所述IR信号至机顶盒的主CPU;The IR component receives, demodulates the analog IR signal and/or the real IR signal, and generates an IR signal, and sends the IR signal to the main CPU of the set top box;
主CPU接收并响应所述IR信号。The main CPU receives and responds to the IR signal.
在一些实施例中,所述IR部件接收、解调所述模拟IR信号和/或真实IR信号,并生成IR信号,发送所述IR信号至机顶盒的主CPU的步骤包括:In some embodiments, the IR component receives, demodulates the analog IR signal and/or the real IR signal, and generates an IR signal, and the step of transmitting the IR signal to the main CPU of the set top box includes:
IR部件的第一通道接收所述模拟IR信号;The first channel of the IR component receives the analog IR signal;
IR部件的第二通道接收所述真实IR信号;The second channel of the IR component receives the real IR signal;
所述模拟IR信号与所述真实IR信号线与后输出第一IR信号;Outputting the first IR signal to the analog IR signal and the real IR signal line;
所述第一IR信号经解调单元解调后生成IR信号;The first IR signal is demodulated by a demodulation unit to generate an IR signal;
输出所述IR信号至主CPU。The IR signal is output to the main CPU.
在一些实施例中,所述主CPU通过预设的方式获取按键码表的步骤包括:In some embodiments, the step of the main CPU acquiring the key code table by using a preset manner includes:
主CPU通过界面输入的方式获取按键码表;或者The main CPU obtains the key code table by means of interface input; or
主CPU通过内置于代码的方式获取按键码表;或者The main CPU obtains the key code table by means of built-in code; or
主CPU通过读取移动存储设备的方式获取按键码表。The main CPU obtains the key code table by reading the mobile storage device.
在一些实施例中,所述预设的通讯标准为IR通讯标准,所述模拟IR信号为符合所述IR通讯标准的高/低电平信号。In some embodiments, the predetermined communication standard is an IR communication standard, and the analog IR signal is a high/low level signal conforming to the IR communication standard.
在一些实施例中,所述待机CPU为机顶盒自带的单片机。In some embodiments, the standby CPU is a single chip device that is included in the set top box.
本发明的有益效果在于通过预设的方式获取按键码表,并发送按键码表和使能命令至待机CPU,待机CPU在接收到使能命令时,按照预设的通讯标准
随机发送与所述按键码表中的表值对应的模拟IR信号至IR部件,IR部件接收、解调所述模拟IR信号和/或真实IR信号,并生成IR信号,发送所述IR信号至机顶盒的主CPU,主CPU接收并响应所述IR信号,在此过程中,待机CPU在接收到使能命令时通过反复随机输出模拟IR信号,构造更恶劣的测试环境,且可操作性强,在提高测试效率的同时,无需人为参与,极大地节省了人力物力,在IR部件中增加模拟IR信号的输入通道,并与真实IR信号的输入通道线与连接,使得IR部件在只有一端输入IR信号的时候,才输出IR信号至主CPU,使得主CPU正确解析IR信号,可以在硬件层过滤干扰信号,测试效果更好。The beneficial effects of the present invention are that the key code table is obtained by a preset manner, and the key code table and the enable command are sent to the standby CPU, and the standby CPU receives the enable command according to the preset communication standard.
And randomly transmitting an analog IR signal corresponding to the table value in the key code table to the IR component, and the IR component receives, demodulates the analog IR signal and/or the real IR signal, generates an IR signal, and sends the IR signal to The main CPU of the set top box receives and responds to the IR signal. In the process, the standby CPU repeatedly generates an analog IR signal by repeatedly outputting an analog IR signal when receiving the enable command, and the operability is strong. While improving the test efficiency, no human intervention is required, which greatly saves manpower and material resources. The input channel of the analog IR signal is added to the IR component, and the input channel line of the real IR signal is connected and connected, so that the IR component inputs IR at only one end. When the signal is output, the IR signal is output to the main CPU, so that the main CPU correctly parses the IR signal, and the interference signal can be filtered at the hardware layer, and the test effect is better.
图1为本发明机顶盒的第一实施例结构示意图;1 is a schematic structural view of a first embodiment of a set top box according to the present invention;
图2为本发明机顶盒的IR部件实施例结构示意图;2 is a schematic structural view of an embodiment of an IR component of a set top box of the present invention;
图3为本发明应用于机顶盒的自动发键测试的方法第一实施例流程示意图;3 is a schematic flow chart of a first embodiment of a method for applying an automatic keying test of a set top box according to the present invention;
图4为图3中步骤S40的细化流程示意图。FIG. 4 is a schematic diagram of the refinement process of step S40 in FIG. 3.
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本发明,并不用于限定本发明。The present invention 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 invention and are not intended to limit the invention.
此外,下面所描述的本发明各个实施方式中所涉及到的技术特征只要彼此之间未构成冲突就可以相互组合。Further, the technical features involved in the various embodiments of the present invention described below may be combined with each other as long as they do not constitute a conflict with each other.
实施例1Example 1
实施例1为本发明提供的机顶盒的第一实施例。参照图1,图1为本发明机顶盒的第一实施例结构示意图。Embodiment 1 is a first embodiment of a set top box provided by the present invention. Referring to FIG. 1, FIG. 1 is a schematic structural view of a first embodiment of a set top box according to the present invention.
所述机顶盒包括主CPU 10、待机CPU 20、IR部件30,所述主CPU 10与所述待机CPU 20之间通讯连接,所述待机CPU 20与所述IR部件30之间信号连接,所述IR部件30与所述主CPU 10之间信号连接,在本发明实施例中,所述待机CPU 20为机顶盒自带的单片机;在其他实施例中,所述待机CPU 20
也可以不是机顶盒自定的单片机,例如与机顶盒通讯连接的其他电子设备;其中:The set top box includes a main CPU 10, a standby CPU 20, an IR component 30, a communication connection between the main CPU 10 and the standby CPU 20, and a signal connection between the standby CPU 20 and the IR component 30. In the embodiment of the present invention, the standby CPU 20 is a single-chip microcomputer that is included in the set-top box; in other embodiments, the standby CPU 20 is connected to the main CPU 10.
It may not be a self-contained MCU of the set-top box, such as other electronic devices that are connected to the set-top box;
所述主CPU 10,用于通过预设的方式获取按键码表;以及发送所述按键码表和使能命令至所述待机CPU 20;The main CPU 10 is configured to acquire a key code table by a preset manner; and send the key code table and enable command to the standby CPU 20;
具体地,主CPU 10可以通过界面输入、内置于代码和读取移动存储设备的方式中的其中一种方式获取。所述按键码表为机顶盒按键信息与机顶盒操作指令映射表,例如在运行于主CPU的应用程序中增加界面输入以供用户输入按键码表,主CPU 10通过读取用户输入的按键码表获取按键码表;或者提前将所述按键码表内置于运行在主CPU的应用程序代码中,该应用程序在运行时,主CPU 10通过读取代码中内置的按键码表即可获取所述按键码表;或者将所述按键码表以文件的方式存储于移动存储设备中,当需要对机顶盒进行测试时,连接所述移动存储设备,主CPU 10读取该移动存储设备预先存储的按键码表。所述主CPU 10获取到按键码表后发送所述按键码表至所述待机CPU 20,并同时发送使能命令至所述待机CPU 20。Specifically, the main CPU 10 can be acquired by one of interface input, built-in code, and way of reading a mobile storage device. The key code table is a set top box key information and a set top box operation instruction mapping table. For example, an interface input is added in an application running in the main CPU for the user to input the key code table, and the main CPU 10 obtains by reading the key code table input by the user. a key code table; or the key code table is built in advance in an application code running on the main CPU. When the application is running, the main CPU 10 can obtain the button by reading a key code table built in the code. a code table; or storing the key code table in a file in a mobile storage device, when the set top box needs to be tested, connecting the mobile storage device, and the main CPU 10 reads the key code pre-stored by the mobile storage device table. After acquiring the key code table, the main CPU 10 sends the key code table to the standby CPU 20 and simultaneously sends an enable command to the standby CPU 20.
所述待机CPU 20,用于在接收到使能命令时,按照预设的通讯标准随机发送与所述按键码表中的表值对应的模拟IR信号至所述IR部件30;The standby CPU 20 is configured to, when receiving the enable command, randomly send an analog IR signal corresponding to the table value in the key code table to the IR component 30 according to a preset communication standard;
具体地,所述待机CPU 20在接收到该使能命令时,开始发送模拟IR信号至IR部件30。优选地,该模拟IR信号为随机发送的与按键码表中的表值对应的模拟IR通讯标准的一系列高/低电平信号,以模拟采用遥控器发出的红外光信号。较其他的依赖与外部设备统一发键的方法,本发明实施例能够独立的通过反复随机输出模拟IR信号,构造更恶劣的测试环境,且可操作性强,在提高测试效率的同时,无需人为参与,极大地节省了人力物力。Specifically, the standby CPU 20 starts transmitting the analog IR signal to the IR component 30 upon receiving the enable command. Preferably, the analog IR signal is a series of high/low level signals of an analog IR communication standard randomly transmitted corresponding to the table value in the key code table to simulate an infrared light signal emitted by the remote controller. Compared with other methods that rely on the unified key-issuing of external devices, the embodiment of the present invention can independently generate an analog test environment by repeatedly outputting an analog IR signal, and has high operability, and improves the test efficiency without artificially Participation has greatly saved manpower and material resources.
所述IR部件30,用于接收、解调所述模拟IR信号和/或真实IR信号,并生成IR信号,发送所述IR信号至机顶盒的主CPU 10;所述主CPU 10还用于接收并响应所述IR信号。The IR component 30 is configured to receive, demodulate the analog IR signal and/or the real IR signal, and generate an IR signal, and send the IR signal to the main CPU 10 of the set top box; the main CPU 10 is further configured to receive And responding to the IR signal.
具体地,本发明对现有的机顶盒中的IR部件进行了改进,在原有单路信号输入(指真实IR信号的输入通道)的基础上,在信号输入端增加了模拟IR信号的输入通道,同时,两路信号通过线与的方式连接,默认情况下,真实IR信号输入端和模拟IR信号输入端都呈现为高电平,在只有一端输入IR信号的时候,IR部件才输出IR信号,主CPU 10能正确的接收IR信号并解读其键值,当真实IR信号输入端和模拟IR信号输入端同时有信号输入时,两路信号相互
干扰,IR部件不能输出严格的高低信号,主CPU 10不能正常的解析IR信号,表现为不响应,即可以在硬件层过滤干扰信号。Specifically, the present invention improves the IR component in the existing set top box. On the basis of the original single signal input (referring to the input channel of the real IR signal), an input channel for the analog IR signal is added to the signal input end. At the same time, the two signals are connected by line and by default. By default, the true IR signal input and the analog IR signal input are both high. When only one end inputs the IR signal, the IR component outputs the IR signal. The main CPU 10 can correctly receive the IR signal and interpret the key value. When the real IR signal input end and the analog IR signal input end have a signal input at the same time, the two signals are mutually
Interference, the IR component cannot output a strict high and low signal, and the main CPU 10 cannot analyze the IR signal normally, and the performance is not responding, that is, the interference signal can be filtered at the hardware layer.
本发明实施例通过预设的方式获取按键码表,并发送按键码表和使能命令至待机CPU,待机CPU在接收到使能命令时,按照预设的通讯标准随机发送与所述按键码表中的表值对应的模拟IR信号至IR部件,IR部件接收、解调所述模拟IR信号和/或真实IR信号,并生成IR信号,发送所述IR信号至机顶盒的主CPU,主CPU接收并响应所述IR信号,在此过程中,待机CPU在接收到使能命令时通过反复随机输出模拟IR信号,构造更恶劣的测试环境,且可操作性强,在提高测试效率的同时,无需人为参与,极大地节省了人力物力,在IR部件中增加模拟IR信号的输入通道,并与真实IR信号的输入通道线与连接,使得IR部件在只有一端输入IR信号的时候,才输出IR信号至主CPU,使得主CPU正确解析IR信号,可以在硬件层过滤干扰信号,测试效果更好。In the embodiment of the present invention, the key code table is obtained by a preset manner, and the key code table and the enable command are sent to the standby CPU, and when the standby CPU receives the enable command, the standby code is randomly sent according to the preset communication standard. The table value in the table corresponds to the analog IR signal to the IR component, the IR component receives, demodulates the analog IR signal and/or the real IR signal, and generates an IR signal, and sends the IR signal to the main CPU of the set top box, the main CPU Receiving and responding to the IR signal, in the process, the standby CPU repeatedly generates an analog IR signal by repeatedly outputting an analog IR signal when receiving an enable command, and constructs a more severe test environment, and has high operability, while improving test efficiency. No human intervention is required, which greatly saves manpower and material resources, increases the input channel of the analog IR signal in the IR component, and connects with the input channel line of the real IR signal, so that the IR component outputs IR only when the IR signal is input at only one end. The signal is sent to the main CPU, so that the main CPU correctly parses the IR signal, and the interference signal can be filtered at the hardware layer, and the test effect is better.
实施例2Example 2
实施例2为本发明提供的机顶盒的第二实施例。参照图2,图2为本发明机顶盒的IR部件实施例结构示意图。Embodiment 2 is a second embodiment of a set top box provided by the present invention. Referring to FIG. 2, FIG. 2 is a schematic structural view of an embodiment of an IR component of a set top box according to the present invention.
基于实施例1,在本实施例中,所述IR部件30包括第一通道31、第二通道32和解调单元33,所述第一通道31用于接收所述模拟IR信号,所述第二通道32用于接收所述真实IR信号,所述第一通道31与所述第二通道32通过线与的方式连接后输出第一IR信号,所述第一IR信号经解调单元33解调后生成IR信号。Based on Embodiment 1, in the embodiment, the IR component 30 includes a first channel 31, a second channel 32, and a demodulation unit 33, the first channel 31 is configured to receive the analog IR signal, The second channel 32 is configured to receive the real IR signal, and the first channel 31 is connected to the second channel 32 by a line-and-connect method to output a first IR signal, where the first IR signal is decoded by the demodulation unit 33. The IR signal is generated after adjustment.
具体地,本发明对现有的机顶盒中的IR部件进行了改进,在原有单路信号输入(指真实IR信号的输入通道,即本实施例中的第二通道32)的基础上,在信号输入端增加了模拟IR信号的输入通道,即本实施例中的第一通道31,同时,两路信号通过线与的方式连接,默认情况下,真实IR信号输入端和模拟IR信号输入端都呈现为高电平,在只有一端输入IR信号的时候,通过解调单元33解调后IR部件才输出IR信号,使得主CPU 10能正确的接收IR信号并解读其键值,当真实IR信号输入端和模拟IR信号输入端同时有信号输入时,两路信号相互干扰,IR部件不能输出严格的高低信号,主CPU 10不能正常的解析IR信号,表现为不响应,即可以在硬件层过滤干扰信号。Specifically, the present invention improves the IR component in the existing set top box, based on the original single signal input (referring to the input channel of the real IR signal, that is, the second channel 32 in this embodiment). The input channel of the analog IR signal is added to the input end, that is, the first channel 31 in this embodiment. At the same time, the two signals are connected by means of line and, by default, the real IR signal input end and the analog IR signal input end are both Presented as a high level, when only one end inputs the IR signal, the IR component outputs the IR signal after demodulation by the demodulation unit 33, so that the main CPU 10 can correctly receive the IR signal and interpret its key value, when the real IR signal When the input terminal and the analog IR signal input terminal have signal input at the same time, the two signals interfere with each other, and the IR component cannot output a strict high and low signal, and the main CPU 10 cannot analyze the IR signal normally, and the performance is non-responsive, that is, it can be filtered at the hardware layer. Interference signal.
本发明实施例可以通过输出模拟IR信号使机顶盒群测试的时候做到彼此
无干扰,通过真实IR信号与模拟IR信号线与连接,也可以同时接受外界真实IR信号,在不需要做隔离处理的情况下,最大程度的压缩不同项目集体测试时的测试空间。The embodiment of the present invention can make the set top box group test each other by outputting an analog IR signal.
No interference, through the real IR signal and the analog IR signal line and connection, it can also accept the real external IR signal at the same time, and maximally compress the test space of different project collective test without isolation processing.
实施例3Example 3
实施例3为本发明提供的应用于上述机顶盒的自动发键测试的方法的第一实施例。参照图3,图3为本发明应用于机顶盒的自动发键测试的方法第一实施例流程示意图。Embodiment 3 is a first embodiment of a method for applying the automatic keying test of the set top box provided by the present invention. Referring to FIG. 3, FIG. 3 is a schematic flow chart of a first embodiment of a method for applying an automatic keying test of a set top box according to the present invention.
所述自动发键测试的方法包括:The method of the automatic keying test includes:
S10:主CPU通过预设的方式获取按键码表;S10: The main CPU acquires a key code table by using a preset manner;
S20:主CPU发送所述按键码表和使能命令至所述待机CPU;S20: The main CPU sends the key code table and the enable command to the standby CPU;
具体地,主CPU可以通过界面输入、内置于代码和读取移动存储设备的方式中的其中一种方式获取。所述按键码表为机顶盒按键信息与机顶盒操作指令映射表,例如在运行于主CPU的应用程序中增加界面输入以供用户输入按键码表,主CPU通过读取用户输入的按键码表获取按键码表;或者提前将所述按键码表内置于运行在主CPU的应用程序代码中,该应用程序在运行时,主CPU通过读取代码中内置的按键码表即可获取所述按键码表;或者将所述按键码表以文件的方式存储于移动存储设备中,当需要对机顶盒进行测试时,连接所述移动存储设备,主CPU读取该移动存储设备预先存储的按键码表。所述主CPU获取到按键码表后发送所述按键码表至所述待机CPU,并同时发送使能命令至所述待机CPU。Specifically, the main CPU can be obtained by one of interface input, built-in code, and a method of reading a mobile storage device. The key code table is a set top box key information and a set top box operation instruction mapping table. For example, an interface input is added in an application running in the main CPU for the user to input a key code table, and the main CPU acquires a key by reading a key code table input by the user. a code table; or the key code table is built in advance in an application code running on the main CPU. When the application is running, the main CPU can obtain the key code table by reading a key code table built in the code. Or storing the key code table in a file in a mobile storage device. When the set top box needs to be tested, the mobile storage device is connected, and the main CPU reads a key code table pre-stored by the mobile storage device. After acquiring the key code table, the main CPU sends the key code table to the standby CPU, and simultaneously sends an enable command to the standby CPU.
S30:待机CPU在接收到使能命令时,按照预设的通讯标准随机发送与所述按键码表中的表值对应的模拟IR信号至IR部件;S30: When receiving the enable command, the standby CPU randomly sends an analog IR signal corresponding to the table value in the key code table to the IR component according to a preset communication standard;
具体地,所述待机CPU在接收到该使能命令时,开始发送模拟IR信号至IR部件。优选地,该模拟IR信号为随机发送的与按键码表中的表值对应的模拟IR通讯标准的一系列高/低电平信号,以模拟采用遥控器发出的红外光信号。较其他的依赖与外部设备统一发键的方法,本发明实施例能够独立的通过反复随机输出模拟IR信号,构造更恶劣的测试环境,且可操作性强,在提高测试效率的同时,无需人为参与,极大地节省了人力物力。Specifically, the standby CPU starts transmitting the analog IR signal to the IR component when receiving the enable command. Preferably, the analog IR signal is a series of high/low level signals of an analog IR communication standard randomly transmitted corresponding to the table value in the key code table to simulate an infrared light signal emitted by the remote controller. Compared with other methods that rely on the unified key-issuing of external devices, the embodiment of the present invention can independently generate an analog test environment by repeatedly outputting an analog IR signal, and has high operability, and improves the test efficiency without artificially Participation has greatly saved manpower and material resources.
S40:IR部件接收、解调所述模拟IR信号和/或真实IR信号,并生成IR信号,发送所述IR信号至机顶盒的主CPU;
S40: The IR component receives, demodulates the analog IR signal and/or the real IR signal, and generates an IR signal, and sends the IR signal to the main CPU of the set top box;
S50:主CPU接收并响应所述IR信号。S50: The main CPU receives and responds to the IR signal.
具体地,本发明对现有的机顶盒中的IR部件进行了改进,在原有单路信号输入(指真实IR信号的输入通道)的基础上,在信号输入端增加了模拟IR信号的输入通道,同时,两路信号通过线与的方式连接,默认情况下,真实IR信号输入端和模拟IR信号输入端都呈现为高电平,在只有一端输入IR信号的时候,IR部件才输出IR信号,主CPU能正确的接收IR信号并解读其键值,当真实IR信号输入端和模拟IR信号输入端同时有信号输入时,两路信号相互干扰,IR部件不能输出严格的高低信号,主CPU不能正常的解析IR信号,表现为不响应,即可以在硬件层过滤干扰信号。Specifically, the present invention improves the IR component in the existing set top box. On the basis of the original single signal input (referring to the input channel of the real IR signal), an input channel for the analog IR signal is added to the signal input end. At the same time, the two signals are connected by line and by default. By default, the true IR signal input and the analog IR signal input are both high. When only one end inputs the IR signal, the IR component outputs the IR signal. The main CPU can correctly receive the IR signal and interpret its key value. When the real IR signal input end and the analog IR signal input end have the signal input at the same time, the two signals interfere with each other, and the IR component cannot output a strict high and low signal, and the main CPU cannot Normally, the IR signal is parsed and appears to be unresponsive, that is, the interference signal can be filtered at the hardware layer.
本发明实施例通过预设的方式获取按键码表,并发送按键码表和使能命令至待机CPU,待机CPU在接收到使能命令时,按照预设的通讯标准随机发送与所述按键码表中的表值对应的模拟IR信号至IR部件,IR部件接收、解调所述模拟IR信号和/或真实IR信号,并生成IR信号,发送所述IR信号至机顶盒的主CPU,主CPU接收并响应所述IR信号,在此过程中,待机CPU在接收到使能命令时通过反复随机输出模拟IR信号,构造更恶劣的测试环境,且可操作性强,在提高测试效率的同时,无需人为参与,极大地节省了人力物力,在IR部件中增加模拟IR信号的输入通道,并与真实IR信号的输入通道线与连接,使得IR部件在只有一端输入IR信号的时候,才输出IR信号至主CPU,使得主CPU正确解析IR信号,可以在硬件层过滤干扰信号,测试效果更好。In the embodiment of the present invention, the key code table is obtained by a preset manner, and the key code table and the enable command are sent to the standby CPU, and when the standby CPU receives the enable command, the standby code is randomly sent according to the preset communication standard. The table value in the table corresponds to the analog IR signal to the IR component, the IR component receives, demodulates the analog IR signal and/or the real IR signal, and generates an IR signal, and sends the IR signal to the main CPU of the set top box, the main CPU Receiving and responding to the IR signal, in the process, the standby CPU repeatedly generates an analog IR signal by repeatedly outputting an analog IR signal when receiving an enable command, and constructs a more severe test environment, and has high operability, while improving test efficiency. No human intervention is required, which greatly saves manpower and material resources, increases the input channel of the analog IR signal in the IR component, and connects with the input channel line of the real IR signal, so that the IR component outputs IR only when the IR signal is input at only one end. The signal is sent to the main CPU, so that the main CPU correctly parses the IR signal, and the interference signal can be filtered at the hardware layer, and the test effect is better.
实施例4Example 4
实施例4为本发明提供的应用于上述机顶盒的自动发键测试的方法的第二实施例。参照图4,图4为图3中步骤S40的细化流程示意图。Embodiment 4 is a second embodiment of the method for applying the automatic keying test of the set top box provided by the present invention. Referring to FIG. 4, FIG. 4 is a schematic diagram of the refinement process of step S40 in FIG.
基于实施例3,在本实施例中,实施例3中步骤S40具体包括:Based on the embodiment 3, in the embodiment, the step S40 in the embodiment 3 specifically includes:
S401:IR部件的第一通道接收所述模拟IR信号;S401: The first channel of the IR component receives the analog IR signal.
S402:IR部件的第二通道接收所述真实IR信号;S402: The second channel of the IR component receives the real IR signal.
S403:所述模拟IR信号与所述真实IR信号线与后输出第一IR信号;S403: The analog IR signal and the real IR signal line are followed by outputting a first IR signal.
S404:所述第一IR信号经解调单元解调后生成IR信号;S404: The first IR signal is demodulated by a demodulation unit to generate an IR signal.
S405:输出所述IR信号至主CPU。S405: Output the IR signal to the main CPU.
具体地,本发明对现有的机顶盒中的IR部件进行了改进,在原有单路信号输入(指真实IR信号的输入通道,即本实施例中的第二通道)的基础上,
在信号输入端增加了模拟IR信号的输入通道,即本实施例中的第一通道,同时,两路信号通过线与的方式连接,默认情况下,真实IR信号输入端和模拟IR信号输入端都呈现为高电平,在只有一端输入IR信号的时候,通过解调单元解调后IR部件才输出IR信号,使得主CPU能正确的接收IR信号并解读其键值,当真实IR信号输入端和模拟IR信号输入端同时有信号输入时,两路信号相互干扰,IR部件不能输出严格的高低信号,主CPU不能正常的解析IR信号,表现为不响应,即可以在硬件层过滤干扰信号。Specifically, the present invention improves the IR component in the existing set top box, based on the original single signal input (refers to the input channel of the real IR signal, that is, the second channel in this embodiment).
The input channel of the analog IR signal is added to the signal input end, that is, the first channel in this embodiment, and at the same time, the two signals are connected by means of line and, by default, the real IR signal input end and the analog IR signal input end. Both are presented as high levels. When only one end inputs the IR signal, the IR component outputs the IR signal after demodulation by the demodulation unit, so that the main CPU can correctly receive the IR signal and interpret its key value when the real IR signal is input. When both the terminal and the analog IR signal input have signal input, the two signals interfere with each other, and the IR component cannot output a strict high and low signal. The main CPU cannot analyze the IR signal normally, and the performance is not responding, that is, the interference signal can be filtered at the hardware layer. .
本发明实施例可以通过输出模拟IR信号使机顶盒群测试的时候做到彼此无干扰,通过真实IR信号与模拟IR信号线与连接,也可以同时接受外界真实IR信号,在不需要做隔离处理的情况下,最大程度的压缩不同项目集体测试时的测试空间。The embodiment of the invention can output the analog IR signal so that the set-top box group can be tested without interference, and the real IR signal and the analog IR signal line can be connected and connected, and the external real IR signal can also be accepted at the same time, without isolation processing. In the case, the test space for collective testing of different projects is maximized.
以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。
The above is only the preferred embodiment of the present invention, and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection of the present invention. Within the scope.
Claims (10)
- 一种机顶盒,其特征在于,所述机顶盒包括主CPU、待机CPU、IR部件,其中:A set top box, characterized in that the set top box comprises a main CPU, a standby CPU, and an IR component, wherein:所述主CPU,用于通过预设的方式获取按键码表;以及发送所述按键码表和使能命令至所述待机CPU;The main CPU is configured to acquire a key code table by using a preset manner; and send the key code table and an enable command to the standby CPU;所述待机CPU,用于在接收到使能命令时,按照预设的通讯标准随机发送与所述按键码表中的表值对应的模拟IR信号至所述IR部件;The standby CPU is configured to randomly send an analog IR signal corresponding to a table value in the key code table to the IR component according to a preset communication standard when receiving an enable command;所述IR部件,用于接收、解调所述模拟IR信号和/或真实IR信号,并生成IR信号,发送所述IR信号至机顶盒的主CPU;The IR component is configured to receive, demodulate the analog IR signal and/or the real IR signal, and generate an IR signal, and send the IR signal to a main CPU of the set top box;所述主CPU还用于接收并响应所述IR信号。The main CPU is further configured to receive and respond to the IR signal.
- 如权利要求1所述的机顶盒,其特征在于,所述IR部件包括第一通道、第二通道和解调单元,所述第一通道用于接收所述模拟IR信号,所述第二通道用于接收所述真实IR信号,所述第一通道与所述第二通道通过线与的方式连接后输出第一IR信号,所述第一IR信号经解调单元解调后生成IR信号。The set top box of claim 1 wherein said IR component comprises a first channel, a second channel, and a demodulation unit, said first channel for receiving said analog IR signal and said second channel After receiving the real IR signal, the first channel and the second channel are connected by means of a line and output a first IR signal, and the first IR signal is demodulated by a demodulation unit to generate an IR signal.
- 如权利要求1或2所述的机顶盒,其特征在于,所述预设的方式包括界面输入、内置于代码和读取移动存储设备的方式中的其中一种。The set top box of claim 1 or 2, wherein the predetermined manner comprises one of interface input, built in code, and manner of reading a removable storage device.
- 如权利要求1或2所述的机顶盒,其特征在于,所述预设的通讯标准为IR通讯标准,所述模拟IR信号为符合所述IR通讯标准的高/低电平信号。The set top box according to claim 1 or 2, wherein the predetermined communication standard is an IR communication standard, and the analog IR signal is a high/low level signal conforming to the IR communication standard.
- 如权利要求1或2所述的机顶盒,其特征在于,所述待机CPU为机顶盒自带的单片机。The set top box according to claim 1 or 2, wherein the standby CPU is a single chip provided by the set top box.
- 一种应用于权利要求1~5任一项所述机顶盒的自动发键测试的方法,其特征在于,所述自动发键测试的方法包括:A method for applying the automatic keying test of the set top box according to any one of claims 1 to 5, characterized in that the method of the automatic keying test comprises:主CPU通过预设的方式获取按键码表;The main CPU obtains the key code table by a preset manner;主CPU发送所述按键码表和使能命令至待机CPU;The main CPU sends the key code table and the enable command to the standby CPU;待机CPU在接收到使能命令时,按照预设的通讯标准随机发送与所述按键码表中的表值对应的模拟IR信号至IR部件;When receiving the enable command, the standby CPU randomly transmits the analog IR signal corresponding to the table value in the key code table to the IR component according to a preset communication standard;IR部件接收、解调所述模拟IR信号和/或真实IR信号,并生成IR信号, 发送所述IR信号至机顶盒的主CPU;The IR component receives, demodulates the analog IR signal and/or the real IR signal, and generates an IR signal, Sending the IR signal to the main CPU of the set top box;主CPU接收并响应所述IR信号。The main CPU receives and responds to the IR signal.
- 如权利要求6所述的自动发键测试的方法,其特征在于,所述IR部件接收、解调所述模拟IR信号和/或真实IR信号,并生成IR信号,发送所述IR信号至机顶盒的主CPU的步骤包括:The automatic key testing method according to claim 6, wherein said IR component receives, demodulates said analog IR signal and/or a real IR signal, and generates an IR signal, and transmits said IR signal to a set top box. The steps of the main CPU include:IR部件的第一通道接收所述模拟IR信号;The first channel of the IR component receives the analog IR signal;IR部件的第二通道接收所述真实IR信号;The second channel of the IR component receives the real IR signal;所述模拟IR信号与所述真实IR信号线与后输出第一IR信号;Outputting the first IR signal to the analog IR signal and the real IR signal line;所述第一IR信号经解调单元解调后生成IR信号;The first IR signal is demodulated by a demodulation unit to generate an IR signal;输出所述IR信号至主CPU。The IR signal is output to the main CPU.
- 如权利要求6或7所述的自动发键测试的方法,其特征在于,所述主CPU通过预设的方式获取按键码表的步骤包括:The method for automatically detecting a key code according to claim 6 or 7, wherein the step of the main CPU acquiring the key code table by a preset manner comprises:主CPU通过界面输入的方式获取按键码表;或者The main CPU obtains the key code table by means of interface input; or主CPU通过内置于代码的方式获取按键码表;或者The main CPU obtains the key code table by means of built-in code; or主CPU通过读取移动存储设备的方式获取按键码表。The main CPU obtains the key code table by reading the mobile storage device.
- 如权利要求6或7所述的自动发键测试的方法,其特征在于,所述预设的通讯标准为IR通讯标准,所述模拟IR信号为符合所述IR通讯标准的高/低电平信号。The automatic key testing method according to claim 6 or 7, wherein the predetermined communication standard is an IR communication standard, and the analog IR signal is a high/low level in accordance with the IR communication standard. signal.
- 如权利要求6或7所述的自动发键测试的方法,其特征在于,所述待机CPU为机顶盒自带的单片机。 The automatic key testing method according to claim 6 or 7, wherein the standby CPU is a single chip provided by the set top box.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510385304.9 | 2015-06-30 | ||
CN201510385304.9A CN104936029B (en) | 2015-06-30 | 2015-06-30 | Set-top box and its method of automatic hair key test |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2017000734A1 true WO2017000734A1 (en) | 2017-01-05 |
Family
ID=54122939
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2016/084267 WO2017000734A1 (en) | 2015-06-30 | 2016-06-01 | Set top box and automatic key code table transmission test method thereof |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN104936029B (en) |
WO (1) | WO2017000734A1 (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104936029B (en) * | 2015-06-30 | 2018-05-18 | 深圳市九洲电器有限公司 | Set-top box and its method of automatic hair key test |
CN111415508A (en) * | 2020-04-20 | 2020-07-14 | 深圳市金锐显数码科技有限公司 | Test equipment for simulating remote controller |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101635864A (en) * | 2009-08-21 | 2010-01-27 | 深圳创维数字技术股份有限公司 | Method and system for remotely testing electronic device |
CN101951529A (en) * | 2010-08-31 | 2011-01-19 | 中山大学 | Method and system for testing functions of set top box |
CN102300117A (en) * | 2011-08-31 | 2011-12-28 | 四川长虹电器股份有限公司 | Automatic testing system and testing method for set-top box |
US20120054567A1 (en) * | 2010-08-30 | 2012-03-01 | Contec Llc | Multimedia device test system |
CN104936029A (en) * | 2015-06-30 | 2015-09-23 | 深圳市九洲电器有限公司 | Set top box and an automatic key code table transmission test method thereof |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103839404B (en) * | 2012-11-23 | 2017-05-10 | 中兴通讯股份有限公司 | Automatic test apparatus of infrared remote control equipment, and method thereof |
CN104023231B (en) * | 2014-06-26 | 2016-03-02 | 青岛创新控制技术有限公司 | A kind of set top box main automatic test approach |
CN104301766B (en) * | 2014-09-28 | 2018-10-23 | 四川长虹电器股份有限公司 | Remote control matching system based on smart television and method |
CN204423631U (en) * | 2015-03-20 | 2015-06-24 | 蒋海兵 | A kind of Infrared remote controller testing apparatus |
-
2015
- 2015-06-30 CN CN201510385304.9A patent/CN104936029B/en not_active Expired - Fee Related
-
2016
- 2016-06-01 WO PCT/CN2016/084267 patent/WO2017000734A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101635864A (en) * | 2009-08-21 | 2010-01-27 | 深圳创维数字技术股份有限公司 | Method and system for remotely testing electronic device |
US20120054567A1 (en) * | 2010-08-30 | 2012-03-01 | Contec Llc | Multimedia device test system |
CN101951529A (en) * | 2010-08-31 | 2011-01-19 | 中山大学 | Method and system for testing functions of set top box |
CN102300117A (en) * | 2011-08-31 | 2011-12-28 | 四川长虹电器股份有限公司 | Automatic testing system and testing method for set-top box |
CN104936029A (en) * | 2015-06-30 | 2015-09-23 | 深圳市九洲电器有限公司 | Set top box and an automatic key code table transmission test method thereof |
Also Published As
Publication number | Publication date |
---|---|
CN104936029B (en) | 2018-05-18 |
CN104936029A (en) | 2015-09-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2016026314A1 (en) | Method,device and system for configuring wireless camera | |
WO2017000734A1 (en) | Set top box and automatic key code table transmission test method thereof | |
CN103281558B (en) | Testing method based on set top box and set top box testing system | |
CN102970385A (en) | Method for automatically connecting upper computer and lower computer | |
CN109873728A (en) | A kind of terminal test method, device and storage medium | |
WO2015117573A1 (en) | Method and device for communicatively connecting with intelligent terminal | |
CN103546531B (en) | The parameter rapid-setting method and system of a kind of intelligent television | |
CN107171908A (en) | BLEMesh devices based on voice terminal | |
CN104883564B (en) | A kind of OTT set-top box produces the method for testing and system of ageing stability | |
CN110569160B (en) | Test system of development board based on communication module | |
CN107181825B (en) | Online processing method of terminal equipment data | |
CN111736474A (en) | Multi-mode intelligent home control system and method | |
CN110601938A (en) | Intelligent household appliance unique identification code writing method, network terminal device and system | |
WO2018076357A1 (en) | Multimedia information playback method and system, collection device, and standardised server | |
CN106162928A (en) | Information transmission system and method | |
CN107911695B (en) | Infrared remote control test method, information conversion device and computer readable storage medium | |
CN110415700A (en) | A kind of voice and press key control multiple household electrical appliances device systems and its method | |
WO2016023267A1 (en) | Voice control-based family networking method, system and device | |
CN205514535U (en) | Intelligence sleep monitor pillow system | |
CN103217938A (en) | Control system for achieving voice frequency remote access and playback | |
CN109525417A (en) | Household appliance cut-in method, domestic electric appliances controller and storage medium based on network interface | |
CN107483299A (en) | Internet of things access method and device | |
CN107727964A (en) | Wireless type relay protection constant value list intelligent checking technology test platform | |
CN106175692A (en) | Intelligent station lamp-type equipment | |
CN105530530A (en) | Smart television routing mode realizing method and smart television |
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: 16817098 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 1205 DATED 18/05/2018) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 16817098 Country of ref document: EP Kind code of ref document: A1 |