|
gprs/umts connection with pppd
Hi all.
I'm using a embedded ARM9 device and the UMTS/GPRS USB Modem MD300 from Sony Ericsson. Unfortunately I'm still facing some problems with the connection which does fail... The pppd-log does say the following:
####################
Starting GPRS connect script
Setting APN
Dialing...
Serial connection established.
using channel 2
Using interface ppp0
Connect: ppp0 <--> /dev/ttyACM0
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x4d37b8ad> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x2 <accomp> <pcomp> <asyncmap 0x0> <magic 0xb4dcd12b>]
sent [LCP ConfAck id=0x2 <accomp> <pcomp> <asyncmap 0x0> <magic 0xb4dcd12b>]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x4d37b8ad> <pcomp> <accomp>]
sent [LCP EchoReq id=0x0 magic=0x4d37b8ad]
sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <compress VJ 0f 01> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
Hangup (SIGHUP)
sent [CCP ConfReq id=0x1 <bsd v1 15>]
rcvd [LCP EchoRep id=0x0 magic=0xb4dcd12b]
ioctl(PPPIOCSASYNCMAP): Inappropriate ioctl for device(25)
tcflush failed: Input/output error
#################### the peer-file does look like this:
# File: /etc/ppp/peers/chtgprs
#
/dev/ttyACM0
115200
defaultroute
noipdefault
usepeerdns
noauth
modem
debug
logfile /var/log/ppp
lcp-echo-failure 4
lcp-echo-interval 65535
connect "/bin/chat -v -f /etc/chatscripts/chtgprs-connect"
#################### and here the used chatscript:
# File: /etc/chatscripts/chtgprs-connect
#
TIMEOUT 10
ABORT 'BUSY'
ABORT 'NO ANSWER'
ABORT 'ERROR'
SAY 'Starting GPRS connect script\n'
# Get the modem's attention and reset it.
"" 'ATZ'
# E0=No echo, V1=English result codes
OK 'ATE0V1'
# Set Access Point Name (APN)
SAY 'Setting APN\n'
OK 'AT+CGDCONT=1,"IP","gprs.swisscom.ch"'
# Dial the number
ABORT 'NO CARRIER'
SAY 'Dialing...\n'
OK 'ATD*99***1#'
CONNECT ''
####################
Beside the APN no username or password are necessary for a connection with this provider (I tested this with other devices).
Can anyone see the problem looking at the log-messages?
Thanks,
swake
|