Thank you @Jork but I didn't read much from your LOG. I wanted to see some communication under the commercial Simplink LG-TV standard. CEC commands in your LOG-file are standard CEC commands and always works under normal circumstances. There are commands 0x36 (Standby - used to put the TV to sleep) and 0x0D (Text View On - used to wake the TV).
I am adding my previous info:
My LG-TV can be turned on in several ways, for example with CEC commands:
echo "00:04" > /tmp/hdmicec_cmd # Image View On (enters to the active state)
echo "00:0D" > /tmp/hdmicec_cmd # Text View On
echo "00:44:6D" > /tmp/hdmicec_cmd # Remote Control Pass Through - Power On (function)
However, it is not possible to turn off (switch to standby) on my LG TV in any of the tested ways:
echo "00:36" > /tmp/hdmicec_cmd # request for TV device -> switch to Standby
echo "00:44:6C" > /tmp/hdmicec_cmd # Remote Control Pass Through - Power Off (function)
So waking up my LG-TV works properly via HDMI CEC. But turning off my LG-TV unfortunately doesn't work at all with any of my tested HDMI CEC commands.
That's why I'm looking for some way to start communicating with LG-TV via Simplink CEC (apparently it's vendor-communication via commands that start with code 0x89).
It may be some BUG in my LG-TV. Uhm... I really have no idea why my LG-TV ignores all attempts to turn it off, via HDMI CEC. The strange thing is that switching the TV off and on via RS-232 works without any problems. My LG-TV announces during CEC requests for its power status that it is in "transition from 'On' to 'Standby' mode". Unfortunately, this LG-TV does not report as if it were in a regular "Standby". It doesn't matter if I turn off my LG-TV using RCU or RS232. I always get the same TV shutdown status:
15:18:01.8587 <Tx:> 00 8F <TV><Give Device Power Status>
15:18:02.0323 <Rx:> 00 90 03 <TV><Report Power Status><In transition On to Standby>
Possible return codes are:
https://github.com/P...lude/cectypes.h
typedef enum cec_power_status
{
CEC_POWER_STATUS_ON = 0x00,
CEC_POWER_STATUS_STANDBY = 0x01,
CEC_POWER_STATUS_IN_TRANSITION_STANDBY_TO_ON = 0x02,
CEC_POWER_STATUS_IN_TRANSITION_ON_TO_STANDBY = 0x03,
CEC_POWER_STATUS_UNKNOWN = 0x99
} cec_power_status;
Edited by s3n0, 17 January 2021 - 18:26.