Author Topic: Gprs Config Wierdness Modem Init String [solved]  (Read 3497 times)

DaveR

  • Newbie
  • *
  • Posts: 10
    • View Profile
    • http://
Gprs Config Wierdness Modem Init String [solved]
« 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/

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

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
« Last Edit: August 04, 2006, 10:56:39 am by DaveR »
Dave Royal
Sharp Zaurus C860 (pdaXrom 1.1.0beta1)
Buffalo WLI-CF-S11G 802.11b CF
Belkin F8T020 Bluetooth CF

anunakin

  • Sr. Member
  • ****
  • Posts: 340
    • View Profile
    • http://vivaphp.net
Gprs Config Wierdness Modem Init String [solved]
« Reply #1 on: August 03, 2006, 07:34:42 am »
I using only the old one ... "ATZ"
[img]http://www.vivaphp.net/imagens/rev2.jpg\" border=\"0\" class=\"linked-sig-image\" /]
Anunakin (Marcus Fazzi)

Nokia N900 32GB + microSD 2GB
Nokia N810 w/ microSD 8GB
Nokia 5310 XpressMusic w/ microSD 1GB
HP48GX->Psion Sienna->Palm m130->Tungsten T->Zaurus SL-5500->C3000->C3100 ALL SOLD

My FEED(On Line AGAIN!!!)

Reaper

  • Full Member
  • ***
  • Posts: 126
    • View Profile
Gprs Config Wierdness Modem Init String [solved]
« Reply #2 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...
« Last Edit: August 03, 2006, 08:11:32 am by Reaper »

karlto

  • Sr. Member
  • ****
  • Posts: 343
    • View Profile
    • http://
Gprs Config Wierdness Modem Init String [solved]
« Reply #3 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.
SL6000-L, RC12

DaveR

  • Newbie
  • *
  • Posts: 10
    • View Profile
    • http://
Gprs Config Wierdness Modem Init String [solved]
« Reply #4 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
Dave Royal
Sharp Zaurus C860 (pdaXrom 1.1.0beta1)
Buffalo WLI-CF-S11G 802.11b CF
Belkin F8T020 Bluetooth CF