Jump to content


Photo

HDMI-CEC driver & device


  • Please log in to reply
131 replies to this topic

Re: HDMI-CEC driver & device #81 bacicciosat

  • Senior Member
  • 540 posts

+100
Excellent

Posted 23 August 2011 - 22:45

Just implementing a 'feature abort' after every unhandled message doesn't work. There would be too much replies. Some message are just sending status and don't request anything from the box. Such message don't need a feature abort reply.


True.
And how are going your tests ?
I was wondering about the performance of the current code. I was a little surprised when pieterg decided to move the code on python side because i though that cec communication is slow and i don't love all this use of signals and resources in the jumps between c++ and python. But maybe i am wrong and there is not significative impact on performance.
I have a doubt about the function "sendMessages" too. I was wondering if it is a good idea to send a sequence of cec messages without a timing. I remember in my tests that the destinator is not always in ready state and could ignore the message or reply with a feature abort breaking the sequence.

Re: HDMI-CEC driver & device #82 pieterg

  • PLi® Core member
  • 32,766 posts

+245
Excellent

Posted 23 August 2011 - 22:54

I was wondering about the performance of the current code. I was a little surprised when pieterg decided to move the code on python side because i though that cec communication is slow and i don't love all this use of signals and resources in the jumps between c++ and python. But maybe i am wrong and there is not significative impact on performance.


don't be fooled by the abstract nature of 'signals', it's just a few lines of c++ code, in fact it's the same as calling a (blocking) function. signals just help to break object oriented constraints, in such a way that it is more or less accepted (at least by the people that use them) ;)

And hdmi-cec is so low-rate that it could never really have an effect on on the e2 performance IMHO

Re: HDMI-CEC driver & device #83 plnick

  • Senior Member
  • 58 posts

+4
Neutral

Posted 27 August 2011 - 21:09

It is not that hard. Only thing you'll need in python is a keyrelease event.


Sorry for late reply,

At the moment I implement the volume control for A/V receivers without changing C++ part and do it only at python/plugin side. For this I take this from InfoBarGenerics.py to catch key events
eActionMap.getInstance().bindAction('', -0x7FFFFFFF, volumekeyPressed)

Sending vol up/down/mute commands is done by this
def volumekeyPressed(key, flag):
    if config.hdmicec.avvolumecontrol.value:
	   if key == 113 or key == 114 or key == 115:
		  address = int("5",16)
		  cecmessagesendkey = int("44",16)
		  cecmessagekeyevent = None
		  if flag == 1:
			 cecmessagekeybreak = int("45",16)
			 cmd = struct.pack('B',cecmessagekeybreak)
		  else:
			 if key == 113:
				cecmessagekeyevent = int("43",16)
			 elif key == 114:
				cecmessagekeyevent = int("42",16)
			 elif key == 115:
				cecmessagekeyevent = int("41",16)
			 if cecmessagekeyevent:
				cmd = struct.pack('BB',cecmessagesendkey,cecmessagekeyevent)
		  if cmd:
			 eHdmiCEC.getInstance().sendMessage(address, len(cmd), str(cmd))
		  return 1
    return 0

I know, it is not nice but it works (tested with Yamaha A/V receiver) /images/smiley/smile.gif

Is there a TV which accepts volume control ? My Samsung does not accept the 0x44 CEC messages.

Re: HDMI-CEC driver & device #84 Sjaaky

  • Senior Member
  • 7,443 posts

+41
Good

Posted 28 August 2011 - 09:38

Ah, nice one, didn't know that. It is a nicer method than my current implementation. This way you don't need to explicitly disable the normal VolumeControl.

I don't know of a tv which does accept 0x44. No positive feedback yet. I read cec was designed to let you control all devices with the tv remote. So a tv would never need to accept keypresses over cec, whereas an av receiver would. So I guess chances are slim.
Maybe something can be done with the vendor specific commands.

Edited by Sjaaky, 13 May 2013 - 12:43.


Re: HDMI-CEC driver & device #85 bacicciosat

  • Senior Member
  • 540 posts

+100
Excellent

Posted 22 September 2011 - 11:48

I have a stupid question pieterg.
Why have increased rc to +2 ?
eAutoInitP0<eHdmiCECInit> init_hdmicec(eAutoInitNumbers::rc + 2, "Hdmi CEC driver");


Re: HDMI-CEC driver & device #86 pieterg

  • PLi® Core member
  • 32,766 posts

+245
Excellent

Posted 22 September 2011 - 12:42

+2 was not actually necessary, +1 would have been enough.
At that time I was thinking about connecting an eRCInputEventDriver (and eInputDeviceInit is initialised at rc + 1).
But we only need eRCInput to be initialised, so +1 would have been enough it turns out.



Re: HDMI-CEC driver & device #87 bacicciosat

  • Senior Member
  • 540 posts

+100
Excellent

Posted 22 September 2011 - 12:54

Thanks for explanation.
Indeed i have setup it to +1 in my file so i was wandering if it was wrong.

Re: HDMI-CEC driver & device #88 Dimitrij

  • PLi® Core member
  • 10,334 posts

+351
Excellent

Posted 22 September 2011 - 16:50

