[Ilugc] Mandriva + sony ericsson + AT commands serial port issue

  • From: ramkumarcrk@xxxxxxxxx (Ramkumar)
  • Date: Sun Feb 22 22:36:30 2009

Hi Friend,
               Use This one.i am using Nokia Mobile .So I Choose  Nokia
Mode  when i connect my mobile  with PC through cable , then follow this
one....
Connect your phone via datacable
open terminal & type

lsusb

now you will get the following output

owais@owais-desktop:~$ lsusb
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 004: ID 0421:0445 Nokia Mobile Phones
Bus 001 Device 002: ID 046d:092f Logitech, Inc.
Bus 001 Device 001: ID 0000:0000
owais@owais-desktop:~$


it is on my compter,your will not be exactly the same...

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 0x421 &
0x445

0421 is the Vendor ID & 0445 is the Product ID

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?445

Now enter this command

wvdialconf /etc/wvdial.conf


u'll get a long output which will be like

Scanning your serial ports for a modem.
Port Scan: S0 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
Found an USB modem on /dev/ttyACM0.
Modem configuration written to create.
ttyACM0: Speed 460800; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0?


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...paste the following there
(Your phone number may vary depending on your provider....Call em' now....)

Phone = *99#
Username = username
Password = password
Stupid Mode = 1



You Can Also delete everything & paste this

[Dialer Defaults]
Modem = Your Modem Name(eg, /dev/ttyACM0 in my case)
Baud = ur 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 = username
Password = password
Stupid Mode = 1

save the file & you are done


Whenevr you need to connect...open terminal & type

wvdial

wait till some sort of IP adress 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 dissconnect...



You can also create a laucher on desktop(application in terminal) & keep the
command as wvdial..now double click it to connected connected.

Other related posts: