I am trying to read the output stream from a GPS chip, attached to my computer via a USB cable, using the RXTX API.
My Java reads
sp.setSerialPortParams(4800, SerialPort.DATABITS_8,SerialPort.STOPBITS_1, SerialPort.PARITY_NONE);
My app currently outputs Scanning port /dev/tty.Bluetooth-Incoming-Port
So I believe my Bluetooth port is number 4800?
Running ls /dev/tty.*
gives /dev/tty.usbserial
only when the GPS is plugged in, so this is my device. I also see the Bluetooth device.
So I think I need to change the number in my Java code - how do I get the usbserial device number?