Differences between revisions 2 and 28 (spanning 26 versions)
Revision 2 as of 2007-02-21 08:31:24
Size: 6530
Editor: Mac
Comment:
Revision 28 as of 2010-12-01 03:22:53
Size: 8053
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
## page was renamed from 3G modem
#language en
##
## hints for wiki contributors about 3G modem:
## - write hints/guidelines here.
##
## Remember, it's important (for search engines) that title actually
## contains words relevant to the page content. ("introduction" don't help)
##
||<tablestyle="width: 100%;" style="border: 0px hidden">~-[[DebianWiki/EditorGuide#translation|Translation(s)]]: English - [[it/Modem/3G|Italiano]]-~||<style="text-align: right;border: 0px hidden"> (!) [[/Discussion|Discussion]]||
(!) '''Attachments no longer exist, the guide is to be considered incomplete.'''
----
Line 3: Line 15:
 * Novatel U630  * !BandLuxe C100
 * Huawei/E176
 * [[Huawei/E220]]
 * Huawei/E620
 * Motorola E1000
 * Nokia 6680 (just don't set the speed/service - no 3gonly and 384k configs)
 * [[NokiaN80|Nokia N80]] (with a nice How-To [[UseYourCellPhoneAsModem]])
 * Novatel HSDPA Card
 * Novatel Merlin U630
Line 5: Line 25:
 * Option HSDPA Card
Line 6: Line 27:
 * Motorola E1000
 * Nokia 6680 (just don't set the speed/service - no 3gonly and 384k configs)
 * Option HSDPA Card
 * Novatel HSDPA Card
 * Huawei E620
 * ["Huawei E220"]
  ## If your page gets really long, uncomment this Table of Contents
<<TableOfContents(2)>>
= Installation =
You need to download the new wvdial.conf for the HSDPA stuff to work !!!
Line 13: Line 33:
You need to download the new wvdial.conf for the ["HSDPA"] stuff to work !!! This was originally written for Gentoo Linux which compiles everything from source. As a result of things might be a bit different, but we can work around it. Firstly, we need to get Linux to detect your card, start your PCMCIA services - normally this can be done using (most distros do this for you):
Line 15: Line 35:
This was originally written for ["Gentoo"] Linux which compiles everything from source. As a result of things might be a bit different, but we can work around it. Firstly, we need to get Linux to detect your card, start your PCMCIA services - normally this can be done using (most distros do this for you):

Code:
/etc/init.d/pcmcia start Before you insert your card, open a console/switch to an open console and as root run the following
Before you insert your card, open a console/switch to an open console and as root run the following :
{{{
invoke-rc.d pcmciautils start
}}}
Line 21: Line 41:
Code:
tail -f /var/log/messages
This will allow you to "see" what Linux is doing
This will allow you to "see" what Linux is doing :
{{{
tail -f /var/log/messages
}}}
Line 24: Line 46:
Right, now insert your card and you should see some stuff happening. I have included log traces of what the two cards "look" like under /var/log/messages in the attachment section. Right, now insert your card and you should see some stuff happening. I have included log traces of what the two cards "look" like under {{{/var/log/messages}}} in the attachment section.
Line 26: Line 48:
If you see only the option_insert_nousb.txt messages using an option card run the following command: If you see only the {{attachment:option_insert_nousb.txt}} messages using an option card run the following command:
{{{
modprobe usbserial vendor=0x0af0 product=0x5000
}}}
Line 28: Line 53:
If you had to run the above command, you will need to save the [[attachment:vmc_g]] file attached into {{{/etc/modules.d}}}.
Line 29: Line 55:
Code:
modprobe usbserial vendor=0x0af0 product=0x5000 If you had to run the above command, you will need to save the vmc_g file attached into /etc/modules.d
Now we need to find out where your card is - you will see in the messages where the card is - {{{/dev/ttyS*}}} for Novatel or {{{/dev/ttyUSB*}}} for Option:
{{{
find /dev/ | grep ttyS
}}}
Should show {{{/dev/ttyS0}}} or {{{/dev/ttyS1}}} for a Novatel Card.
Line 32: Line 61:
Now we need to find out where your card is - you will see in the messages where the card is - /dev/ttyS? for novatel or /dev/ttyUSB? for option {{{
find /dev/ | grep ttyUSB
}}}
Should show {{{/dev/ttyUSB0}}} and USB1 and USB2 for an Option Card. (or {{{/dev/tts/ttyUSB0-2}}} for udev)
Line 34: Line 66:
Once we found that, we need to change {{{/etc/wvdial.conf}}} to match your settings, attached is my working [[attachment:wvdial.conf]]. Now we can start dialing up
Line 35: Line 68:
Code:
find /dev/ | grep ttySShould show /dev/ttyS0 or /dev/ttyS1 for a Novatel Card.
== For Novatel ==
{{{
wvdial novatel internet 3gonly 384k
}}}
Line 38: Line 73:
== For Option ==
{{{
wvdial option internet 3gonly 384k
}}}
Line 39: Line 78:
Code:
find /dev/ | grep ttyUSBShould show /dev/ttyUSB0 and USB1 and USB2 for an Option Card. (or /dev/tts/ttyUSB0-2 for udev)
If you need to send your PIN, add "pin" infront of all the commands, e.g.
{{{
wvdial pin novatel internet 3gonly 384k
}}}
Line 42: Line 83:
Once we found that, we need to change /etc/wvdial.conf to match your settings, attached is my working wvdial.conf. Now we can start dialing up Once your connection is up - surf away Now you can setup things like KPPP and Gnome's Modem Lights to do your dialing for you.
Line 44: Line 85:
For Novatel:


Code:
["wvdial"] novatel internet 3gonly 384kFor Option:


Code:
wvdial option internet 3gonly 384kIf you need to send your PIN, add "pin" infront of all the commands, e.g.


Code:
wvdial pin novatel internet 3gonly 384kOnce your connection is up - surf away Now you can setup things like KPPP and Gnome's Modem Lights to do your dialing for you.

Extra Steps for the HSDPA card:

Download the kernel module from the link below. Extract it to a directory somewhere safe. If you are *still* running the 2.4 series of kernels, you need to change the Makefile to reflect this.
== Extra Steps for the HSDPA card ==
Download the kernel module from the link below. Extract it to a directory somewhere safe.
Line 63: Line 89:
{{{
make clean && make
}}}
Line 64: Line 93:
Once this is done, run the following command to insert the module into the kernel
{{{
insmod nozomi.ko
}}}
Line 65: Line 98:
Code:
make clean && make
Once this is done, run the following command to insert the module into the kernel
Once you have done that, use the following command to setup the connection:
{{{
wvdia
l hsdpa
}}}
Line 68: Line 103:
== Extra steps for the Novatel U740 Card ==
Until I get time to update the files etc. our Novatel Linux Users out there can just type this command before using the normal dialing command:
{{{
modprobe usbserial vendor=0x1410 product=0x1400
}}}
OR
{{{
modprobe usbserial vendor=0x1410 product=0x1410
}}}
Line 69: Line 113:
Code:
insmod nozomi.ko (2.6 Kernel)
insmod nozomi.o (2.4 Kernel)Once you have done that, use the following command to setup the connection:
Using [[lsusb]] will show you the Vendor and Product ID's or cat {{{/proc/bus/usb/devices}}} will do the same.I will still add them into the FAQ but at least this should help for now
Line 73: Line 115:
This will add the USB's like the 3G Option did - am I seeing a swap here ? - so just dial {{{/dev/ttyUSB0}}} or so - check the logs
Line 74: Line 117:
Code:
wvdial hsdpa Extra steps for the Novatel U740 Card

Until I get time to update the files etc. our Novatel Linux Users out there can just type this command before using the normal dialing command:


Code:
["modprobe"] ["usbserial"] vendor=0x1410 product=0x1400OR


Code:
modprobe usbserial vendor=0x1410 product=0x1410 Using ["lsusb"] will show you the Vendor and Product ID's or cat /proc/bus/usb/devices will do the same.I will still add them into the FAQ but atleast this should help for now

This will add the USB's like the 3G Option did - am I seeing a swap here ? - so just dial /dev/ttyUSB0 or so - check the logs

Extra Steps for the Huawei Cards:

None really - just make sure usbserial is loaded and the card will come up on /dev/ttyUSB0 - check the logs again to confirm
== Extra Steps for the Huawei Cards ==
None really - just make sure usbserial is loaded and the card will come up on {{{/dev/ttyUSB0}}} - check the logs again to confirm
Line 94: Line 121:
{{{
rmmod usbserial
modprobe usbserial vendor=0x12d1 product=0x1001
}}}
I am still trying to work on the USB only card, so at the moment, I don't know if it will work under Linux.
Line 95: Line 127:

Code:
rmmod usbserial && modprobe usbserial vendor=0x12d1 product=0x1001 I am still trying to work on the USB only card, so at the moment, I don't know if it will work under Linux.

Huawei E220:
== Huawei E220 ==
Line 104: Line 131:
{{{
rmmod usb-storage
modprobe usbserial vendor=0x12d1 product=0x1003
}}}
Line 105: Line 136:
Code:
rmmod usb-storage
modprobe usbserial vendor=0x12d1 product=0x1003
(Some have reported an ID of 0x1001 - use lsusb to confirm) After that, you will notice only one USB serial coming up, then, remove the device and re-attach it, you shouldn't need to re-insert usbserial.
(Some have reported an ID of 0x1001 - use lsusb to confirm) After that, you will notice only one USB serial coming up, then, remove the device and re-attach it, you shouldn't need to re-insert usbserial.
Line 109: Line 138:
Notes:
== Notes ==
Line 113: Line 141:
Attachments: ##==== Attachments ====
##<<AttachList>>
Line 115: Line 144:
wvdial.conf
novatel_insert.txt
option_insert_nousb.txt
option_usbserial.txt
vmc_3g
Option HSDPA Driver
= FAQ =
Line 122: Line 146:
== FAQ ==

Q)
How do I enable "Internet Connection Sharing"

A) Since the 2.6 kernel is main stream etc. I will only cover IPTables and Kernel 2.6. I am also assuming that ppp0 is your dialup and eth0 is your lan

Firstly - we need to add some rules to iptables - run the following commands:

["iptables"] -F (This will CLEAR ALL RULES !!!)
 How do I enable "Internet Connection Sharing" ? :: A) Since the 2.6 kernel is main stream etc. I will only cover IPTables and Kernel 2.6. I am also assuming that ppp0 is your dialup and eth0 is your lan. <<BR>> Firstly - we need to add some rules to iptables - run the following commands:
{{{
#This will CLEAR ALL RULES !!!
iptables -F
#Enable NAT (through the ppp0 interface
)
Line 133: Line 153:
then we need to enable routing: #then we need to enable routing:
Line 135: Line 155:
}}}
 :: That should do it - from here you can add rules to block incomming connections etc.
