Hello,

I'd like to share my working ppp.conf here (for Vodafone Germany)
and would like to learn any good tricks from other mobile users.

I run the ircomm (of the comms/birda-1.1 package on a 3.7 -stable installed 
on a Thinkpad T41) to connect to a Nokia 9300 commie through infrared port.

        laptop72:afarber {555} dmesg | grep pccom
        pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo

Currently I launch ircomm from ppp.conf and pkill it from ppp.linkdown:

        laptop72:afarber {556} cat /etc/ppp/ppp.conf
        default:
                set log Phase Chat LCP IPCP CCP tun command
                shell ircomm -Y -d /dev/cua01 -v 2 -y /dev/ptyps
                set device /dev/ttyps
                set speed 115200
                set ifaddr 10.0.0.1/0 10.0.0.2/0 0.0.0.0 0.0.0.0
                add! default HISADDR
                enable dns

        gprs:
                set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\"
AT OK-AT-OK AT&F&K4 OK AT+CGDCONT=1,\\\"IP\\\",\\\"web.vodafone.de\\\"
OK ATD*99# TIMEOUT 30 CONNECT"

        hscsd:
                set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\"
AT OK-AT-OK AT&F&K4 OK AT+CBST=81 OK \\dATDT\\T TIMEOUT 30 CONNECT"
                set phone 0049172229000

        laptop72:afarber {557} cat /etc/ppp/ppp.linkdown
        MYADDR:
                shell pkill "ircomm -Y"

It works, but I still have some questions (I'm still rereading "man 8 ppp"):

1) Is there a nicer way to start ircomm/detect its failure?

2) Are there any compression options to enable/disable in ppp.conf?
     I've tried "set vj slotcomp off", but couldn't see any difference

3) In Nokia 9300 I have to run Desk->Tools->Modem to switch on
     its infrared port (and then it works fine as a modem and I'm able
     to enter "term" on the ppp prompt and issue "AT"-commands).
     But when I switch on infrared with the blue "Chr" button, then
     ircomm fails to connect to it: "failed to match ports, NYI".
     That message is coming from birda-1.1/src/commclt.c and
     looks like some mismatch. Wonder if that could be fixed...

Regards
Alex

PS: I used this German article to find the AT-command and set up my ppp
http://www.linux-magazin.de/Artikel/ausgabe/2002/10/gprs/gprs.html?print=y

PPS: My GPRS ppp.log (talks something about VJ?)

