This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

NRF9160 APN setup for https-client example

Hi,

We are trying to use our NRF91-DK with a proximus simcard (belgian provider).
I'm trying to get the https-client example to work without any code modifications.
We know we need to set an apn for proximus but it's not working.

I added the following to my prj.conf

CONFIG_LTE_PDP_CMD=y
CONFIG_LTE_PDP_CONTEXT="1\"IP\",\"m2minternet.proximus.be\""
CONFIG_BSD_LIBRARY_TRACE_ENABLED=y

and reimported the project in embedded studio to test.

Problem is that I'm blind to what's happening in the libraries of the modem.
I enabled the trace but i can't open the .bin file where it logs.
Can i see the at command output somewhere?

Thanks for any help!

Marvin

trace-2020-05-29T11-39-13.869Z.bin

  • Hi Marvin,
    Please download the "LTE Link Monitor" and when you disable "Automatic Requests" in the downright corner you can use it as a regular serial output terminal for your device. This is helpful to print out messages, info from your application and could also give an indication of what is going wrong.

    Since Proximus only support NB-IoT based on GSMA: https://www.gsma.com/iot/deployment-map/#BE

    I assume that's the issue here since the samples in our NCS that uses the Link Control Library will select, LTE-M as default technology to connect through. 

    So you need to set:

    CONFIG_LTE_NETWORK_MODE_NBIOT=y

    in your prj.conf file and rebuild/flash the application.

    Please provide the Serial output log if you have any issues. 

    BR,
    Martin L.

  • Hi Martin,

    Thank you for the follow up!

    I added the config line to my prj.conf file and reimported it and rebuild it.
    I still have no working example.

    I indeed use the lte link monitor for debugging but the problem is that the library handles AT commands and i don't really know what is happening on at level, is this correct?

    It freezes at provisioning certificate in the serial output.

    SPM: NS image at 0xc000

    
    
    
    
    SPM: NS MSP at 0x20024880
    
    
    
    

    SPM: NS reset vector at 0xcf31
    
    
    
    

    SPM: prepare to jump to Non-Secure image.

    
    
    
    
    *** Booting Zephyr OS build v2.1.99-ncs1  
    ***
    
    
    
    
    HTTPS client sample started

    
    
    
    
    
    
    Provisioning certificate


    Thanks!
    Marvin

    My prj.conf with https example no changes to code.


    CONFIG_BSD_LIBRARY=y
    CONFIG_BSD_LIBRARY_SYS_INIT=n

    CONFIG_NETWORKING=y
    CONFIG_NET_SOCKETS=y
    CONFIG_NET_NATIVE=n

    CONFIG_HEAP_MEM_POOL_SIZE=4096
    CONFIG_MAIN_STACK_SIZE=4096

    CONFIG_MODEM_KEY_MGMT=y
    CONFIG_LTE_LINK_CONTROL=y

    CONFIG_LTE_PDP_CMD=y
    CONFIG_LTE_PDP_CONTEXT="1,\"IP\",\"m2minternet.proximus.be\""

    #CONFIG_BSD_LIBRARY_TRACE_ENABLED=y

    CONFIG_LTE_NETWORK_MODE_NBIOT=y
  • Have you been able to get this working eventually?
    I have some stuff working with the iBasis sim card on the proximus network. However, when using a proximus sim card, I noticed that address resolution (DNS) does not seem to work anymore. I can do a HTTP GET of an IP address directly but not of google.com.

Related