[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 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...):
You do not have the required permissions to view the files attached to this post.
I do NOT receive any PM. Please use forum.
bogdan0
SamyGO Project Donor
Posts: 20
Joined: Sun Jul 16, 2017 6:04 pm

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

Post by bogdan0 »

Hello,

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

Thank you
https://ctrlv.it/id/42963/3640440846
PS51F8500 (from PN518500) T-FXPDEUC-1125 (from 1114.1) SamyGo, fixed HBOGO; Still learning this :D
sectroyer
Official SamyGO Developer
Posts: 6305
Joined: Wed May 04, 2011 5:10 pm

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

Post by sectroyer »

bogdan0 wrote: Sun Oct 08, 2017 6:36 pm Any progress to remap the keys of "soap"/Bluetooth remote control?
No :)
I do NOT support "latest fw" at ALL. If you have one you should block updates on router and wait for it to STOP being "latest":)
If you want me to help you please paste FULL log(s) to "spoiler"/"code" bbcodes or provide link(s) to pasted file(s) on https://pastebin.com Otherwise "NO HELP"!!!
If you want root DISABLE internet access to your device!!!!
DO NOT EVER INSTALL FIRMWARE UPGRADE !!!!
User avatar
beatfreak
SamyGO Project Donor
Posts: 591
Joined: Tue Aug 23, 2011 9:03 am
Location: Hamburg
Contact:

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

Post 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)
//UE40C6500 @ T-VALDEUC 3011 // rooted manual HotelMode style // PVR to NFS via 18MB on-the-fly sparse XFS //
FYI: you can close your ssh session with SamyGO with

Code: Select all

~.
If you can't fix it using dvct tape, you are not using enough dvct tape.
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 »

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! :)
I do NOT receive any PM. Please use forum.
Riquet065
Posts: 39
Joined: Wed May 16, 2018 3:26 pm

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

Post by Riquet065 »

This app works good for me, thank you very much!
TV Samsung UE32F6470; Firmware T-MST12DEUC_2126.0
Riquet065
Posts: 39
Joined: Wed May 16, 2018 3:26 pm

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

Post 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 :-)!
TV Samsung UE32F6470; Firmware T-MST12DEUC_2126.0
miras_mi
SamyGO Project Donor
Posts: 34
Joined: Sun Aug 02, 2015 3:28 pm

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

Post 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
miras_mi
SamyGO Project Donor
Posts: 34
Joined: Sun Aug 02, 2015 3:28 pm

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

Post by miras_mi »

Ups !!
Looks like my question about HTS options was not to clever ...
Bluetooth options still not supported right?
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 »

Right :)
I do NOT receive any PM. Please use forum.

Post Reply

Return to “[F] Software”