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
0 answers

10 sec+ delay in processing Arduino Serial input in Java

What I wish to do: Read Serial.println from my Arduino(COM3) without majoy delay in time What my situation is: This Java program delays roughly 20 seconds in Serial input. This has been achieved by the Arduino IDE Serial monitor. I wanted to embed…
0
votes
1 answer

Trying to use RXTXcomm.jar with a executable I made

I wrote a program to communicate with an arduino using the RXTXcomm.jar. It works in eclipse because I "Added External Jars" in the edit class path option. I got the tutorial off this website:…
Ian
  • 21
  • 1
  • 4
0
votes
4 answers

Installing rxtx bundle in my Raspberry

I want to install an rxtx bundle on my Raspberry Pi the bundle will be running on KURA platform (Equinox is the OSGi container for Kura) I installed the rxtx native library using: sudo apt-get install librxtx-java the .so was installed on the…
sabrina2020
  • 2,102
  • 3
  • 25
  • 54
0
votes
1 answer

Java + arduino not connecting

I'm working on connecting a JavaFx application to arduino and have run into dozens of errors. There are very bad tutorials online for connecting these platforms. I am currently on a mac and have tried three different solutions to no avail. I'm…
jaronoff97
  • 366
  • 3
  • 15
0
votes
1 answer

Have serial port working under Linux 64 bits with Java

I need to connect to and use a serial port using Java from a Linux 64bits machine. In my case an USB to Serial adapter since laptop have no more serial port since a while... After struggling a lot, I got it working. Then changing my laptop, I lost…
Cedric Simon
  • 4,571
  • 4
  • 40
  • 52
0
votes
1 answer

Problems with RXTX in Windows 7, but not in Windows 8

I'm working on a project which uses RXTX. I export it as an exacutable jar and it is in a folder like: MainFolder - lib - RXTXcomm.jar - ... more jars - logs - config.properties - App.jar <-- Executable jar In my computer…
Carolina
  • 13
  • 1
  • 5
0
votes
1 answer

Close serial port issue in Java

I have following Java code: import java.io.*; import java.util.ArrayList; import gnu.io.CommPortIdentifier; import gnu.io.SerialPort; import gnu.io.SerialPortEvent; import gnu.io.SerialPortEventListener; public class SerialCommDataReading…
Maytham Fahmi
  • 31,138
  • 14
  • 118
  • 137
0
votes
1 answer

Why am i having issues 'make install' RXTX on Raspbian with Java 1.8

I am trying to run a Java program which uses gnu.io. This is failing because RXTX has not been installed correctly. I went to the FAQ. And subsequently changed the configure.in file to be extended to 1.8* But I am still getting the same error…
Robert Mason
  • 181
  • 3
  • 15
0
votes
1 answer

Sending serial data to Arduino using RXTX Java library

I have some code which constantly reads a line of serial data from an Arduino. I have the arduino set up to send back out whatever data it reads in, or if there is no data to read it will just send out "No Data". I am receiving "No Data" to the Java…
Ben Guy
  • 1
  • 1
0
votes
1 answer

Java modbus rtu slave

I'm trying to develop a modbus rtu slave app. I've tried to use: j2mod, jamod, modbus4j, jmodbus. Non of them is working as I wanted to. I've googled for some examples but there is a lack of modbus rtu slave. Could you please provide any…
Dux_inf
  • 101
  • 2
  • 8
0
votes
1 answer

portList.hasMoreElements() returns false in serial port

I am working on an application related with serial port and AT commands for SMS sending using Java, I am using windows8.1 64 bit, my code as follows: public static void main(String[] args) { System.out.println("here"); String line1 =…
Santhucool
  • 1,656
  • 2
  • 36
  • 92
0
votes
1 answer

Transmitting data from another thread, slow serial link with Java and RXTX library

Alright, I'll try to be as clear as possible with my problem. I'm transmitting serial data over a veeeeeeery slow radio link (using the UART-controller on the raspberry pi and a home-built radio). It's for a very specific project where the…
Jakob
  • 1,288
  • 7
  • 13
0
votes
1 answer

RXTX send string as ASCII through serial port?

I have this code using the RXTX library: public void sendSerial(String msg) throws IOException{ try{ out1.write(msg.getBytes()); }catch(Exception e){ e.printStackTrace(); } try{ out1.flush(); …
ByteDuck
  • 1,821
  • 3
  • 15
  • 27
0
votes
1 answer

Intelij idea error "Could not find or load main class" when trying to add "-Djava.library.path" as vm option

I have a Windows 64 bit pc. I'm trying to connect a Java program to my Arduino. This site says I have to use this as the command line argument: "java -Djava.library.path='RXTXcomm.jar location' 'Program name'". I am using intelij-idea as ide, so I…
flaghacker
  • 23
  • 1
  • 10
0
votes
0 answers

Incorrectly Reading Serial Using RXTX in Ubuntu

I am reading Accelerometer signals connected to Arduino board through a serial interface. I am using the RxTx library and following is the code. private void initializeSerial() { CommPortIdentifier portId = null; Enumeration portEnum =…
kinath_ru
  • 4,488
  • 3
  • 21
  • 26