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

Javafx and JSSC serial communication

Need some help with Javafx + JSSC. I'm trying to establish a serial communication between a Raspberry Pi 3B+ and an eval. board (Atmel SAMC21 Xplained Pro). Here is a symbolic representation of my hardware setup: Raspberry Pi 3B+ with Javafx…
AverageJoe
  • 27
  • 7
0
votes
1 answer

Reading from serial port gives split up string

I am using the JSSC class to receive a string from an Arduino Uno. The Arduino is connected to my computer via COM3. In the setup void on the Arduino, it sends a string to the java program saying that the Arduino is ready to read serial data. What…
user6336284
0
votes
0 answers

Send SMS using jSSC

I am sending sms using jSSC with AT commands. Below is my code serialPort.writeBytes(("at+cmgf=1"+"\r\n").getBytes()); Thread.sleep(3000); serialPort.writeBytes(("at+csca="+c+"+92300000042"+c+"\r\n").getBytes()); …
Usman Riaz
  • 2,920
  • 10
  • 43
  • 66
0
votes
3 answers

Searching in Maven

I'm creating "hello world" Maven Java project in Eclipse. I'm planing to include java-simple-serial-connector module. According to my understanding I need 3 things in order to add library to maven project: Group Id Artifact Id Version Please,…
vico
  • 17,051
  • 45
  • 159
  • 315
0
votes
1 answer

No COM ports identified with usb4java

I have the following routine that is the entry point for accessing serial ports in the usb4java API running in windows. Any ideas what can be wrong. import javax.comm.* public class SimpleJSComRead public static void main(String[] args) { …
J.E.Tkaczyk
  • 557
  • 1
  • 8
  • 19
0
votes
0 answers

Sending GCode as String Using Java

Writing a simple program to send GCode via Java using jssc libraries. Tried the following without success serialPort.writeString("G01 X1 Y1 Z1") serialPort.writeString("%G01 X1 Y1 Z1%") serialPort.writeString("%") serialPort.writeString("G01 X1…
Jai Shah
  • 1
  • 1
0
votes
1 answer

JSSC DCE Control Lines

I'm looking for a way to develop a DCE (RS232) using Java for an existing legacy protocol which requires me to read the DTR pin status, and maintain control of the DSR and RLSD pins from my end. I went about trying to do this by using JSSC but it…
TheUberUser
  • 121
  • 1
  • 8
0
votes
1 answer

Working with data from serial port arraylist

Ok, im lost and dont know what to even google at this point. I am reading data from a serial port using JSSC. When I print as a check figure, the data is jacked up. It prints a few rows fine then prints by individual characters. It prints…
0
votes
3 answers

What benefits do Java serial port libraries have over plain IO to the device?

There is a lot of talk about Java serial port libraries like RXTX and JSSC, but what do they really provide? In both linux and windows you can simply open the serial port like a file for reading and writing, can't you? What is the advantage of…
Dan Bliss
  • 1,694
  • 13
  • 10
0
votes
1 answer

JSSC alternatives for getInputStream & getOutPutStream

I'm trying to implement one piece of code in my application and I'm using JSSC communication library. This piece of code that I need to implement is using javax.comm.* library. The problem is in methods .getInputStream() and getOutputStream() which…
Josef
  • 2,648
  • 5
  • 37
  • 73
0
votes
1 answer

JavaFX Arduino Communication (JSSC) - Show Stage first, then Read Arduino

I am working on a simple fingerprint scanner that is connected to my Arduino Uno. I have connected my circuit via usb to my computer, so that I can read serially the data that Arduino is processing for the fingerprint scanner. I am in the process of…
Cid
  • 66
  • 7
0
votes
1 answer

difference between serial event value and serial port value

i am using jssc to read values from serial ports.once i write to the serial port the following callback is getting called . within that callback i can get values from the event and from serial port itself both contains different values. i want to…
Priyamal
  • 2,919
  • 2
  • 25
  • 52
0
votes
1 answer

JSSC writeString return true but device cannot receive

Im using JSSC library to communicate with a hardware device in my project. My software and my team hardware need to work synchronously (My software needs to display what is currently displayed in the hardware and vice versa) Everything works…
Forrest
  • 723
  • 2
  • 8
  • 24
0
votes
1 answer

jssc getInputStream() getOutputstream()

I'm using jssc library for communicating with device over serial port. In standard java SerialComm library there are two methods getInputStream() and getOutputStream(). Why I need this? I want to implement Xmodem according to this example and…
Josef
  • 2,648
  • 5
  • 37
  • 73
0
votes
1 answer

Serial port listener not return data (JSSC)

Hello I have the following code : if(!serialPort.isOpened()) { // ouverture du port serialPort.openPort(); System.out.println("JSSC -> initPort() : Ouverture du port"); //config…
Benj
  • 279
  • 6
  • 20