Page 14 of 15

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

Posted: Tue Aug 22, 2017 2:51 pm
by zoelechat
You mean "key name doesn't correspond to its function"? Yeah it's expected :)

Maybe you can find more there (possible I've already posted this, don't remember where...):

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

Posted: Sun Oct 08, 2017 6:36 pm
by bogdan0
Hello,

Interesting tool.
Any progress to remap the keys of "soap"/Bluetooth remote control?
I need to add "ch list".

Thank you

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

Posted: Tue Oct 17, 2017 9:53 pm
by sectroyer
bogdan0 wrote: Sun Oct 08, 2017 6:36 pm Any progress to remap the keys of "soap"/Bluetooth remote control?
No :)

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

Posted: Thu Dec 21, 2017 6:33 pm
by beatfreak
if you try to bind a key to two commands: (or the command line is too long?)
rcSGOout:
SpoilerShow

Code: Select all

samyGOso v1.2.5 (c) bugficks 2013-2014, sectroyer 2014-2015
Injecting '/mtd_rwcommon/SamyGO/opt/privateer/usr/libso/libRCremap.so' resident: '1'
adding libc addr to found symaddress c81a0 + 42c2d000 42cf51a0
mprotect: 0x42cf51a0
dlopen: 0x41120a74
dlclose: 0x41120c74
dlsymaddr: 0x41120cd8
pc=42a64158 lr=42a67928 sp=beaac8e0 fp=beaac934
r0=fffffe00 r1=0
r2=1 r3=0
stack: 0xbea98000-0xbeaad000 length = 86016
executing injection code at 0xbeaac790
library injection completed!
Succeeded.
RCremap.log:
SpoilerShow

Code: Select all

# cat /dtv/RCremap.log 
[RCremap] SamyGO RCremap v0.3.5 log - (c) bugficks 2013, small fixes by sectroyer 2014
[RCremap] mapping key: '3' to 'KEY'
[RCremap] skipping invalid old key: '▒'
[RCremap] Trying to get _ZN9KeyCommon17SendKeyPressInputEiis on C.
[RCremap] Found _ZN9TDBuilder8GetTDiCPE16TDSourceObject_k location at: 0x002dd460
[RCremap] Found _fini location at: 0x01aacb24
[RCremap] text range: @0x0025d460 -> @0x0020d460
[RCremap] rodata range: @0x01aacb24 -> @0x0a2acb24
[RCremap] Found SendKeyPressInput at @0x0024546c
[RCremap] SendKeyPressInput address: 0x0024546c
[RCremap] _ZN9KeyCommon17SendKeyPressInputEiis address: 0x00245330
[RCremap] 1 _ZN9KeyCommon17SendKeyPressInputEiis [0x245330].
[RCremap] init done...
librcremap.config:
SpoilerShow

Code: Select all

# cat /mtd_rwcommon/SamyGO/opt/privateer/usr/libso/libRCremap.config 
[
    {
        "KEY_RED": "KEY_RED"
    },
    {
        "KEY_YELLOW": "CMD:/mtd_rwcommon/SamyGO/etc/init.d/02_10_wakelan.init.dis start && /mtd_rwcommon/SamyGO/etc/init.d/06_07_touch_my_ip.init restart"
    }
]
so i have to create some kind of wrapper script that calls the other scripts?
will it work if i use : "CMD:$SYSROOT/etc/init.d/myscript.sh" ? (or $DISTROOT)

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

Posted: Thu Dec 21, 2017 11:11 pm
by zoelechat
so i have to create some kind of wrapper script that calls the other scripts?
Since system() calls /bin/sh -c, can be odd whether CMD is interpreted with quotes or not, so indeed better use intermediary script if more than one command. Otherwise looks you're below supposed 200 chars limit.
will it work if i use : "CMD:$SYSROOT/etc/init.d/myscript.sh" ? (or $DISTROOT)
Nope. SamyGO env is unknown to... exeDSP! :)

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

Posted: Wed May 23, 2018 2:59 pm
by Riquet065
This app works good for me, thank you very much!

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

Posted: Thu May 24, 2018 5:22 pm
by Riquet065
And thank you the tool libLogRCkey!
I never user 3D, i would remap this key (3D/2D) but i never find which one it's. And with LogRCkey.log:
SpoilerShow
[LogRCkey] SamyGO D/E/F/H libLogRCkey v0.0.5 - (c) zoelechat 2015
[LogRCkey] _ZN12KeyInputBase17t_ProcessKeyValueEPh [0x9afc08].
[LogRCkey] Init done, now monitoring RC keypress...
[LogRCkey] Input: 0 Key: 159 KEY_PANNEL_CHDOW
...
Then it's the "KEY_PANNEL_CHDOWN" :-)!
Great job, thank you!

Edit:
Maybe the easier way to have this info would be hier :-)!
In the list of most interesting keys spoiler, first line :-)!

Edit2:
To use with samyGOrc, i must use only one argument, then to remap the e-manual key to see videos in my devices i do:
LibRCremap.config:
SpoilerShow
[
{
"KEY_VOLUP": "KEY_VOLUP"
},
{
"KEY_TOPMENU": "CMD:/mnt/opt/privateer/usr/bin/samyGOrc_video.sh"
}
]
And the samyGOrc_video.sh:
SpoilerShow
#!/bin/sh
[ $(pidof ${0##*/}) ] 2>/dev/null || exit 0

KEY_MTS=0
KEY_SOURCE=1
.... #of course here are all keys
KEY_EXT38=251
KEY_EXT39=252

PATCHDIR=${0%/*}
PID_EXE=$(pidof exeDSP || pidof exeTV)
$PATCHDIR/samyGOrc -p $PID_EXE $KEY_CONTENTS
sleep 2
$PATCHDIR/samyGOrc -p $PID_EXE $KEY_LEFT
$PATCHDIR/samyGOrc -p $PID_EXE $KEY_ENTER
sleep 1
$PATCHDIR/samyGOrc -p $PID_EXE $KEY_ENTER
sleep 2
$PATCHDIR/samyGOrc -p $PID_EXE $KEY_UP
$PATCHDIR/samyGOrc -p $PID_EXE $KEY_RIGHT
sleep 2
$PATCHDIR/samyGOrc -p $PID_EXE $KEY_DOWN
$PATCHDIR/samyGOrc -p $PID_EXE $KEY_DOWN
$PATCHDIR/samyGOrc -p $PID_EXE $KEY_DOWN
$PATCHDIR/samyGOrc -p $PID_EXE $KEY_DOWN
$PATCHDIR/samyGOrc -p $PID_EXE $KEY_DOWN
$PATCHDIR/samyGOrc -p $PID_EXE $KEY_RIGHT
$PATCHDIR/samyGOrc -p $PID_EXE $KEY_RIGHT
$PATCHDIR/samyGOrc -p $PID_EXE $KEY_ENTER
And all works very good :-)!

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

Posted: Sun Mar 17, 2019 10:46 pm
by miras_mi
Did someone have a codes for HTS options available only from smart remote control (KEYPAD):
HTS POWER and HTS SOURCE?
Thanks in advance

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

Posted: Sun Mar 17, 2019 11:11 pm
by miras_mi
Ups !!
Looks like my question about HTS options was not to clever ...
Bluetooth options still not supported right?

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

Posted: Mon Mar 18, 2019 12:33 am
by zoelechat
Right :)