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.

  • Possible bug on Master RTU over TCP ?

    8
    0 Votes
    8 Posts
    9k Views
    L
    I'm not sure too. But notice that the test with tcp to tcp, with rtu encapsulation enabled, has the same problem even if there is no real serial device, and only tcp is involed (see the 3rd post in the thread): run: Master TCP started (50ms, tcp rtu -> tcp rtu) ** TCP, both master and slave encapsulated, no serial device, still has the problem May it me something related to this: http://mango.serotoninsoftware.com/forum/posts/list/532.page ? The only solution we can figure out (to be tested yet), is to close the TpcMaster on receiving a timeout exception, and create a new TcpMaster. This involves issuing only single commands and not using batch. Regards
  • TcpSlave bug, zombie connections

    5
    0 Votes
    5 Posts
    3k Views
    M
    Changes have been checked into the SF CVS repo.
  • Test is a slave node is reachable/valid

    2
    -1 Votes
    2 Posts
    2k Views
    J
    How can I test if a given slave ID is a valid slave? The testSlaveNode method ends up throwing an ModbusTransportException: Unsupported IP protocol id:...
  • RTU request over RS-232 to Ethernet converter

    3
    0 Votes
    3 Posts
    2k Views
    J
    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);
  • No serial comms port where trying to add modbus serice device

    2
    0 Votes
    2 Posts
    2k Views
    I
    i have an rs485 to usb cable connected to electricity meter and the device has installed correctly. the files (rxtxcomm.jar & rxtxservial.dll) that i downloaded with mango have been put in the place where it says but i cannot select a port to scan. any ideas?
  • Forcing Register with Holding Registers commands

    2
    0 Votes
    2 Posts
    2k Views
    N
    Hello, I'm using Holding Registers Points to drive registers in a slave PLC. I would like to force these registers but I realise that I can only force to "0" (zéro) but not to "1" ... Is there anybody that faced this situation before ? When I use Coil Status Points, it works well ... I could use Coil Status points to do this but I'm afraid of how Mango will handle requests, I've about 50 points in the field and would be sure that mango will not trigger them individualy , I mean sending 50 "Read Coil" requests instead of sending few "Read Holding Regiters" requests. I've posted another question relative to Logging modbus requests, an answer of this previous question would of course answer to this point ... :shock: Thanks, Nicolas
  • Modbus4j

    2
    0 Votes
    2 Posts
    3k Views
    R
    I am having trouble running more than one modbus device at a time. Here is the error message: 16:57:11: 'Ai32': com.serotonin.modbus4j.exception.ModbusInitException: com.serotonin.io.serial.SerialPortException: gnu.io.NoSuchPortException Any ideas? ron
  • Modbus4j basic function

    4
    0 Votes
    4 Posts
    4k Views
    M
    Hi mlohbihler Thanks for reply i solved my problem thanks a lot
  • Modbus4j the best way for do a polling

    3
    0 Votes
    3 Posts
    3k Views
    M
    Modbus4J does not have any internal polling mechanisms, no. In Android it would probably be best to create a service that does the polling at the desired rate. If polling, as you say, once per second you should, of course, not be initializing and destroying each time.
  • Modbus4j and Android application

    4
    0 Votes
    4 Posts
    4k Views
    ramonhlR
    Hello. Thanks for the information. I have created and asynctask and I use the master.ini() in this new thread. Works fine. Best regards.
  • Reading Floating Point Numbers using Locators

    4
    0 Votes
    4 Posts
    3k Views
    S
    Thanks for the fast response. It turned out as you suspected. I downloaded the cvs version and it worked. btw, the NumericLocator was not required.
  • 0 Votes
    3 Posts
    3k Views
    M
    Sounds like it could be more of a hardware issue than software, or at least something external is involved. You could try using wireshark to trace the messages, or mention the messages of any events that the data source is raising.
  • Error while reading with EM6436 energy meter using modbus4j.jar

    11
    0 Votes
    11 Posts
    6k Views
    M
    Not sure what you mean by this: the enumerated output like 5.12345E28 How is your data stored? I.e. what does this print out? System.out.println("Result: "+Integer.toHexString(data*)+" === "+Integer.toString(data*)+" === "+data*); If it is not stored as a float, then you need to use another data type.
  • BUG - StringLocator::bytesToValueRealOffset

    3
    0 Votes
    3 Posts
    2k Views
    M
    Quite right. I've checked this change into the repo.
  • LOOP - BLINK -MODBUS RTU

    5
    0 Votes
    5 Posts
    3k Views
    M
    Honestly, i have no idea.
  • TCP Connection Open/Close

    5
    0 Votes
    5 Posts
    6k Views
    C
    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?
  • Com port detection failed

    3
    0 Votes
    3 Posts
    2k Views
    M
    Can you use something like hyperterminal to access the ports?
  • SeroUtils.jar ClassNotFoundException

    6
    0 Votes
    6 Posts
    4k Views
    M
    This is what you need: Attachment: download link
  • CRC mismatch

    9
    0 Votes
    9 Posts
    6k Views
    M
    I get the same result. The incoming response looks otherwise ok. The part "011000a80002" looks right. What is suspicious is that the response has 3 bytes at its tail instead of just two: "042993". A CRC is only two bytes.
  • Novus FieldLogger modbus4j

    3
    0 Votes
    3 Posts
    3k Views
    A
    I got it... My slave id need to be '255', but in the modbus4j the range is 0 to 247. Why i can't put my slave id 255?