I am working through the tutorial on attaching to Golioth found here:

https://www.jaredwolff.com/nrf9160-feather-on-golioth/#loading-credentials

I made it through the steps and am monitoring the device through the serial monitor. I need some help with troubleshooting as I am stuck at a very basic level on two fronts:

1) I am not getting a GPX fix despite having a clear view of the sky. Here are a few lines from the console that make me wonder if the issue may be reception:

[00:00:05.416,229] <dbg> nrf9160_gps.start: GPS operational
[00:00:05.422,485] <inf> app_main: Evt: APP_EVENT_CELLULAR_DISCONNECT
[00:00:05.429,656] <inf> app_main: Evt: APP_EVENT_CELLULAR_CONNECTED
[00:00:05.436,920] <dbg> nrf9160_gps.gps_thread: A-GPS data update needed
[00:00:05.444,854] <err> app_main: Requesting PSM failed, error: -5
[00:00:05.452,087] <inf> app_main: Evt: APP_EVENT_GPS_STARTED
[00:00:05.458,587] <inf> app_main: Evt: APP_EVENT_AGPS_REQUEST
[00:00:05.465,087] <inf> agps: SUPL is initialized
[00:00:05.926,483] <inf> agps: Starting SUPL session
[00:00:06.416,809] <dbg> nrf9160_gps.gps_thread: Waiting for time window to operate
...
...
[00:06:00.034,332] <dbg> nrf9160_gps.print_satellite_stats: Tracking: 1 Using: 1 Unhealthy: 0
[00:06:00.043,701] <dbg> nrf9160_gps.print_satellite_stats: Seconds since last fix 360
[00:06:02.068,054] <dbg> nrf9160_gps.gps_thread: Waiting for time window to operate
[00:06:05.458,618] <inf> app_main: Evt: APP_EVENT_GPS_TIMEOUT
[00:06:05.465,026] <dbg> nrf9160_gps.stop: Stopping GPS

2) I do not seem to be getting connected to the cellular network as evidenced by this:
[00:06:05.465,026] <dbg> nrf9160_gps.stop: Stopping GPS
[00:07:10.526,092] <err> golioth_system: Failed to connect: -116
[00:07:10.533,050] <wrn> golioth_system: Failed to connect: -116
[00:07:15.540,191] <inf> golioth_system: Starting connect

I do know that I can connect to Verizon using the nRF Connect Desktop and the AT commands.

Any suggestions on troubleshooting?

Thanks, Chip

    chipmc I am not getting a GPX fix despite having a clear view of the sky. Here are a few lines from the console that make me wonder if the issue may be reception:

    Are you inside your home/office? What type of GPS antenna are you using?

    chipmc 2) I do not seem to be getting connected to the cellular network as evidenced by this:

    You’re getting

    [00:00:05.429,656] <inf> app_main: Evt: APP_EVENT_CELLULAR_CONNECTED

    so that means you’re connecting to cellular.

    Failed to connect: -116 

    Most likely relates to not having your PSK setup correctly.

      jaredwolff

      OK, I made a mistake in the process for converting the PSK to Hex string format.

      I was using the passive GPS antenna you provided with my feather kit and was not getting a fix. When I switched out the passive antenna for an active one, I got a GPS fix in seconds.

      The device is now connecting to the Golioth backend and I can see the GPS coordinates in the event stream.

      This is the JSON payload I see:

      {
      "boot": {
      "inf": {
      "appv": "0.1.4-35-ge946e5c",
      "brdv": "circuitdojo_feather_nrf9160",
      "modv": "mfw_nrf9160_1.2.3"
      },
      "nw": {
      "area": 39681,
      "band": 13,
      "cell": 50895,
      "ip": "100.92.4.29",
      "m_gps": 1,
      "m_lte": 1,
      "m_nb": 0,
      "mcc": 311,
      "mnc": 480,
      "rsrp": 47
      },
      "sim": {
      "iccid": "<edited for security>"
      },
      "ts": 1641751788974,
      "vbat": 4198
      },
      "gps": {
      "acc": 5.518085956573486,
      "alt": 83.35611724853516,
      "hdg": 0,
      "lat": 35.<edited for privacy>,
      "lng": -78.<edited for privacy>,
      "spd": 0.034550558775663376,
      "ts": 1641760903007
      }
      }

      Is there a way to add cellular signal strength / quality to this?

      At this point, I guess the next step is to work with the Golioth folks to see how to pass this data on to my backend system using a Webhook.

      Thank you for your patience in getting me this far.

      Thanks,

      Chip

        chipmc Is there a way to add cellular signal strength / quality to this?

        Cellular strength is the RSRP value. 🙂

        chipmc Thank you for your patience in getting me this far.

        Thrilled it’s working!

        Terms and Conditions | Privacy Policy