×

INDI Library v1.8.0 is Released (27 Jul 2019)

INDI Library v1.8.0 is mostly a maintenance release to fix a few bugs in several drivers.

Astroberry GPS with Adafruit GPS breakout board

  • Posts: 303
  • Karma: 1
  • Thank you received: 30

Astroberry GPS with Adafruit GPS breakout board was created by HelgeMK

I have been trying to get above gps board up and running, following these instructions:

learn.adafruit.com/adafruit-ultimate-gps...aspberry-pi?view=all

Looks I am not receiving any meaningful data, the NMEA sentences coming in on gpsmon contain zero’s but no positional data, but time only. Needless to say, „no fix“.

I wonder whether someone more experienced could tell from the screenshot whether this has to do with poor configuration or just signals being too weak?

N.B. I also applied recommendations from Radek in another thread on gps.

Thanks inadvance! Helge
1 year 6 months ago #23289
Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 632
  • Karma: 6
  • Thank you received: 244

Replied by Kaczorek on topic Astroberry GPS with Adafruit GPS breakout board

First, confirm that serial connection works - try connecting to gps with any terminal emulator e.g. minicom, screen etc. (remember to stop gpsd before testing to free the serial line). If you get NMEA stream of data you're ok, if not, something's wrong with serial communication - check baud rate, double check that rx is connected to tx and tx is connected to rx, check power... Second, if it connects ok, run gpsmon or cgps and make sure your gps device has free access to sky - test it outside. Cold fix takes some time, be patient. If it does not get fix after 5 minutes outside, there's some major malfunction.
--
Radek Kaczorek
Astroberry Server | NEQ6 | Atik 460EX | Atik EFW2 | ASI 120MM
The following user(s) said Thank You: HelgeMK
1 year 6 months ago #23292

Please Log in or Create an account to join the conversation.

  • Posts: 303
  • Karma: 1
  • Thank you received: 30

Replied by HelgeMK on topic Astroberry GPS with Adafruit GPS breakout board

First I run sudo killall gpsd.

I checked the connection with sudo cat /dev/ttyS0 and received a datastream in NMEA format, but mostly zero values, please see also previously attached screenshot (see bottom row of top left window). Does it mean that the serial connection works?

When starting up minicom, I am not getting a lot of information, except it says port/dev/tty8 - not sure why tty8. But no datastream or anything else.

Which command is needed to check baud rate? The wiring is fine, checked again.
1 year 6 months ago #23295

Please Log in or Create an account to join the conversation.

  • Posts: 632
  • Karma: 6
  • Thank you received: 244

Replied by Kaczorek on topic Astroberry GPS with Adafruit GPS breakout board

Serial device seems to work.
You need to set port for minicom by running
minicom -D /dev/ttyS0 -b 9600

If you have miniterm.py available on your system you can run:
miniterm.py /dev/ttyS0 9600

... and observe the output - you should get raw NMEA data over serial.

If not... well double check that your gpsd user is in dialout group by running
id gpsd

You can find gpsd config in /etc/default/gpsd
--
Radek Kaczorek
Astroberry Server | NEQ6 | Atik 460EX | Atik EFW2 | ASI 120MM
Last edit: 1 year 6 months ago by Kaczorek.
1 year 6 months ago #23298

Please Log in or Create an account to join the conversation.

  • Posts: 303
  • Karma: 1
  • Thank you received: 30

Replied by HelgeMK on topic Astroberry GPS with Adafruit GPS breakout board

Thanks a lot! With the minicom command, I am receiving a NMEA datastrea („raw“).

„id gpsd“ gives: uid=123(gpsd) gid =20 (dialout) groups = 20 (dialout), 5(tty)

Not sure if this is expected?

I also entered the following command, but probably it did not make a lot of sense and the result was confusing me:

gpsd -N -D3 /var/run/gpsd.sock following which I received error messages that can‘t bind to IPv4 and 6, suggesting that „maybe gpsd is already running“

