[GIS] Syntax problem: Streaming GNSS Data from u-blox LEA-6H using str2str of RTKLIB not possible

gpslinuxrtklib

Im trying to readout the data from my ublox LEA-6H recever over RTKLIB's str2str command-line user interface (CUI). Im using rtkkib_2.4.2 on ubuntu 16.04.02 and the ublox receiver is connected over usb. im trying the following

sudo ./str2str -in serial://ttyUSB0:38400#ubx –out file://~/test.txt#ubx

i get the errormsg:

specify output stream(s)

how can i understand the documentation of rtklib. it says the following:
rtklib2.4.2-doc

Best Answer

Your shell is possibly interpreting the hashes in your command as comments. This might work better:

./str2str -in 'serial://ttyUSB0:38400#ubx'  ...

Also - are you using the right device specification? Additionally, using ~ with sudo might be problematic. Add yourself to the dialout group (or whatever group /dev/ttyUSB0 belongs to) so you can access the serial port without elevated privileges.