Re: Simple serial question...
From: Grant Edwards (grante_at_visi.com)
Date: 11/08/05
- Next message: emb in linux: "Re: need a sample code"
- Previous message: Alain Mosnier: "Re: Simple serial question..."
- In reply to: Alain Mosnier: "Re: Simple serial question..."
- Next in thread: Alain Mosnier: "Re: Simple serial question..."
- Reply: Alain Mosnier: "Re: Simple serial question..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 08 Nov 2005 19:41:48 -0000
On 2005-11-08, Alain Mosnier <alain.mosnier@chello.se> wrote:
> Be aware of the byte ordering issue though: your source and
> destination might order the bytes differently. This is not a
> problem if both source and destination are Linux, which is
> always little-endian, as far as I know
Wha?
There are plenty of big-endian architectures running Linux:
SPARC
PPC
68000
IBM-370 (and I presume z-series),
H8/300
ARM
etc.
I suspect that the majority of Linux-supporting architectures
are big-endian, even though most Linux machines are
little-endian.
>> NB: Don't use the Linux serial programming HOWTO.
>
> Just out of curiosity, why is that? Anything specific that
> would be wrong in that HOWTO?
Yes. Mainly the code used to open devices. I have vague
recollections of problems with the way some of the termios
stuff is done too, but I can't remember the details. There are
also large amounts of stuff that's just not there (e.g.
accessing modem control/status lines).
> I'm rather using the "Serial Programming Guide for POSIX
> Operating Systems" which is more recent myself, but I would
> still be interested to hear what's wrong in that HOWTO.
You're the only one, then. Corrections and entirely new
chapters have been submitted but have been ignored.
--
Grant Edwards grante Yow! The PINK SOCKS were
at ORIGINALLY from 1952!! But
visi.com they went to MARS around
1953!!
- Next message: emb in linux: "Re: need a sample code"
- Previous message: Alain Mosnier: "Re: Simple serial question..."
- In reply to: Alain Mosnier: "Re: Simple serial question..."
- Next in thread: Alain Mosnier: "Re: Simple serial question..."
- Reply: Alain Mosnier: "Re: Simple serial question..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|