Hi @jaredwolff,
Thanks a lot for your reply. Happy new year to you as well! So it is my understanding I see the APP_EVENT_BACKEND_CONNECTED
event. In fact, I can see in Golioth a lightDB State that correspond to the state of my device (IMEA, timestamp, ip address, etc), which confirm that I can successfully connect to the LTE network and that my credentials to Golioth are OK. I was wondering what was the raw info coming from the GPS, so I just added a LOG_INF("%s", nmea_data.nmea_str);
in the NRF_MODEM_GNSS_EVT_NMEA
case of the gnss_event_handler
function. In this setup (keeping everything else untouch), I have the initial LTE communication and the following comunication every 10 minutes (on Golioth), and I can see some NMEA data coming in, but I can only see 3 satellites and no fix even after a while.
If I start the whole process again, wait for the initial LTE communication and then, physically unplug the LTE antenna, I will obviously lose my connection with the network, but then I can get a fix in about 2 minutes. At some point, I will have up to 10 satellites and a strong GPS signal. By looking at the console, I was able to wait for the GPS fix and then replug the LTE antenna and I can see some data point in Golioth, which kind of confirm that the workflow works. So my intuition is that I may have a problem related to potential interferences between the GPS and the LTE signal.
My questions are the following:
- Does it make any sense?
- Looking at the
prj.conf
file in the tracker app, it seems there are some environment variables to tune the communication and GNSS schedules. I can see that if I let app running as is, the device communicate with Golioth every 10 minutes (by looking at the Last Report
status on the server side). I presume it would be related to one of these variables:
`CONFIG_LTE_PSM_REQ_RPTAU=“00000001” # 10 min
CONFIG_LTE_PSM_REQ_RAT=“00000011” # 6 sec active time
CONFIG_LTE_LC_TAU_PRE_WARNING_NOTIFICATIONS=y
CONFIG_LTE_LC_TAU_PRE_WARNING_THRESHOLD_MS=60000
CONFIG_LTE_LC_MODEM_SLEEP_NOTIFICATIONS=y
CONFIG_LTE_LC_MODEM_SLEEP_NOTIFICATIONS_THRESHOLD_MS=60000
CONFIG_GOLIOTH_SYSTEM_CLIENT_RX_TIMEOUT_SEC=660
CONFIG_GOLIOTH_SYSTEM_CLIENT_PING_INTERVAL_SEC=600`
- One element I read on some forum was that the
PSM
and/or eDRX
features could be limited depending on the LTE provider. I noticed during the init sequence that my network mode was Roaming
. I use Truphone on a Canadian network. Do you think it’s possible that the Roaming
mode would limit the ability to the LTE network to go in sleep mode and thus overflow the GPS signal?
- If I set
GNSS_SAMPLE_PERIODIC_TIMEOUT
to 0, is it going to limit any LTE communication until I receive a valid fix?
I must put emphasis on the fact that this is really not my area of expertise, my apologies if some of my questions may look naive. Anyhow, thank @jaredwolff for this amazing work!