Telnet from Wiser ?

Discussion in 'C-Bus Wiser 1 Controller' started by CABrouwes, Oct 11, 2011.

  1. CABrouwes

    CABrouwes

    Joined:
    Apr 25, 2009
    Messages:
    86
    Likes Received:
    2
    Location:
    New York Area
    I have an IP device that can be controlled with simple string commands send over telnet. I would like wiser to control it. Can wiser open a telnet session and write a string to a telnet port ? I assumed that is what all those client socket functions are about but my initial trials are not succesful. Thanks.
     
    Last edited by a moderator: Oct 11, 2011
    CABrouwes, Oct 11, 2011
    #1
  2. CABrouwes

    kjayakumar

    Joined:
    Oct 27, 2008
    Messages:
    448
    Likes Received:
    0
    My understanding is that plain-text telnet should be possible using the TCP client socket capability in Logic. So yes, the Wiser can open a socket connection to port 23, then send commands. If you're not seeing success using that you may want to post your code here, also you may want to Wireshark the connection between the IP device and Wiser and validate that you're sending/receiving what you expect to. Hope that helps.
     
    kjayakumar, Oct 12, 2011
    #2
  3. CABrouwes

    CABrouwes

    Joined:
    Apr 25, 2009
    Messages:
    86
    Likes Received:
    2
    Location:
    New York Area
    Thanks a lot for the suggestion of using wireshark. I used a different tool to test the connection and found the problem. It was not directly related to the socket function. The loop I had programmed to wait for the socket to open was generating an error by exceeding the number if instructions allowed byt the engine.
     
    CABrouwes, Oct 15, 2011
    #3
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.