Sunday, October 3, 2010

Micromax MMX200g USB MODEM on Ubuntu

This modem really made me work hard, and so thought of writing it out. I have an Airtel GPRS sim card plugged in Micromax MMX200g USB Modem and wanted to get it working on my Ubuntu 9.10 (Karmic koala). The worst part was switching it from storage to modem mode. I did a lot of googling and binging but nothing got me to its usb_modswitch settings. But then, what worked surprised me. The only thing i did was 'Eject' it. Just unmount and eject the device using the GUI file explorer, and it will get detected as modem, /dev/ttyACM0, in my case.

YES, JUST EJECT THE DEVICE USING GUI FILE EXPLORER.

Then paste the following settings in /etc/wvdial.conf
--------------------------------
[Dialer Defaults]
Init1 = AT+CGDCONT=1,"IP","airtelgprs.com","",0,0
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
stupid mode = 1
Modem Type = USB Modem
Baud = 460800
New PPPD = yes
Modem = /dev/ttyACM0 # Your modem device may be different
ISDN = 0
Phone = *99#
Password = a
Username = a
--------------------------------
After that run the wvdial command:
# sudo wvdial
and there you should get connected.

Wednesday, September 22, 2010

swim,swam,swum,swimming

Finally, after struggling for 2 months, I could awake the swimmer in me. It gives me a sense of achievement and satisfaction. I am excited and eagerly awaiting every morning to take a dip in deep chlorinated water. I measured the swimming pool using the Google maps and found that every day I cover a distance of 300 metres by swimming. It's a great exercise. Every day I try different strokes, starting from upward floating to under-water and breaststroke.

Swimming is one of the most popular forms of aerobic exercise, and it is an excellent activity for anyone who wishes to get fit and stay active. Swimming exercise uses more of the overall muscle mass of the body than almost any other form of exercise, and people get an upper-body workout and a lower-body workout, unlike running or biking or other activities like tennis, where you get a good workout in just the legs. In addition, as with most aerobic exercise it is believed to reduce the harmful effects of stress.

Overall, swimming is an excellent form of exercise. Because the density of the human body is approximately similar to that of water, the body is supported by the water and less stress is therefore placed on joints and bones. Since then the buoyancy of the water protects the joints, water exercise is a particularly good choice for people who are overweight or who are prevented from taking part in other activities because of injuries or other physical limitations. Therefore, swimming is frequently used as an exercise in rehabilitation after injuries or for the disabled.

Saturday, July 3, 2010

My first swim (floating)

Living in an area with limited swimming opportunities, Ahmedabad, i have always been yearning to swim. Being an ardent fan of water sports, I had always wanted to learn swim in-order to actually participate in them. So the first day starts with the coach asking us to float on water. Rest was there for realisation. If you have not yet learned how to float you are unnecessarily denying yourself the opportunity to safely participate in many activities that take place in, on or near the water. Learning to float allows you to
rest comfortably in deep water when swimming out over your head or when swimming long distances. If you have learned to float, then diving or jumping off a spring board or dock can easily be followed by a few minutes floating while you catch your breath and decide what you want to do next. If you are in any type of water craft that inadvertently capsizes, you'll be very glad you learned to float because you possess a survival skill that will keep you alive and calm until help can arrive. Learning to float requires some concentration and a little practice, but once you have learned the skill of floating, it is yours for a lifetime.
Having know this for a while now, I set my step ahead and left myself sleeping on water, head facing downwards. Apart from few initial hiccups, I managed to get myself on water. Though there was a trouble keeping myself from getting rotated on one side, soon a little practice helped me align my head in-order to prevent the rotation. Today will be the second day. Will keep posting what happens next.

Friday, June 11, 2010

राँझा राँझा ( रावन मूवी )

This song mesmerised me, but it was only after hearing it 10 times that i could understand the lyrics. Here i am posting the lyrics of this great song from Ravan. It's Punjabi, Heer-Ranjha are characters of a folk love story.
'Ranjha Ranjha Kardi Ve Main Aape Ranjha Hoyi
Ranjha Ranjha Saddo Ni Mainu Heer Na Aakho Koyi'
is a verse from sufi poet Waris Shah's poem on Heer-Ranjha.

Singer(S): Rekha Bhardwaj, Javed Ali, Anuradha Sriram
Music Director: A R Rahman
Lyricist: Gulzar

Ranjha Ranjha Kardi Ve Main Aape Ranjha Hoyi
Ranjha Ranjha Saddo Ni Mainu Heer Na Aakho Koyi
Oo Ranjha Ranjha Na Kar Heere Jag Badnami Hoye
Patti Patti Jhar Jaave Par Khushboo Chup Na Hoye

Begunah Pakda Gaya (Yaaro)
Ishq Mein Jakda Gaya (Yaaro)
Aankh Ke Dosh Mein Dil (Yaaro)
Bewajah Pakda Gaya (Yaaro)

