PCI Serial communication

I’ve connected a PCI serial Card to my QNX computer. Can anybody briefly
describe how to setup the serial ports and interrupts in the sysinit file?

Also, I would greatly appreciate it, if someone can provide sample code to
activate the interrupt and read from the serial port.

Thanks,

Shashank

You can use the Dev.ser driver with 16550 compatible serial cards.
example: Dev.ser 3f8,4

Use the “show_pci -vv” command to get the ioport and irq for the device.
(see Utility Reference for details)

To read and write to the device you can use open(),read(),write (see Library
Reference for details).

i.e.

fd= open("/dev/ser1", O_RDWR);
len = read(fs, buf, BUF_SIZE);

Regards,

Joe




Shashank <sbalijepalli@precitech.com> wrote in message
news:cjelee$i8v$1@inn.qnx.com

I’ve connected a PCI serial Card to my QNX computer. Can anybody briefly
describe how to setup the serial ports and interrupts in the sysinit file?

Also, I would greatly appreciate it, if someone can provide sample code
to
activate the interrupt and read from the serial port.

Thanks,

Shashank

\

We are already using COM1(3F8) and COM2(2f8) for something else.

I’d like to use COM3(3E8) and COM4(2E8) and share interrupt 5 between these
2 ports. For now, I am thinking of using the Lava PCI serial borad and the
manual says that I can have the 2 ports share an interrupt.

Thanks for your previous reply,
Shashank




“Joe Mammone” <hw@qnx.com> wrote in message news:cjerjj$mqp$1@inn.qnx.com

You can use the Dev.ser driver with 16550 compatible serial cards.
example: Dev.ser 3f8,4

Use the “show_pci -vv” command to get the ioport and irq for the device.
(see Utility Reference for details)

To read and write to the device you can use open(),read(),write (see
Library
Reference for details).

i.e.

fd= open("/dev/ser1", O_RDWR);
len = read(fs, buf, BUF_SIZE);

Regards,

Joe




Shashank <> sbalijepalli@precitech.com> > wrote in message
news:cjelee$i8v$> 1@inn.qnx.com> …

I’ve connected a PCI serial Card to my QNX computer. Can anybody briefly
describe how to setup the serial ports and interrupts in the sysinit
file?

Also, I would greatly appreciate it, if someone can provide sample code
to
activate the interrupt and read from the serial port.

Thanks,

Shashank



\

I was just using 3f8,4 as an example, simply substitute the appropriate
values for your device.
i.e. Dev.ser 3e8,5 2e8,5

Regards,

Joe

Shashank <sbalijepalli@precitech.com> wrote in message
news:cjes62$mu5$1@inn.qnx.com

We are already using COM1(3F8) and COM2(2f8) for something else.

I’d like to use COM3(3E8) and COM4(2E8) and share interrupt 5 between
these
2 ports. For now, I am thinking of using the Lava PCI serial borad and the
manual says that I can have the 2 ports share an interrupt.

Thanks for your previous reply,
Shashank




“Joe Mammone” <> hw@qnx.com> > wrote in message
news:cjerjj$mqp$> 1@inn.qnx.com> …
You can use the Dev.ser driver with 16550 compatible serial cards.
example: Dev.ser 3f8,4

Use the “show_pci -vv” command to get the ioport and irq for the device.
(see Utility Reference for details)

To read and write to the device you can use open(),read(),write (see
Library
Reference for details).

i.e.

fd= open("/dev/ser1", O_RDWR);
len = read(fs, buf, BUF_SIZE);

Regards,

Joe




Shashank <> sbalijepalli@precitech.com> > wrote in message
news:cjelee$i8v$> 1@inn.qnx.com> …

I’ve connected a PCI serial Card to my QNX computer. Can anybody
briefly
describe how to setup the serial ports and interrupts in the sysinit
file?

Also, I would greatly appreciate it, if someone can provide sample
code
to
activate the interrupt and read from the serial port.

Thanks,

Shashank





\

When i connected this PNP card to my PC , it assigns interrupt 11 to the two
devices on this card. And there is an interrupt conflict with the Display
device? I have no way to control the interrupt assignment.

Should I try to change the slot to see if it makes a difference?

Thanks,
Shashank







“Shashank” <sbalijepalli@precitech.com> wrote in message
news:cjelee$i8v$1@inn.qnx.com

I’ve connected a PCI serial Card to my QNX computer. Can anybody briefly
describe how to setup the serial ports and interrupts in the sysinit file?

Also, I would greatly appreciate it, if someone can provide sample code
to
activate the interrupt and read from the serial port.

