Pulse-Eight / libcec

USB CEC Adapter communication Library http://libcec.pulse-eight.com/
Other
707 stars 284 forks source link

Showing all data sent by TV #542

Closed mikouaji closed 3 years ago

mikouaji commented 3 years ago

Hello, my problem is that I don't see any activity from my TV remote control in cec-client. I can send signals from the RPI to the TV such like turning it on or switching HDMI ports, but I dont see any remote buttons pressed activity in cec-client. Does that mean that my TV doesnt send them via cec? Is there an option to see all the data sent between the RPI and the TV or all signals sent by the TV? I have tried cec from the debian repos v ~4 and also compiled the newest version from this repo (6.0.2) and both act the same. I'm using cec on a RPI4 newest RaspberryPI OS based on Debian Buster. The TV is some random Chinese TV rebranded to be sold in EU, I dont have any other right now to test this somewhere else. If there is anymore info I can provide just ask :)

malard commented 3 years ago

if your TV doesnt support CEC then we wont see anything, if you can't even state the brand name and/or model number of your TV then I am unable to help

mikouaji commented 3 years ago

The tv does support CEC, I have it enabled in the settings and as stated in the issue I can send signals such as switching input sources or turning it on from the RPI. The problem is with seeing remote presses The tv model was stated under the url, its TV Ferguson T232FHD506 Here is the manual http://ferguson-digital.eu/?wpfb_dl=1183 I didnt find any help in it.

EDIT: Also when I use scan the TV is shown and the CEC version in 1.4

malard commented 3 years ago

run cec-client in monitoring mode, type cec-client --help

mikouaji commented 3 years ago

at line 16 I've run the scan command

pi@raspberrypi:~ $ cec-client -m
starting a monitor-only client. use 'mon 0' to switch to normal mode
No device type given. Using 'recording device'
CEC Parser created - libCEC version 6.0.2
no serial port given. trying autodetect: 
 path:     Raspberry Pi
 com port: RPI