Line 136: Line 158:
That should do it - from here you can add rules to block incomming connections etc.  My card is broken/replies "ERROR" to all the commands :: A) You didn't send your PIN to the card - either add the "pin" command or disable the PIN on the SIM
Line 138: Line 160:
Q) My card is broken/replies "ERROR" to all the commands  My Novatel card is very slow - +-800 bytes per second :: A) Try running "setserial -a /dev/ttyS1 low_latency spd_warp" - replace {{{/dev/ttyS1}}} with your port <<BR>> Once you have your setserial command, insert it into {{{/etc/ppp/ip-up.local}}} - this will cause the command to be ran everytime a connection is made.
Line 140: Line 162:
A) You didn't send your PIN to the card - either add the "pin" command or disable the PIN on the SIM  What does all the wvdial sections do/mean ? ::
 * Defaults - What to do if nothing is selected (Always included)
 * pin - send your pin to the card
 * novatel - select the novatel card
 * option - select the option card
 * hsdpa - Option HSDPA card
 * e1000 - select the E1000 via USB
 * onboard - select the onboard modem of my notebook
 * internet - select the internet APN
 * internetvpn - select the internetvpn APN
 * myapn - select your apn
 * 384k,144k,64k - select the speed of your 3G connection
 * 2gonly - select GPRS only
 * 3gonly - select 3G only