Thanks,

Shashank

\

Shashank <sbalijepalli@precitech.com> wrote:

When i connected this PNP card to my PC , it assigns interrupt 11 to the two
devices on this card. And there is an interrupt conflict with the Display
device? I have no way to control the interrupt assignment.

I don’t think any of our graphics drivers ever use the interrupt, or
enable it. So, ineterrupt 11 is usally safe.

-David

David Gibbs
QNX Training Services
dagibbs@qnx.com

There are usually settings in the BIOS to assign IRQs to PCI slots. Doing
this may help to resolve conflicts.

Regards,

Joe

Shashank <sbalijepalli@precitech.com> wrote in message
news:cjf3mr$s63$1@inn.qnx.com

When i connected this PNP card to my PC , it assigns interrupt 11 to the
two
devices on this card. And there is an interrupt conflict with the Display
device? I have no way to control the interrupt assignment.

Should I try to change the slot to see if it makes a difference?

Thanks,
Shashank







“Shashank” <> sbalijepalli@precitech.com> > wrote in message
news:cjelee$i8v$> 1@inn.qnx.com> …

I’ve connected a PCI serial Card to my QNX computer. Can anybody briefly
describe how to setup the serial ports and interrupts in the sysinit
file?

Also, I would greatly appreciate it, if someone can provide sample code
to
activate the interrupt and read from the serial port.

Thanks,

Shashank



\

In article <cjf3mr$s63$1@inn.qnx.com>, sbalijepalli@precitech.com
says…

When i connected this PNP card to my PC , it assigns interrupt 11 to the two
devices on this card. And there is an interrupt conflict with the Display
device?

Till you don’t use ISA (PC/104) display adapter there is no conflict.
PCI devices can share interrupts not only being placed on the same board
but being anywhere on PCI bus in a system. No matter what kind of PCI
device. So, you can have video card, USB host adapters, multiserial
boards, etc. all using the same interrupt line. It isn’t a great idea to
connect everything to single interrupt line while there are spare
interrupts lines in system, but it should work and there is no conflict.

I have no way to control the interrupt assignment.

Sometimes these settings are somewhere in BIOS Setup. Interrupt
assigment for PCI devices is done by BIOS during POST.

Should I try to change the slot to see if it makes a difference?

Usually it makes difference. But you don’t need to. Sharing interrupt
with display is OK. Sharing interrupt with network card could be much
worse. Because NIC produces a lot of interrupts and they are time
critical for the NIC driver, as well as the serial card is a great
producer of interrupts and again the serial driver has to handle
interrupt before the FIFO overflows. For the 16C550 UART based board,
the FIFO is only 16 bytes long.

In a conclusion,

  1. You need to run ‘show_pci -vv’ in order to note IO addresses and IRQ
    of serial ports;
  2. In /etc/sysinit.<node#> add those ports to the line which starts
    Dev32.ser. Example of such line:
    Dev.ser 3f8,4 2f8,3 90c0,11 90d0,11 90e0,11 90f0,11 &
    (Assuming you have 4 PCI ports using interrupt 11 and with addresses
    90c0, 90d0, 90e0, 90f0 as well as you have 2 standard com ports);
  3. Access and use serial ports through their names under /dev

stty -a </dev/ser1

(To print settings of “Com1”)

stty -a </dev/ser5

(To print settings of fifth serial port).


Eduard.

We have code written for Lava’s ISA boards that read data from the ports
using dev_read(). We’d like to try this out on the PCI board. Since we
needed to arm proxies we didnt use read(). Will dev_read work just like
read()?

I appreciate your suggestions

Shashank



“Joe Mammone” <hw@qnx.com> wrote in message news:cjet8b$ntl$1@inn.qnx.com

I was just using 3f8,4 as an example, simply substitute the appropriate
values for your device.
i.e. Dev.ser 3e8,5 2e8,5

Regards,

Joe

Shashank <> sbalijepalli@precitech.com> > wrote in message
news:cjes62$mu5$> 1@inn.qnx.com> …

We are already using COM1(3F8) and COM2(2f8) for something else.

I’d like to use COM3(3E8) and COM4(2E8) and share interrupt 5 between
these
2 ports. For now, I am thinking of using the Lava PCI serial borad and
the
manual says that I can have the 2 ports share an interrupt.

Thanks for your previous reply,
Shashank




“Joe Mammone” <> hw@qnx.com> > wrote in message
news:cjerjj$mqp$> 1@inn.qnx.com> …
You can use the Dev.ser driver with 16550 compatible serial cards.
example: Dev.ser 3f8,4

