Reliance ZTE/ONDA on Linux
It seems fitting that my first post for project 52 (albeit a bit late) involves connecting to the internets. 'Cause that is generally the first step on all most of the stuff I do on the computer.
I have a HSD Reliance ZTE datacard/modem which I had been unable to run on Linux till tonight. The interesting bit is, I have had this card for around 7 months now -- and it was forcing me to use Windows Vista (the horror, the agony, the pain!).
As a log (in case my computer gets formatted sometime in the future -- a likely, but not hoped for occurrence -- ) as well as a possible guide to others, here are the steps I followed.
Note: I'm using Ubuntu 9.10 with a Reliance NetConnect ZTE AC8710 modem.
- Connect to the net using some other, temporary connection
- Get usb-modeswitch. Those with access to a repository can simply do
sudo apt-get install usb-modeswitch
Others can get the latest version from http://www.draisberghof.de/usb_modeswitch/ .
- You will also need (do an apt-get as required)
lsusb, libusb-dev, wvdial, modprobe
- Get usb-modeswitch. Those with access to a repository can simply do
- Connect your modem and run
lsusb
You should see one of the usb ports having your modem -- it will probably be classified as ONDA and have a vendor/product id specified. Along the lines of
192d:fff6
The fff6 indicates that it has been detected as a flash drive/cd rom and not as a modem.
- Also do a
dmesg | tail
And observe where the modem has gone -- usbtty0 / 1 / 2/ 3 etc.
- Edit the usb-modeswitch configuration to make your computer recognize it as a modem
sudo vim /etc/usb_modeswitch.conf
Navigate till you find the settings for your vendor id/product id.
######################################################## 568 # ZTE AC8710 569 # 570 # Two ID variants known; check your default 571 # 572 # Contributor: Michael Khurtsiya 573 574 ;DefaultVendor= 0x19d2 575 ;DefaultProduct= 0xfff5 576 577 ;TargetVendor= 0x19d2 578 ;TargetProduct= 0xffff 579 <strong> 580 # No. 2 581 582 ;DefaultVendor= 0x19d2 583 ;DefaultProduct= 0xfff6 584 585 ;TargetVendor= 0x19d2 586 ;TargetProduct= 0xfff1 587 588 # only for reference 589 # MessageEndpoint=0x05</strong> 590 <strong> 591 ;MessageContent="5553424312345678c00000008000069f030000000000000000000000000000"</strong>
And remove the ';' before the required lines. Save and exit.
Run it.sudo usb_modeswitch
- Check whether it's worked -- do another
lsusb
and see that the product id has changed to fff1 (or whatever your target product was).
- Now we need to do a modprobe
modprobe usbserial vendor=0x19d2 product=0xfff1
Replace vendor and prodcut as you require.
- Once that's done, you need to make your wvdial.conf file. To edit the file:
sudo vim /etc/wvdial.conf
Copy paste the following in it.
[Dialer Defaults] Username = <enter your 10 digit modem number here> Password = <enter your 10 digit modem number here> Init1 = ATZ Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 Modem Type = Analog Modem Phone = #777 ISDN = 0 SetVolume = 0 FlowControl = Hardware (CRTSCTS) Modem = /dev/ttyUSB0 <modify based on the results of your dmesg> Dial Command = ATDT Baud = 460800 Stupid Mode = 1
- Once that's done, you should be good to go. Simply run
sudo wvdial
And you should be connected. Hopefully this helps someone and prevents them from wasting as much time as I did.
Sources:
So finally you got it working ... nice ![]()
still doesn't show up in networkManager on connecting. I read somewhere you need to add an entry to some config related to HAL to do that.
Hi! Thanx 4 the info! I think I'll b able 2 use my BSNL EVDO this way.
Plzzzz help me with 1 thing, I'm gonna buy a domain 4m Yahoo, they've written that they'll charge $9.95/yr & then $34.95/yr after the term gets over! Does that mean they'll charge me $34.95 even if I ask them 2 renew the domain a few days b4 my 1 yr term gets over?
Plzzzz tell me. Thanx in advance!
I think that's the case -- but I'm surprised that their price increases so drastically after the first year. The amount I'm paying ~2000 stayed roughly constant in the second year.
But I must warn you -- Yahoo doesn't give PHP5 -- so if you plan to use it, or use a CMS which uses it, then look for another hosting provider.
Thanx a lot 4 the info!!
The price is way too much!!!
I think I shud buy a domain 4m GoDaddy. Actually my Visa card can only be used on 'Verified by Visa' sites, so I can't even open a PayPal acc with it...so I thought I shud purchase directly using the card 4m Yahoo, as it is a big company.
But lukz lyk I'll hav 2 try 4 GoDaddy again.
Dunno if it's safe 2 shop using ur card on it...
I'm gonna use the free Byet hosting.
Thanx a lot again!!!
Hi! Byet has started placing ads on sites!!
Luks lyk I'll hav 2 go with an Indian host - I'm eyeing eWebGuru. Any idea abt Indian webhosts? or any cheap alternatives?
Actually I can't afford Yahoo's webhosting.
Actually I didn't buy a domain 4m GoDaddy cuz I had heard abt their credit card fraud.
Anyways, itz hosting ain't gud.
Thanx in advance!!!
http://www.findmyhosting.com/hosting-directory/budget-hosting/ Seems like a good site to check for whatever you want.
I've never tried any other hosting for personal uses -- using hostmonster on a site right now, but then that's for a fest and is pretty expensive, etc.
Kunal :
http://www.findmyhosting.com/hosting-directory/budget-hosting/ Seems like a good site to check for whatever you want.
I've never tried any other hosting for personal uses -- using hostmonster on a site right now, but then that's for a fest and is pretty expensive, etc.
Thanx a lot 4 the info!!!
I'll go 4 an Indian host, eWebGuru, maybe...but none of Indian web-hosts r gud n the 1z u specified r outta my budget
Thanx again!!
