Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 25th January 2008, 11:30 PM
krajorama Offline
Registered User
 
Join Date: Jan 2007
Posts: 2
Huawei E220 USB usage in Fedora8 - bugs and workarounds

Hi,

I'm using this Huawei E220 usb to connect to my local provider (Pannon in Hungary). At first I could not connect and I got (after turning on pppd debug):
...
Jan 26 00:24:00 krajo pppd[4168]: CHAP authentication succeeded
Jan 26 00:24:00 krajo pppd[4168]: 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>
]
Jan 26 00:24:00 krajo pppd[4168]: Hangup (SIGHUP)
Jan 26 00:24:00 krajo pppd[4168]: Modem hangup
Jan 26 00:24:00 krajo pppd[4168]: Connection terminated.
...

The solution turned out to be to wait 5 seconds after sending the "AT+CPIN=<pin>" command to the modem. The hardware is probably buggy and answers "OK" before actually finishing the operation.

However wvdial used in Fedora doesn't support delays, so I had to write my own expect script:
send "AT+CPIN=<pin>\r"
sleep 5
send "ATZ\r"
expect "OK"
send "ATM0\r"
expect "OK"
send "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0\r"
expect "OK"
send "ATDT*99#\r"
expect {
"CONNECT" exit 0
default exit 1
}

Then change /etc/ppp/peers/Pannon from
connect "/usr/bin/wvdial --remotename Pannon --chat 'Pannon'"
to
connect "/usr/bin/expect -f /root/bin/Pannon.expect"
Where Pannon is my ISP and /root/bin/Pannon.expect is the place for the little script above.


I've also made udev start ppp by itself, so when I plug in the modem, it connects. But that's a different story.

regards, krajo
Reply With Quote
Reply

Tags
bugs, e220, fedora8, huawei, usage, usb, workarounds

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
USB Wireless Modem HUAWEI E220 kraseef Hardware & Laptops 6 16th June 2008 06:01 PM
huawei e220 - vodafone npsilva Servers & Networking 1 3rd February 2008 09:45 AM
Huawei e220 & F8 - anyone got it working? billlagr Hardware & Laptops 3 14th January 2008 03:37 PM
kernel-2.6.22.1-27 and huawei e220 usb modem thisisme Using Fedora 2 26th July 2007 08:18 PM
Huawei E220 svenkatesan Servers & Networking 5 8th July 2007 04:08 AM


Current GMT-time: 04:32 (Sunday, 26-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat