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

Here are software that related with Samsung F series TVs.

zoelechat
SamyGO Moderator
Posts: 7366
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

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

Post by zoelechat » Mon Mar 14, 2016 7:31 pm

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)
I do NOT reply to any question by PM. Please use forum.

Algol
SamyGO Project Donor
Posts: 68
Joined: Thu Nov 05, 2015 1:09 am
Location: Serbia

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

Post by Algol » Tue Mar 15, 2016 9:37 am

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...
Please, do not ask from me to get you files or procedure for rooting your TV. If you can't donate $10, try make some deal with erdem_ua.

zoelechat
SamyGO Moderator
Posts: 7366
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

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

Post by zoelechat » Tue Mar 15, 2016 9:56 am

I think I already told you what to do in libScreenShot thread. Directly injecting as CMD is pointless, you must use intermediate provided script.
I do NOT reply to any question by PM. Please use forum.

Algol
SamyGO Project Donor
Posts: 68
Joined: Thu Nov 05, 2015 1:09 am
Location: Serbia

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

Post by Algol » Tue Mar 15, 2016 10:07 am

Ok... I'll try once again with your advice. Thank you!

EDIT
Which extension libRCremap_capture_H should got?
Please, do not ask from me to get you files or procedure for rooting your TV. If you can't donate $10, try make some deal with erdem_ua.

Nitro2k
SamyGO Project Donor
Posts: 6
Joined: Fri Apr 15, 2016 8:53 am

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

Post by Nitro2k » Wed Apr 20, 2016 10:22 pm

hello,

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

zoelechat
SamyGO Moderator
Posts: 7366
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

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

Post by zoelechat » Wed Apr 20, 2016 10:37 pm

Which TV series?
And what do you need exactly? A key to start oscam bin? (once?)
I do NOT reply to any question by PM. Please use forum.

rexio8
SamyGO Project Donor
Posts: 6
Joined: Fri Jun 21, 2013 10:52 am

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

Post by rexio8 » Mon May 16, 2016 7:20 pm

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.

zoelechat
SamyGO Moderator
Posts: 7366
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

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

Post by zoelechat » Mon May 16, 2016 7:51 pm

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
I do NOT reply to any question by PM. Please use forum.

rexio8
SamyGO Project Donor
Posts: 6
Joined: Fri Jun 21, 2013 10:52 am

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

Post by rexio8 » Mon May 16, 2016 9:27 pm

Works great- thank you

M11
SamyGO Project Donor
Posts: 277
Joined: Fri Aug 03, 2012 6:00 pm

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

Post by M11 » Fri Jul 08, 2016 2:15 pm

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)
F9000 + SEK-3500U

Post Reply

Return to “[F] Software”

Who is online

Users browsing this forum: No registered users and 2 guests