WO2016019710A1 - Method and device for operating set-top box, and set-top box - Google Patents

Method and device for operating set-top box, and set-top box Download PDF

Info

Publication number
WO2016019710A1
WO2016019710A1 PCT/CN2015/071502 CN2015071502W WO2016019710A1 WO 2016019710 A1 WO2016019710 A1 WO 2016019710A1 CN 2015071502 W CN2015071502 W CN 2015071502W WO 2016019710 A1 WO2016019710 A1 WO 2016019710A1
Authority
WO
WIPO (PCT)
Prior art keywords
top box
set top
hdmi
cec
power
Prior art date
Application number
PCT/CN2015/071502
Other languages
French (fr)
Chinese (zh)
Inventor
王宏伟
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2016019710A1 publication Critical patent/WO2016019710A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • H04N5/765Interface circuits between an apparatus for recording and another apparatus
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a set top box operating method, apparatus, and set top box.
  • a set-top box is a device that connects a TV set to an external signal source. It can receive and decode compressed digital signals on a TV network or the Internet, and play high-quality images and accompanying sounds on the TV set, greatly enhancing and expanding the TV set. Use features.
  • most set-top boxes have a standby function that can be implemented by a set-top box remote control or a button. There are some problems with the existing technology in use:
  • the embodiment of the invention provides a method, a device and a set top box for operating a set top box, which solves the technical problem that the set top box cannot be synchronized with the power state of the television when the set top box is in standby.
  • a set-top box with HDMI (High-Definition Multimedia Interface) function through the built-in CEC (Consumer Electronics Control), can be used to control all devices on and off by any device in the HDMI network.
  • CEC Consumer Electronics Control
  • a method of operating a set top box is provided.
  • the set top box acquires a consumer electronic control (HDMI-CEC) command of a high definition multimedia interface when the set top box is in a standby or power off state;
  • HDMI-CEC consumer electronic control
  • the set-top box When the HDMI-CEC command is received as a power-on command, the set-top box is powered on.
  • the detecting the power state of the set top box includes:
  • the acquiring, by the set top box, the HDMI-CEC command includes:
  • the set top box acquires the HDMI-CEC command through a single chip microcomputer.
  • booting the set top box includes:
  • the set top box main power is turned on and controlled by the pins of the single chip microcomputer and related circuits.
  • the embodiment of the invention further provides a set top box operating device, comprising:
  • a detection module configured to detect a power state of the set top box
  • the acquisition module is configured to obtain a consumer electronic control (HDMI-CEC) command of the high definition multimedia interface when the set top box is in a standby or power off state;
  • HDMI-CEC consumer electronic control
  • the boot module is configured to boot the set top box when the HDMI-CEC command is received as a power on command.
  • the detecting module includes:
  • the judging unit is configured to judge the power state of the set top box by detecting the high and low levels of the single chip pin.
  • the obtaining module includes:
  • the obtaining unit is configured to acquire the CEC command of the HDMI by using a single chip microcomputer.
  • the embodiment of the invention further provides a method for operating a set top box, including:
  • the set top box When the set top box is powered on, the set top box is associated with a signal source of a corresponding television set through a high definition multimedia interface-consuming electronic control (HDMI-CEC);
  • HDMI-CEC high definition multimedia interface-consuming electronic control
  • a preset operation is performed on the set top box and the television set.
  • performing preset operations on the set top box and the television according to the association situation includes:
  • the embodiment of the invention further provides a set top box, including:
  • the pin of the single chip is connected to the HDMI-CEC communication interface of the HDMI, and the single chip is configured to: obtain the HDMI-CEC command in the standby state of the set top box.
  • the pin of the single chip is connected to the HDMI-CEC communication interface, including:
  • the interrupt pin of the single chip microcomputer is connected to the HDMI-CEC communication interface.
  • the set top box further includes an associated circuit and a main power supply, wherein:
  • the pins of the microcontroller and associated circuitry are connected to the main power of the set top box.
  • the embodiment of the present invention further provides a computer readable storage medium storing program instructions, which, when executed, causes the set top box to perform the method of any one of claims 1-4, 8-9.
  • the embodiment of the invention solves the problem that the set-top box cannot be synchronized with the power state of the television when the set-top box is in standby, and realizes that the set-top box can automatically detect the HDMI start-up signal in the low-power standby state, thereby completing the state synchronization between the set-top box and the television, simplifying user operations. , enhance the user experience. .
  • FIG. 1 is a schematic diagram of a method of operating a set top box according to an embodiment of the present invention
  • FIG. 2 is a flow chart of a method of operating a set top box in accordance with an embodiment of the present invention
  • FIG. 3 is a structural diagram of a set top box device according to an embodiment of the present invention.
  • FIG. 4 is an explanatory diagram of timing of a CEC start bit according to an embodiment of the present invention.
  • FIG. 5 is a timing diagram of a CEC logic state in accordance with an embodiment of the present invention.
  • FIG. 6 is a schematic diagram of state transition of a set top box and a television set when the set top box is powered on according to an embodiment of the invention.
  • FIG. 1 is a schematic diagram of a method of operating a set top box in accordance with an embodiment of the present invention. As shown in FIG. 1, the method may include the following steps:
  • Step S101 detecting a power state of the set top box
  • Step S102 detecting an HDMI-CEC power-on command
  • the set top box may obtain an HDMI-CEC command when the set top box is in a standby or power off state;
  • Step S103 performing a booting operation on the set top box
  • the set-top box can be powered on when receiving the HDMI-CEC command as the power-on command.
  • the set top box does not turn off the power of the HDMI module during standby, and the standby power consumption is large.
  • the HDMI module is powered off, the HDMI-CEC signal cannot be received, and synchronization with the TV power status cannot be achieved.
  • the set-top box by detecting the state of the set-top box, acquires the consumer electronic control CEC command of the high-definition multimedia interface HDMI when the set-top box is in the standby or power-off state, and starts the set-top box when receiving the HDMI-CEC command as the power-on command.
  • the set-top box cannot be synchronized with the power state of the TV when it is in standby mode, and realizes that the set-top box can automatically detect the HDMI boot signal in the low-power standby state, thereby completing the synchronization of the set-top box and the television state, simplifying user operations, and enhancing user experience.
  • the set-top box can detect its own power state through an integrated or external microcontroller chip.
  • the main power of the set-top box is connected by the pin of the single-chip microcomputer, and the power state of the set-top box is known by judging the high-low level of the pin, thereby realizing the function of detecting the power state of the set-top box.
  • the single-chip computer when receiving the HDMI-CEC command as the power-on command, the single-chip computer is connected to the main power of the set-top box, and the pin of the single-chip microcomputer is used as a control switch, and the set-top box can be turned on.
  • the set top box can pass when the set top box is in standby or off state.
  • the MCU obtains the consumer electronic control CEC command of the high-definition multimedia interface HDMI.
  • the standby power supply is separated from the main power of the set top box and is independent. When the set top box is in standby, the main power is turned off.
  • the standby power supply works to supply power to the MCU and HDMI module.
  • the set top box accesses the HDMI-CEC communication interface through the single chip microcomputer and receives the CEC power on command through the software.
  • the standby power supply supplies power to the microcontroller and is independent of the main power supply. Turning off the main power in standby mode ensures the overall power consumption of the set-top box. However, it does not affect the operation of the MCU.
  • the set-top box In the low-power standby state, the set-top box can automatically detect the HDMI boot signal, effectively solving the problem that the set-top box cannot be synchronized with the power state of the TV when it is in standby mode, and can also receive the boot from the HDMI-CEC. The command thus synchronizes the state of the set-top box with the television.
  • FIG. 2 is a detailed flow chart of a method of operating a set top box in accordance with an embodiment of the present invention.
  • the specific process of the set-top box operation method is as follows:
  • Step S201 Detecting the power state of the set top box.
  • the single-chip microcomputer is connected to the main power of the set-top box, and the power state of the set-top box is judged by detecting the high-low level of the single-chip pin.
  • the last state is generally saved, and the internal or external EEPROM (Electrically Erasable Programmable Read-Only Memory) can be used, and the data is not lost after power-off.
  • the memory chip is used to save the state, and then read and resume the power-on or standby state after power-on.
  • Step S202 determining whether the set top box is in a standby or power off state.
  • step S201 If the set top box is in the power on state, return to step S201 to continue detecting
  • step S203 If the set top box is in the standby or power off state, step S203 is performed.
  • Step S203 Acquire an HDMI-CEC power-on command.
  • the set-top box detects communication signals from the high-definition multimedia interface - consumer electronics control HDMI-CEC.
  • the MCU is connected to the HDMI-CEC communication interface to detect and obtain the HDMI-CEC communication signal through software.
  • the CEC communication is realized by software using the pins of the single chip, and the method is simple and cheap, and the purpose of the method of the present invention is also achieved.
  • Step S204 determining whether it is a power-on command.
  • the set-top box When the set-top box detects the HDMI-CEC communication signal, it needs to judge whether it is the command to turn on the TV.
  • the MCU judges whether it is a CEC power-on command according to the received CEC message, and the CEC power-on command refers to more than one specific reference to the HDMI specification manual.
  • step S205 If it is a CEC power-on command, step S205 is performed.
  • the CEC information includes a start bit and a data bit.
  • Data bits can be informational information such as logical addresses, CEC commands, or control bits, such as end of message [EOM] or response [ACK].
  • a high-to-low transition follows a low-to-high transition and follows the timing in Figure 4, which is a starting bit.
  • Figure 5 is a timing diagram of the CEC logic state in accordance with an embodiment of the present invention. As shown in Figure 5, the logical bits '0' and '1' to be followed by the data bits after the start bit are timing requirements.
  • Table 1 is a CEC frame structure in accordance with an embodiment of the present invention.
  • a specific CEC command consists of a start bit and n data packets.
  • the structure of each data packet is fixed to include 10 bits, and 8 data bits and 2 control bits.
  • the header packet includes a logical address and a destination address. If the EOM is logically '0', it means that there is more data behind; if it is '1', it means that a frame or message ends.
  • Start bit Indicates the beginning of a frame Header packet Source and destination address Packet 1 Opcode (optional) Packet 2... Operand (optional, determined by opcode)
  • Table 2 is a CEC data packet in accordance with an embodiment of the present invention.
  • EOM End of message
  • '1' indicates the end of a frame.
  • ACK Acknowledge
  • acknowledge bit '0' indicates the response.
  • the MCU determines whether it is the start bit by detecting the timing on the pin, the data bit '0' or the data bit '1', and then identifies a CEC message according to the frame structure of the CEC and performs corresponding processing according to the CEC protocol.
  • Step S207 The set top box is powered on.
  • the set-top box detects the power-on command from HDMI-CEC, that is, performs the set-top box boot operation.
  • the MCU turns on the main power and turns on the power through the switch module.
  • the single-chip microcomputer controls the main power supply of the set-top box, which is realized by the single-chip pin and related circuit, and uses the pin of the single-chip microcomputer as the control switch to open the main power of the set-top box to realize the start-up operation of the set-top box.
  • the method of the embodiment of the invention includes the operation of the switch machine and the logic judgment, etc., which are implemented by software of the single chip microcomputer.
  • FIG. 3 is a structural diagram of a set top box device in accordance with an embodiment of the present invention. As shown in FIG. 2, the set top box device includes the following modules:
  • a detection module configured to detect a power state of the set top box
  • the acquisition module is set to receive the consumer electronic control CEC command of the high definition multimedia interface HDMI when the set top box is in standby or off state;
  • the boot module is set to boot the set top box when the HDMI-CEC command is received as a power on command.
  • the set top box device does not turn off the power of the HDMI module during standby, and the standby power consumption is large.
  • the set-top box device turns off the power of the HDMI module during standby, it is impossible to synchronize the power on and off with the television, which brings inconvenience to the user.
  • the set-top box device provided by the embodiment of the invention effectively solves such a problem, reduces power consumption, and can realize synchronous startup with the television in a standby state, which simplifies user operations and enhances user experience.
  • the detection module can include a determination unit.
  • the judgment unit is realized by the main power supply of the single-chip computer to the set-top box, and the single-chip microcomputer can judge the power state of the set-top box by detecting the high and low levels of the pin.
  • the low-cost single-chip microcomputer can realize the function of detecting the power state of the set-top box, and the method is simple and cheap, and is easy to process.
  • the boot module may include a boot unit.
  • the boot unit is used to power on the set top box. It is the main power supply of the set-top box connected by the single-chip microcomputer, which is realized by the single-chip pin and related circuit, and uses the pin of the single-chip microcomputer as the control switch.
  • the low-cost single-chip microcomputer can realize the function of turning on or off the main power state of the set-top box. The method is simple, cheap and easy to process.
  • the acquisition module may include an acquisition unit.
  • the acquisition unit is used for set-top box monitoring and acquisition of high-definition multimedia interface HDMI consumer electronic control CEC commands.
  • the acquisition unit is a CMOS consumer electronic control CEC communication interface that is connected to a high-definition multimedia interface by a single-chip microcomputer, and simulates CEC communication through software and receives a CEC power-on command. More cost-effective, low standby power consumption.
  • the MCU interrupt pin can be connected to the CEC communication pin for triggering the interrupt. This allows the MCU to enter the sleep mode in the standby state, triggering the interrupt and then waking up only when there is a CEC signal.
  • the single-chip microcomputer further reduces the power consumption of the set-top box, and generally can reach the standby power consumption of 0.5W or less.
  • the set top box device may include: a standby power module, which is independent of the set top box main power module, and is used to supply power to the detection module, the acquisition module, and the boot module.
  • the standby power module is separated from the main power module and exists separately. It can greatly reduce the power consumption during standby.
  • the set top box device further includes: a main power module configured to supply power when the set top box is powered on, and supply power to the set top box function module.
  • Main control module the main function module of the set top box.
  • HDMI module for high-definition multimedia interface HDMI consumer electronic control CEC interface communication.
  • FIG. 6 is a schematic diagram of operations performed by the set top box and the television set according to different situations when the set top box is powered on according to an embodiment of the invention. The steps of the operation shown in Figure 6 are as follows:
  • Step S601 The power state of the current set top box is powered on, and the next operation is performed when the set top box is in the power on state;
  • Step S602 detecting a signal source of the television set
  • Step S603 matching the preset
  • Step S60310 the current television source signal is not from the set-top box, at this time the television has a source of the playback signal, but the signal source is not the set-top box, may be displayed in the game machine image or turn off the CD, DVD, then step S60311;
  • Step S60311 The set top box is in standby. At this time, the set top box does not provide a signal source for the television, and performs a standby operation.
  • Step S60320 the television has no signal source, the current set-top box is in the power-on state, and the television is turned on, and the signal source is not played, then step S60321 is performed;
  • Step S60321 The signal source of the television receiver top box switches the signal source interface of the television set to the HDMI port of the set top box, and receives the signal source of the set top box.
  • the state of the set-top box and the television is automatically adjusted, the user operation is simplified, and the user experience comfort is improved.
  • the present invention also provides an embodiment of a set top box.
  • the set-top box may include: a high-definition multimedia interface HDMI, a single-chip microcomputer; a pin-connected high-definition multimedia interface HDMI consumer electronic control CEC communication interface for the set-top box to obtain high definition in a standby state; Multimedia interface HDMI consumer electronic control CEC command.
  • the set top box not only consumes less power during standby, but also detects the HDMI-CEC power-on signal to synchronize with the power state of the television.
  • the pin of the MCU is connected to the high-definition multimedia interface HDMI.
  • the consumer electronic control CEC communication interface can include: in order to reduce the power consumption of the MCU during standby, a single-chip interrupt pin can be connected to the CEC communication.
  • the pin is used to trigger the interrupt, which can make the MCU enter the sleep mode in the standby state, trigger the interrupt and wake up the MCU only when there is a CEC signal, thus reducing the power consumption of the set-top box, generally achieving a standby power consumption of less than 0.5W.
  • the set top box may include: connecting a pin of the single chip and related circuitry to the set top box
  • the main power supply is used to control the switch control of the main power of the set top box.
  • the set top box may further include: a set top box standby power supply, configured to supply power to the single chip and the HDMI interface when the set top box is in standby, and is separated from the main power of the set top box.
  • a set top box standby power supply configured to supply power to the single chip and the HDMI interface when the set top box is in standby, and is separated from the main power of the set top box.
  • the embodiment of the invention implements the "low power consumption true standby" of the set top box by using the single chip microcomputer, and simultaneously uses the pin of the single chip to access the CEC path of the HDMI interface, and realizes the CEC communication through the software of the single chip microcomputer.
  • the MCU works normally, so that the HDMI-CEC boot signal can be detected to be turned on in the low-power standby mode, and the state of the TV is synchronized. Expanded the functionality of the set-top box without increasing costs. And when the set-top box is powered on, the current signal source of the television can be obtained through HDMI-CEC communication.
  • the input source of the television When the input source of the television is not the set-top box and continues for a period of time, it automatically enters the standby mode to realize the automatic standby function. It can also realize the function of automatically switching the signal source when booting. After the set-top box is powered on, it sends the HDMI-CEC command to let the TV automatically switch to the HDMI port of the set-top box.
  • all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve. Thus, the invention is not limited to any specific combination of hardware and software.
  • the devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
  • each device/function module/functional unit in the above embodiment When each device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium.
  • the above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
  • the embodiment of the invention solves the problem that the set-top box cannot be synchronized with the power state of the television when the set-top box is in standby, and realizes that the set-top box can automatically detect the HDMI start-up signal in the low-power standby state, thereby completing the state synchronization between the set-top box and the television, simplifying user operations. , enhance the user experience.

