GithubHelp home page GithubHelp logo

isabella232 / wireless-ppp-scripts Goto Github PK

View Code? Open in Web Editor NEW

This project forked from twilio/wireless-ppp-scripts

0.0 0.0 0.0 4 KB

This repository includes a group of ppp scripts to connect a Raspberry Pi to the Internet using a USB cellular modem.

wireless-ppp-scripts's Introduction

Programmable Wireless Raspberry Pi ppp scripts

Programmable Wireless is a set of developer-first tools to deploy and manage fleets of wireless devices, powering connectivity for the Internet of Things and enabling highly customized Communications use cases.

This repository includes a group of ppp scripts to connect a Raspberry Pi to the Internet using a USB cellular modem. You can learn more about Programmable Wireless from the Programmable Wireless Documentation and how to connect a USB modem to a Raspberry Pi by following this guide.

Requirements

You will need to download and install software packages on your Raspberry Pi before you can use your unlocked cellular USB modem. Follow along with this repository's accompanying guide if you need additional help. The easiest option is to get a Raspberry Pi WiFi dongle if your device does not have built in wifi.

Step 1. Install packages on Raspberry Pi

Type the following in a terminal:

sudo apt-get update
sudo apt-get install ppp usb-modeswitch

Step 2. Determine current mode of your USB modem

Follow along with this repository's accompanying guide to determine if your USB modem is in the correct mode.

Step 3. Install ppp scripts

Type the following in a terminal:

wget https://github.com/twilio/wireless-ppp-scripts/archive/master.zip
unzip master.zip
cd wireless-ppp-scripts
sudo cp chatscripts/twilio /etc/chatscripts
sudo cp peers/twilio /etc/ppp/peers

Thats it for the scripts. You can remove master.zip and wireless-ppp-scripts by typing the following in a terminal:

rm -rf master.zip
rm -rf wireless-ppp-scripts

Step 4. Shut down wifi if up

Type the following in a terminal:

sudo ifconfig wlan0 down

Step 5. Connect to the cellular network

Type the following in a terminal:

sudo pon twilio

Step 4. Confirm

Your USB modem should now be connected to the Internet! Try going to a web page or ping Twilio. Type the following in a terminal to ping www.twilio.com:

ping -c 3 www.twilio.com

You’re connected!

You inserted a Twilio SIM card into your cellular USB modem and configured ppp to run at boot. Take a look at the other interesting things you can do with a Raspberry Pi such as sending machine-to-machine Commands or creating a cellular connected security camera.

wireless-ppp-scripts's People

Contributors

jonedavis avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.