HDMI-CEC problems
#1
Posted 1 March 2012 - 22:50
Vu+ Ultimo is connected to Pioneer VSX-921 at HDMI-3, which is connected to a Panasonic TV-Set HDMI-1.
Address is reported as 1.3.0.0.
TV goes to standby when STB goes to standby (-> good!)
TV switches on when STB is switched on (-> good)
TV switches to DVB-T, no matter of the config to switch input is set or not (-> problem#1)
A/V-Receiver switches on if STB is switched on, no matter if the config is set or not (-> problem#2)
With the VTI image, I had no issues at all with this setup.
I had a look at their implementation (hdmi_cec.cpp, HdmiCec.py), which looks very different to the one used in PLi image.
Although I was able to build an OpenPli image, my knowledge of all this stuff is obviously not good enough to replace the HdmiCec-implementation of OpenPli with the one used by VTI. I tried to replace hdmi_cec.cpp, hdmi_cec.h, HmdiCec.py and modified enigma_python.i, but I did not manage it to build such an modified enigma2-binary.
What are other user's experiences with the HDMI-CEC implementation of OpenPli? No issues? The VTI-version looks a bit better to me, since the C++ part is minimal and basically evertyhing can be tested at python-level. But that's just an impression from a Noob at the moment...
Re: HDMI-CEC problems #2
Re: HDMI-CEC problems #3
Re: HDMI-CEC problems #4
Posted 1 March 2012 - 23:21
What might be happening is this;
hdmi link established between amp and stb.
stb address: 3.0.0.0
tv on, stb transmits activation from 3.0.0.0
tv switches to input 3
hdmi link established between tv --> amp --> stb
stb changes its address to 1.3.0.0
and sends activation from 1.3.0.0 (ignored by the tv, because it has already switched to 3.0.0.0)
fixing the address to 1.3.0.0 might avoid this.
Re: HDMI-CEC problems #5
Posted 1 March 2012 - 23:38
Also the plugin settings for the Amp has no effect at all. My amp switches always on when the STB switches on, and it never switches off when the STB switches off, no matter of any setting. There's really something totally going wrong in my setup. I'd be happy if I could help with some debugging, but I'll need some advice.
Re: HDMI-CEC problems #6
Re: HDMI-CEC problems #7
Posted 2 March 2012 - 19:50
TV switches to wrong input. See log below.
Edit: As I write this, i see that it may be a problem with STB set to "fixed address", as it has NOT a fixed address when power-toggling the A/V-Receiver. Will do a second test with no fixed address.
VuUltimo Standby
action -> GlobalActions power_down
action -> GlobalActions power_up
enter standby
eHdmiCEC: send message 36
eHdmiCEC: send message 36
eHdmiCEC: received message A0 00 80 45 20 01 11
VuUltimo PowerOn
action -> StandbyActions power
leave standby
eHdmiCEC: send message 04
eHdmiCEC: send message 70 13 00
Timeout!
eHdmiCEC: received message A0 00 80 45 20 00 01
AV Receiver PowerOn
eHdmiCEC: received message 87 00 80 45
eHdmiCEC: received message 87 00 80 45
eHdmiCEC: received message 84 00 00 00
eHdmiCEC: received message 84 10 00 05
eHdmiCEC: received message 46
eHdmiCEC: send message 47 76 75 75 6C 74 69 6D 6F
eHdmiCEC: received message A0 00 E0 36 85 00 03
eHdmiCEC: received message 8C
eHdmiCEC: send message 87 00 00 00
eHdmiCEC: received message 46
eHdmiCEC: send message 47 76 75 75 6C 74 69 6D 6F
eHdmiCEC: received message 87 00 80 45
eHdmiCEC: received message 87 00 80 45
eHdmiCEC: received message 87 00 80 45
eHdmiCEC: received message 8C
eHdmiCEC: send message 87 00 00 00
eHdmiCEC: received message 8C
eHdmiCEC: send message 87 00 00 00
eHdmiCEC: received message 8C
eHdmiCEC: send message 87 00 00 00
AV Receiver standby
eHdmiCEC: received message 87 00 80 45
eHdmiCEC: received message 8F
eHdmiCEC: send message 90 00
Edited by feelfree, 2 March 2012 - 19:55.
Re: HDMI-CEC problems #8
Posted 2 March 2012 - 20:48
Plugin is configured to switch TV on/off when STB goes on/off, but do not switch input of TV and do not touch A/V-Receiver.
Are you sure? I see it send 70 13 00, 'set system audio mode' which only happens when you configure the av receiver to be woken up by the stb.
In the remaining messages, I see nothing which would trigger the tv to switch to the wrong input.
Unless perhaps the other input is the default, and since you don't send a 'source active' commmand, it decides to switch to the default.
Re: HDMI-CEC problems #9
Posted 2 March 2012 - 21:17
My TV set is configured to hotel-mode and starts ALWAYS with HDMI1. The only exception is the hdmi-cec implementation of OpenPli.... :-(
BTW: Have you ever considered to use the different approach from plnick (HdmiCec.py in dvbapp at code.vuplus.com)? This plugin has WAY more possibilities and works flawlessly with my setup.
Re: HDMI-CEC problems #10
Posted 2 March 2012 - 21:49
We have more options, so I think we should just fix bugs that we find.
Just found a typo, which would explain why 'set system audio mode' is sent.
Doesn't explain why the tv would switch though.
Unless the avr triggers it.
Re: HDMI-CEC problems #11
Posted 2 March 2012 - 22:19
We have more options
Huh? This is their setup-code:
def createSetup(self): 77 self.list = [] 78 self.hdmienabled = getConfigListEntry(_(_("HDMI CEC enabled:")), config.hdmicec.enabled) 79 self.hdmiactivesourcereply = getConfigListEntry(_(_("Active Source Reply On:")), config.hdmicec.active_source_reply) 80 self.hdmitvstandby = getConfigListEntry(_("VU standby => TV activity:"), config.hdmicec.standby_message) 81 self.hdmitvdeepstandby = getConfigListEntry(_("VU deepstandby => TV activity:"), config.hdmicec.deepstandby_message) 82 self.hdmitvwakeup = getConfigListEntry(_("VU on => TV activity:"), config.hdmicec.wakeup_message) 83 self.hdmivustandby = getConfigListEntry(_("TV standby => VU+ activity:"), config.hdmicec.vustandby_message) 84 self.hdmivuwakeup = getConfigListEntry(_("TV on => VU+ activity:"), config.hdmicec.vuwakeup_message) 85 self.hdmitvinput = getConfigListEntry(_("Choose TV HDMI input:"), config.hdmicec.tvinput) 86 self.hdmiavinput = getConfigListEntry(_("Choose A/V-Receiver HDMI input:"), config.hdmicec.avinput) 87 self.hdmiavvolup = getConfigListEntry(_("A/V-Receiver volume up:"), config.hdmicec.avvolup) 88 self.hdmiavvoldown = getConfigListEntry(_("A/V-Receiver volume down:"), config.hdmicec.avvoldown) 89 self.hdmiavvolmute = getConfigListEntry(_("A/V-Receiver toggle mute:"), config.hdmicec.avvolmute) 90 self.hdmiavpwron = getConfigListEntry(_("A/V-Receiver power on:"), config.hdmicec.avpwron) 91 self.hdmiavpwroff = getConfigListEntry(_("A/V-Receiver power off:"), config.hdmicec.avpwroff) 92 self.hdmitvpwron = getConfigListEntry(_("TV power on:"), config.hdmicec.tvpwron) 93 self.hdmitvpwroff = getConfigListEntry(_("TV power off:"), config.hdmicec.tvpwroff) 94 self.hdmienabletvrc = getConfigListEntry(_("Use TV remotecontrol:"), config.hdmicec.enabletvrc) 95 self.hdmidevicename = getConfigListEntry(_("Set VU device name:"), config.hdmicec.devicename) 96 self.hdmiinputaddress = getConfigListEntry(_("Address (0~FF):"), config.hdmicec.input_address) 97 self.hdmiinputvalue1 = getConfigListEntry("Value 1 (message):", config.hdmicec.input_value1) 98 self.hdmiinputvalue2 = getConfigListEntry("Value 2 (optional):", config.hdmicec.input_value2) 99 self.hdmiinputvalue3 = getConfigListEntry("Value 3 (optional):", config.hdmicec.input_value3) 100 self.hdmiinputvalue4 = getConfigListEntry("Value 4 (optional):", config.hdmicec.input_value4) 101 self.hdmilogenabledfile = getConfigListEntry("Log to file enabled :", config.hdmicec.logenabledfile) 102 self.hdmilogenabledserial = getConfigListEntry("Serial log enabled :", config.hdmicec.logenabledserial)
I miss the "choose HDMI-input" configs in your code at the very first place.
Re: HDMI-CEC problems #12
Posted 2 March 2012 - 22:51
A/V-Reveiver now NEVER wakes up or switches off, regardless of the config.
TV wakes up when NOT setting fixed address, but still switches to wrong input.
I the A/V-Receiver is already switched on, TV does not switch on when powering the STB.
Edited by feelfree, 2 March 2012 - 22:56.
Re: HDMI-CEC problems #13
Re: HDMI-CEC problems #14
Re: HDMI-CEC problems #15
Posted 2 March 2012 - 23:44
(normally, each cec node will discover its own physical address)
That would probably also explain the problems you're having.
Re: HDMI-CEC problems #16
Posted 9 March 2012 - 11:11
Vu+ stanby: eHdmiCEC: send message 04 eHdmiCEC: send message 82 10 00 eHdmiCEC: send message 8E 00 eHdmiCEC: send message 44 6D eHdmiCEC: send message 70 10 00 eHdmiCEC: received message 8C
Vu+ power on: eHdmiCEC: send message 87 00 00 00 eHdmiCEC: received message A0 00 80 45 20 00 01 eHdmiCEC: received message 8C eHdmiCEC: send message 87 00 00 00
Set correct input ith tv remote: eHdmiCEC: received message 80 00 00 10 00 eHdmiCEC: received message 86 10 00 eHdmiCEC: send message 82 10 00
And here is log from Vti:
[VTI HDMI-CEC] received cec message 85 from 0 [VTI HDMI-CEC] send cec message 82:10:0 to f [VTI HDMI-CEC] send cec message 8e:0 to f [VTI HDMI-CEC] received cec message 85 from 0 [VTI HDMI-CEC] send cec message 82:10:0 to f [VTI HDMI-CEC] send cec message 8e:0 to f [VTI HDMI-CEC] received cec message 85 from 0 [VTI HDMI-CEC] send cec message 82:10:0 to f [VTI HDMI-CEC] send cec message 8e:0 to f [VTI HDMI-CEC] ** StandByMessage ** send message: 36 to address 0 [VTI HDMI-CEC] ** InActiveSourceMessage ** send message: 9d:10:0 to address f [VTI HDMI-CEC] ** InActiveSourceMessage ** send message: 9d:10:0 to address f [VTI HDMI-CEC] received cec message a0 from 0 [VTI HDMI-CEC] ** WakeUpMessage ** send message: 4 to address 0 [VTI HDMI-CEC] ** ActiveSourceMessage ** send message: 82:10:0 to address f [VTI HDMI-CEC] ** Active VU Message ** send message: 85 to address f [VTI HDMI-CEC] received cec message a0 from 0 [VTI HDMI-CEC] received cec message a0 from 0 [VTI HDMI-CEC] received cec message 8c from 0 [VTI HDMI-CEC] received cec message 8c from 0 [VTI HDMI-CEC] received cec message 8c from 0 [VTI HDMI-CEC] ** WakeUpMessage ** send message: 4 to address 0 [VTI HDMI-CEC] ** ActiveSourceMessage ** send message: 82:10:0 to address f [VTI HDMI-CEC] ** Active VU Message ** send message: 85 to address f [VTI HDMI-CEC] ** WakeUpMessage ** send message: 4 to address 0 [VTI HDMI-CEC] ** ActiveSourceMessage ** send message: 82:10:0 to address f [VTI HDMI-CEC] ** Active VU Message ** send message: 85 to address f [VTI HDMI-CEC] ** WakeUpMessage ** send message: 4 to address 0 [VTI HDMI-CEC] ** ActiveSourceMessage ** send message: 82:10:0 to address f [VTI HDMI-CEC] ** Active VU Message ** send message: 85 to address f
Also when I turn on with tv remote - vu is still off
Edited by holi, 9 March 2012 - 11:13.
Re: HDMI-CEC problems #17
Posted 10 April 2012 - 23:22
Panasonic G30, hotelmode on, always hdmi1 at startup, fixed ip on vu+ and tv.
viera link on,link on on,lik off on, etc.
When i power on/off the tv with the remote from the tv everything works flawless, when i power on/off with the remote frome the vu+ the tv never switches to hdmi1 -> always to analog signal.
I didn't scan for analog/dvb-c or dvb-t channels and put all inputs on the tv on ignore (exept for hdmi1 and sdcard/usb ofcourse)
Re: HDMI-CEC problems #18
Re: HDMI-CEC problems #19
Re: HDMI-CEC problems #20
Posted 28 September 2012 - 20:26
I think, there must be some delay between commands ... added time.delay(0.1) in HdmiCec.py and it seems, it works for me now well.
import time ... eHdmiCEC.getInstance().sendMessage(address, cmd, data, len(data)) time.sleep(0.1)
4 user(s) are reading this topic
0 members, 3 guests, 0 anonymous users
-
Bing (1)