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

serialport write and read on windows not working

I first tried to use javax.comm to connect to the serial port (COM4). It did not even open the serial port. Then I tried to use rxtx libraries (rxtx-2.2pre2) to connect. It connects and writes the data but does not read any data from the serial…
JohnH
  • 150
  • 1
  • 11
7
votes
6 answers

Issues receiving in RXTX

I've been using RXTX for about a year now, without too many problems. I just started a new program to interact with a new piece of hardware, so I reused the connect() method I've used on my other projects, but I have a weird problem I've never seen…
Nate Parsons
  • 14,431
  • 13
  • 51
  • 67
7
votes
2 answers

RXTX cannot list or find ports under windows 7 64 bits

Good morning, I'm having issues using/or installing rxtx on windows 7 64 bits. I worked with it previously on a x86 win XP system and had no issues. Since reinstalling to this new system for some reason rxtx is unable to locate any ports whatsoever.…
darkhelmet
  • 123
  • 1
  • 2
  • 7
6
votes
6 answers

gnu.io.PortInUseException: Unknown Application?

void connect ( String portName ) throws Exception { CommPortIdentifier portIdentifier = CommPortIdentifier.getPortIdentifier(portName); if ( portIdentifier.isCurrentlyOwned() ) { System.out.println("Error: Port is currently in…
Ramesh Kotha
  • 8,266
  • 17
  • 66
  • 90
6
votes
3 answers

Cannot program ESP8266

Blue led is blinking after powering up the module, the red one stays on, I can even connect to it via wifi. But I cannot program it. I tried Arduino IDE, different firmware flashers (Like NodeMCU, XTCOM). I'm using Arduino Mega. Here's my initial…
Alex Pilkevych
  • 185
  • 1
  • 1
  • 8
6
votes
1 answer

Run JavaFX app with external libraries in Android?

I just developed a JavaFx application which use RXTX library for serial communication and in the future will use Bluecove for bluetooth. It was my understanding that there are some ways to run a JavaFx app on Android devices, so I began my…
Juan
  • 1,949
  • 1
  • 15
  • 22
6
votes
1 answer

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

I am trying to connect to my arduino with Java and OSx yosemite, but am getting the following error: Exception in thread "main" java.lang.UnsatisfiedLinkError: no usbJava in java.library.path at…
Sebastian Breit
  • 6,137
  • 1
  • 35
  • 53
6
votes
0 answers

Java MODBUS RTU master example code

I need to write Modbus RTU master app in Java that support 03 - Read Holding Registers and 16 - Write Multiple Registers. I found three java libraries: jamod, j2mod, modbus4j. I try all of these libraries (I spend about 4 hours) and it still doesn't…
martin
  • 1,707
  • 6
  • 34
  • 62
6
votes
1 answer

Using DartLang to comunicate via Serial port

I want to use DartLang to communicate with Arduino by Serial Port, not over TCP/ip. I've found DartLang chrome package and Chrome Serial reference, this is the solution ? Or there are some other solution to use Serial Port with DartLang?
Domenico Monaco
  • 1,236
  • 12
  • 21
6
votes
1 answer

How do I use Google protobuf to communicate over a serial port?

I'm working on a project that uses RXTX and protobuf to communicate with an application on a development board and I've been running into issues which implies that I'm likely doing things the wrong way. Here's what I currently have for writing the…
rjzii
  • 14,236
  • 12
  • 79
  • 119
6
votes
1 answer

Java: Using RxTx Libararies

I am new to Java , and trying to write a serial communication application. I am using Windows 7 (32 bit) D:\Glaswegian\Java\RXTX\Test>java -version java version "1.7.0_13" Java(TM) SE Runtime Environment (build 1.7.0_13-b20) Java HotSpot(TM) Client…
Gaurav K
  • 2,864
  • 9
  • 39
  • 68
6
votes
1 answer

Is constant polling in RXTX necessary?

While trying to figure out this problem (any help there is appreciated), I ran RXTX while monitoring its activity using PortMon and noticed that RXTX constantly checks if data is available, even when the Java client reads from the gnu.io.SerialPort…
Nate Parsons
  • 14,431
  • 13
  • 51
  • 67
6
votes
2 answers

Can I simulate game pad button presses with Java's Robot class (Java.awt.robot)?

I'm using an Arduino Uno to hook a (genuine) SNES controller to a computer via USB or Bluetooth. The Arduino captures the controller's button presses and releases using the snespad library. It communicates button presses and releases as characters…
keattsd
  • 69
  • 5
6
votes
3 answers

Reading from COM port in Java, Error 0x5 at ..\rxtx\src\termios.c(892)

I'm writing a small app in Java to read from COM port, and since we use 64 bit systems I had to use RXTX. The problem is when I try to run my app I get the following error: "Error 0x5 at ..\rxtx\src\termios.c(892):Access Denied" Tried my code and…
Sin5k4
  • 1,556
  • 7
  • 33
  • 57
6
votes
2 answers

Serial communication API for Java on 64 bit systems (modem interaction)

I'm searching for an serial communication API for Java. Very important is the support of 64 bit systems. I've used rxtx with the 64 bit libs of Cloudhopper but on some Windows Server 2008 systems I got heavy problems with jvm crashes when accessing…
sebastian
  • 2,427
  • 4
  • 32
  • 37
1
2
3
25 26