![]() |
Huawei E160 modem giving me grief on Slackware (What am I doing wrong?)
I am running Slackware 12.2 with the 2.6.27.7 kernel. I'm not having much luck connecting to the Internet with my Huawei E160 3G modem. The advice I've seen so far suggests things like using umtsmon and usb_modeswitch, but these have not solved my problem!
My wvdial.conf is as follows: Quote:
Quote:
When I attempt to connect using umtsmon I get: Quote:
Quote:
Quote:
I've spent the last couple of days looking for a solution. Any help would be appreciated! |
You might try kppp. It worked for me with a Huawei E220 modem.
I have made some screenshots (in swedish but perhaps useful..): http://linuxconfig.dyndns.org/lazy/L...tworking_(DUN) |
That chatscript looks daunting! But thanks for the suggestions. I shall give it a try.
|
Quote:
Sorry for the confusing layout. |
Hi uppman! Using your KPPP setup I finally managed to get a connection. But unfortunately, this doesn't mean that everything's hunky dory! For some reason, I keep being disconnected, and it's quite frustrating. Is there anything I can do about this, e.g., some way to optimize the scripts, or is this more likely to be a mobile carrier problem?
Also, how do you invoke pppd? Do you say "sudo pppd call <name of provider>," or do you say something else? Also, should I create a file in /etc/ppp/peers such as "/etc/ppp/peers/safaricom" in order to use pppd? Finally, here's my /etc/ppp/ip_up script based on the one you've provided. Does it look right? Quote:
|
I just noticed that Linuxquestions formatted the the /etc/ppp/ip_up script above in such a way that some of the lines that should be commented out have not been commented out.
|
A while ago I tried this, too, but unfortunately I did not keep any notes about what exactly was successful, in the end. But the good news is: At some point I got it working.
What I do remember is, that it was not necessary to write any script manually. The trick was, that first I had to get a UMTS connection, using KPPP, as far as I recall, and then to use usbmon or some other program (I think I used wicd, also), to initiate a dialogue asking for my user PIN. Only after entering the PIN I was able to surf using the UMTS connection. I also remember, that I succeeded only after cutting all other network connections, because I always had internet, but was unable to tell if it was a DSL or UMTS connection. So switch off all wireless or cable connection, until you have no internet connection anymore, and then try a combination of KPPP and umtsmon. No need for scripting manually! gargamel |
Not the same modem, but still a Huawei. Modify for your E160.
Did submit this as a tutorial about 4 weeks ago, but not published yet. # How to get the Huawei 1550 3G (Three UK) mobile # broadband dongle modem working in Slackware 13. # This device is not currently supported directly # yet by the kernel and when plugged in looks like # an external drive. # To get it to work as a modem the follwing steps # will get it working. # Thanks to all the sources I pulled this together # from # Prerequisites # Need to belong to sudoers ## Step 1. # Download usb_modeswitch from # http://www.draisberghof.de/usb_modeswitch # This is a Debian package, so a couple of extra # steps are needed. # Extract to a directory of your choice, the cd to # that directory. # Either trash or delete the current binary file, # the run the usual make and make install # (as root) to install the resulting binary to # /usr/sbin/usb_modeswitch, and the config file to # /etc/usb_modeswitch.conf # Step 2 # Plug in the 3g Mobile dongle, open a konsole or # switch to cli mode and run (as root) dmesg and # make a note of the dongle device id. Should see # something similar to this usb 1-6: New USB device found, idVendor=12d1, idProduct=1446 usb 1-6: New USB device strings: Mfr=2, Product=1, SerialNumber=0 usb 1-6: Product: HUAWEI Mobile usb 1-6: Manufacturer: HUAWEI Technology usb-storage: device found at 7 usb-storage: waiting for device to settle before scanning usb-storage: device found at 7 usb-storage: waiting for device to settle before scanning # In this example, I am looking for the idVendor # and idProduct strings. 12d1 and 1446 # respectively # Unplug the dongle. (Be sure to eject safely if # notified it has been detected as a usb storage # device) ## Step 3 # Now edit and save the config file # /etc/usb_modeswitch.conf using your favourite # text editor and add the following line in the # Huawei section: (well commented so quite easy) ######################################################## # Huawei E1550 DefaultVendor= 0x12d1 DefaultProduct= 0x1446 MessageEndPoint= "0x01" MessageContent="55534243123456780000000000000011060000000000000000000000000000" ;DetachStorageOnly=1 ;HuaweiMode=1 ######################################################## # Replace the DefaultVendor and DefaultProduct ids # with whatever you discovered in step 2 ## Step 4 # Now create a new udev rule for the dongle to # have it automagically switch to modem mode. # I called mine 45-3G.rules, but you can name # yours whatever you like, and place in the # /etc/udev/rules.d directory. It should look like # this: ACTION=="add" SUBSYSTEM=="usb", SYSFS{idProduct}=="1446", SYSFS{idVendor}=="12d1", RUN+="/usr/sbin/usb_modeswitch" # Again, use your own idProduct and idVendor codes # Now either reboot, or issue (as root) /etc/rc.d/rc.udev reload # to see your new rule. ## Step 5 # Plug the dongle back in and wait around 15 # seconds then issue the dmesg command again and # you should see this or similar: usb 1-6: new high speed USB device using ehci_hcd and address 9 usb 1-6: configuration #1 chosen from 1 choice scsi27 : SCSI emulation for USB Mass Storage devices scsi28 : SCSI emulation for USB Mass Storage devices usb 1-6: New USB device found, idVendor=12d1, idProduct=1446 usb 1-6: New USB device strings: Mfr=2, Product=1, SerialNumber=0 usb 1-6: Product: HUAWEI Mobile usb 1-6: Manufacturer: HUAWEI Technology usb-storage: device found at 9 usb-storage: waiting for device to settle before scanning usb-storage: device found at 9 usb-storage: waiting for device to settle before scanning usb 1-6: usbfs: process 24002 (usb_modeswitch) did not claim interface 0 before use usb 1-6: USB disconnect, address 9 usb_storage: module is already loaded usb_storage: module is already loaded usb 1-6: new high speed USB device using ehci_hcd and address 10 usb 1-6: configuration #1 chosen from 1 choice usb-storage: probe of 1-6:1.0 failed with error -5 option 1-6:1.0: GSM modem (1-port) converter detected usb 1-6: GSM modem (1-port) converter now attached to ttyUSB0 usb-storage: probe of 1-6:1.1 failed with error -5 option 1-6:1.1: GSM modem (1-port) converter detected usb 1-6: GSM modem (1-port) converter now attached to ttyUSB1 usb-storage: probe of 1-6:1.2 failed with error -5 option 1-6:1.2: GSM modem (1-port) converter detected usb 1-6: GSM modem (1-port) converter now attached to ttyUSB2 scsi32 : SCSI emulation for USB Mass Storage devices usb-storage: device found at 10 usb-storage: waiting for device to settle before scanning scsi33 : SCSI emulation for USB Mass Storage devices usb 1-6: New USB device found, idVendor=12d1, idProduct=1001 usb 1-6: New USB device strings: Mfr=2, Product=1, SerialNumber=0 usb 1-6: Product: HUAWEI Mobile usb 1-6: Manufacturer: HUAWEI Technology usb-storage: device found at 10 usb-storage: waiting for device to settle before scanning scsi 32:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2 sr0: scsi-1 drive sr 32:0:0:0: Attached scsi CD-ROM sr0 sr 32:0:0:0: Attached scsi generic sg0 type 5 usb-storage: device scan complete scsi 33:0:0:0: Direct-Access HUAWEI MMC Storage 2.31 PQ: 0 ANSI: 2 sd 33:0:0:0: [sda] Attached SCSI removable disk sd 33:0:0:0: Attached scsi generic sg1 type 0 usb-storage: device scan complete # Notice that the idPrduct string has now changed # to 1001. # This means that the process has been successful, # and as can be seen, the dongle is now identified # as a GSM modem. ## Step 6 # Use your favourite dial up tool to connect to # the 3G (Three UK) network. The parameters are # Device node is /dev/ttyUSB0 # Number to dial: *99# # Login ID: Three # Passowrd: Three ## Step 7 (optional) # Download and install UMTSmon form # http://umtsmon.sourceforge.net/ for an easy GUI # interface. END |
Quote:
I don't have and never have had a wvdial.conf file. I started out using pppd but nowadays I only use kppp. You need to create the plusgsm chatscript with the operator info for pppd to work. The ip_up script ends after exit 0... Sorry about the unclear layout, I have tried to tidy it up a bit. You might find an answer to the disconnect problem in /etc/ppp/options. |
Huawei E160 - Connecting is Slackware 13 (solution)
To get your USB dongle (Huawei E160 or Huawei E220) to work: (Slackware Linux 13.0 - kernel 2.6.38.6 but may work on other linux versions)
Step 1: Ensure PPP is compiled into your kernel Step 2: Ensure that you kernel does not spew any errors or does not panic (see kernel compilation howto in /usr/doc/Linux-HOWTOs) Step 3: Ensure that your kernel supports USB storage Step 3a: Ensure that kernel supports USB-Serial (generic usb_serial driver should work) Step 4: obtain software called comgt (http://sourceforge.net/projects/comgt/) Step 5: Boot your computer (LOL!) Step 6: At command prompt login (duh!) Step 7: su as root user (login as regular user, issue command "su" and put root password - risky to login directly as root) Step 8: Uncompress comgt.032.tgz (tar -xvzf comgt.032.tgz) Step 9:build the comgt and install comgt Step 10:insert Huawei modem Step 11: Huawei modem shall be detected as CD-ROM drive (/dev/sr1 or /dev/sdb) instead of a 3g modem (check using "dmesg") Step 12: To switch modes of modem from CD-ROM to a modem, you need to eject the Huawei CD-ROM device using the command (eject /dev/sr1 or eject /dev/sdb or eject /dev/<whatever is in you dmesg>) Step 13: To switch modes of huawei modem, use comgt "comgt -x -d /dev/-usb device-" where -usb device- is ttyUSB0 or ttyUSB1 -- e.g. "comgt -x -d /dev/ttyUSB0" Some message should display giving you the network provide name and the signal strength! Step 14: point /dev/modem to your Huawei modem at e.g. /dev/ttyUSB0. If /dev/modem does not exist, then create it LOL! "ln -s /dev/ttyUSB0 /dev/modem" Step 15: Exit as root user and login as regular user! (if using "su" simply type exit) Step 16: Start your dialer program - wvdial or kppp Step 17: konfigure your dialer and dial! :) Step 18: A new device "ppp0" will be listed in list of networking hardware (check this using "ifconfig") Step 19: make sure your put your DNS server addresses in "/etc/resolv.conf" in format "nameserver -DNS server-" where -DNS server- is ip address of DNS server of your ISP Step 20: enjoy surfing! -END- |
My way is detailed here. http://www.linuxquestions.org/questi...4/#post4213848
Step 1. Create a chat script. Step 2. Make /etc/ppp/ip-pre-up a symlink to a suitable firewall script. Step 3. Invoke pppd. (Put the command in a script for later convenience). Step 4. Copy /etc/ppp/resolv.conf to /etc/resolv.conf. Step 5. Enjoy surfing! |
Thanks tix and allende. I will follow up on your suggestions!
|
| All times are GMT -5. The time now is 06:49 PM. |