Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 14-06-2019, 11:35   #1
Registered User

Join Date: Feb 2019
Posts: 50
NMEA messages but ...

Hi,


Having bought a Moitessier HAT and installed OpenPlotter via NOOBS (mostly because I failed miserably to install the Moitessier software on plain Raspbian) ... I kinda sorta maybe have bits of it working ... I was hoping this would be easy.


The HAT software installed OK, I followed the guide, clicked buttons for temp and pressure, the IMU to feed PyPilot etc ... and they all feed SignalK ..


In OpenCPN I have a connection over TCP to the relevant SignalK port and sure enough, in the NMEA debug, I see messages including $APHDM ... but I see no mag heading response on OpenCPN, the compass remains dead, the boat pointing north etc.


If I click on the HAT settings in OpenPlotter and ask for info on the temp/pressure sensor .. it tells me it is -671.48 mbar, -251.20 C


feeling a little frustrated ...


NMEA debug from OpenCPN (rcvd via SignalK) ..


<GREEN>15:06:32 (TCP:192.168.1.29:10110) $GPGGA,150632.092,,,,,0,0,,,M,,M,,*40<0x0D><0x0A>
<GREEN>15:06:32 (TCP:192.168.1.29:10110) $GPGSA,A,1,,,,,,,,,,,,,,,,1*03<0x0D><0x0A>
<GREEN>15:06:32 (TCP:192.168.1.29:10110) $GPGSA,A,1,,,,,,,,,,,,,,,,2*00<0x0D><0x0A>
<GREEN>15:06:32 (TCP:192.168.1.29:10110) $GPGSV,1,1,00,0*65<0x0D><0x0A>
<GREEN>15:06:32 (TCP:192.168.1.29:10110) $GLGSV,1,1,00,1*78<0x0D><0x0A>
<GREEN>15:06:32 (TCP:192.168.1.29:10110) $GPGLL,,,,,150632.092,V,N*72<0x0D><0x0A>
<GREEN>15:06:32 (TCP:192.168.1.29:10110) $GPTXT,01,01,02,ANTSTATUS=OPEN*2B<0x0D><0x0A>
<GREEN>15:06:32 (TCP:192.168.1.29:10110) $APHDM,66.219,M*09<0x0D><0x0A>
<GREEN>15:06:32 (TCP:192.168.1.29:10110) $APXDR,A,2.303,D,ROLL*6B<0x0D><0x0A>
<GREEN>15:06:32 (TCP:192.168.1.29:10110) $APXDR,A,0.858,D,PTCH*7E<0x0D><0x0A>
<GREEN>15:06:33 (TCP:192.168.1.29:10110) $GPRMC,150633.092,V,,,,,0.00,0.00,140619,,,N,V*35< 0x0D><0x0A>
<GREEN>15:06:33 (TCP:192.168.1.29:10110) $GPVTG,0.00,T,,M,0.00,N,0.00,K,N*32<0x0D><0x0A>
<GREEN>15:06:33 (TCP:192.168.1.29:10110) $GPGGA,150633.092,,,,,0,0,,,M,,M,,*41<0x0D><0x0A>
<GREEN>15:06:33 (TCP:192.168.1.29:10110) $GPGSA,A,1,,,,,,,,,,,,,,,,1*03<0x0D><0x0A>
<GREEN>15:06:33 (TCP:192.168.1.29:10110) $GPGSA,A,1,,,,,,,,,,,,,,,,2*00<0x0D><0x0A>
<GREEN>15:06:33 (TCP:192.168.1.29:10110) $GPGSV,1,1,00,0*65<0x0D><0x0A>
<GREEN>15:06:33 (TCP:192.168.1.29:10110) $GLGSV,1,1,00,1*78<0x0D><0x0A>
<GREEN>15:06:33 (TCP:192.168.1.29:10110) $GPGLL,,,,,150633.092,V,N*73<0x0D><0x0A>
<GREEN>15:06:33 (TCP:192.168.1.29:10110) $GPTXT,01,01,02,ANTSTATUS=OPEN*2B<0x0D><0x0A>
<GREEN>15:06:33 (TCP:192.168.1.29:10110) $APHDM,66.051,M*07<0x0D><0x0A>
<GREEN>15:06:33 (TCP:192.168.1.29:10110) $APXDR,A,2.3,D,ROLL*68<0x0D><0x0A>
<GREEN>15:06:33 (TCP:192.168.1.29:10110) $APXDR,A,0.866,D,PTCH*73<0x0D><0x0A>
<GREEN>15:06:34 (TCP:192.168.1.29:10110) $GPRMC,150634.092,V,,,,,0.00,0.00,140619,,,N,V*32< 0x0D><0x0A>
<GREEN>15:06:34 (TCP:192.168.1.29:10110) $GPVTG,0.00,T,,M,0.00,N,0.00,K,N*32<0x0D><0x0A>
<GREEN>15:06:34 (TCP:192.168.1.29:10110) $GPGGA,150634.092,,,,,0,0,,,M,,M,,*46<0x0D><0x0A>
<GREEN>15:06:34 (TCP:192.168.1.29:10110) $GPGSA,A,1,,,,,,,,,,,,,,,,1*03<0x0D><0x0A>
<GREEN>15:06:34 (TCP:192.168.1.29:10110) $GPGSA,A,1,,,,,,,,,,,,,,,,2*00<0x0D><0x0A>
<GREEN>15:06:34 (TCP:192.168.1.29:10110) $GPGSV,1,1,00,0*65<0x0D><0x0A>
<GREEN>15:06:34 (TCP:192.168.1.29:10110) $GLGSV,1,1,00,1*78<0x0D><0x0A>
<GREEN>15:06:34 (TCP:192.168.1.29:10110) $GPGLL,,,,,150634.092,V,N*74<0x0D><0x0A>
<GREEN>15:06:34 (TCP:192.168.1.29:10110) $GPTXT,01,01,02,ANTSTATUS=OPEN*2B<0x0D><0x0A>
<GREEN>15:06:34 (TCP:192.168.1.29:10110) $APHDM,65.965,M*0A<0x0D><0x0A>
<GREEN>15:06:34 (TCP:192.168.1.29:10110) $APXDR,A,2.302,D,ROLL*6A<0x0D><0x0A>
<GREEN>15:06:34 (TCP:192.168.1.29:10110) $APXDR,A,0.86,D,PTCH*45<0x0D><0x0A>
<GREEN>15:06:35 (TCP:192.168.1.29:10110) $GPRMC,150635.092,V,,,,,0.00,0.00,140619,,,N,V*33< 0x0D><0x0A>
__________________

