Issues receiving in RXTX

后端 未结 6 1786
慢半拍i
慢半拍i 2020-12-08 17:47

I\'ve been using RXTX for about a year now, without too many problems. I just started a new program to interact with a new piece of hardware, so I reused the connect() metho

6条回答
  •  情深已故
    2020-12-08 18:34

    I tried RXTX a few months ago and ran into similar problems. I suggest two things:

    1. Create a virtual comport using com0com. Enable trace logging. Compare the logs for when you use Hyperterminal versus when you run your own program. The difference will highlight what you are doing wrong.

    2. In my humble opinion, RXTX's design is flawed and its implementation is quite buggy (take a look at its source-code, what a mess!). I've published an alternative library at http://kenai.com/projects/jperipheral with the following caveats: It's Windows-only and there are no pre-built binaries. Both of these will change in the near future. If you are interested in trying it out send me an email using http://desktopbeautifier.com/Main/contactus and I'll send you a pre-built version.

提交回复
热议问题