Use the “show_pci -vv” command to get the ioport and irq for the
device.
(see Utility Reference for details)

To read and write to the device you can use open(),read(),write (see
Library
Reference for details).

i.e.

fd= open("/dev/ser1", O_RDWR);
len = read(fs, buf, BUF_SIZE);

Regards,

Joe




Shashank <> sbalijepalli@precitech.com> > wrote in message
news:cjelee$i8v$> 1@inn.qnx.com> …

I’ve connected a PCI serial Card to my QNX computer. Can anybody
briefly
describe how to setup the serial ports and interrupts in the sysinit
file?

Also, I would greatly appreciate it, if someone can provide sample
code
to
activate the interrupt and read from the serial port.

Thanks,

Shashank







\

dev_read() is totally okay to use.

Regards,

Joe

Shashank <sbalijepalli@precitech.com> wrote in message
news:cjgtj3$ach$1@inn.qnx.com

We have code written for Lava’s ISA boards that read data from the ports
using dev_read(). We’d like to try this out on the PCI board. Since we
needed to arm proxies we didnt use read(). Will dev_read work just like
read()?

I appreciate your suggestions

Shashank



“Joe Mammone” <> hw@qnx.com> > wrote in message
news:cjet8b$ntl$> 1@inn.qnx.com> …
I was just using 3f8,4 as an example, simply substitute the appropriate
values for your device.
i.e. Dev.ser 3e8,5 2e8,5

Regards,

Joe

Shashank <> sbalijepalli@precitech.com> > wrote in message
news:cjes62$mu5$> 1@inn.qnx.com> …

We are already using COM1(3F8) and COM2(2f8) for something else.

I’d like to use COM3(3E8) and COM4(2E8) and share interrupt 5 between
these
2 ports. For now, I am thinking of using the Lava PCI serial borad and
the
manual says that I can have the 2 ports share an interrupt.

Thanks for your previous reply,
Shashank




“Joe Mammone” <> hw@qnx.com> > wrote in message
news:cjerjj$mqp$> 1@inn.qnx.com> …
You can use the Dev.ser driver with 16550 compatible serial cards.
example: Dev.ser 3f8,4

Use the “show_pci -vv” command to get the ioport and irq for the
device.
(see Utility Reference for details)

To read and write to the device you can use open(),read(),write (see
Library
Reference for details).

i.e.

fd= open("/dev/ser1", O_RDWR);
len = read(fs, buf, BUF_SIZE);

Regards,

Joe




Shashank <> sbalijepalli@precitech.com> > wrote in message
news:cjelee$i8v$> 1@inn.qnx.com> …

I’ve connected a PCI serial Card to my QNX computer. Can anybody
briefly
describe how to setup the serial ports and interrupts in the
sysinit
file?

Also, I would greatly appreciate it, if someone can provide
sample
code
to
activate the interrupt and read from the serial port.

Thanks,

Shashank









\

When my controller boots up it comes up with the following:

Dev ID Vend Id Dev No IRq
0110 1407 17 11 Simple Comm contrl
0111 1407 17 11 Simple Comm contrl.

So i presume it has detected the Lava card and assigned it interrupt 11.
However, if i run the show_pci command , it doesnt show me this card.
Whereas the VGA which is using 11 is displayed in the output of the
show_pci command. I am using a PNP frame grabber that uses interrupt 10 and
that is also displaybed by show_pci.

Am i missing something?

Thanks
Shashank








“Joe Mammone” <hw@qnx.com> wrote in message news:cjguds$apv$1@inn.qnx.com

dev_read() is totally okay to use.

Regards,

Joe

Shashank <> sbalijepalli@precitech.com> > wrote in message
news:cjgtj3$ach$> 1@inn.qnx.com> …

We have code written for Lava’s ISA boards that read data from the ports
using dev_read(). We’d like to try this out on the PCI board. Since we
needed to arm proxies we didnt use read(). Will dev_read work just like
read()?

I appreciate your suggestions

Shashank



“Joe Mammone” <> hw@qnx.com> > wrote in message
news:cjet8b$ntl$> 1@inn.qnx.com> …
I was just using 3f8,4 as an example, simply substitute the
appropriate
values for your device.
i.e. Dev.ser 3e8,5 2e8,5

Regards,

Joe

Shashank <> sbalijepalli@precitech.com> > wrote in message
news:cjes62$mu5$> 1@inn.qnx.com> …

We are already using COM1(3F8) and COM2(2f8) for something else.