rszemeti is offline   Reply With Quote
Old 14-06-2019, 14:39   #2
Registered User

Join Date: Mar 2011
Posts: 68
Re: NMEA messages but ...

I have absolutely no experience with the Moitessier HAT, but from your NMEA 0183 sentences, (the $GPGLL, $GPGSV ones) you haven't got any GPS satellites and hence no GPS position.

However one entry
Quote:
$GPTXT,01,01,02,ANTSTATUS=OPEN*2B<0x0D><0x0A>
kind of suggests that you haven't connected the GPS antenna. That could be the problem ?
__________________

stevead is offline   Reply With Quote
Old 14-06-2019, 18:47   #3
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 13,285
Re: NMEA messages but ...

I believe these <0x0D><0x0A> are EOL
Those <GREEN> are good. Look up the code in Opencpn.

[If there is no checksum at the end and the format is not normal then the sentence is malformed.}
Later Edit - wrong there is a checksum


It looks to me like every sentence has,<0x0D><0x0A> Perhaps it is the eol

-Also now I see that the checksums are there and the sentences are reasonably formed

-It might be worthwhile to check some of these sentences in an online nmea0183 checksum checker
$GPGGA,150632.092,,,,,0,0,,,M,,M,,*40
- also read this perhaps http://lefebure.com/articles/nmea/ it might give you some ideas.

- the real problem is the very consistent <0x0D><0x0A> at the end.
- Take the text file and convert those to eol with a text editor, then try to run it in opencpn.
- Does it work?
- The NASA Clipper did this exact same thing, I believe.


