All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] Serial port support questions
@ 2006-10-17 13:34 Lankheet, Jeroen
  2006-10-17 14:21 ` Jan Kiszka
  0 siblings, 1 reply; 2+ messages in thread
From: Lankheet, Jeroen @ 2006-10-17 13:34 UTC (permalink / raw)
  To: xenomai


Dear all,

I've just installed Xenomai on top of a Fedora distribution (x86).
I'm using a Moxa industrial serial board (CP-134) in order to
communicate through RS485.

I tried to run the serial port example from
http://www.rts.uni-hannover.de/rtaddon/rt_serial_uprog.tar.bz2
It seems that my system cannot open the rtser0 device: rt_serial_uprog:
can't open rtser0 (write) I have some simple questions regarding this
example.

1. The xen_16550A module that should be loaded is not in the xenomai
dir? In fact, my /src/xenomai dir lacks a directory with modules. What
went wrong with installation?
2. What is rtser0? Is it a wrapper around the serial hardware for
realtime I/O? I have no devices in /dev that match rtser* 3. I have 4
ports in my sytem, 2 of them are RS232, 2 are RS485. How should I
address them? 

	Oct 17 13:15:19 localhost kernel: MOXA Smartio/Industio family
driver version 1.9.5
	Oct 17 13:15:19 localhost kernel: Found MOXA CP-134U series
board(BusNo=5,DevNo=9)
	Oct 17 13:15:19 localhost kernel: ACPI: PCI Interrupt
0000:05:09.0[A] -> GSI 18 (level, low) -> IRQ 169
	Oct 17 13:15:19 localhost kernel:         ttyM0 - ttyM3  max.
baud rate = 921600 bps.
4. I've run this same example under RTAI. Although it couldn't read from
rtser1, writing was successful. So I'm not sure that my configuration is
proper. Is there a simple test, other than compiling/running example
programs?
5. From the RTAI installation I have a /etc/rc.d/rc.rtai file that makes
the /dev/rtf* and shm nodes. Isn't this required for Xenomai?

Regards,
Jeroen Lankheet

Consultant 
Technical Software Engineering
_______________________________________
LogicaCMG Nederland B.V. 
Division Industry, Distribution & Transport 

Kennedyplein 248
Postbus 7089
5605 JB Eindhoven
The Netherlands
T: +31 (0)10 25 37 690
F: +31 (0)40 29 57 630
E: jeroen.lankheet@domain.hid
www.logicacmg.com

LogicaCMG Nederland BV
Registered office in Amsterdam, The Netherlands
Registration Number Chamber of Commerce: 3313600


This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Xenomai-help] Serial port support questions
  2006-10-17 13:34 [Xenomai-help] Serial port support questions Lankheet, Jeroen
@ 2006-10-17 14:21 ` Jan Kiszka
  0 siblings, 0 replies; 2+ messages in thread
From: Jan Kiszka @ 2006-10-17 14:21 UTC (permalink / raw)
  To: Lankheet, Jeroen; +Cc: xenomai

[-- Attachment #1: Type: text/plain, Size: 2656 bytes --]

Lankheet, Jeroen wrote:
> Dear all,
> 
> I've just installed Xenomai on top of a Fedora distribution (x86).
> I'm using a Moxa industrial serial board (CP-134) in order to
> communicate through RS485.
> 
> I tried to run the serial port example from
> http://www.rts.uni-hannover.de/rtaddon/rt_serial_uprog.tar.bz2
> It seems that my system cannot open the rtser0 device: rt_serial_uprog:
> can't open rtser0 (write) I have some simple questions regarding this
> example.
> 
> 1. The xen_16550A module that should be loaded is not in the xenomai
> dir? In fact, my /src/xenomai dir lacks a directory with modules. What
> went wrong with installation?

Likely nothing. xeno_16550A is in fact a kernel driver that should be
under /lib/modules/<your-version>/kernel/drivers/xenomai/serial. Or you
compiled it into the kernel. Did you enable it at all in the kernel config?

> 2. What is rtser0? Is it a wrapper around the serial hardware for
> realtime I/O? I have no devices in /dev that match rtser* 3. I have 4
> ports in my sytem, 2 of them are RS232, 2 are RS485. How should I
> address them? 

The namespace for RTDM-based hard-RT devices is separated from normal
Linux devices, i.e. you will not find anything related under /dev. You
can open such devices via rt_dev_open (librtdm) or, when using the POSIX
skin wrapping mechanism, via normal open (libpthread_rt). In the latter
case you can even provide /dev/rtser0, the library will ignore the prefix.

> 
> 	Oct 17 13:15:19 localhost kernel: MOXA Smartio/Industio family
> driver version 1.9.5
> 	Oct 17 13:15:19 localhost kernel: Found MOXA CP-134U series
> board(BusNo=5,DevNo=9)
> 	Oct 17 13:15:19 localhost kernel: ACPI: PCI Interrupt
> 0000:05:09.0[A] -> GSI 18 (level, low) -> IRQ 169
> 	Oct 17 13:15:19 localhost kernel:         ttyM0 - ttyM3  max.
> baud rate = 921600 bps.
> 4. I've run this same example under RTAI. Although it couldn't read from
> rtser1, writing was successful. So I'm not sure that my configuration is
> proper. Is there a simple test, other than compiling/running example
> programs?

Did you already read <xenomai-src>/doc/txt/16550A-driver.txt? Based on
this description and the demo it must work, or we face some bug. Maybe
you should first start with testing the loopback scenario with on-board
serial ports (when available) to exclude moxa-related problems.

> 5. From the RTAI installation I have a /etc/rc.d/rc.rtai file that makes
> the /dev/rtf* and shm nodes. Isn't this required for Xenomai?

It is (if you make use of pipes or shared memory), check
ksrc/nucleus/udev for the required rules.

Jan


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-10-17 14:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-17 13:34 [Xenomai-help] Serial port support questions Lankheet, Jeroen
2006-10-17 14:21 ` Jan Kiszka

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.