Aankh Se Hatt Ti Nahin, Arrey Hatt Ti Nahin, Arrey Hatt Ti Nahin
Sotey Sotey Bolta Hoon, Kabhi Bolte Bolte Sota Hoon
Kya Jaane Kya Hota Hai, Kabhi Jalti Aag Dadolta Hoon
Ek Baar To Aake Dekhe Woh Bhi

Ranjha Ranjha Kardi Ve Main Aape Ranjha Hoyi
Ranjha Ranjha Saddo Ni Mainu Heer Na Aakho Koyi
Oo Ranjha Ranjha Na Kar Heere Jag Badnami Hoye
Patti Patti Jhar Jaave Par Khushboo Chup Na Hoye

Jal Ja, Jal Ja Ishq Mein Jal Ja, Jale Se Kundan Ho
Jalti Raakh Laga Le Maathe Lagey To Chandan Hoye
Ranjha Ranjha Kardi Ve Main
Ranjha Ranjha Kardi Ve Main Aape Ranjha Hoyi
Ranjha Ranjha Saddo Ni Mainu Heer Na Aakho Koyi

Waqt Katt Ta Bhi Nahin, Waqt Rukta Bhi Nahin
Dil Hai Sajde Mein Magar, Ishq Jhukta Bhi Nahin
Bina Tere Raatein, Arrey Raatein Kyun Lambhi Lagti Hain
Kabhi Tera Gussa, Kabhi Teri Baatein Kyun Achchi Lagti Hain
Yeh Jalte Koyle, Arrey Koyle Ab Rakhna Mushkil Hai

Ranjha Ranjha Kardi Ve Main Aape Ranjha Hoyi
Ranjha Ranjha Saddo Ni Mainu Heer Na Aakho Koyi
Oo Ranjha Ranjha Na Kar Heere Jag Badnami Hoye
Patti Patti Jhar Jaave Par Khushboo Chup Na Hoye
Jal Ja, Jal Ja Ishq Mein Jal Ja, Jale Se Kundan Ho
Jalti Raakh Laga Le Maathe Lagey To Chandan Hoye

Chal, Chal Junoon Chalte Rahein, Tu Kahin Theher Nahin
Dil Agar Aa Bhi Gaya, Woh Tera Shehar Nahin
Bina Tere Saansein, Arrey Saansein Kahin Khatam Na Ho Jaayein
Sabi Teri Yaadein, Sabi Yaadein Kahin Basam Na Ho Jaayein
Sulagte Koyle, Arrey Koyle Ab Bujhna Mushkil Hai

Ranjha Ranjha Kardi Ve Main
Ranjha Ranjha Kardi Ve Main Aape Ranjha Hoyi
Ranjha Ranjha Saddo Ni Mainu Heer Na Aakho Koyi
Ranjha Ranjha Kardi Ve Main Aape Ranjha Hoyi
Ranjha Ranjha Kardi Ve Main Aape Ranjha Hoyi
Oo
Ranjha Ranjha Na Kar Heere Jag Badnami Hoye
Patti Patti Jhar Jaave Par Khushboo Chup Na Hoye
Ranjha Ranjha Kardi Ve Main Aape Ranjha Hoyi ........ 4

Saturday, June 5, 2010

Setup my own IVR

Voice has always been an interesting field for me. One of my friends asked me to set up an IVR (Interactive Voice Response) for his small company. I, wearing a technology mask, would never like to displease a friend, who has an image of me being a technology champ. Not only that, there was something else at the back of my mind, that supported my decision to help out this friend. It was nothing else but a small IVR application that I had developed during my graduation days. Those were the days of VB with a TAPI addon. Tried to look around for that antic piece, got it, but couldn't get it working on today's OS. I was in a fix. Googling around for VOIP related technologies, I came across VXML (Voice XML) & voice browser. At first, I related it to be something like XML and Firefox Internet browser. I was excited to have it on my desktop, but my eagerness was trimmed down on further reading. This was where i came across voxeo.

Here are the steps:
1) Register yourself at Voxeo Evolution Site. (Goto Account->Register)
2) Login with your user and password.
3) Copy paste the following text in your favourite editor.


<vxml version = "2.1" >

<form>
<block>
<prompt>
<break strength="large"/>
Hello. Welcome to Nand Tele Services. We are the leaders in Education Call Center.
prompt>
block>
form>
vxml>
4) Save the file on your local machine (say hello.xml)
5) On voxeo evolution site, goto,
ACCOUNT -> (Files, Logs, & Reports)
6) You should see a www directory. Click on www directory.
7) Upload hello.xml using the browse button.
8) Goto ACCOUNT -> Application Manager, Click Add Application.
9) Type in a arbitrary name, and select "Voice Phone Calls"
10) In Voice URL, click on file manager, select hello.xml and Press MAP.
11) Press "Create Application".
12) Click on the application, and it will show you various contact methods.
Your first voice application is ready to rock!!!

