Questions tagged [jssc]

jSSC (Java Simple Serial Connector) - library for working with serial ports from Java

jSSC supports Win32(Win98-Win8), Win64, Linux(x86, x86-64, ARM), Solaris(x86, x86-64), Mac OS X 10.5 and higher(x86, x86-64, PPC, PPC64).

118 questions
0
votes
2 answers

Unable to send data on serial Port with jssc without closing port?

I'm trying to send data to an Xbee antenna with a serial port in Java using the jssc library. I want to be able to send and receive multiple data packets on the same connection. The problem I have is that my code only send my first packet after…
0
votes
1 answer

using JavaFX controller class+ FXML + jssc ( java simple serial connector)

I'm working on a simple application using JavaFX with controller class and FXML and Jssc to control arduino. The arduino is connected to a sg90 servo motor and a LED. I'm having problem with slider to control the servo motor. i want to use the…
Rey John
  • 15
  • 1
  • 5
0
votes
0 answers

jssc serialPort.readBytes(1) doesn't work (the same) on all COM-ports

I've got this weird problem that my software doesn't read the byte it sent when using the real COM5 or COM6, but when using a RS232 tot USB cable (which came up in Windows as COM12) it did work. Connected to the COM-port are two wires that will tell…
JeroenV
  • 53
  • 2
  • 10
0
votes
0 answers

close my ports programatically using netbeans

I am using server program to connect with arduino board I am using hc-05 bluetooth in my arduino board so that it is wireless and then scratch program will open which will display some output.I am using serial port communication where I am…
Sruthi Acg
  • 93
  • 10
0
votes
1 answer

jssc windows and linux

I'm using jssc to communicate with equipment. In Windows and Linux the program was ok but I had a problem with virus and i format my pc then the program don't work with Windows but with Linux the program works fine. I don't know why the program…
Pablo Aleman
  • 196
  • 1
  • 3
  • 13
0
votes
2 answers

Serial port communication after port is closed and reopen

I am writing a serial port communication application in Java using a library called jSSC (java-simple-serial-connector) with an external device. After sending a message and waiting for its return, I have a timeout that will abort the reading if…
Wudong
  • 2,320
  • 2
  • 32
  • 46
0
votes
1 answer

Java Comm port on Windows - Automatic port detection

I'm developing an application that needs to be able to communicate with devices over Serial Comms on Windows OS. The application is written in Java. I am using the jSSC library. (Javax.comm has issues and RxTx has no Java 8 support apart from an…
0
votes
2 answers

Communication with a payment terminal in java (serial port)

I want communicate with a payment terminal in using jssc API. I send a ENQ request but I have no respond. What is wrong in my code ? Thank you You can find my code below : public class CommunicationTPE { private int montant; private int…
0
votes
1 answer

Java: Exception in "AWT-EventQueue-3"

I am working on Oracle and trying to move forms from 6i to 11g. I am trying to make connection and get weight (data) from the weighing machine using jssc. I am facing some problems. Here is the code: package oracle.forms.demo; import…
0
votes
2 answers

jssc always timeout

So I'm trying to send command to my device using JSSC library, but haven't succeeded yet. This is my code, build from several example online: static SerialPort tPort = new SerialPort("/dev/ttyUSB0"); public static void main(String[] args) { …
ndriks
  • 359
  • 6
  • 16
0
votes
2 answers

Serial port over USB in Linux changes unexpectedly

I have a problem with a custom electronic device communicating with a workstation via RS232 on USB interface. As soon the device is connected, it receive, says, the address /dev/ttyUSB0, after some (random ) time of sending receive commands, the…
Felice Pollano
  • 32,832
  • 9
  • 75
  • 115
0
votes
1 answer

My SerialPortEvent does not receive data using jSSC in a continous loop

I have been trying to use serial communication with my Arduino Uno and have used the library jSSC-2.6.0. I am using a SeriaPortEvent listener to receive bytes from the Serial Port (Arduino) and store them in a linked list. public synchronized void…
0
votes
1 answer

Java jssc - Passing value to another class from SerialEvent

I'm making a project that uses a login form and accesses an Arduino using the serial port. I must send a String to the Arduino as the application starts and wait for a response from the device to know its ready to operate before checking the login…
rasa911216
  • 97
  • 2
  • 12
0
votes
1 answer

getting error when compiling for modbus rs232

i am new in java... i am trying to read on modbus. PLC is slave device and it is configured well. my java file is unable to read modbus values.here is the code..given below. error is coming at master.init(); method. please help me in this case. …
ayyaz
  • 9
  • 4
0
votes
2 answers

Synchronous/Asynchronous Serial Port communication With JSSC

I am trying to communicate between two computers using the Serial port and I am new to this area. I need to send requests from one computer(say A) to the other(say B) and receive responses for the requests sent. I am updating a Java Swing user…
Can't Tell
  • 12,714
  • 9
  • 63
  • 91