I’d like to use COM3(3E8) and COM4(2E8) and share interrupt 5
between
these
2 ports. For now, I am thinking of using the Lava PCI serial borad
and
the
manual says that I can have the 2 ports share an interrupt.

Thanks for your previous reply,
Shashank




“Joe Mammone” <> hw@qnx.com> > wrote in message
news:cjerjj$mqp$> 1@inn.qnx.com> …
You can use the Dev.ser driver with 16550 compatible serial cards.
example: Dev.ser 3f8,4

Use the “show_pci -vv” command to get the ioport and irq for the
device.
(see Utility Reference for details)

To read and write to the device you can use open(),read(),write
(see
Library
Reference for details).

i.e.

fd= open("/dev/ser1", O_RDWR);
len = read(fs, buf, BUF_SIZE);

Regards,

Joe




Shashank <> sbalijepalli@precitech.com> > wrote in message
news:cjelee$i8v$> 1@inn.qnx.com> …

I’ve connected a PCI serial Card to my QNX computer. Can anybody
briefly
describe how to setup the serial ports and interrupts in the
sysinit
file?

Also, I would greatly appreciate it, if someone can provide
sample
code
to
activate the interrupt and read from the serial port.

Thanks,

Shashank











\

The ‘show_pci’ utility will only show pci devices.
ISA devices will not be listed.

Regards,

Joe

Shashank <sbalijepalli@precitech.com> wrote in message
news:cjh2eb$dmv$1@inn.qnx.com

When my controller boots up it comes up with the following:

Dev ID Vend Id Dev No IRq
0110 1407 17 11 Simple Comm contrl
0111 1407 17 11 Simple Comm contrl.

So i presume it has detected the Lava card and assigned it interrupt 11.
However, if i run the show_pci command , it doesnt show me this card.
Whereas the VGA which is using 11 is displayed in the output of the
show_pci command. I am using a PNP frame grabber that uses interrupt 10
and
that is also displaybed by show_pci.

Am i missing something?

Thanks
Shashank








“Joe Mammone” <> hw@qnx.com> > wrote in message
news:cjguds$apv$> 1@inn.qnx.com> …
dev_read() is totally okay to use.

Regards,

Joe

Shashank <> sbalijepalli@precitech.com> > wrote in message
news:cjgtj3$ach$> 1@inn.qnx.com> …

We have code written for Lava’s ISA boards that read data from the
ports
using dev_read(). We’d like to try this out on the PCI board. Since we
needed to arm proxies we didnt use read(). Will dev_read work just
like
read()?

I appreciate your suggestions

Shashank



“Joe Mammone” <> hw@qnx.com> > wrote in message
news:cjet8b$ntl$> 1@inn.qnx.com> …
I was just using 3f8,4 as an example, simply substitute the
appropriate
values for your device.
i.e. Dev.ser 3e8,5 2e8,5

Regards,

Joe

Shashank <> sbalijepalli@precitech.com> > wrote in message
news:cjes62$mu5$> 1@inn.qnx.com> …

We are already using COM1(3F8) and COM2(2f8) for something else.

I’d like to use COM3(3E8) and COM4(2E8) and share interrupt 5
between
these
2 ports. For now, I am thinking of using the Lava PCI serial borad
and
the
manual says that I can have the 2 ports share an interrupt.

Thanks for your previous reply,
Shashank




“Joe Mammone” <> hw@qnx.com> > wrote in message
news:cjerjj$mqp$> 1@inn.qnx.com> …
You can use the Dev.ser driver with 16550 compatible serial
cards.
example: Dev.ser 3f8,4

Use the “show_pci -vv” command to get the ioport and irq for the
device.
(see Utility Reference for details)

To read and write to the device you can use open(),read(),write
(see
Library
Reference for details).

i.e.

fd= open("/dev/ser1", O_RDWR);
len = read(fs, buf, BUF_SIZE);

Regards,

Joe




Shashank <> sbalijepalli@precitech.com> > wrote in message
news:cjelee$i8v$> 1@inn.qnx.com> …

I’ve connected a PCI serial Card to my QNX computer. Can
anybody
briefly
describe how to setup the serial ports and interrupts in the
sysinit
file?

Also, I would greatly appreciate it, if someone can provide
sample
code
to
activate the interrupt and read from the serial port.

Thanks,

Shashank













\

I realize that. But I am using a PCI lava board that
is assigned an interrupt (11) in the bios but doesnt show up when I run the
show_pci command.

Thanks,
Shashank

“Joe Mammone” <hw@qnx.com> wrote in message news:cjhctn$lbg$1@inn.qnx.com

