Discussion:
[Rtai] serial communication
Felix Frey
2018-09-05 14:48:15 UTC
Permalink
Hi,

I want to do realtime serial communication over a UART. So I first tried
the rtai_serial module. This perfectly works with the legacy iomapped UART.
However, my UART are memory mapped and I think the rtai_serial module doesn't
support it.
So I tried the rtai_16550A module based on the RTDM layer. It doesn't work
with the legacy UART.
I tried the example 'test' from the directory rtdm in the showroom. It seems
the driver doesn't find the UART and there's something wrong with parameters.

I get the error messages below:
rtai_16550A: unknown parameter 'ioaddr' ignored
hello_world_lxrt: error in rt_dev_open()

So my questions are:
-is the rtdm and rtai_16550A uptodate and known as working in RTAI 5.1?
-is the rtai_16550A driver the right solution for memory mapped UART?
-what are the right params to the rtai_16550A?

Any help is appreciated.
Felix
Paolo Mantegazza
2018-09-06 11:54:28 UTC
Permalink
I've not (re)tested 16650 with the latest RTAI. The test case may not be
up to date with the latest RTDM. It is on my to do list, but I've to
find some time, either to upgrade my old PIII, which has a serial port,
or to use an USB-RS232 adapter on a newer machine.
In in a hurry, I'd rather modify rtai_serial to support memory_mapped IO.
If there is not too much rust in my mind, mapping should be the standard
way and the rest could come from a simple rewrite of outb/inb functions.

Paolo.
Post by Felix Frey
Hi,
I want to do realtime serial communication over a UART. So I first tried
the rtai_serial module. This perfectly works with the legacy iomapped UART.
However, my UART are memory mapped and I think the rtai_serial module doesn't
support it.
So I tried the rtai_16550A module based on the RTDM layer. It doesn't work
with the legacy UART.
I tried the example 'test' from the directory rtdm in the showroom. It seems
the driver doesn't find the UART and there's something wrong with parameters.
rtai_16550A: unknown parameter 'ioaddr' ignored
hello_world_lxrt: error in rt_dev_open()
-is the rtdm and rtai_16550A uptodate and known as working in RTAI 5.1?
-is the rtai_16550A driver the right solution for memory mapped UART?
-what are the right params to the rtai_16550A?
Any help is appreciated.
Felix
_______________________________________________
Rtai mailing list
https://mail.rtai.org/cgi-bin/mailman/listinfo/rtai
Continue reading on narkive:
Loading...