________________________________________________________________________
Applicable Environment
________________________________________________________________________
- Topic: Serial ppp connection on embedded target
- SDP: 6.5.0
- Target: Any supported target
________________________________________________________________________
Solution / Recommendation________________________________________________________________________
The embedded system (IP 192.168.51.106) is connected via serial port #2 with the serial port #1 on a QNX hosted PC (192.168.51.90).
This must be added in the IFS on the embedded system (PPC 8313). syslogd, /etc/syslog.conf and touch are just for debugging purposes.
touch /tmp/syslog
slogger
syslogd
io-net -ptcpip
waitfor /dev/socket 4
pppd 192.168.51.106:192.168.51.90 /dev/ser2
[snip]
[type=link] /var/run = /dev/shmem
[gid=0 uid=0 perms=777 data=copy code=uip] /bin/pppd = pppd
[gid=0 uid=0 perms=777 data=copy code=uip] /lib/dll/
npm-pppmgr.so =
npm-pppmgr.so[gid=0 uid=0 perms=777 data=copy code=uip] /bin/ping = ping
[gid=0 uid=0 perms=777 data=copy code=uip] /bin/telnet = telnet
[gid=0 uid=0 perms=777 data=copy code=uip] /bin/ftp = ftp
[gid=0 uid=0 perms=777 data=copy code=uip] /bin/syslogd = syslogd
[gid=0 uid=0 perms=777 data=copy code=uip] /bin/touch = touch
[gid=0 uid=0 perms=777 data=copy code=uip] /bin/cat = cat
/etc/ppp/options = {
-crtscts
debug
/dev/ser2
115200
}
/etc/syslog.conf = {
# The file must exist for logging to occur!!
mail.* /var/log/maillog
*.* /tmp/syslog
}
On the PC run
#! /bin/sh
slay -f io-net dhcp.client inetd fs-cifs qconn
sleep 1
io-net -ptcpip &
pppd 192.168.51.90:192.168.51.106 /dev/ser1
and create the file /etc/ppp/options with the content:
-crtscts
debug
/dev/ser1
115200
You should now be able to ping, telnet and ftp the PC from the embedded system.
________________________________________________________________________
NOTE:
This entry has been validated against the SDP version listed above. Use
caution when considering this advice for any other SDP version. For
supported releases, please reach out to QNX Technical Support if you have any questions/concerns. ________________________________________________________________________