项目作者: aleksandr-vin

项目描述 :
Backpack with LTE and wi-fi
高级语言: Shell
项目地址: git://github.com/aleksandr-vin/pi-backpack.git
创建时间: 2019-07-03T18:14:05Z
项目社区:https://github.com/aleksandr-vin/pi-backpack

开源协议:

下载


Backpack with LTE and wi-fi

The Idea

You have a SIM card with unlimited Internet data bundle. You have another SIM card, that you use
in youre phone. You want to use unlimited Internet and keep your phone number. So you get an LTE
modem, and share the connection via Wi-Fi.

Hardware

  • Raspberry Pi Zero W
  • LTE modem (D-Link DWM-221 in my case)
  • SIM card with Internet
  • SD card
  • Battery pack (better 2 for swapping)
  • USB micro-to B cable (for modem)
  • USB micro-to-A cable (for battery)
  • Raspberry Pi Zero Case
  • Case for Goggles
  • Backpack

Do It

Get Raspberry Pi Zero W, install Raspbian on it, update it.

Setup LTE modem

Refer to http://wiredtron.com/2018/07/07/raspberry-pi-with-huawei-E397u-53-dongle-metro/.

Hints

  • I’m using /etc/qmi-network.conf.

  • To reset PIN protection of your SIM card, get inspiration from these commands:

  1. sudo qmicli -d /dev/cdc-wdm0 --dms-uim-get-pin-status
  2. sudo qmicli -d /dev/cdc-wdm0 --dms-uim-set-pin-protection=PIN,disable,1234
  3. sudo qmicli -d /dev/cdc-wdm0 --dms-uim-get-pin-status

Setup Access Point

Refer to https://scribles.net/creating-wireless-router-using-raspberry-pi-zero-w/ for the whole process,
use wwan0 instead of wlan1.

Extra

Setup basic status HTTP server. Check http-server.py, stats for the
sources, and etc/systemd/system/http-server.service for
the service definition.

Enabling the service then is done with these commands:

  1. sudo systemctl enable http-server
  2. sudo systemctl status http-server
  3. sudo systemctl start http-server
  4. sudo systemctl status http-server