This is my experience of setting up USB modem on Ubuntu - provided by Service provider called Idea.
I tried to setup this GUI tool provided by Ubuntu (System==>Administration==>Network Tool, then go for point to point connection, choose gprs etc), but failed to configure it.
So decided to use "wvdail". I had to do following:
[1]. I could not see any device file forb USB modem-i.e. /dev/ttyUSB* was not present. So i had to use following command.
root@laptop:/home/sopan# lsmod |grep usb usb_storage 73664 0 usbserial 35816 1 option libusual 19108 1 usb_storage scsi_mod 151436 5 usb_storage,sr_mod,sg,sd_mod,libata usbcore 146028 7 usb_storage,option,usbserial,libusual,ehci_hcd,uhci_hcd root@laptop:/home/sopan#
So decided to remove usb_storage modude - this was suggested at many forums.
Used following command to remove module
root@laptop:/var/log# rmmod --force usb_storage
So times this fails to remove - gives error - resources are busy or similar.
Make sure to unmount the /media/cdrom0 or similar device. The Netsetter card has usb disk - it gets mounted as soon as you insert in the usb slot- so make sure to unmount that.
After that -
root@laptop:/var/log# lsusb Bus 005 Device 001: ID 0000:0000 Bus 006 Device 001: ID 0000:0000 Bus 004 Device 001: ID 0000:0000 Bus 003 Device 001: ID 0000:0000 Bus 002 Device 004: ID 12d1:1001 Huawei Technologies Co., Ltd. E620 USB Modem Bus 002 Device 001: ID 0000:0000 Bus 001 Device 001: ID 0000:0000
So notice the Huawei Technology device related entry.
The ID 12d1 and 1001 number is important from above output.
After this, use the following command to create ttyUSB*
root@laptop:/var/log#modprobe usbserial vendor=0x12d1 product=0x1001
try to run the command "dmesg" to see output similar to following:
[18641.488163] usb 2-2: new full speed USB device using uhci_hcd and address 4 [18641.503505] usb 2-2: configuration #1 chosen from 1 choice [18641.509237] option 2-2:1.0: GSM modem (1-port) converter detected [18641.509438] usb 2-2: GSM modem (1-port) converter now attached to ttyUSB0
This means - /dev/ttyUSB0 is device for your USB modem.
Edit the file - /etc/wvdail.conf, it should look similar to
root@laptop:~# more /etc/wvdial.conf.working
[Dialer Defaults]
Modem=/dev/ttyUSB0
Baud = 460800
Init 1 = AT+CGMM
Init 2 = AT+CMEE=1
Init 3 = ATE0
Init 4 = AT^HS=0,0
Init 5 = AT+CFUN?
Init 6 = AT+CLCK="SC",2
Init 7 = AT+CPIN?
Init 8 = AT+CLCK="SC",2
Modem Type = USB MODEM
Phone=*99#
Username = idea
Password = idea
Dial Command=ATDT
Stupid Mode=1
ISDN=0
APN = internet
Once this is done ... just use the "wvdail" command to connect to Idea
output looks similar to following:
root@laptop:/etc# wvdial
--> WvDial: Internet dialer version 1.60
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Modem initialized.
--> Sending: ATDT*99#
--> Waiting for carrier.
ATDT*99#
CONNECT
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Mon Nov 23 19:45:47 2009
--> Pid of pppd: 7042
--> Using interface ppp0
--> local IP address 112.110.192.9
--> remote IP address 10.64.64.64
--> primary DNS address 202.138.96.2
--> secondary DNS address 202.54.1.64
Thanks to Shivdas Patil to help me with wvdail.conf.
Make sure to take backup of /etc/wvdail.conf - you might loose this file whenever you play GUI tools provided by Ubuntu.
Sopan Shewales Blog
My technical and personal observations about softwares and other entities
Monday, November 23
setting up Netsetter (GPRS) from Idea on Ubuntu
Monday, November 16
mach: Good way to build the rpm from CPAN perl modules
Mach is very interesting way to build the rpm of CPAN perl modules. Very easy to install, create the build environment.
I used link How to Build RPM Packages in A Chroot Environment using mach
This link has given reasonably good procedure to create the rpms.
Make sure - you have packages like gcc, make installed. Also you have access to latest spec file, access to download the latest source tars/gzs from CPAN.
Sunday, August 16
Fighting Swine Flue
The Pune is panic over Swine flu in recent days. There is so much talk/advice about a few plants which can be useful to avoid flue in general. Those plants are - Giloy (Tinospora Cordifolia ) called Gulvel in Marathi, Tulas (Ocimum Tenuiflorum) and Nilgiri (Eucalyptus Globulus). Baba Ramdeo (I am not follower to him) suggested to use - Giloy Sat. There are a few SMS's spreading around to use Nilgiri Oil on handkerchief. I am attaching the content of some old book (published in 1925 or so) ayurved which describes the importance of these plants. I am attaching this content under the hope that people will find it useful and understand the importance of plants mentioned in this posting. The content is in marathi-lazy to convert in English/other languages. |
Giloy Sat - sold by Divya Pharmecy |
Tuesday, June 30
Vote TWiki at Community Choice Awards at SourceForge.net
The open source TWiki project got nominated as one of 10 finalists in the "Best Project for Enterprise" category at the SourceForge.net Community Choice Awards 2009, this among 230,000 open source projects!
Please vote for TWiki, and possibly tweet, blog, etc about it, and promote among coworkers and friends.
- Vote at http://sourceforge.net/community/cca09/vote/?f=426 (you'll get an e-mail you need to confirm)
- See supporting video at http://www.youtube.com/watch?v=WzgXLjYnq-k
Suggested tweet: TWiki is finalist in Enterprise category at SF.net Community Choice Awards. Pls vote for #twiki @http://bit.ly/twote http://bit.ly/twvideo
Looking at the other finalists in the Enterprise category, the open source TWiki project has a good chance to win if we do joint efforts to promote the voting.
Sunday, February 22
Baingan Bharta Reciepie
Ingredients
- 1 Brinjal (normal size)
- Jeera (Cumin seeds)
- 2-3 green chilies, chop them according to your choice
- A few kadi-pattas (Curry Tree)
- Onion -chop it finely
- Coriander (chop it)
- Ground Nuts (fry and pil the covers-see pics)
- Haldi (Turmeric Powder)
- Eating Oil
- curd
- garlic (lahsun)
- Red Chili Powder
- Hing (Asafoetida)
- Namak (Salt)
- Rai (black mustard seed)
Before reading the procedure - please see the pictures carefully-they explain the procedure very-well.
- make slits all over the brinjal, heat it on the open flame till its soft/black.
- peel the skin of the brinjal/black part after it becomes cool.
- Smash it (look at the images).
- Heat the oil, add rai-make sure it makes noice and changes the color. Add cumin seeds, make sure it makes little bit of noice and changes the color.
- Add kadipata, garlic, chilies. Add peanuts. After that add chopped onion, fry it for some time.
- Add haldi/turmeric poweder, Hing.
- Add red-chili poweder.
- Add the smashed brinjal, fry for some time. Add dhania-patta.
- Fry for some time.