Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Windows -> QNX GSM/GPRS pppd diffuculties: (1 Item)
   
Windows -> QNX GSM/GPRS pppd diffuculties  
Hi all,

Exuse me for this rather lage post, but I hope it contains enough information.

We are trying to establish a dial-in connection over GSM/GPRS from a Windows PC to a QNX 6.4.0 machine.
During expirimenting with ppp we have dialed in from a QNX machine to an ISP successfully. 

Now I try to get  pppd working as a server to receive incomming calls from a Windows PC.
The problem is pppd does not understand the incomming calls. I think the LCP commands/requests are not received 
propperly. Now I am stucked and no clue how to solve this.
The debug messages and options files/scripts are shown below.
During some experimenting I got a serveral time the message ”serial line is not 8 bit clean” which can mean that pppd 
especting the peer to be a server instead to be a server itself.

Does anyone have an idea to get pppd accepting connections from a Windows PC?

The messages printed by pppd:
Initialize modem...                                 <-- init script
Serial port initialized.
Wait for connection...                            <-- connect script (waits for a ‘RING’)
Serial connection established.
using channel 0
Using interface ppp0
Connect: ppp0 <--> /dev/ser1
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <auth pap> <magic 0x8ec1ec6c> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <auth pap> <magic 0x8ec1ec6c> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <auth pap> <magic 0x8ec1ec6c> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <auth pap> <magic 0x8ec1ec6c> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <auth pap> <magic 0x8ec1ec6c> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <auth pap> <magic 0x8ec1ec6c> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <auth pap> <magic 0x8ec1ec6c> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <auth pap> <magic 0x8ec1ec6c> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <auth pap> <magic 0x8ec1ec6c> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <auth pap> <magic 0x8ec1ec6c> <pcomp> <accomp>]
LCP: timeout sending Config-Requests
auth.c: Connection terminated.
Initialize modem...
Serial port initialized.
Wait for connection...                                               <-- waits for a ‘RING’ again

The serial driver is started as
‘devc-ser8250 3f8,4 &’

The ppp deamon is started as
‘pppd /dev/ser1 9600 &’

The ‘/etc/ppp/options.ser1’ contains

# show debug information
debug
# use modem control lines
modem 
# use hardware control flow
crtscts
# lock serial port
lock
# set the client’s IP address
:192.168.0.19
# initalization chat script
init "chat -f /etc/ppp/wmod2_init_chat"
# connect chat script, waits until we receive a ‘RING’, no time out
connect "chat -t0 -f /etc/ppp/wmod2_answer_chat"
# don’t detach from the controlling terminal
nodetach
# require authentication
auth
# use system password database
login
# require the peer to authenticate itself using PAP
require-pap
# let the peer be a part of the local network
proxyarp
# don’t exit after a connection is terminated
persist
# wait one second before re-initiating after after the link is terminated
holdoff 1

The init chat script

# show what is send and received
SAY "Initialize modem...\n"
ABORT 'BUSY'
ABORT 'ERROR'
# reset the GSM modem
"" ATZ
# register the GSM modem
OK "AT+CREG ?"
# enable auto answer
OK ATS0=1
OK ""

The connect chat script

SAY "Wait for connection...\n"
# wait for a ring and answer
RING ATA
OK ""