tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* Question #3: Serial device control
@ 1996-06-26 17:50 mgaluza
  0 siblings, 0 replies; only message in thread
From: mgaluza @ 1996-06-26 17:50 UTC (permalink / raw)
  To: tru64-unix-managers

managers:
   As promised in my previous summary, here is my 3rd question about
my problem controlling a device connected to the serial port.  Here's
a recap:  I am trying to use ioctl() calls to control a device (a barcode 
reader) connected to my serial port.  I am able to open() /dev/tty01 and
change the port settings with ioctl()'s.  However when I change port
settings it seems to affect my terminal, not the connection to the device.
For example, when I turn off echo, characters no longer appear at my
prompt when I type. 
   One experiment I've tried is to look at the major and minor device
numbers of the devie and /dev/tty before and after opening, using stat()
and fstat().  BTW, the "ace" serial port driver (major # 35) is configured 
for tty01.  Before opening, tty01 and tty have a major/minor pair of 35/1
and 1/0 respectively, as would be expected.  However, after opening each
device, the major/minor pair becomes 6/4 for both devices.  This happens
to be the same pair as my terminal device /dev/ttyp4.
   Does anyone have any clue why, after opening, I am getting access to
the terminal rather than to the actual physical device?  Is there some 
sort of terminal or serial port configuration I don't know about?

Thanks,
Mike

P.S. An addendum to my previous summary:  One reason I became confused
about the appropriate driver for my serial port was that there is no 
man page for the ace driver.  There are man pages for the scc and iscc
drivers however.  There is a man page for ace in DU 4.0. Someone has 
emailed it to me.

----------------------------------------------------------------------
Michael Galuza
DeJarnette Research Systems                  mgaluza@dejarnette.com 
401 Washington Ave  Suite 700                Voice: +1(410)583-0680 x691
Towson, MD 21204                             Fax:   +1(410)583-0696
----------------------------------------------------------------------

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1996-06-26 17:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-06-26 17:50 Question #3: Serial device control mgaluza

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox