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

RXTX getPortIdentifiers not finding ports on Mac OSx

I've spent most of my weekend trying to connect to my Arduino over the serial/usb port using Java. I went through a bunch of different tutorials but I cannot find a solution the problem I am running into. First of, I am running Java 7 on Mavericks.…
ophychius
  • 2,623
  • 2
  • 27
  • 49
0
votes
1 answer

Handling ANSI codes in JTextArea

I am implementing new tool which supports serial communication using RxTx library. My environment here is: Provided user interface to execute commands and display input from serail connection. My Problem here is: when i am reading data from serial…
madhu
  • 37
  • 1
  • 10
0
votes
1 answer

TAB key functionality implementation in JTextArea

I am using rxtx library for serial communication and for GUI i have used JTextArea to display the input and output. The implementation is similar to a terminal tool, where i am trying to implement TAB key functionality as same in linux console or in…
user3164187
  • 1,382
  • 3
  • 19
  • 50
0
votes
0 answers

Terminal GUI to achieve Up arrow function

I am using RXTX library for serial port communication in java. For GUI(to show it like a terminal) using java swings text area. In normal terminal tools if we do up arrow we get previously executed commands or if we do backspace it will delete only…
user3164187
  • 1,382
  • 3
  • 19
  • 50
0
votes
1 answer

How to read particular string?

Hi i am trying to make java desktop application where i am receiving value from seril port in my java string variable and i am receiving data through a hardware device and this will throw data continuously i am storing that data in a string…
user3456343
  • 252
  • 3
  • 7
  • 21
0
votes
0 answers

.jar not doing the same thing that in Eclipse

I created a .jar from my Eclipse app. So I do Export -> JAR File -> I choose my Package + lib -> Define my Main Class My program use RxTx lib. Here is my MainFrame : package Main; import gnu.io.CommPortIdentifier; import gnu.io.SerialPort; import…
D3fman
  • 85
  • 2
  • 11
0
votes
1 answer

Send a String to serial port as a command for embedded device

I am working on a project that involves an embedded device. I am expected to send a command to this device. This command is a string: "LAMP1_ON\r\n"; I am using RXTX with java and sending the data via serial port. But when i send the String command,…
0
votes
2 answers

File missing from java.library.path

I am building an app to get NMEA GPS data, with serial port communication via RXTX. On my Mac it runs great. When I try to run it on my Rasp Pi, it throws the error: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver On…
Ben Mayo
  • 1,285
  • 2
  • 20
  • 37
0
votes
1 answer

Possible to call methods from an Arduino library from java?

I have written a program controlling my led stripes from Arduino, using a library which I modified to work with my stripes. The thing is now that I want to advance (network and stuff). Since I'm decent Java developer this would be so much easier in…
Jakkra
  • 641
  • 8
  • 25
0
votes
1 answer

Reading serial data from Arduino fails

I have written a program for Arduino that reads some analog signals and sends them to the computer when it receives a command from the master computer. I wondered why this didn't work on the computer it was intended to run on. On my own computer it…
MikkoP
  • 4,864
  • 16
  • 58
  • 106
0
votes
1 answer

Is com port opened in exclusive mode

I have created application that sends/receives messages using com port. I use rxtx lib for this purpose. When application starts I open com port like: String comportidentifier = "/dev/ttyS0"; CommPortIdentifier portIdentifier =…
vico
  • 17,051
  • 45
  • 159
  • 315
0
votes
0 answers

Maximum no. bytes that can be written on com port

I have written a code for serial communication using RXTX comm.When i write 13000 bytes on port then nothing is written but when i write 115200 or less bytes it works like a charm.One more thing this only happens on some systems. Update: Below is my…
0
votes
1 answer

Blocking vs Non Blocking RxTx

I am trying to figure out if I should use blocking or non blocking communication with RxTx. I have to communicate with a device that accepts commands and reply. There are over 20+ commands Reply pakcets dont contain any information about which…
GorillaApe
  • 3,611
  • 10
  • 63
  • 106
0
votes
1 answer

RXTX library failed on Ubuntu

Trying to run java programm, on Ubuntu machine. Java programm is using RXTX library and crashes when program is trying to open com port: java.lang.UnsatisfiedLinkError: /opt/pnt/lib/librxtxSerial.so: /opt/pnt/lib/librxtxSerial.so: wrong ELF class:…
vico
  • 17,051
  • 45
  • 159
  • 315
0
votes
3 answers

SerialPortEventListener Implementation

I am playing with the Firmata protocol which allows you to control Arduino through a serial protocol. I am reading sensor values using SerialPortEventListener listening for DATA_AVAILABLE event. But i notice a lot of latency it takes a second for…
Hamza Yerlikaya
  • 49,047
  • 44
  • 147
  • 241