nRF9160-DK , Modem_shell demo , ppp unable to access the Internet

Hello,guys

I build nrf9160-dk modem_shell demo as cmd '$ west build -b nrf9160dk_nrf9160ns ' and then '$ west flash ', after the system running up, I try to ping baidu website,it works as follow picture.

And then I rebuild the Modem_shell demo with cmd ' $ west build -p -b nrf9160dk_nrf9160_ns -d build -- -DOVERLAY_CONFIG=overlay-ppp.conf' for supporting ppp function. After the system running up, I try to ping baidu website again,it works as follow picture and it work failed.

I can capture any data from another serial, I guess VCOM0 serial is shell and VCOM2 serial is ppp channel.

To test my guess,I plugged nrf9160-DK board into my Ubuntu virtual machine and disable Ubuntu network. Use minicom tool to connect VCOM0 and open nrf9160-DK shell in A terminal, set the custom configuration for PPP uart with cmd 'ppp uartconf -b 115200' . New B terminal for ppp connection , type cmd ' $sudo pppd -detach /dev/ttyACM2 115200 DK-ip:Ubuntu-ip noauth nocrtscts local ' , then A terminal return "Dial up connection up" . New C terminal and type cmd ' ifconfig ' , I can see ppp0 and it's ip ,I try to ping baidu website,it work as follow picture.

it can't access the Internet ? why ? Did I operate wrong? Please point out my mistakes.

The version of modem_fw I use is 1.3.0 , ncs version is 1.7.0.

Parents Reply
  • Hi,

    em.....

    I don't know how to set using NB1 when test mqtt_simple. I didn't see any introduction in https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/nrf9160/mqtt_simple/README.html#building-and-running .

    When I program the mqtt_simple to my DK board, the uart output log is:

    SPM: NS MSP at 0x20019b70
    SPM: NS reset vector at 0x13d6d
    SPM: prepare to jump to Non-Secure image.
    *** Booting Zephyr OS build v2.6.99-ncs1-10-g7b6343a709b5 ***
    [00:00:00.207,244] <wrn> at_notif: Already initialized. Nothing to do
    [00:00:00.207,336] <inf> mqtt_simple: The MQTT simple sample started
    [00:00:00.207,336] <inf> mqtt_simple: Disabling PSM and eDRX
    [00:00:00.208,251] <inf> mqtt_simple: LTE Link Connecting...
    +CEREG: 4
    +CEREG: 0
    [00:10:00.257,141] <inf> lte_lc: Network connection attempt timed out
    [00:10:00.280,792] <inf> lte_lc: Using fallback network mode
    +CEREG: 2,"1D26","0AC23D3E",9
    +CSCON: 1
    +CEREG: 1,"1D26","0AC23D3E",9,,,"11100000","11100000"
    [00:10:10.128,234] <inf> mqtt_simple: LTE Link Connected!
    [00:10:10.128,479] <err> mqtt_simple: getaddrinfo failed: -2
    [00:10:10.128,479] <err> mqtt_simple: Failed to initialize broker connection
    [00:10:10.128,479] <err> mqtt_simple: client_init: -10
    +CSCON: 0
    +CEREG: 1,"1D28","0D1E5A42",9,,,"11100000","11100000"
    +CSCON: 1
    +CSCON: 0
    +CEREG: 1,"1D26","0AC23D3E",9,,,"11100000","11100000"
    +CEREG: 1,"1D28","0D1E5A42",9,,,"11100000","11100000"
    +CEREG: 1,"1D26","0AC23D3E",9,,,"11100000","11100000"
    +CEREG: 1,"1D28","0D1E5A41",9,,,"11100000","11100000"
    +CEREG: 1,"1D26","0AC23D3E",9,,,"11100000","11100000"

    It looks like I can't get an IP address.

Children
Related