Jump to: navigation, search

Difference between revisions of "CEC command syntax"

(Other ways og playing)
(Other ways of playing)
 
Line 8: Line 8:
 
Then, depending on the command, the following bytes are the parameters of the command. In our example, <code>00</code> is the "display control" parameter set to "display for default time", and <code>48:65:6C:6C:6F:20:77:6F:72:6C:64</code> is the "OSD String" parameter set to "Hello world".
 
Then, depending on the command, the following bytes are the parameters of the command. In our example, <code>00</code> is the "display control" parameter set to "display for default time", and <code>48:65:6C:6C:6F:20:77:6F:72:6C:64</code> is the "OSD String" parameter set to "Hello world".
  
==Other ways of playing==
+
{{:PlayingCECTOCwh}}
{{:PlayingCECTOC}}
+

Latest revision as of 22:52, 26 August 2011

To understand how CEC messages are constructed, let's use the famous CEC-O-MATIC sample:

F0:64:00:48:65:6C:6C:6F:20:77:6F:72:6C:64

The first byte (F0) consists of the logical source (or "initiator", first character) and destination (or "target", second character) addresses of the messages. This message is from an unregistered device (F) to the TV (0.) List of logical addresses

The second byte (64) is the command number. 64 is the "set OSD string" command. You can find a list of commands in the HDMI spec or in CEC-O-MATIC.

Then, depending on the command, the following bytes are the parameters of the command. In our example, 00 is the "display control" parameter set to "display for default time", and 48:65:6C:6C:6F:20:77:6F:72:6C:64 is the "OSD String" parameter set to "Hello world".

Other hints to discover CEC