j***@googlemail.com
2006-05-24 12:27:08 UTC
Hi,
I have a modem here (it's a satellite phone (Nera Fleet 77)) that does
not work if I "expect" anything back from the modem in the chatscript.
If I use this chat:
TIMEOUT 8
ABORT 'BUSY'
ABORT 'NO ANSWER'
ABORT 'NO CARRIER'
ABORT 'NO DIALTONE'
ABORT 'NO DIAL TONE'
ABORT 'VOICE'
ABORT 'ERROR'
ABORT 'SERVICE AVAILABLE: NO'
'' AT
'OK-+++\c-OK' "AT+WS45=4"
TIMEOUT 40
OK ATDT12345
CONNECT ''
It never dials, as it does not reply 'OK' to my 'AT', or 'OK' to the
subsequent '+++'.
But If I take out the expect strings, it works:
TIMEOUT 8
ABORT 'BUSY'
ABORT 'NO ANSWER'
ABORT 'NO CARRIER'
ABORT 'NO DIALTONE'
ABORT 'NO DIAL TONE'
ABORT 'VOICE'
ABORT 'ERROR'
ABORT 'SERVICE AVAILABLE: NO'
'' AT
'' "AT+WS45=4"
TIMEOUT 40
OK ATDT12345
CONNECT ''
If I use minicom and just say 'AT', I get no response.
If I say 'AT+WS45=4' in minicom, I do get an 'OK'. (This AT command
initialises the modem for Inmarsat MPDS.)
After the 'AT+WS45=4', if I then say 'AT' again, I /do/ get an 'OK'.
I never get any response from '+++'.
Here are the ppp options in effect:
/dev/ttyS0
debug
ipparam dialup
115200
crtscts
receive-all
ipcp-accept-local
ipcp-accept-remote
asyncmap 0xa0000
noccp
novj
novjccomp
nodetach
noipdefault
defaultroute
usepeerdns
idle 0
user username
connect '/etc/wiredocean/chat_connect.sh'
disconnect '/etc/wiredocean/chat_disconnect.sh'
This is a generic chatscript that I use for several different devices,
including GPRS. (The init string and phone number only are changed for
each device). So I don't want to just get rid of the "OK-+++\c-OK"
expect string.
I've tried changing flow control parameters, to no avail.
I'd be most grateful if anyone has any ideas where to go from here. I
can't beleive the modem is this broken: I must be doing something
wrong. Of course, as the Nera support people are quick to assure me, it
Works With Windows.
pppd version 2.4.3
kernel 2.6.11.12 on a VIA EPIA-M
Many thanks for your time,
Julian
I have a modem here (it's a satellite phone (Nera Fleet 77)) that does
not work if I "expect" anything back from the modem in the chatscript.
If I use this chat:
TIMEOUT 8
ABORT 'BUSY'
ABORT 'NO ANSWER'
ABORT 'NO CARRIER'
ABORT 'NO DIALTONE'
ABORT 'NO DIAL TONE'
ABORT 'VOICE'
ABORT 'ERROR'
ABORT 'SERVICE AVAILABLE: NO'
'' AT
'OK-+++\c-OK' "AT+WS45=4"
TIMEOUT 40
OK ATDT12345
CONNECT ''
It never dials, as it does not reply 'OK' to my 'AT', or 'OK' to the
subsequent '+++'.
But If I take out the expect strings, it works:
TIMEOUT 8
ABORT 'BUSY'
ABORT 'NO ANSWER'
ABORT 'NO CARRIER'
ABORT 'NO DIALTONE'
ABORT 'NO DIAL TONE'
ABORT 'VOICE'
ABORT 'ERROR'
ABORT 'SERVICE AVAILABLE: NO'
'' AT
'' "AT+WS45=4"
TIMEOUT 40
OK ATDT12345
CONNECT ''
If I use minicom and just say 'AT', I get no response.
If I say 'AT+WS45=4' in minicom, I do get an 'OK'. (This AT command
initialises the modem for Inmarsat MPDS.)
After the 'AT+WS45=4', if I then say 'AT' again, I /do/ get an 'OK'.
I never get any response from '+++'.
Here are the ppp options in effect:
/dev/ttyS0
debug
ipparam dialup
115200
crtscts
receive-all
ipcp-accept-local
ipcp-accept-remote
asyncmap 0xa0000
noccp
novj
novjccomp
nodetach
noipdefault
defaultroute
usepeerdns
idle 0
user username
connect '/etc/wiredocean/chat_connect.sh'
disconnect '/etc/wiredocean/chat_disconnect.sh'
This is a generic chatscript that I use for several different devices,
including GPRS. (The init string and phone number only are changed for
each device). So I don't want to just get rid of the "OK-+++\c-OK"
expect string.
I've tried changing flow control parameters, to no avail.
I'd be most grateful if anyone has any ideas where to go from here. I
can't beleive the modem is this broken: I must be doing something
wrong. Of course, as the Nera support people are quick to assure me, it
Works With Windows.
pppd version 2.4.3
kernel 2.6.11.12 on a VIA EPIA-M
Many thanks for your time,
Julian