We have upgraded the community system as part of the upgrade a password reset is required for all users before login in.

How do I access the GPS Expansion data?

  • It seems like common Linux packages like gpsd are not available through opkg yet, nor is there a tutorial in the wiki how to get the actual position with the GPS Expansion.

    Did anyone achieve it to get the GPS Expansion running with the Onion Omega?

    I can confirm that the GPS Expansion is working correctly since I was able to test it on my Windows PC.

  • I didnt even know that the GPS Expansion was already shipped? Still waiting...
    Also interested how to read the coordinates!

  • @Peter-Harrald I found this post which describes how to access the gps data via serial interface: https://community.onion.io/topic/515/gps-expansion

  • @Benjamin-Rau Thank you very much for showing me this thread.
    I can confirm that there is some data accessible via cat /dev/ttyACM0
    Unfortunately the data seems not to be formatted as described in the NMEA standard (see the stackoverflow link referred to in the post).
    Even if the receiver finds five and more satellites (according to the five $GPGSV lines in the result), the $GPGLL remains almost empty. Additionally even the example in the post you mentioned seems not to fit to the standard. According to this site, $GPGLL should contain Geographic Position, Latitude / Longitude and time. Instead in the example it contains just one number and a V (whatever this means)

    Does anyone have an idea who to get an actual position out of the data?

    Example Data:

  • Unfortunately i feel more like an integrator rather than a developer šŸ˜‰

    But when interpreting:

    I think your gps doesnt have a fix yet, and without gps it wont send data.
    The fix has to be 1 (one), instead it is 0 in your example.

    Mine (not the one from Onion team) took quite long the first time to get a fix.
    I can compare the raw output of mine this night. In the meantime you could try to get a fix šŸ˜‰

    Right now i think the output follows the standards.

    Cheers Ben

  • I believe Benjamin is correct. Those sentences are in fact NMEA compliant and indicate no fix yet. Received my receiver from onion.io last week and it took about 20 minutes outside for TTFF and went full 3D. After than cold restarts using u-center it only took seconds to hit 2D fix.

    You may be able to speed it up by using u-center's AssistNow and push the almanac manually.

  • @Peter-Harrald Btw https://github.com/jamesp/node-nmea is a pretty nice library for parsing nmea data.

    https://github.com/omcaree/node-serialgps would be even better, if you dont want to read the data from the serial yourself. Unfortunately the dependency "serialport" needs compilation, which is not possible without npm.

    And here how i read gps data (because "cat" is not working for me):

Looks like your connection to Community was lost, please wait while we try to reconnect.