Abstract

A method and device for operating a set-top box, and a set-top box. The method comprises: detect the power state of a set-top box; when the set-top box is in a standby or shutdown state, the set-top box acquires a high definition multimedia interface-consumer electronics control (HDMI-CEC) command; and start the set-top box after the HDMI-CEC command is received as a start command.

Description

机顶盒操作方法、装置及机顶盒Set top box operation method, device and set top box 技术领域Technical field
本发明涉及通信技术领域,尤其涉及机顶盒操作方法、装置及机顶盒。The present invention relates to the field of communications technologies, and in particular, to a set top box operating method, apparatus, and set top box.
背景技术Background technique
机顶盒是一种连接电视机与外部信号源的设备,可对电视网或互联网的压缩数字信号进行接收、解码,并在电视机上播放出高质量的图像及伴音,极大增强和扩展电视机的使用功能。目前,多数机顶盒具有待机功能,可以通过机顶盒遥控器或按键实现。现有的技术在使用存在一些问题:A set-top box is a device that connects a TV set to an external signal source. It can receive and decode compressed digital signals on a TV network or the Internet, and play high-quality images and accompanying sounds on the TV set, greatly enhancing and expanding the TV set. Use features. Currently, most set-top boxes have a standby function that can be implemented by a set-top box remote control or a button. There are some problems with the existing technology in use:
在相关技术中,机顶盒待机时HDMI模块电源处于工作状态,待机功耗比较大。而机顶盒待机时关闭HDMI模块电源,则无法实现与电视机同步开关机,给用户带来不便。目前还没有有效的解决方案,因此还有待于改进。In the related art, when the set top box is in standby, the HDMI module power supply is in a working state, and the standby power consumption is relatively large. When the set-top box is turned off and the HDMI module power is turned off, it is impossible to synchronize the power on and off with the TV, which brings inconvenience to the user. There is currently no effective solution and it remains to be improved.
发明内容Summary of the invention
本发明实施例提供一种机顶盒操作方法、装置及机顶盒,解决了机顶盒待机时,无法实现与电视的电源状态同步的技术问题。The embodiment of the invention provides a method, a device and a set top box for operating a set top box, which solves the technical problem that the set top box cannot be synchronized with the power state of the television when the set top box is in standby.
带HDMI(High-Definition Multimedia Interface,高清晰度多媒体接口)功能的机顶盒,通过内建的CEC(Consumer Electronics Control,消费电子控制)可以由HDMI网络内任何一个设备进行所有设备的开关机管理,从而实现一个按键关闭或打开所有设备。A set-top box with HDMI (High-Definition Multimedia Interface) function, through the built-in CEC (Consumer Electronics Control), can be used to control all devices on and off by any device in the HDMI network. Implement a button to turn off or turn on all devices.
根据本发明的一个方面,提供了一种机顶盒操作方法。According to one aspect of the invention, a method of operating a set top box is provided.
根据本发明实施例的机顶盒操作方法包括:A method for operating a set top box according to an embodiment of the present invention includes:
检测机顶盒的电源状态;Detecting the power state of the set top box;
在所述机顶盒处于待机或关机状态下,机顶盒获取高清晰多媒体接口的消费类电子控制(HDMI-CEC)命令;The set top box acquires a consumer electronic control (HDMI-CEC) command of a high definition multimedia interface when the set top box is in a standby or power off state;
在接收到所述HDMI-CEC命令为开机命令时,对所述机顶盒进行开机。When the HDMI-CEC command is received as a power-on command, the set-top box is powered on.
可选地,所述检测机顶盒的电源状态包括: Optionally, the detecting the power state of the set top box includes:
通过检测单片机引脚高低电平来判断机顶盒的电源状态。Determine the power state of the set-top box by detecting the high and low levels of the microcontroller pins.
可选地,所述机顶盒获取HDMI-CEC命令包括:Optionally, the acquiring, by the set top box, the HDMI-CEC command includes:
所述机顶盒通过单片机获取所述HDMI-CEC命令。The set top box acquires the HDMI-CEC command through a single chip microcomputer.
可选地,对所述机顶盒进行开机包括:Optionally, booting the set top box includes:
通过单片机的引脚和相关电路对所述的机顶盒主电源进行打开控制。The set top box main power is turned on and controlled by the pins of the single chip microcomputer and related circuits.
本发明实施例还提供一种机顶盒操作装置,包括:The embodiment of the invention further provides a set top box operating device, comprising:
检测模块,设置为检测机顶盒的电源状态;a detection module configured to detect a power state of the set top box;
获取模块,设置为在所述机顶盒处于待机或关机状态下,机顶盒获取高清晰多媒体接口的消费类电子控制(HDMI-CEC)命令;以及The acquisition module is configured to obtain a consumer electronic control (HDMI-CEC) command of the high definition multimedia interface when the set top box is in a standby or power off state;
开机模块,设置为在接收到所述HDMI-CEC命令为开机命令时,对所述机顶盒进行开机。The boot module is configured to boot the set top box when the HDMI-CEC command is received as a power on command.
可选地,所述检测模块包括:Optionally, the detecting module includes:
判断单元,设置为通过检测单片机引脚高低电平来判断机顶盒的电源状态。The judging unit is configured to judge the power state of the set top box by detecting the high and low levels of the single chip pin.
可选地,所述获取模块包括:Optionally, the obtaining module includes:
获取单元,设置为通过单片机获取所述HDMI的CEC命令。The obtaining unit is configured to acquire the CEC command of the HDMI by using a single chip microcomputer.
本发明实施例还提供一种机顶盒操作方法,包括:The embodiment of the invention further provides a method for operating a set top box, including:
检测机顶盒的电源状态;Detecting the power state of the set top box;
在所述机顶盒处于开机状态下,所述机顶盒通过高清晰多媒体接口-消费类电子控制(HDMI-CEC)关联对应的电视机的信号源;When the set top box is powered on, the set top box is associated with a signal source of a corresponding television set through a high definition multimedia interface-consuming electronic control (HDMI-CEC);
根据所述关联情况,对所述机顶盒和所述电视机进行预设操作。According to the association situation, a preset operation is performed on the set top box and the television set.
可选地,根据所述关联情况,对所述机顶盒和所述电视机进行预设操作包括:Optionally, performing preset operations on the set top box and the television according to the association situation includes:
在预设时间内,所述电视机的信号源不是来自所述机顶盒时,对所述机顶盒进行待机操作;和/或,通过HDMI-CEC向所述电视机发送切换指令,将所述电视机的信号源接口切换到所述机顶盒的HDMI,接收所述机顶盒的 信号源。Waiting for the set top box to perform a standby operation when the signal source of the television set is not from the set top box; and/or sending a switching instruction to the television set through the HDMI-CEC to set the television set Switching the source interface to the HDMI of the set top box, receiving the set top box signal source.
本发明实施例还提供一种机顶盒,包括:The embodiment of the invention further provides a set top box, including:
高清晰多媒体接口HDMI和单片机;High-definition multimedia interface HDMI and microcontroller;
其中,所述单片机的引脚接入所述HDMI的消费类电子控制(HDMI-CEC)通信接口,所述单片机设置为:所述机顶盒在待机状态下,获取HDMI-CEC命令。The pin of the single chip is connected to the HDMI-CEC communication interface of the HDMI, and the single chip is configured to: obtain the HDMI-CEC command in the standby state of the set top box.
可选地,所述单片机的引脚接入HDMI-CEC通信接口包括:Optionally, the pin of the single chip is connected to the HDMI-CEC communication interface, including:
将所述单片机的中断脚接入HDMI-CEC通信接口。The interrupt pin of the single chip microcomputer is connected to the HDMI-CEC communication interface.
可选地,上述机顶盒还包括相关电路和主电源,其中:Optionally, the set top box further includes an associated circuit and a main power supply, wherein:
所述单片机的引脚和相关电路接入所述机顶盒的主电源。The pins of the microcontroller and associated circuitry are connected to the main power of the set top box.
本发明实施例还提供一种计算机可读存储介质,存储有程序指令,当该程序指令被执行时使得机顶盒可执行权利要求1-4,8-9任一项所述的方法。The embodiment of the present invention further provides a computer readable storage medium storing program instructions, which, when executed, causes the set top box to perform the method of any one of claims 1-4, 8-9.
本发明实施例解决了机顶盒待机时无法实现与电视的电源状态同步的问题,实现了在低功耗待机状态下机顶盒能够自动检测HDMI开机信号,从而完成了机顶盒与电视机状态同步,简化用户操作,增强了用户体验。。The embodiment of the invention solves the problem that the set-top box cannot be synchronized with the power state of the television when the set-top box is in standby, and realizes that the set-top box can automatically detect the HDMI start-up signal in the low-power standby state, thereby completing the state synchronization between the set-top box and the television, simplifying user operations. , enhance the user experience. .
附图概述BRIEF abstract
附图用来提供对本发明的进一步理解,并且构成说明书的一部分,与本发明的实施例一起用于解释本发明,并不构成对本发明的限制。The drawings are intended to provide a further understanding of the invention, and are intended to be a
图1是根据本发明实施例的机顶盒操作方法的示意图;1 is a schematic diagram of a method of operating a set top box according to an embodiment of the present invention;
图2是根据本发明实施例的机顶盒操作方法的流程图;2 is a flow chart of a method of operating a set top box in accordance with an embodiment of the present invention;
图3是根据本发明实施例的机顶盒装置的结构图;3 is a structural diagram of a set top box device according to an embodiment of the present invention;
图4是根据本发明实施例的CEC开始位元时序的说明图;4 is an explanatory diagram of timing of a CEC start bit according to an embodiment of the present invention;
图5是根据本发明实施例的CEC逻辑状态的时序图;5 is a timing diagram of a CEC logic state in accordance with an embodiment of the present invention;
图6是根据本发明实施例的机顶盒开机时,机顶盒和电视机状态切换的示意图。 FIG. 6 is a schematic diagram of state transition of a set top box and a television set when the set top box is powered on according to an embodiment of the invention.
本发明的较佳实施方式Preferred embodiment of the invention
下文将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the drawings in the embodiments of the present invention. The described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments.
图1是根据本发明实施例的机顶盒操作方法的示意图。如图1所示,该方法可以包括如下步骤:1 is a schematic diagram of a method of operating a set top box in accordance with an embodiment of the present invention. As shown in FIG. 1, the method may include the following steps:
步骤S101:检测机顶盒的电源状态;Step S101: detecting a power state of the set top box;
步骤S102:检测HDMI-CEC开机命令;Step S102: detecting an HDMI-CEC power-on command;
其中,可以是在机顶盒处于待机或关机状态下,机顶盒获取HDMI-CEC命令;Wherein, the set top box may obtain an HDMI-CEC command when the set top box is in a standby or power off state;
步骤S103:对机顶盒进行开机操作;Step S103: performing a booting operation on the set top box;
其中,可以在接收到HDMI-CEC命令为开机命令时,对机顶盒进行开机。Among them, the set-top box can be powered on when receiving the HDMI-CEC command as the power-on command.
在相关的技术中,机顶盒在待机时并没有关闭HDMI模块电源,待机功耗较大。而在关闭HDMI模块电源时,则无法接收到HDMI-CEC信号,无法由此实现与电视电源状态同步。本发明实施例通过检测机顶盒的状态,在机顶盒处于待机或关机状态下,机顶盒获取高清晰多媒体接口HDMI的消费类电子控制CEC命令,在接收到HDMI-CEC命令为开机命令时,对机顶盒进行开机,解决了机顶盒待机时无法实现与电视的电源状态同步的问题,实现了在低功耗待机状态下机顶盒能够自动检测HDMI开机信号,从而完成了机顶盒与电视机状态同步,简化用户操作,增强了用户体验。In the related technology, the set top box does not turn off the power of the HDMI module during standby, and the standby power consumption is large. When the HDMI module is powered off, the HDMI-CEC signal cannot be received, and synchronization with the TV power status cannot be achieved. In the embodiment of the present invention, by detecting the state of the set-top box, the set-top box acquires the consumer electronic control CEC command of the high-definition multimedia interface HDMI when the set-top box is in the standby or power-off state, and starts the set-top box when receiving the HDMI-CEC command as the power-on command. It solves the problem that the set-top box cannot be synchronized with the power state of the TV when it is in standby mode, and realizes that the set-top box can automatically detect the HDMI boot signal in the low-power standby state, thereby completing the synchronization of the set-top box and the television state, simplifying user operations, and enhancing user experience.
在可选实施过程中,机顶盒可以通过集成或外接的单片机芯片检测其自身的电源状态。利用单片机的引脚接入机顶盒主电源,通过判断引脚高低电平得知机顶盒的电源状态,实现了检测机顶盒电源状态的功能。In an optional implementation process, the set-top box can detect its own power state through an integrated or external microcontroller chip. The main power of the set-top box is connected by the pin of the single-chip microcomputer, and the power state of the set-top box is known by judging the high-low level of the pin, thereby realizing the function of detecting the power state of the set-top box.
在可选实施过程中,在接收到HDMI-CEC命令为开机命令时,利用单片机接入机顶盒的主电源,单片机的引脚作为控制开关,可以对机顶盒进行开机操作。In the optional implementation process, when receiving the HDMI-CEC command as the power-on command, the single-chip computer is connected to the main power of the set-top box, and the pin of the single-chip microcomputer is used as a control switch, and the set-top box can be turned on.
在可选实施过程中,在机顶盒处于待机或关机状态下,机顶盒可以通过 单片机获取高清晰多媒体接口HDMI的消费类电子控制CEC命令。In the optional implementation process, the set top box can pass when the set top box is in standby or off state. The MCU obtains the consumer electronic control CEC command of the high-definition multimedia interface HDMI.
在可选的实施过程中,待机电源与机顶盒主电源分离而独立存在,在机顶盒待机时,关闭主电源。待机电源工作,给单片机、HDMI模块等供电。In the optional implementation process, the standby power supply is separated from the main power of the set top box and is independent. When the set top box is in standby, the main power is turned off. The standby power supply works to supply power to the MCU and HDMI module.
在可选实施例中,机顶盒通过单片机接入HDMI-CEC通信接口,并通过软件接收CEC开机命令。待机电源给单片机供电,与主电源独立存在。在待机模式关闭主电源,可以保证机顶盒的整体功耗。但又不影响单片机工作,在低功耗待机状态下机顶盒能够自动检测HDMI开机信号,有效地解决了机顶盒待机时无法实现与电视的电源状态同步的问题,也能接收到来自HDMI-CEC的开机命令,从而实现了机顶盒与电视机状态同步。In an alternative embodiment, the set top box accesses the HDMI-CEC communication interface through the single chip microcomputer and receives the CEC power on command through the software. The standby power supply supplies power to the microcontroller and is independent of the main power supply. Turning off the main power in standby mode ensures the overall power consumption of the set-top box. However, it does not affect the operation of the MCU. In the low-power standby state, the set-top box can automatically detect the HDMI boot signal, effectively solving the problem that the set-top box cannot be synchronized with the power state of the TV when it is in standby mode, and can also receive the boot from the HDMI-CEC. The command thus synchronizes the state of the set-top box with the television.
图2是根据本发明实施例的机顶盒操作方法的具体流程图。该机顶盒操作方法具体流程如下所示:2 is a detailed flow chart of a method of operating a set top box in accordance with an embodiment of the present invention. The specific process of the set-top box operation method is as follows:
步骤S201:检测机顶盒的电源状态。Step S201: Detecting the power state of the set top box.
检测机顶盖的电源状态,检测机顶盒是否处于待机或关机状态。具体的,利用单片机接入机顶盒主电源,通过检测单片机引脚高低电平,来判断机顶盒的电源状态。Detect the power status of the top cover and check if the set-top box is in standby or off state. Specifically, the single-chip microcomputer is connected to the main power of the set-top box, and the power state of the set-top box is judged by detecting the high-low level of the single-chip pin.
可选地,在机顶盒断电后一般要保存上一次的状态,可由单片机内部或外接EEPROM(Electrically Erasable Programmable Read-Only Memory,电可擦可编程只读存储器,一种掉电后数据不丢失的存储芯片)来保存状态,再重新上电后读取并恢复开机或待机状态。Optionally, after the set-top box is powered off, the last state is generally saved, and the internal or external EEPROM (Electrically Erasable Programmable Read-Only Memory) can be used, and the data is not lost after power-off. The memory chip) is used to save the state, and then read and resume the power-on or standby state after power-on.
步骤S202:判断机顶盒是否处于待机或关机状态。Step S202: determining whether the set top box is in a standby or power off state.
(1)如果机顶盒处于开机状态,则返回步骤S201继续检测(1) If the set top box is in the power on state, return to step S201 to continue detecting
直到进入待机状态;Until entering the standby state;
(2)如果机顶盒处于待机或关机状态下,则执行步骤S203。(2) If the set top box is in the standby or power off state, step S203 is performed.
步骤S203:获取HDMI-CEC开机命令。Step S203: Acquire an HDMI-CEC power-on command.
机顶盒检测来自高清晰多媒体接口-消费类电子控制HDMI-CEC的通讯信号。具体由单片机接入HDMI-CEC通讯接口,通过软件实现检测并获取HDMI-CEC通讯信号。利用单片机的引脚通过软件来实现CEC通信,方法既简单又便宜,还达到了本发明方法的目的。The set-top box detects communication signals from the high-definition multimedia interface - consumer electronics control HDMI-CEC. The MCU is connected to the HDMI-CEC communication interface to detect and obtain the HDMI-CEC communication signal through software. The CEC communication is realized by software using the pins of the single chip, and the method is simple and cheap, and the purpose of the method of the present invention is also achieved.
步骤S204:判断是否为开机命令。 Step S204: determining whether it is a power-on command.
机顶盒检测到HDMI-CEC通讯信号时,需要判断是否为电视机开机的命令。单片机根据接收的CEC讯息判断是否为CEC开机命令,CEC开机命令不止一条具体参考HDMI规范手册。When the set-top box detects the HDMI-CEC communication signal, it needs to judge whether it is the command to turn on the TV. The MCU judges whether it is a CEC power-on command according to the received CEC message, and the CEC power-on command refers to more than one specific reference to the HDMI specification manual.
(1)如果不是CEC开机命令,则返回203继续检测HDMI-CEC开机命令。(1) If it is not the CEC boot command, return 203 to continue detecting the HDMI-CEC boot command.
(2)如果是CEC开机命令,执行步骤S205。(2) If it is a CEC power-on command, step S205 is performed.
CEC信息包括一个开始位和数据位。数据位元可以是资讯性的资料,如逻辑地址、CEC命令或控制位元,如资讯结束[EOM]或应答[ACK]。The CEC information includes a start bit and a data bit. Data bits can be informational information such as logical addresses, CEC commands, or control bits, such as end of message [EOM] or response [ACK].
一个由高到低的转变紧接着一个由低到高的转变,并遵循图4中的时序,就是一个开始位。A high-to-low transition follows a low-to-high transition and follows the timing in Figure 4, which is a starting bit.
图5是根据本发明实施例,CEC逻辑状态的时序图。如图5所示,在开始位之后数据位所要遵循的分别为逻辑‘0’和‘1’是时序要求。Figure 5 is a timing diagram of the CEC logic state in accordance with an embodiment of the present invention. As shown in Figure 5, the logical bits '0' and '1' to be followed by the data bits after the start bit are timing requirements.
表1是根据本发明实施例的CEC帧结构。Table 1 is a CEC frame structure in accordance with an embodiment of the present invention.
如表1所示,我们可以看出一个具体的CEC命令由一个起始位和n个数据包组成,每个数据包的结构固定包括10个位元,由8个数据位和2个控制位组成,头数据包包括逻辑地址和目标地址,若紧接着EOM是逻辑‘0’,表示后面有更多数据;若是‘1’则表示一个帧或消息结束。As shown in Table 1, we can see that a specific CEC command consists of a start bit and n data packets. The structure of each data packet is fixed to include 10 bits, and 8 data bits and 2 control bits. Composition, the header packet includes a logical address and a destination address. If the EOM is logically '0', it means that there is more data behind; if it is '1', it means that a frame or message ends.
表1Table 1
起始位Start bit 表示一个帧的开始Indicates the beginning of a frame
头数据包Header packet 源和目标地址Source and destination address
数据包1Packet 1 操作码(可选)Opcode (optional)
数据包2… Packet 2... 操作数(可选,由操作码决定)Operand (optional, determined by opcode)
表2是根据本发明实施例的CEC数据包。Table 2 is a CEC data packet in accordance with an embodiment of the present invention.
如表2所示,EOM:End of message,‘1’表示一个帧的结束。ACK:Acknowledge,应答位:‘0’表示应答。 As shown in Table 2, EOM: End of message, '1' indicates the end of a frame. ACK: Acknowledge, acknowledge bit: '0' indicates the response.
表2Table 2
Figure PCTCN2015071502-appb-000001
Figure PCTCN2015071502-appb-000001
单片机通过检测引脚上的时序判断是开始位,数据位‘0’还是数据位‘1’,再根据CEC的帧结构识别一个CEC讯息并按照CEC的协议做相应的处理。The MCU determines whether it is the start bit by detecting the timing on the pin, the data bit '0' or the data bit '1', and then identifies a CEC message according to the frame structure of the CEC and performs corresponding processing according to the CEC protocol.
步骤S207:机顶盒开机。Step S207: The set top box is powered on.
机顶盒检测到来自HDMI-CEC的开机命令,即执行机顶盒开机操作。单片机通过开关机模块打开主电源开机。具体是单片机控制机顶盒主电源的开关,由单片机引脚和相关电路实现,使用单片机的引脚作为控制开关,打开机顶盒主电源,实现机顶盒开机操作。The set-top box detects the power-on command from HDMI-CEC, that is, performs the set-top box boot operation. The MCU turns on the main power and turns on the power through the switch module. Specifically, the single-chip microcomputer controls the main power supply of the set-top box, which is realized by the single-chip pin and related circuit, and uses the pin of the single-chip microcomputer as the control switch to open the main power of the set-top box to realize the start-up operation of the set-top box.
本发明实施例的方法中包括开关机操作和逻辑判断等由单片机的软件实现。The method of the embodiment of the invention includes the operation of the switch machine and the logic judgment, etc., which are implemented by software of the single chip microcomputer.
图3是根据本发明实施例的机顶盒装置的结构图。如图2所示,该机顶盒装置包括如下模块:3 is a structural diagram of a set top box device in accordance with an embodiment of the present invention. As shown in FIG. 2, the set top box device includes the following modules:
检测模块,设置为检测机顶盒的电源状态;a detection module configured to detect a power state of the set top box;
获取模块,设置为在机顶盒处于待机或关机状态下,机顶盒获取高清晰多媒体接口HDMI的消费类电子控制CEC命令;The acquisition module is set to receive the consumer electronic control CEC command of the high definition multimedia interface HDMI when the set top box is in standby or off state;
开机模块,设置为在接收到HDMI-CEC命令为开机命令时,对机顶盒进行开机。The boot module is set to boot the set top box when the HDMI-CEC command is received as a power on command.
在相关技术中,机顶盒装置在待机时没有关闭HDMI模块电源,待机功耗较大。而机顶盒装置待机时关闭HDMI模块电源,则无法实现与电视机同步开关机,给用户带来不便。本发明实施例提供的机顶盒装置有效地解决了这样的问题,降低了功耗,也实现了待机状态下能够与电视机同步开机,简化了用户操作,增强了用户体验。 In the related art, the set top box device does not turn off the power of the HDMI module during standby, and the standby power consumption is large. When the set-top box device turns off the power of the HDMI module during standby, it is impossible to synchronize the power on and off with the television, which brings inconvenience to the user. The set-top box device provided by the embodiment of the invention effectively solves such a problem, reduces power consumption, and can realize synchronous startup with the television in a standby state, which simplifies user operations and enhances user experience.
在可选的实施过程中,检测模块可以包括判断单元。判断单元是由单片机接入机顶盒的主电源实现的,单片机可以通过检测引脚高低电平来判断机顶盒的电源状态。成本低廉的单片机即可实现检测机顶盒电源状态的功能,方法既简单又便宜,容易加工。In an optional implementation, the detection module can include a determination unit. The judgment unit is realized by the main power supply of the single-chip computer to the set-top box, and the single-chip microcomputer can judge the power state of the set-top box by detecting the high and low levels of the pin. The low-cost single-chip microcomputer can realize the function of detecting the power state of the set-top box, and the method is simple and cheap, and is easy to process.
在可选的实施过程中,开机模块可以包括开机单元。开机单元用于对机顶盒进行开机。是由单片机接入机顶盒的主电源,由单片机引脚和相关电路实现,使用单片机的引脚作为控制开关。成本低廉的单片机即可实现开启或关闭机顶盒主电源状态的功能,方法既简单又便宜,容易加工。In an optional implementation process, the boot module may include a boot unit. The boot unit is used to power on the set top box. It is the main power supply of the set-top box connected by the single-chip microcomputer, which is realized by the single-chip pin and related circuit, and uses the pin of the single-chip microcomputer as the control switch. The low-cost single-chip microcomputer can realize the function of turning on or off the main power state of the set-top box. The method is simple, cheap and easy to process.
在可选的实施过程中,获取模块可以包括获取单元。获取单元用于机顶盒监测并获取高清晰多媒体接口HDMI的消费类电子控制CEC命令。获取单元是利用单片机引脚接高清晰多媒体接口HDMI消费类电子控制CEC通信接口,通过软件模拟CEC通信并接收CEC开机命令。比较节约成本,待机功耗低。特别是为了降低待机时单片机的功耗,可以把单片机中断脚接入CEC通信的引脚用于触发中断,这样可以使单片机在待机状态下进入休眠模式,只在有CEC信号时触发中断再唤醒单片机,从而进一步降低机顶盒的功耗,一般可以达到待机功耗0.5W以下。In an optional implementation process, the acquisition module may include an acquisition unit. The acquisition unit is used for set-top box monitoring and acquisition of high-definition multimedia interface HDMI consumer electronic control CEC commands. The acquisition unit is a CMOS consumer electronic control CEC communication interface that is connected to a high-definition multimedia interface by a single-chip microcomputer, and simulates CEC communication through software and receives a CEC power-on command. More cost-effective, low standby power consumption. In particular, in order to reduce the power consumption of the MCU during standby, the MCU interrupt pin can be connected to the CEC communication pin for triggering the interrupt. This allows the MCU to enter the sleep mode in the standby state, triggering the interrupt and then waking up only when there is a CEC signal. The single-chip microcomputer further reduces the power consumption of the set-top box, and generally can reach the standby power consumption of 0.5W or less.
可选的实施过程中,机顶盒装置可以包括:待机电源模块,它独立于机顶盒主电源模块,用于给检测模块、获取模块、开机模块供电。待机电源模块与主电源模块分离,单独存在。可极大的降低待机时的功耗。In an optional implementation process, the set top box device may include: a standby power module, which is independent of the set top box main power module, and is used to supply power to the detection module, the acquisition module, and the boot module. The standby power module is separated from the main power module and exists separately. It can greatly reduce the power consumption during standby.
在可选的实施过程中,机顶盒装置还有包括:主电源模块,设置为在机顶盒开机时供电,给机顶盒功能模块供电。主控模块,机顶盒的主要功能模块。HDMI模块,用于高清晰多媒体接口HDMI消费类电子控制CEC接口通信。In an optional implementation process, the set top box device further includes: a main power module configured to supply power when the set top box is powered on, and supply power to the set top box function module. Main control module, the main function module of the set top box. HDMI module for high-definition multimedia interface HDMI consumer electronic control CEC interface communication.
图6是根据本发明实施例,机顶盒开机时,机顶盒和电视机根据不同的情况所做的操作示意图。如图6所示的操作示意图步骤如下:FIG. 6 is a schematic diagram of operations performed by the set top box and the television set according to different situations when the set top box is powered on according to an embodiment of the invention. The steps of the operation shown in Figure 6 are as follows:
步骤S601:当前机顶盒的电源状态为开机,当机顶盒处于开机状态下执行下一步操作;Step S601: The power state of the current set top box is powered on, and the next operation is performed when the set top box is in the power on state;
步骤S602:检测电视机的信号来源;Step S602: detecting a signal source of the television set;
步骤S603:匹配预先设置; Step S603: matching the preset;
判断是否由机顶盒提供电视机当前的电视机节目的信号源。根据机顶盒的预先设置,检测到与机顶盒对应的电视机的信号来源时,匹配预先设置。执行下一步操作;Determine whether the set-top box provides the source of the TV program currently on the TV set. According to the preset setting of the set top box, when the signal source of the television corresponding to the set top box is detected, the matching is preset. Perform the next step;
步骤S60310:当前电视机的信号源非来自于机顶盒,此时电视机有播放信号来源,但信号来源不是机顶盒,可能在用于游戏机的图像显示或者关开CD、DVD,则执行步骤S60311;Step S60310: the current television source signal is not from the set-top box, at this time the television has a source of the playback signal, but the signal source is not the set-top box, may be displayed in the game machine image or turn off the CD, DVD, then step S60311;
步骤S60311:机顶盒待机,此时机顶盒没有为电视机提供信号来源,实施待机操作。Step S60311: The set top box is in standby. At this time, the set top box does not provide a signal source for the television, and performs a standby operation.
步骤S60320:电视机没有信号来源,当前机顶盒处于开机状态,而电视机开机也没有播放的信号来源,则执行步骤S60321;Step S60320: the television has no signal source, the current set-top box is in the power-on state, and the television is turned on, and the signal source is not played, then step S60321 is performed;
步骤S60321:电视机接收机顶盒的信号源,将所述电视机的信号源接口切换到所述机顶盒的HDMI端口,接收所述机顶盒的信号源。Step S60321: The signal source of the television receiver top box switches the signal source interface of the television set to the HDMI port of the set top box, and receives the signal source of the set top box.
通过该发明实施例,机顶盒处于开机状态时,自动调节机顶盒与电视的状态,简化了用户操作,提高了用户体验舒适度。Through the embodiment of the invention, when the set-top box is in the power-on state, the state of the set-top box and the television is automatically adjusted, the user operation is simplified, and the user experience comfort is improved.
本发明还提供了一种机顶盒的实施例。根据发明实施例的机顶盒可以包括:高清晰多媒体接口HDMI,单片机;单片机的引脚接入高清晰多媒体接口HDMI的消费类电子控制CEC通信接口,用于所述机顶盒在待机状态下,获取高清晰多媒体接口HDMI的消费类电子控制CEC命令。The present invention also provides an embodiment of a set top box. The set-top box according to the embodiment of the invention may include: a high-definition multimedia interface HDMI, a single-chip microcomputer; a pin-connected high-definition multimedia interface HDMI consumer electronic control CEC communication interface for the set-top box to obtain high definition in a standby state; Multimedia interface HDMI consumer electronic control CEC command.
通过该实施例,机顶盒不仅待机时功耗更低,而且还能检测到HDMI-CEC开机信号,实现与电视机的电源状态同步。With this embodiment, the set top box not only consumes less power during standby, but also detects the HDMI-CEC power-on signal to synchronize with the power state of the television.
可选的实施过程中,单片机的引脚接入高清晰多媒体接口HDMI的消费类电子控制CEC通信接口可以包括:是为了降低待机时单片机的功耗,可以把一个单片机中断脚接入CEC通信的引脚用于触发中断,这样可以使单片机在待机状态下进入休眠模式,只在有CEC信号时触发中断再唤醒单片机,从而降低机顶盒的功耗,一般可以达到待机功耗0.5W以下。In the optional implementation process, the pin of the MCU is connected to the high-definition multimedia interface HDMI. The consumer electronic control CEC communication interface can include: in order to reduce the power consumption of the MCU during standby, a single-chip interrupt pin can be connected to the CEC communication. The pin is used to trigger the interrupt, which can make the MCU enter the sleep mode in the standby state, trigger the interrupt and wake up the MCU only when there is a CEC signal, thus reducing the power consumption of the set-top box, generally achieving a standby power consumption of less than 0.5W.
可选地,机顶盒可以包括:把单片机的引脚和相关电路接入所述机顶盒 的主电源,用于控制机顶盒主电源的开关控制。Optionally, the set top box may include: connecting a pin of the single chip and related circuitry to the set top box The main power supply is used to control the switch control of the main power of the set top box.
可选地,机顶盒还可以包括:机顶盒待机电源,用于机顶盒待机时给单片机、HDMI接口供电,与机顶盒主电源分离。Optionally, the set top box may further include: a set top box standby power supply, configured to supply power to the single chip and the HDMI interface when the set top box is in standby, and is separated from the main power of the set top box.
待机时关闭主电源,开启待机电源,可以有效地降低待机功耗,但不影响单片机等工作。Turn off the main power during standby and turn on the standby power, which can effectively reduce the standby power consumption, but does not affect the work of the microcontroller.
本发明实施例采用单片机实现机顶盒的“低功耗真待机”,同时利用单片机的引脚接入HDMI接口的CEC通路,通过单片机的软件实现CEC通信。在待机模式下单片机正常工作,从而在低功耗待机模式下可以检测到HDMI-CEC的开机信号开机,实现了与电视机的状态同步。在不增加成本下,扩展了机顶盒的功能。并且在机顶盒开机时,可以通过HDMI-CEC通信可以获取电视机的当前信号源,当电视机的输入源不是机顶盒并持续一段时间后自动进入待机模式,实现自动待机功能。还可以实现开机自动切换信号源的功能,在机顶盒开机后发送HDMI-CEC命令让电视机自动切换到机顶盒的HDMI端口。The embodiment of the invention implements the "low power consumption true standby" of the set top box by using the single chip microcomputer, and simultaneously uses the pin of the single chip to access the CEC path of the HDMI interface, and realizes the CEC communication through the software of the single chip microcomputer. In the standby mode, the MCU works normally, so that the HDMI-CEC boot signal can be detected to be turned on in the low-power standby mode, and the state of the TV is synchronized. Expanded the functionality of the set-top box without increasing costs. And when the set-top box is powered on, the current signal source of the television can be obtained through HDMI-CEC communication. When the input source of the television is not the set-top box and continues for a period of time, it automatically enters the standby mode to realize the automatic standby function. It can also realize the function of automatically switching the signal source when booting. After the set-top box is powered on, it sends the HDMI-CEC command to let the TV automatically switch to the HDMI port of the set-top box.
本领域普通技术人员可以理解上述实施例的全部或部分步骤可以使用计算机程序流程来实现,所述计算机程序可以存储于一计算机可读存储介质中,所述计算机程序在相应的硬件平台上(如系统、设备、装置、器件等)执行,在执行时,包括方法实施例的步骤之一或其组合。One of ordinary skill in the art will appreciate that all or a portion of the steps of the above-described embodiments can be implemented using a computer program flow, which can be stored in a computer readable storage medium, such as on a corresponding hardware platform (eg, The system, device, device, device, etc. are executed, and when executed, include one or a combination of the steps of the method embodiments.
可选地,上述实施例的全部或部分步骤也可以使用集成电路来实现,这些步骤可以被分别制作成一个个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。Alternatively, all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve. Thus, the invention is not limited to any specific combination of hardware and software.
上述实施例中的各装置/功能模块/功能单元可以采用通用的计算装置来实现,它们可以集中在单个的计算装置上,也可以分布在多个计算装置所组成的网络上。The devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
上述实施例中的各装置/功能模块/功能单元以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。上述提到的计算机可读取存储介质可以是只读存储器,磁盘或光盘等。 When each device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium. The above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
工业实用性Industrial applicability
本发明实施例解决了机顶盒待机时无法实现与电视的电源状态同步的问题,实现了在低功耗待机状态下机顶盒能够自动检测HDMI开机信号,从而完成了机顶盒与电视机状态同步,简化用户操作,增强了用户体验。 The embodiment of the invention solves the problem that the set-top box cannot be synchronized with the power state of the television when the set-top box is in standby, and realizes that the set-top box can automatically detect the HDMI start-up signal in the low-power standby state, thereby completing the state synchronization between the set-top box and the television, simplifying user operations. , enhance the user experience.

Claims (13)

  1. 一种机顶盒操作方法,包括:A method for operating a set top box, comprising:
    检测机顶盒的电源状态;Detecting the power state of the set top box;
    在所述机顶盒处于待机或关机状态下,机顶盒获取高清晰多媒体接口的消费类电子控制(HDMI-CEC)命令;The set top box acquires a consumer electronic control (HDMI-CEC) command of a high definition multimedia interface when the set top box is in a standby or power off state;
    在接收到所述HDMI-CEC命令为开机命令时,对所述机顶盒进行开机。When the HDMI-CEC command is received as a power-on command, the set-top box is powered on.
  2. 根据权利要求1所述的方法,其中,所述检测机顶盒的电源状态包括:The method of claim 1 wherein said detecting a power state of the set top box comprises:
    通过检测单片机引脚高低电平来判断机顶盒的电源状态。Determine the power state of the set-top box by detecting the high and low levels of the microcontroller pins.
  3. 根据权利要求1所述的方法,其中,所述机顶盒获取HDMI-CEC命令包括:The method of claim 1, wherein the acquiring the HDMI-CEC command by the set top box comprises:
    所述机顶盒通过单片机获取所述HDMI-CEC命令。The set top box acquires the HDMI-CEC command through a single chip microcomputer.
  4. 根据权利要求1至3任一项所述的方法,其中,对所述机顶盒进行开机包括:The method according to any one of claims 1 to 3, wherein booting the set top box comprises:
    通过单片机的引脚和相关电路对所述的机顶盒主电源进行打开控制。The set top box main power is turned on and controlled by the pins of the single chip microcomputer and related circuits.
  5. 一种机顶盒操作装置,包括:A set top box operating device comprising:
    检测模块,设置为检测机顶盒的电源状态;a detection module configured to detect a power state of the set top box;
    获取模块,设置为在所述机顶盒处于待机或关机状态下,机顶盒获取高清晰多媒体接口的消费类电子控制(HDMI-CEC)命令;以及The acquisition module is configured to obtain a consumer electronic control (HDMI-CEC) command of the high definition multimedia interface when the set top box is in a standby or power off state;
    开机模块,设置为在接收到所述HDMI-CEC命令为开机命令时,对所述机顶盒进行开机。The boot module is configured to boot the set top box when the HDMI-CEC command is received as a power on command.
  6. 根据权利要求5所述的装置,其中,所述检测模块包括:The apparatus of claim 5 wherein said detecting module comprises:
    判断单元,设置为通过检测单片机引脚高低电平来判断机顶盒的电源状态。The judging unit is configured to judge the power state of the set top box by detecting the high and low levels of the single chip pin.
  7. 根据权利要求5所述的装置,其中,所述获取模块包括:The apparatus of claim 5, wherein the obtaining module comprises:
    获取单元,设置为通过单片机获取所述HDMI的CEC命令。The obtaining unit is configured to acquire the CEC command of the HDMI by using a single chip microcomputer.
  8. 一种机顶盒操作方法,包括: A method for operating a set top box, comprising:
    检测机顶盒的电源状态;Detecting the power state of the set top box;
    在所述机顶盒处于开机状态下,所述机顶盒通过高清晰多媒体接口-消费类电子控制(HDMI-CEC)关联对应的电视机的信号源;When the set top box is powered on, the set top box is associated with a signal source of a corresponding television set through a high definition multimedia interface-consuming electronic control (HDMI-CEC);
    根据所述关联情况,对所述机顶盒和所述电视机进行预设操作。According to the association situation, a preset operation is performed on the set top box and the television set.
  9. 根据权利要求8所述的方法,其中,根据所述关联情况,对所述机顶盒和所述电视机进行预设操作包括:The method according to claim 8, wherein the preset operations on the set top box and the television set according to the association situation include:
    在预设时间内,所述电视机的信号源不是来自所述机顶盒时,对所述机顶盒进行待机操作;和/或,通过HDMI-CEC向所述电视机发送切换指令,将所述电视机的信号源接口切换到所述机顶盒的HDMI,接收所述机顶盒的信号源。Waiting for the set top box to perform a standby operation when the signal source of the television set is not from the set top box; and/or sending a switching instruction to the television set through the HDMI-CEC, the television set is set The source interface is switched to the HDMI of the set top box to receive the signal source of the set top box.
  10. 一种机顶盒,包括:A set top box comprising:
    高清晰多媒体接口HDMI和单片机;High-definition multimedia interface HDMI and microcontroller;
    其中,所述单片机的引脚接入所述HDMI的消费类电子控制(HDMI-CEC)通信接口,所述单片机设置为:所述机顶盒在待机状态下,获取HDMI-CEC命令。The pin of the single chip is connected to the HDMI-CEC communication interface of the HDMI, and the single chip is configured to: obtain the HDMI-CEC command in the standby state of the set top box.
  11. 根据权利要求10所述的机顶盒,其中,所述单片机的引脚接入HDMI-CEC通信接口包括:The set top box of claim 10, wherein the pin of the microcontroller is connected to the HDMI-CEC communication interface comprises:
    将所述单片机的中断脚接入HDMI-CEC通信接口。The interrupt pin of the single chip microcomputer is connected to the HDMI-CEC communication interface.
  12. 根据权利要求11所述的机顶盒,还包括相关电路和主电源,其中:The set top box of claim 11 further comprising associated circuitry and a main power source, wherein:
    所述单片机的引脚和相关电路接入所述机顶盒的主电源。The pins of the microcontroller and associated circuitry are connected to the main power of the set top box.
  13. 一种计算机可读存储介质,存储有程序指令,当该程序指令被执行时使得机顶盒可执行权利要求1-4,8-9任一项所述的方法。 A computer readable storage medium storing program instructions that, when executed, cause a set top box to perform the method of any one of claims 1-4, 8-9.
PCT/CN2015/071502 2014-08-04 2015-01-23 Method and device for operating set-top box, and set-top box WO2016019710A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410380195.7A CN105323618B (en) 2014-08-04 2014-08-04 Set top box operations method, apparatus and set-top box
CN201410380195.7 2014-08-04

Publications (1)

Publication Number Publication Date
WO2016019710A1 true WO2016019710A1 (en) 2016-02-11

Family

ID=55250079

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/071502 WO2016019710A1 (en) 2014-08-04 2015-01-23 Method and device for operating set-top box, and set-top box

Country Status (2)

Country Link
CN (1) CN105323618B (en)
WO (1) WO2016019710A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111277897A (en) * 2018-12-04 2020-06-12 中国电信股份有限公司 Method, device and system for identifying watching state of user and set top box
CN114222172A (en) * 2021-12-14 2022-03-22 海宁奕斯伟集成电路设计有限公司 Method and device for acquiring HDMI-CEC function of electronic equipment

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106331805B (en) * 2016-08-19 2019-11-05 广州长嘉电子有限公司 A kind of method and system for realizing low power consumption control intelligent TV set
CN107223338A (en) * 2017-04-01 2017-09-29 深圳市智晟达科技有限公司 The method and set top box of set top box are closed according to tv state
CN108769812A (en) * 2018-06-12 2018-11-06 佛山市灏金赢科技有限公司 A kind of TV set control system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103347210A (en) * 2013-07-18 2013-10-09 深圳市迈乐数码科技股份有限公司 Method and set top box for achieving state synchronization through HDMI interface
CN103702056A (en) * 2013-12-13 2014-04-02 乐视致新电子科技(天津)有限公司 HDMI (High-definition Multimedia Interface) signal processing circuit and method
CN103888824A (en) * 2012-12-19 2014-06-25 中国电信股份有限公司 IPTV set-top box and automatic standby method thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103888824A (en) * 2012-12-19 2014-06-25 中国电信股份有限公司 IPTV set-top box and automatic standby method thereof
CN103347210A (en) * 2013-07-18 2013-10-09 深圳市迈乐数码科技股份有限公司 Method and set top box for achieving state synchronization through HDMI interface
CN103702056A (en) * 2013-12-13 2014-04-02 乐视致新电子科技(天津)有限公司 HDMI (High-definition Multimedia Interface) signal processing circuit and method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111277897A (en) * 2018-12-04 2020-06-12 中国电信股份有限公司 Method, device and system for identifying watching state of user and set top box
CN114222172A (en) * 2021-12-14 2022-03-22 海宁奕斯伟集成电路设计有限公司 Method and device for acquiring HDMI-CEC function of electronic equipment

Also Published As

Publication number Publication date
CN105323618A (en) 2016-02-10
CN105323618B (en) 2019-03-29

Similar Documents

Publication Publication Date Title
WO2016019710A1 (en) Method and device for operating set-top box, and set-top box
JP6219121B2 (en) Electronic device and control method thereof
TWI524714B (en) Mac filtering on ethernet phy for wake-on-lan
US8918629B2 (en) Method and apparatus for controlling operation of booting video image reproducing apparatus
TWI382712B (en) Apparatus, method, system, and computer-readable medium to provide group power management of network devices
US7705842B2 (en) Fast display initialization and light up
WO2017036028A1 (en) Electronic device, method and device for awakening the same
US9015464B2 (en) Electronic device and start-up method thereof
US9625968B2 (en) Method for operating multiple standby states and broadcast receiving apparatus using the same
TWI439846B (en) Method and apparatus of controlling an operational status of an electronic device
US11086635B2 (en) Electronic device, method for controlling electronic device, and program
JP2005062955A (en) Electronic apparatus and power source control method
TW200906081A (en) Multi-protocol infrared receiver
TWI482487B (en) Wireless displaying system, wireless displaying device and method for switching working mode
WO2016029717A1 (en) Set top box and power consumption reduction method therefor and computer storage medium
US20120278542A1 (en) Computer system and sleep control method thereof
TW201508465A (en) Electronic device
CN105430503A (en) Starting method and device of digital television
CN103024543A (en) Implementation method and implementation device for low power consumption of set top box
TWI430614B (en) Network device, network wake-up device and network notifying method applied to network device
KR20170031577A (en) Universal serial bus device, electronic appratus having the same and control method thereof
TWI525591B (en) Source driver and operation method thereof
CN203377993U (en) Interactive playing box
US10972791B1 (en) Digital television, electronic device and control methods thereof
CN201550213U (en) Television standby control circuit

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15829510

Country of ref document: EP

Kind code of ref document: A1