Hi there,
My board arrived today and have just been playing around so far getting up to speed with this build system & Zephyr etc… all new to me! I decided to try and build + run the at_client
sample. It builds fine and I can load it via the bootloader using newtmgr
also. All good!
However, I can’t seem to actually make sense of whats happening under the hood. In the serial port of nRF Desktop, there are no logs or messages that appear in the main.c
:
printk("The AT host sample started\n");
err = nrf_modem_lib_init();
if (err) {
printk("Modem library initialization failed, error: %d\n", err);
return 0;
}
enable_xtal();
printk("Ready\n");
nRF seem to have deprecated LTE link monitor in favor of the Cellular Monitor, so not sure how well I’m following the debugging docs. I have updated my prj.conf
with:
CONFIG_PDN=y
CONFIG_PDN_DEFAULTS_OVERRIDE=y
CONFIG_PDN_DEFAULT_APN="hologram"
CONFIG_PDN_DEFAULT_FAM_IPV4V6=y
CONFIG_PDN_SYS_INIT=y
seemed to have been deprecated so I removed it.
I then load up the Serial Terminal independently to test, and I can run:
> AT
OK
> AT+CFUN=1
OK
However, when I start a trace in the Cellular Monitor, it seems to timeout and fail? No information is populated. Opening the serial port terminal it’s using I see:
> AT
OK
> AT+CFUN=1
It just hangs here and fails on “Trace”. The “modem trace database” is set to 1.3.2.
The weird thing is that I can see during a random test a few minutes ago that the device registered on Holograms dashboard… seems sporadic and I can’t replicate exactly when it’s connecting.
Is this expected behavior or is something wrong? It doesn’t seem stable.
edit: I ran some other commands from the AT command docs:
> AT+CSQ
+CSQ: 99,99
OK
> AT+COPS?
+COPS: 0
OK
> AT+CGDCONT?
+CGDCONT: 0,"IPV4V6","hologram","",0,0
OK
Seems like the signal is really good (99.99) and the current mobile network is on Auto - unsure whether it should return a name. A lot of other commands result in either 0 or ERROR… seems dodgy