Skip to contentSkip to conversation

Problem with multiport serial board

Xenomai-help Marco Rossi 2 participants 2 messages Nov 10, 2006

lore
Share & tools
lore
#0 lore raw

Hi every body. I'm testing my multiport serial board (2 extra serial port) with shared interrupt using the program found at http://www.rts.uni-hannover.de/rtaddon/rt_serial_uprog.tar.bz2 .

I insert the module xeno_16550A.ko in the follow way:
insmod /.../xeno_16550A.ko ioaddr=0x3f8, 0x2f8, 0xd800, 0xdc00 irq=4,3,5,5 start_index=0

When I use only a extra port the program works, but when I try to write in the first extra port and to read in the second extraport I got an error opening the second extraport.

For example if I write in ttS0 and I read from ttyS2 all work; if I write in ttS2 and I read from ttyS3 i get :
can't open rtser3 (the rt_dev_open return a negative file descriptor). Thank in advance
Marco

_________________________________________________________________
Idee per i tuoi viaggi... http://search.live.com/results.aspx?q=viaggi&mkt=it-it&FORM=LVSP&go.x=18&go.y=15

#1 lore raw
Quoted 11 lines · Marco Rossi

Hi every body. I'm testing my multiport serial board (2 extra serial port) with shared interrupt using the program found at
http://www.rts.uni-hannover.de/rtaddon/rt_serial_uprog.tar.bz2 .

I insert the module xeno_16550A.ko in the follow way:
insmod /.../xeno_16550A.ko ioaddr=0x3f8, 0x2f8, 0xd800, 0xdc00 irq=4,3,5,5 start_index=0

Quoted 7 lines

When I use only a extra port the program works, but when I try to write in the first extra port and to read in the second extraport I got an error opening the second extraport.

For example if I write in ttS0 and I read from ttyS2 all work; if I
write in ttS2 and I read from ttyS3 i get :
can't open rtser3 (the rt_dev_open return a negative file descriptor).

The negative number is the error code (see documentation). It likely says -EBUSY, meaning here that the IRQ line is already in use. Check your Xenomai kernel configuration, I guess you haven't switched on shared edge-triggered IRQ support yet, have you?

Jan