Cruisers Forum
 


Reply
  This discussion is proudly sponsored by:
Please support our sponsors and let them know you heard about their products on Cruisers Forums. Advertise Here
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 25-12-2020, 12:21   #1
Registered User

Join Date: Jan 2015
Location: Toulon - France
Boat: Admiral 31
Posts: 1
RPI HAT what interface for GNSS

I need help! I am developing an open source GNSS HAT for the RPI4. I want to use the UBlox NEO 8. What interface should I be using in order for it to work nicely with OpenCPN? UART/USB/SPI/DDC are available from the data sheet.
Miha90 is offline   Reply With Quote
Old 27-12-2020, 09:57   #2
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,725
Images: 2
Re: RPI HAT what interface for GNSS

I would review the OpenCPN documentation for setting up Linux and RPI if I were you.
https://opencpn.org/wiki/dokuwiki/do...ps_setup#linux


https://opencpn.org/wiki/dokuwiki/do...spberrypi_rpi2


I have not set up RPI yet, so cannot be more specific. Others will help I am sure.
rgleason is offline   Reply With Quote
Old 27-12-2020, 10:20   #3
Registered User
 
Dsanduril's Avatar

Join Date: Aug 2011
Location: Petersburg, AK
Boat: Outremer 50S
Posts: 4,229
Re: RPI HAT what interface for GNSS

For direct implementation with OpenCPN the easiest path is NMEA 0183, this is supported natively and directly by OpenCPN - no other decoding software widget would be required. O recognizes serial ports on the host directly - this is built-in functionality. On the NEO 8 NMEA is available on both the UART and USB interfaces:

Quote:
UART
9600 baud, 8 bits, no parity bit, 1 stop bit.
Configured to transmit both NMEA and UBX protocols, but only the following NMEA (and no UBX) messages have been activated at start-up: GGA, GLL, GSA, GSV, RMC, VTG, TXT

USB
Configured to transmit both NMEA and UBX protocols, but only the following NMEA (and no UBX) messages have been activated at start-up: GGA, GLL, GSA, GSV, RMC, VTG, TXT
USB power mode: bus-powered
On Linux OpenCPN should be able to access either port with built-in drivers, not much difference and not much configuration required, so whichever is easier to implement in the hat.

If, for some reason, you want to use SPI/DDC you could use the OpenPlotter installation to add some I2C support or write your own code, but that is a more difficult path for the stated purpose of integration with O (but there may be other reasons depending on alternate uses for your project).
Dsanduril is offline   Reply With Quote
Old 27-12-2020, 10:42   #4
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,725
Images: 2
Re: RPI HAT what interface for GNSS

Dsanduril
Thanks, added it to the RPI Install page
https://opencpn.org/wiki/dokuwiki/do..._hat_gps_setup


Hope it is ok.
rgleason is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
GNSS: BeiDou declared operational world-wide Alan Mighty Navigation 1 28-12-2018 14:14
GNSS other than GPS. ViribusUnitis Marine Electronics 1 10-10-2010 12:03
Crew Available: Throwing My Name in the Hat bbeardb Crew Archives 5 04-06-2010 08:51
GNSS Vulnerabilities and Solutions 2009 Conference, Baska, Krk Island, Croatia satnavigator Navigation 8 06-04-2009 02:02

Advertise Here


All times are GMT -7. The time now is 16:40.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.