On creating your application, voxeo gives you free Skype, Sip, & direct US phone numbers. You can use skype to test your new voice application. If you have a sip softphone, like linphone, put in the sip url and listen the voice of your application. Now you need to connect it to your PSTN line. I did it using Linksys SPA-3102. My boss is calling, need to go, will post the rest in next few days.

Saturday, May 15, 2010

Reliance broadband+ ZTE-AC2726 on linux (Ubuntu-9.04 karmic koala)

I managed to install reliance broadband+ ZTE AC2726 on ubuntu 9.04.

Here are the steps:

Insert the modem into USB interface and see if its detected. You should see something like this in dmesg:

$ dmesg
[22882.972130] usb 3-2: new full speed USB device using uhci_hcd and address 16
[22883.128910] usb 3-2: configuration #1 chosen from 1 choice
[22883.131004] scsi10 : SCSI emulation for USB Mass Storage devices
[22883.131239] usb-storage: device found at 16
[22883.131244] usb-storage: waiting for device to settle before scanning
[22888.130780] usb-storage: device scan complete
[22888.133718] scsi 10:0:0:0: CD-ROM ZTE USB Storage FFF1 2.31 PQ: 0 ANSI: 2
[22888.136787] scsi 10:0:0:1: Direct-Access ZTE USB Storage FFF1 2.31 PQ: 0 ANSI: 2
[22888.170799] sr1: scsi-1 drive
[22888.171045] sr 10:0:0:0: Attached scsi CD-ROM sr1
[22888.171180] sr 10:0:0:0: Attached scsi generic sg2 type 5
[22888.171403] sd 10:0:0:1: Attached scsi generic sg3 type 0
[22888.191688] sd 10:0:0:1: [sdb] Attached SCSI removable disk
[22889.655795] ISO 9660 Extensions: Microsoft Joliet Level 3
[22889.663783] ISOFS: changing to secondary root


Use lsusb to get its vendor:product id
$ sudo lsusb
Bus 003 Device 016: ID 19d2:fff5 ONDA Communication S.p.A.

19d2:fff5 is the vendor:product id.There are other varients which have 19d2:fff6 as a vendor:product id.

This means that the device is detected as a storage. We need it to be detected as modem. There is a command called usb-modeswitch to achieve this. Install it using the following command:

$ sudo apt-get install usb-modeswitch

Using the vendorid and productid, fire the following command:

$ sudo usb_modeswitch -v 0x19d2 -p 0xfff5 -M "5553424312345678c00000008000069f030000000000000000000000000000"

The above command should not fail and it should display the following things:
$ lsusb
Bus 003 Device 023: ID 19d2:fff1 ONDA Communication S.p.A.

$ modprobe usbserial vendor=0x19d2 product=0xfff1


Copy paste the following items in your /etc/wvdial.conf

[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem = /dev/ttyUSB0 ; modify based on the results of your dmesg
Phone = #777
Idle Seconds = 300
Modem Type = Analog Modem
Stupid Mode = 1
Compuserve = 0
Baud = 460800
Auto DNS = 1
Dial Command = ATDT
Ask Password = 0
ISDN = 0
Username = "10-digit-modem-mobile-number"
Password = "10-digit-modem-mobile-number"

Now the last step:

$ sudo wvdial

और आप इन्टरनेट से जुड़ चुके है। There you are connected to internet.

Tuesday, April 27, 2010

Switched to ubunto-9.10 from opensuse-11.2

After struggling for a long time with opensuse-11.2+kde, i finally switched over to ubuntu-9.10. Here are the problems that i faced with opensuse+kde:
1) Frequent hang-up of GUI.
2) Suse upgrade screwed my pdf reader - evince.
3) Pulling the power cable from laptop would make the screen go black.

So i downloaded the ubuntu-9.10 iso. I did not have a blank cdrom, so thought of burning the iso to a usb pen drive. I used Lili Usb Creater to burn the ISO file to a pen-drive, note that, this works only on windows. I could not find similar tool for linux in my limited google search operation.
Finally, i backed up my thunderbird folder, firefox bookmarks, and other interesting documents to another partition. Reboot the machine from USB pen drive. Installation was pretty smooth, and it hardly took 15 minutes to install. I like this thing about ubuntu that it does not give package selection option during installation. After installation, i had to configure a few shortcuts that i was used to previously. I did not like the default Alt-F2 "run application" program. Needed to lookup for something that could search applications based on keywords. So i looked up for a package-manager which could work like yast. I found Synaptic package manager for GUI and aptitude for text console. Started synaptic and installed gnome-deskbar. Surprisingly, Alt-F3 was the shortcut assigned. Amrish, the suse ambassador, came up with something new which used the useless windows key on the keyboard. After that i installed thunderbird, created a softlink to my previous thunderbird folder. I am impressed by Thunderbird. It works so smooth. Next i imported the bookmarks in firefox. And so here i am, struggling to learn shortcuts and installing new applications.

Cheers from ubuntu blogger!