The ‘show_pci’ utility will only show pci devices.
ISA devices will not be listed.

Regards,

Joe

Shashank <> sbalijepalli@precitech.com> > wrote in message
news:cjh2eb$dmv$> 1@inn.qnx.com> …
When my controller boots up it comes up with the following:

Dev ID Vend Id Dev No IRq
0110 1407 17 11 Simple Comm contrl
0111 1407 17 11 Simple Comm contrl.

So i presume it has detected the Lava card and assigned it interrupt 11.
However, if i run the show_pci command , it doesnt show me this card.
Whereas the VGA which is using 11 is displayed in the output of the
show_pci command. I am using a PNP frame grabber that uses interrupt 10
and
that is also displaybed by show_pci.

Am i missing something?

Thanks
Shashank








“Joe Mammone” <> hw@qnx.com> > wrote in message
news:cjguds$apv$> 1@inn.qnx.com> …
dev_read() is totally okay to use.

Regards,

Joe

Shashank <> sbalijepalli@precitech.com> > wrote in message
news:cjgtj3$ach$> 1@inn.qnx.com> …

We have code written for Lava’s ISA boards that read data from the
ports
using dev_read(). We’d like to try this out on the PCI board. Since
we
needed to arm proxies we didnt use read(). Will dev_read work just
like
read()?

I appreciate your suggestions

Shashank



“Joe Mammone” <> hw@qnx.com> > wrote in message
news:cjet8b$ntl$> 1@inn.qnx.com> …
I was just using 3f8,4 as an example, simply substitute the
appropriate
values for your device.
i.e. Dev.ser 3e8,5 2e8,5

Regards,

Joe

Shashank <> sbalijepalli@precitech.com> > wrote in message
news:cjes62$mu5$> 1@inn.qnx.com> …

We are already using COM1(3F8) and COM2(2f8) for something else.

I’d like to use COM3(3E8) and COM4(2E8) and share interrupt 5
between
these
2 ports. For now, I am thinking of using the Lava PCI serial
borad
and
the
manual says that I can have the 2 ports share an interrupt.

Thanks for your previous reply,
Shashank




“Joe Mammone” <> hw@qnx.com> > wrote in message
news:cjerjj$mqp$> 1@inn.qnx.com> …
You can use the Dev.ser driver with 16550 compatible serial
cards.
example: Dev.ser 3f8,4

Use the “show_pci -vv” command to get the ioport and irq for
the
device.
(see Utility Reference for details)

To read and write to the device you can use
open(),read(),write
(see
Library
Reference for details).

i.e.

fd= open("/dev/ser1", O_RDWR);
len = read(fs, buf, BUF_SIZE);

Regards,

Joe




Shashank <> sbalijepalli@precitech.com> > wrote in message
news:cjelee$i8v$> 1@inn.qnx.com> …

I’ve connected a PCI serial Card to my QNX computer. Can
anybody
briefly
describe how to setup the serial ports and interrupts in the
sysinit
file?

Also, I would greatly appreciate it, if someone can provide
sample
code
to
activate the interrupt and read from the serial port.

Thanks,

Shashank















\

Try “show_pci -v”.

“Shashank” <sbalijepalli@precitech.com> wrote in message
news:cjhjbj$pts$1@inn.qnx.com

I realize that. But I am using a PCI lava board that
is assigned an interrupt (11) in the bios but doesnt show up when I run
the
show_pci command.

Thanks,
Shashank

“Joe Mammone” <> hw@qnx.com> > wrote in message
news:cjhctn$lbg$> 1@inn.qnx.com> …
The ‘show_pci’ utility will only show pci devices.
ISA devices will not be listed.

Regards,

Joe

Shashank <> sbalijepalli@precitech.com> > wrote in message
news:cjh2eb$dmv$> 1@inn.qnx.com> …
When my controller boots up it comes up with the following:

Dev ID Vend Id Dev No IRq
0110 1407 17 11 Simple Comm contrl
0111 1407 17 11 Simple Comm contrl.

So i presume it has detected the Lava card and assigned it interrupt
11.
However, if i run the show_pci command , it doesnt show me this card.
Whereas the VGA which is using 11 is displayed in the output of the
show_pci command. I am using a PNP frame grabber that uses interrupt 10
and
that is also displaybed by show_pci.

Am i missing something?

Thanks
Shashank








“Joe Mammone” <> hw@qnx.com> > wrote in message
news:cjguds$apv$> 1@inn.qnx.com> …
dev_read() is totally okay to use.

