nRF5 SDK is not maintained anymore
More Info: Consider nRF Connect SDK for new designs

How to Interface nRF9160 with external MCU for nb-IOT control using AT commands?

Hi,

I have this development board https://www.nordicsemi.com/Products/Development-hardware/nRF9160-DK .  I would like to use development board as nb-IOT modem and other MCU to control it send data over  nb-IOT modem using AT commands, it is possible to do this? 

I have tested this board with nRF desktop software using 2G network and AT command. 

As of now, I don't  have nb-IOT sim card available to test, so not able to test. 

Query targeting MCU interface : 

1) Which RX, TX pin of nRF9160 would be used to control over MCU? 

2) Which SDK should I use for AT command functionality? 

3) what other changes are needed to work with nb-IOT network ? 

please suggest if there is any reference example available for this purpose.

Any help will be appreciated. 

Thanks & Regards,

Ashvin

Parents
  • Hello,

    please suggest if there is any reference example available for this purpose.

    you can use the SLM sample to achieve this functionality. It should work with NB-IoT as well I believe.

  • Hi, Hakon

    Thanks for your reply. 

    SLM sample which you have suggest, how should I upload or compile for development board, as I am new here.

    Still I am not aware where should I connect UART pins of DK board to External MCU for AT command control.

    Looking forward to hearing from you.

    Thanks

  • Ashvin Makwana said:
    SLM sample which you have suggest, how should I upload or compile for development board, as I am new here.

    If you are new to developing with the nrf9160 you should probably start be reading this. You need to download the SDK and command line tools, before you can start developing.

    Ashvin Makwana said:
    Still I am not aware where should I connect UART pins of DK board to External MCU for AT command control.

    If you are using an external MCU you should uncomment the two lines in prj.conf located in the application folder

    #CONFIG_SLM_CONNECT_UART_2=y
    #CONFIG_UART_2_NRF_HW_ASYNC_TIMER=2

    and comment CONFIG_UART_0_NRF_HW_ASYNC_TIMER=2. Then you can check the rx and tx pins in nrf9160dk_nrf9160_ns.overlay located in the application folder. For uart2 this should be P0.11 and P0.10 respectively. You can change the pins if you want, you just need to set different values in the nrf9160dk_nrf9160_ns.overlay file.

Reply
  • Ashvin Makwana said:
    SLM sample which you have suggest, how should I upload or compile for development board, as I am new here.

    If you are new to developing with the nrf9160 you should probably start be reading this. You need to download the SDK and command line tools, before you can start developing.

    Ashvin Makwana said:
    Still I am not aware where should I connect UART pins of DK board to External MCU for AT command control.

    If you are using an external MCU you should uncomment the two lines in prj.conf located in the application folder

    #CONFIG_SLM_CONNECT_UART_2=y
    #CONFIG_UART_2_NRF_HW_ASYNC_TIMER=2

    and comment CONFIG_UART_0_NRF_HW_ASYNC_TIMER=2. Then you can check the rx and tx pins in nrf9160dk_nrf9160_ns.overlay located in the application folder. For uart2 this should be P0.11 and P0.10 respectively. You can change the pins if you want, you just need to set different values in the nrf9160dk_nrf9160_ns.overlay file.

Children
Related