HDMI CEC (Consumer Electronics Control): What? Why? How?

Similar documents
High-Definition Multimedia Interface Specification Version 1.3a. Supplement 1 Consumer Electronics Control (CEC)

(1) HDMI CONTROL Guide. Operating Instructions Sony Corporation

HIGH-DEF FUZZING EXPLOITATION OVER HDMI-CEC

Notice. Reverse engineering and disassembly are prohibited.

DVB-T2 DIGITAL TV BOX

CCNA R&S: Introduction to Networks. Chapter 5: Ethernet

White Paper Creating a Video Matrix over IP

Hi! Let s get started.

Register your product and get support at User Manual

MediaQ M310. Quick Start HUAWEI TECHNOLOGIES CO., LTD.

H25 DIRECTV Receiver. The New H25 IRD. Overview

Hello! Let s get started.

STB- 2. Installation and Operation Manual

DVB-T VERTO. User Manual HD TERRESTRIAL DIGITAL TV STB & PLAYER MT4162

User Guide 980 HDMI Protocol Analyzer

TIME WARNER DIGITAL CABLE

An Analysis of Wireless Device Implementations on Universal Serial Bus

Setup Guide. You re minutes away from a whole new way of watching TV. Of controlling TV. Of thinking about what TV can be.

Chapter 9A. Network Definition. The Uses of a Network. Network Basics

Configuring Switch Ports and VLAN Interfaces for the Cisco ASA 5505 Adaptive Security Appliance

Setup guide. point to point wall plate extenders

SINGLE CABLE SOLUTION PROVIDES 5PLAY CONVERGENCE FOR COMMERCIAL INSTALLATIONS

Quick installation guide for the Vista Quantum QNVR Network Video Recorder

( ) manual_tocomsat duo LITE.indd :44:57

Network Monitoring White Paper

IEEE 1394 Card. Version 1.0

4. Rear View. Function Switches 1. Fixed IP 2. DHCP Floating IP 3. Auto IRIS (DC Driver LENS) 4. Fixed LENS (AES)

xxhfl3xx9 xxhfl5xx9 xxhfl7xx9

ScreenBeam Wireless Display Kit. User Manual. Solutions for the Digital Life. Model #: SBWD100KIT. Ver 1.0

EV-8000S. Features & Technical Specifications. EV-8000S Major Features & Specifications 1

User Manual 32PFT6500

HDMI on OMAP4 PANDA. Design, Challenges and Lessons Learned Mythri P K

ScreenBeam Wireless Display Kit. User Manual. Solutions for the Digital Life. Model #: SBWD100A, SBT100U. Ver 1.5

User Manual 32PFH PFT PFH PFT PFH PFT5300

ScreenBeam Mini 2 Wireless Display Receiver

Technical Support. Trademarks

User Manual. Ver 1.0. Solutions for the Digital Life

Using Link Layer Discovery Protocol in Multivendor Networks

series User Manual 28HFL5010T 32HFL5010T 40HFL5010T 48HFL5010T 55HFL5010T

IPTV STB QUICK GUIDE. Detailed user manual download from

E-MANUAL. Thank you for purchasing this Samsung product. To receive more complete service, please register your product at.

Advanced Network Services Teaming

Hi! Let s get started.

Guideline for setting up a functional VPN

Port Trunking. Contents

Wireless Joey High/Standard Definition Uses Wireless Joey Access Point. Receivers Wireless Joey

Wireless Internet Camera

Ethernet. Ethernet Frame Structure. Ethernet Frame Structure (more) Ethernet: uses CSMA/CD

Bidirectional wireless communication using EmbedRF

Hi! Let s get started. Streaming Stick

AV Surround Receiver NR1607. Quick Start Guide. Read Me First... Please do not return this unit to the store. If you need help

Quick Start Guide. The Raspberry Pi Single Board Computer. Source: Raspberry Pi & Wiki

ZA Smart TV Series QUICK START GUIDE

Point of view HDMI Smart TV dongle Mini RF Keyboard

LC-32/40/46/52LE700UN

Roles of Smart TV in Internet of Things

DVB-T 730. User s Manual

Linksys WAP300N. User Guide

FlyingDream AAT Driver Quick Guide V1.1

1-Port Wireless USB 2.0 Print Server Model # APSUSB201W. Quick Installation Guide. Ver. 2A

ProSAFE 8-Port and 16-Port Gigabit Click Switch

Port Trunking. Contents

Apple Airport Extreme Base Station V4.0.8 Firmware: Version 5.4

AVR 158. Audio/video receiver. Quick-Start Guide ENGLISH

White Paper. Technical Capabilities of the DF1 Half-Duplex Protocol

User Manual 40PUT PUT PUT6400

Lenovo IdeaCentre Q180 Series

E-MANUAL. Thank you for purchasing this Samsung product. To receive more complete service, please register your product at.

How To Configure Voice Vlan On An Ip Phone

HotelTV. Client Software Update REV A0.10 D October. Web : Mail : support@vestek.com.tr Tel :

Digital Video Recorder

Bluetooth Health Device Profile and the IEEE Medical Device Frame Work