Regards,

Joe

Shashank <> sbalijepalli@precitech.com> > wrote in message
news:cjgtj3$ach$> 1@inn.qnx.com> …

We have code written for Lava’s ISA boards that read data from the
ports
using dev_read(). We’d like to try this out on the PCI board. Since
we
needed to arm proxies we didnt use read(). Will dev_read work just
like
read()?

I appreciate your suggestions

Shashank



“Joe Mammone” <> hw@qnx.com> > wrote in message
news:cjet8b$ntl$> 1@inn.qnx.com> …
I was just using 3f8,4 as an example, simply substitute the
appropriate
values for your device.
i.e. Dev.ser 3e8,5 2e8,5

Regards,

Joe

Shashank <> sbalijepalli@precitech.com> > wrote in message
news:cjes62$mu5$> 1@inn.qnx.com> …

We are already using COM1(3F8) and COM2(2f8) for something
else.

I’d like to use COM3(3E8) and COM4(2E8) and share interrupt 5
between
these
2 ports. For now, I am thinking of using the Lava PCI serial
borad
and
the
manual says that I can have the 2 ports share an interrupt.

Thanks for your previous reply,
Shashank




“Joe Mammone” <> hw@qnx.com> > wrote in message
news:cjerjj$mqp$> 1@inn.qnx.com> …
You can use the Dev.ser driver with 16550 compatible serial
cards.
example: Dev.ser 3f8,4

Use the “show_pci -vv” command to get the ioport and irq for
the
device.
(see Utility Reference for details)

To read and write to the device you can use
open(),read(),write
(see
Library
Reference for details).

i.e.

fd= open("/dev/ser1", O_RDWR);
len = read(fs, buf, BUF_SIZE);

Regards,

Joe




Shashank <> sbalijepalli@precitech.com> > wrote in message
news:cjelee$i8v$> 1@inn.qnx.com> …

I’ve connected a PCI serial Card to my QNX computer. Can
anybody
briefly
describe how to setup the serial ports and interrupts in
the
sysinit
file?

Also, I would greatly appreciate it, if someone can
provide
sample
code
to
activate the interrupt and read from the serial port.

Thanks,

Shashank

















\

show_pci -v comes up with a memory fault

thanks,
Shashank

“Kevin Miller” <kevin.miller@transcore.com> wrote in message
news:cjhkff$qj7$1@inn.qnx.com

Try “show_pci -v”.

“Shashank” <> sbalijepalli@precitech.com> > wrote in message
news:cjhjbj$pts$> 1@inn.qnx.com> …

I realize that. But I am using a PCI lava board that
is assigned an interrupt (11) in the bios but doesnt show up when I run
the
show_pci command.

Thanks,
Shashank

“Joe Mammone” <> hw@qnx.com> > wrote in message
news:cjhctn$lbg$> 1@inn.qnx.com> …
The ‘show_pci’ utility will only show pci devices.
ISA devices will not be listed.

Regards,

Joe

Shashank <> sbalijepalli@precitech.com> > wrote in message
news:cjh2eb$dmv$> 1@inn.qnx.com> …
When my controller boots up it comes up with the following:

Dev ID Vend Id Dev No IRq
0110 1407 17 11 Simple Comm contrl
0111 1407 17 11 Simple Comm contrl.

So i presume it has detected the Lava card and assigned it interrupt
11.
However, if i run the show_pci command , it doesnt show me this card.
Whereas the VGA which is using 11 is displayed in the output of the
show_pci command. I am using a PNP frame grabber that uses interrupt
10
and
that is also displaybed by show_pci.

Am i missing something?

Thanks
Shashank








“Joe Mammone” <> hw@qnx.com> > wrote in message
news:cjguds$apv$> 1@inn.qnx.com> …
dev_read() is totally okay to use.

Regards,

Joe

Shashank <> sbalijepalli@precitech.com> > wrote in message
news:cjgtj3$ach$> 1@inn.qnx.com> …

We have code written for Lava’s ISA boards that read data from
the
ports
using dev_read(). We’d like to try this out on the PCI board.
Since
we
needed to arm proxies we didnt use read(). Will dev_read work
just
like
read()?

I appreciate your suggestions

Shashank



“Joe Mammone” <> hw@qnx.com> > wrote in message
news:cjet8b$ntl$> 1@inn.qnx.com> …
I was just using 3f8,4 as an example, simply substitute the
appropriate
values for your device.
i.e. Dev.ser 3e8,5 2e8,5

Regards,

Joe

