Modem dial out

In our last episode, I was trying to set up my Neutrino box to answer
a call and set up a PPP session.

I have it working by starting this command in rc.sysinit:
“/usr/bin/pppd defaultroute IP_ADDR1:IP_ADDR2 57600 connect
‘chat -v -t0 -f/etc/answer’ persist /dev/ser2”

This has no security to speak of, but for my purposes, that’s all
right.

Now my task is to dial out from the same computer on the same modem
and establish a PPP session with a remote box running basically the
configuration above. I have logging into the remote successfully
from Windows, but I would like to do it from my QNX development
machine.

I have tried Photon Dialer. The problem I run into is permission. I
can’t access /dev/ser2 as an ordinary user, but I’d rather not run my
entire Photon desktop as root. Is there a way around that?


Thanks,
Randy C.

Forgot to mention…

I downloaded ppp.tar.gz that was mentioned in another string. Edited
ppp-up to have the right phone # and login stuff. When I run it, it
returns immediately with exit status 0. Any idea what might be
wrong?

Randy

You have to kill the “listening” pppd while you dial out,
and restart it once you done.

-xtang

randyc4053 <randyc@paonia-dot-com.no-spam.invalid> wrote:

In our last episode, I was trying to set up my Neutrino box to answer
a call and set up a PPP session.

I have it working by starting this command in rc.sysinit:
“/usr/bin/pppd defaultroute IP_ADDR1:IP_ADDR2 57600 connect
‘chat -v -t0 -f/etc/answer’ persist /dev/ser2”

This has no security to speak of, but for my purposes, that’s all
right.

Now my task is to dial out from the same computer on the same modem
and establish a PPP session with a remote box running basically the
configuration above. I have logging into the remote successfully
from Windows, but I would like to do it from my QNX development
machine.

I have tried Photon Dialer. The problem I run into is permission. I
can’t access /dev/ser2 as an ordinary user, but I’d rather not run my
entire Photon desktop as root. Is there a way around that?


Thanks,
Randy C.

Just realized this is QNX4. In QNX4, you should use the
tinit and modem utils for incomming calls. This way,
you can call out as usual.

-xtang

xtang@qnx.com wrote:

You have to kill the “listening” pppd while you dial out,
and restart it once you done.

-xtang

randyc4053 <> randyc@paonia-dot-com.no-spam.invalid> > wrote:
In our last episode, I was trying to set up my Neutrino box to answer
a call and set up a PPP session.

I have it working by starting this command in rc.sysinit:
“/usr/bin/pppd defaultroute IP_ADDR1:IP_ADDR2 57600 connect
‘chat -v -t0 -f/etc/answer’ persist /dev/ser2”

This has no security to speak of, but for my purposes, that’s all
right.

Now my task is to dial out from the same computer on the same modem
and establish a PPP session with a remote box running basically the
configuration above. I have logging into the remote successfully
from Windows, but I would like to do it from my QNX development
machine.

I have tried Photon Dialer. The problem I run into is permission. I
can’t access /dev/ser2 as an ordinary user, but I’d rather not run my
entire Photon desktop as root. Is there a way around that?


Thanks,
Randy C.

Anonymouswrote:
Just realized this is QNX4. In QNX4, you should use the
tinit and modem utils for incomming calls. This way,
you can call out as usual.

-xtang

And I just realized I posted in the wrong forum.

This is QNX 6.1, sorry for the confusion. Now I’ll try to figure out
how to cross-post.

Randy C.