Thursday, September 18, 2014

Setting up Verizon Novatel USB760 USB Cell Modem with Debian Jessie on SAMA5D3

In previous posts I have setup my Novatel USB760 cell modem (Verizon) on a beaglebone black.  I wanted to get it working on the SAMA5D3.  Previously there was a Novatel Debian package that I used but I wanted to get it working without this package.  From what I read it should be plug and play but that wasn't the case for me.

So I start with the Debian Jessie setup in this previous post.  The first modification is that when you build the kernel (or rebuild it) make sure that the following are selected in the configuration menu under Device Driver:

Code: [Select]
Device Drivers  --->
  [*] USB support  --->
    <*>   USB Modem (CDC ACM) support
    <*>   USB Serial Converter support  --->
      [*]   USB Generic Serial Driver
      <*>   USB driver for GSM and CDMA modems
  [*] Network device support  --->
    <*>   PPP (point-to-point protocol) support
    <*>     PPP support for async serial ports


make sure that the following packages are installed in Debian Jessie:

Code: [Select]
apt-get install ppp wvdial eject usb-modeswitch

unzip the existing usb_modeswitch scripts (probably worth noting that the package is usb-modeswitch, but the executable program is usb_modeswitch - this can be confusing):

Code: [Select]
tar -xvf /usr/share/usb_modeswitch/configPack.tar.gz

modify the /etc/wvdial.conf file with the following:

Code: [Select]
[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = Analog Modem
Baud = 9600
New PPPD = yes
Modem = /dev/ttyUSB0
ISDN = 0
Stupid Mode = 1
Phone = #777
Username = anything@vzw3g.com
Password = vzw


You are suppose to be able to run wvdial and your modem should connect however I observed that my modem was still in storage mode.  To check this type lsusb and you will see something like the following in the list:

Code: [Select]
Bus 002 Device 003: ID 1410:5030 Novatel Wireless

To switch modes we use usb_modeswitch:

Code: [Select]
usb_modeswitch -W -i0 -v1410 -p5030 -c /usr/share/usb_modeswitch/1410\:5030

after the command lsusb should now give the following:


Code: [Select]
Bus 002 Device 003: ID 1410:6000 Novatel Wireless

0x6000 means you should be good to go.  You can double check this by making sure /dev has some /dev/USB* options like the following:

Code: [Select]
/dev/ttyUSB0 /dev/ttyUSB1 /dev/ttyUSB2 /dev/ttyUSB3

If you have other USB files these four will move in number, if that happens just change the wvdial.conf Modem line to match the first of the four.

After this just run wvdial and you should connect.

Good luck


2 comments:

  1. Is there a way to make the modem switch from storage modem to modem mode (0x6000) automatically? I've seen this done before but don't know the details.

    ReplyDelete
  2. If my memory serves me we just put the usb_modeswitch command into our systemd startup script. It was something we did for experimentation and is not in our current development so I can't verify.

    ReplyDelete