problem with serial port in qnx4

hai,
My application runs a deamon on the serial port, and ofcourse it has to
start at startup, this however doesnot seem to happen always. When i reboot
the computer( with the deamon running before reboot), I can read from the
Serial port but cannot write to it untill i slay Der32.ser , restart it and
then restart my deamon.
I’m not sure if this is a bug in Qnx4 or am i missing something? I
appretiate any help.

Thanks in advance.

Krishna

Try ‘stty reset < /dev/serX’ when there is a problem. Maybe it can help
you.

Pavol Kycina


“kris” <ksagira@clemson.edu> wrote in message
news:cbes4b$a0f$1@inn.qnx.com

hai,
My application runs a deamon on the serial port, and ofcourse it has to
start at startup, this however doesnot seem to happen always. When i
reboot
the computer( with the deamon running before reboot), I can read from the
Serial port but cannot write to it untill i slay Der32.ser , restart it
and
then restart my deamon.
I’m not sure if this is a bug in Qnx4 or am i missing something? I
appretiate any help.

Thanks in advance.

Krishna

Is there any chance that your app is trying to connect to Dev.ser before
Dev.ser is ready?

If so, try a sleep somewhere.


Pavol Kycina <xkycina@microstep-hdo.sk> wrote:
PK > Try ‘stty reset < /dev/serX’ when there is a problem. Maybe it can help
PK > you.

PK > Pavol Kycina


PK > “kris” <ksagira@clemson.edu> wrote in message
PK > news:cbes4b$a0f$1@inn.qnx.com

hai,
My application runs a deamon on the serial port, and ofcourse it has to
start at startup, this however doesnot seem to happen always. When i
PK > reboot
the computer( with the deamon running before reboot), I can read from the
Serial port but cannot write to it untill i slay Der32.ser , restart it
PK > and
then restart my deamon.
I’m not sure if this is a bug in Qnx4 or am i missing something? I
appretiate any help.

Thanks in advance.

Krishna


Bill Caroselli – Q-TPS Consulting
1-(708) 308-4956 <== Note: New Number
qtps@earthlink.net