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
1
vote
1 answer

JSSC - Breaking a connection causes blocking serial ports

I'm using the JSSC Serial Port package to exchange a data between my application and a device connected to the serial port. I made a simple application which can send identification message to the device and prints a response. I wanted it to be…
1
vote
1 answer

Read String from Arduino serial port with JAVA and jssc lib

String Serial_Input must contain a serial number card RFID (MIFARE) like this A45F45A7 (8 byte). sometimes when I approach the card to the RFID reader of arduino the string is like this A45F45 (truncated) , miss any char. there is a solution better…
corv00
  • 35
  • 1
  • 7
1
vote
1 answer

Can Java JSSC library detect a lost connection?

I know serial ports are not so good but still a little hope... I am using JSSC library for communication. Does the JSSC library have a method to detect when an established connection is lost due to hardware removal?
jain
  • 13
  • 4
1
vote
0 answers

Java bluetooth connection with jssc - troubles with key listeners

I'm trying to make an app to connect computer with arduino via bluetooth. So far it was going well (I had simple buttons to sent 0 or 1 and connection was going smoothly), but when I added key listeners it stopped responding right after it…
Rabbit
  • 37
  • 6
1
vote
1 answer

Windows10 jssc.SerialPortException: openPort(); Exception type - Port busy

I'm new to java but not to programming. I'm trying to understand how to use serial port in java. I'm trying to develop a code that will require to open and close a serial port multiple times during runtime. On my test code I use checkbox that when…
1
vote
0 answers

JSSC sometime doesn't write to serial port

I wrote a java program using JSSC library to communicate with a usb serial device in linux.but I encountered several problems when going to communicate. Sometimes when going to write data to the port.but serial device didn't read data.but my java…
Ruwan
  • 11
  • 4
1
vote
1 answer

java-simple-serial-connector (jssc) discard buffer methods

I'm reading data from a hardware through the serial port and I'm using readString() method of jssc. I have used a Timer to get data continuously. Because of this, whenever I changed the command, the received data is a combination relevant to…
Sherantha
  • 462
  • 3
  • 19
1
vote
1 answer

Connect pc with arduino using Java Simple Serial Connector

Im trying to make connection between my computer and arduino uno using Java Simple Serial Connector. Im trying to do it using code listed below. Somehow its not working ( the led diode connected to pin 7 of arduino is not turning on while running my…
HTF
  • 33
  • 1
  • 8
1
vote
2 answers

When requesting com port returns the same request

I`m trying to send AT-command via COM-port, but reseived only the same command. package SerialConnections; import jssc.SerialPort; import jssc.SerialPortEvent; import jssc.SerialPortEventListener; import jssc.SerialPortException; import…
1
vote
1 answer

JavaFX Concurrency and Tasks (running threads in Task)

I am new to JavaFx/Concurrency so I read the tutorial over at Concurrency in JavaFX but I am still a little confused about the implementation of background threads in a JavaFX Gui. I'm trying to write a small GUI that interfaces with some serial…
Shah
  • 178
  • 1
  • 1
  • 11
1
vote
1 answer

JavaFX+JSSC(Java Simple Serial Connector) thread communication

I am working on a barcode scanning project. I use a barcode scanner to scan barcodes and the scanner communicates with my laptop via bluetooth. The bluetooth connection is emulated as the serial port communication. I have developed a Java desktop…
Java guy
  • 33
  • 1
  • 4
1
vote
1 answer

Delay in serial communication using jssc

I am using jssc for serial port communication with simulator which I made. The thing is whenever server requests for a device from my simulator I encounter a delay as device in my simulator replies after some time, not exactly after the request. For…
1
vote
1 answer

Read Complete Line Java Serial Port

I have implmented JSSC API so I can communicate with the Com Port. I send a command like "N\r\n" and what i receive in a normal hyperterminal should look like…
user3756431
  • 53
  • 1
  • 5
1
vote
3 answers

jSSC Not Sending Data to Arduino

I have a problem with writing function of jSSC. My Arduino Uno board seems not getting data from my Java program. I have a stepper motor controlled by Arduino Uno board. I made a simple program that has 2 buttons. One is for CW rotation and the…
Huseyin Ulku
  • 11
  • 1
  • 2
1
vote
2 answers

Can netty be used with jssc for serial comms?

I've used netty with udp and tcp protocols. To my surprise it can be used with serial port as well. Transport used is rxtx, there are a very few positive recommendations for rxtx. Can netty be used with jssc instead of rxtx? Should an application…
jacktrades
  • 7,224
  • 13
  • 56
  • 83