cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3940
Views
6
Helpful
4
Replies

how to switch on/off a TV via CEC with a Room Kit

Sydd
Level 1
Level 1

Hi all,

 

I'm trying to switch on or off a Philips TV by sending a CEC command through a Room Kit :

xcommand Video CEC Output KeyClick LogicalAddress: 0 ConnectorId: 3 Key: 36

 

I read on CEC-O-Matic that the code 36 corresponds to off command or standby. But this command doesn't work. CEC mode is active :

*c xConfiguration Video Output Connector 1 CEC Mode: On
*c xConfiguration Video Output Connector 1 MonitorRole: PresentationOnly
*c xConfiguration Video Output Connector 1 Resolution: Auto
*c xConfiguration Video Output Connector 2 CEC Mode: On
*c xConfiguration Video Output Connector 2 MonitorRole: First
*c xConfiguration Video Output Connector 2 Resolution: Auto
*c xConfiguration Video Output Connector 3 CEC Mode: On
*c xConfiguration Video Output Connector 3 MonitorRole: First
*c xConfiguration Video Output Connector 3 Resolution: Auto

EasyLink (this is Philips name for CEC) is active.

 

In a 2 two screen configuration, when only sharing screen and not in meeting, how can I deactivate one of the two screen ?

 

Regards

1 Accepted Solution

Accepted Solutions

 

Hello!

 

The CEC opcode is defined as hex digits, but the XAPI command key is written as a decimal integer (0-255). Therefore when you use key 36 (decimal), in reality you are using code 0x24 which is undefined in CEC. The correct code for Standby is 0x36, which translates to key 54 in XAPI.

 

Now, to turn on the TV you have to use CEC code 0x04, which is key 4 in XAPI.

 

Regards,

 

Joe

 

View solution in original post

4 Replies 4

 

Hello!

 

The CEC opcode is defined as hex digits, but the XAPI command key is written as a decimal integer (0-255). Therefore when you use key 36 (decimal), in reality you are using code 0x24 which is undefined in CEC. The correct code for Standby is 0x36, which translates to key 54 in XAPI.

 

Now, to turn on the TV you have to use CEC code 0x04, which is key 4 in XAPI.

 

Regards,

 

Joe

 

Hi,

Thank you for your answer. I'll give it a try after lockdown.

Have a nice day, take care of you and your family.

Valéry

lukasburnes
Level 1
Level 1

I was able to successfully control a Panasonic Viera via these commands:

 

To Turn the monitor off:

xCommand Video CEC Output KeyClick ConnectorId: 1 Key: 108 LogicalAddress: 0
xCommand Video CEC Output SendInactiveSourceRequest


To Turn the Monitor on:
xCommand Video CEC Output SendActiveSourceRequest

 

A pretty neat list of CEC commands are here:

https://support.crestron.com/app/answers/detail/a_id/5633/kw/5633

 

This is exactly what I was looking for. Thank you, kind sir.