Hi All,
I’m currently attempting to get the Nordic’s nRF Cloud MQTT multi-service working on the nRF9160 Feather and could use some assistance. I’ve successfully connected to the nrfcloud but am having trouble retrieving GPS info from the GNSS; it keeps falling back to cellular.
Here’s the changes I made to the project in attempt to get working on the nRF9160 Feather:
- Added
circuitdojo_feather_nrf9160_ns.conf
andcircuitdojo_feather_nrf9160_ns.overlay
fromnfed/samples/tracker/boards
toboards/
- Added
circuitdojo,psctl.yaml
fromnfed/samples/tracker/dts/bindings/circuitdojo,psctl.yaml
todts/bindings/
Next, I executed a build with the following command:
west build --build-dir c:\Git\nrfcloud_gps\build c:\Git\nrfcloud_gps --pristine --board circuitdojo_feather_nrf9160_ns -- -DNCS_TOOLCHAIN_VERSION:STRING="NONE" -DBOARD_ROOT:STRING="c:/Git/nrfcloud_gps"
console log looks like:
*** Booting Zephyr OS build v3.2.99-ncs2 ***
[00:00:00.491,546] <inf> connection: Setting up modem...
[00:00:00.491,546] <inf> connection: Setting up nRF Cloud library...
[00:00:00.492,034] <inf> main: nRF Cloud MQTT multi-service sample has started.
[00:00:00.501,251] <inf> connection: Setting up LTE...
[00:00:00.507,812] <inf> connection: Starting connection to LTE network...
[00:00:00.566,192] <inf> connection: Connecting to LTE network. This may take several minutes...
[00:00:00.566,223] <inf> connection: Waiting for connection to LTE network...
[00:00:08.310,394] <inf> connection: Connected to LTE network
[00:00:08.310,485] <inf> connection: Connecting to nRF Cloud...
[00:00:08.310,516] <inf> connection: Next connection retry in 30 seconds
[00:00:15.012,268] <inf> nrf_cloud_fsm: CC RX on topic <MY_IMEI>/shadow/get/accepted: {"desired":{"pairing":{"state":"paired","topics":{"d2c":"prod/37fe35f5-ae70-4198-9386-2574c886f523/m/d/<MY_IMEI>/d2c","c2d":"prod/37fe35f5-ae70-4198-9386-2574c886f523/m/d/<MY_IMEI>/+/r"}},"nrfcloud_mqtt_topic_prefix":"prod/37fe35f5-ae70-4198-9386-2574c886f523/"}}
[00:00:17.116,790] <inf> connection: Connected to nRF Cloud
[00:00:17.120,117] <inf> application: Waiting for modem to determine current date and time
[00:00:17.120,147] <inf> application: Current date and time determined
[00:00:17.120,300] <inf> nrf_cloud_pgps: Storage base:0xE8000, size:98304
[00:00:17.120,574] <inf> nrf_cloud_pgps: Checking P-GPS header: Schema version:0, type:0, num:0, count:0
[00:00:17.120,574] <inf> nrf_cloud_pgps: size:0, period (minutes):0, GPS day:0, GPS time:0
[00:00:17.120,605] <wrn> nrf_cloud_pgps: One or more fields are wrong
[00:00:17.120,666] <inf> nrf_cloud_pgps: Requesting 42 predictions...
[00:00:17.161,468] <inf> nrf_cloud_pgps: Searching for prediction
[00:00:17.161,468] <wrn> nrf_cloud_pgps: Predictions not loaded yet
[00:00:18.947,479] <inf> nrf_cloud_pgps: Searching for prediction
[00:00:18.947,509] <wrn> nrf_cloud_pgps: Predictions not loaded yet
[00:00:21.380,920] <inf> download_client: Setting up TLS credentials, tag 16842753
[00:00:21.381,042] <inf> download_client: Connecting to pgps.nrfcloud.com
...
[00:01:28.321,838] <inf> download_client: Downloaded 84268/84268 bytes (100%)
[00:01:28.321,929] <inf> nrf_cloud_pgps: Storing prediction num:41 idx:41 for gps sec:1369519200
[00:01:28.456,268] <inf> nrf_cloud_pgps: All P-GPS data received. Done.
[00:01:28.456,298] <inf> nrf_cloud_pgps: Searching for prediction
[00:01:28.456,420] <inf> nrf_cloud_pgps: GPS unit needs ephemerides. Injecting 32.
[00:01:28.456,604] <inf> download_client: Download complete
[00:01:28.456,604] <inf> nrf_cloud_pgps: Download client done
[00:02:40.038,970] <inf> location: Method specific timeout expired
[00:02:40.039,001] <wrn> location: GNSS timed out possibly due to too short GNSS time windows
[00:02:40.039,428] <inf> location: Location retrieval failed using 'GNSS', trying with 'Cellular' next
[00:02:42.253,051] <inf> application: Location Updated: -27.443751 N 153.169477 W, accuracy: 427.0 m, Method: Cellular