Line 142: Line 177:
Q) My Novatel card is very slow - +-800 bytes per second  How do I see the usage under Linux ? :: ToDo Linux Usage
Line 144: Line 179:
A) Try running "setserial -a /dev/ttyS1 low_latency spd_warp" - replace /dev/ttyS1 with your port
Once you have your setserial command, insert it into /etc/ppp/ip-up.local - this will cause the command to be ran everytime a connection is made.

Q) What does all the wvdial sections do/mean?

A)

Defaults - What to do if nothing is selected (Always included)
pin - send your pin to the card
novatel - select the novatel card
option - select the option card
hsdpa - Option HSDPA card
e1000 - select the E1000 via USB
onboard - select the onboard modem of my notebook
internet - select the internet APN
internetvpn - select the internetvpn APN
myapn - select your apn
384k,144k,64k - select the speed of your 3G connection
2gonly - select GPRS only
3gonly - select 3G only

Q) How do I see the usage under Linux

A) Linux Usage

TODO:
= TODO =
Line 175: Line 184:

= Resources =
 * [[Modem/3G/Cards]]
 * [[Modem/3G/FAQ]]
 * [[Modem/3G/Vodafone]]

= External Links =
## * http://www.pharscape.org/index.php?option=content&task=view&id=29 - GPRS !HowTo
 * http://www.peck.org.uk/GlobeTrotterGPRShowto.html - GPRS !HowTo
 * [[WikiPedia:Vodafone_Mobile_Connect_USB_Modem]]
 * http://markus.wernig.net/en/it/usb-serial-handy-ppp.phtml - How to connect a cell phone via USB to a Linux laptop and dial-up an internet connection.
