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

  • 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


  • Use "TCP with keepalive"


  • Will do...Thanks!!!


  • 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?