Re: Serial under IRIX 6.5.5

New Message Reply Date view Thread view Subject view Author view

Mark Aubin (aubin++at++mustang.engr.sgi.com)
Thu, 7 Oct 1999 17:01:50 -0700 (PDT)


Hello all,

As someone already mentioned, reading the termio man page
(on IRIX versions 6.3 and newer) will explain how the
termio structure changed.

You can define _OLD_TERMIOS at compile time and use the old
format.

You can use old binaries with new versions of IRIX and they
will still work using the old interface.

If you use the new format with current IRIX versions, then
your binaries won't work on older IRIX versions (pre 6.3).

Here is how you can code it if you with to support both
formats:

struct termio tio;

#ifdef __NEW_SSPEED
    tio.c_flag = CREAD | CS8 | CLOCAL | HUPCL;
    tio.c_ospeed = B19200;
#else
    tio.c_cflag = B19200 | CREAD | CS8 | CLOCAL | HUPCL;
#endif

Or, you can define _OLD_TERMIOS and just use the old
structure.

--Mark Aubin

On Oct 7, 3:09pm, Paul S. Cutt wrote:
> Subject: Re: Serial under IRIX 6.5.5
>
> This is a bit strange.
>
> We nornally compile on Indigo2 under 6.2 and run without problems
> on 6.3 and 6.5 on Onyx as well as O2.

Yes, this is correct. The old binaries will still work on the new
IRIX versions.

>
> Could you provide some detials on the XvsLink version (off line) ?
>
> Thanks,
>
> paul
>
> On Thu, 7 Oct 1999, Ulrich Hertlein wrote:
>
> > vossg++at++igd.fhg.de wrote:
> > > > I'm attempting to access a Logitech SpaceMouse and wrote a couple of
> > > > test apps to access the port directly and through XVS-Link. They work
> > > > fine on an Indigo2 running IRIX 6.3 and Linux but don't work at all
> > > > under IRIX 6.5.5.
> > >
> > > Yep, if I recall it right the baud rate is set different.
> > >
> > > Up to 6.3 the following was used :
> > >
> > > port_setup.c_cflag |= B9600;
> > >
> > > Starting with 6.4 there are a seperate entry for the io speeds :
> > >
> > > port_setup.c_ospeed = B9600;
> > > port_setup.c_ispeed = B9600;
> > >
> > > You should also check the baud defines, I think they changed them too.
> >
> > I'm actually using cfsetispeed(3t) and cfsetospeed(3t), which as I
> > understand handle these things properly. I assume that the XVS-Link
> > library does this similar.
> >
> > -Ulrich
> >
> > --


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Thu Oct 07 1999 - 17:01:55 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.