ftp using ppp (modem)

Hello,
We have a qnx RTOS system which I would like to contact on a regular basis
to receive error logs.

I have written a program from Windows to dial the device and then do an ftp
from the device.

The problem is that ftp appears VERY unreliable over modem connections. It
will not answer every time, particularly first attempt after dial.

To ensure that it is a qnx over modem problem I dialled the system and
tested from a DOS prompt.

I do not have these problems via the network (when the device is connected
to the ethernet).

I appreciate ANY assistance with this problem

Thank You

Adam Williams

Adam Williams <adam_williams@hotmail.com> wrote:
AW > Hello,
AW > We have a qnx RTOS system which I would like to contact on a regular basis
AW > to receive error logs.

AW > I have written a program from Windows to dial the device and then do an ftp
AW > from the device.

AW > The problem is that ftp appears VERY unreliable over modem connections. It
AW > will not answer every time, particularly first attempt after dial.

AW > To ensure that it is a qnx over modem problem I dialled the system and
AW > tested from a DOS prompt.

AW > I do not have these problems via the network (when the device is connected
AW > to the ethernet).

AW > I appreciate ANY assistance with this problem

AW > Thank You
AW > Adam Williams

After establishing the connection I would first do some other tests to
confirm that the PPP connection is working.

Maybe you’ll need some kind of a delay after the connection is
established and before you try to ftp. (Damn, I hate saying things like
that.)

If the ftp attempt fails, is the PPP connection also lost?

Bill,
Thanks for the response. In answer to your questions:
The PPP connection is always successful.
If the FTP fails, the PPP stays up. Unfortunately the times that FTP fails
is not consistent, so I can not just
allow for the error in my coding. Sometimes it works on about the second go,
others around the third or fourth attempt.

We have several qnx systems all with the same symptoms. We might be
configuring them wrong, I dont know.

Remember, FTP is working perfectly from a network connection.

Adam

“Bill Caroselli” <qtps@earthlink.net> wrote in message
news:b98tlu$dsq$1@inn.qnx.com

Adam Williams <> adam_williams@hotmail.com> > wrote:
AW > Hello,
AW > We have a qnx RTOS system which I would like to contact on a regular
basis
AW > to receive error logs.

AW > I have written a program from Windows to dial the device and then do
an ftp
AW > from the device.

AW > The problem is that ftp appears VERY unreliable over modem
connections. It
AW > will not answer every time, particularly first attempt after dial.

AW > To ensure that it is a qnx over modem problem I dialled the system
and
AW > tested from a DOS prompt.

AW > I do not have these problems via the network (when the device is
connected
AW > to the ethernet).

AW > I appreciate ANY assistance with this problem

AW > Thank You
AW > Adam Williams

After establishing the connection I would first do some other tests to
confirm that the PPP connection is working.

Maybe you’ll need some kind of a delay after the connection is
established and before you try to ftp. (Damn, I hate saying things like
that.)

If the ftp attempt fails, is the PPP connection also lost?

With ftp failed. Does “ping” still works?
Is it really ftp failed, or it is just (ftpd) taking time try to resolve the
peer?

-xtang

Adam Williams <adam_williams@hotmail.com> wrote in message
news:b9a70u$rpr$1@inn.qnx.com

Bill,
Thanks for the response. In answer to your questions:
The PPP connection is always successful.
If the FTP fails, the PPP stays up. Unfortunately the times that FTP fails
is not consistent, so I can not just
allow for the error in my coding. Sometimes it works on about the second
go,
others around the third or fourth attempt.

We have several qnx systems all with the same symptoms. We might be
configuring them wrong, I dont know.

Remember, FTP is working perfectly from a network connection.

Adam

“Bill Caroselli” <> qtps@earthlink.net> > wrote in message
news:b98tlu$dsq$> 1@inn.qnx.com> …
Adam Williams <> adam_williams@hotmail.com> > wrote:
AW > Hello,
AW > We have a qnx RTOS system which I would like to contact on a
regular
basis
AW > to receive error logs.

AW > I have written a program from Windows to dial the device and then
do
an ftp
AW > from the device.

AW > The problem is that ftp appears VERY unreliable over modem
connections. It
AW > will not answer every time, particularly first attempt after dial.

AW > To ensure that it is a qnx over modem problem I dialled the system
and
AW > tested from a DOS prompt.

AW > I do not have these problems via the network (when the device is
connected
AW > to the ethernet).

AW > I appreciate ANY assistance with this problem

AW > Thank You
AW > Adam Williams

After establishing the connection I would first do some other tests to
confirm that the PPP connection is working.

Maybe you’ll need some kind of a delay after the connection is
established and before you try to ftp. (Damn, I hate saying things like
that.)

