Connect Icarus IoT to MQTT server through SIM card

Hi,

I'm using Actinius Icarus IoT board, which is based on nRF9160, and trying to connect to a cellular carrier with no success.

I've inserted my nano SIM to the sim slot, and prior to that I made sure its cellular plan is active and that the sim has no pin code (it actually works with an Android phone).

I've also configured the board to use the external sim as instructed here.

I tried to run the MQTT simple sample with no success, the function lte_lc_init_and_connect() doesn't return.

so I turned to AT commands.

I tried this guide and also this one. The sim seems to respond, since I get its IMEI and other identifiers, but it doesn't offer, for example, cellular operators to connect to when using "AT%COPS=?".

I have the operator's APN, which I configured with "AT+CGDCONT" - still no success.

What is the right way to get my board connected to the internet with my SIM card? My final goal is publishing to an MQTT server.

My development environment is VS Code, I'm writing in C, using NCS V2.1.3 and I flash the board with J-Link (I'm able to run in debug mode).

Any help would be much appreciated.

Thanks,

Dekel

Parents Reply Children
Related