Hi Use of 3g modem on Linux Fedora when u insert USB modem then look for changes in dmesguse command dmesg | tail -n50 - usb 1-2.3: new full speed USB device using ehci_hcd and address 4 - usb 1-2.3: New USB device found, idVendor=1c9e, idProduct=6061 - usb 1-2.3: New USB device strings: Mfr=1, Product=2, SerialNumber=4 - usb 1-2.3: Product: USB MMC Storage - usb 1-2.3: Manufacturer:
Qualcomm, Incorporated - usb 1-2.3: SerialNumber: 000000000002 - Initializing USB Mass Storage driver... - scsi2 : usb-storage 1-2.3:1.0 - usbcore: registered new interface driver usb-storage - USB Mass Storage support registered. - usb 1-2.3: USB disconnect, address 4 - usb 1-2.3: new full speed USB device using ehci_hcd and address 5 - usb 1-2.3: New USB device found, idVendor=1c9e, idProduct=6061 - usb 1-2.3: New USB device strings: Mfr=1, Product=2, SerialNumber=4 - usb 1-2.3: Manufacturer: 3G USB Modem - usb 1-2.3: SerialNumber: 000000000002 - scsi3 : usb-storage 1-2.3:1.3 - scsi 3:0:0:0: CD-ROM HSDPA CDROM 2.31 PQ: 0 ANSI: 2 - scsi 3:0:0:1: Direct-Access HSDPA MMC Storage 2.31 PQ: 0 ANSI: 2 - sr1: scsi-1 drive - sr 3:0:0:0: Attached scsi CD-ROM sr1 - sr 3:0:0:0: Attached scsi generic sg2 type 5 - sd 3:0:0:1: Attached scsi generic sg3 type 0 - sd 3:0:0:1: [sdb] Attached SCSI removable diskIf above are the output messages then this USB modem working as USB Storage drive.Look for loaded modules using commandlsmod - usb_storage 34392 0 above messages should be output.it means your need to remove this module use below commandrmmod usb_storage Now you have to look for your Product and Vendor ID use below commandlsusbNow you have to use software utility called usb_modswitch, you have to configure file usb_modeswitch.conf it in /etc/usb_modeswitch.conf. Make acopy of this file, store with another name at same location /etc/. Remove all entries except for your USB, here I will explainIf I plugged my USB and when I do lsusb and below are my entries ....Bus 001 Device 007: ID 1c9e:6061 ....here is my config file /etc/bsnl_usb_modeswitch.conf, keep below entries only remove all other unnecessary information,######################################################## # MobiData MBD-200HU # # Contributor: Stefan Olejnik DefaultVendor= 0x1c9eDefaultProduct= 0x6061TargetVendor= 0x1c9eTargetProduct= 0x6061# only for reference and 0.x versions# MessageEndpoint=0x01MessageContent="55534243123456788000000080000606f50402527000000000000000000000"######################################################## above messages should be output.But at DefaultVendor, TargetVendor you should enter your USB modem Vendor ID using lsusb command, and at DefaultProduct, TargetProduct you should enter your USB modem Product ID.Then use commandusb_modeswitch -c /etc/bsnl_usb_modeswitch.conf - Looking for target devices ... - No devices in target mode or class found - Looking for default devices ... - Found default devices (1) - Accessing device 005 on bus 001 ... - Using endpoints 0x02 (out) and 0x82 (in) - Not a storage device, skipping SCSI inquiry - Error: could not get description string "product" - Device description data (identification) - ------------------------- - Manufacturer: 3G USB Modem - Product: - Serial No.: 000000000002 - ------------------------- - Looking for active driver ... - No driver found. Either detached before or never attached - Setting up communication with interface 0 ... - Trying to send the message to endpoint 0x02 ... - OK, message successfully sent - -> Run lsusb to note any changes. Bye.above messages should be output.Now you have to load correct driver for your USB modem, use below commandmodprobe -v option - insmod /lib/modules/2.6.33.3-85.fc13.i686.PAE/kernel/drivers/usb/serial/usbserial.ko - insmod /lib/modules/2.6.33.3-85.fc13.i686.PAE/kernel/drivers/usb/serial/usb_wwan.ko - insmod /lib/modules/2.6.33.3-85.fc13.i686.PAE/kernel/drivers/usb/serial/option.ko above messages should be output.Now activate this drivers for your USB modem use command
echo "1c9e 6061" > /sys/bus/usb-serial/drivers/option1/new_idNow look for dmesg logs using commanddmesg | tail -n10 - USB Serial support registered for GSM modem (1-port) - usbcore: registered new interface driver option - option: v0.7.2:USB Driver for GSM modems - option 1-2.3:1.0: GSM modem (1-port) converter detected - usb 1-2.3: GSM modem (1-port) converter now attached to ttyUSB0 - option 1-2.3:1.1: GSM modem (1-port) converter detected - usb 1-2.3: GSM modem (1-port) converter now attached to ttyUSB1 - option 1-2.3:1.2: GSM modem (1-port) converter detected - usb 1-2.3: GSM modem (1-port) converter now attached to ttyUSB2 - option 1-2.3:1.3: GSM modem (1-port) converter detected - usb 1-2.3: GSM modem (1-port) converter now attached to ttyUSB3above messages should be output.Now you are on track of connecting now you have to use utility calledwvdial, but before that u have to configure /etc/wvdial.conf. If there areany entries allready, then make a copy of this file, here is my configurationfile (/etc/wvdial.conf). I am using BSNL 3G network in Pune[Dialer hsdpa]Phone = *99#Username = nullPassword = nullStupid Mode = 1Dial Command = ATDTModem = /dev/ttyUSB0Baud = 115200Init2 = ATZInit3 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0ISDN = 0Auto Reconnect = offDial Attempts = 1Modem Type = Analog Modemobtain APN = 0use APN = 1APN = bsnlnetIP modal = 1obtain PDP = 1PAP modal = 1obtain
DNS = 1In APN phase(APN = bsnlnet) you have to use your service provider APN name.There is 1 more file called /etc/ppp/options which you have to usebelow is my /etc/ppp/options file/dev/ttyUSB0115200debugnoauthnoipdefaultdefaultrouteusepeerdnscrtsctslockkdebug 7-detachlcp-echo-failure 4lcp-echo-interval 30lcp-max-configure 10lcp-max-failure 10ipcp-max-failure 10ipcp-max-configure 10-ccp-vjrefuse-chaprefuse-mschaprefuse-mschap-v2refuse-eap#name#show-passwordNow your all configuration is complete use below command nowwvdial hsdpa--> WvDial: Internet dialer version 1.61--> Cannot get information for serial port.--> Initializing modem.--> Sending: ATZATZOK--> Sending: ATZATZOK--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0OK--> Modem initialized.--> Sending: ATDT*99#--> Waiting for
carrier.ATDT*99#CONNECT 7200000--> Carrier detected. Starting PPP immediately.--> Starting pppd at Sat Feb 12 22:44:27 2011--> Pid of pppd: 2069--> Using interface ppp0--> Authentication (PAP) started--> Authentication (PAP) successful--> local IP address 10.224.11.98--> remote IP address 10.64.64.64--> primary DNS address 218.248.240.134--> secondary DNS address 218.248.240.23--> Script /etc/ppp/ip-up run successful--> Default route Ok.--> Nameserver (DNS) Ok.--> Connected... Press Ctrl-C to disconnectabove are the messages you will get. There is 1 file called /etc/resolv.conf. If it has allready entries then no need for u to insert new entries, if don't then insert belowentries, it is used to solve DNS, I repeat this file is dependent onyour area(Country, State, City). Below entries are for country India,Maharashtra, File is /etc/resolv.confnameserver 218.248.240.181nameserver 208.67.220.220Thank You Ravikiran D. Borse