Re: open() command failing on serial port - Update
From: Justin Robbs (justin_robbsNO_at_SPAMhotmail.com)
Date: 01/28/04
- Next message: Michel Bardiaux: "Re: Do 'fork' copies the "Code" Memory space?"
- Previous message: Måns Rullgård: "Re: "Randomzing" filenames during compilation"
- In reply to: Vu Pham: "Re: open() command failing on serial port - Update"
- Next in thread: Barry Margolin: "Re: open() command failing on serial port - Update"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Michel Bardiaux: "Re: Do 'fork' copies the "Code" Memory space?"
- Previous message: Måns Rullgård: "Re: "Randomzing" filenames during compilation"
- In reply to: Vu Pham: "Re: open() command failing on serial port - Update"
- Next in thread: Barry Margolin: "Re: open() command failing on serial port - Update"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|