Serial Communication

Hello

I’ve got a problem with the serial device again.
I discovered that the serial device isn’t able to send different Bytes.
If I try to send an array with several byte values the first byte must not
be 0x01.
If I do so, the first and sometimes also the 2nd byte is NOT transmitted.

How can this be?

“Tobias Moeglich” <Tobias.Moeglich@tu-bs.de> wrote in message
news:b9geqb$6c1$1@inn.qnx.com

Hello

I’ve got a problem with the serial device again.
I discovered that the serial device isn’t able to send different Bytes.
If I try to send an array with several byte values the first byte must not
be 0x01.
If I do so, the first and sometimes also the 2nd byte is NOT transmitted.

I don’t see how that is possible (unless the receiving end decided to play
with control signal depending on incomming data). Something must be wrong
with you code.

How can this be?

Tobias Moeglich <Tobias.Moeglich@tu-bs.de> wrote:

Hello

I’ve got a problem with the serial device again.
I discovered that the serial device isn’t able to send different Bytes.
If I try to send an array with several byte values the first byte must not
be 0x01.
If I do so, the first and sometimes also the 2nd byte is NOT transmitted.

How can this be?

Is the serial device in raw or canonical mode?

-David

QNX Training Services
http://www.qnx.com/support/training/
Please followup in this newsgroup if you have further questions.

Hello,

how can I disable control characters. I suppose that’s to do with the
problem. The online help say something like that:
“Any of the control characters in the c_cc array can be disabled by
setting that character to the
_PC_VDISABLE parameter which is returned by fpathconf() (typically a
zero).”

I suppose if special characters aren’t disabled it can make problems if I
send this values via the serial port.
Is that right? Do I have to disable them?
But isn’t this be done by selecting the “taw-modus” for the serial device.

Tobias.


“Mario Charest” postmaster@127.0.0.1 schrieb im Newsbeitrag
news:b9gfj4$71e$1@inn.qnx.com

“Tobias Moeglich” <> Tobias.Moeglich@tu-bs.de> > wrote in message
news:b9geqb$6c1$> 1@inn.qnx.com> …
Hello

I’ve got a problem with the serial device again.
I discovered that the serial device isn’t able to send different Bytes.
If I try to send an array with several byte values the first byte must
not
be 0x01.
If I do so, the first and sometimes also the 2nd byte is NOT
transmitted.

I don’t see how that is possible (unless the receiving end decided to play
with control signal depending on incomming data). Something must be wrong
with you code.


How can this be?

\

The serial device is in raw mode (stty gives me that information)

How can I disable control characters. I suppose that’s to do with the
problem. The online help say something like that:
“Any of the control characters in the c_cc array can be disabled by
setting that character to the
_PC_VDISABLE parameter which is returned by fpathconf() (typically a
zero).”

I suppose if special characters aren’t disabled it can make problems if I
send this values via the serial port.
Is that right? Do I have to disable them?
But isn’t this be done by selecting the “taw-modus” for the serial device.

Tobias.


“David Gibbs” <dagibbs@qnx.com> schrieb im Newsbeitrag
news:b9ghb5$t0h$1@nntp.qnx.com

Tobias Moeglich <> Tobias.Moeglich@tu-bs.de> > wrote:
Hello

I’ve got a problem with the serial device again.
I discovered that the serial device isn’t able to send different Bytes.
If I try to send an array with several byte values the first byte must
not
be 0x01.
If I do so, the first and sometimes also the 2nd byte is NOT
transmitted.

How can this be?

Is the serial device in raw or canonical mode?

-David

QNX Training Services
http://www.qnx.com/support/training/
Please followup in this newsgroup if you have further questions.

“Tobias Moeglich” <Tobias.Moeglich@tu-bs.de> wrote in message
news:b9gmv3$f04$1@inn.qnx.com

The serial device is in raw mode (stty gives me that information)

If you are in raw mode control characters aren’t used.

How can I disable control characters. I suppose that’s to do with the
problem. The online help say something like that:
“Any of the control characters in the c_cc array can be disabled by
setting that character to the
_PC_VDISABLE parameter which is returned by fpathconf() (typically a
zero).”

I suppose if special characters aren’t disabled it can make problems if I
send this values via the serial port.
Is that right? Do I have to disable them?
But isn’t this be done by selecting the “taw-modus” for the serial device.

Tobias.


“David Gibbs” <> dagibbs@qnx.com> > schrieb im Newsbeitrag
news:b9ghb5$t0h$> 1@nntp.qnx.com> …
Tobias Moeglich <> Tobias.Moeglich@tu-bs.de> > wrote:
Hello

I’ve got a problem with the serial device again.
I discovered that the serial device isn’t able to send different
Bytes.
If I try to send an array with several byte values the first byte must
not
be 0x01.
If I do so, the first and sometimes also the 2nd byte is NOT
transmitted.

How can this be?

Is the serial device in raw or canonical mode?

-David

QNX Training Services
http://www.qnx.com/support/training/
Please followup in this newsgroup if you have further questions.