How to dialup using a mobile phone via irdaForum: DSL Tips and Tricks Topic: How to dialup using a mobile phone via irda started by: Juanito Posted by Juanito on Feb. 07 2007,07:55
This is part 2 of the DSL irda how-to. In order to proceed from here, you will need to have irda up and running on your DSL machine as described in part 1 - see post "How to start irda & check it works"In order to connect to the modem in your mobile phone over an irda connection, you need to first make sure that the irda mode on the phone is set to "modem" and not "pc-connect" or similar. Apparently, although the irda link can be used for dial-up and file transfers, it needs to be told which to expect. I have not been able to use microcom to connect to an irda modem, but had no problems to use wvdial from Debian stable and have it discover the modem automatically: # apt-get install wvdial # wvdialconf /etc/wvdial.conf Scanning your serial ports for a modem. ... ircomm0<*1>: ATQ0 V1 E1 -- OK ircomm0<*1>: ATQ0 V1 E1 Z -- OK ircomm0<*1>: ATQ0 V1 E1 S0=0 -- OK ircomm0<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK ircomm0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK ircomm0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK ircomm0<*1>: Modem Identifier: ATI -- P900 ircomm0<*1>: Speed 19200: AT -- OK ircomm0<*1>: Speed 38400: AT -- OK ircomm0<*1>: Speed 57600: AT -- OK ircomm0<*1>: Speed 115200: AT -- OK ircomm0<*1>: Speed 230400: AT -- OK ircomm0<*1>: Speed 460800: AT -- OK ircomm0<*1>: Max speed is 460800; that should be safe. ircomm0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK ... Found a modem on /dev/ircomm0. Modem configuration written to /etc/wvdial. ircomm0<Info>: Speed 9600; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0" ircomm1<Info>: Speed 9600; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0" So, even though irda apparently starts up on irda0, wvdial detects a modem on both ircomm0 and ircomm1. In my case, wvdial only produced a conf file for ircomm0 so I edited that for use: ~$ cat /etc/wvdial.conf [Dialer Defaults] Modem = /dev/ircomm0 Baud = 9600 [change to 115200] Init1 = ATZ Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 ISDN = 0 Modem Type = Analog Modem ; Phone = <Target Phone Number> [remove ";" and add ISP number] ; Username = <Your Login Name> [remove ";" and add ISP login] ; Password = <Your Password> [remove ";" and add ISP password] Once /etc/wvdial.conf is edited and saved, you can go ahead with the dial-up: # wvdial --> WvDial: Internet dialer version 1.54.0 --> Initializing modem. --> Sending: ATZ ATZ OK --> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 OK --> Modem initialized. --> Sending: ATDT123456789 --> Waiting for carrier. ATDT123456789 CONNECT 9600 [I think is due to a setting in my phone] --> Carrier detected. Waiting for prompt. Username: --> Looks like a login prompt. --> Sending: xxxx xxxx Password: --> Looks like a password prompt. --> Sending: (password) --> Don't know what to do! Starting pppd and hoping for the best. --> Starting pppd at Sun Feb 4 14:49:04 2007 --> pid of pppd: 1486 --> Using interface ppp0 --> local IP address 217.165.202.231 --> remote IP address 217.165.202.231 --> primary DNS address 195.229.241.222 --> secondary DNS address 213.42.20.20 ... Success ... ctrl-c> Caught signal #2! Attempting to exit gracefully... --> Terminating on signal 15. --> Disconnecting That's it - I'm working on GPRS over irda, it apparently connects, but no Internet so far... |