This object is in archive! 
Samsung TV network remote control protocol
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.
No connection
Real-time notifications may not work
http://forum.samygo.tv/viewtopic.php?f=12&t=1792&hilit=wireshark#p15586
http://forum.samygo.tv/viewtopic.php?f=12&t=1792&hilit=wireshark#p15586
Somebody..?
Somebody..?
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
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
i think that's to complicated for me..
i think that's to complicated for me..
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
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
Hi Marius,
Thanks for your afford.
don't think i will get this to work. i do not have the knoladge (jet.)
Hi Marius,
Thanks for your afford.
don't think i will get this to work. i do not have the knoladge (jet.)
Replies have been locked on this page!