• 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

    RTU request over RS-232 to Ethernet converter

    Modbus4J general discussion
    1
    3
    2.2k
    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
      javaer
      last edited by

      Hello,
      I have a scenario where a RTU RS-232 modbus device is connected to PC using a RS-232 to Ethernet converter.
      I can only use TCP to comunicate to the device, via the RS-Ethernet converter.
      Which kind of ModbusMaster shall I use ?
      Is there any way to transparently issue RTU requestes over the TCP connection ?

      Thanks is advance.

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

        I reply to myself.

        Simply set encapsulated to true when creating the IpParameters.

        
        IpParameters ip = new IpParameters();
        ip.setHost("192.168.15.30");
        ip.setEncapsulated(true);
        ip.setPort(4001);
        
        ModbusFactory factory = new ModbusFactory();
        ModbusMaster master = factory.createTcpMaster(ip, true);
        
        
        1 Reply Last reply Reply Quote 0
        • First post
          Last post