Setup script to install Huawei ME909s-120 mPCIe modem on Raspberry Pi (Raspbian). I've connected modem thru cheap mpcie-to-USB adapter with SIM slot and stuck with usb_modeswitch auto mode (which should be disabled). Also script add up udev rules, so you can plug modem to any USB port each time.
- Script assumes PIN is disabled for the SIM-card
- Default APN set as "internet.beeline.ru"
$ curl -sSOOJ https://raw.githubusercontent.com/Atarity/Rpi-huawei-setup/master/{rpi-huawei-me909s-120-setup.sh,rpi-huawei-me909s-120-remove.sh}
$ chmod +x rpi-huawei-me909s-120-setup.sh rpi-huawei-me909s-120-remove.sh
$ sudo ./rpi-huawei-me909s-120-setup.sh
- Disconnect modem from USB port and plug it back.
- You can find new lte0 interface now:
ifconfig - Connect to cellular network and obtain IP by
sudo ifup -v lte0 - Run
speedtest-cli --source xx.xx.xx.xxto test the speed. Replace xx with IP modem got.
To remove all created configs and bring usb_modeswitch to its AUTO switch state simply run:
$ sudo ./rpi-huawei-me909s-120-remove.sh
Script works on Ubuntu as well. The only you need to link interfaces configs. So open /etc/network/interfaces and add string at the end:
source /etc/network/interfaces.d/*
This script dependencies sed and yn is already in default Raspbian and Ubuntu packages.