Read the original post here http://www.cruisersforum.com/forums/f134/nmea-sentences-sent-to-gps-repeater-lack-cr-lf-at-end-of-phrase-203589.html

also


Bdbcat NMEA sentences sent to GPS repeater lack CR LF at end of phrase?
rgleason is offline   Reply With Quote
Old 14-06-2019, 18:49   #4
Registered User

Join Date: Feb 2019
Posts: 50
Re: NMEA messages but ...

Quote:
Originally Posted by stevead View Post
I have absolutely no experience with the Moitessier HAT, but from your NMEA 0183 sentences, (the $GPGLL, $GPGSV ones) you haven't got any GPS satellites and hence no GPS position.

However one entry kind of suggests that you haven't connected the GPS antenna. That could be the problem ?

The Moitessier HAT has an on-board antenna, and I suspect the lack of satellites is because it is deep indoors ... but that shoudl not stop OpenCPN displaying the magnetic heading from wherever it imagines it's current position to be should it? as I have a mag heading sensor .. and I think I see APHDM messages in there?
rszemeti is offline   Reply With Quote
Old 14-06-2019, 18:55   #5
Registered User

Join Date: Feb 2019
Posts: 50
Re: NMEA messages but ...

[QUOTE=rgleason;2908742]I believe these are all corruption <0x0D><0x0A>
There is no checksum at the end and the format is not normal.[QUOTE]


No, they are all perfectly normal and correct, the checksum is the bit after the * and the <0x0D><0x0A> are the correct hex codes for CR and LF respectively, also, the <green> tag tells you that OpenCPN read them and liked them.
rszemeti is offline   Reply With Quote
Old 14-06-2019, 18:57   #6
Registered User

Join Date: Feb 2019
Posts: 50
Re: NMEA messages but ...

RIght, after blowing away the card and starting the install again from scratch, it all works! ... back as you were. thnaks as always.


Now I just have to figure out how to move the OSenc charts over from the previous install sd card onto this new one .. and hope they work!
rszemeti is offline   Reply With Quote
Old 14-06-2019, 19:02   #7
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 13,285
Re: NMEA messages but ...

Quote:
but I see no mag heading response on OpenCPN, the compass remains dead, the boat pointing north etc

Are these values turned on on the HAT?
rgleason is offline   Reply With Quote
Old 14-06-2019, 19:09   #8
Registered User

Join Date: Feb 2019
Posts: 50
Re: NMEA messages but ...

Quote:
Originally Posted by rgleason View Post
Are these values turned on on the HAT?

They were and you can see the APHDM messages int he log above ... anyway, its fine now, I reinstalled from NOOBS again, ran through the setup and this time it seems to be working.
rszemeti is offline   Reply With Quote
Old 14-06-2019, 19:13   #9
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 13,285
Re: NMEA messages but ...

[QUOTE=rszemeti;2908751][QUOTE=rgleason;2908742]I believe these are all corruption <0x0D><0x0A>
There is no checksum at the end and the format is not normal.
Quote:


No, they are all perfectly normal and correct, the checksum is the bit after the * and the <0x0D><0x0A> are the correct hex codes for CR and LF respectively, also, the <green> tag tells you that OpenCPN read them and liked them.

Yes, I know. Just did'nt edit my earlier line.
rgleason is offline   Reply With Quote
Old 14-06-2019, 19:13   #10
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 13,285
Re: NMEA messages but ...

Thank you for being so helpful.
__________________

rgleason is offline   Reply With Quote
Reply

Tags
nmea

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
OpenCPN android 9 and NMEA messages through bluetooth pieterrv OpenCPN 1 02-05-2019 10:53
RMC messages lost in NMEA stream maohls OpenCPN 14 21-04-2019 01:32
AIS NMEA messages not acquired. usodimare OpenCPN 8 16-04-2017 19:16
Radar NMEA messages SolentBlue OpenCPN 19 27-07-2015 19:22
Anchor Alarm Works, but Not with Recorder Messages s51ta OpenCPN 5 01-11-2010 22:42



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 07:11.


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

ShowCase vBulletin Plugins by Drive Thru Online, Inc.