Sep 20 17:25:50 laptop72 ppp[28253]: Phase: Using interface: tun0 
Sep 20 17:25:50 laptop72 ppp[28253]: Phase: deflink: Created in closed state 
Sep 20 17:25:50 laptop72 ppp[28253]: tun0: Command: default: shell
ircomm -Y -d /dev/cua01 -v 2 -y /dev/ptyps
Sep 20 17:25:50 laptop72 ppp[28253]: tun0: Command: default: set
device /dev/ttyps
Sep 20 17:25:50 laptop72 ppp[28253]: tun0: Command: default: set speed 115200 
Sep 20 17:25:50 laptop72 ppp[28253]: tun0: Command: default: set
ifaddr 10.0.0.1/0 10.0.0.2/0 0.0.0.0 0.0.0.0
Sep 20 17:25:50 laptop72 ppp[28253]: tun0: Command: default: add!
default HISADDR
Sep 20 17:25:50 laptop72 ppp[28253]: tun0: Command: default: enable dns 
Sep 20 17:25:50 laptop72 ppp[28253]: tun0: Command: gprs: set dial
ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 "" AT OK-AT-OK AT&F&K4 OK
AT+CGDCONT=1,\\"IP\\",\\"web.vodafone.de\\" OK ATD*99# TIMEOUT 30
CONNECT
Sep 20 17:25:50 laptop72 ppp[28253]: tun0: Phase: PPP Started
(foreground mode).
Sep 20 17:25:50 laptop72 ppp[28253]: tun0: Phase: bundle: Establish 
Sep 20 17:25:50 laptop72 ppp[28253]: tun0: Phase: deflink: closed -> opening 
Sep 20 17:25:50 laptop72 ppp[28253]: tun0: Phase: deflink: Connected! 
Sep 20 17:25:50 laptop72 ppp[28253]: tun0: Phase: deflink: opening -> dial 
Sep 20 17:25:50 laptop72 ppp[28253]: tun0: Chat: deflink: Dial attempt 1 of 1 
Sep 20 17:25:50 laptop72 ppp[28253]: tun0: Chat: Send: AT\^M 
Sep 20 17:25:50 laptop72 ppp[28253]: tun0: Chat: Expect(5): OK 
Sep 20 17:25:51 laptop72 ppp[28253]: tun0: Chat: Received: AT\^M\^M 
Sep 20 17:25:51 laptop72 ppp[28253]: tun0: Chat: Received: OK\^M 
Sep 20 17:25:51 laptop72 ppp[28253]: tun0: Chat: Send: AT&F&K4\^M 
Sep 20 17:25:51 laptop72 ppp[28253]: tun0: Chat: Expect(5): OK 
Sep 20 17:25:51 laptop72 ppp[28253]: tun0: Chat: Received: AT&F&K4\^M\^M 
Sep 20 17:25:51 laptop72 ppp[28253]: tun0: Chat: Received: OK\^M 
Sep 20 17:25:51 laptop72 ppp[28253]: tun0: Chat: Send:
AT+CGDCONT=1,"IP","web.vodafone.de"\^M
Sep 20 17:25:51 laptop72 ppp[28253]: tun0: Chat: Expect(5): OK 
Sep 20 17:25:51 laptop72 ppp[28253]: tun0: Chat: Received:
AT+CGDCONT=1,"IP","web.vodafone.de"\^M\^M
Sep 20 17:25:51 laptop72 ppp[28253]: tun0: Chat: Received: OK\^M 
Sep 20 17:25:51 laptop72 ppp[28253]: tun0: Chat: Send: ATD*99#\^M 
Sep 20 17:25:51 laptop72 ppp[28253]: tun0: Chat: Expect(30): CONNECT 
Sep 20 17:25:52 laptop72 ppp[28253]: tun0: Chat: Received: ATD*99#\^M\^M 
Sep 20 17:25:52 laptop72 ppp[28253]: tun0: Chat: Received: CONNECT\^M 
Sep 20 17:25:52 laptop72 ppp[28253]: tun0: Phase: deflink: dial -> carrier 
Sep 20 17:25:53 laptop72 ppp[28253]: tun0: Phase: deflink: carrier -> login 
Sep 20 17:25:53 laptop72 ppp[28253]: tun0: Phase: deflink: login -> lcp 
Sep 20 17:25:53 laptop72 ppp[28253]: tun0: LCP: FSM: Using "deflink"
as a transport
Sep 20 17:25:53 laptop72 ppp[28253]: tun0: LCP: deflink: State change
Initial --> Closed
Sep 20 17:25:53 laptop72 ppp[28253]: tun0: LCP: deflink: State change
Closed --> Stopped
Sep 20 17:25:53 laptop72 ppp[28253]: tun0: LCP: deflink:
RecvConfigReq(0) state = Stopped
Sep 20 17:25:53 laptop72 ppp[28253]: tun0: LCP:  AUTHPROTO[4] 0xc023 (PAP) 
Sep 20 17:25:53 laptop72 ppp[28253]: tun0: LCP:  MRU[4] 1500 
Sep 20 17:25:53 laptop72 ppp[28253]: tun0: LCP:  ACCMAP[6] 0x000a0000 
Sep 20 17:25:53 laptop72 ppp[28253]: tun0: LCP: deflink:
SendConfigReq(1) state = Stopped
Sep 20 17:25:53 laptop72 ppp[28253]: tun0: LCP:  ACFCOMP[2] 
Sep 20 17:25:53 laptop72 ppp[28253]: tun0: LCP:  PROTOCOMP[2] 
Sep 20 17:25:53 laptop72 ppp[28253]: tun0: LCP:  ACCMAP[6] 0x00000000 
Sep 20 17:25:53 laptop72 ppp[28253]: tun0: LCP:  MRU[4] 1500 
Sep 20 17:25:53 laptop72 ppp[28253]: tun0: LCP:  MAGICNUM[6] 0x327285d8 
Sep 20 17:25:53 laptop72 ppp[28253]: tun0: LCP: deflink:
SendConfigAck(0) state = Stopped
Sep 20 17:25:53 laptop72 ppp[28253]: tun0: LCP:  AUTHPROTO[4] 0xc023 (PAP) 
Sep 20 17:25:53 laptop72 ppp[28253]: tun0: LCP:  MRU[4] 1500 
Sep 20 17:25:53 laptop72 ppp[28253]: tun0: LCP:  ACCMAP[6] 0x000a0000 
Sep 20 17:25:53 laptop72 ppp[28253]: tun0: LCP: deflink: LayerStart 
Sep 20 17:25:53 laptop72 ppp[28253]: tun0: LCP: deflink: State change
Stopped --> Ack-Sent
Sep 20 17:25:53 laptop72 ppp[28253]: tun0: LCP: deflink:
RecvConfigRej(1) state = Ack-Sent
Sep 20 17:25:53 laptop72 ppp[28253]: tun0: LCP:  ACFCOMP[2] 
Sep 20 17:25:53 laptop72 ppp[28253]: tun0: LCP:  PROTOCOMP[2] 
Sep 20 17:25:53 laptop72 ppp[28253]: tun0: LCP:  MAGICNUM[6] 0x327285d8 
Sep 20 17:25:53 laptop72 ppp[28253]: tun0: LCP:  Magic 0x327285d8 is REJected! 
Sep 20 17:25:53 laptop72 ppp[28253]: tun0: LCP: deflink:
SendConfigReq(2) state = Ack-Sent
Sep 20 17:25:53 laptop72 ppp[28253]: tun0: LCP:  ACCMAP[6] 0x00000000 
Sep 20 17:25:53 laptop72 ppp[28253]: tun0: LCP:  MRU[4] 1500 
Sep 20 17:25:53 laptop72 ppp[28253]: tun0: LCP: deflink:
RecvConfigAck(2) state = Ack-Sent
Sep 20 17:25:53 laptop72 ppp[28253]: tun0: LCP:  ACCMAP[6] 0x00000000 
Sep 20 17:25:53 laptop72 ppp[28253]: tun0: LCP:  MRU[4] 1500 
Sep 20 17:25:53 laptop72 ppp[28253]: tun0: LCP: deflink: State change
Ack-Sent --> Opened
Sep 20 17:25:53 laptop72 ppp[28253]: tun0: LCP: deflink: LayerUp 
Sep 20 17:25:53 laptop72 ppp[28253]: tun0: Phase: bundle: Authenticate 
Sep 20 17:25:53 laptop72 ppp[28253]: tun0: Phase: deflink: his = PAP,
mine = none
Sep 20 17:25:53 laptop72 ppp[28253]: tun0: Phase: Pap Output:  ******** 
Sep 20 17:25:53 laptop72 ppp[28253]: tun0: Warning: Sending empty PAP authname! 
Sep 20 17:25:53 laptop72 ppp[28253]: tun0: Phase: Pap Input: SUCCESS () 
Sep 20 17:25:53 laptop72 ppp[28253]: tun0: IPCP: Using trigger address 0.0.0.0 
Sep 20 17:25:53 laptop72 ppp[28253]: tun0: CCP: FSM: Using "deflink"
as a transport
Sep 20 17:25:53 laptop72 ppp[28253]: tun0: CCP: deflink: State change
Initial --> Closed
Sep 20 17:25:53 laptop72 ppp[28253]: tun0: CCP: deflink: LayerStart. 
Sep 20 17:25:53 laptop72 ppp[28253]: tun0: CCP: MPPE: Not usable without CHAP81 
Sep 20 17:25:53 laptop72 ppp[28253]: tun0: CCP: deflink:
SendConfigReq(1) state = Closed
Sep 20 17:25:53 laptop72 ppp[28253]: tun0: CCP:  DEFLATE[4] win 15 
Sep 20 17:25:53 laptop72 ppp[28253]: tun0: CCP:  PRED1[2]  
Sep 20 17:25:53 laptop72 ppp[28253]: tun0: CCP: deflink: State change
Closed --> Req-Sent
Sep 20 17:25:53 laptop72 ppp[28253]: tun0: Phase: deflink: lcp -> open 
Sep 20 17:25:53 laptop72 ppp[28253]: tun0: Phase: bundle: Network 
Sep 20 17:25:53 laptop72 ppp[28253]: tun0: IPCP: FSM: Using "deflink"
as a transport
Sep 20 17:25:53 laptop72 ppp[28253]: tun0: IPCP: deflink: State change
Initial --> Closed
Sep 20 17:25:53 laptop72 ppp[28253]: tun0: IPCP: deflink: LayerStart. 
Sep 20 17:25:53 laptop72 ppp[28253]: tun0: IPCP: deflink:
SendConfigReq(1) state = Closed
Sep 20 17:25:53 laptop72 ppp[28253]: tun0: IPCP:  IPADDR[6] 0.0.0.0 
Sep 20 17:25:53 laptop72 ppp[28253]: tun0: IPCP:  COMPPROTO[6] 16 VJ
slots with slot compression
Sep 20 17:25:53 laptop72 ppp[28253]: tun0: IPCP:  PRIDNS[6] 139.7.30.126 
Sep 20 17:25:53 laptop72 ppp[28253]: tun0: IPCP:  SECDNS[6] 255.255.255.255 
Sep 20 17:25:53 laptop72 ppp[28253]: tun0: IPCP: deflink: State change
Closed --> Req-Sent
Sep 20 17:25:53 laptop72 ppp[28253]: tun0: IPCP: deflink:
RecvConfigReq(0) state = Req-Sent
Sep 20 17:25:53 laptop72 ppp[28253]: tun0: IPCP:  IPADDR[6] 10.6.6.6 
Sep 20 17:25:53 laptop72 ppp[28253]: tun0: IPCP: deflink:
SendConfigAck(0) state = Req-Sent
Sep 20 17:25:53 laptop72 ppp[28253]: tun0: IPCP:  IPADDR[6] 10.6.6.6 
Sep 20 17:25:53 laptop72 ppp[28253]: tun0: IPCP: deflink: State change
Req-Sent --> Ack-Sent
Sep 20 17:25:53 laptop72 ppp[28253]: tun0: LCP: deflink:
RecvProtocolRej(0) state = Opened
Sep 20 17:25:53 laptop72 ppp[28253]: tun0: LCP: deflink: -- Protocol
0x80fd (Compression Control Protocol) was rejected!
Sep 20 17:25:53 laptop72 ppp[28253]: tun0: CCP: deflink: State change
Req-Sent --> Stopped
Sep 20 17:25:54 laptop72 ppp[28253]: tun0: IPCP: deflink:
RecvConfigRej(1) state = Ack-Sent
Sep 20 17:25:54 laptop72 ppp[28253]: tun0: IPCP:  COMPPROTO[6] 16 VJ
slots with slot compression
Sep 20 17:25:54 laptop72 ppp[28253]: tun0: IPCP: deflink:
SendConfigReq(2) state = Ack-Sent
Sep 20 17:25:54 laptop72 ppp[28253]: tun0: IPCP:  IPADDR[6] 0.0.0.0 
Sep 20 17:25:54 laptop72 ppp[28253]: tun0: IPCP:  PRIDNS[6] 139.7.30.126 
Sep 20 17:25:54 laptop72 ppp[28253]: tun0: IPCP:  SECDNS[6] 255.255.255.255 
Sep 20 17:25:54 laptop72 ppp[28253]: tun0: IPCP: deflink:
RecvConfigNak(2) state = Ack-Sent
Sep 20 17:25:54 laptop72 ppp[28253]: tun0: IPCP:  IPADDR[6] 10.226.205.244 
Sep 20 17:25:54 laptop72 ppp[28253]: tun0: IPCP:  IPADDR[6] changing
address: 0.0.0.0  --> 10.226.205
.244 
Sep 20 17:25:54 laptop72 ppp[28253]: tun0: IPCP:  PRIDNS[6] 139.7.30.125 
Sep 20 17:25:54 laptop72 ppp[28253]: tun0: IPCP:  SECDNS[6] 139.7.30.126 
Sep 20 17:25:54 laptop72 ppp[28253]: tun0: IPCP: Primary nameserver
set to 139.7.30.125
Sep 20 17:25:54 laptop72 ppp[28253]: tun0: IPCP: Secondary nameserver
set to 139.7.30.126
Sep 20 17:25:54 laptop72 ppp[28253]: tun0: IPCP: deflink:
SendConfigReq(3) state = Ack-Sent
Sep 20 17:25:54 laptop72 ppp[28253]: tun0: IPCP:  IPADDR[6] 10.226.205.244 
Sep 20 17:25:54 laptop72 ppp[28253]: tun0: IPCP:  PRIDNS[6] 139.7.30.125 
Sep 20 17:25:54 laptop72 ppp[28253]: tun0: IPCP:  SECDNS[6] 139.7.30.126 
Sep 20 17:25:54 laptop72 ppp[28253]: tun0: IPCP: deflink:
RecvConfigAck(3) state = Ack-Sent
Sep 20 17:25:54 laptop72 ppp[28253]: tun0: IPCP:  IPADDR[6] 10.226.205.244 
Sep 20 17:25:54 laptop72 ppp[28253]: tun0: IPCP:  PRIDNS[6] 139.7.30.125 
Sep 20 17:25:54 laptop72 ppp[28253]: tun0: IPCP:  SECDNS[6] 139.7.30.126 
Sep 20 17:25:54 laptop72 ppp[28253]: tun0: IPCP: deflink: State change
Ack-Sent --> Opened
Sep 20 17:25:54 laptop72 ppp[28253]: tun0: IPCP: deflink: LayerUp. 
Sep 20 17:25:54 laptop72 ppp[28253]: tun0: IPCP: myaddr 10.226.205.244
hisaddr = 10.6.6.6
Sep 20 17:25:54 laptop72 ppp[28253]: tun0: Warning: 0.0.0.0/0: Change
route failed: errno: No such process
Sep 20 17:25:54 laptop72 ppp[28253]: tun0: Warning: ff02::%tun0/32:
Change route failed: errno: Undefined error: 0
Sep 20 17:26:32 laptop72 ppp[28253]: tun0: Phase: Caught signal 2,
abort connection(s)
Sep 20 17:26:32 laptop72 ppp[28253]: tun0: CCP: deflink: State change
Stopped --> Closed
Sep 20 17:26:32 laptop72 ppp[28253]: tun0: CCP: deflink: State change
Closed --> Initial
Sep 20 17:26:32 laptop72 ppp[28253]: tun0: LCP: deflink: LayerDown 
Sep 20 17:26:32 laptop72 ppp[28253]: tun0: LCP: deflink: State change
Opened --> Starting
Sep 20 17:26:32 laptop72 ppp[28253]: tun0: Phase: deflink: open -> lcp 
Sep 20 17:26:32 laptop72 ppp[28253]: tun0: Warning: 0.0.0.0/0: Change
route failed: errno: No such process
..........
Sep 20 17:26:32 laptop72 ppp[28253]: tun0: Warning: ff02::%tun0/32:
Change route failed: errno: Undefined error: 0
Sep 20 17:26:32 laptop72 ppp[28253]: tun0: IPCP: deflink: LayerDown:
10.226.205.244
Sep 20 17:26:32 laptop72 ppp[28253]: tun0: Command: MYADDR: shell
pkill 'ircomm -Y'
Sep 20 17:26:32 laptop72 ppp[28253]: tun0: IPCP: Using trigger address 0.0.0.0 
Sep 20 17:26:32 laptop72 ppp[28253]: tun0: IPCP: deflink: State change
Opened --> Starting
Sep 20 17:26:32 laptop72 ppp[28253]: tun0: IPCP: deflink: LayerFinish. 
Sep 20 17:26:32 laptop72 ppp[28253]: tun0: IPCP: Connect time: 39
secs: 3618 octets in, 804 octets out
Sep 20 17:26:32 laptop72 ppp[28253]: tun0: IPCP: 8 packets in, 8 packets out 
Sep 20 17:26:32 laptop72 ppp[28253]: tun0: IPCP:  total 113 bytes/sec,
peak 860 bytes/sec on Tue Sep 20 17:26:16 2005
Sep 20 17:26:32 laptop72 ppp[28253]: tun0: IPCP: deflink: State change
Starting --> Initial
Sep 20 17:26:32 laptop72 ppp[28253]: tun0: LCP: deflink: LayerFinish 
Sep 20 17:26:32 laptop72 ppp[28253]: tun0: LCP: deflink: State change
Starting --> Initial
Sep 20 17:26:32 laptop72 ppp[28253]: tun0: Phase: deflink: Disconnected! 
Sep 20 17:26:32 laptop72 ppp[28253]: tun0: Phase: deflink: lcp -> logout 
Sep 20 17:26:32 laptop72 ppp[28253]: tun0: Phase: deflink: Disconnected! 
Sep 20 17:26:32 laptop72 ppp[28253]: tun0: Phase: deflink: logout -> hangup 
Sep 20 17:26:33 laptop72 ppp[28253]: tun0: Phase: deflink: Connect
time: 43 secs: 3963 octets in, 1283 octets out

Reply via email to