Setting up 3g modem (Huawei E220)
I'm trying to get a Huawei E220 (http://en.wikipedia.org/wiki/Huawei_E220) up and running on Gentoo, but can't seem to get it right.
Searching the net, I have stumbled upon quite a number of howtos, but none of them seems to take me where I want. Here are two methods which have been fairly successful. I'd be grateful to any guidance helping me to proceed with any of them.
Firstly, there is a device- and distro specific guide at http://www.gentoo-wiki.com/HARDWARE_...SDPA_USB_MODEM using pon, whatever that is (some kind of interface to chat, which talks to the modem device, if I got man page descriptions right).
The problem here is I don't really know what to do after running pon E220 (I get along with the howto as far as that). Should there be an established ppp connection at that point? (And how do those connections even work? I have previously only used net.eth and net.wlan Gentoo Linux init scripts.)
Also, the "connection" (?) goes down after roughly one minute, which I could tell from the output of poff at different time periods after pon being run:
With this method, I've got as far as the following lines being printed, and then nothing until I Ctrl+C. Meanwhile, a ppp0 interface is visible from ifconfig.
1. To work with that modem without hassles, use a kernel with version 2.6.21 or later. The 'options' and 'usbserial' drivers should be loaded; you can check the dmesg logs to see if they have loaded:
dmesg | less
2. 'pon' is a script that makes it a little easier to operate 'pppd'; it's not essential but it's not difficult to use; in the simplest case it only invokes pppd something like this:
pppd call dsl-provider
To configure pppd, try using the 'pppconfig' scripts. Otherwise you need to create a 'peers' file in /etc/ppp/peers - something with a name like 'vodafone' (if you use vodafone as the ISP; the name is only to help you remember what is in the configuration file). The peers file might look something like this:
connect "/usr/sbin/chat -v -f /etc/chatscripts/vodafone"
user ' '
password ' '
Notice that 'connect' will need to read a script /etc/chatscripts/vodafone in this example. That 'connect script' may look something like this:
ABORT 'NO ANSWER'
Look at the line with 'AT+CGDCONT'; you need to configure this to suit your ISP. Most ISPs will use the options 1,"IP", and the main difference is in the Access Provider Name (APN): 'vfinternet.au' in this case.
Informative and educational, however the result of using pon with those configuration files doesn't differ at all from the result using the configuration featured in the guide referred to, i.e. no connection, nothing on ifconfig, and it goes down after a minute or so.
The problem remains the same.
A third method, Gentoo-specific
I just read about a third method, at gentoo-wiki.com (http://gentoo-wiki.com/HOWTO_Setup_a..._Configuration) It suggests that I edit (the Gentoo-specific?) /etc/conf.d/net with options for Gentoo's handling of pppd. I'm now trying to compose a chat script in there, and I think I'm really on to something.
I should turn to the Gentoo forums and see if they can help me out.
You can also look at /var/log/messages to see why pppd is failing.
|All times are GMT -5. The time now is 07:24 PM.|