Menu

Unable to start RXTX

Help
2020-01-28
2023-09-27
  • Robert Morin

    Robert Morin - 2020-01-28

    Hi,

    I'm a first time user and I'm trying to use the serial port. First time ModbuslPal indicated the missing RXTX library; I've found multiple site where the library is available but so far no luck. When I install the library; ModbusPal refuse to start.

    Can someone point me to the latest version that work in Windows 10 ?

    Thanks

     
  • darkweb

    darkweb - 2020-10-15

    Hi Robert,
    You can run ModbusPal with the -install option and it is supposed to set up the RXTX library. I don't have access to a serial port so I can't test that functionality out. Let me know if that works for you.

    e.g.
    java -jar ModbusPal.jar -install

     
  • Robert Morin

    Robert Morin - 2020-11-02

    Hi,

    the '-install' is failing but I was able to find the rxtx, here is a copy:

    http://www.jcontrol.org/download/rxtx_en.html

    After installing on Windows 10, it's looking good.

    BTW, the latest download file from SourceForge is only containing the help file.

    Thanks

     
    👍
    1
  • Robert Morin

    Robert Morin - 2020-11-11

    Hi,

    no luck for serial port. Most of the time it's failing and it's because it's only handling packet (for TCP) not byte.

     
  • darkweb

    darkweb - 2020-11-15

    Hi Robert,
    Thanks for pointing out the download issue. I've corrected that. I'll see if I can incorporate the new RXTX API in the release.

    As for your issue with the serial port failing most of the time, can you go into more detail? What is your configuration set up and what are you seeing VS what you are expecting?

     
  • Robert Morin

    Robert Morin - 2020-12-24

    Hi darkweb,

    the problem is a buffer overflow; I'm guessing the read from the serial port has no (or not big enough) time-out in receive. The time-out should be 3.5 characters in between frame.

    Thanks.

     
  • Konstantin Montikov

    Hi,
    I'm trying to use ModbusPal with the serial port. First time ModbuslPal indicated the missing RXTX library. I've got the latest stable rxtx 2.1-7r2 from http://rxtx.qbang.org/ and installed it:
    java -jar ModbusPal.jar -install
    Installing RXTX component...
    os.name returns "Windows 11"
    Install RXTX on Windows...
    java.home returns "C:\Program Files (x86)\Java\jre-1.8"
    64-bit architecture detected...
    Installing "rxtx/win-x64/RXTXcomm.jar" to "RXTXcomm.jar"
    OK.
    Installing "rxtx/win-x64/rxtxParallel.dll" to "rxtxParallel.dll"
    OK.
    Installing "rxtx/win-x64/rxtxSerial.dll" to "rxtxSerial.dll"
    OK.

    Now when I try to start ModbusPal, nothing happens, the GUI does not opens:
    C:\Test>java -jar ModbusPal.jar
    Could not load an initial port number. Loading default port number.

    console window becomes suspended until I press Ctrl+Break

     

Log in to post a comment.