INSTALLATION MANUAL LCD TV / LED LCD TV

Software Defined Networking (SDN) - Open Flow

ABOUT YOUR SATELLITE RECEIVER

CREW - FP7 - GA No Cognitive Radio Experimentation World. Project Deliverable D7.5.4 Showcase of experiment ready (Demonstrator)

Frequently Asked Questions: Home Networking, Wireless Adapters, and Powerline Adapters for the BRAVIA Internet Video Link

Network Projector Operation Guide

How To Understand and Configure Your Network for IntraVUE

TX-58DX902B TX-65DX902B TX-50DX750B TX-58DX750B TX-65DX750B TX-40DX700B TX-50DX700B TX-58DX700B. e HELP. English

A Division of Cisco Systems, Inc. GHz g. Wireless-G. PCI Adapter with RangeBooster. User Guide WIRELESS WMP54GR. Model No.

High-Level Data Link Control

Quick Start Guide. DVR DS-7200HWI-SH Series DVR. First Choice For Security Professionals

Ethernet Port Quick Start Manual

Mobile Devices: Server and Management Lesson 05 Service Discovery

Installing the P80 Console Media Adapter

User and installation manual

Technicolor ATSC-8. User s Guide Technicolor. All Rights reserved

Wi-Fi Setup Guide USING YOUR DMX PROFUSION is FOR

overview DyNet over RS485

E-MANUAL. Thank you for purchasing this Samsung product. To receive more complete service, please register your product at.

High-Definition Multimedia Interface (HDMI) Source/Sink Impedance Compliance Test Test Solution Overview Using the E5071C ENA Option TDR

Monitoring the Switch

Wireless Presentation Adaptor User s Manual

Wireless-N. User Guide. PCI Adapter WMP300N (EU) WIRELESS. Model No.

Communication Networks. MAP-TELE 2011/12 José Ruela

Fi TV Gold Quick Start Guide

CONNECTING THE RASPBERRY PI TO A NETWORK

Cisco Networking Academy CCNP Multilayer Switching

Lab Creating a Logical Network Diagram

Transcription:

HDMI CEC (Consumer Electronics Control): What? Why? How? Hans Verkuil Cisco Systems Norway 2014 Cisco and/or its affiliates. All rights reserved. 1

CEC @ 1 meter: 400 bits/s 2014 Cisco and/or its affiliates. All rights reserved. 2

What Is CEC? 2014 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 3

Consumer Electronics Control An optional supplement to HDMI using pin 13 of the HDMI connector. Provides high-level control functions between the various audiovisual products in a user's environment. Based on the old AV.link scart standard (EN 50157-2-[123]). Implemented in HDMI receivers/transmitters and USB HDMIpassthrough devices. Data packets: 1 header byte + 0 to 15 data bytes. Very, very slow data rate ~400 bits/s. 2014 Cisco and/or its affiliates. All rights reserved. 4

Physical Address Physical address: Hierarchy placement Range: 0.0.0.0 - F.F.F.F Root device: 0.0.0.0: HDMI Sink, typically a TV First device: 1.0.0.0: Device connected to HDMI port 1 on root device Second device: 2.0.0.0: Device connected to HDMI port 2 on root device Third device: 1.1.0.0: Device connected to HDMI port 1 on first device Sources get their Physical address from the EDID obtained from the sink. 2014 Cisco and/or its affiliates. All rights reserved. 5

Logical Address Logical address 0-15: product type dependent Not really an address, more like a nickname. 0: TV (root device) 8: Playback device 2 1: Recording device 1 9: Recording device 3 2: Recording device 2 10: Tuner 4 3: Tuner 1 11: Playback device 3 4: Playback device 1 12: Backup 1 5: Audio system 13: Backup 2 6: Tuner 2 14: Specific use 7: Tuner 3 15: Unregistered (as Initiator address) Broadcast (as Destination address) 2014 Cisco and/or its affiliates. All rights reserved. 6

Topology Example 2014 Cisco and/or its affiliates. All rights reserved. 7

Trade Names Anynet+ (SAMSUNG) BRAVIA Link (Sony) Kuro Link (Pioneer) EasyLink (Philips) SimpLink (LG) VIERA link (Panasonic) 2014 Cisco and/or its affiliates. All rights reserved. 8

Why Implement CEC? 2014 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 9

End-User Features One Touch Play: allows a device to be played and become the active source with a single button press. System Standby: enables the user to switch all devices to the Standby state with one button press. One Touch Record: offers a What You See Is What You Record (WYSIWYR) facility, meaning that whatever is shown on the TV screen is recorded on a selected Recording Device. Timer Programming: allows the user to program the timers in a Recording Device from an EPG running on a TV or STB. Deck Control: enables a device to control (e.g. play, fast forward etc.) and interrogate a Playback Device (a deck). 2014 Cisco and/or its affiliates. All rights reserved. 10

End-User Features Tuner Control: allows a device to control the tuner of another device. Device Menu Control: enables a device to control the menu of another device by passing through user interface commands. Remote Control Pass Through: enables remote control commands to be passed through to other devices within the system. System Audio Control: allows an Audio Amplifier / Receiver to be used with the TV. The volume can be controlled using any the remote controls of any suitably-equipped devices in the system. 2014 Cisco and/or its affiliates. All rights reserved. 11

