Hello dear People,
I would be very happy if anyone has an idea how to solve this.
The Problem is the following: I am using nordics lte link controller to connect to nb-iot(<modem/lte_lc.h>), but when opening a socket, it times out... (error 116).
Basically for this testing scenario i adapted the udp sample to make tcp connection and send/receive some data:
The code for opening the socket:
ip to local port and establish tcp-connection:
my proj.conf file looks the following:
the debug output:
my main.c:
the connection to the server used to work on my thingy, but on the custom devboard my employer wants me to work with there the tcp-connection always times out.
One big difference is on the thingy i was using lte-m and the devboard sim only supports nb-iot which is why I configured the project to use nb-iot only.
this is the code i use to connect to the nb-iot network:
Now when I call some at commands (using nrf_modem_at_cmd from <nrf_modem_at.h>) for example to see which band is in use/available on the modem:
I always get an error (see debug output above), but only when using nordics proprietary at-commands (AT%<command>, like mentioned in https://infocenter.nordicsemi.com/pdf/nrf91_at_commands_v1.0.pdf). Standard AT-Commands (those with a +) seem to work fine....
Do i have to do extra configuration when I want to use the nordic proprietary at-commands like XCBAND or when I am using NB-IOT in general?
My guess so far is that the connection time out is occuring, because nordics lte link controller is eventually also not able to use those to open a socket.
Any help is appreciated and I would be very grateful.
Have a nice day folks,
Jannis
PS: my setup:
Modem firmware version 1.2.3
nrf-connect sdk version 1.9.0
Zephyr OS build v2.7.99-ncs1
Nordic nrf9160 rev2