Erodov.com Forums | India's Top Technology forum.
Loading

navigation
  • Home
  • Forums
  • Articles
  • News
  • Gaming
  • Bazaar
  • Community
  • What's New
  • My Erodov
  • Help
navigation
Go Back   Erodov.com Forums | India's Top Technology forum. > Software Zone > Operating Systems
Register Forgot Password?

 
 
Thread Tools Search this Thread
Old 04-03-15   #1
teh pretendeR!
[E]onian
Need GSkill/nVidia stickers ..
 
 
tamocha11's Avatar

How Do You Connect CDMA EVDO Usb Modem in Linux?


Hi guys,
As the title query suggests, I would like to know the 'How to DOs' of connecting a usb cdma-evdo (particularly the Prithvi BSNL EVDO) on linux. I have tried every possible efforts and methods gathered from Google but failed. I have tried this particular modem on different Linux OSs and all these OSs come with latest network managers. I have tried on Mint, Ubuntu,Kubuntu, Porteus, Android x86 and Fedora.
Most of the bundled network managers detect the modem as 'BSNL CDC Modem' but refuses to connect. Even tried usb modeswitch and wvdial with appropriate configs. The modem is okay with Windows.
I need your valuable inputs. Thanks in advance.
P.S. All these OSs are running on different systems and not on a virtual machine.
__________________
Keep smiling, it is the elixir of life.

Last edited by tamocha11; 04-03-15 at 01:43 PM.
tamocha11 is offline   Reply With Quote
Old 07-03-15   #2
teh pretendeR!
[E]onian
Need GSkill/nVidia stickers ..
 
 
tamocha11's Avatar

 
Join Date: May 2012
Location: Manipur
Posts: 253
tamocha11 is very Honorabletamocha11 is very Honorable
Re: How Do You Connect CDMA EVDO Usb Modem in Linux?

Need help guys !

<BUMP>
tamocha11 is offline   Reply With Quote
Old 25-11-15   #3
teh pretendeR!
[E]onian
Need GSkill/nVidia stickers ..
 
 
tamocha11's Avatar

 
Join Date: May 2012
Location: Manipur
Posts: 253
tamocha11 is very Honorabletamocha11 is very Honorable
Re: How Do You Connect CDMA EVDO Usb Modem in Linux?

Bump (need help guys SOS).
tamocha11 is offline   Reply With Quote
Old 26-11-15   #4
teh pretendeR!
[E]onian
I havent set my status yet.
 
 
kundalus's Avatar

 
Join Date: Aug 2011
Posts: 166
kundalus is very Notable
Re: How Do You Connect CDMA EVDO Usb Modem in Linux?

Check ppp widget guide for android.u might some info there

kundalus is offline   Reply With Quote
Old 20-11-16   #5
teh pretendeR!
[E]onian
Need GSkill/nVidia stickers ..
 
 
tamocha11's Avatar

 
Join Date: May 2012
Location: Manipur
Posts: 253
tamocha11 is very Honorabletamocha11 is very Honorable
Re: How Do You Connect CDMA EVDO Usb Modem in Linux?

Just an update, for a newbie like me, Puppy has solved this problem easily for me. Kudos to Puppy Linux !
tamocha11 is offline   Reply With Quote
Old 20-11-16   #6
teh nuB!
[E]onian
Having High fever , feeling ve
 
 
gamerboy2689's Avatar

 
Join Date: Sep 2016
Location: KOOLKATA
Posts: 57
gamerboy2689 is Mysterious
Re: How Do You Connect CDMA EVDO Usb Modem in Linux?

Lets see how I started using this device on my Linux distribution (You can follow the same steps to configure this device on any Linux distribution) :
Device : ZTE EV-DO AC8700 800M
Product Vendor : Qualcomm, Inc.
1) Insert the EvDO device into USB port
2) Check whether the device is getting detected on your system or not. You can issue the following command in console :
#sudo tail -f /var/log/messages
This will result in following messages if the device is detected

Mar 4 09:27:42 techfiz kernel: [ 8251.024000] usb 4-1: configuration #1 chosen from 1 choice
Mar 4 09:27:42 techfiz kernel: [ 8251.028000] usbserial_generic 4-1:1.0: generic converter detected
Mar 4 09:27:42 techfiz kernel: [ 8251.028000] usb 4-1: generic converter now attached to ttyUSB0
In the above lines ttyUSB0 is the device file for your modem. This file gets created automatically if the required modules are available. Else you will see some error messages.
Note :You might face an issue while activating this device on Ubuntu 7.04 and 7.10 as there have made some modifications to the USB serial device mappings. To resolve this issue, edit the file /etc/init.d/mountdevsubfs.sh.
Find the function do_start () and ensure that you have all the following lines.
#
# Magic to make /proc/bus/usb work
#
mkdir -p /dev/bus/usb/.usbfs
domount usbfs "" /dev/bus/usb/.usbfs -obusmode=0700,devmode=0600,listmode=0644
ln -s .usbfs/devices /dev/bus/usb/devices
mount --rbind /dev/bus/usb /proc/bus/usb
The complete function looks like this

