Hello,
I am trying UDP sample with a local SIM (Orange) to check eDRX settings following this ticket.
Carrier said i should set an APN. This was not needed with 1NCE and OnoMondo, or at least i didn't set any APN.
How do i set the APN ? Can i also verify it's being set?
I am new to this domain and it seems i am missing something. If i understand correctly, zephyr is like a higher level API that under the hood call AT commands in relation to modem. When zephyr does not have a specific API it also offers at_cmd_write API to call AT commands. Can you please confirm my understanding?
I found 3 ways to set APN when searching:
1. AT command %XAPNSTATUS=<status>,<APN>
2. AT command if (at_cmd_write("AT+CGDCONT=1... )
3. kconfig config MODEM_GSM_APN
None of them resulted in any difference. The UDP sample connects and then imediately disconnects.
[4601]LTE cell changed: Cell ID: 2624769, Tracking area: 10103
[5006]RRC mode: Connected
[6416]RRC mode: Idle
[6458]Network registration status fail: 4
[6461]LTE cell changed: Cell ID: -1, Tracking area: -1
Questions:
1. What is the normal way to set the APN in UDP Sample?
2. If it's calling AT commands with at_cmd_write, which is the correct command? AT+CGDCONT or AT%XAPNSTATUS ? And when should it be called, before or after lte_lc_init ?
Thanks,
Nicolae