• Recent
    • Tags
    • Popular
    • Register
    • Login
    1. Home
    2. two80

    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
    T
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 2
    • Best 0
    • Controversial 0
    • Groups 0

    two80

    @two80

    0
    Reputation
    258
    Profile views
    2
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    two80 Unfollow Follow

    Latest posts made by two80

    • Setting the IP Address of Modbus slave

      I am trying to simulate an TCP Modbus slave.

      I extended the class TcpSlave for this and added some Process Images.

      Unfortunately, the TcpSlave provides only the port to set.

      How can I set the IP Address of the slave ?

      I tried to add the following code snippet in TcpSlave but it doesn't help :

      
      
          @Override
          public void start() throws ModbusInitException {
              try {
                  serverSocket = new ServerSocket(port);
      
                 //Socket socket;
      
      
                  
                //this should be the ip address of the slave
                 Socket socket = new Socket("192.168.20.100", 502);
      
      
      
      
                  while (true) {
                      socket = serverSocket.accept();
                      TcpConnectionHandler handler = new TcpConnectionHandler(socket);
                      executorService.execute(handler);
                  }
      
      
      
      

      Can someone help me ?

      posted in Modbus4J general discussion
      T
      two80
    • RE: Setting the IP Address of Modbus slave

      I am trying to simulate an TCP Modbus slave.

      I extended the class TcpSlave for this and added some Process Images.

      Unfortunately, the TcpSlave provides only the port to set.

      How can I set the IP Address of the slave ?

      I tried to add the following code snippet in TcpSlave but it doesn't help :

      
      
          @Override
          public void start() throws ModbusInitException {
              try {
                  serverSocket = new ServerSocket(port);
      
                 //Socket socket;
      
      
                  
                //this should be the ip address of the slave
                 Socket socket = new Socket("192.168.20.100", 502);
      
      
      
      
                  while (true) {
                      socket = serverSocket.accept();
                      TcpConnectionHandler handler = new TcpConnectionHandler(socket);
                      executorService.execute(handler);
                  }
      
      
      
      

      Can someone help me ?

      posted in Modbus4J general discussion
      T
      two80