Can I discard this kind of result?

If - as you say - the serial device is working, maybe I need to connect to an external antenna - I was relying on the antenna that is placed on the board.
1 year 6 months ago #23315

Please Log in or Create an account to join the conversation.

  • Posts: 632
  • Karma: 6
  • Thank you received: 244

Replied by Kaczorek on topic Astroberry GPS with Adafruit GPS breakout board

If you see raw NMEA data, your gps device is ok. gpsd access rights are also ok (gpsd is a member of dialout group so it can access /dev/ttyS0)
This means your gpsd should receive gps data stream (double check config options in /etc/default/gpsd). I think it's all about getting fix. The module should work with the internal antenna... if you have external antenna, give it a try.
--
Radek Kaczorek
Astroberry Server | NEQ6 | Atik 460EX | Atik EFW2 | ASI 120MM
1 year 6 months ago #23317

Please Log in or Create an account to join the conversation.

  • Posts: 550
  • Karma: 1
  • Thank you received: 99

Replied by Ihoujin on topic Astroberry GPS with Adafruit GPS breakout board

I Just installed this myself with little difficulty.
To the file /etc/default/gpsd add the line
# Devices gpsd should collect to at boot time.
DEVICES="/dev/ttyS0"

# Other options you want to pass to gpsd
GPSD_OPTIONS="-b -n"

Also for system clock synchronization to the file /etc/ntp.conf
add to the end
# GPS Serial data Reference
server 127.127.28.0 minpoll 4 maxpoll 4
fudge  127.127.28.0 time1 0.0 refid GPS
#GPS PPS reference
server 127.127.28.1 minpoll 4 maxpoll 4 prefer
fudge  127.127.28.1 refid PPS
INDI/KStars on Raspberry Pi 3B+
Lubuntu 16.04
Skywatcher HEQ5 Pro Mount
Canon 600D Camera
Orion SSAG @280mm Guide Scope
PHD2
Adafruit Motor Hat shield
Adafruit GPS Module
Generic Bluetooth Joystick.
Startech 7 port powered USB Hub.
The following user(s) said Thank You: HelgeMK
Last edit: 1 year 5 months ago by Ihoujin.
1 year 6 months ago #23364

Please Log in or Create an account to join the conversation.

  • Posts: 632
  • Karma: 6
  • Thank you received: 244

Replied by Kaczorek on topic Astroberry GPS with Adafruit GPS breakout board

You miss the leading / in DEVICES - it should be:
DEVICES="/dev/ttyS0"
--
Radek Kaczorek
Astroberry Server | NEQ6 | Atik 460EX | Atik EFW2 | ASI 120MM
Last edit: 1 year 5 months ago by Kaczorek.
1 year 5 months ago #23378

Please Log in or Create an account to join the conversation.

  • Posts: 550
  • Karma: 1
  • Thank you received: 99

Replied by Ihoujin on topic Astroberry GPS with Adafruit GPS breakout board

Thank you. Fixed my post.
INDI/KStars on Raspberry Pi 3B+
Lubuntu 16.04
Skywatcher HEQ5 Pro Mount
Canon 600D Camera
Orion SSAG @280mm Guide Scope
PHD2
Adafruit Motor Hat shield
Adafruit GPS Module
Generic Bluetooth Joystick.
Startech 7 port powered USB Hub.
1 year 5 months ago #23406

Please Log in or Create an account to join the conversation.

  • Posts: 303
  • Karma: 1
  • Thank you received: 30

Replied by HelgeMK on topic Astroberry GPS with Adafruit GPS breakout board

Great, now it is working. Not sure what made the difference, I tried again back home, updated /etc/default/gpsd by adding „-b“. I did not touch the ntp.conf file.

Either it is the different position, the „-b“ or just luck. Anyway appreciate the support received!

Helge
1 year 5 months ago #23408

Please Log in or Create an account to join the conversation.

Time to create page: 0.213 seconds