Saturday, May 12, 2007

HUAWEI EC321 on Linux

So what do you do after two days of non-sleep and a 5 hour party? You try to make your recently acquired gadget to work on linux :) I wish I was kidding!

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

I had just procured a Tata Indicom cdma data card as replacement for my now broken reliance cdma card. Since the reliance junk would never work on linux. I was rubbing my hands in anticipation on my way back home.

Out with the reasons and on to the quest.

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

0x12d1 and 0x1001 is just the vendor and device identifier (duh!), So much for the linux is difficult. We just like to make it look confusing :D notice the useless 0x0000 padding that follows, reserved for future use and confusing all present grey matter.

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