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

Here are software that related with Samsung F series TVs.
Please don't create any new topic here unless you have software to post/release.

zoelechat
SamyGO Moderator
Posts: 8615
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 »

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 receive any 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 »

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: 8615
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 »

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 receive any 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 »

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 »

hello,

start oscam also working?
how shows the config for my idea?
zoelechat
SamyGO Moderator
Posts: 8615
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 »

Which TV series?
And what do you need exactly? A key to start oscam bin? (once?)
I do NOT receive any PM. Please use forum.
rexio8
SamyGO Project Donor
Posts: 11
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 »

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: 8615
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 »

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 receive any PM. Please use forum.
rexio8
SamyGO Project Donor
Posts: 11
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 »

Works great- thank you
M11
SamyGO Project Donor
Posts: 280
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 »

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”