Page 9 of 15

Re: [App] SamyGO RCremap for C/D(arm)/E/F/H with CMD support

Posted: Sun Oct 25, 2015 8:40 am
by sgi
I also would love to see that stupid football crap being remappable...
Maybe someone can recompile it with this patch applied:

Code: Select all

--- ./rchooks.c.ORI     2014-04-03 17:02:16.000000000 +0200
+++ ./rchooks.c 2015-10-25 08:38:49.884385000 +0100
@@ -36,8 +36,8 @@
 #define STATIC static
 
 
-static uint8_t rckeymap[256];
-char commands_map[256][200];
+static uint8_t rckeymap[275];
+char commands_map[275][200];
 
 //////////////////////////////////////////////////////////////////////////////
 //
--- ./samygo_rc_keys.h.ORI      2014-04-03 17:01:50.000000000 +0200
+++ ./samygo_rc_keys.h  2015-10-25 08:38:42.640729000 +0100
@@ -251,7 +251,8 @@
 #define KEY_EXT39 252
 #define KEY_EXT40 253
 #define KEY_EXT41 254
-#define KEY_LAST 254
+#define KEY_FOOTBALL 270
+#define KEY_LAST 272
 
 

Re: [App] SamyGO RCremap for C/D(arm)/E/F/H with CMD support

Posted: Sun Oct 25, 2015 3:07 pm
by zoelechat
Not as simple as that :)
I'd first like to verify if football key is really 270 (because I don't get keycodes the same way in logRCkey). Please try that version and give log when you press that key.

Re: [App] SamyGO RCremap for C/D(arm)/E/F/H with CMD support

Posted: Sun Oct 25, 2015 6:07 pm
by sgi
Hmm, got that:

Code: Select all

...
[RCremap] SendKeyPressInput [=184] [i1: 20, i2: 0]
...
which would be KEY_HDMI1 and != 270. This matches what
had been discovered a few posts before.

But interestingly, this version of libRCremap.so seems to
catch only keys pressed on the standard (big) remote control.
Keys pressed on the smart remote control aren't logged at
all. This was different when trying libLogRCkey.so...

Will play around later, now the TV is occupied...

Re: [App] SamyGO RCremap for C/D(arm)/E/F/H with CMD support

Posted: Sun Oct 25, 2015 6:10 pm
by zoelechat
Yeah, exactly what I already told above: Football=Sport=KEY_HDMI1 :)
zoelechat wrote:With a little luck maybe Football=Sport:

Code: Select all

Sport Mode :	[KEY_HDMI1]
But if nobody tries nor report...
However I guess it won't work with "small" remote if no keys are logged.

Re: [App] SamyGO RCremap for C/D(arm)/E/F/H with CMD support

Posted: Sun Oct 25, 2015 6:15 pm
by sgi
Yes, he wrote: "Ok, I'll try the sport." And since he replied with
the 270 later, I implied it didn't work. No worries, I'll try and report...

Re: [App] SamyGO RCremap for C/D(arm)/E/F/H with CMD support

Posted: Sun Oct 25, 2015 6:22 pm
by zoelechat
Actually both libs use totally different ways to get keycodes, that's why results may vary. More, I also didn't expect codes above 254 when I quickly did logRCkey, and I didn't know there was just half a line to uncomment in RCremap source to log keys :P

Re: [App] SamyGO RCremap for C/D(arm)/E/F/H with CMD support

Posted: Sun Oct 25, 2015 8:01 pm
by sgi
Here are some results: The map file

Code: Select all

[
    {
        "KEY_CHDOWN": "KEY_VOLDOWN"
    },
    {
        "KEY_CHUP": "KEY_VOLUP"
    },
    {
        "KEY_HDMI1": "KEY_MENU"
    }
]
actually maps the football crap to the menu key ;-):

Code: Select all

...
[RCremap] SendKeyPressInput [=184] [i1: 20, i2: 0]
[RCremap] SendKeyPressInput remapped to [=26] [i1: 20, i2: 0]
...
But it seems that libRCremap.so works only with the standard, big
remote control. The smart RC is being ignored silently (for ALL keys,
not only KEY_HDMI1). This applies to both versions of libRCremap,
the "offical" one and the one you made today. Key presses from the
smart RC are also not even logged to /dtv/RCremap.log.

But: logRCkey.so seems to work with both remote controls -- this is
probably due to:
Actually both libs use totally different ways to get keycodes...

Re: [App] SamyGO RCremap for C/D(arm)/E/F/H with CMD support

Posted: Sun Oct 25, 2015 9:01 pm
by zoelechat
There is no difference between 1st post and today's RCremap, I just enabled log :)
Looks like it's simply not intended to work with soap remote, would need to rewrite part of lib I guess...

...
Could you please tell what does say that version log on pressing football (and other keys) on soap:

Re: [App] SamyGO RCremap for C/D(arm)/E/F/H with CMD support

Posted: Mon Oct 26, 2015 8:51 pm
by sgi
zoelechat wrote: Could you please tell what does say that version log on pressing football (and other keys) on soap:
Hmm, this is a funny version:

If I just load this version, ALL keys of BOTH RCs will be ignored completely. That is,
the feedback LED of the TV (UE32H6270, pimped to H6470, T-MST14DEUC_2120.0)
will still be flickering but the commands get ignored (TV is still alive, though).

If I load libLogRCkey.so before loading libRCremap.so it works. However, no keys
of the "soap" RC are being logged (in libRCremap.so) and therefore also not
mapped...

Re: [App] SamyGO RCremap for C/D(arm)/E/F/H with CMD support

Posted: Mon Oct 26, 2015 9:09 pm
by zoelechat
sgi wrote:If I just load this version, ALL keys of BOTH RCs will be ignored completely. That is,
the feedback LED of the TV (UE32H6270, pimped to H6470, T-MST14DEUC_2120.0)
will still be flickering but the commands get ignored (TV is still alive, though).
?? Funny indeed, can you reproduce? Log? (NEED log anyway). Are you sure other version wasn't already injected?
sgi wrote:If I load libLogRCkey.so before loading libRCremap.so it works. However, no keys
of the "soap" RC are being logged (in libRCremap.so) and therefore also not
mapped...
Honestly I don't see any relationship between both libs that could lead to such behaviour...
Btw, which key/numbers logRCkey reports on other keys of soap (not only football), are they accurate ones or sth fancy like 270?
Other question: is that smart remote IR stuff? bluetooth? wifi? I have absolutely no idea, except it's anything but "smart" :)