Setting up a PPP serial link between 2 QNX box

I trying to connect two QNX machine with a serial null modem cable using the
PPP protocol.
The network driver is started with -ptcpip -v -pppmgr. Both machine can
connect to a network.
I did a stty baud=9600 bits=8 stopb=1 par=none +raw < /dev/ser2 on both
machine.
Then I did a /usr/sbin/pppd /dev/serv2 on both machine

netstat -in show me this below, but after a while the ppp0 line dissapear,
no connection !!!
What i’m missing.

Name Mtu Network Address Ipkts Ierrs Opkts Oerrs
Coll
lo0 32976 6250 0 6250 0
0
lo0 32976 127 127.0.0.1 6250 0 6250 0
0
en0 1500 00:01:02:ce:8a:dc 22046982 0 36635425 0
0
en0 1500 172.16 172.16.22.16 22046982 0 36635425 0
0
ppp0* 1500 0 0 0 0
0

The content of syslog is:

Dec 13 10:11:16 nto pppd[58687597-1]: Connect: ppp1 <–> /dev/ser2
Dec 13 10:11:16 nto pppd[58687597-1]: sent [LCP ConfReq id=0x1 <asyncmap
0x0> <magic 0x4cccd27a> ]
Dec 13 10:11:37 nto last message repeated 7 times
Dec 13 10:11:40 nto pppd[58687597-1]: Terminating on signal 15.
Dec 13 10:11:40 nto pppd[58687597-1]: sent [LCP TermReq id=0x2 “User
request”]
Dec 13 10:11:43 nto pppd[58687597-1]: sent [LCP TermReq id=0x3 “User
request”]
Dec 13 10:11:43 nto pppd[58777740-1]: can’t set control terminal after
detach
Dec 13 10:11:43 nto pppd[58777740-1]: pppd 2.3.11 started by rsenecal, uid 0
Dec 13 10:11:43 nto pppd[58777740-1]: Using interface ppp0
Dec 13 10:11:43 nto pppd[58777740-1]: Connect: ppp0 <–> /dev/ser2
Dec 13 10:11:43 nto pppd[58777740-1]: sent [LCP ConfReq id=0x1 <asyncmap
0x0> <magic 0xf271db6a> ]
Dec 13 10:11:46 nto pppd[58687597-1]: Connection terminated.
Dec 13 10:11:46 nto pppd[58777740-1]: sent [LCP ConfReq id=0x1 <asyncmap
0x0> <magic 0xf271db6a> ]
Dec 13 10:11:47 nto pppd[58687597-1]: Exit.
Dec 13 10:11:49 nto pppd[58777740-1]: sent [LCP ConfReq id=0x1 <asyncmap
0x0> <magic 0xf271db6a> ]
Dec 13 10:12:10 nto last message repeated 7 times
Dec 13 10:12:13 nto pppd[58777740-1]: LCP: timeout sending Config-Requests
Dec 13 10:12:32 nto pppd[58777740-1]: Hangup (SIGHUP)
Dec 13 10:12:32 nto pppd[58777740-1]: Connection terminated.
Dec 13 10:12:33 nto pppd[58777740-1]: Exit

“Rejean Senecal” <rsenecal@oerlikon.ca> wrote in message
news:9val92$s96$1@inn.qnx.com

I trying to connect two QNX machine with a serial null modem cable using
the
PPP protocol.
The network driver is started with -ptcpip -v -pppmgr. Both machine can
connect to a network.

I hope you mean -ptcpip -ppppmgr (note the extra p), and I’ll assume you’re
using QNX6 :slight_smile:

I did a stty baud=9600 bits=8 stopb=1 par=none +raw < /dev/ser2 on both
machine.

Ack, a 9600 baud connection over PPP is going to be slow. If you’re doing
serial<-null modem->serial connection can you not use 57600 or perhaps even
115200?

Then I did a /usr/sbin/pppd /dev/serv2 on both machine

You should set one side with the parameter passive so that it waits for the
other side to connect, and you’ll need to specifiy the IP addresses of each
point in the form <local_ip>:<remote_ip>.

Check out the documentation on pppd and pppmgr for more information.

-Adam