Trouble retrieving location data while using the nrf9151

I'm developing a small IoT device that needs to retrieve and transmit its location upon pressing a button. While testing the modem using AT commands, I can consistently retrieve location data in about 5 minutes. However, when implementing location tracking in firmware, following Lesson 6 of the Cellular Fundamentals course as a framework, the modem struggles to establish a connection with satellites and fails to get a fix, even after extended wait times.

I've closely replicated the Lesson 6 code, yet the issue persists. Following the course's advice, I’ve printed satellite connection information, confirming that my device detects multiple satellites, but the signal strength is insufficient to obtain a fix. Given that the AT commands successfully retrieve location data, but the firmware implementation does not, I’m wondering what might be missing in my approach.

Are there additional considerations I should account for when integrating location tracking into firmware? Any insights into why the modem behaves differently between direct AT commands and firmware execution would be greatly appreciated.

This is a screenshot from my devices outputted satellite connection data.

Parents
  • Hi Hunter,

    Can you confirm which version of NCS you are using (e.g. version 3.0.1) and which modem firmware version (e.g. 2.0.2)?

    For completeness (Exercise 2), can you confirm what SIM card you are using -- Verizon, AT&T, T-mobile, iBasis, Soracom, Hologram.io, Onomondo, or something else? 

    • With the MNOs (Verizon, AT&T, and T-mobile), you will definitely get PSM support but that is not always guaranteed with the MVNOs.

    I am in your time zone so hopefully I can help you resolve why you are not getting fixes using the application code.  By the way, you can also try the GNSS sample which also removes the LTE multiplexing or sharing.  See ...nrf\samples\cellular\gnss

    Thanks

    Mike

  • I'm using NCS version 2.9.0 and modem firmware version 2.0.2. I am using a nanoSIM from soracom for product development, an am planning to use the MFF2 sim card from soracom for the final product.

Reply Children
No Data
Related