We are in Pli board here so it is right to leave them work on their code.
Ok, my mistake sorry, I thought this is a common thread for developing hdmi-cec functions at e2 stb's.
Posted 18 August 2011 - 13:09
We are in Pli board here so it is right to leave them work on their code.
Ok, my mistake sorry, I thought this is a common thread for developing hdmi-cec functions at e2 stb's.
on the Glassfibre 1GB DVB-C...
Posted 18 August 2011 - 13:10
Posted 18 August 2011 - 20:11
That was my intention . I will not say this way is right or that way is wrong. I only want to show another way to do some stuff without any rating.Sure this is a good place to discuss various design decisions.
That's ok, because everbody can see development at your e2 repository and here we can talk/discuss about it. We should do it as community.It's just that we are not working on a common single implementation.
Due to the nature of our various building environments and repositories, that simply won't work.
We find it easier to develop in our openpli e2 repository, because that gives us the possibility to implement external requirements, add new SWIG exports, etc, as they come along.
This does not mean we do not want to work together, but for now this simply is the only way for us to develop new functionality, because we do not have a shared open repository.
Posted 18 August 2011 - 20:26
Posted 18 August 2011 - 20:34
Why forwarding keys from the tv-remote to e2? Does it work flawlessly with other devices (ie tv -> bluray player)?
Posted 18 August 2011 - 20:53
CONNECT(input->keyEvent, eHdmiCEC::forwardRemoteControlKeys); void eHdmiCEC::forwardRemoteControlKeys(const eRCKey &key) { struct RCKeyToCecMessageMapping { int code; int flags; struct eHdmiCEC::cec_message message; }; const struct cec_message KEYRELEASE = {5,1,{0x45}}; static struct RCKeyToCecMessageMapping VPTlookup[] = { {KEY_VOLUMEUP, eRCKey::flagMake, {5,2,{0x44,0x41}}}, {KEY_VOLUMEUP, eRCKey::flagRepeat, {5,2,{0x44,0x41}}}, {KEY_VOLUMEUP, eRCKey::flagBreak, KEYRELEASE}, {KEY_VOLUMEDOWN, eRCKey::flagMake, {5,2,{0x44,0x42}}}, {KEY_VOLUMEDOWN, eRCKey::flagRepeat, {5,2,{0x44,0x42}}}, {KEY_VOLUMEDOWN, eRCKey::flagBreak, KEYRELEASE}, {KEY_MUTE, eRCKey::flagMake, {5,2,{0x44,0x43}}}, {KEY_MUTE, eRCKey::flagBreak, KEYRELEASE}, {-1,-1} }; if (!volumeForwardingEnabled) return; int i = 0; while(VPTlookup[i].code != -1) { if (VPTlookup[i].code == key.code && VPTlookup[i].flags == key.flags) { VPTlookup[i].address = volumeForwardingDestination; sendMessage(VPTlookup[i].message); } i++; } }And some receive code (audio system status 0x72) to determine the volumeForwardingDestination (tv or avr).[/i][/i][/i][/i][/i]
Posted 19 August 2011 - 15:52
Posted 19 August 2011 - 18:54
Vu+ Solo2 / Atemio Nemesis / Et9000 / TM Twin / Spark2
Astra 1/2/3 en HB / Harmony Touch, & 600
https://github.com/d...in-PLi-Full-HD-Night
Posted 19 August 2011 - 19:37
I just noticed that hdmi-cec is available on VUDUO.
On my samsung le40c650 amynet CEC is switching to hdmi2 input wenn conecting to LINUX STB instead of hdmi1.
My vuduo is on hdmi1 input. So something is mixed up.
For testing I putted it on hdmi2.
Amynet-CEC indetifies remote for linux stb, but the commands of the Samsung RC are not working.
eHdmiCEC: received message 9F [ePopen] command: ('hdparm', 'hdparm', '-y', '/dev/sda') sdt update done! eHdmiCEC: received message 85 eHdmiCEC: send message 82 10 00 child has terminated pipes closed poll: unhandled POLLERR/HUP/NVAL for fd 58(16) eHdmiCEC: received message 8D 02 Traceback (most recent call last): File "/usr/lib/enigma2/python/Components/HdmiCec.py", line 169, in messageReceived struct.error: unpack requires a string argument of length 1 (PyObject_CallObject(<bound method HdmiCec.messageReceived of <Components.HdmiCec.HdmiCec instance at 0x17e6800>>,(<enigma.iCECMessagePtr; proxy of <Swig Object of type 'ePtr< iCECMessage > *' at 0x1887da0> >,)) failed)
Vu+ Solo2 / Atemio Nemesis / Et9000 / TM Twin / Spark2
Astra 1/2/3 en HB / Harmony Touch, & 600
https://github.com/d...in-PLi-Full-HD-Night
Posted 19 August 2011 - 22:30
Posted 20 August 2011 - 07:56
elif message == "poweractive": 73 cmd = 0x90 74 data = str(struct.pack('B', 0x01)) 75 elif message == "powerinactive": 76 cmd = 0x90 77 data = str(struct.pack('B', 0x00))
Posted 23 August 2011 - 11:54
0 members, 3 guests, 0 anonymous users