Questions tagged [rxtx]

RXTX is a Java library, using a native implementation (via JNI), providing serial and parallel communication for the Java Development Toolkit (JDK).

RXTX is a Java library, using a native implementation (via JNI), providing serial and parallel communication for the Java Development Toolkit (JDK). All deliverables are under the GNU LGPL license. It is based on the specification for Sun's Java Communications API, though while many of the class descriptions are the same the package used it not, since gnu.io is used instead. A certain amount of compatibility is intended with API, though this project should be considered as a fork and therefore compatible in spirit, but not in implementation.

387 questions
3
votes
1 answer

RXTX x64 and x86

I've a software where I use RXTXcomm.jar on an applet java and inside applet I'm communicating with port serial, so, I need to communicate and it works with 2 versions, x86 and x64, but RXTXcomm.jar has the same name to 2 files, How can I use both…
Pedro Eugenio
  • 33
  • 1
  • 3
3
votes
2 answers

PortInUseException - Java Serial Communication

I’m developing an application for serial communication in Java with RXTX. Now I’m getting an error: Port already in use: gnu.io.PortInUseException: Unknown Application while opening a port, but it seems the port is not used by any other…
Mukthi
  • 561
  • 4
  • 13
  • 35
3
votes
1 answer

Java Serial I/O in Windows x64 using JRE x86

I have a Java application running on Windows 7 64-bit, but running on a 32-bit version of JRE. I need this application to communicate with a serial com port, and apparently I need a little help. :) Before you suggest RXTX, I've already tried it,…
PNielsen
  • 123
  • 5
3
votes
0 answers

Getting an error while reading data from the serial monitor using RXTX Java

I have an Arduino sketch which prints the data to the serial monitor. And I am trying to read that data from the Java code using RXTX library. But I am getting an error saying: A fatal error has been detected by the Java Runtime Environment: …
Lucky
  • 359
  • 1
  • 8
3
votes
4 answers

RXTX serial connection - issue with blocking read()

I am trying to use the RXTX library for blocking serial communication on Windows (XP and 7). I have tested the connection with Hyperterminal in both ends, and it works flawlessly. I set up the connection with the following code: (exception handling…
Svante
  • 1,069
  • 3
  • 12
  • 28
3
votes
0 answers

How to detect COM port connection loss(phsically) while application is running

i use RXTXcomm Library to connect COM port if COM port connection is loss(physically) while application is running I don't know whether Port is connect or not. even the signal is still alive when the COM port is physically disconnected. How i can…
tokhi
  • 135
  • 1
  • 8
3
votes
1 answer

Serial Communication with Arduino using Java RXTX in linux

I am trying to connect Arduino using java program and it gives out error when sending data from the pc to arduino from a serial-connection and the program crashes # # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV…
Ishara Abeykoon
  • 540
  • 1
  • 6
  • 24
3
votes
3 answers

Java RXTX Library doesn't load native library

Basically i wanted to write a simple communication tool for my Arduino using the RXTX Library for java and failed horribly when it came to loading the dynamic library. My system specs: OS: OS X Yosemite 10.10.3 Java: SDK 1.8.0_45 RXTX: 2.1-7r2 -…
redxef
  • 492
  • 4
  • 12
3
votes
3 answers

How do i close a CommPort in RXTX

I am trying to close a Comm port using this: public synchronized void closeComportButtonActionPerformed( java.awt.event.ActionEvent evt) { try { twoWaySerCom.disconnect(); } catch (Exception…
Display Name
  • 405
  • 6
  • 26
3
votes
3 answers

RXTX gnu.io.PortInUseException: & WARNING: RXTX Version mismatch

I am trying to get GPS data from a NMEA 0183 GPS via the Java Marine API, using the RXTX API. Running the Java Marine supplied SerialPortExample.java, I return the two errors. Perhaps they are related and so I am bundling them together into this…
Ben Mayo
  • 1,285
  • 2
  • 20
  • 37
3
votes
2 answers

java serial I/O: handling USB serial connection/disconnection in a robust manner

I'm using rxtx for serial I/O handling in Java with an FTDI2232H that provides a USB comm port. It works great, with one exception: if I unplug the USB cable, so that the COM port disappears at runtime, it spews exceptions left and…
Jason S
  • 184,598
  • 164
  • 608
  • 970
3
votes
3 answers

CommPortIdentifier.getPortIdentifiers with zero ports on Linux

i am trying to connect serial port on ubuntu. However, It doesn't work for me. I succesfully run the same project on Windows just with different drivers. The problem is that I can't load any ports while I am using this:…
Smolda
  • 882
  • 5
  • 13
  • 34
3
votes
1 answer

How to use RXTX with Netty 4?

I'm trying to use Netty 4 with RXTX (it's not officially in Netty 3.x if I got this right). I think I have set up the pipeline factory correctly, but I don't get any event generated when some data is sent to the serial port (I have confirmed with…
jeje
  • 61
  • 4
3
votes
2 answers

RXTX not working in ubuntu

Finally managed to read from rxtx in windows but now I just cannot make it work in Ubuntu.I get the rxtx libs using apt-get ,but when i run the application,i can not see anything,tried a couple of try-catch blocks and i don't even get the…
Sin5k4
  • 1,556
  • 7
  • 33
  • 57
2
votes
1 answer

Serial Port Not getting closed. I want to release the COM port

Serial Port Not getting closed. I want to release the COM port ... Below is my code.... import java.io.*; import java.util.*; import gnu.io.*; public class ReadCommPort implements SerialPortEventListener { static CommPortIdentifier portId; …
sunil