Modem 3 G
How to setup a USB 3G Modem: ZTE MF110
lsusb lists the usb devices connected to the Pi
lsusb
Install usb-modeswitch to switch between cdrom/storage mode to modem
sudo apt-get install usb-modeswitch
Create custom usb_modeswitch config file
We need to create a custom config file for usb_modeswitch on the Raspberry PI because on a cold boot the device is not always active yet when usb_modeswitch runs on startup and the device is left in USB storage mode.
sudo nano /etc/usb_modeswitch.conf # Configuration for the usb_modeswitch package, a mode switching tool for # USB devices providing multiple states or modes # # Evaluated by the wrapper script /usr/sbin/usb_modeswitch_dispatcher # # To enable an option, set it to "1", "yes" or "true" (case doesn't matter) # Everything else counts as "disable" # Disable automatic mode switching globally (e.g. to access the original # install storage) DisableSwitching=0 # Enable logging (results in a extensive report file in /var/log, named # "usb_modeswitch_<interface-name>" and probably others EnableLogging=0 DefaultVendor=0x19d2 DefaultProduct=0x2000 TargetVendor=0x19d2 TargetProduct=0x0016 # ZTE devices MessageContent="5553424312345678000000000000061e000000000000000000000000000000" MessageContent2="5553424312345679000000000000061b000000020000000000000000000000" MessageContent3="55534243123456702000000080000c85010101180101010101000000000000"
Device Id as a cdrom/storage: 19d2:2000
Device Id as a modem: 19d2:0016
# ZTE devices TargetVendor= 0x19d2 TargetProductList="0001,0002,0015,0016,0017,0031,0037,0052,0055,0061,0063,0064,0066,0091,0108,0117,0128,0157,1402,2002,2003" MessageContent="5553424312345678000000000000061e000000000000000000000000000000" MessageContent2="5553424312345679000000000000061b000000020000000000000000000000" MessageContent3="55534243123456702000000080000c85010101180101010101000000000000" NeedResponse=1
Rights to run as a pi user
chmod u+s /usr/sbin/pppd sudo chmod 777 /etc/ppp/chap-secrets sudo chmod 777 /etc/ppp/pap-secrets
Connect
wvdial 3gconnect