QNX RTOS v4 Knowledge Base
QNX RTOS v4 Knowledge Base
Title |
Dial-on-demand support for QNX4 |
Ref. No. |
QNX.000009799 |
Category(ies) |
Network |
Issue |
We want to automatically connect (or reconnect if the connection is broken) to a PPP server but only when necessary. How do we setup dial-on-demand? |
Solution |
For Dial-on-demand to work, you need to download version 5.0 of TCP, which you can get at the following link: http://qdn.qnx.com/download/updates/index.html
Assuming you want to connect using a modem. You need to setup a few files.
/etc/ppp/options: demand debug idle 120 192.0.0.127:192.0.0.126 /dev/ser2 57600 connect /etc/ppp/DialScript
/etc/ppp/DialScript: #!/bin/sh /bin/modem -b 57600 -d 555-1752 ...
Note: Remember to change the permissions (755)
run pppd then ping target (192.0.0.126). Connection should establish itself. |
|