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

I have nrf9160dk. I want to give AT commands to the sdk through the processor instead of giving it from the PC.

I have nrf9160dk. I want to give AT commands to the sdk through the processor instead of giving it from the PC i.e want to program the processor in a way so that we don't need PC to give commands. Do you have any code set to do so? Is there any way to connect the AT Command section with the processor? I just want to flash a program to the processor so that it automatically takes the command and I don't need to send commands from the PC again and again. Just needed help in case you have some set of code or documentation to proceed in this way! I also want to know if I can connect the Command section with the processor.

Parents
  • Hi Sambhrant!

    If I understand your question correctly, you are wondering if one can flash a program to the mcu which writes AT commands to the modem. In that case, the answer is yes. The documentation for the AT command interface can be found here.

    With regard to code examples, the file ncs\nrf\drivers\lte_link_control\lte_lc.c  defines numerous functions that send AT commands to the modem. For example in the lte_ble_gateway example, the modem_configure() functions uses the lte_lc_init_and_connect() function from this library. Specifically, the at_cmd_write() function is used.

    Best regards,

    Heidi

Reply
  • Hi Sambhrant!

    If I understand your question correctly, you are wondering if one can flash a program to the mcu which writes AT commands to the modem. In that case, the answer is yes. The documentation for the AT command interface can be found here.

    With regard to code examples, the file ncs\nrf\drivers\lte_link_control\lte_lc.c  defines numerous functions that send AT commands to the modem. For example in the lte_ble_gateway example, the modem_configure() functions uses the lte_lc_init_and_connect() function from this library. Specifically, the at_cmd_write() function is used.

    Best regards,

    Heidi

Children
Related