Qtopia Home - Classes - Hierachy - Annotated - Functions - Licenses - Reference - Qt Embedded |
|
Qtopia has the facilities to configure and connect a GRPS connection as required. This document is provided to help resolve problems in establishing a GRPS connection.
Qtopia uses the dialup network plugin to establishing a connection see : $QPEDIR/src/plugins/networking/dialup/
In the ideal case
Scripts can be provided on request and may be customized to suit your device and GPRS provider. For example:
ABORT "NO CARRIER"
ABORT "NO DIALTONE"
ABORT BUSY
# Change the word internet to the name of your providers APN
"" "AT+CGDCONT=1,\"IP\",\"internet\""
OK "AT+CGATT=1"
OK "ATDT*99***1#"
\d+++\d\c OK
ATH0 OK
#!/bin/sh
#
# Start a pppd session via GPRS
#
# Usage:
# startpppd.sh [PPP peer to call]
#
# The following notes apply to the pppd options used. See the pppd man page for more details
# ttyS0 : change to the device that modem is connected to
# 115200 : lower modem speed if required
# noipdefault: pppd must not propose any IP address to the peer!
# ipcp-accept-local : Accept peers idea of our local address
# modem : use modem control lines; change modem to local if required
# novj : Disable all compression
# record /tmp/ppp-all-text.log : record all traffic to file shown
set -x
if [ -z "$1" ]; then
/usr/sbin/pppd \
ttyS0 \
115200 \
connect 'chat -s -v -f connect-chat' \
disconnect 'chat -s -v -- -f disconnect-chat' \
crtscts \
defaultroute \
replacedefaultroute \
noipdefault \
ipcp-accept-local \
modem \
usepeerdns \
demand \
connect-delay 5000 \
idle 120 \
nodetach \
lcp-echo-failure 0 \
lcp-echo-interval 0 \
novj \
nobsdcomp \
novjccomp \
nopcomp \
noaccomp \
debug
else
# call the specified peer
/usr/sbin/pppd call $1 \
connect 'chat -s -v -f connect-chat' \
disconnect 'chat -s -v -- -f disconnect-chat' \
record /tmp/ppp-all-text.log \
debug
fi
A debug build of Qtopia will cause all AT commands being used to be printed to standard output. If required rebuild Qtopia with debugging enabled via running :
cd $QPEDIR
make distclean
./configure -debug <extra options>
make
make cleaninstall
By default a packet size of 1500 will be used by pppd for GPRS traffic. In cases of poor signal quality it may be necessary to decrease the "mru" and "mtu" packet size being used by pppd, to for 512. See the pppd man page for details on setting mru and mtu values.
debug
record /tmp/ppp-all-text.log
ping 216.239.39.99
| Copyright © 2005 Trolltech | Trademarks | Qtopia version 2.1.2
|