|

Dear All,
As we all know the importance and contribution of Wikipedia in World. Wikipedia is pathfinder project!!
We donated 4$ to Wikipedia ie Wikimedia Foundation !!
* When you will donate!!
Thanks,
IndianGNU.org & Balbir Singh
1] What is modem?
Modem (modulator-demodulator) is a device that modulates an analog carrier signal to encode digital information, and also demodulates such a carrier signal to decode the transmitted information. There are different types of modem available like Cable modems, ADSL modems, Optical modems and USB cellular modems.
2] USB cellular modems ?
USB (Universal Serial Bus) cellular modems use a USB port instead of a PCcard or PCMCIA Card (Personal Computer Memory Card International Association) slot. Difference between a cellular router and a cellular modem is that a cellular router normally allows multiple people to connect to it, while the modem is made for one connection. A cellular router may or may not have an external datacard
NOTE- I am using SXC-1080 CDMA 1x USB MODEM modem (Epi Valley)
3] How to use it ?
Please refer the article http://www.indiangnu.org/2008/tata-indicom-datacard-huawei-cdma-on-linuxubuntu/ for more information. most of the steps are same…
** On Ubuntu Linux use “wvdialconf” command to generate configuration file and add user name and few other options as given below…
root@arun:/home/arunsb# wvdialconf
** My wvdial configuration file…
root@arun:/home/arunsb# cat /etc/wvdial.conf
[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = USB Modem
Baud = 460800
New PPPD = yes
Modem = /dev/ttyACM0
+FCLASS = 0
ISDN = 0
Phone =#777
Username = internet
Password = internet
# IMP setting
stupid mode = 1
root@arun:/home/arunsb#
** HOW to start / establish connection ?
root@arun:/home/arunsb# /etc/init.d/tataindicom
Usage: /etc/init.d/tataindicom {start|stop|status}
root@arun:/home/arunsb# /etc/init.d/tataindicom start
Starting the TATA Indicom datacard service..
log file is /var/log/tataindicom.log
…
Done.
root@arun:/home/arunsb#
** Once connection is establish , you can verify the ppp0 interface and route as shown below….
arunsb@arun:~$ ifconfig
….
……
ppp0 Link encap:Point-to-Point Protocol
inet addr:219.XX.XX.XX P-t-P:172.XX.XX.14 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1400 Metric:1
RX packets:31259 errors:124 dropped:0 overruns:0 frame:0
TX packets:32249 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:23928690 (22.8 MB) TX bytes:4880834 (4.6 MB)
arunsb@arun:~$
root@arun:/home/arunsb# route -n
…..
** Want to see the “/etc/init.d/tataindicom” file?
root@arun:/home/arunsb# cat /etc/init.d/tataindicom
#!/bin/bash
####
## daemon:: /usr/sbin/pppd 9600 modem crtscts defaultroute usehostname -detach user internet noipdefault call wvdial usepeerdns idle 0 logfd 6
####
case “$1″ in
start)
echo “Starting the TATA Indicom datacard service..”
check=$(ps auxwww | grep “$(which wvdial)” | grep -v grep | awk ‘{print $2}’)
if [ -z "$check" ];then
/usr/bin/wvdial > /var/log/tataindicom.log 2>&1 &
echo “log file is /var/log/tataindicom.log”
echo “…”
echo “Done.”
else
echo “TATA Indicom datacard service already running [pid = $check]”
fi
;;
stop)
echo “killing pppd daemon and dailer…”
kill -9 $(ps auxwww | grep “$(which wvdial)” | grep -v grep | awk ‘{print $2}’)
kill -9 $(ps auxwww | grep “$(which pppd)” | grep -v grep | awk ‘{print $2}’)
echo “…”
echo “Done.”
;;
status)
echo “TATA Indicom datacard -”
pid_of_dailer=$( ps auxwww | grep “$(which wvdial)” | grep -v grep | awk ‘{print $2}’)
pid_of_pppd=$(ps auxwww | grep “$(which pppd)” | grep -v grep | awk ‘{print $2}’)
pppd_details=”$(ps auxwww | grep “$(which pppd)” | grep -v grep | awk -F’pppd’ ‘{print $2}’)”
echo -e “Dailer $(which wvdial) : $pid_of_dailer”
echo -e “pppd daemon $(which pppd) :: $pid_of_pppd $(which pppd) $pppd_details”
;;
*)
echo “Usage: /etc/init.d/tataindicom {start|stop|status}”
exit 1
esac
exit 0
#DONE
root@arun:/home/arunsb#
** Enjoy buddy!!!
Thank you,
Arun Bagul