This object is in archive! 

Samsung TV network remote control protocol

Lars shared this idea 8 years ago
Under Consideration

can we use this to control the smart tv whit the zipato box?


http://sc0ty.pl/2012/02/samsung-tv-network-remote-control-protocol/


i like to sent a http command to turn my tv off.

Replies (6)

photo
1

Somebody..?

photo
1

I am using the PHP script from your last link. It handles the socket communication against the TV and let's me call simple Urls from the Zipabox, similar to this (I don't recall the exact url format): http://myNAS/samsung_remote.php?cmd=POWER_OFF. You will need a php server/interpreter running on your LAN though. I'm using a Synology NAS

photo
2

i think that's to complicated for me..

photo
1

I think that doing the socket communication directly from the Zipabox will be harder, if possible at all.Even though Zipabox has socket connection support, you might find it difficult to translate special characters and so on. I will investigate the exact socket transfer from the php script tonight and post my findings here.

photo
photo
1

I'm sorry for the late reply. I have examined the PHP script, and it is really hard to reproduce the byte sequence that it writes to the TV's socket/port 55000.


You will have to base64 encode the ip-adress of the TV, the client ip-address, the client MAC-address, put some unicode characters in the middle of this together with some strings identifyting the type of app and the name of the TV model (the protocol has been discovered by reverse engineering the communication from the Samsung iPhone remote app).


Allthough it makes no sense, here is the string sendt to the TVs socket 55000 when I send the POWER_OFF command:

iphone..iapp.samsungHdMTkyLjE2OC4xLjE1MDAtMTEtMzItMTEtZGYtNTI=cGhwIFNhbXN1bmcgUmVtb3Rliphone..iapp.samsungiphone.UE40D6325.iapp.samsungS0VZX1BPV0VST0ZG


This string will not work for you, since my private IP-addresses and MACs are "baked" in there (base64 encoded)


It is possible to understand the string composition by examining the PHP code, but it would be too hard to explain it here. Reading the code really is the best recipe :)


So the conclusion is: the far easiest way to make this work is having your own PHP interpreter on your LAN. Then you can send readable URLs which the script translates to the format of the string mentioned above, and sends directly to the TV.


If I type this URL in the browser, the TV powers off: :http://diskstation/samsungremote.php?key=POWEROFF

photo
1

Hi Marius,


Thanks for your afford.

don't think i will get this to work. i do not have the knoladge (jet.)

Leave a Comment
 
Attach a file