Re: open() command failing on serial port - Update

From: Justin Robbs (justin_robbsNO_at_SPAMhotmail.com)
Date: 01/28/04


Date: Wed, 28 Jan 2004 09:07:35 -0700


"Vu Pham" <vu@sivell.com> wrote in message
news:bv8apk$oq4c2$1@ID-219297.news.uni-berlin.de...
>
> "Justin Robbs" <justin_robbsNO@SPAMhotmail.com> wrote in
message
> news:bv6q9l$o4a$1@news.tdl.com...
> >
> > "Justin Robbs" <justin_robbsNO@SPAMhotmail.com> wrote in
message
> > news:bv6guj$kv0$1@news.tdl.com...
> > > I am trying to open a serial port on an 8 port pci
Digiboard
> > and
> > > open() keeps returning ENXIO. I am testing out a new model
of
> > PC
> > > to run our POS system. The digiboard and POS program work
fine
> > > on the old PC (an IBM pc 300 GL). The new PC is an IBM
> > > ThinkCentre 8183-A. Both machines are running 5.0.6. The
> > > scoadmin serial manager installs the card just fine and the
> > > machine boots cleanly. hwconfig recognizes the card. The
> > device
> > > files exist on the machine (/dev/tty2a - /dev/tty2h). Here
is
> > > the open command:
> > >
> > > cPort->fd = open( cPort->devicePath, O_RDWR|O_NONBLOCK );
> > >
> > > Can anyone provide any suggestions on how to get around
this?
> > > Any help is greatly appreciated.
> > >
> > > Thanks,
> > > Justin
> > >
> > >
> >
> > Correction hwconfig is not seeing the card. I was looking at
the
> > wrong line.
> >
> > Also, I tried
> >
> > stty -a < /dev/tty2a
> >
> > and got an error stating "cannot open." This is the same for
all
> > ports on the board.
>
> Have you checked the permission on that device?
>

Permissions are crw-rw-rw-. This is the same as all of my other
machines.

Justin



Relevant Pages

  • Re: [Full-disclosure] scanning
    ... permission from the owner? ... How about a simple port scan? ... card before doing anything, unless it is your own *personal* machine. ...
    (Full-Disclosure)
  • Re: Ask EU: Computer Security
    ... > was rather alarmed to see my Visa card number obligingly pop up when I ... > (some sites do store my details, with my permission, and show just the ... I would shout at CCC.. ...
    (uk.media.radio.archers)
  • Re: Rejection (seen elsewhere) Now with link
    ... Marc Wilson said: ... ways), but I hated having to ask some official's permission to be there, ... a wbo if you could find one, but not to live there, you needed a Card Of ...
    (uk.rec.sheds)
  • Re: OT: Im curious as to what people think about this
    ... regardless of whether you are carrying a card ... The card merely makes clear your wishes - it does not give the ... They still have to obtain permission from your next of kin to harvest ...
    (uk.rec.motorcycles)
  • Re: open() command failing on serial port - Update
    ... >> to run our POS system. ... The digiboard and POS program work fine ... hwconfig recognizes the card. ... > Correction hwconfig is not seeing the card. ...
    (comp.unix.programmer)