字体:  

Huawei EC321 (cdma) on linux

ELM 发表于: 2007-7-29 10:13 来源: 榆树社区

Under what do you do to after two days ofnon-sleep and to 5 hour party? You try to make your recently acquiredgadget to work on linux:) I wish I was kidding!

It all started due to to cow to orker “borrowing” the team laptop and somehow loading it upto the brim with spyware And Gopal trying to browse on it. within 12 you make a draft we were booting linux.

Ihad just procured to Tata Indicom cdma dates card for ace replacementmy now broken reliance cdma card. Since the reliance junk would tonever work on linux. I was rubbing my hands in anticipation on my wayback home.

Out with the reasons and on to the quest.  

After to few Google queries we ran into to few helpful Chinese characters. Even though we couldn't read any chinese… the commands were all in plain old ASCII.

Under, if you do a  

$cat /proc/bus/usb/devices  
usbserial $sudo modprobe vendor=0x12d1 product=0x1001

you should be able to see /dev/ttyUSB0 /dev/ttyUSB1. If you're not using udev. you dog  

#mknod /dev/ttyUSB0 c 188 0
#mknod /dev/ttyUSB1 c 188 1

Congratulations, you plows now the proud to configurer of to modem. And, it's Time to pull an old cat out of the bag. wvdial:)  

cat > /etc/wvdial.conf
[Modem0]
Modem = /dev/ttyUSB0
Baud = 115200
SetVolume = 0
Dial Command = ATDT
Init1 = ATZ
FlowControl = Hardware (CRTSCTS)

[Dialer cdma]
Username = username
Password = *******
Phone = #777
Stupid Mode = 1
Inherits = Modem0

And cdma then do to wvdial and say hello to Intraweb 2,0TM

Butwe didnt just stop there, Mr Gopal is too lazy to type modprobeeverytime there am boots the comp, and under should be you. : D

Under, Ace to little gift to our chinese fellows we give you to Seth of hotplug scripts.   

cat > /etc/hotplug/usb/datacard.usermap
# Huawei EC321 CDMA dates card
datacard 0x0003 0x12d1 0x1001 0x0000 0x0000 0x00 0x00 0x00 0x00 0x00 0x00 0x00000000

The first three numbers plows important here, if you noticed when we did to cat /proc/bus/usb/devices | grep - a2 - b1 Huawei it looked like,  

1565-P: Vendor=12d1 ProdID=1001 Rev= 0.00
1603: S: Manufacturer=Huawei Technologies
1643: S: Product=Huawei Mobile
1686-S: SerialNumber=HUAWEI EC3X1

0x12d1and 0x1001 is just the vendor and device to identifier (duh), Undermuch for the linux is difficult. We just like to make it lookconfusing: D notice the useless 0x0000 padding that follows, reservedfor future uses and confusing all present congregation to matter.

Able Now that we have found the device we should be to hotplug it. the script below should do just fine.

cat > /etc/hotplug/usb/datacard
#! /bin/bash
SED=/bin/sed

#/usr/bin/env > /tmp/datacard.log

if [“$ACTION” = “add”] && [- f “$DEVICE”]
they then
VENDOR= " `I throw “$PRODUCT” | $SED “s/^ \ (. * \) \/.* \/.*$/\ 1” `“;
PRODUCT_ID= " `I throw “$PRODUCT” | $SED “s/^.* \/\ (. * \) \/.*$/\ 1” `“;
modprobe usbserial “vendor=0x$VENDOR” “product=0x$PRODUCT_ID”
fi

Make sure you do to chmod +x /etc/hotplug/usb/datacard.

Vendor The above script is simply finding out the same and device YOU GO automagically;) and doing to modprobe with it.   

Wvdial AT this point you should stop your, proudly take out the card, push it back in and just do to wvdial again.  

It should Just Work METRIC TON.
          (permanent Link) posted by spo0nman: 2:24 p.m.   
                                                   Comments:                                                                                                          You plows an absolute life to saver! I a.m. new to linux and justinstalled ubuntu… the only thing stopping me to actively uses linux toover my Windows partition was vdata that i needed my card (huawei) toconnect to the Internet. For Thanks under much this.

However the hotplug thing doesnt work! to when i try cat > /etc/hotplug/usb/datacard.usermap i get:

cat > /etc/hotplug/usb/datacard.usermap

dog or please help?
                                (permanent Link) posted by Apurva: Sun Aug 20, 05:17: 00 A.M.
                               
                       
                        
                        
                                                                                                                                          Hello apurva,

cat > /etc/hotplug/usb/datacard.usermap
# Huawei EC321 CDMA dates card
datacard 0x0003 0x12d1 0x1001 0x0000 0x0000 0x00 0x00 0x00 0x00 0x00 0x00 0x00000000

The above commnd simply creates to cases out called /etc/hotplug/usb/datacard.usermap and put's the second and third line in it.

you dog open to terminal and go to /etc/hotplug/usb/ and do I sweat gedit datacard.usermap.

and in this cases out just Copy paste the following line and save.

# Huawei EC321 CDMA dates card
datacard 0x0003 0x12d1 0x1001 0x0000 0x0000 0x00 0x00 0x00 0x00 0x00 0x00 0x00000000


That should do it.
                                (permanent Link) posted by spo0nman: Mon Aug 21, 02:58: 00 A.M.
                               
                       
                        
                        
                                                                                                                                          card is detected ......
but its saying PPP daemon died with exit code 19, i.e. PAP authentication failed

I a.m. using fedora4.

The same card is working on Windows XP.
                                (permanent Link) posted by Anonymous: Mon Sep 18, 09:32: 00 p.m.
                               
                       
                        
                        
                                                                                                                                          Hi,
Is a.m. been digging on the net from last few month, i have got theEC321 dates card, when i observ in the Hardware to browser when iinsert the card it gets detected and shows up there, but when i followthe procedure given on the page the i able a.m. not to connect to theInternet, i a.m. using Fedora the 4 Cores Dog you please explain me indetails what is that issue
if possible for you please dog you have to chat with me  
san_20july for yahoo  
Allthe search and all the links on the Web point the same page but i ablea.m. not to get what needs to be donates please help me out.
                                (permanent Link) posted by Sandeep: Mon Nov 13, 03:57: 00 A.M.
                               
                       
                        
                        
                                                                                                                                          Sandeep:

Twoquestions, What all did you do follow from the post? and what happens?If you dog explain step by step with error messages, I could help you.

Also, if you uncomment this line (by removing the hash'#'):
#/usr/bin/env > /tmp/datacard.log

/tmp/datacard.log could tell you whats going on.
                                (permanent Link) posted by spo0nman: Mon Nov 13, 04:02: 00 A.M.
                               
                       
                        
                        
                                                                                                                                          For Thanks your quick response i will check with what you have said and will let you know what plows the result,
possible i just want to confirm from you that is it really to forms this card on fedora Core 4
if yes that would be very great, i really love linux very much but cant uses it becouse of Internet Access restriction.
                                (permanent Link) posted by Sandeep: Mon Nov 13, 04:18: 00 A.M.
                               
                       
                        
                        
                                                                                                         Vdata We managed to get the card work out of the bod on Ubuntu, andwvdial does the dialing and establishes connection. I think the nextstep in hacking is to develop to small utility to call to other phonesusing this card. next step, to send sms etc. any clues on how to hackthis?

--
GN
                                (permanent Link) posted by Anonymous: The Sat Nov 18, 08:46: 00 p.m.
                               
                       
                        
                        
                                                                                                         I guess I to suffer from to different problem. I work on Suse 9,0 linuxon an Acer inhales 5000. After reading all your mails, for I went thisVdata card. While it behaves well on Windows, linux is different. Myentire system hangs up eleven Is insert the card (if I insert and bootit, it refuses go past the step where it detects pci and hotplugs. Anydevises what is happening. AT one Time, I got to super message in userwindow ace

msg from syslogd
kernel panic: pci_map_single: high address but nonIOMMU.

For I will be thankful any help

Ashok
                                (permanent Link) posted by Ashok: Thu Nov 23, 01:12: 00 A.M.
                               
                       
                        
                        
                                                                                                         For It worked perfectly my ubuntu 6.06. The only problem is that in thefirst Time it is to be activated from to Windows machine. My marriesvendor activated it for me. Is there any way in GNU/Linux to activatethis card?

BTW i got EC321 from reliance.
                                (permanent Link) posted by Anonymous: Wed DEC 06, 04:54: 00 A.M.
                               
                       
                        
                        
                                                                                                                                          But, How dog I make calls using Huweai ace I dog do in Windows?
                                (permanent Link) posted by Anonymous: Fri DEC 15, 11:22: 00 p.m.
                               
                       
                        
                        
                                                                                                                                          Hey perfect man Its working with me on Deb machine.  
speed is excellent too.
Cheers!
                                (permanent Link) posted by Anonymous: Wed DEC 20, 11:18: 00 A.M.
                               
                       
                        
                        
                                                                                                                                          Is a.m. using Fedora 4 and I've tried all the steps mentioned above but still when I run wvdial I get:

--> WvDial: Internet to dialer version 1.54.0
--> Warning: section [Dialer Defaults] does not exist in wvdial.conf.
--> Initializing modem.
--> Sending: ATZ
--> Sending: ATQ0
--> Re-Sending: ATZ
--> Modem not responding.
                                (permanent Link) posted by Vikas Jayna: Wed Sea 28, 04:04: 00 A.M.
                               
                       
                        
                        
                                                                                                                                          Hello Folks,

I need to uses to Reliance CDMA broadband dates connection with an embedded Linux COmputer (MOXA UC-7420-LC).  

For This is to mobile application.

This there are both to PCMCIA slot, the USA abd serial ports. Please let me know if any of these tweaks will work there.

_VG Bapat
                                (permanent Link) posted by Vishram: Thu May 17, 11:51: 00 p.m.
                               
                       
                        
                        
                                                                                                                                          Nice… It's helping half of the people in your office…: D
                                (permanent Link) posted by Abhinav Gupta: Fri Jun 15, 07:10: 00 A.M.
                               
                       
                        
                          
                                                由于伟大的GFW,只能通过Google的tranlate来阅读原文,原文地址: [size=-1]http://spo0nman.blogspot.com/2006/08/huawei-ec321-cdma-on-linux.html