do_start () {
#
# Mount a tmpfs on /dev/shm
#
SHM_OPT=
[ “${SHM_SIZE:=$TMPFS_SIZE}” ] && SHM_OPT=”-osize=$SHM_SIZE”
domount tmpfs shmfs /dev/shm $SHM_OPT
#
# Mount /dev/pts. Create master ptmx node if needed.
#
domount devpts “” /dev/pts -ogid=$TTYGRP,mode=$TTYMODE
#
# Magic to make /proc/bus/usb work
#
mkdir -p /dev/bus/usb/.usbfs
domount usbfs “” /dev/bus/usb/.usbfs -obusmode=0700,devmode=0600,listmode=0644
ln -s .usbfs/devices /dev/bus/usb/devices
mount –rbind /dev/bus/usb /proc/bus/usb
}
The above change creates a file called /proc/bus/usb/.usbfs/devices which is missing in the new Ubuntu releases.
After making these changes run /etc/init.d/mountdevsubfs.sh restart at consoel or restart system before continuing with the other steps.
4) Now, your system can easily identify the new USB device which you have inserted into your PC. You can confirm this by running lsusb command.
# lsusb
Bus 005 Device 004: ID 046d:08c6 Logitech, Inc.
Bus 005 Device 001: ID 0000:0000
Bus 004 Device 027: ID 05c6:6000 Qualcomm, Inc.
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 003: ID 413c:8126 Dell Computer Corp.
Bus 002 Device 004: ID 0a5c:4502 Broadcom Corp.
Bus 002 Device 005: ID 0a5c:4503 Broadcom Corp.
Bus 002 Device 002: ID 0a5c:4500 Broadcom Corp.
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 004: ID 046d:c50e Logitech, Inc. MX-1000 Cordless Mouse Receiver
Bus 001 Device 001: ID 0000:0000
Here Bus 004 Device 027: ID 05c6:6000 Qualcomm, Inc. is the new device which started showing up for me on my laptop.
5) Your Linux kernel need to know which company’s driver need to be used with device. Most of the new kernels comes with the Qualcomm drivers inbuilt. Else you need to insert the driver module into your kernel.
Run this at the console to activate the module based on the vendor id and product id (You can find them in the previous step ID 05c6:6000. As we need to pass these numbers in hex format, I’m adding 0x).
# modprobe usbserial vendor=0x05c6 product=0x6000
(Goto step 2 and check if your USB device gets detected or not. You can even try replugging your USB device)
PS : You can permanently add this line to ensure that the module gets loaded to your kernel each time you restart your system by adding the following line into /etc/modules
usbserial vendor=005c6 product=06000
Finally you must get the following output, showing the Vendor name, ID, Device id , Device Bus used by your kernel to interact with the device.
#lsusb -v | grep Qualcomm
Bus 004 Device 022: ID 05c6:6000 Qualcomm, Inc.
idVendor 005c6 Qualcomm, Inc.
Now, your Linux PC is capable of creating the device files /dev/ttyUSB0 automatically without any issues.
6) Now its time for us to create the dialup profile. Its so simple with “wvdialconf” command.
#wvdialconf /etc/wvdial.conf
This creates a file called /etc/wvdial.conf with following output :

