Connect Jetson Nano to LTE internet over PPP

Connect a Jetson Nano to the internet over PPP with the Jetson Nano Cellular Modem Kit and Sixfab’s PPP installer.

The installer sets up pppd for the serial port of the module and the APN of the SIM. sudo pon then starts the connection, which Linux shows as the ppp0 interface.

Requirements

Assemble the kit and check that the module is detected, as in Get started with Jetson Nano Cellular Modem Kit.

Required

Hardware

  • Jetson Nano Cellular Modem KitMounted on the Jetson Nano, with the USB bridge connected.

SIM

  • SIM card with data serviceIts APN: super for the Sixfab SIM.

Software

  • Internet connection for the installationThe installer downloads its files and the ppp package: connect the Jetson Nano over Ethernet or Wi-Fi until the installation ends.
  • Serial terminalTo send AT commands: see Send AT commands.

Check module USB mode

PPP needs the module in USB mode 0, its default. A module that was set to ECM mode is in another mode. Send the commands of your module:

Install PPP

  1. Download and run installer

    Download the installer script, make it executable and run it:

    wget https://raw.githubusercontent.com/sixfab/Sixfab_PPP_Installer/master/ppp_install_jetson.sh
    sudo chmod +x ppp_install_jetson.sh
    sudo ./ppp_install_jetson.sh
  2. Answer installer questions

    QuestionAnswer
    Please choose your Sixfab Shield/HAT:6 (3G/4G Base HAT)
    What is your carrier APN?The APN of the SIM: super for the Sixfab SIM
    Does your carrier need username and password? [Y/n]n; with Y, the installer asks for both
    What is your device communication PORT? (ttyS0/ttyUSB3/etc.)ttyUSB3

    ttyUSB3 is the serial port of the module for PPP over the USB bridge of the kit.

  3. Restart Jetson Nano

    When the installer prints Press ENTER key to reboot, press Enter.

    Result: after the restart, the PWR LED of the HAT is on.

Start connection

Start PPP:

sudo pon

Verify

  1. Check interface

    ip addr show ppp0
    Result: ppp0 is listed with an IPv4 address.
  2. Ping through cellular interface

    ping -I ppp0 -c 5 sixfab.com
    Result: 5 replies and 0% packet loss.

Details

Stop connection

sudo poff stops the connection; sudo pon starts it again.

Default route

The installer adds sudo route add default ppp0 to /etc/ppp/ip-up: each time the connection comes up, a default route through ppp0 is added.

Next steps