Switch branches/tags
Nothing to show
Find file History
Latest commit 4ddfacf May 16, 2017
Failed to load latest commit information.
README.md Update README.md May 16, 2017
ppp-creator.sh Update ppp-creator.sh May 16, 2017


Make a PPP internet connection with Sixfab GPRS Shield on Raspberry Pi

Gprs shield use Uart connection on Raspberry Pi. You can use following transactions for work.

  1. Firstly, Connect your Raspberry Pi to internet and run sudo apt-get update to update your Raspberry Pi

  2. We should stop getty service on Raspbian.

  3. For non Raspberry Pi 3 machines, remember it’s /dev/ttyAMA0 that is linked to the getty (console) service. So you need to perform this command from a terminal window: - sudo systemctl stop serial-getty@ttyAMA0.service - sudo systemctl disable serial-getty@ttyAMA0.service

  4. For Raspberry Pi 3’s the command is similar but referencing /dev/ttyS0: - sudo systemctl stop serial-getty@ttyS0.service - sudo systemctl disable serial-getty@ttyS0.service

  5. You also need to remove the console from the cmdline.txt. If you edit this with: - sudo nano /boot/cmdline.txt

    dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles

    remove the line: console=serial0,115200 and save and reboot for changes to take effect.

  6. You also need to enable uart with edit /boot/config.txt file - sudo nano /boot/config.txt and add enable_uart=1 to bottom of file then save and reboot for changes to take effect.

  7. Download ppp-creator.sh script and run. Script will install ppp and creates config files.

  • wget https://raw.githubusercontent.com/sixfab/rpiShields/master/tutorials/tutorial2/ppp-creator.sh
  • chmod +x ./ppp-creator.sh
  • sudo ./ppp-creator.sh INTERNET ttyAMA0 # Rpi3 > ttyS0 , others ttyAMA0 # INTERNET is APN, check your cellular
  1. Run sudo pppd call gprs
  2. run ifconfig ppp0 at terminal window to see following outputs and see your ip
ppp0      Link encap:Point-to-Point Protocol
          inet addr:XX.XX.XXX.XXX  P-t-P:XX.XX.XX.XX  Mask:
          RX packets:38 errors:0 dropped:0 overruns:0 frame:0
          TX packets:39 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:3065 (2.9 KiB)  TX bytes:2657 (2.5 KiB)