November 14, 2012 06:08
Hi All looking for some advice and help on NMEA over TCP for iNavx
First and most simple question is does anyone know if iNavx supports GPSD delivering NMEA data via TCP? If that answer is, it doesn't then stop reading and smile at the time ive wasted :p
I have installed and have working a copy of GPSD on a Raspberry Pi, it has successfully connected to the GPS and the supplied routines cgps and xgps give me a proper fix.
I have invoked it with the -G flag which allows it make NMEA data available over its network connection. (pasted below is the entire line its invoked with)
gpsd -N -D3 -G -F /var/run/gpsd.sock /dev/ttyACM0
If put in the correct ip address and port number into iNavx it will connect and receives the welcome below from GPSD but does not appear to send the ?WATCH command to start the data stream
{"class":"VERSION","release":"3.6","rev":"3.6","proto_major":3,"proto_minor":7}
If I connect to the port on the Raspberry from a mac with the following command 'nc 192.168.1.20 2947' and then send it a '?WATCH={"enable":true,"json":true}' command it streams data perfectly to the Mac - However Opencpn on the Mac does not seem to want to work with it
Im am wondering if iNavx simply does not support GPSD or if I have got some basic principles wrong
Any help, clues etc that anyone can give would be much appreciated.
Regards
Ric
First and most simple question is does anyone know if iNavx supports GPSD delivering NMEA data via TCP? If that answer is, it doesn't then stop reading and smile at the time ive wasted :p
I have installed and have working a copy of GPSD on a Raspberry Pi, it has successfully connected to the GPS and the supplied routines cgps and xgps give me a proper fix.
I have invoked it with the -G flag which allows it make NMEA data available over its network connection. (pasted below is the entire line its invoked with)
gpsd -N -D3 -G -F /var/run/gpsd.sock /dev/ttyACM0
If put in the correct ip address and port number into iNavx it will connect and receives the welcome below from GPSD but does not appear to send the ?WATCH command to start the data stream
{"class":"VERSION","release":"3.6","rev":"3.6","proto_major":3,"proto_minor":7}
If I connect to the port on the Raspberry from a mac with the following command 'nc 192.168.1.20 2947' and then send it a '?WATCH={"enable":true,"json":true}' command it streams data perfectly to the Mac - However Opencpn on the Mac does not seem to want to work with it
Im am wondering if iNavx simply does not support GPSD or if I have got some basic principles wrong
Any help, clues etc that anyone can give would be much appreciated.
Regards
Ric