Re: RS232 GSM Modem



On Wed, 2010-06-02 at 12:09 +0200, Tom wrote:
> On Wed, 2010-06-02 at 00:54 -0700, Dan Williams wrote:
> > Hmm, what are you using to connect with PPP?  If you're using
> > NetworkManager, you can:
> > 
> > NM_PPP_DEBUG=1 NetworkManager --no-daemon
> > 
> > and get verbose PPP output which could help to debug the issue.
> > 
> > Note that PPP uses it's *own* baudrate, which you have to send to pppd
> > on the command line.  So if we dont' set that correctly, PPP may not
> > work.  But debug output from pppd including it's command-line options
> > might help us figure that out. 
> 
> i set the baudrate for ppp (in my system-settings connection). The
> output of NetworkManager (0.8 from debian testing repository) follows.
> In this case i used the modem with a usb<->adapter on my Lenovo R400
> laptop. But this should work, too.

Looks like the remote side doesn't like use of Compression Control
Protocol.  Try:

nobsdcomp=true
nodeflate=true
no-vj-comp=true

And see if that works?

Dan


> 
> 
> NetworkManager: <info>  Activation (ttyUSB1) starting connection 'TC63'
> NetworkManager: <info>  (ttyUSB1): device state change: 3 -> 4 (reason
> 0)
> NetworkManager: <info>  Activation (ttyUSB1) Stage 1 of 5 (Device
> Prepare) scheduled...
> NetworkManager: <info>  Activation (ttyUSB1) Stage 1 of 5 (Device
> Prepare) started...
> NetworkManager: <info>  Activation (ttyUSB1) Stage 1 of 5 (Device
> Prepare) complete.
> NetworkManager: <info>  Activation (ttyUSB1) Stage 2 of 5 (Device
> Configure) scheduled...
> NetworkManager: <info>  Activation (ttyUSB1) Stage 2 of 5 (Device
> Configure) starting...
> NetworkManager: <info>  (ttyUSB1): device state change: 4 -> 5 (reason
> 0)
> NetworkManager: <info>  Activation (ttyUSB1) Stage 2 of 5 (Device
> Configure) successful.
> NetworkManager: <info>  Activation (ttyUSB1) Stage 3 of 5 (IP Configure
> Start) scheduled.
> NetworkManager: <info>  Activation (ttyUSB1) Stage 2 of 5 (Device
> Configure) complete.
> NetworkManager: <info>  Activation (ttyUSB1) Stage 3 of 5 (IP Configure
> Start) started...
> NetworkManager: <info>  (ttyUSB1): device state change: 5 -> 7 (reason
> 0)
> NetworkManager: <info>  Starting pppd connection
> NetworkManager: <debug> [1275473061.909184] nm_ppp_manager_start():
> Command line: /usr/sbin/pppd nodetach lock nodefaultroute debug user
> vodafone ttyUSB1 noipdefault 57600 noauth usepeerdns lcp-echo-failure 0
> lcp-echo-interval 0 ipparam /org/freedesktop/NetworkManager/PPP/0
> plugin /usr/lib/pppd/2.4.4/nm-pppd-plugin.so
> NetworkManager: <debug> [1275473061.971552] nm_ppp_manager_start(): ppp
> started with pid 7242
> NetworkManager: <info>  Activation (ttyUSB1) Stage 4 of 5 (IP6 Configure
> Get) scheduled...
> NetworkManager: <info>  Activation (ttyUSB1) Stage 3 of 5 (IP Configure
> Start) complete.
> NetworkManager: <info>  Activation (ttyUSB1) Stage 4 of 5 (IP6 Configure
> Get) started...
> NetworkManager: <info>  Activation (ttyUSB1) Stage 4 of 5 (IP6 Configure
> Get) complete.
> Plugin /usr/lib/pppd/2.4.4/nm-pppd-plugin.so loaded.
> ** Message: nm-ppp-plugin: (plugin_init): initializing
> ** Message: nm-ppp-plugin: (nm_phasechange): status 3 / phase 'serial
> connection'
> using channel 1
> Using interface ppp0
> Connect: ppp0 <--> /dev/ttyUSB1
> ** Message: nm-ppp-plugin: (nm_phasechange): status 5 / phase
> 'establish'
> sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x74efb434> <pcomp>
> <accomp>]
> NetworkManager:    SCPlugin-Ifupdown: devices added
> (path: /sys/devices/virtual/net/ppp0, iface: ppp0)
> NetworkManager:    SCPlugin-Ifupdown: device added
> (path: /sys/devices/virtual/net/ppp0, iface: ppp0): no ifupdown
> configuration found.
> rcvd [LCP ConfNak id=0x1 <asyncmap 0xa0000>]
> sent [LCP ConfReq id=0x2 <asyncmap 0xa0000> <magic 0x74efb434> <pcomp>
> <accomp>]
> rcvd [LCP ConfAck id=0x2 <asyncmap 0xa0000> <magic 0x74efb434> <pcomp>
> <accomp>]
> rcvd [LCP ConfReq id=0x3 <mru 1600> <auth pap> <magic 0xb9051aaa>
> <asyncmap 0xa0000> <pcomp> <accomp>]
> sent [LCP ConfAck id=0x3 <mru 1600> <auth pap> <magic 0xb9051aaa>
> <asyncmap 0xa0000> <pcomp> <accomp>]
> ** Message: nm-ppp-plugin: (nm_phasechange): status 6 / phase
> 'authenticate'
> ** Message: nm-ppp-plugin: (get_credentials): passwd-hook, requesting
> credentials...
> ** Message: nm-ppp-plugin: (get_credentials): got credentials from
> NetworkManager
> sent [PAP AuthReq id=0x1 user="vodafone" password=<hidden>]
> rcvd [PAP AuthAck id=0x1 "TTP Com PPP - Password Verified OK"]
> Remote message: TTP Com PPP - Password Verified OK
> 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-dns3 0.0.0.0>]
> rcvd [LCP ProtRej id=0x0 80 fd 01 01 00 0f 1a 04 78 00 18 04 78 00 15 03
> 2f 32]
> Protocol-Reject for 'Compression Control Protocol' (0x80fd) received
> rcvd [LCP TermReq id=0x0 "Normal Termination by NCP"]
> LCP terminated by peer (Normal Termination by NCP)
> ** Message: nm-ppp-plugin: (nm_phasechange): status 5 / phase
> 'establish'
> sent [LCP TermAck id=0x0]
> ** Message: nm-ppp-plugin: (nm_phasechange): status 11 / phase
> 'disconnect'
> Connection terminated.
> NetworkManager: <info>  (ttyUSB1): device state change: 7 -> 9 (reason
> 13)
> NetworkManager: <info>  Marking connection 'TC63' invalid.
> NetworkManager: <info>  Activation (ttyUSB1) failed.
> NetworkManager: <info>  (ttyUSB1): device state change: 9 -> 3 (reason
> 0)
> NetworkManager: <info>  (ttyUSB1): deactivating device (reason: 0).
> NetworkManager: <info>  Policy set 'Auto eth0' (eth0) as default for
> routing and DNS.
> NetworkManager:    SCPlugin-Ifupdown: devices removed
> (path: /sys/devices/virtual/net/ppp0, iface: ppp0)
> ** Message: nm-ppp-plugin: (nm_phasechange): status 1 / phase 'dead'
> Terminating on signal 15
> Modem hangup
> ** Message: nm-ppp-plugin: (nm_exit_notify): cleaning up
> NetworkManager: <debug> [1275473069.000649] ensure_killed(): waiting for
> ppp pid 7242 to exit
> NetworkManager: <debug> [1275473069.000782] ensure_killed(): ppp pid
> 7242 cleaned up
> 
> 
> 
> My config is:
> 
> tom banane:/etc/NetworkManager/system-connections$ sudo cat TC63 
> 
> [connection]
> id=TC63
> uuid=2c0d314f-a2a5-4a3a-aac8-a92c575350c4
> type=gsm
> autoconnect=false
> timestamp=0
> 
> [ppp]
> noauth=true
> refuse-eap=false
> refuse-pap=false
> refuse-chap=false
> refuse-mschap=false
> refuse-mschapv2=false
> nobsdcomp=false
> nodeflate=false
> no-vj-comp=false
> require-mppe=false
> require-mppe-128=false
> mppe-stateful=false
> crtscts=false
> baud=57600
> mru=0
> mtu=0
> lcp-echo-failure=0
> lcp-echo-interval=0
> 
> [ipv4]
> method=auto
> ignore-auto-routes=false
> ignore-auto-dns=false
> dhcp-send-hostname=false
> never-default=false
> 
> [gsm]
> number=*99#
> username=vodafone
> password=vodafone
> apn=web.vodafone.de
> network-type=-1
> band=-1
> pin=1234
> allowed-bands=1
> 
> [serial]
> baud=57600
> bits=8
> parity=110
> stopbits=1
> send-delay=0
> 
> 
> 
> 
> 




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]