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,

     

    JackyChen said:
    Could you push your model_shell firmware and modem-firmware here, I can dowanload them for test on my side.

    This will not help, as the issues you're seeing is network related, not firmware related.

     

    JackyChen said:

    I use China-Mobile SIM card which is dedicated for IOT,  their technical support said that IP and DNS are obtained at the same time.

    I plug the SIM card into my phone , my phone can surf the Internet with this SIM card.

    So, I'm not sure if there's a compatibility problem with the way to gets DNS?

    Could you please try to run "at_client" sample on your nRF9160?

    This should be used in combination with LTE Link Monitor (available inside nRF Connect for Desktop), which enables network related error codes.

     

    What you should issue of commands in there to enable NB1 and start the network connection:

    AT+CEREG=5
    AT%XSYSTEMMODE=0,1,0,0
    AT+CFUN=1
    AT+CFUN?

     

    Could you then let it log for some minutes and share the log with me?

     

    Kind regards,

    Håkon

Children
Related