

Open a terminal window and enter the following replacing the codes 19d with the codes you noted in step 2. We will extract some more information for our usb_modeswitch config file so that we can do the switching manually. 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. This value will be used later in the TargetProduct valueģ. This is usb_modeswitch doing it's job and switching the device to USB modem mode. Your modem should be listed and if you are lucky the second set of numbers would have changed.

The output will look similar to the screenshot below. Then we need to soft reboot the Rapberry PI with the modem connected.

This value will later be used in the DefaultProduct value These are the device vendor and product codes. Your modem should be listed as one of the USB devices. Once rebooted open a terminal window and enter: We need to get the codes of the USB device in USB storage mode and USB modem mode.Ĭonnect your USB modem and reboot the Raspberry PI without LAN or Wifi connection Sudo apt-get install ppp usb-modeswitch wvdial For this we will use the classic ppp and wvdial programs.Ĭonnect your Raspberry PI to the internet via LAN or Wifi The other missing part is a way to connect to the cellular network with the USB modem from the Raspberry. There is a program called usb_modeswitch that we can use to do the switching When plugged in to the Raspberry PI the device is usually in USB storage mode. The main problem is that most USB modems act as two devices - a USB storage device and a USB modem. There are many guides available using the now defunct sakis3g script, but getting my modem to work required a bit more understanding. Setting up a USB 3G/4G modem on a Raspberry Pi is not a simple task.
