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
0
votes
1 answer

JRE crashes frequently. I am using RXTX with Java (1.6) for serialcomm in Linux. Exception

An unexpected error has been detected by Java Runtime Environment: SIGSEGV (0xb) at pc=0xb7e50e81, pid=18299, tid=2909465488 Java VM: Java HotSpot(TM) Client VM (10.0-b22 mixed mode linux-x86) Problematic frame: C [libc.so.6+0x68e81] An…
0
votes
1 answer

ETA for RXTX back in Netty 4

There used to be RXTX support in an old Netty 4 branch. Is there any ETA for having RXTX back in Netty 4?
jeje
  • 61
  • 4
0
votes
0 answers

RXTX serial port write binary data at boot

I've beed into a strange problem today and can't find anything to solve it the right way. I have a Java program that is started with /etc/rc.d/rc.local on Slackware 12.1. The program works perfectly. It have to send data on ttyS0 after some requests…
Alexandre Lavoie
  • 8,711
  • 3
  • 31
  • 72
0
votes
2 answers

RXTX java, inputStream does not return all the buffer

This is my code, I'm using rxtx. public void Send(byte[] bytDatos) throws IOException { this.out.write(bytDatos); } public byte[] Read() throws IOException { byte[] buffer = new byte[1024]; int len = 20; …
GunBlade
  • 105
  • 2
  • 12
0
votes
1 answer

Java: select serial port to read Arduino Uno

I am trying to read from an RFID tag number that is scanned by a parallax RFID reader and sent to the computer using the Arduino device. I am trying to read from the serial port using RXTXCommDrive, but the problem is that when the Arduino is…
0
votes
2 answers

I want to store the data received from serial port in a string variable that will be accessed in another class

I want to store the data received from serial port in a string variable that will be accessed in another class. I wrote up code that prints the data received from com port but when the variable is accessed out of the method it returns null.. Please…
Manu
  • 73
  • 1
  • 9
0
votes
1 answer

How to read and write serial communication in Java?

I'm using this Java program to communicate with an Arduino board. However, I'm having trouble reading and writing serial data to the Arduino. Currently it looks like this: public synchronized void serialEvent(SerialPortEvent oEvent) { if…
ask
  • 2,160
  • 7
  • 31
  • 42
0
votes
1 answer

Changing the class file in Runtime

My requirement is to change an import statement in a java file in the runtime. I am accessing a Dot-matrix printer through the COM port and for Windows and Linux I have to use different Jar files - windows com.jar, rxtx.jar. For now I am doing two…
Chan
  • 2,601
  • 6
  • 28
  • 45
0
votes
1 answer

Java applet: Can I communicate over serial with the server?

I have written a java application using Processing that communicates with an Ardunio over serial. It works fine when run from the compiler, but I wish to turn it into an applet. When running the applet(as is) in a browser it just goes to a white…
charles horvath
  • 315
  • 1
  • 2
  • 9
0
votes
1 answer

Issues with RXTX - Erronous amount of bytes being received

I'm having some difficulties with retrieving data from a microcontroller. I'm transferring data in chunks of exactly 2000 bytes, and have written a thread to handle these 2000 bytes before make a new call to send the next 2k bytes. For the most part…
user1240989
  • 619
  • 1
  • 6
  • 5
0
votes
1 answer

Unable to locate RXTX native DLLs in a JavaFX app

I am building a desktop JavaFX 2.0 application that needs to interact with a card reader over the serial port. So I am using the RxTx library version 2.1-7r2 32bit. To do some initial testing/learning I built out the RxTx functionality in a java…
Andre
  • 453
  • 1
  • 4
  • 11
0
votes
1 answer

Handling handshake lines in RS232 DB9 using rxtxComm

I used rxtxComm to communicate(send and receive data) with Arduino (USB-Serial port). How do i handle the handshake lines like DTR using the rxtxComm library? Can you give me some tutorial on this or some sample code??? Note: I use win7 OS. I…
Rps Deepan
  • 25
  • 6
0
votes
1 answer

rxtx error 0x3e3 IO operation aborted and invalid setparameters

im a total newbie at programming and i want to ask some advice in serial port coding using java and rxtx. this error "Error 0x3e3 at ..\rxtx\src\termios.c(2350): The I/O operation has been aborted because of either a thread exit or an application…
-1
votes
2 answers

Arduino(RXTX) under Linux? - works in Windows

I'm currently developing a programm with Java to interact with an Arduino module. Now in Windows, it's running pretty well so far (I receive what I expect; I can work with the data), but in Linux (Ubuntu in my case); it's like the opposite. I…
Volker Mauel
  • 514
  • 3
  • 21
-1
votes
1 answer

how to send command to embedded pc connected by serial port

i want to send commands to to an embadded pc whihch connected to my pc through serial port ... here is the code that i use ... public class Write { static Enumeration portList; static CommPortIdentifier portId; static String messageString = "Hello,…
S Gaber
  • 1,536
  • 7
  • 24
  • 43
1 2 3
25
26