]> pere.pagekite.me Git - homepage.git/blob - blog/draft/2010-07-05-usb-modem.txt
Litt mer tekst.
[homepage.git] / blog / draft / 2010-07-05-usb-modem.txt
1 Title: Setting up a 3G USB modem for Netcom
2 Tags: english, nuug, debian edu, debian
3 Date: 2010-07-03 23:55
4
5 <p>A few days ago, a friend of mine borrowed me a USB mobile modem to
6 see if I got it working. It included a subscription with the Netcom
7 mobile phone company here in Norway, with a
8 <a href="https://netcom.no/mobiltbredband/fribruk.html:">capped fixed
9 prize agreement</a>. NOK 250,- per month and bandwidth redused from
10 up to 2.0 Mbit/s to 200 Kbit/s after downloading more than 5 GB per
11 month.</p>
12
13 <p>The modem was supposed to work with Linux, which was the reason I
14 got it. I am wondering if I should get such modem myself for use when
15 we are in our mountain cabin, and wanted to check it out first.</p>
16
17 <p>I first tried to get it working with Debian Lenny, but as the modem
18 is the kind that need to change mode from storage device to modem
19 device to work (a trick to feed driver into windows boxes without any
20 extra driver disk), and the tools to change the mode (usb-modeswitch)
21 is missing in Debian Lenny, this was not going to work.
22
23 Number: *99#
24 Username: netcom (anything goes?)
25 Password: netcom (anything goes?)
26
27 APN: internet.netcom.no (or internet, the netcom.no part is implicit)
28 Pin: 3005
29
30 https://netcom.no/bedrift/kundeservice/abonnement-og-tjenester/veiledninger/mobiltbredband.html
31
32 http://linux1.no/forum/viewtopic.php?f=217&t=222869
33
34 http://www.linuxforen.de/forums/showthread.php?t=261358
35
36 http://www.jroller.com/bantunes/
37
38
39 root@localhost:~# cat /etc/wvdial.conf
40 [Dialer Defaults]
41 Modem = /dev/ttyUSB3
42 Baud = 460800
43 Init2 = AT+CPIN=<pin>
44 Init1 = ATZ
45 Init3 = ATQ0 V1 E1 S0=0 &C1 &D2
46 Init4 = AT+CGDCONT=1,"IP","internet.netcom.no"
47 Modem Type = Analog Modem
48 ISDN = 0
49 Baud = 460800
50 Dial Attempts = 1
51 Username = internet
52 Password = internet
53 Phone = *99#
54 Stupid Mode = 1
55 root@localhost:~#
56
57
58 root@localhost:~# cat /etc/wvdial.conf
59 [Dialer Defaults]
60 Modem = /dev/ttyUSB3
61 Baud = 460800
62 Modem Type = Analog Modem
63 ISDN = 0
64 Baud = 460800
65 Dial Attempts = 1
66 Username = internet
67 Password = internet
68 Phone = *99#
69 Stupid Mode = 1
70 #Init1 = AT+CPIN=3005
71 Init2 = ATZ
72 Init3 = AT&F &D2 &C1
73 Init4 = ATS7=60 S30=0 S0=0
74 Init5 = AT+CGDCONT=1,"IP","internet.netcom.no"
75 root@localhost:~#
76
77 /usr/share/mobile-broadband-provider-info/serviceproviders.xml
78 <provider>
79 <name>Netcom</name>
80 <gsm>
81 <network-id mcc="242" mnc="02"/>
82 <apn value="internet.netcom.no">
83 <username>netcom</username>
84 <password>netcom</password>
85 <dns>212.169.123.67</dns>
86 <dns>212.45.188.254</dns>
87 </apn>
88 </gsm>
89 </provider>
90