Supporting Features Device OSD Name Transfer: enables devices to upload their preferred OSD name to the TV. The TV can then use this name in any menus associated with that device. Device Power Status: allows the current power status of a device to be discovered. OSD Display: enables a device to use the on-screen display of the TV to display text strings. Routing Control: allows the control of CEC Switches for streaming of a new source device. System Information: queries the system to determine device addresses and language. Dynamic Audio Lipsync: used by sinks to announce their audio latency. 2014 Cisco and/or its affiliates. All rights reserved. 12

Supporting Features Vendor Specific Commands: allows a set of vendor-defined commands to be used between devices of that vendor. Audio Rate Control: allows an Amplifier to fractionally increase or decrease the playback rate of an audio source. Audio Return Channel Control: controls the Audio Return Channel (ARC) part of the HDMI Ethernet and Audio Return Channel (HEAC). Capability Discovery and Control: controls HDMI Ethernet Channel (HEC) part of HEAC. 2014 Cisco and/or its affiliates. All rights reserved. 13

Capability Discovery and Control (CDC) for HEAC (HDMI Ethernet and Audio Return Channel) HEAC provides a full duplex connection between HDMI devices which conforms to 100Base-TX IEEE 802.3 Standard. This is defined as HDMI Ethernet Channel (HEC): very rarely implemented since wifi is used instead. HEAC provides audio data streaming which conforms to IEC 60958-1 standard from an HDMI Sink to an HDMI Source or repeater. This is defined as Audio Return Channel (ARC): much more common, used to e.g. transfer TV audio to an AV Receiver. For ethernet both the Utility (14) and Hot Plug Detect (19) lines are used. ARC can run in single mode (only pin 14 is used) or common mode (both pins are used). HEAC uses CDC for Capability Discovery and Control. If the Hot Plug Detect pin is used, then special CDC messages replace the hotplug signal. 2014 Cisco and/or its affiliates. All rights reserved. 14

Problems CEC is optional, so no guarantees. CEC version 1.4 leaves too much to the implementor, leading to inconsistent implementations. Version 2.0 is more strict. Ad-Hoc protocol: a clear example of a protocol where vendors hack something which then becomes part of the standard. Painfully slow and small payload. 2014 Cisco and/or its affiliates. All rights reserved. 15

How Is CEC Implemented? 2014 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 16

Implementation Requirements CEC is highly asynchronous, blocking waits must be avoided. Replies to messages are out-of-order, not something userspace should have to deal with. It depends on the use-case which messages have to be handled by userspace or kernelspace, so both need to be supported. Creating and parsing messages should be standardized in a header that can be used both by userspace and kernelspace. Needs to support HDMI receivers (V4L2), transmitters (DRM, V4L2) and USB CEC dongles. 2014 Cisco and/or its affiliates. All rights reserved. 17

CEC Framework Creates a /dev/cecx device node. The driver determines the level of control userspace is allowed. Drivers implement the low-level CEC adapter operations. Drivers also implement high-level CEC functionality such as ARC and hotplug detect messages. The framework deals with the details of the protocol and the asynchronous aspects. The framework processes the core CEC messages automatically (unless userspace enables passthrough mode). The framework allows monitoring the CEC line. 2014 Cisco and/or its affiliates. All rights reserved. 18

CEC Framework cec-funcs.h contains static inline functions that fill and parse cec_msg structs. When transmitting a message you can asynchronously wait for a reply. struct cec_msg { u64 ts; u32 len; u32 status; u32 timeout; u32 sequence; u8 msg[16]; u8 reply; u8 reserved[35]; }; struct cec_msg msg; cec_msg_init(&msg, 4, 0); cec_msg_set_osd_string(&msg, CEC_OP_DISP_CTL_DEFAULT, Hello World ); cec_msg_give_osd_name(&msg, true); 2014 Cisco and/or its affiliates. All rights reserved. 19

CEC Utilities cec-ctl supports all CEC messages (autogenerated code) and is a quick way of interactively configuring a CEC adapter and sending, receiving and monitoring CEC messages. cec-compliance will eventually do a proper CEC compliance test to see if the CEC implementation is correct (i.e. all messages that should be implemented are implemented). 2014 Cisco and/or its affiliates. All rights reserved. 20

CEC To Do What to do if a cable is disconnected and reconnected for a source: should the CEC adapter be disabled and re-enabled? Which means that you need to reconfigure. Or just update the physical address from the EDID (if necessary)? I think the latter, but I need to analyze this more closely. 2014 Cisco and/or its affiliates. All rights reserved. 21

Resources 2014 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 22

Resources Git repository for the CEC framework: http://git.linuxtv.org/hverkuil/media_tree.git/log/?h=cec12 Git repository for the cec-ctl/cec-compliance utilities: http://git.linuxtv.org/cgit.cgi/hverkuil/v4l-utils.git/log/?h=cec 2014 Cisco and/or its affiliates. All rights reserved. 23

Questions? 2014 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 24