On 17 Apr 2006, in the Usenet newsgroup comp.os.linux.networking, in article
<(E-Mail Removed) .com>,
(E-Mail Removed)
wrote:
>I am working on a multi-platorm application ( i.e Windows, Linux
>, Solaris , AIX ) which communicates using RS232 port to an another
>third party application running on the another system which could also
>be on different platform ( i.e Windows, Linux , Solaris , AIX ).
That's fine - it's RS-232.
>My question is do i need to use different kind of serial cable to
>communicate between two application if
>a] both the application are running or same typeof systems ( System
>having same endianess ) like ( Windows Windows ) or ( Linux Linux ) or
>( Windows Linux )
>and
>b] both the applicatons are running or system with different endianness
>( Windows and AIX ) , ( Linux and Aix ) or ( Linux and Solaris )
There are two types of cable. One (pin to pin) is used when talking to
a modem (or similar - a Date Communications Equipment device) and a
terminal (or computer - a Date Terminal Equipment), and the other,
called a null modem cable, is used when talking to like devices (computer
to computer for example). This is a serial device, and when using the
common serial port, you stick a byte into a UART, and the byte comes out
of the UART on the other end. In fact, over the wire, the bits are
ALWAYS transmitted LSB first. Now, how many bits may be in a byte,
parity, and the number of stop bits are under the control of the
application. There is no byte ordering other than what the application
and hardware is doing. As most serial ports are run from a single byte
wide data address (example - IBM said COM 1 is at 0x3f8), the application
is going to be pumping bytes sequentially so this isn't really relevant
anyway.
Old guy