Shashank <> sbalijepalli@precitech.com> > wrote in message
news:cjes62$mu5$> 1@inn.qnx.com> …

We are already using COM1(3F8) and COM2(2f8) for something
else.

I’d like to use COM3(3E8) and COM4(2E8) and share interrupt 5
between
these
2 ports. For now, I am thinking of using the Lava PCI serial
borad
and
the
manual says that I can have the 2 ports share an interrupt.

Thanks for your previous reply,
Shashank




“Joe Mammone” <> hw@qnx.com> > wrote in message
news:cjerjj$mqp$> 1@inn.qnx.com> …
You can use the Dev.ser driver with 16550 compatible serial
cards.
example: Dev.ser 3f8,4

Use the “show_pci -vv” command to get the ioport and irq
for
the
device.
(see Utility Reference for details)

To read and write to the device you can use
open(),read(),write
(see
Library
Reference for details).

i.e.

fd= open("/dev/ser1", O_RDWR);
len = read(fs, buf, BUF_SIZE);

Regards,

Joe




Shashank <> sbalijepalli@precitech.com> > wrote in message
news:cjelee$i8v$> 1@inn.qnx.com> …

I’ve connected a PCI serial Card to my QNX computer. Can
anybody
briefly
describe how to setup the serial ports and interrupts in
the
sysinit
file?

Also, I would greatly appreciate it, if someone can
provide
sample
code
to
activate the interrupt and read from the serial port.

Thanks,

Shashank



















\

Try moving the card to another PCI slot.

Regards,

Joe

Shashank <sbalijepalli@precitech.com> wrote in message
news:cjhklr$qla$1@inn.qnx.com

show_pci -v comes up with a memory fault

thanks,
Shashank

“Kevin Miller” <> kevin.miller@transcore.com> > wrote in message
news:cjhkff$qj7$> 1@inn.qnx.com> …
Try “show_pci -v”.

“Shashank” <> sbalijepalli@precitech.com> > wrote in message
news:cjhjbj$pts$> 1@inn.qnx.com> …

I realize that. But I am using a PCI lava board that
is assigned an interrupt (11) in the bios but doesnt show up when I
run
the
show_pci command.

Thanks,
Shashank

“Joe Mammone” <> hw@qnx.com> > wrote in message
news:cjhctn$lbg$> 1@inn.qnx.com> …
The ‘show_pci’ utility will only show pci devices.
ISA devices will not be listed.

Regards,

Joe

Shashank <> sbalijepalli@precitech.com> > wrote in message
news:cjh2eb$dmv$> 1@inn.qnx.com> …
When my controller boots up it comes up with the following:

Dev ID Vend Id Dev No IRq
0110 1407 17 11 Simple Comm contrl
0111 1407 17 11 Simple Comm contrl.

So i presume it has detected the Lava card and assigned it
interrupt
11.
However, if i run the show_pci command , it doesnt show me this
card.
Whereas the VGA which is using 11 is displayed in the output of
the
show_pci command. I am using a PNP frame grabber that uses
interrupt
10
and
that is also displaybed by show_pci.

Am i missing something?

Thanks
Shashank








“Joe Mammone” <> hw@qnx.com> > wrote in message
news:cjguds$apv$> 1@inn.qnx.com> …
dev_read() is totally okay to use.

Regards,

Joe

Shashank <> sbalijepalli@precitech.com> > wrote in message
news:cjgtj3$ach$> 1@inn.qnx.com> …

We have code written for Lava’s ISA boards that read data from
the
ports
using dev_read(). We’d like to try this out on the PCI board.
Since
we
needed to arm proxies we didnt use read(). Will dev_read work
just
like
read()?

I appreciate your suggestions

Shashank



“Joe Mammone” <> hw@qnx.com> > wrote in message
news:cjet8b$ntl$> 1@inn.qnx.com> …
I was just using 3f8,4 as an example, simply substitute the
appropriate
values for your device.
i.e. Dev.ser 3e8,5 2e8,5

Regards,

Joe

Shashank <> sbalijepalli@precitech.com> > wrote in message
news:cjes62$mu5$> 1@inn.qnx.com> …

We are already using COM1(3F8) and COM2(2f8) for something
else.

I’d like to use COM3(3E8) and COM4(2E8) and share interrupt
5
between
these
2 ports. For now, I am thinking of using the Lava PCI
serial
borad
and
the
manual says that I can have the 2 ports share an interrupt.

Thanks for your previous reply,
Shashank




