Displaying location data using raspberry pi 4 connected to reach M2

I am fairly new to this technology so bear with me, but I am trying to use a raspberry pi 4 to output location data from an m2 using an app like gpsd. I have the m2 set to serial position streaming using NMEA, and I have it connected to the serial port using some jumper cables. I can see that its communicating using NMEA messages, but it outputs no location data. Does anyone have any tips or had tried to do something similar to this?

Hi, and welcome aboard !

Could you please share an example of the NMEA messages you see ?

Is the M2 connected to an external GNSS antenna and do you see if the solution status in ReachView is something else than “NO SOLUTION” ?

Hello, thanks for the quick reply, an example of the NMEA messages I’m recieving are as follows:


I am receiving solutions on the app, but this data looks incomplete. While it seems like the raspberry pi is recieving some of the data through serial, I guess it isn’t enough to make chrony, cgps, or gpsmon to recognize it and display any data. Any idea what the problem could be?

Also, I’m not sure how much this helps, but this is the output every time I run gpsmon:

tcp://localhost:2947 JSON slave driver>
(82) {“class”:“VERSION”,“release”:“3.22”,“rev”:“3.22”,“proto_major”:3,“proto_min
(170) {“class”:“DEVICES”,“devices”:[{“class”:“DEVICE”,“path”:“/dev/ttyS0”,“activ
(122) {“class”:“WATCH”,“enable”:true,“json”:false,“nmea”:false,“raw”:2,“scaled”:

Hi again,

Could you explain more what you mean ?
This data looks fine. There is location data on the GGA message with the expected number of decimals for precise geolocation.

Same here. Do you know more about basic requirements of the Rasp Pi for it to works ?

From the looks of it, I would say the Reach M2 works as expected. So I would investigate the Rasp Pi programs configuration. For instance, I think the “nmea” = false in the gpsmon JSON is something important. Have you tried to change this setting ?
In the gpsmon doc, they speak about a -n option:

The -n option forces gpsmon to request NMEA0183 packets instead of the raw datastream from gpsd.

Also, is the baudrate in this settings (9600) the same than the baudrate in ReachView Position streaming settings ?

You’re right, the data looks fine and I’m almost certain that the m2 itself is working properly. As for the raspberry pi programs, I think a lot of setup guides having to do with gpsd are a little outdated. Although, I did not try running gpsmon with the -n option, and I didn’t realize that the baud rate isn’t 115200 like on the reach view app. I will see if this works and get back to you.

This topic was automatically closed 100 days after the last reply. New replies are no longer allowed.