Skip to contentSkip to conversation

USB to serial converter using in Xenomai

Xenomai-help Pavel Pirkl 2 participants 2 messages Oct 7, 2006 – Oct 8, 2006

lore
Share & tools
lore
#0 lore raw

Hello,
1.
I am using USB to serial convertes with FTDI chip. But I don´t know which paramaters of irq and ioaddr I must to set for xeno_16550A.ko . Can you help me where I found this parameters?

2.
Now I am using two serial link defined us
#!/bin/sh
setserial /dev/ttyS1 uart none #COM2
setserial /dev/ttyS2 uart none #COM3

insmod    ./xeno_nucleus.ko
insmod    ./xeno_native.ko
insmod    ./xeno_rtdm.ko
insmod    ./xeno_16550A.ko ioaddr=0x2f8,0x3e8 irq=3,5 tx_fifo=10,10 start_index=0    #COM2, COM3

This two serial link works very good.
But if I am set for example this
#!/bin/sh
setserial /dev/ttyS2 uart none #COM3
setserial /dev/ttyS3 uart none #COM4 - not function ??

insmod    ./xeno_nucleus.ko
insmod    ./xeno_native.ko
insmod    ./xeno_rtdm.ko
insmod    ./xeno_16550A.ko ioaddr=0x3e8,0x3f8 irq=5,10 tx_fifo=10,10 start_index=0    #COM3, COM4

The COM3 works but COM4 doesn´t work. Where is problem?

Thank you very much for your answer.
Pavel Pirkl.

#1 lore raw
Quoted 22 lines · Pavel Pirkl

Hello,
1.
I am using USB to serial convertes with FTDI chip. But I don´t know which paramaters of irq and ioaddr I must to set for xeno_16550A.ko . Can you help me where I found this parameters?

2.
Now I am using two serial link defined us
#!/bin/sh
setserial /dev/ttyS1 uart none #COM2
setserial /dev/ttyS2 uart none #COM3

insmod    ./xeno_nucleus.ko
insmod    ./xeno_native.ko
insmod    ./xeno_rtdm.ko
insmod    ./xeno_16550A.ko ioaddr=0x2f8,0x3e8 irq=3,5 tx_fifo=10,10

start_index=0 #COM2, COM3

This two serial link works very good.
But if I am set for example this
#!/bin/sh
setserial /dev/ttyS2 uart none #COM3
setserial /dev/ttyS3 uart none #COM4 - not function ??

Quoted 7 lines
insmod    ./xeno_nucleus.ko
insmod    ./xeno_native.ko
insmod    ./xeno_rtdm.ko
insmod    ./xeno_16550A.ko ioaddr=0x3e8,0x3f8 irq=5,10 tx_fifo=10,10

start_index=0 #COM3, COM4

The COM3 works but COM4 doesn´t work. Where is problem?

The FTDI can only be used via an USB stack + a FTDI device drivers, there is no such thing as 16550A emulation via USB devices.

I have such a FTDI driver for the USB4RT stack here, but it is in an "experimental" (means unusable :-/) state. I still hope we can resolve this one day, but I cannot promise when.

Jan