[App] rccli K/M/Q, send keys from cmdline (no root required)

Software related to Samsung M/Q 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

[App] rccli K/M/Q, send keys from cmdline (no root required)

Post by zoelechat »

Command line tool to send RC keys to TV by network/IP. Works only on K/M/Q, not on J where transactions are encrypted.
Now added possibility to remotely start a widget on TV, given its ID (not implemented in T-HKMFK firmwares (?)).

Code: Select all

rccli v0.2 for Samsung TV series K/M/Q by zoelechat @ SamyGO
Usage: rccli <TV_IP|HOSTNAME> <KEY_NAME>|<-w|--widget=WidgetID> [-t|--timeout=ms] [-d|--debug]
debug switch shows verbose, and timeout adjusts delay (in ms) before command "gives up" in sending key to TV, therefore delay between keysends in case of consecutive launches. Default is 800ms and should be ok in all cases: too low value can cause key to be lost (=not sent), and you still can increase if you've got REALLY slow network.

Sample usages
:

Code: Select all

./rccli 192.168.1.7 KEY_GUIDE
./rccli UE49KS7000 KEY_MENU -t1000 -d
./rccli 192.168.1.9 KEY_INFO ; ./rccli 192.168.1.9 KEY_FACTORY        # access extended service menu? not tested :)
./rccli 192.168.1.7 -w org.tizen.browser      # starts web browser
Here's raw key list I was able to retrieve from server, looks like known Tizen one but with less keys:
KEY LIST (*=M/Q only)Show

Code: Select all

  BD_KEY_POWER
  KEY_0
  KEY_1
  KEY_2
  KEY_3
  KEY_4
  KEY_5
  KEY_6
  KEY_7
  KEY_8
  KEY_9
  KEY_16_9
  KEY_3D
  KEY_3SPEED
  KEY_AD
  KEY_ADDDEL
  KEY_ANGLE
  KEY_ANTENA
  KEY_ANYVIEW
  KEY_APP_LIST
  KEY_ASPECT
  KEY_AUTO_PROGRAM
* KEY_BLUE
  KEY_BT_COLOR_MECHA
  KEY_BT_CONTENTSBAR
  KEY_BT_DEVICE
  KEY_BT_DUALVIEW
  KEY_BT_HOTKEY
  KEY_BT_NUMBER
  KEY_BT_SAMSUNG_APPS
  KEY_BT_TRIGGER
  KEY_BT_VOICE
  KEY_CAMERA
  KEY_CAPTION
  KEY_CHDOWN
  KEY_CHUP
  KEY_CH_LIST
  KEY_CLEAR
* KEY_COLOR
  KEY_CONTENTS
  KEY_CONVERGENCE
  KEY_CYAN
  KEY_DOWN
  KEY_DTV
  KEY_DTV_SIGNAL
  KEY_DVR
  KEY_EMANUAL
  KEY_ENTER
  KEY_ESAVING
  KEY_EXIT
  KEY_EXTRA
  KEY_FACTORY
  KEY_FAMILYHUB
  KEY_FAVCH
  KEY_FF
  KEY_FF_
  KEY_FUNCTIONS_AMAZON
  KEY_FUNCTIONS_NETFLIX
  KEY_GAME
  KEY_GREEN
  KEY_GUIDE
  KEY_HDMI
  KEY_HOME
  KEY_INFO
  KEY_JOYSTICK_DOWN
  KEY_JOYSTICK_LEFT
  KEY_JOYSTICK_OK
  KEY_JOYSTICK_RIGHT
  KEY_JOYSTICK_UP
  KEY_LEFT
  KEY_LINK
  KEY_MBR_BDDVD_POWER
  KEY_MBR_BD_POPUP
  KEY_MBR_SETUP
  KEY_MBR_SETUP_CONFIRM
  KEY_MBR_SETUP_FAILURE
  KEY_MBR_STBBD_MENU
  KEY_MBR_STB_GUIDE
  KEY_MBR_TV
  KEY_MBR_WATCH_MOVIE
  KEY_MBR_WATCH_TV
  KEY_MENU
  KEY_MINUS
  KEY_MORE
  KEY_MTS
  KEY_MUTE
* KEY_OK
  KEY_PAGE_LEFT
  KEY_PAGE_RIGHT
  KEY_PAUSE
  KEY_PIP_CHDOWN
  KEY_PIP_CHUP
  KEY_PIP_ONOFF
  KEY_PLAY
  KEY_PLAY_BACK
  KEY_PLUS100
  KEY_PMODE
  KEY_POWER
  KEY_PRECH
  KEY_REC
  KEY_RECOMMEND_SEARCH_TOGGLE
  KEY_RED
  KEY_REPEAT
  KEY_RETURN
  KEY_REWIND
  KEY_REWIND_
  KEY_RIGHT
  KEY_SEARCH
  KEY_SLEEP
  KEY_SMODE
  KEY_SOCCER_MODE
  KEY_SOURCE
  KEY_SRS
  KEY_STB_POWER
  KEY_STILL_PICTURE
  KEY_STOP
  KEY_SUB_TITLE
  KEY_TOOLS
  KEY_TTX_MIX
  KEY_TV
  KEY_TV_SNS
  KEY_UP
  KEY_USBHUB_SWITCH
  KEY_VOLDOWN
  KEY_VOLUP
  KEY_WHEEL_LEFT
  KEY_WHEEL_RIGHT
  KEY_WIFI_PAIRING
  KEY_W_LINK
  KEY_YELLOW
  KEY_ZOOM1