## * http://bitubique.com/content/view/26/42 - Getting Nokia 6630 / Nokia 6680 / Nokia N70 to work as 3G / EDGE / GPRS modem in Linux
----
[[Hardware]] | [[Modem]]

Translation(s): English - Italiano

(!) ?Discussion

(!) Attachments no longer exist, the guide is to be considered incomplete.


The following cards/phones works 100% with next scripts/configs:

  • BandLuxe C100

  • Huawei/E176
  • Huawei/E220

  • Huawei/E620
  • Motorola E1000
  • Nokia 6680 (just don't set the speed/service - no 3gonly and 384k configs)
  • Nokia N80 (with a nice How-To UseYourCellPhoneAsModem)

  • Novatel HSDPA Card
  • Novatel Merlin U630
  • Option Fusion
  • Option HSDPA Card
  • Option Quad

Installation

You need to download the new wvdial.conf for the HSDPA stuff to work !!!

This was originally written for Gentoo Linux which compiles everything from source. As a result of things might be a bit different, but we can work around it. Firstly, we need to get Linux to detect your card, start your PCMCIA services - normally this can be done using (most distros do this for you):

Before you insert your card, open a console/switch to an open console and as root run the following :

invoke-rc.d pcmciautils start

This will allow you to "see" what Linux is doing :

tail -f /var/log/messages 

Right, now insert your card and you should see some stuff happening. I have included log traces of what the two cards "look" like under /var/log/messages in the attachment section.

If you see only the option_insert_nousb.txt messages using an option card run the following command:

modprobe usbserial vendor=0x0af0 product=0x5000

If you had to run the above command, you will need to save the vmc_g file attached into /etc/modules.d.

Now we need to find out where your card is - you will see in the messages where the card is - /dev/ttyS* for Novatel or /dev/ttyUSB* for Option:

find /dev/ | grep ttyS

Should show /dev/ttyS0 or /dev/ttyS1 for a Novatel Card.

find /dev/ | grep ttyUSB

Should show /dev/ttyUSB0 and USB1 and USB2 for an Option Card. (or /dev/tts/ttyUSB0-2 for udev)

Once we found that, we need to change /etc/wvdial.conf to match your settings, attached is my working wvdial.conf. Now we can start dialing up

For Novatel

wvdial novatel internet 3gonly 384k

For Option

wvdial option internet 3gonly 384k

If you need to send your PIN, add "pin" infront of all the commands, e.g.

wvdial pin novatel internet 3gonly 384k

Once your connection is up - surf away Now you can setup things like KPPP and Gnome's Modem Lights to do your dialing for you.

Extra Steps for the HSDPA card

Download the kernel module from the link below. Extract it to a directory somewhere safe.

Compile the driver using the following commands:

make clean && make

Once this is done, run the following command to insert the module into the kernel

insmod nozomi.ko

Once you have done that, use the following command to setup the connection:

wvdial hsdpa

Extra steps for the Novatel U740 Card

Until I get time to update the files etc. our Novatel Linux Users out there can just type this command before using the normal dialing command:

modprobe usbserial vendor=0x1410 product=0x1400

OR

modprobe usbserial vendor=0x1410 product=0x1410

Using lsusb will show you the Vendor and Product ID's or cat /proc/bus/usb/devices will do the same.I will still add them into the FAQ but at least this should help for now

This will add the USB's like the 3G Option did - am I seeing a swap here ? - so just dial /dev/ttyUSB0 or so - check the logs

Extra Steps for the Huawei Cards

None really - just make sure usbserial is loaded and the card will come up on /dev/ttyUSB0 - check the logs again to confirm

If the card doesn't come up, unload usbserial and reload with the following command:

rmmod usbserial
modprobe usbserial vendor=0x12d1 product=0x1001

I am still trying to work on the USB only card, so at the moment, I don't know if it will work under Linux.

Huawei E220

I have found that this modem will only work with the short cable supplied...not the long one with two plugs...*shrug*

Same as the E620, except use the following modprobe command:

rmmod usb-storage
modprobe usbserial vendor=0x12d1 product=0x1003

(Some have reported an ID of 0x1001 - use lsusb to confirm) After that, you will notice only one USB serial coming up, then, remove the device and re-attach it, you shouldn't need to re-insert usbserial.

Notes

I have only seen 3G speeds on this device, but I think it is because of my RF conditions and location. More on this to follow...

FAQ

How do I enable "Internet Connection Sharing" ?

A) Since the 2.6 kernel is main stream etc. I will only cover IPTables and Kernel 2.6. I am also assuming that ppp0 is your dialup and eth0 is your lan.
Firstly - we need to add some rules to iptables - run the following commands:

