There might be a few things going on.
Since other gps applications return data, check the setting of your OpenCPN. It should look like
Attachment:
Selection_007.png [ 89.28 KiB | Viewed 15361 times ]
All gps data is picked up and distributed by the gpsd.
When you attach a gps, the gpsd talks to it and distributes the data via port 2947 of the localhost (your machine)
The reason when you execute the command,
stty -F /dev/ttyUSB0 ispeed 4800 && cat < /dev/ttyUSB0 that you get
stty: /dev/ttyUSB0: Device or resource busy is because it is busy, it's talking to the gpsd.
You have two options:
- kill the gpsd and then run the command, or
- telnet localhost 2947 and after it connects, ?WATCH={"enable":true,"json":true} or ?WATCH={"enable":true,"nmea":true} for a manufactured NMEA sentence (just close the terminal when you're done, it's easier than trying to turn it off)
Quote:
moe@fissionchips:~$ telnet localhost 2947
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
{"class":"VERSION","release":"3.9","rev":"3.9","proto_major":3,"proto_minor":8}
?WATCH={"enable":true,"json":true}
...but I don't know why you would want to do either option (other than it's cool) when there's
cgps,
xgps, and other applications to see the streaming data.