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
Hi,
paul_tanner said:This is happening inside lte_lc_init_and_connect_async() for which AFAIK we do not have the source.
That function is inside lte_lc.c: https://github.com/nrfconnect/sdk-nrf/blob/master/lib/lte_link_control/lte_lc.c#L744
Do you know which AT command is failing? Does any of them work?
Kind regards,
Håkon
Thx Håkon
OK. modem_configure() is trying to set the AT%XSYSTEMMODE - which is *already* correctly set.
(I have CONFIG_LTE_NETWORK_MODE_NBIOT_GPS=y in prj.conf)
BTW. To find this out I had to edit lte_lc.c whereas I would have preferred to turn on debugging. I tried adding:
#define NRF_AT_CMD_LOG_LEVEL NRF_LOG_LEVEL_DEBUG
in main.c but that had no effect.
What next?
Regards.
So I made that error in modem_configure() non-fatal (a hack in ltc_lc.c) and it now does GPS and transmits the result via UDP. This is almost a solution apart from the fact that I hacked ltc_lc.c. I'd like a way to do this without that hack if possible to make it more upgrade-proof.
Also, if I want to restrict the log a bit i'd like to find out where CONFIG_LTE_LINK_CONTROL_LOG_LEVEL is defined.
Thx for any suggestions.
Regards
Hi,
Don't change the source files, you should set the log level on a project level:
https://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_LOG_DEFAULT_LEVEL.html
You can access this by entering "menuconfig", either via SeggerEmbeddedStudio (nordic edition) or via command line (cd my-project/build-folder && ninja menuconfig)
Then you should also choose "LTE_LINK_CONTROL_LOG_LEVEL_DBG".
Kind regards,
Håkon