OESF Portables Forum

Model Specific Forums => Sharp Zaurus => Zaurus - pdaXrom => Topic started by: DaveR on August 03, 2006, 05:58:01 am

Title: Gprs Config Wierdness Modem Init String [solved]
Post by: DaveR on August 03, 2006, 05:58:01 am
My Z860 | bluetooth | Nokia 6310i | GPRS connection works OK -  so no problem. But I've discovered that I always need a modem init string (AT+cgdcont= ...) with the Z - but not if I use WinXP. I wanted to understand why so I posted to usenet alt.celluar.gsm - here's the thread:
http://groups.google.com/group/alt.cellula...e65942b9cd433a/ (http://groups.google.com/group/alt.cellular.gsm/browse_frm/thread/a0e65942b9cd433a/)

Can anybody here shed any light on this, or suggest why the difference between the Z and Win? Does anyone here not need an init string - and if so do they have to specify anything more that the APN (e.g.PDP-type="IP") to the phone?

It might explain this post
https://www.oesf.org/forums/index.php?showtopic=16558 (https://www.oesf.org/forums/index.php?showtopic=16558)

For the record, here's my working ppp script
Code: [Select]
# DR 28/7/2006
#
/dev/rfcomm0
115200
# I need the "" to be sent to the phone - hence \' used in setup string
# ATDT*99# works but ATDT*99***1# probably will too - assumes CID=1
connect '/usr/sbin/chat -s -v -t 60 ABORT "NO CARRIER" ABORT "NO DIALTONE" ABORT "BUSY" "" "ATZ" OK \'AT+cgdcont=1,"IP","internet.wind"\' OK "ATDT*99#" CONNECT'
crtscts
local
noipdefault
modem
# I think I need (PAP) authentication even though no username/password - cannot be blank hence...
user anything
usepeerdns
defaultroute
connect-delay 5000
remotename Wind
Like I said, just curious.
Dave
Title: Gprs Config Wierdness Modem Init String [solved]
Post by: anunakin on August 03, 2006, 07:34:42 am
I using only the old one ... "ATZ"
Title: Gprs Config Wierdness Modem Init String [solved]
Post by: Reaper on August 03, 2006, 08:09:37 am
In general, this depends on the provider... Sometimes this string isn't needed, more often it is... In WinXP this work can be done by some ISP's software, IMHO. I've seen phones which had pre-installed ISP settings so WinXP just used them - but these settings WERE written into the phone's memory... In Linux you have to write init string by hands...
Title: Gprs Config Wierdness Modem Init String [solved]
Post by: karlto on August 03, 2006, 03:55:16 pm
From what I've seen, Windows will automatically use a default init string if you don't enter anything - e.g. when entering for dial-up network connections the string is only extra parameters (putting AT in these boxes adds it a second time, which fails).

All my Linux systems seem to present everything at face value - the init string is exactly what you enter, which is nothing if you leave it blank. Try 'ATZ' (just a plain old reset) like anunakin says - it'll probably work with that too. Most modems need at least AT.
Title: Gprs Config Wierdness Modem Init String [solved]
Post by: DaveR on August 04, 2006, 10:55:00 am
Quote
... Try 'ATZ' (just a plain old reset) ...
Karl: thank you for reminding me what ATZ actually means - I'd got so used to just including it.

If I remove both the "ATZ" and the "AT+cgdcont..." leaving only "ATDT*99#" it works. Presumably the ATZ clears the PDP context data which the phone otherwise remembers - as John H in the usenet post said it should.

Thanks to all for your replies.

Dave