Problème avec le module HDMICEC


#21

Oui je laisse bien la commande tourner, sans arréter prématurément par ctrl +C

J’ai testé avec un autre cable oui, et le CEC ( T Link sur la thomson ) est bien activé.

J’ai une commande similaire dans le l’aide de CEC ( sans guillemet autoru de scan en fait ) :


[email protected]:~ $ echo scan | cec-client RPI -s -d 1
opening a connection to the CEC adapter...
requesting CEC bus information ...
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:  standby
language:      ???


device #1: Recorder 1
address:       3.0.0.0
active source: no
vendor:        Pulse Eight
osd string:    CECTester
CEC version:   1.4
power status:  on
language:      eng


currently active source: unknown (-1)


#22

ok cool :slight_smile:.

Peux tu tenter cette commande télé allumé (elle va éteindre la tv [normalement]) :

echo tx 10:36 | cec-client -s

ou

echo “tx 10:36” | cec-client -s


#23

Bon, malheureusement aucune des deux commandes n’arrive à éteindre la TV :confused: :

[email protected]:~ $ echo “tx 10:36” | cec-client -s
opening a connection to the CEC adapter...
DEBUG:   [             153]     Broadcast (F): osd name set to 'Broadcast'
DEBUG:   [             156]     Open - vc_cec initialised
DEBUG:   [             156]     logical address changed to Free use (e)
NOTICE:  [             156]     connection opened
DEBUG:   [             156]     processor thread started
DEBUG:   [             156]     << Broadcast (F) -> TV (0): POLL
DEBUG:   [             156]     initiator 'Broadcast' is not supported by the CEC adapter. using 'Free use' instead
TRAFFIC: [             156]     << e0
DEBUG:   [             216]     >> POLL sent
DEBUG:   [             217]     TV (0): device status changed into 'present'
DEBUG:   [             217]     << requesting vendor ID of 'TV' (0)
TRAFFIC: [             217]     << e0:8c
TRAFFIC: [             470]     >> 0f:87:f0:f0:f0:00
DEBUG:   [             470]     TV (0): vendor = Unknown (f0f0f0)
DEBUG:   [             470]     >> TV (0) -> Broadcast (F): device vendor id (87)
DEBUG:   [             470]     expected response received (87: device vendor id)
NOTICE:  [             471]     registering new CEC client - v4.0.2
DEBUG:   [             471]     detecting logical address for type 'recording device'
DEBUG:   [             471]     trying logical address 'Recorder 1'
DEBUG:   [             471]     << Recorder 1 (1) -> Recorder 1 (1): POLL
TRAFFIC: [             471]     << 11
TRAFFIC: [             744]     << 11
DEBUG:   [            1017]     >> POLL not sent
DEBUG:   [            1017]     using logical address 'Recorder 1'
DEBUG:   [            1017]     Recorder 1 (1): device status changed into 'handled by libCEC'
DEBUG:   [            1017]     Recorder 1 (1): power status changed from 'unknown' to 'on'
DEBUG:   [            1017]     Recorder 1 (1): vendor = Pulse Eight (001582)
DEBUG:   [            1017]     Recorder 1 (1): CEC version 1.4
DEBUG:   [            1017]     AllocateLogicalAddresses - device '0', type 'recording device', LA '1'
DEBUG:   [            1018]     logical address changed to Recorder 1 (1)
DEBUG:   [            1018]     Recorder 1 (1): osd name set to 'CECTester'
DEBUG:   [            1018]     Recorder 1 (1): menu language set to 'eng'
DEBUG:   [            1018]     GetPhysicalAddress - physical address = 3000
DEBUG:   [            1018]     AutodetectPhysicalAddress - autodetected physical address '3000'
DEBUG:   [            1018]     Recorder 1 (1): physical address changed from ffff to 3000
DEBUG:   [            1019]     << Recorder 1 (1) -> broadcast (F): physical address 3000
TRAFFIC: [            1019]     << 1f:84:30:00:01
NOTICE:  [            1169]     CEC client registered: libCEC version = 4.0.2, client version = 4.0.2, firmware version = 1, logical address(es) = Recorder 1 (1) , physical address: 3.0.0.0, git revision: libcec-4.0.2+30-8adc786~dirty, compiled on Mon Aug 21 09:41:41 UTC 2017 by [email protected]: Name or service not known on Linux 4.4.0-92-generic (armv7l), features: P8_USB, DRM, P8_detect, randr, RPi
DEBUG:   [            1169]     << Recorder 1 (1) -> TV (0): OSD name 'CECTester'
TRAFFIC: [            1170]     << 10:47:43:45:43:54:65:73:74:65:72
DEBUG:   [            1470]     << requesting power status of 'TV' (0)
TRAFFIC: [            1470]     << 10:8f
TRAFFIC: [            2163]     >> 01:90:00
DEBUG:   [            2163]     TV (0): power status changed from 'unknown' to 'on'
DEBUG:   [            2163]     >> TV (0) -> Recorder 1 (1): report power status (90)
DEBUG:   [            2163]     expected response received (90: report power status)
DEBUG:   [            2164]     unregistering all CEC clients
NOTICE:  [            2164]     unregistering client: libCEC version = 4.0.2, client version = 4.0.2, firmware version = 1, logical address(es) = Recorder 1 (1) , physical address: 3.0.0.0, git revision: libcec-4.0.2+30-8adc786~dirty, compiled on Mon Aug 21 09:41:41 UTC 2017 by [email protected]: Name or service not known on Linux 4.4.0-92-generic (armv7l), features: P8_USB, DRM, P8_detect, randr, RPi
DEBUG:   [            2164]     Recorder 1 (1): power status changed from 'on' to 'unknown'
DEBUG:   [            2164]     Recorder 1 (1): vendor = Unknown (000000)
DEBUG:   [            2164]     Recorder 1 (1): CEC version unknown
DEBUG:   [            2164]     Recorder 1 (1): osd name set to 'Recorder 1'
DEBUG:   [            2165]     Recorder 1 (1): device status changed into 'unknown'
DEBUG:   [            2165]     unregistering all CEC clients
DEBUG:   [            3157]     UnregisterLogicalAddress - releasing previous logical address
DEBUG:   [            3157]     logical address changed to Broadcast (f)
[email protected]:~ $


