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
59
votes
7 answers

Java InputStream blocking read

According to the java api, the InputStream.read() is described as: If no byte is available because the end of the stream has been reached, the value -1 is returned. This method blocks until input data is available, the end of the stream is…
jbu
  • 15,831
  • 29
  • 82
  • 105
57
votes
7 answers

Stable alternative to RXTX

After using RXTX for a number of different projects, I've come across many annoying discrepancies and issues that can only sensibly be put down to bugs in the library - deadlocks, race hazards, and monitor threads deep in the RXTX library being left…
Michael Berry
  • 70,193
  • 21
  • 157
  • 216
33
votes
6 answers

How to access USB ports in java

I'm trying to write a java application that accesses the usb ports to read from and write to a device connected through usb. The problem I face is that I don't know what exactly to use in java to do such a thing. I searched online and found…
Petezah
  • 1,465
  • 4
  • 26
  • 30
22
votes
12 answers

java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path

I am trying to use the 64 bit rxtx serial communication library (downloaded from cloudhopper) with 64bit windows 7 and eclipse. I get the message: java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path. The dlls are in the /jre/lib dir…
sldahlin
  • 685
  • 1
  • 8
  • 19
14
votes
1 answer

Java Multithreading for IVRS with GSM Modem rxtx (playing voice file making event listener stop working)

I have implemented a program to receive call using gsm modem. Upon Detecting "RING" call is answered an audio clip is played by calling a function from inside DATA_AVAILABLE EVENT HANDLER. But the event handler stops working after this. After the…
codefreaK
  • 3,584
  • 5
  • 34
  • 65
12
votes
3 answers

Serial Communication between Java RXTX and Arduino

I'm trying to communicate between my PC (Windows 7 using Netbeans and RXTX) with an Arduino Pro, using the serial port. The Arduino is actually connected to the PC using an FTDI cable. The code is based on the Java SimpleRead.Java found…
SharpBarb
  • 1,590
  • 3
  • 16
  • 40
12
votes
3 answers

How to add rxtxSerial in java.library.path?

I am developing an application in Java using Eclipse IDE. My os is Ubuntu 11. My application is using the RXTX library (gnu.io.*) for serial communication. I have added the RXTXomm.jar file in project by doing this (project->Properties->java buld…
Aditya Ponkshe
  • 3,840
  • 4
  • 39
  • 58
11
votes
3 answers

inputstream.available() is 0 always

I have no idea of what is happening to my code. i am getting no errors and no response as well. I am writing the data to the serialport and waiting for the response by activating port.notifyOnDataAvailable(true); but this event is not triggered and…
Deepak
  • 6,684
  • 18
  • 69
  • 121
11
votes
2 answers

How to Answer Call using Java Communication Api with GSM Modem Java

I have successfully Implemented Java Api and Started to Send SMS and Dial Calls.But I am finding it impossible to answer the incoming call .I have tried the RI event ( serialPort.notifyOnRingIndicator(true);).But it is not firing only…
codefreaK
  • 3,584
  • 5
  • 34
  • 65
10
votes
3 answers

Thread interrupt not ending blocking call on input stream read

I'm using RXTX to read data from a serial port. The reading is done within a thread spawned in the following manner: CommPortIdentifier portIdentifier = CommPortIdentifier.getPortIdentifier(port); CommPort comm = portIdentifier.open("Whatever",…
JDS
  • 1,233
  • 4
  • 15
  • 27
10
votes
3 answers

RxTx on Mac - Serial port already in use

I have RXTX installed on a Mac. Both a Java JAR program and the Arduino software see the Arduino as a USB modem if it is Both claim the port is "already in use" if we try to open the serial port. Both claim "Unknown User". I have the rxtxcomm.jar in…
mkstlwtz
  • 720
  • 2
  • 7
  • 19
8
votes
3 answers

How to fix Java rxtxSerial.dll or jSSC-2.7_x86_64.dll Serial Port Error in Windows 10?

UPDATE: I have found a solution by using the jSerialComm library. (see code at the bottom) I have a program that we have been running for quite a while on windows 7 machines, but now are starting to introduce machines with Windows 10, and the…
8
votes
1 answer

How do I detect when a serial port has been closed by the device in java?

I'm currently using RXTX to handle serial communication in my java program and I have successfully been able to connect/disconnect and read/write. However I haven't be able to figure out if there is a way in RXTX to detect if a device disconnects…
user2623999
  • 81
  • 1
  • 3
8
votes
5 answers

java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver

Fedora using right now (package is installed Package rxtx-2.2-0.5.20100211.fc15.i686 already installed and latest version ). I have used/tried: # locate…
user285594
7
votes
1 answer

Ubuntu RXTX does not recognize usb-serial device

I'm connecting a device with librxtx-java to Ubuntu. The code previously worked in 10.04, but in 12.04 it can't discover the usb-serial connected to the computer. java.util.Enumeration portEnum =…
NoBugs
  • 9,310
  • 13
  • 80
  • 146
1
2 3
25 26