Qtopia: GPRS

Ole Kliemann ole-om-community-2008 at mail.plastictree.net
Tue Jul 29 01:39:43 CEST 2008


On Mon, Jul 28, 2008 at 07:57:01PM +0000, Ole Kliemann wrote:
> On Mon, Jul 28, 2008 at 06:32:18PM +0000, Ole Kliemann wrote:
> > Jul 28 16:29:29 om-gta02 user.notice Qtopia: Network :  starting pppd (non-demand) : "/usr/sbin/pppd nodetach debug call dialup1217032395 password simyo logfile /tmp/qtopia-0/qpe-pppd-log-dialup1217032395 connect /opt/Qtopia/bin/qtopia-pppd-internal active /home/root/Appl
> > Jul 28 16:29:29 om-gta02 user.notice Qtopia: Network :  Call state:  2 
> > Jul 28 16:29:29 om-gta02 user.notice Qtopia: Network :  Data state: "DataCall started dataInactive " 
> > Jul 28 16:29:29 om-gta02 user.notice Qtopia: /usr/sbin/pppd: unrecognized option '
> > Jul 28 16:29:29 om-gta02 user.notice Qtopia: '
> > Jul 28 18:29:29 om-gta02 daemon.err pppd[2905]: unrecognized option ' '
> 
> Problem is that Qtopia launches pppd with garbage in the first arg and
> without properly quoting. I made a blunt workaround using a shell
> script.
> 
> Still that wasn't all... not yet sure what the next problem is.

Ok. The script was completely broken. I didn't notice. :/ GPRS was
really working one time now. But after disconnecting again things are
broken:

Jul 28 21:37:39 om-gta02 user.notice Qtopia: AtChat :  F : "Bn×ÿÿÚ)ðy~~ÿ^C!E4¶@:^FËWÔ^Wa" 
Jul 28 21:37:39 om-gta02 user.notice Qtopia: AtChat :  F : "}^º^SظÔ5b^E+" 
Jul 28 21:37:39 om-gta02 user.notice Qtopia: AtChat :  F : "*^Q1²^A^A^H" 

Sure doesn't look healthy... There is also one pts still open, seems
like things don't get cleaned up properly.
-------------- next part --------------
#!/bin/bash

shift
args=
while [ $# -gt 0 ] ; do
	if [ "$1" == "disconnect" ] ; then
		args="$args\" $1 \""
	else
		args="$args $1"
	fi
	if [ "$1" == "connect" ] ; then
		args="$args \""
	fi
	shift
done
args="$args\""
eval /usr/sbin/_pppd $args
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
Url : http://lists.openmoko.org/pipermail/community/attachments/20080728/6f9ec824/attachment-0001.pgp 


More information about the community mailing list