#24

Peux tu re tester les commandes précédente en changean 10 par 00 si rien 20. Au cas où ^^’?


#25

Au cas où alors ^^", voila le résultat : ( la TV ne s’éteint toujours pas )

[email protected]:~ $ echo tx 00:36 | cec-client -s
opening a connection to the CEC adapter...
DEBUG:   [             138]     Broadcast (F): osd name set to 'Broadcast'
DEBUG:   [             141]     Open - vc_cec initialised
DEBUG:   [             141]     logical address changed to Free use (e)
NOTICE:  [             141]     connection opened
DEBUG:   [             141]     processor thread started
DEBUG:   [             141]     << Broadcast (F) -> TV (0): POLL
DEBUG:   [             141]     initiator 'Broadcast' is not supported by the CE                                                          C adapter. using 'Free use' instead
TRAFFIC: [             141]     << e0
DEBUG:   [             202]     >> POLL sent
DEBUG:   [             202]     TV (0): device status changed into 'present'
DEBUG:   [             202]     << requesting vendor ID of 'TV' (0)
TRAFFIC: [             202]     << e0:8c
TRAFFIC: [             649]     >> 0f:87:f0:f0:f0:00
DEBUG:   [             649]     TV (0): vendor = Unknown (f0f0f0)
DEBUG:   [             649]     >> TV (0) -> Broadcast (F): device vendor id (87                                                          )
DEBUG:   [             649]     expected response received (87: device vendor id                                                          )
NOTICE:  [             649]     registering new CEC client - v4.0.2
DEBUG:   [             649]     detecting logical address for type 'recording de                                                          vice'
DEBUG:   [             649]     trying logical address 'Recorder 1'
DEBUG:   [             649]     << Recorder 1 (1) -> Recorder 1 (1): POLL
TRAFFIC: [             649]     << 11
TRAFFIC: [             922]     << 11
DEBUG:   [            1194]     >> POLL not sent
DEBUG:   [            1194]     using logical address 'Recorder 1'
DEBUG:   [            1194]     Recorder 1 (1): device status changed into 'hand                                                          led by libCEC'
DEBUG:   [            1194]     Recorder 1 (1): power status changed from 'unkno                                                          wn' to 'on'
DEBUG:   [            1195]     Recorder 1 (1): vendor = Pulse Eight (001582)
DEBUG:   [            1195]     Recorder 1 (1): CEC version 1.4
DEBUG:   [            1195]     AllocateLogicalAddresses - device '0', type 'rec                                                          ording device', LA '1'
DEBUG:   [            1195]     logical address changed to Recorder 1 (1)
DEBUG:   [            1195]     Recorder 1 (1): osd name set to 'CECTester'
DEBUG:   [            1195]     Recorder 1 (1): menu language set to 'eng'
DEBUG:   [            1195]     GetPhysicalAddress - physical address = 3000
DEBUG:   [            1195]     AutodetectPhysicalAddress - autodetected physica                                                          l address '3000'
DEBUG:   [            1195]     Recorder 1 (1): physical address changed from ff                                                          ff to 3000
DEBUG:   [            1195]     << Recorder 1 (1) -> broadcast (F): physical add                                                          ress 3000
TRAFFIC: [            1195]     << 1f:84:30:00:01
NOTICE:  [            1346]     CEC client registered: libCEC version = 4.0.2, c                                                          lient version = 4.0.2, firmware version = 1, logical address(es) = Recorder 1 (1                                                          ) , physical address: 3.0.0.0, git revision: libcec-4.0.2+30-8adc786~dirty, comp                                                          iled on Mon Aug 21 09:41:41 UTC 2017 by [email protected]: Name or service not known                                                           on Linux 4.4.0-92-generic (armv7l), features: P8_USB, DRM, P8_detect, randr, RP                                                          i
DEBUG:   [            1347]     << Recorder 1 (1) -> TV (0): OSD name 'CECTester                                                          '
TRAFFIC: [            1347]     << 10:47:43:45:43:54:65:73:74:65:72
DEBUG:   [            1677]     << requesting power status of 'TV' (0)
TRAFFIC: [            1678]     >> 01:46
DEBUG:   [            1678]     >> TV (0) -> Recorder 1 (1): give osd name (46)
TRAFFIC: [            1678]     << 10:8f
DEBUG:   [            1769]     << Recorder 1 (1) -> TV (0): OSD name 'CECTester                                                          '
TRAFFIC: [            1769]     << 10:47:43:45:43:54:65:73:74:65:72
TRAFFIC: [            2188]     >> 01:90:00
DEBUG:   [            2188]     TV (0): power status changed from 'unknown' to '                                                          on'
DEBUG:   [            2188]     >> TV (0) -> Recorder 1 (1): report power status                                                           (90)
DEBUG:   [            2189]     expected response received (90: report power sta                                                          tus)
DEBUG:   [            2189]     initiator 'TV' is not supported by the CEC adapt                                                          er
DEBUG:   [            2189]     unregistering all CEC clients
NOTICE:  [            2190]     unregistering client: libCEC version = 4.0.2, cl                                                          ient version = 4.0.2, firmware version = 1, logical address(es) = Recorder 1 (1)                                                           , physical address: 3.0.0.0, git revision: libcec-4.0.2+30-8adc786~dirty, compi                                                          led on Mon Aug 21 09:41:41 UTC 2017 by [email protected]: Name or service not known                                                           on Linux 4.4.0-92-generic (armv7l), features: P8_USB, DRM, P8_detect, randr, RPi
DEBUG:   [            2190]     Recorder 1 (1): power status changed from 'on' t                                                          o 'unknown'
DEBUG:   [            2190]     Recorder 1 (1): vendor = Unknown (000000)
DEBUG:   [            2190]     Recorder 1 (1): CEC version unknown
DEBUG:   [            2190]     Recorder 1 (1): osd name set to 'Recorder 1'
DEBUG:   [            2191]     Recorder 1 (1): device status changed into 'unkn                                                          own'
DEBUG:   [            2191]     unregistering all CEC clients
DEBUG:   [            3142]     UnregisterLogicalAddress - releasing previous lo                                                          gical address
DEBUG:   [            3143]     logical address changed to Broadcast (f)
[email protected]:~ $ echo tx 20:36 | cec-client -s
opening a connection to the CEC adapter...
DEBUG:   [             156]     Broadcast (F): osd name set to 'Broadcast'
DEBUG:   [             159]     Open - vc_cec initialised
DEBUG:   [             159]     logical address changed to Free use (e)
NOTICE:  [             159]     connection opened
DEBUG:   [             159]     processor thread started
DEBUG:   [             159]     << Broadcast (F) -> TV (0): POLL
DEBUG:   [             159]     initiator 'Broadcast' is not supported by the CEC adapter. using 'Free use' instead
TRAFFIC: [             159]     << e0
DEBUG:   [             220]     >> POLL sent
DEBUG:   [             220]     TV (0): device status changed into 'present'
DEBUG:   [             220]     << requesting vendor ID of 'TV' (0)
TRAFFIC: [             220]     << e0:8c
TRAFFIC: [             804]     >> 0f:87:f0:f0:f0:00
DEBUG:   [             804]     TV (0): vendor = Unknown (f0f0f0)
DEBUG:   [             804]     expected response received (87: device vendor id)
NOTICE:  [             804]     registering new CEC client - v4.0.2
DEBUG:   [             804]     detecting logical address for type 'recording device'
DEBUG:   [             804]     trying logical address 'Recorder 1'
DEBUG:   [             804]     << Recorder 1 (1) -> Recorder 1 (1): POLL
TRAFFIC: [             804]     << 11
DEBUG:   [             805]     >> TV (0) -> Broadcast (F): device vendor id (87)
TRAFFIC: [            1078]     << 11
DEBUG:   [            1351]     >> POLL not sent
DEBUG:   [            1351]     using logical address 'Recorder 1'
DEBUG:   [            1351]     Recorder 1 (1): device status changed into 'handled by libCEC'
DEBUG:   [            1351]     Recorder 1 (1): power status changed from 'unknown' to 'on'
DEBUG:   [            1351]     Recorder 1 (1): vendor = Pulse Eight (001582)
DEBUG:   [            1351]     Recorder 1 (1): CEC version 1.4
DEBUG:   [            1351]     AllocateLogicalAddresses - device '0', type 'recording device', LA '1'
DEBUG:   [            1351]     logical address changed to Recorder 1 (1)
DEBUG:   [            1351]     Recorder 1 (1): osd name set to 'CECTester'
DEBUG:   [            1351]     Recorder 1 (1): menu language set to 'eng'
DEBUG:   [            1351]     GetPhysicalAddress - physical address = 3000
DEBUG:   [            1351]     AutodetectPhysicalAddress - autodetected physical address '3000'
DEBUG:   [            1351]     Recorder 1 (1): physical address changed from ffff to 3000
DEBUG:   [            1351]     << Recorder 1 (1) -> broadcast (F): physical address 3000
TRAFFIC: [            1351]     << 1f:84:30:00:01
NOTICE:  [            1502]     CEC client registered: libCEC version = 4.0.2, client version = 4.0.2, firmware version = 1, logical address(es) = Recorder 1 (1) , physical address: 3.0.0.0, git revision: libcec-4.0.2+30-8adc786~dirty, compiled on Mon Aug 21 09:41:41 UTC 2017 by [email protected]: Name or service not known on Linux 4.4.0-92-generic (armv7l), features: P8_USB, DRM, P8_detect, randr, RPi
DEBUG:   [            1502]     << Recorder 1 (1) -> TV (0): OSD name 'CECTester'
TRAFFIC: [            1502]     << 10:47:43:45:43:54:65:73:74:65:72
DEBUG:   [            1802]     << requesting power status of 'TV' (0)
TRAFFIC: [            1802]     << 10:8f
TRAFFIC: [            1936]     >> 01:46
DEBUG:   [            1936]     << Recorder 1 (1) -> TV (0): OSD name 'CECTester'
TRAFFIC: [            1936]     << 10:47:43:45:43:54:65:73:74:65:72
DEBUG:   [            1936]     >> TV (0) -> Recorder 1 (1): give osd name (46)
TRAFFIC: [            2587]     >> 01:90:00
DEBUG:   [            2587]     TV (0): power status changed from 'unknown' to 'on'
DEBUG:   [            2587]     expected response received (90: report power status)
DEBUG:   [            2587]     >> TV (0) -> Recorder 1 (1): report power status (90)
TRAFFIC: [            2587]     << 20:36
WARNING: [            2678]     unhandled response received: opcode=36 initiator=1 destination=0 response=0
DEBUG:   [            3588]     command 'standby' timeout
DEBUG:   [            4088]     unregistering all CEC clients
NOTICE:  [            4088]     unregistering client: libCEC version = 4.0.2, client version = 4.0.2, firmware version = 1, logical address(es) = Recorder 1 (1) , physical address: 3.0.0.0, git revision: libcec-4.0.2+30-8adc786~dirty, compiled on Mon Aug 21 09:41:41 UTC 2017 by [email protected]: Name or service not known on Linux 4.4.0-92-generic (armv7l), features: P8_USB, DRM, P8_detect, randr, RPi
DEBUG:   [            4088]     Recorder 1 (1): power status changed from 'on' to 'unknown'
DEBUG:   [            4088]     Recorder 1 (1): vendor = Unknown (000000)
DEBUG:   [            4088]     Recorder 1 (1): CEC version unknown
DEBUG:   [            4088]     Recorder 1 (1): osd name set to 'Recorder 1'
DEBUG:   [            4088]     Recorder 1 (1): device status changed into 'unknown'
DEBUG:   [            4088]     unregistering all CEC clients
DEBUG:   [            4163]     UnregisterLogicalAddress - releasing previous logical address
DEBUG:   [            4163]     logical address changed to Broadcast (f)
[email protected]:~ $