“Joe Mammone” <> hw@qnx.com> > wrote in message
news:cjerjj$mqp$> 1@inn.qnx.com> …
You can use the Dev.ser driver with 16550 compatible
serial
cards.
example: Dev.ser 3f8,4

Use the “show_pci -vv” command to get the ioport and irq
for
the
device.
(see Utility Reference for details)

To read and write to the device you can use
open(),read(),write
(see
Library
Reference for details).

i.e.

fd= open("/dev/ser1", O_RDWR);
len = read(fs, buf, BUF_SIZE);

Regards,

Joe




Shashank <> sbalijepalli@precitech.com> > wrote in message
news:cjelee$i8v$> 1@inn.qnx.com> …

I’ve connected a PCI serial Card to my QNX computer.
Can
anybody
briefly
describe how to setup the serial ports and interrupts
in
the
sysinit
file?

Also, I would greatly appreciate it, if someone can
provide
sample
code
to
activate the interrupt and read from the serial port.

Thanks,

Shashank





















\

I tried changing it to a different slot but it still wouldnt work. Is there
a web-site where i can get the latest version of show_pci or a similar
utility?

Thanks,
Shashank


“Shashank” <sbalijepalli@precitech.com> wrote in message
news:cjelee$i8v$1@inn.qnx.com

I’ve connected a PCI serial Card to my QNX computer. Can anybody briefly
describe how to setup the serial ports and interrupts in the sysinit file?

Also, I would greatly appreciate it, if someone can provide sample code
to
activate the interrupt and read from the serial port.

Thanks,

Shashank

\

I hope someone can come up with a suggestion.

Thanks again
Shashank

“Shashank” <sbalijepalli@precitech.com> wrote in message
news:cjro1l$dt3$1@inn.qnx.com

I tried changing it to a different slot but it still wouldnt work. Is
there
a web-site where i can get the latest version of show_pci or a similar
utility?

Thanks,
Shashank


“Shashank” <> sbalijepalli@precitech.com> > wrote in message
news:cjelee$i8v$> 1@inn.qnx.com> …

I’ve connected a PCI serial Card to my QNX computer. Can anybody briefly
describe how to setup the serial ports and interrupts in the sysinit
file?

Also, I would greatly appreciate it, if someone can provide sample code
to
activate the interrupt and read from the serial port.

Thanks,

Shashank



\

You can get the lastest patch (Patch G) for QNX 4.25 on the QNX website.

Regards,

Joe
Shashank <sbalijepalli@precitech.com> wrote in message
news:cjs8c2$pkc$1@inn.qnx.com

I hope someone can come up with a suggestion.

Thanks again
Shashank

“Shashank” <> sbalijepalli@precitech.com> > wrote in message
news:cjro1l$dt3$> 1@inn.qnx.com> …

I tried changing it to a different slot but it still wouldnt work. Is
there
a web-site where i can get the latest version of show_pci or a similar
utility?

Thanks,
Shashank


“Shashank” <> sbalijepalli@precitech.com> > wrote in message
news:cjelee$i8v$> 1@inn.qnx.com> …

I’ve connected a PCI serial Card to my QNX computer. Can anybody
briefly
describe how to setup the serial ports and interrupts in the sysinit
file?

Also, I would greatly appreciate it, if someone can provide sample
code
to
activate the interrupt and read from the serial port.

Thanks,

Shashank





\

There is source code for show_pci somewhere; I have an older copy of it
myself. You could compile and run it under the debugger, to see where the -v
option is crashing. Might give you some insight.

“Joe Mammone” <hw@qnx.com> wrote in message news:cjsb84$rof$1@inn.qnx.com

You can get the lastest patch (Patch G) for QNX 4.25 on the QNX website.

Regards,

Joe
Shashank <> sbalijepalli@precitech.com> > wrote in message
news:cjs8c2$pkc$> 1@inn.qnx.com> …

I hope someone can come up with a suggestion.

Thanks again
Shashank

“Shashank” <> sbalijepalli@precitech.com> > wrote in message
news:cjro1l$dt3$> 1@inn.qnx.com> …

I tried changing it to a different slot but it still wouldnt work. Is
there
a web-site where i can get the latest version of show_pci or a similar
utility?

Thanks,
Shashank


“Shashank” <> sbalijepalli@precitech.com> > wrote in message
news:cjelee$i8v$> 1@inn.qnx.com> …

I’ve connected a PCI serial Card to my QNX computer. Can anybody
briefly
describe how to setup the serial ports and interrupts in the sysinit
file?

Also, I would greatly appreciate it, if someone can provide sample
code
to
activate the interrupt and read from the serial port.

Thanks,

Shashank







\