Does the GPS need battery power to opporate?
I could not aquire satellites or a fix with it being powered via the serial port alone.
VSC include errors
If you check the schematic, the “power path” from battery or USB is the same.
I’m not sure, what you exactly do. Simplified, GPS is used in two modes, “classic” and “assisted”. For “classic”, the GPS receiver starts with receiving “broad-banded”, which isn’t that sensitive. Therefore you need “free sight to the sky”. Once the receiver detect the first signals, it switches to “smaller-banded” mode, which is much more sensitive and may work with less “free sight to the sky”, at least for something about 3h. In the “assisted” mode, the data received in the “broad-banded” phase are exchanged via the cellular protocol and with that, GPS is able to start “smaller-banded”.
That results in:
“classic” requires “initial free sky” and if the device is connected indoor with USB, that doesn’t work
“assisted” doesn’t required that “initial free sky” and may therefore work in less good conditions.
jhox616 Does the GPS need battery power to opporate?
You do not but if your power source is noisy you may not get a fix as fast. Also someone else in the community is having issues with GPS. I’m going to double check to make sure I didn’t break the sample.
jhox616 what sample were you using? The gps sample was missing a config variable which was preventing the GPS antenna from being powered properly.
Here is the correct nfed/samples/gps/boards/circuitdojo_feather_nrf9160_ns.conf
#
# Copyright (c) 2021 Circuit Dojo LLC
#
# SPDX-License-Identifier: Apache-2.0
#
# GPS Antenna configuration
CONFIG_MODEM_ANTENNA=y
CONFIG_MODEM_ANTENNA_AT_COEX0="AT\%XCOEX0=1,1,1565,1586"
# Enable Zephyr application to be booted by MCUboot
CONFIG_BOOTLOADER_MCUBOOT=y
Ah, maybe that is why it wasn’t working. It was just the gps test sample under nfed.
I updated the board config info.
Is the GPS example suppose to give feedback over serial?
When I connect over serial it just just says “connected over COM4!”
After I was expecting information on satellites it is acquiring or something…
It should. Make sure you’re connected to the right port and you’re using the latest SDK.