OpenStick adventures Part 2: GPS

It would be great if the GPS part of the modem could be used.

Modem manager supports this, and it should be as simple as running the command below:

sudo mmcli -m 0 --location-enable-gps-nmea --location-enable-gps-raw --location-enable-3gpp

This command enables NMEA and Raw output as well as the coarse network location derived from the mobile network.

I have yet to acquire any satellite signals.

sudo mmcli -m 0 --location-get
... 3GPP Output cut ...
  --------------------------
  GPS  |               nmea: $GPGSA,A,1,,,,,,,,,,,,,,,*1E
       |                     $GPRMC,,V,,,,,,,,,,N*53
       |                     $GPVTG,,T,,M,,N,,K,N*2C
       |                     $GPGGA,,,,,,0,,,,,,,,*66

The first line shows that no satellites are available and the rest just confirm that no fix is possible.

The link below shows common NMEA sentences and how to decode them properly.

https://pe2bz.philpem.me.uk/Comm/-%20Receivers/-%20GPS/Info-921-GPS/Site1/Gps-Diags/NMEA_sentences.htm

Maybe I need to find a better location to put the stick and give it longer for a cold fix. The building I am in has thick stone walls and I haven’t found a suitable location for a power supply that has good visibility of the sky. I might try the conservatory over night.

AGPS

Augmented GPS should, in theory massively improve fix times on basic GPS devices. there are two modes of operation MSB and MSA. MSB is a simpler mode where an aGPS server is used to proved network time, this can reduce the time taken to get an initial fix. MSA lets the aGPS server carry out much more of get calculation required. This is provided by fewer aGPS providers.

In my experimentation I was able to enable MSA, but reveived and error when I tried to enable MSB. I am currently not sure whether this is due to a configuration error (URLS and servers) or an issue with my modem.

The flags: --location-enable-agps-msb and --location-enable-agps-msa are used to control this behaviour.

When enabling MSB mode I receive the following error:
error: couldn't setup location gathering: 'GDBus.Error:org.freedesktop.ModemManager1.Error.Core.Aborted: Couldn't enable location 'agps-msb' gathering: Failed to receive operation mode indication'

Update 2025/01/15

After nearly 24 hours to acquire a signal there is still no change.
I have to assume that the antenna or other parts required for GNSS are not present or configured properly in these dongles. This would make sense if an active antenna is required or additional hardware for such a cheap device, it would have been just too good to be true.

Comments

5 responses to “OpenStick adventures Part 2: GPS”

  1. WgOS Avatar
    WgOS

    Hi, have you fibd solution for kernel wireguard module?

    1. loenja Avatar

      Not yet but I’m planning to do a build of the kernel and will definitely be including it as an option. For now the go implementation is easily fast enough for WiFi and LTE connection.

      1. WgOS Avatar
        WgOS

        then I will wait, unfortunately I didn’t have enough knowledge to figure it out( thanks for the information and good luck in your research 🙂 If you can document it briefly, that would be great.

        1. loenja Avatar

          I’ve managed to get the kernel compiling and options built in. But I am not sure I have the required options for the hardware correct as I am in a boot loop.

          1. wgOS Avatar
            wgOS

            Here I am in the bootloop hung, I tried a lot of things that chatgpt advised me e.g. transfer from the working kernel for example so: zcat /proc/config.gz > .config

            and a lot of other things he suggests, but I could not start(

Leave a Reply

Your email address will not be published. Required fields are marked *