06/30/2017  v1.00

Using the Zoom USB Cellular Modem for Raspberry Pi or Linux


Connecting your modem on Raspberry Pi or other Linux distributions, including embedded Linux OS’s such as BusyBox, is controlled by the PPP dialer command pppd. You can use pppd directly, or use a utility like WvDial to control pppd. Users doing embedded development or remote applications should use pppd; more casual users might want to use WvDial.

The steps below were tested for Raspberry Pi, and other versions of Linux should work the same. If you are going to use pppd continue below; if you want to use WvDial skip ahead to Using WvDial to Connect to the Internet.

Using pppd to Connect to the Internet

  1. Plug your modem into an available USB port. Raspberry Pi users may need to use a USB extender cable to allow access to the other USB ports.
  2. From a terminal window on your Raspberry Pi or Linux computer enter sudo su to elevate you to root access.
  3. Install the ppp package by entering the following command apt-get install ppp
  4. Next you will need to create two scripts that pppd will use to create the connection. You can either create the scripts using an editor such as vi or download the scripts from www.zoomtel.com/4610support
  5. The first script should be named zdial. If you downloaded the script, copy it into /etc/ppp/peers
  6. If you are creating the script, put the contents below into the /etc/ppp/peers directory.
    #module configuration
    /dev/ttyACM0 460800
    
    #pppd options
    debug
    nodetatch
    crtscts
    hide-password
    noauth
    defaultroute
    noipdefault
    usepeerdns
    ipcp-max-configure 20
    ipcp-max-failure 20
    
    #logfile configuration
    logfile /etc/ppp/ppp-logfile
    record /etc/ppp/ppp-dumplog
    
    #call to chat script
    connect “usr/sbin/chat –v –f /etc/chatscripts/3G_dial”
  7. The second script 3G_dial should be placed into the directory /etc/chatscripts/ The contents of that script are below:
    #abortstring
    ABORT BUSY
    ABORT ‘NO CARRIER’
    ABORT VOICE
    ABORT ‘NO DIALTONE’
    ABORT ‘NO DIAL TONE’
    ABORT ‘NO ANSWER’
    ABORT DELAYED
    
    #ispnumber
    “” “ATI”
    OK “ATD*99***1#”
    
    #ispconnect
    CONNECT /d/c
    
  8. To connect to the Internet, enter the command pppd file zdial. Once connected, you can try pinging a known website. If it works, Congratulations! Your installation is complete. If your modem is NOT working, please go to www.zoomtel.com/techsupport for support options or to contact our technical support experts.

    Note: If you are already connected to the Internet using the Ethernet port of your Raspberry Pi, remove the Ethernet cable to use the USB modem. If you are connected to the Internet through Raspberry Pi’s WiFi port, you can disconnect from this connection by bringing the WiFi interface down with the command ifconfig wlan0 down.

    To disconnect your connection, press ctrl-c

Using WvDial to Connect to the Internet

  1. Plug your modem into an available USB port. Raspberry Pi users may need to use a USB extender cable to allow access to the other USB ports.
  2. From a terminal window on your Raspberry Pi or Linux computer enter sudo su to elevate you to root access.
  3. Install the ppp package by entering the following command apt-get install ppp
  4. Install WvDial by entering the following command apt-get –y install WvDial.
  5. Once WvDial has finished installing, you will need to edit the config file for it. Enter VI /etc/wvdial.conf to edit the config file.
  6. You will need to make the following changes to the config file
    Modem = /dev/ttyACM0
    Phone = *99#
    Username = ' '
    Password = ' '
    	
    If there is an init string that contains the command AT+CGDCONT as part of it, you can delete this string as the APN is automatically read from your SIM card
  7. Enter sudo wvdial to launch the program and connect to the Internet. Once connected, you can try pinging a known website. If it works, Congratulations! Your installation is complete. If your modem is NOT working, please go to www.zoomtel.com/techsupport for support options or to contact our technical support experts.