Unable to connect nrf9160 https-client over NB-IOT

Hello,

I am trying to create a socket and create a https request over NB-IOT. We started with the nrf9160 https-client sample, and changed the prefered and connection mode from LTE-M to NB-IOT.


We are located in Germany, and are connecting though a O2 telefonica sim, not the included iBasis one that comes with DK. We know the O2 sim can connect and send data over NB-IOT here as we have previously used the same sim with the SIM7020 modem.

The device when unset to the default, or set to LTE-M can connect and make the request fine. But when changed to NB-IOT the connection still occurs (as seen in the sim dashboard on O2's management system, kite platform).

I am adding the following lines near the startup of the program along with making changes in the proj.config. I have also enabled LTE link controller logging as the issue is occurring on the opening socket command, not the connect command.

proj.config

CONFIG_LTE_NETWORK_MODE_NBIOT=y

CONFIG_LOG=y
CONFIG_LTE_LINK_CONTROL_LOG_LEVEL_DBG=y

Near the start of the main function in main.c

lte_lc_offline();
lte_lc_system_mode_set(LTE_LC_SYSTEM_MODE_NBIOT, LTE_LC_SYSTEM_MODE_PREFER_NBIOT);
lte_lc_init();
lte_lc_normal();
lte_lc_connect();


The modem firmware has also been manually updated to the most recent on the website (version 1.3.4), although the DK was purchased recently, so I doubt it even had the incompatible firmware.

Could NB-IOT not support https, and an example with http work? Would testing over AT commands provide more information using the AT client sample and LTE link monitor (is there a example of AT commands somewhere to make a http/https request)? Or is there any sample code or example the makes GET/POST requests as looking though the forum or github yields no examples.

Regards,
Sawaiz

Parents
  • Hi,

    Not sure if changing to HTTP would make much of a change compared to HTTPS. It looks like the device is connected to the network from the log, but there is a timeout (error 116) so the server is not responding for some reason. 

    You can test with legacy PCO. Alternatives that I can come to think of are some subscription restrictions with the SIM like no data for NB-IOT network or maybe a different APN.  

    Regards,
    Jonathan

Reply
  • Hi,

    Not sure if changing to HTTP would make much of a change compared to HTTPS. It looks like the device is connected to the network from the log, but there is a timeout (error 116) so the server is not responding for some reason. 

    You can test with legacy PCO. Alternatives that I can come to think of are some subscription restrictions with the SIM like no data for NB-IOT network or maybe a different APN.  

    Regards,
    Jonathan

Children
No Data
Related