Apps id list you can find a quite complete one there below.


  • Archive contains much ready to use builds (check out-* folders): win32, MacOS, i386 and x86_64 Linux, arm and mips including static ones that should work e.g. on old TVs, most routers/NAS, Raspberry Pi etc.
  • In case you want to build yourself for another platform, requires libwebsockets (←that old fork I used) for linking.
  • UPDATE: M series firmwares up to 1240. Then Samsung removed feature as usual (never upgrade!!)

Note that on first launch from every new device, TV will popup to ask if you agree to receive from "rccli" device yes/no.
rccli_allow.png
ChangelogShow

Code: Select all

19/4/2018
v0.2 - Added widget launch
28/2/2018
v0.1 - Initial release
You do not have the required permissions to view the files attached to this post.
I do NOT receive any PM. Please use forum.
zoelechat
SamyGO Moderator
Posts: 8615
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

Re: [App] rccli K/M/Q, send keys from cmdline (no root required)

Post by zoelechat »

Added MacOS build. Don't all rush at once for feedback :mrgreen:
I do NOT receive any PM. Please use forum.
rycerzwlad
Posts: 1
Joined: Tue Mar 27, 2018 10:38 am

Re: [App] rccli K/M/Q, send keys from cmdline (no root required)

Post by rycerzwlad »

Hello,
I have a UE55MU7002 tv if you can put your ccli in it, how to do it, please, step by step. I would do it for the first time.
zoelechat
SamyGO Moderator
Posts: 8615
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

Re: [App] rccli K/M/Q, send keys from cmdline (no root required)

Post by zoelechat »

There 's no "TV to put in it" (won't fit anyway), you download correct version for your platform (Win, Mac or Linux) then execute from commandline with given syntax, all. No need for a step by step when there's only one step :)
I do NOT receive any PM. Please use forum.
User avatar
juusso
SamyGO Moderator
Posts: 10129
Joined: Sun Mar 07, 2010 6:20 pm

Re: [App] rccli K/M/Q, send keys from cmdline (no root required)

Post by juusso »

Did i say it works on Q8? :)
LE40B653T5W,UE40D6750,UE65Q8C
Have questions? Read SamyGO Wiki, Search on forum first!
FFB (v0.8), FFB for CI+ . Get root on: C series, D series, E series, F series, H series. rooting K series, exeDSP/exeTV patches[C/D/E/F/H]

DO NOT EVER INSTALL FIRMWARE UPGRADE
zoelechat
SamyGO Moderator
Posts: 8615
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

Re: [App] rccli K/M/Q, send keys from cmdline (no root required)

Post by zoelechat »

juusso wrote: Tue Mar 27, 2018 7:40 pm Did i say it works on Q8? :)
Better late than never ;)
I do NOT receive any PM. Please use forum.
gdroos68
Posts: 5
Joined: Thu Mar 29, 2018 6:42 am

Re: [App] rccli K/M/Q, send keys from cmdline (no root required)

Post by gdroos68 »

Hi,

I am really a noob but I think this will help to control my TV with my Athom Homey. I have a raspberry running and Homey can send ssh commands to it. How can I install rccli and libwebsocket on my raspberry? A step by step instruction would be really appreciated.
zoelechat
SamyGO Moderator
Posts: 8615
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

Re: [App] rccli K/M/Q, send keys from cmdline (no root required)

Post by zoelechat »

libwebsockets is required for building only, 1st post says.
zoelechat wrote: Tue Mar 27, 2018 3:07 pm you download correct version for your platform (Win, Mac or Linux) then execute from commandline with given syntax, all. No need for a step by step when there's only one step
On raspberry, you may try arm or arm-static build (=ready to use binary!!) provided in source archive.
I do NOT receive any PM. Please use forum.
zoelechat
SamyGO Moderator
Posts: 8615
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

Re: [App] rccli K/M/Q, send keys from cmdline (no root required)

Post by zoelechat »

New version posted, now can remotely start a widget on TV.
Also added mips builds.
I do NOT receive any PM. Please use forum.
Containing
Posts: 2
Joined: Wed May 02, 2018 12:30 am

Re: [App] rccli K/M/Q, send keys from cmdline (no root required)

Post by Containing »

Anyone figure out which command is needed to get the maintenance menu ( hidden ) on the Q7/Q9 ?

Post Reply

Return to “[M/Q] Software”