# wvdialconf /etc/wvdial.conf
Writing `/etc/wvdial.conf’.
Scanning your serial ports for a modem.
Modem Port Scan< *1>: S0 S1 S2 S3
WvModem< *1>: Cannot get information for serial port.
ttyUSB0< *1>: ATQ0 V1 E1 — OK
ttyUSB0< *1>: ATQ0 V1 E1 Z — OK
ttyUSB0< *1>: ATQ0 V1 E1 S0=0 — OK
ttyUSB0< *1>: ATQ0 V1 E1 S0=0 &C1 — OK
ttyUSB0< *1>: ATQ0 V1 E1 S0=0 &C1 &D2 — OK
ttyUSB0< *1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 — OK
ttyUSB0< *1>: Modem Identifier: ATI — Manufacturer: QUALCOMM INCORPORATED
ttyUSB0< *1>: Speed 4800: AT — OK
ttyUSB0< *1>: Speed 9600: AT — OK
ttyUSB0< *1>: Speed 19200: AT — OK
ttyUSB0< *1>: Speed 38400: AT — OK
ttyUSB0< *1>: Speed 57600: AT — OK
ttyUSB0< *1>: Speed 115200: AT — OK
ttyUSB0< *1>: Speed 230400: AT — OK
ttyUSB0< *1>: Speed 460800: AT — OK
ttyUSB0< *1>: Max speed is 460800; that should be safe.
ttyUSB0< *1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 — OK
WvModem< *1>: Cannot get information for serial port.
ttyUSB1< *1>: ATQ0 V1 E1 — failed with 2400 baud, next try: 9600 baud
ttyUSB1< *1>: ATQ0 V1 E1 — failed with 9600 baud, next try: 115200 baud
ttyUSB1< *1>: ATQ0 V1 E1 — and failed too at 115200, giving up.
WvModem< *1>: Cannot get information for serial port.
ttyUSB2< *1>: ATQ0 V1 E1 — failed with 2400 baud, next try: 9600 baud
ttyUSB2< *1>: ATQ0 V1 E1 — failed with 9600 baud, next try: 115200 baud
ttyUSB2< *1>: ATQ0 V1 E1 — and failed too at 115200, giving up.
Found a modem on /dev/ttyUSB0.
/etc/wvdial.conf: Can’t open ‘/etc/wvdial.conf’ for reading: No such file or directory
/etc/wvdial.conf: …starting with blank configuration.
Modem configuration written to /etc/wvdial.conf.
ttyUSB0: Speed 460800; init “ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0″
Your /etc/wvdial.conf will have the following entries.
# cat /etc/wvdial.conf
[Dialer Defaults]
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = Analog Modem
; Phone =
ISDN = 0
; Username =
Init1 = ATZ
; Password =
Modem = /dev/ttyUSB0
Baud = 460800
Change the target phone no. to #777 and Username and password need to be set to the EVDO number provided by BSNL.
And you require an another magical line added to this file. i.e.
Stupid Mode = 1
More about Stupid Mode (from man pages):
When wvdial is in Stupid Mode, it does not attempt to interpret any prompts from the terminal server. It starts pppd immediately after the modem connects. Apparently there are ISP’s that actually give you a login prompt, but work only if you start PPP, rather than logging in. Go figure. Stupid Mode is (naturally) disabled by default.
Your /etc/wvdial.conf should look like this :
[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = Analog Modem
ISDN = 0
Phone = #777
Modem = /dev/ttyUSB0
Username = 22222222
Password = 22222222
Baud = 460800
Stupid Mode = 1
22222222 is just an example id, replace this with your EvDO number.
7) You’re all set to get connected now. just execute the following command again at the console
# wvdial
output :
# wvdial
WvDial< *1>: WvDial: Internet dialer version 1.56
WvModem< *1>: Cannot get information for serial port.
WvDial< *1>: Initializing modem.
WvDial< *1>: Sending: ATZ
WvDial Modem< *1>: ATZ
WvDial Modem< *1>: OK
WvDial< *1>: Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
WvDial Modem< *1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
WvDial Modem< *1>: OK
WvDial< *1>: Modem initialized.
WvDial< *1>: Sending: ATDT#777
WvDial< *1>: Waiting for carrier.
WvDial Modem< *1>: ATDT#777
WvDial Modem< *1>: CONNECT
WvDial< *1>: Carrier detected. Starting PPP immediately.
WvDial: Starting pppd at Tue Mar 4 16:26:53 2008
WvDial: Pid of pppd: 14536
WvDial< *1>: Using interface ppp0
WvDial< *1>: pppd: ��[06][08]��[06][08]
WvDial< *1>: pppd: ��[06][08]��[06][08]
WvDial< *1>: pppd: ��[06][08]��[06][08]
WvDial< *1>: pppd: ��[06][08]��[06][08]
WvDial< *1>: pppd: ��[06][08]��[06][08]
WvDial< *1>: pppd: ��[06][08]��[06][08]
WvDial< *1>: pppd: ��[06][08]��[06][08]
WvDial< *1>: local IP address 10.1.0.169
WvDial< *1>: pppd: ��[06][08]��[06][08]
WvDial< *1>: remote IP address 10.64.64.64
WvDial< *1>: pppd: ��[06][08]��[06][08]
WvDial< *1>: primary DNS address 218.248.240.23
WvDial< *1>: pppd: ��[06][08]��[06][08]
WvDial< *1>: secondary DNS address 218.248.240.135
WvDial< *1>: pppd: ��[06][08]��[06][08]
There should be a smile at your face after looking at it as you’re connected to internet. Start browsing unlimited.
7) To terminate the connection issue CTRL + C command and then remove EvDO device.
gamerboy2689 is offline   Reply With Quote
Post New Thread  Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
WTBOther Modem for BSNL Evdo kautilya Closed/Completed Deals 1 17-12-14 02:29 PM
WTBPeripherals Need Prithvi EVDO Modem geek Closed/Completed Deals 2 30-08-14 04:10 PM
SaleMobile Phones [FS] Motorola Electrify M XT905 CDMA-EVDO [[SOLD]] chaztin Closed/Completed Deals 3 08-08-13 02:54 PM
SaleMobile Phones Sprint Galaxy Nexus CDMA -reg with Reliance for Voice and EVDO tomemmanuel Closed/Completed Deals 11 26-11-12 10:22 PM
BSNL EVDO 3G USB Modem honey62022 Closed/Completed Deals 15 25-05-10 07:36 AM


Tags
cdma, connect, evdo, linux, modem, usb
All times are GMT +5.5. The time now is 08:33 PM.
Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.6.0 PL2 ©2011, Crawlability, Inc.