If the ftp attempt fails, is the PPP connection also lost?

Xiaodan,
Thanks for the response. I can still ping the host. I think it is more a
case of the ftpd service taking too long. I have increased timeout values
from the client to very large numbers, however the first attempt still seems
to fail.

Thanks

Adam
“Xiaodan Tang” <xtang@qnx.com> wrote in message
news:b9auhl$il2$1@nntp.qnx.com

With ftp failed. Does “ping” still works?
Is it really ftp failed, or it is just (ftpd) taking time try to resolve
the
peer?

-xtang

Adam Williams <> adam_williams@hotmail.com> > wrote in message
news:b9a70u$rpr$> 1@inn.qnx.com> …
Bill,
Thanks for the response. In answer to your questions:
The PPP connection is always successful.
If the FTP fails, the PPP stays up. Unfortunately the times that FTP
fails
is not consistent, so I can not just
allow for the error in my coding. Sometimes it works on about the second
go,
others around the third or fourth attempt.

We have several qnx systems all with the same symptoms. We might be
configuring them wrong, I dont know.

Remember, FTP is working perfectly from a network connection.

Adam

“Bill Caroselli” <> qtps@earthlink.net> > wrote in message
news:b98tlu$dsq$> 1@inn.qnx.com> …
Adam Williams <> adam_williams@hotmail.com> > wrote:
AW > Hello,
AW > We have a qnx RTOS system which I would like to contact on a
regular
basis
AW > to receive error logs.

AW > I have written a program from Windows to dial the device and then
do
an ftp
AW > from the device.

AW > The problem is that ftp appears VERY unreliable over modem
connections. It
AW > will not answer every time, particularly first attempt after
dial.

AW > To ensure that it is a qnx over modem problem I dialled the
system
and
AW > tested from a DOS prompt.

AW > I do not have these problems via the network (when the device is
connected
AW > to the ethernet).

AW > I appreciate ANY assistance with this problem

AW > Thank You
AW > Adam Williams

After establishing the connection I would first do some other tests to
confirm that the PPP connection is working.

Maybe you’ll need some kind of a delay after the connection is
established and before you try to ftp. (Damn, I hate saying things
like
that.)

If the ftp attempt fails, is the PPP connection also lost?
\

Hello all,
I have done some more testing. It appears that telnet has the same symptoms.
I think it may now be something like a confusion over which interface to
service first. i.e ethernet or ppp via modem.

I am going to disable ethernet on the device and dial in ppp over modem to
see if this fixes the problem.

Anyone else have any ideas? Am I heading in the right direction ?

Thanks

Adam
“Adam Williams” <adam_williams@hotmail.com> wrote in message
news:b97i65$ppf$1@inn.qnx.com

Hello,
We have a qnx RTOS system which I would like to contact on a regular basis
to receive error logs.

I have written a program from Windows to dial the device and then do an
ftp
from the device.

The problem is that ftp appears VERY unreliable over modem connections. It
will not answer every time, particularly first attempt after dial.

To ensure that it is a qnx over modem problem I dialled the system and
tested from a DOS prompt.

I do not have these problems via the network (when the device is connected
to the ethernet).

I appreciate ANY assistance with this problem

Thank You

Adam Williams

It is telnetd/ftpd running on QNX side, right? I just want to make it sure.

I doubt this is because telnetd/ftpd trying to resolve the name of who is
incomming.
Try to create /etc/hosts and put your Windows Machine’s name/ip in it (the
one
who start telnet/ftp).

Also make sure you have “lookup_file_bind” in your _CS_RESOLVE confstr.
(getconf, getconf -s).

See if this help.

-xtang

Adam Williams <adam_williams@hotmail.com> wrote in message
news:b9ctac$te$1@inn.qnx.com

Hello all,
I have done some more testing. It appears that telnet has the same
symptoms.
I think it may now be something like a confusion over which interface to
service first. i.e ethernet or ppp via modem.

I am going to disable ethernet on the device and dial in ppp over modem to
see if this fixes the problem.

Anyone else have any ideas? Am I heading in the right direction ?

Thanks

Adam
“Adam Williams” <> adam_williams@hotmail.com> > wrote in message
news:b97i65$ppf$> 1@inn.qnx.com> …
Hello,
We have a qnx RTOS system which I would like to contact on a regular
basis
to receive error logs.

I have written a program from Windows to dial the device and then do an
ftp
from the device.

The problem is that ftp appears VERY unreliable over modem connections.
It
will not answer every time, particularly first attempt after dial.

To ensure that it is a qnx over modem problem I dialled the system and
tested from a DOS prompt.

I do not have these problems via the network (when the device is
connected
to the ethernet).

I appreciate ANY assistance with this problem

Thank You

Adam Williams
\