j’ai cherché sur internet autour de la libcec, et apparement y a pas mal de cas avec des télé samsung où on arrive à allumer mais pas éteindre. Après moi c’est une thomson mais j’ai rien trouvé avec des thomsons…


#26

Pour le coup moi j’ai deux tv samsung de branché dessus et je n’ai pas ce soucis (une de 10 ans et l’autre de 4 ans

@setchulainn je suppose que tu as essayé sur d’autre port HDMI de la TV ?

Je pencherais pour un problème du T-lynk comme le disait @piznel.

Je peu te proposer de passer par un autre module/matériel pour controller ta tv :
[Résolu] Commander un robot aspirateur avec Gladys?


#27

Salut @Furiousmax, désolé ton message s’est retrouvé noyé parmi les autres.

as tu tenté les différents test que j’ai fait faire à @setchulainn en dessous de ton poste ?


#28

Oui pour contrôler sa TV en dernier recours c’est le top, perso je me régale pour contrôler mon aspi (lancement du nettoyage et retour à sa base), la clim aussi, seule chose de dommage, est qu’il n’y est pas de retour d’état (température actuelle qu’on a définie,force de la soufflerie…)

A l’heure actuellement, le module/matériel que @spenceur te propose fait uniquement de l’IR :slight_smile:

D’ailleurs @spenceur , si tu comptes revoir ton module, sache que je suis toujours dispo pour tester :smiley:


#29

@spenceur merci pour ta reponse.
Effectivement j’ai suivi le post et j’ai les mêmes symptômes que @setchulainn.
Intéressant ton module IR mais c’est quand même bizarre que je n’arrive pas a piloter via CEC .
Pour info la télé est en norme hdmi 1.4. Et j’ai le simplink dessus donc avec une télécommande je contrôle le home cinema et vis versa via HDMI CEC j’imagine. Normalement je devrais etre capable de changer le volume changer de chaine etc. Tu utilises une libraire hdmi cec dans ton module? Tu as un lien?
Merci :slight_smile:


#30

gladys-hdmicec

Installation

  • Installer la librairie cec-utils :
    sudo aptitude install cec-utils
  • Ajouter ce module dans Gladys puis relancer Gladys

#31

Merci @Jean34,
c’est vrai que j’avais oublié que je pouvais trouver le nom ici.
@spenceur
bon je viens de refaire quelques tests…
En fait avec la télécommande de la TV, via simplink j’arrive à tout piloter sur le HT LG.
Allumer le HT, changer le volume, la source etc…

J’arrive à allumer la télé via la Nvidia Shield, et Gladys.

Par contre ce que je t’ai dit juste avant n’est pas vrai, avec la télécommande du HT je ne peux pas contrôler la TV et pas l’arrêter. La Shield non plus. Gladys non plus.

Donc je pense que du point de vu de LG la TV est un peu “maitre” et la seule commande admise et l’allumage de la TV via CEC mais ensuite c’est la TV qui éteins les autres appareils et pas le contraire. Donc je pourrais jamais éteindre la TV via Gladys :sneezing_face:


#32

Merci @Jean34 pour ton aide :slight_smile:
Effectivement c’est dommage, merci pour ton retour @Furiousmax :confused: