• Recent
    • Tags
    • Popular
    • Register
    • Login

    Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website Mango 5 Documentation Website

    TCP Connection Open/Close

    Modbus4J general discussion
    3
    5
    5.5k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      jesawyers
      last edited by

      Hello All,

      Noobie here and I have a question about Modbus4J.

      I was using WireShark packet capture to look at the MODBUS requests being sent by Modbus4J. One of the things I noticed is that Modbus4J opens/closes a TCP connection for each MODBUS request.

      Is there a way to set the Modbus4J driver to open a TCP connection once, send all the MODBUS requests, and when all the responses have been received or a timeout occurs close the TCP connection?

      OR...Just leave the TCP connection open until a timeout occurs or the Modbus4J driver is shutdown.

      Thanks...John

      1 Reply Last reply Reply Quote 0
      • M
        mlohbihler
        last edited by

        Use "TCP with keepalive"

        Best regards,
        Matthew

        1 Reply Last reply Reply Quote 0
        • J
          jesawyers
          last edited by

          Will do...Thanks!!!

          1 Reply Last reply Reply Quote 0
          • C
            contig
            last edited by

            Buenos dias,
            soy nuevo en el foro
            Estoy probando m2m para conectar unos dispositivos con protocolo modbus
            Mi intención es conectar a través de un modem gprs. El sim cuando se conecta arroja una ip
            Pero siempre el mango me tira este error

            'aaa': com.serotonin.modbus4j.exception.ModbusTransportException: java.net.SocketTimeoutException: connect timed out

            alguien puede ayudarme?

            1 Reply Last reply Reply Quote 0
            • First post
              Last post