Skip to main content

ZeroCD broadband modem

Just a quick note. Recently my father asked me to get a broadband modem to work again after I installed Ubuntu on his computer. The modem was basically a rectangular black stick. The only brand it wrote on it was CSL. And when you plugged it in, it showed up as a thumb drive. This was expected behaviour in Windows because then they'd click on the driver installation of the thumb drive. Once the driver is installed it would detect and register the modem. I had no idea what was supposed to be done with it to make it work. Untill I ran `lsusb` to get the vendor & product number. Vendor was 0x1c9e and product was 0x1001. And I actually googled THAT.

And then I within those pages I found this gem. The post clued me into a utility called usb-modeswitch which can actually switch the modes of the detected usb device. A search of ubuntu packages I found a deb for karmic. Eventhough the computer is Jaunty but it seems the package works. I had to modify the installed /etc/usb_modeswitch.conf and /etc/udev/rules.d/usb_modeswitch.rules so that it would enable the modem device (use the vendor & product number, just uncomment the right one). The udev rules also needed to add so that it would load the usbserial module when it detects the modem. But the problem with Jaunty is that the module is already compiled in and cannot be unloaded and loaded. So I actually had to modify the kernel line in /boot/grub/menu.lst to have 'usbserial.vendor=0x1c9e usbserial.product=0x6061' (the device change from 1001 to 6061) to make it work (according to the notes in a bug report, this behaviour has been reversed. So insyaAllah in Karmic it would be a module once more). So once it detected the modem on ttyUSB0,1,2 I was able to use wvdial to connect to celcom's broadband. Contents of /etc/wvdial.conf is:

[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem = /dev/ttyUSB0
Phone = *99#
Idle Seconds = 300
Modem Type = Analog Modem
Stupid Mode = 1
Baud = 460800
Auto DNS = 1
Dial Command = ATDT
Ask Password = 0
ISDN = 0
Username = 'Celcom'
Password = 'Celcom'

And then to connect to celcom I just had to plug in the modem. And run:

sudo wvdial

And it would connect.

Comments

Popular posts from this blog

Food first post

My blogs' name is High-Tech Rojak but I don't recall ever talking about food. So here's a first. Just recently I got some free time and finally got to cook the pasta I've bought for ages. So here's an account of how it went down.. :) Okay. That's the thing I cooked. I have no idea what it's called. At first I was thinking of buying the ribbon ones, then my wife looked at the colorful spiral ones and said "why not get these? they're more colorful" and so we got them (yes, we know nothing about pasta.. :) So I boiled it, actually put some salt and oil into the water so that they won't stick, drained it and tadaaaaa, you'd get the above. I remember once I tried to cook macaroni and I didn't drain it after boiling it, it filled up the whole pot. LOL... Learned my lesson. Next up the sauce. Like I said we don't know anything about pasta so here's the ingredients we prepared. Yes ladies and gentleman. Instant pasta sauce all bottl

Documentation is a must... after this.

I've been thinking quite a bit about documentation and the 'cost' it involves. And when I say documentation, I mean documentation in general about anything. One obvious case with the industry I'm involved in is user documentation (a.k.a The Manual). Creating great features in software takes time and effort but if it is not documented then the user won't even know about it and finally it never gets used. But then while documenting it you just wish that you're working on the next cool thing rather than have to write this up. So finally you end up not doing the documentation or doing it rather badly. Same thing with this blog writing. I have been doing some pretty interesting things with my phone (rooting it and using cynogenmod and all), some pretty significant life changes (my grandmother passed away) and a lot of other things which I should probably like to remember better or reflect more on it but not documented (here or anywhere permanent) and it would probabl

The Future Of Gaming

I love playing computer games. It's what originally drove me to learn computer programming, I wanted to create my own games. Until now I still have very little success with that, but... I have learnt to program web applications quite well and earning my pay using those skills. And I love open source software. Ever since I started programming professionally, my main work OS has always been Linux (various distributions and all and currently on Arch Linux). I always install dual-boot because... hardware problems (some projectors and printers just couldn't be detected by Linux when I started out, that's mostly not a problem now) and mainly to play games (sure there was some open source games available, but apart from "Battle for Wesnoth" and "FreeCiv" I don't actually recall any games I've played extensively enough to be remembered). But recently the gaming scene in LinuxLand has improved tremendously, partly thanks to the Windows 8 app store like