Saturday, August 29, 2009

HOw to use the GP usb modem at Ubuntu

Be honest && Use ubuntu for you Computer
Connect your phone via data cable
Open terminal & type
lsusb
Now u will get the following output
*sam@sam-desktop:~$ lsusb
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 003: ID 0421:04f0 Nokia Mobile Phones
Bus 001 Device 001: ID 0000:0000
*it will as per user name
Now note the line in which Nokia Mobile Phones is written...it has two number one is
0421 & other is 0445...we’ll take these numbers as 0×421 & 0×445
0421 is the Vendor ID (vid) & 04f0 is the Product ID (pid)
Now enter this command.
sudo /sbin/modprobe usbserial vendor=0x(vid) product=0x(pid)
eg, in my case::: sudo /sbin/modprobe usbserial vendor=0×421 product=0×4f0
Now enter this command
wvdialconf create
you’ll get a long output which will be like -
sam@sam-desktop:~$ sudo /sbin/modprobe usbserial vendor=0×421 product=0×4f0
Password:
riaz@riaz-desktop:~$ wvdialconf creat
Editing `creat’.
Scanning your serial ports for a modem.
ttyS0: ATQ0 V1 E1 — failed with 2400 baud, next try: 9600 baud
ttyS0: ATQ0 V1 E1 — failed with 9600 baud, next try: 115200 baud
ttyS0: ATQ0 V1 E1 — and failed too at 115200, giving up.
Modem Port Scan: S1 S2 S3
WvModem: Cannot get information for serial port.
ttyACM0: ATQ0 V1 E1 — OK
ttyACM0: ATQ0 V1 E1 Z — OK
ttyACM0: ATQ0 V1 E1 S0=0 — OK
ttyACM0: ATQ0 V1 E1 S0=0 &C1 — OK
ttyACM0: ATQ0 V1 E1 S0=0 &C1 &D2 — OK
ttyACM0: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 — OK
ttyACM0: Modem Identifier: ATI — Nokia
ttyACM0: Speed 4800: AT — OK
ttyACM0: Speed 9600: AT — OK
ttyACM0: Speed 19200: AT — OK
ttyACM0: Speed 38400: AT — OK
ttyACM0: Speed 57600: AT — OK
ttyACM0: Speed 115200: AT — OK
ttyACM0: Speed 230400: AT — OK
ttyACM0: Speed 460800: AT — OK
ttyACM0: Max speed is 460800; that should be safe.
ttyACM0: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 — OK
WvModem: Cannot get information for serial port.
ttyUSB0: ATQ0 V1 E1 — failed with 2400 baud, next try: 9600 baud
ttyUSB0: ATQ0 V1 E1 — failed with 9600 baud, next try: 115200 baud
ttyUSB0: ATQ0 V1 E1 — and failed too at 115200, giving up.
Found an USB modem on /dev/ttyACM0.
creat: Can’t open ‘creat’ for reading: No such file or directory
creat: ...starting with blank configuration.
Modem configuration written to creat.
ttyACM0: Speed 460800; init “ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0′′
Now.. Notice the output says that there is a modem at /dev/ttyACM0 & max speed is
460800
Now enter this command
sudo gedit /etc/wvdial.conf
A file will open in text editor...now delete everything in that file & paste the following
there
[Dialer Defaults]
Modem = Your Modem Name (eg, /dev/ttyACM0 in my case)
Baud = your max speed (460800 in my case)
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ISDN = 0
Modem Type = Analog Modem
Phone = *99#
Username = gp
Password = gp
Stupid Mode = 1
Save the file & you are done
Now whenever u need to connect...open terminal & type wvdial,, wait till some sort of
IP address is displayed like
pppd: [06][06][08]` [06][08]
primary DNS address 218.248.240.135
pppd: [06][06][08]` [06][08]
secondary DNS address 218.248.240.79
pppd: [06][06][08]` [06][08]
Now you are connected....hit cntrl+c to disconnect...
U can also create a launcher on desktop (application in terminal) & keep the command as
wvdial.now double click it & u r connected
For Download UBUNTU Click Here:
http://mirror.u-soft.dk/ubuntu-releases/hardy/ubuntu-8.04-server-i386.iso
Ubuntu Edition: Ubuntu 8.04 server
Computer Platform: i386
Download Location: http://mirror.u-soft.dk/ubuntu-releases/







By following the above steps, I have got mywvdial.config file as below. So the user of GP modem, can use the following code as that file:


[Dialer Defaults]
Modem = /dev//ttyUSB0
Baud = 9600
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ISDN = 0
Modem Type = Analog Modem
Phone = *99#
Username = gp
Password = gp
Stupid Mode = 1

Friday, August 21, 2009

HuFa: Human Face Recognition



On the basis of artificial neural network, if we try to build a system for human face recognition system, we can take the following input vector. On the Project based on PredictDemo, I used the above input vectors.

Linux's

For Beginners:
Linux Reviewers
Learn Linux
Low fat Linux

Linux Course for beginners:
Lessons for beginners

Some links:
Linux Commands
LInux at Onlamp
COmmands of linux
Pixel bit
Commands
Linux Commands on ss64
Linux shortcut on unix guide



Learn to use Linux
Linux use