opening a connection to the CEC adapter...
DEBUG:   [              68] Broadcast (F): osd name set to 'Broadcast'
DEBUG:   [              68] Open - vc_cec initialised
DEBUG:   [              68] logical address changed to Free use (e)
NOTICE:  [              68] connection opened
waiting for input
DEBUG:   [              69] processor thread started
scan
requesting CEC bus information ...
DEBUG:   [           26332] << Broadcast (F) -> TV (0): POLL
DEBUG:   [           26332] initiator 'Broadcast' is not supported by the CEC adapter. using 'Free use' instead
TRAFFIC: [           26332] << e0
DEBUG:   [           26362] >> POLL sent
DEBUG:   [           26362] TV (0): device status changed into 'present'
DEBUG:   [           26363] << Broadcast (F) -> Recorder 1 (1): POLL
DEBUG:   [           26363] initiator 'Broadcast' is not supported by the CEC adapter. using 'Free use' instead
TRAFFIC: [           26363] << e1
DEBUG:   [           26453] initiator 'Broadcast' is not supported by the CEC adapter. using 'Free use' instead
TRAFFIC: [           26453] << e1
DEBUG:   [           26547] >> POLL not sent
DEBUG:   [           26547] Recorder 1 (1): device status changed into 'not present'
DEBUG:   [           26547] << Broadcast (F) -> Recorder 2 (2): POLL
DEBUG:   [           26547] initiator 'Broadcast' is not supported by the CEC adapter. using 'Free use' instead
TRAFFIC: [           26547] << e2
DEBUG:   [           26637] initiator 'Broadcast' is not supported by the CEC adapter. using 'Free use' instead
TRAFFIC: [           26637] << e2
DEBUG:   [           26728] >> POLL not sent
DEBUG:   [           26728] Recorder 2 (2): device status changed into 'not present'
DEBUG:   [           26728] << Broadcast (F) -> Tuner 1 (3): POLL
DEBUG:   [           26728] initiator 'Broadcast' is not supported by the CEC adapter. using 'Free use' instead
TRAFFIC: [           26728] << e3
DEBUG:   [           26818] initiator 'Broadcast' is not supported by the CEC adapter. using 'Free use' instead
TRAFFIC: [           26818] << e3
DEBUG:   [           26908] >> POLL not sent
DEBUG:   [           26908] Tuner 1 (3): device status changed into 'not present'
DEBUG:   [           26908] << Broadcast (F) -> Playback 1 (4): POLL
DEBUG:   [           26908] initiator 'Broadcast' is not supported by the CEC adapter. using 'Free use' instead
TRAFFIC: [           26908] << e4
DEBUG:   [           27000] initiator 'Broadcast' is not supported by the CEC adapter. using 'Free use' instead
TRAFFIC: [           27000] << e4
DEBUG:   [           27090] >> POLL not sent
DEBUG:   [           27090] Playback 1 (4): device status changed into 'not present'
DEBUG:   [           27090] << Broadcast (F) -> Audio (5): POLL
DEBUG:   [           27090] initiator 'Broadcast' is not supported by the CEC adapter. using 'Free use' instead
TRAFFIC: [           27091] << e5
DEBUG:   [           27181] initiator 'Broadcast' is not supported by the CEC adapter. using 'Free use' instead
TRAFFIC: [           27181] << e5
DEBUG:   [           27271] >> POLL not sent
DEBUG:   [           27271] Audio (5): device status changed into 'not present'
DEBUG:   [           27271] << Broadcast (F) -> Tuner 2 (6): POLL
DEBUG:   [           27271] initiator 'Broadcast' is not supported by the CEC adapter. using 'Free use' instead
TRAFFIC: [           27271] << e6
DEBUG:   [           27362] initiator 'Broadcast' is not supported by the CEC adapter. using 'Free use' instead
TRAFFIC: [           27362] << e6
DEBUG:   [           27452] >> POLL not sent
DEBUG:   [           27452] Tuner 2 (6): device status changed into 'not present'
DEBUG:   [           27452] << Broadcast (F) -> Tuner 3 (7): POLL
DEBUG:   [           27452] initiator 'Broadcast' is not supported by the CEC adapter. using 'Free use' instead
TRAFFIC: [           27452] << e7
DEBUG:   [           27542] initiator 'Broadcast' is not supported by the CEC adapter. using 'Free use' instead
TRAFFIC: [           27542] << e7
DEBUG:   [           27633] >> POLL not sent
DEBUG:   [           27633] Tuner 3 (7): device status changed into 'not present'
DEBUG:   [           27633] << Broadcast (F) -> Playback 2 (8): POLL
DEBUG:   [           27633] initiator 'Broadcast' is not supported by the CEC adapter. using 'Free use' instead
TRAFFIC: [           27633] << e8
DEBUG:   [           27723] initiator 'Broadcast' is not supported by the CEC adapter. using 'Free use' instead
TRAFFIC: [           27723] << e8
DEBUG:   [           27814] >> POLL not sent
DEBUG:   [           27814] Playback 2 (8): device status changed into 'not present'
DEBUG:   [           27814] << Broadcast (F) -> Recorder 3 (9): POLL
DEBUG:   [           27814] initiator 'Broadcast' is not supported by the CEC adapter. using 'Free use' instead
TRAFFIC: [           27814] << e9
DEBUG:   [           27904] initiator 'Broadcast' is not supported by the CEC adapter. using 'Free use' instead
TRAFFIC: [           27904] << e9
DEBUG:   [           27994] >> POLL not sent
DEBUG:   [           27994] Recorder 3 (9): device status changed into 'not present'
DEBUG:   [           27995] << Broadcast (F) -> Tuner 4 (A): POLL
DEBUG:   [           27995] initiator 'Broadcast' is not supported by the CEC adapter. using 'Free use' instead
TRAFFIC: [           27995] << ea
DEBUG:   [           28085] initiator 'Broadcast' is not supported by the CEC adapter. using 'Free use' instead
TRAFFIC: [           28085] << ea
DEBUG:   [           28175] >> POLL not sent
DEBUG:   [           28175] Tuner 4 (A): device status changed into 'not present'
DEBUG:   [           28176] << Broadcast (F) -> Playback 3 (B): POLL
DEBUG:   [           28176] initiator 'Broadcast' is not supported by the CEC adapter. using 'Free use' instead
TRAFFIC: [           28176] << eb
DEBUG:   [           28266] initiator 'Broadcast' is not supported by the CEC adapter. using 'Free use' instead
TRAFFIC: [           28266] << eb
DEBUG:   [           28356] >> POLL not sent
DEBUG:   [           28356] Playback 3 (B): device status changed into 'not present'
DEBUG:   [           28356] << Broadcast (F) -> Reserved 1 (C): POLL
DEBUG:   [           28356] initiator 'Broadcast' is not supported by the CEC adapter. using 'Free use' instead
TRAFFIC: [           28356] << ec
DEBUG:   [           28448] initiator 'Broadcast' is not supported by the CEC adapter. using 'Free use' instead
TRAFFIC: [           28448] << ec
DEBUG:   [           28538] >> POLL not sent
DEBUG:   [           28538] Reserved 1 (C): device status changed into 'not present'
DEBUG:   [           28538] << Broadcast (F) -> Reserved 2 (D): POLL
DEBUG:   [           28538] initiator 'Broadcast' is not supported by the CEC adapter. using 'Free use' instead
TRAFFIC: [           28538] << ed
DEBUG:   [           28628] initiator 'Broadcast' is not supported by the CEC adapter. using 'Free use' instead
TRAFFIC: [           28628] << ed
DEBUG:   [           28719] >> POLL not sent
DEBUG:   [           28719] Reserved 2 (D): device status changed into 'not present'
DEBUG:   [           28719] << Broadcast (F) -> Free use (E): POLL
DEBUG:   [           28719] initiator 'Broadcast' is not supported by the CEC adapter. using 'Free use' instead
TRAFFIC: [           28719] << ee
DEBUG:   [           28991] initiator 'Broadcast' is not supported by the CEC adapter. using 'Free use' instead
TRAFFIC: [           28991] << ee
DEBUG:   [           29262] >> POLL not sent
DEBUG:   [           29262] Free use (E): device status changed into 'not present'
DEBUG:   [           29262] << requesting vendor ID of 'TV' (0)
DEBUG:   [           29262] initiator 'Broadcast' is not supported by the CEC adapter. using 'Free use' instead
TRAFFIC: [           29262] << e0:8c
DEBUG:   [           29266] initiator 'Broadcast' is not supported by the CEC adapter. using 'Free use' instead
TRAFFIC: [           29266] << e0:8c
TRAFFIC: [           29460] >> 0f:87:00:10:39
DEBUG:   [           29460] TV (0): vendor = Unknown (001039)
DEBUG:   [           29460] expected response received (87: device vendor id)
DEBUG:   [           29460] << requesting CEC version of 'TV' (0)
DEBUG:   [           29460] initiator 'Broadcast' is not supported by the CEC adapter. using 'Free use' instead
TRAFFIC: [           29460] << e0:9f
DEBUG:   [           29460] >> TV (0) -> Broadcast (F): device vendor id (87)
TRAFFIC: [           29616] >> 0e:9e:05
DEBUG:   [           29616] TV (0): CEC version 1.4
DEBUG:   [           29616] expected response received (9E: cec version)
DEBUG:   [           29616] << requesting power status of 'TV' (0)
DEBUG:   [           29616] initiator 'Broadcast' is not supported by the CEC adapter. using 'Free use' instead
TRAFFIC: [           29616] << e0:8f
TRAFFIC: [           29772] >> 0e:90:00
DEBUG:   [           29772] TV (0): power status changed from 'unknown' to 'on'
DEBUG:   [           29772] expected response received (90: report power status)
DEBUG:   [           29772] << requesting menu language of 'TV' (0)
DEBUG:   [           29772] initiator 'Broadcast' is not supported by the CEC adapter. using 'Free use' instead
TRAFFIC: [           29772] << e0:91
TRAFFIC: [           29976] >> 0f:32:70:6f:6c
CEC bus information
===================
device #0: TV
address:       0.0.0.0
active source: no
vendor:        Unknown
osd string:    TV
CEC version:   1.4
power status:  on
language:      pol

currently active source: unknown (-1)
DEBUG:   [           29976] TV (0): menu language set to 'pol'
DEBUG:   [           29976] expected response received (32: set menu language)
DEBUG:   [           29976] >> TV (0) -> Broadcast (F): set menu language (32)