Page 12 of 15

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

Posted: Mon Mar 14, 2016 7:31 pm
by zoelechat
You're using Notepad++ to edit .config file and you verified linefeeds were set to Unix format, right? :)
What does say libRCremap log? (/dtv/RCremap.log)

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

Posted: Tue Mar 15, 2016 9:37 am
by Algol
Sorry, zoelchat, I was so tired yesterday that I forgot to check if someone answered on the next page of the board. :lol:
I tried a lot to make various config scripts to work, but I failed miserably, so I presented the simplest script that should work because all parts of it work from the telnet command line.

Yes, I used Notepad++ to create the config file and the EOL was set to Unix/OSX format.
With this simple config script this is log file:

Code: Select all

[RCremap] SamyGO RCremap v0.3.5 log - (c) bugficks 2013, small fixes by sectroyer 2014
[RCremap] mapping key: 'KEY_GREEN' to 'KEY_GREEN'
[RCremap] mapping key: 'KEY_RED' to command: 'samyGOso -d -A -B -r -l /mnt/opt/privateer/usr/libso/libScreenShot.so ALT SOURCE PATH:/dtv/usb/sdb1/__screenshots'
[RCremap] 1 _ZN9KeyCommon17SendKeyPressInputEiis [0x9f2684].
[RCremap] init done...
What should I put in the config to make RCremap by pressing the red key to teke a screenshot?

Before I asked for help I really tried a lot of configs, but neither one worked...

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

Posted: Tue Mar 15, 2016 9:56 am
by zoelechat
I think I already told you what to do in libScreenShot thread. Directly injecting as CMD is pointless, you must use intermediate provided script.

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

Posted: Tue Mar 15, 2016 10:07 am
by Algol
Ok... I'll try once again with your advice. Thank you!

EDIT
Which extension libRCremap_capture_H should got?

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

Posted: Wed Apr 20, 2016 10:22 pm
by Nitro2k
hello,

start oscam also working?
how shows the config for my idea?

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

Posted: Wed Apr 20, 2016 10:37 pm
by zoelechat
Which TV series?
And what do you need exactly? A key to start oscam bin? (once?)

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

Posted: Mon May 16, 2016 7:20 pm
by rexio8
I'm having a problem with script execution. I would like to remap a remote key so that it sends a sequence of keys to the tv. The librcremap.so injects fine, script gets assigned to the correct key and gets executed but the samyGOrc part does not work regardless of what I try. Could anybody check what am I doing wrong?

Some logs:

Code: Select all

# samyGOso -d -T -B -r -l /mnt/opt/privateer/usr/libso/libRCremap.so
samyGOso v1.2.5 (c) bugficks 2013-2014, sectroyer 2014-2015
Injecting '/mnt/opt/privateer/usr/libso/libRCremap.so' resident: '1'
mprotect: 0x4227c020
dlopen: 0x424a0d80
dlclose: 0x424a0e14
dlsymaddr: 0x424a0e78
pc=42324eec lr=42324ed0 sp=be101de0 fp=3293a40
r0=3293a44 r1=80
r2=1 r3=0
stack: 0xbe0e2000-0xbe102000 length = 131072
executing injection code at 0xbe101ca0
library injection completed!
Succeeded.

Code: Select all

# cat /dtv/RCremap.log
[RCremap] SamyGO RCremap v0.3.5c log - (c) bugficks 2013, small fixes by sectroyer 2014, smaller fixes by zoelechat 2015
[RCremap] mapping key: 'KEY_VOLDOWN' to 'KEY_VOLDOWN'
[RCremap] mapping key: 'KEY_VOLUP' to command: '/mnt/opt/privateer/usb/bin/test'
[RCremap] 1 _ZN12KeyInputBase17t_ProcessKeyValueEPh [0x9f55dc].
[RCremap] init done...
[RCremap] ProcessKeyValue [KEY_VOLUP=7] [remote: 0]
[RCremap] -> Running command: [/mnt/opt/privateer/usb/bin/test]

Code: Select all

# cat /mnt/opt/privateer/usr/bin/test
#!/bin/sh
echo test > /tmp/test.txt
[ $(pidof ${0##*/}) ] 2>/dev/null || exit 0
PATCHDIR=${0%/*}
PID_EXE=$(pidof exeDSP || pidof exeTV)

   $PATCHDIR/samyGOrc -p $PID_EXE 107 108         # CH_LIST, RED
   sleep 1
   $PATCHDIR/samyGOrc -p $PID_EXE 97 104         # DOWN, ENTER
   sleep 3
   $PATCHDIR/samyGOrc -p $PID_EXE 45 45         # EXIT, EXIT

Code: Select all

# cat /mnt/opt/privateer/usr/libso/libRCremap.config
[
    {
        "KEY_VOLDOWN": "KEY_VOLDOWN"
    },
    {
        "KEY_VOLUP": "CMD:/mnt/opt/privateer/usb/bin/test"
    }
]
When I execute the test script from the console, everything works fine:

Code: Select all

# /mnt/opt/privateer/usr/bin/test
samyGOrc v1.0 (c) bugficks 2013
samyGOrc v1.0 (c) bugficks 2013
samyGOrc v1.0 (c) bugficks 2013
Permissions for samyGOrc and test script are set to 777. Line endings are correct (only LF). My TV is ue48h6640m, rooted firmware 2114. Thanks for any help.

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

Posted: Mon May 16, 2016 7:51 pm
by zoelechat
On H any command launched from a lib is not executed as root, that's why your script works from console but not from CMD. You have to pipe commands needing root to Telnet on 23. Check example of libScreenShot there: https://forum.samygo.tv/viewtopic.php?f ... 100#p88446

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

Posted: Mon May 16, 2016 9:27 pm
by rexio8
Works great- thank you

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

Posted: Fri Jul 08, 2016 2:15 pm
by M11
I have a bit off topic question. Higher end Samsung TVs have a feature called "Univeral remote setup". You select your STB there and then you can control your STB with Samsung TV remote. Has anyone looked into this? Is it possible to remap these buttons? For my STB, Back and Guide button codes are switched, so i would like to change that somehow.

(i have reported this to Samsung support a long time ago, but it seems they don't care)