From: Christian Jaeger on
Hello

I'm trying to get a UMTS/HSPA/HSAP+ usb stick from Bell Canada working
with their network. I'm on Lenny, with a 2.6.33.6 kernel compiled from
kernel.org.

At first I'm "activating" the stick through that usual "mount then
eject the flash volume" handling, and reloading the usbserial kernel
module manually since it doesn't seem to pick up the change of the
product id by itself (wondering why not):

#!/bin/bash

mount /dev/disk/by-id/usb-Novatel_Mass_Storage_012067000784101-0:0
/mnt/usb-Novatel_Mass_Storage_012067000784101-0:0 || exit 1
umount /mnt/usb-Novatel_Mass_Storage_012067000784101-0:0
eject /dev/disk/by-id/usb-Novatel_Mass_Storage_012067000784101-0:0
(
while true; do
sleep 0.5
if lsusb |grep -q 1410:7030; then
exit
fi
done
)
rmmod option
rmmod usbserial
sleep 0.1
modprobe usbserial vendor=0x1410 product=0x7030
modprobe option


BTW loading the "option" module leads to a message 'option: v0.7.2:USB
Driver for GSM modems', but interestingly /dev/ttyUSB0 already exists
with only usbserial loaded and I wonder what the kernel should be
doing apart from handling that tty? The "real" stuff is being done by
pppd in userspace, right? So what does "option" do?


/etc/ppp/peers/bell3g:

# This optionfile was generated by pppconfig 2.3.18.
#
#
hide-password
noauth
noccp
connect "/usr/sbin/chat -v -f /etc/chatscripts/bell3g"
debug
/dev/ttyUSB0
115200
defaultroute
noipdefault
user replace_with_your_login_name
remotename bell3g
ipparam bell3g

usepeerdns

I've added the line with noccp in the above file, following a
suggestion from
https://lists.ubuntu.com/archives/ubuntu-users/2008-January/133699.html,
which seems to have eliminated a "pppd[18364]: Protocol-Reject for
'Compression Control Protocol' (0x80fd) received" error.


/etc/chatscripts/bell3g:

# This chatfile was generated by pppconfig 2.3.18.
# Please do not delete any of the comments. Pppconfig needs them.
#
# ispauth PAP
# abortstring
ABORT BUSY ABORT 'NO CARRIER' ABORT VOICE ABORT 'NO DIALTONE' ABORT
'NO DIAL TONE' ABORT 'NO ANSWER' ABORT DELAYED
# modeminit
'' ATZ
# ispnumber
OK-AT-OK ATDT*99#
# ispconnect
CONNECT \d\c
# prelogin

# ispname
# isppassword
# postlogin

# end of pppconfig stuff


Running

pon bell3g

now leads to the following output in /var/log/syslog:

Jul 9 10:11:14 novo pppd[18881]: pppd 2.4.4 started by root, uid 0
Jul 9 10:11:15 novo chat[18884]: abort on (BUSY)
Jul 9 10:11:15 novo chat[18884]: abort on (NO CARRIER)
Jul 9 10:11:15 novo chat[18884]: abort on (VOICE)
Jul 9 10:11:15 novo chat[18884]: abort on (NO DIALTONE)
Jul 9 10:11:15 novo chat[18884]: abort on (NO DIAL TONE)
Jul 9 10:11:15 novo chat[18884]: abort on (NO ANSWER)
Jul 9 10:11:15 novo chat[18884]: abort on (DELAYED)
Jul 9 10:11:15 novo chat[18884]: send (ATZ^M)
Jul 9 10:11:15 novo chat[18884]: expect (OK)
Jul 9 10:11:15 novo chat[18884]: ATZ^M^M
Jul 9 10:11:15 novo chat[18884]: OK
Jul 9 10:11:15 novo chat[18884]: -- got it
Jul 9 10:11:15 novo chat[18884]: send (ATDT*99#^M)
Jul 9 10:11:15 novo chat[18884]: expect (CONNECT)
Jul 9 10:11:15 novo chat[18884]: ^M
Jul 9 10:11:15 novo chat[18884]: ATDT*99#^M^M
Jul 9 10:11:15 novo chat[18884]: CONNECT
Jul 9 10:11:15 novo chat[18884]: -- got it
Jul 9 10:11:15 novo chat[18884]: send (\d)
Jul 9 10:11:16 novo pppd[18881]: Serial connection established.
Jul 9 10:11:16 novo pppd[18881]: using channel 5
Jul 9 10:11:16 novo pppd[18881]: Using interface ppp1
Jul 9 10:11:16 novo pppd[18881]: Connect: ppp1 <--> /dev/ttyUSB0
Jul 9 10:11:17 novo pppd[18881]: sent [LCP ConfReq id=0x1 <asyncmap
0x0> <magic 0xe741e65a> <pcomp> <accomp>]
Jul 9 10:11:17 novo pppd[18881]: rcvd [LCP ConfReq id=0x7 <asyncmap
0x0> <auth chap MD5> <magic 0x33f003c> <pcomp> <accomp>]
Jul 9 10:11:17 novo pppd[18881]: sent [LCP ConfNak id=0x7 <auth pap>]
Jul 9 10:11:17 novo pppd[18881]: rcvd [LCP ConfAck id=0x1 <asyncmap
0x0> <magic 0xe741e65a> <pcomp> <accomp>]
Jul 9 10:11:17 novo pppd[18881]: rcvd [LCP ConfReq id=0x8 <asyncmap
0x0> <auth pap> <magic 0x33f003c> <pcomp> <accomp>]
Jul 9 10:11:17 novo pppd[18881]: sent [LCP ConfAck id=0x8 <asyncmap
0x0> <auth pap> <magic 0x33f003c> <pcomp> <accomp>]
Jul 9 10:11:17 novo pppd[18881]: sent [LCP EchoReq id=0x0 magic=0xe741e65a]
Jul 9 10:11:17 novo pppd[18881]: sent [PAP AuthReq id=0x1
user="replace_with_your_login_name" password=<hidden>]
Jul 9 10:11:17 novo pppd[18881]: rcvd [LCP DiscReq id=0x9 magic=0x33f003c]
Jul 9 10:11:17 novo pppd[18881]: rcvd [LCP EchoRep id=0x0
magic=0x33f003c e7 41 e6 5a]
Jul 9 10:11:17 novo pppd[18881]: rcvd [PAP AuthAck id=0x1 ""]
Jul 9 10:11:17 novo pppd[18881]: PAP authentication succeeded
Jul 9 10:11:17 novo pppd[18881]: sent [IPCP ConfReq id=0x1 <compress
VJ 0f 01> <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
Jul 9 10:11:18 novo pppd[18881]: rcvd [IPCP ConfNak id=0x1 <ms-dns1
10.11.12.13> <ms-dns3 10.11.12.14> <ms-wins 10.11.12.13> <ms-wins
10.11.12.14>]
Jul 9 10:11:18 novo pppd[18881]: sent [IPCP ConfReq id=0x2 <compress
VJ 0f 01> <addr 0.0.0.0> <ms-dns1 10.11.12.13> <ms-dns3 10.11.12.14>]
Jul 9 10:11:45 novo last message repeated 9 times
Jul 9 10:11:47 novo pppd[18881]: sent [LCP EchoReq id=0x1 magic=0xe741e65a]
Jul 9 10:11:48 novo pppd[18881]: IPCP: timeout sending Config-Requests
Jul 9 10:11:48 novo pppd[18881]: sent [LCP TermReq id=0x2 "No
network protocols running"]
Jul 9 10:11:51 novo pppd[18881]: sent [LCP TermReq id=0x3 "No
network protocols running"]
Jul 9 10:11:54 novo pppd[18881]: Connection terminated.
Jul 9 10:11:55 novo pppd[18881]: Modem hangup
Jul 9 10:11:55 novo pppd[18881]: Exit.


Also wondering about this user stuff, I didn't get any information
from Bell about user/password, maybe there is none (SIM card being
enough authentification)? Would I have to eliminate that somehow?

Thanks for your help
Christian.


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/AANLkTinx7EHlsZnLdgqTtwB8EcuIOJvnBqfojgs0HTIS(a)mail.gmail.com