Pelephone 3G modem and NetowrkManager

Pelephone 3G modem and NetowrkManager

Tzafrir Cohen tzafrir at cohens.org.il
Wed Sep 22 01:14:11 IST 2010


Hi

I tried to use my mobile phone as a gsm modem.
I had strange error at the PPP connection time. Basically along the
lines of:


PAP authentication succeeded
** Message: nm-ppp-plugin: (nm_phasechange): status 8 / phase 'network'
sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
rcvd [LCP ProtRej id=0x2 80 fd 01 01 00 0f 1a 04 78 00 18 04 78 00 15 03 2f]
Protocol-Reject for 'Compression Control Protocol' (0x80fd) received
rcvd [LCP TermReq id=0x3 "PDP context activation failed, no network protocol running"]
LCP terminated by peer (PDP context activation failed, no network protocol running)
** Message: nm-ppp-plugin: (nm_phasechange): status 5 / phase 'establish'
sent [LCP TermAck id=0x3]
Modem hangup

(This is from running NM_PPP_DEBUG=1 NetworkManager --no-daemon )


After some debugging and consulting the #nm IRC channel, it eventually
turned out that the problem is in the APN value I used. It contained an
extra space in the end.

The source for that extra space is:

$ grep -A8 Pelephone /usr/share/mobile-broadband-provider-info/serviceproviders.xml
                <name>Pelephone</name>
                <gsm>
                        <network-id mcc="425" mnc="03"/>
                        <apn value="internet.pelephone.net.il ">
                                <name>3G</name>
                                <username>pcl at 3g</username>
                                <password>pcl</password>
                        </apn>
                </gsm>

Note the 'value' attribute of the <apn> tag.

So if you want to connect there, make sure you don't have a trailing
space for the 'apn' value.


BTW: wvdial turned out to be generally simpler and with more chances of
working. But you have to tell it which TTY to use, which is annoying.

My current wvdial.conf: (I used 'wvdial Samsung pelephone')

[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = Analog Modem
Baud = 9600
New PPPD = yes
ISDN = 0


[Dialer pelephone]
Init3 = AT+CGDCONT=1,"IP","internet.pelephone.net.il"
Password = pcl
Ask Password = 0
Phone = *99#
Idle Seconds = 0
Modem Type = Analog Modem
Stupid Mode = 1
Compuserve = 0
Baud = 9600
Auto DNS = 1
Dial Command = ATDT
Modem = /dev/ttyUSB2
Username = pcl at 3g
Check Def Route = 1

[Dialer orange]
Check Def Route = 1
; Stupid Mode = 1
Phone = *99#
Init3 = AT+CGDCONT=1,"IP","uinternet"
Modem = /dev/ttyUSB4
Username = orange
Password = orange

[Dialer Samsung]
Modem = /dev/ttyACM0

-- 
Tzafrir Cohen         | tzafrir at jabber.org | VIM is
http://tzafrir.org.il |                    | a Mutt's
tzafrir at cohens.org.il |                    |  best
tzafrir at debian.org    |                    | friend



More information about the Linux-il mailing list