Hello
I would like to transmit gps data to my website in addition to nrf cloud, there is a example or documentation about this that I can take of reference? I am working with nRF 9160 DK
thanks in advance.
Kind Regards
Julio
Hello
I would like to transmit gps data to my website in addition to nrf cloud, there is a example or documentation about this that I can take of reference? I am working with nRF 9160 DK
thanks in advance.
Kind Regards
Julio
Thx Håkon
Yes. The first thing I did was to test both GPS and UDP examples.
Only then did I try to put them together to make a minimal tracker using UDP and without the need for all the other good stuff in your asset_tracker app.
So I now wait for udp Idle.
However, from the code in the gps sample I then get an error from
```
at_cmd_write(at_commands[i])
```
AT_XSYSTEMMODE, (fails on this one)
AT_MAGPIO,
AT_COEX0,
AT_ACTIVATE_GPS
so GPS is not activated.
XSYSTEMMODE is probably redundant but why would it throw an error?
Regards.
Hi,
paul_tanner said:XSYSTEMMODE is probably redundant but why would it throw an error?
Its highly likely because the modem is already enabled (AT+CFUN=1) at this point. Please check that "modem_configure()" isn't called, and that "CONFIG_LTE_AUTO_INIT_AND_CONNECT=n" is set in your project.
Kind regards,
Håkon
Thx Håkon
modem_configure() *was* being called; CONFIG_LTE_AUTO_INIT_AND_CONNECT=n is set.
So I removed modem_configure(). The result was that we never get the LTE_LC_EVT_RRC_UPDATE (idle) event so it just hangs.
Is something else needed instead of modem_configure()? (per the udp example)
Presumably the lack of modem_configure would also prevent sending of data via udp?
Regards.
Hi Paul,
My strongest apologies! This comment from me is written a bit too fast (ie: its wrong..)
Håkon Alseth said:Please check that "modem_configure()" isn't called
You should check that modem_configure hasn't been called yet, before setting system permissions, like XSYSTEMMODE.
So, issue your AT-commands, then call modem_configure() to connect to the LTE network.
Kind regards,
Håkon
Thx Håkon
I tried that. It gets to modem_configure() - same code as in UDP sample - and we then fail with:
```
Could not send AT command error -8
```
This is happening inside lte_lc_init_and_connect_async() for which AFAIK we do not have the source.
Regards.