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.
Hardware
- Jetson Nano Cellular Modem KitMounted on the Jetson Nano, with the USB bridge connected.
SIM
- SIM card with data serviceIts APN:
superfor the Sixfab SIM.
Software
- Internet connection for the installationThe installer downloads its files and the
ppppackage: 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:
Send AT+QCFG="usbnet". If the answer ends in 0, the mode is right. If not, send AT+QCFG="usbnet",0, wait 10 seconds and restart the module with AT+CFUN=1,1.
Send AT#USBCFG?. If the answer ends in 0, the mode is right. If not, send AT#USBCFG=0, wait 10 seconds and restart the module with AT#REBOOT.
Install PPP
-
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 -
Answer installer questions
Question Answer Please choose your Sixfab Shield/HAT:6(3G/4G Base HAT)What is your carrier APN?The APN of the SIM: superfor the Sixfab SIMDoes your carrier need username and password? [Y/n]n; withY, the installer asks for bothWhat is your device communication PORT? (ttyS0/ttyUSB3/etc.)ttyUSB3ttyUSB3is the serial port of the module for PPP over the USB bridge of the kit. -
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
-
Check interface
ip addr show ppp0Result:ppp0is listed with an IPv4 address. -
Ping through cellular interface
ping -I ppp0 -c 5 sixfab.comResult: 5 replies and0% 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
- Connect cellular module to internet in ECM mode Another connection method: the module as a USB Ethernet interface, without dial-up.
- Jetson Nano Cellular Modem Kit hardware reference Pinout, power, LEDs, solder jumpers and specifications of the kit.
- Linux PPP HOWTO How PPP works on Linux: pppd, its options and authentication.