IP Control of Samsung's LED/LCD/Plasma?

Discussion in 'C-Touch/HomeGate/SchedulePlus/PICED Software' started by paulyp, Oct 24, 2012.

  1. paulyp

    paulyp

    Joined:
    Jan 4, 2012
    Messages:
    12
    Likes Received:
    0
    Location:
    Sydney - North Shore
    Hi guys,
    has anyone managed to get IP control working to a Samsung TV yet?
    They have IP control as you can get an android or IPhone app but I'd like to control it from the C-Touch.

    Any help would be much appreciated, I've scanned alot of forums but no success really.

    I did find that the TV's use HTTP Get commands.

    Cheers
    Paul
    :)
     
    paulyp, Oct 24, 2012
    #1
  2. paulyp

    Roosta

    Joined:
    Nov 22, 2011
    Messages:
    560
    Likes Received:
    1
    Location:
    Australia
    Hmm.. This is an interesting idea.. In theory should be entirely possible..

    Perhaps i will have a play with mine.. ;-)

    Cheers..
     
    Roosta, Oct 24, 2012
    #2
  3. paulyp

    paulyp

    Joined:
    Jan 4, 2012
    Messages:
    12
    Likes Received:
    0
    Location:
    Sydney - North Shore
    Let me know if you have any success, would be great to get it working!!
     
    paulyp, Oct 24, 2012
    #3
  4. paulyp

    Ashley

    Joined:
    Dec 1, 2005
    Messages:
    1,524
    Likes Received:
    173
    Location:
    Adelaide, Australia
  5. paulyp

    Roosta

    Joined:
    Nov 22, 2011
    Messages:
    560
    Likes Received:
    1
    Location:
    Australia
    Nice find Ashley..

    You just saved me a good few hours of playing with wireshark.. :-D

    Cheers..
     
    Roosta, Oct 24, 2012
    #5
  6. paulyp

    Roosta

    Joined:
    Nov 22, 2011
    Messages:
    560
    Likes Received:
    1
    Location:
    Australia
    .. After 3-4 hours playing in the dungeon last night I couldnt get it to work..

    I am not admitting defeat just yet though, as I still have a couple of cards up my sleeve..

    Judging by the various posts i have come across on many other forums, the HTTP control is entirely possible, and thus CBUS control should be feasible..

    It will all be downhill once i get one command line to work from web browser..

    I believe construstion of the URL needs to be something like:

    http://SAMSUNG.SMART.TV.IP:PORT/samsungremote.cgi?key=MUTE

    And firing this at my tv returns a '404 Not Authorised' message so I think its close.. Changing the port from the standard 80 to anything else just ends up timing out so i believe port 80 is correct.. Although in the link Ashley put up it appears the guy was using port 55000..

    Ha Ha.. Looks like it will be a fun weekend.. :-D

    Cheers..
     
    Roosta, Oct 25, 2012
    #6
  7. paulyp

    paulyp

    Joined:
    Jan 4, 2012
    Messages:
    12
    Likes Received:
    0
    Location:
    Sydney - North Shore
    Great work Roosta!
    I've been using this program to test IP commands with my Yamaha Amp, it works very well in testing so might be helpful with figuring out the correct syntax to get it working with the Samsungs.

    http://soft-net.net/send-http-tool/

    I think there's alot of people waiting to see if your successful, especially me! Would love to be able to control my Samsung with CBUS, I'm sure others would too.
     
    paulyp, Oct 29, 2012
    #7
  8. paulyp

    jboer

    Joined:
    Apr 27, 2012
    Messages:
    458
    Likes Received:
    35
    Location:
    Sydney
    Hey Roosta,

    I don't have an ether enabled Samsung, but on reading that post in the forum and a couple of others it looks like to me as he is using a socketed connection rather than a straight http request. So at the moment I would say that just using that string will not work. Especially as the TV needs to accept the remote before it allows it to control it.

    The samsungremote.cgi that you have in your url is actually the perl script that the guy on the forum has posted. It is how you use his script, you save both the perl and html codes into separate files the perl one named samsungremote.cgi. The html code then gives you your GUI and calls the functions in samsungremote.cgi. Unfortunately it isn't going to be as simple as sending a http string :-(

    The TVs do have an apache web server enabled in them, but you need to activate it in the developer settings before it will allow you to access it I believe.

    I would really run the perl script as it will show you the format that the strings need to be in, it looks like the script encodes them into hex but we may be lucky and the tv will read ascii... :-s If it does need to be hex we may need to do some clever encoding..

    However as we know you can do socketed connections with a Wiser or CTC so lets see what we can do :)

    So first downside is that the CTC can only use ports 10,000-19,999 so currently we will only be able to use a Wiser.

    I would start with something like this, even if it is to make sure you can get a socket connection with the TV, as stated above I really doubt this will work but it is probably a good place to start :) remember you will need to accept it as a new remote on the TV.

    In the Initialization module:
    Code:
    disablemodule("TV");
    OpenClientSocket(1, 'TV.IP', 55000);
    WaitUntil(ClientSocketConnected(1));
    WriteClientSocket(1, '00''iphone..iapp.samsung''00''200''00');
    delay(0.5);
    WriteClientSocket(1, '00''iphone..iapp.samsung''00''100''00''WISERIP''00''WISERMAC''00''Wiser Samsung Remote''00');
    enablemodule("TV");
    In a new module called '"TV":
    Code:
    once (GetLightingState("TV Button Mute") = ON) then
    begin  
    WriteClientSocket(1, '00''iphone.UE32C6500.iapp.samsung''00');
    delay(0.5);
    WriteClientSocket(1, '00''00''00''KEY_MUTE');
       end;
    Good Luck!!!!!!

    Paulp do you have a link to where you read that they can be controlled with http strings? If so we may yet be saved! :)
     
    Last edited by a moderator: Oct 29, 2012
    jboer, Oct 29, 2012
    #8
  9. paulyp

    Roosta

    Joined:
    Nov 22, 2011
    Messages:
    560
    Likes Received:
    1
    Location:
    Australia
    I too came to this conclusion last night J after a few more hours in the dungeon..

    Thank you for your insight.. Will have more of a play tonight..

    Cheers..
     
    Roosta, Oct 29, 2012
    #9
  10. paulyp

    Roosta

    Joined:
    Nov 22, 2011
    Messages:
    560
    Likes Received:
    1
    Location:
    Australia
    Also the other BIG problem i have come across, as have others is that u can power the tv off remotely via ethernet but cant turn it on remotely..

    Which really limits the integration possibilities..

    There is some 'spicy' firmware but again i am dubious of trialling this..

    Cheers..
     
    Roosta, Oct 29, 2012
    #10
  11. paulyp

    jboer

    Joined:
    Apr 27, 2012
    Messages:
    458
    Likes Received:
    35
    Location:
    Sydney
    Yes, I read that also. However it does look like Samsung is doing something about that. The Samsung ES8000 has WOL, but I probably wouldn't be holding your breath about them releasing a firmware update for older models..

    I also found this: http://deneb.homedns.org/things/?p=232 which makes me think that we really do need to have it encoded. So what you might have to do is base64 encode all your commands and then write them into the logic as I doubt the pascal logic can encode... Also based on that you could try sending http strings to port 55001.......
     
    Last edited by a moderator: Oct 29, 2012
    jboer, Oct 29, 2012
    #11
  12. paulyp

    Roosta

    Joined:
    Nov 22, 2011
    Messages:
    560
    Likes Received:
    1
    Location:
    Australia
    Ha Ha.. Or I could give up and just use a NIRT..

    :p

    Cheers..
     
    Roosta, Oct 29, 2012
    #12
  13. paulyp

    jboer

    Joined:
    Apr 27, 2012
    Messages:
    458
    Likes Received:
    35
    Location:
    Sydney
    LoL, It did cross my mind :) But where is the fun in that?!
     
    jboer, Oct 30, 2012
    #13
  14. paulyp

    paulyp

    Joined:
    Jan 4, 2012
    Messages:
    12
    Likes Received:
    0
    Location:
    Sydney - North Shore
    Hi guys,
    I cant recommend this program below enough to assist in testing, it allows maintained connections(socket?) and all that jazz, it might help some of you gurus to work out the correct syntax. I've attached a screenshot of the program.

    SEND HTTP Tool.JPG

    http://soft-net.net/send-http-tool/


    I'm out of my depth with socket connections and am only new to CBUS/CTouch code. :confused:

    Thanks very much in advance, hopefully we can get this working! :D
     
    paulyp, Oct 31, 2012
    #14
  15. paulyp

    djaggar

    Joined:
    Jul 18, 2009
    Messages:
    66
    Likes Received:
    0
    Location:
    New Zealand
    djaggar, Sep 29, 2016
    #15
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.