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

Jssc Flow Control Xon

I'm using Jssc for an arduino based application. It works great. I'm able to send and receive. But I'm having issues with the XonXoff flow control. Does Jssc automattically stop sending when the Xoff char is received ?? Of course, I used …
Psyko
  • 11
  • 4
1
vote
2 answers

Writing data to serial port, sends wrong character

When monitoring data sent to device i get this: https://i.stack.imgur.com/u0kIT.png but i expect one character: F0 ð public void WritingDataToPort() { SerialPort port = new SerialPort("COM26"); try { …
siulkilulki
  • 1,054
  • 1
  • 10
  • 18
1
vote
2 answers

JSSC serial connection set write timeout

I need to write some byte to the serial connection. However I can not find something in JSSC library to set a write timeout. I need this timeout because if I set the hardware flowcontrol and I remove the cable my application is stuck waiting the CTS…
Tobia
  • 9,165
  • 28
  • 114
  • 219
1
vote
1 answer

Receiving data from Terminal connected with USB->RS232

I'm developing a java application that need communicate with a terminal connected with a usb-to-rs232 converter!! Right now I can connect with device and send data! I can be sure that the terminal receive the data sent because a led glow when the…
Fernando Carvalho
  • 393
  • 1
  • 3
  • 14
1
vote
1 answer

JSSC Serial connection and its flow control

I need to send a long text to serial printer using Jssc library. After a few I get a full buffer error, so I thought it can be the flow control settings, because for smaller transmission everything works. The printer can use XON/XOFF flow control…
Tobia
  • 9,165
  • 28
  • 114
  • 219
0
votes
0 answers

Can't read result after sending AT commands to GSM modem with java and jssc

I need to send AT commands to a concrete port and get the response public static void main(String[] args) throws InterruptedException { try { String[] portNames = SerialPortList.getPortNames(); if (portNames.length < 1) { …
4SadMemeXD
  • 101
  • 8
0
votes
1 answer

JSSC not recognizing Arduino board

I am trying to use the JSSC library to connect to my Arduino Nano. I have a driver for my Mac, and it works with the Arduino editor, and everything, but the JSSC library won't recognize the board. No errors, just doesn't find my board. Here's my…
apstamp45
  • 26
  • 4
0
votes
0 answers

Getting Ring Indicator isRING() and add it to the listener using jssc library?

I am trying to write a little program for the cash register using JSSC library. I have used that library to work on barcode scanner and it works fine and I get the return value from the scanner. But for cash register case, I do not get any value.…
sanki
  • 59
  • 2
  • 9
0
votes
0 answers

JRE crash in Java serial app with JSSC in W10 enviroment

I'm new to Java and when trying to run the following code with jssc-2.8.0 library, at the "serialPort.openPort()" method the IntelliJ IDE crashes and reports: A fatal error has been detected by the Java Runtime…
rmattos
  • 1
  • 2
0
votes
1 answer

read data from rs-485 using java jssc

I have weight indicator device that sends data using rs-485 protocol, I am connecting it to computer using USB (serial to usb converter). using program (serial comm tester) i can read data correctly from it and it works fine. now I am trying to read…
MHArslan
  • 3
  • 3
0
votes
0 answers

Running a method after the end of the response from serialPort?

I am sending a bunch of commands and receiving a response from the serialPort using JSSC Library. At the end of the response, I get three similar responses but with different sequence numbers? like l1~cdo~100~1~ l1~cdo~101~1~ l1~cdo~102~1~ The…
sanki
  • 59
  • 2
  • 9
0
votes
1 answer

RS232 - JSSC 2.8.0 Serial Port Reader - Ambiguous reading

package deviceintegration; import jssc.SerialPort; import jssc.SerialPortEvent; import jssc.SerialPortEventListener; import jssc.SerialPortException; /** * * */ public class SerialScaleDevice implements SerialPortEventListener { private…
0
votes
0 answers

How can I wait data to be send using JSSC library

I'm using JSSC library for serial communication under Windows (if it's matter). I need to know, how I can be sure that the data is sent to the device and I can close the serial port safe? Note: Data can be with different size and in my case, a…
MBaev
  • 353
  • 2
  • 20
0
votes
0 answers

Getting the wrong value in the program when using datalogic scanner

I am writing a program for Datalogic Scanner to scan QR code and using JSSC library to send a command. When I first scan the QRcode it prints out the actual number when I scan the second QRCode it prints out the QRcode of the first and same goes on…
sanki
  • 59
  • 2
  • 9
0
votes
1 answer

Fatal error attempting to write to COM port using JSSC [EXCEPTION_ACCESS_VIOLATION]

Used JSSC to write/read data from a COM serial device. COM was detected but attempting to write or read gives this error: EXCEPTION_ACCESS_VIOLATION