Could somebody please help me before I rip my hair out 
I'm trying to get a samsung e370 phone to connect as a modem on linux but it keeps disconnecting about 3 seconds after it connects saying that the modem has hung up
Here is the output from wvdial:
Here is my wvdial.conf file:
Here is the last few lines of debug output from pppd:
Sorry for such a long post, dont wanna leave anything out
The phone works fine on a windows machine.
I can use a samsung u700 on the same linux machine and the exact same commands ands files work (except the ttyACM0 is ttyUSB2 though)
I'm trying to get a samsung e370 phone to connect as a modem on linux but it keeps disconnecting about 3 seconds after it connects saying that the modem has hung up
Here is the output from wvdial:
Code:
--> WvDial: Internet dialer version 1.53
--> Initializing modem.
--> Sending: ATZ
--> Sending: ATQ0
ATQ0
OK
--> Re-Sending: ATZ
ATZ
OK
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: AT+CGDCONT=1,"IP","INTERNET"
AT+CGDCONT=1,"IP","INTERNET"
OK
--> Modem initialized.
--> Sending: ATDT*99#
--> Waiting for carrier.
ATDT*99#
CONNECT
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Thu Feb 19 11:27:35 2009
--> pid of pppd: 16914
--> Disconnecting at Thu Feb 19 11:27:39 2009
--> The PPP daemon has died: A modem hung up the phone (exit code = 16)
--> man pppd explains pppd error codes in more detail.
--> Try again and look into /var/log/messages and the wvdial and pppd man pages for more information.
Here is my wvdial.conf file:
Code:
[Dialer Defaults]
Stupid Mode = yes
Modem Type = Analog Modem
Phone = *99#
Username = ;
Password = ;
Init1 = ATZ
Init2 = AT+CGDCONT=1,"IP","INTERNET"
Modem = /dev/ttyACM0
Here is the last few lines of debug output from pppd:
Code:
Feb 19 11:27:35 (none) daemon.notice pppd[16914]: pppd 2.4.4 started by root, uid 0
Feb 19 11:27:35 (none) daemon.debug pppd[16914]: using channel 18
Feb 19 11:27:35 (none) daemon.info pppd[16914]: Using interface ppp0
Feb 19 11:27:35 (none) daemon.notice pppd[16914]: Connect: ppp0 <--> /dev/ttyACM0
Feb 19 11:27:35 (none) daemon.warn pppd[16914]: Warning - secret file /etc/ppp/pap-secrets has world and/or group access
Feb 19 11:27:35 (none) daemon.debug pppd[16914]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xb7c1cfa7> <pcomp> <accomp>]
Feb 19 11:27:35 (none) daemon.debug pppd[16914]: rcvd [LCP ConfReq id=0x1 <asyncmap 0xa0000> <auth pap>]
Feb 19 11:27:35 (none) daemon.debug pppd[16914]: No auth is possible
Feb 19 11:27:35 (none) daemon.debug pppd[16914]: sent [LCP ConfRej id=0x1 <auth pap>]
Feb 19 11:27:35 (none) daemon.debug pppd[16914]: rcvd [LCP ConfRej id=0x1 <magic 0xb7c1cfa7> <pcomp> <accomp>]
Feb 19 11:27:35 (none) daemon.debug pppd[16914]: sent [LCP ConfReq id=0x2 <asyncmap 0x0>]
Feb 19 11:27:35 (none) daemon.debug pppd[16914]: rcvd [LCP ConfReq id=0x2 <asyncmap 0xa0000>]
Feb 19 11:27:35 (none) daemon.debug pppd[16914]: sent [LCP ConfAck id=0x2 <asyncmap 0xa0000>]
Feb 19 11:27:35 (none) daemon.debug pppd[16914]: rcvd [LCP ConfAck id=0x2 <asyncmap 0x0>]
Feb 19 11:27:35 (none) daemon.debug pppd[16914]: sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
Feb 19 11:27:35 (none) daemon.debug pppd[16914]: 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>]
Feb 19 11:27:35 (none) daemon.debug pppd[16914]: rcvd [LCP TermReq id=0x3 "peer refused to authenticate"]
Feb 19 11:27:35 (none) daemon.info pppd[16914]: LCP terminated by peer (peer refused to authenticate)
Feb 19 11:27:35 (none) daemon.debug pppd[16914]: sent [LCP TermAck id=0x3]
Feb 19 11:27:35 (none) daemon.debug pppd[16914]: rcvd [LCP ProtRej id=0x4 80 fd 01 01 00 0f 1a 04 78 00 18 04 78 00 15 03 2f]
Feb 19 11:27:38 (none) daemon.notice pppd[16914]: Connection terminated.
Feb 19 11:27:38 (none) daemon.notice pppd[16914]: Modem hangup
Feb 19 11:27:38 (none) daemon.info pppd[16914]: Exit.
Sorry for such a long post, dont wanna leave anything out
The phone works fine on a windows machine.
I can use a samsung u700 on the same linux machine and the exact same commands ands files work (except the ttyACM0 is ttyUSB2 though)