@pieterg
You can add the option "Handle deepstandby to zap timers".
This is when the timer is not recording, and zap.
Then you can use the tuner as an alarm clock/images/smiley/smile.gif .

HdmiCec.py
...
if config.hdmicec.handle_deepstandby_zap_timers.value:
if getFPWasTimerWakeup():
????????? in the next 360 seconds = zap timer: ?????
self.wakeupMessages()

Re: HDMI-CEC driver & device #89 Dimitrij

  • PLi® Core member
  • 10,334 posts

+351
Excellent

Posted 30 September 2011 - 05:44

Does not work HdmiCEC "Forward volume keys".
File "/usr/lib/enigma2/python/mytest.py", line 432, in <module>
    from Components.VolumeControl import VolumeControl
  File "/usr/lib/enigma2/python/Components/VolumeControl.py", line 7, in <module>

GigaBlue UHD Quad 4K /Lunix3-4K/Duo 4K


Re: HDMI-CEC driver & device #90 Sjaaky

  • Senior Member
  • 7,443 posts

+41
Good

Posted 30 September 2011 - 06:24

Can you post the error message? Your excerpt is 'on spot' but too small.

Re: HDMI-CEC driver & device #91 Dimitrij

  • PLi® Core member
  • 10,334 posts

+351
Excellent

Posted 8 October 2011 - 16:41

Can you post the error message? Your excerpt is 'on spot' but too small.

Sorry, wrong.

GigaBlue UHD Quad 4K /Lunix3-4K/Duo 4K


Re: HDMI-CEC driver & device #92 Dimitrij

  • PLi® Core member
  • 10,334 posts

+351
Excellent

Posted 8 October 2011 - 16:45

Can you post the error message? Your excerpt is 'on spot' but too small.

Sorry, wrong.

@pieterg
You can add the option "Handle deepstandby to zap timers".
This is when the timer is not recording, and zap.
Then you can use the tuner as an alarm clock/images/smiley/smile.gif .

Added function to enable zap timer.
Added Russian translation.

Edited by Dima73, 8 October 2011 - 16:47.

GigaBlue UHD Quad 4K /Lunix3-4K/Duo 4K


Re: HDMI-CEC driver & device #93 arneande

  • Senior Member
  • 97 posts

+1
Neutral

Posted 8 October 2011 - 23:01

Hi
this plugn are not for 8000 because we have dvi -hdmi is that right?

regard
arneande

Re: HDMI-CEC driver & device #94 hemertje

  • Forum Moderator
    PLi® Core member
  • 33,503 posts

+118
Excellent

Posted 9 October 2011 - 12:57

all DMM boxes do NOT support HDMI-CEC!

on the Glassfibre 1GB DVB-C...


Re: HDMI-CEC driver & device #95 bigroma

  • Member
  • 35 posts

+11
Neutral

Posted 16 October 2011 - 22:18

I have a little problem with my Philips 40PFL9705 and et9000. If one device switched on another one via HDMI-CEC in my TV doesn't work "Auto zoom". if I switch to another HDMI device(PC) on my TV and back to et9000 autozoom works fine. It isn't big problem and may be it's TV problem, but i hope OpenPLI team will find solution :)

Re: HDMI-CEC driver & device #96 ims

  • PLi® Core member
  • 13,806 posts

+214
Excellent

Posted 26 October 2011 - 16:14

D Q: some as HDMI-CEC does not work on DM800SE ?
Kdo nic nedělá, nic nezkazí!

Re: HDMI-CEC driver & device #97 WanWizard

  • PLi® Core member
  • 70,556 posts

+1,813
Excellent

Posted 26 October 2011 - 16:28

I don't think any of the DM boxes has support for CEC...

Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: HDMI-CEC driver & device #98 daddelfalk

  • Senior Member
  • 489 posts

+17
Neutral

Posted 26 October 2011 - 16:29

Hi,

right, yes all Dreamboxes have still no HDMI-CEC Support in their Closed Source drivers.


Re: HDMI-CEC driver & device #99 chant

  • Senior Member
  • 279 posts

+1
Neutral

Posted 1 November 2011 - 23:14

Hello,

I have a Sony Bravia KDL-40X3500 and it does switch of when I switch of my ET9000. I tried all the different settings for my tv to wake up when I switch on the ET9000 but nothing seems to work.
When I switch on my TV de ET9000 switches on. But I want my tv to switch on when I switch on my ET9000. Is there anything I can do to get it work? Or does somebody else have a Sony tv that does switch on? If yes, what are the settings?
Hopefully somebody can help me with this becase I tried every option that seems logical to me (and more...)

Thanks,

Chant

Edited by chant, 1 November 2011 - 23:15.


Re: HDMI-CEC driver & device #100 pieterg

  • PLi® Core member
  • 32,766 posts

+245
Excellent

Posted 1 November 2011 - 23:21

maybe your tv closes down cec when it goes to standby? Do you have settings to control what is disabled in standby?
(my panasonic for instance has settings to enable/disable 'viera link' in standby / normal operation)


6 user(s) are reading this topic

0 members, 5 guests, 0 anonymous users


    Bing (1)