#This will CLEAR ALL RULES !!!
iptables -F 
#Enable NAT (through the ppp0 interface)
iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE

#then we need to enable routing:
echo "1" > /proc/sys/net/ipv4/ip_forward
That should do it - from here you can add rules to block incomming connections etc.
My card is broken/replies "ERROR" to all the commands
A) You didn't send your PIN to the card - either add the "pin" command or disable the PIN on the SIM
My Novatel card is very slow - +-800 bytes per second

A) Try running "setserial -a /dev/ttyS1 low_latency spd_warp" - replace /dev/ttyS1 with your port
Once you have your setserial command, insert it into /etc/ppp/ip-up.local - this will cause the command to be ran everytime a connection is made.

What does all the wvdial sections do/mean ?
  • Defaults - What to do if nothing is selected (Always included)
  • pin - send your pin to the card
  • novatel - select the novatel card
  • option - select the option card
  • hsdpa - Option HSDPA card
  • e1000 - select the E1000 via USB
  • onboard - select the onboard modem of my notebook
  • internet - select the internet APN
  • internetvpn - select the internetvpn APN
  • myapn - select your apn
  • 384k,144k,64k - select the speed of your 3G connection
  • 2gonly - select GPRS only
  • 3gonly - select 3G only
  • How do I see the usage under Linux ?

    ToDo Linux Usage

    TODO

    • Make the Option card call "modprobe usbserial" by itself
    • Make the Novatel card register the second port under Linux
    • Do some research into the signal levels reported via +CSQ
    • Get the PIN to work with wvdial and Novatel

    Resources

    External Links


    Hardware | Modem