Home Page Forums Community International Develop OpenWebNet Openwebnet telnet close connection ITA/EN

OpenWebNet
Openwebnet telnet close connection ITA/EN

This topic contains 2 replies, has 2 voices, and was last updated by  marcocarnevali 08/01/2019 at 18:33.

0
2
127
  • Verified

    Hello all, I’m trying to connect and send command through telnet but the connection close immediately, let me describe some scenario here:
    1. With Putty:
    Tried on windows with putty as soon as I connect I receive ACK but then the connection close before I can even type
    2. Trying with terminal on Mac:

    this is what I do :
    – send: nc 192.168.1.105 20000
    – receive: *#*1##
    – send: *99*0##
    – receive: *#654587542##
    ( then sometimes here the connection closes, sometimes continues )

    – send: #*1*1*68##
    – receive: *#*0## Connection closed by foreign host.

    What I’m doing wrong? Thank you in advance!!

     

    —————

    Ciao a tutti, sto provando a collegarmi al Bticino e mandare I comandi per l’attivazione di luci tramite telnet ma la connessione si chiude subito, ora descrivo i vari casi:
    1. Con Putty:
    Ho provato con windows tramite putty ma appena mi collego ricevo l’ACK e poi la connessione si chiude subito.
    2. Con Terminale di Mac:
    – mando: nc 192.168.1.105 20000
    – ricevo: *#*1##
    – mando: *99*0##
    – ricevo: *#654587542##
    ( poi a volte si chiude la connessione, altre continua ad andare )

    – mando: #*1*1*68##
    – ricevo: *#*0## Connection closed by foreign host.

    Cosa sbaglio? Grazie a tutti in anticipo!!!




    User
    marcocarnevali
    Role
    End User
    10 posts
    Verified

    Hello,

    It looks like you are using Open Authentication. After the message

    <span style=”color: #48595f; font-family: DinPro, sans-serif;”>*#654587542##</span>

    you have to send a reply to the gateway where you calculate the password (default: 12345) with the given number which you received. How to calculate the reply is described here:

    https://rosettacode.org/wiki/OpenWebNet_Password

    Note:  if you returned an invalid value back to the gateway 3 times, then the gateway won’t allow connections for the next 3 minutes, and you won’t be able to connect via network in this duration

    regards

    Roman




    User
    RoStief
    Role
    Software Developer
    7 posts
    Verified

    Now works pretty good thank you very much!




    User
    marcocarnevali
    Role
    End User
    10 posts
Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.