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

Prevent Serial.Print to convert data to ASCII

I would like to create a ModBus-like communication between Arduinos (WITHOUT any RS232/RS485 module). But the Serial.print(data); convert data to ASCII Human Readable data. I would like to keep the "Byte" format between arduinos. Does someone know…
Alexis Paques
  • 1,885
  • 15
  • 29
0
votes
0 answers

Get device names connected on RS232 port

We are developing a java web application and it must read barcodes. We are using a barcode reader called Gryphon and it works properly. We are able to read barcodes from Java. We are using RXTX API (similar to JAVACOMM). But what we would like to…
Eduardo
  • 1,169
  • 5
  • 21
  • 56
0
votes
1 answer

Arduino not reacting to Java program with Ardulink

(Using an Arduino Uno) I've used the simple test from the Ardulink creator himself (http://www.ardulink.org/how-to-write-an-ardulink-gui-five-minutes-tutorial/ -- found under "Step 4") although I modified the program to send power to pin 13 (the…
MrGraversen
  • 257
  • 3
  • 16
0
votes
1 answer

Getting org.smslib.TimeoutException: No response from device - exception on 64-bit machine using SMSLib

I wrote a code to send/receive sms via GSM Modem using SMSLib. On my 64-bit machine I set up 32-bit JDK as per solutions given in some links. Following is code in which I am getting exception OutboundNotification outboundNotification = new…
0
votes
0 answers

Java: Serial Communication using jSSC

I'm developing an application that involves a device, card dispenser specifically and there is provided documentation for its API. According to the documentation, for example, sending "C45" command will raise the card lift up. So based on jSSC API…
Erieze Lagera
  • 422
  • 6
  • 19
0
votes
1 answer

Getting unexpected result of AT COMMAND in java

import gnu.io.*; import java.io.*; import java.util.*; import java.lang.*; public class SerialWrite implements Runnable, SerialPortEventListener{ static String output=""; public void run(){ } static Enumeration portList; …
user2631892
  • 25
  • 1
  • 1
  • 7
0
votes
1 answer

serialPort.setRTS(true) functionality

Do I have to use serialPort.setRTS(true) every time before reading data from serial inputstream or only once at the time of initializing the serialPort it is required What is the difference between setRTS = true or false. Not able to find detail…
pritz
  • 29
  • 2
  • 3
0
votes
0 answers

Outputstream write() gets blocked using RXTX to communicate with HC-05 BT Module

I've tried to solve the following Problem the last three days. I spend three days reading through various threads in many forums. This is my problem: I try to send commands to a Bluetooth HC-05 device connected via a virtual Com-Port. In my case…
0
votes
3 answers

Run jar file with external and local library

I try to write a program with java and I want every body can run the program without any setting in their system.My program use RXTX-2.1.7 library. I add rxtx-2.1.7.jar to my program and I don't add it to my jre. I don't set path in Environment…
Ahmad
  • 109
  • 1
  • 11
0
votes
1 answer

Arduino crashes when sending bytes from Java

I used the sample program from the arduino website in order to send and receive data via serial to my Arduino one. However, for some reason, even when I try to send only one byte, the Arduino crashes after a while. It doesn't happen if I send the…
francisaugusto
  • 1,077
  • 1
  • 12
  • 29
0
votes
1 answer

gnu.io.NoSuchPortException is occuring while executing the program

Jar version = RXTX-2.2pre1 native lib Version = RXTX-2.1-7 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:269) The above exception is coming while executing the below code, where…
user3702118
  • 11
  • 1
  • 2
0
votes
2 answers

Save data on array

Hi everyOne it's my first topic on this website; and sorry for my bad english i'am not a native english speaker So i wanna save my data received from my embedded card into an array here is my fonctions public void serialEvent(SerialPortEvent evt)…
0
votes
1 answer

RXTX read response too short- can't receive all the bytes the client has replied

I have a code which sends commands to a relay board over a virtual serial port attached to one of the USB connectors on the PC, and reads the response. Syntax: send: command\r response: command\r answer\r > On my dev PC, it works fine. (Lubuntu…
0
votes
1 answer

Using lybrary RXTX 2.1

I'm programming some code with the mentioned library in JAVA. The problem is that, because the buffer receibed could be of variable long, as limit 512 bytes, when it is long enough I received the message fragmented. I thought that the serial event…
0
votes
1 answer

RXTX 2.2pre2 crash using inside AWT/Swing

I'm using rxtx library for connecting to a serial port. For that I set up a gui using different tabs. The first tab shows the available devices calling gnu.io.CommPortIdentifier.getPortIdentifiers() on rxtx library version 2.2pre2 (os is lastest…
k1ngarthur
  • 124
  • 1
  • 12