Dear all,

I am using the driver "xeno_16550A" for serial communication between a
powersupply and its controlling PC (x86). I started working with Xenomai
2.5.5, but I recently switched to another machine where I installed Xenomai
2.6.

On this new machine, I get the "Inappropriate ioctl for device" error while
setting up my serial connection:
  err = rt_dev_ioctl(fd, RTSER_RTIOC_SET_CONFIG, &serial_config);
  >> error -25: Inappropriate ioctl for device
The following reads/writes don't fail but without proper configuration,
messages aren't understood by the device.

My tests with non-RT code and the regular Linux driver keeps working with
this new machine and again, the RT code is the very same, I only updated my
Makefile to match the new version.

- setserial infos:
  /dev/ttyS0 uart 16550A port 0x03f8 irq 4 baud_base 115200 spd_normal
skip_test
- xeno_16550A loaded with:
  `modprobe -v xeno_16550A io=0x03f8 irq=4 baud_base=115200`
- result of "rtdm" unit test:
  SetupExclusive openSuccessive openDefer close by driver handlerDefer
close by pending referenceNormal closeDeferred module unload#

Do you have any idea where the error comes from and how would I fix it?


Thanks,
Manuel



-- 
Manuel Vonthron
Laboratoire de Nanorobotique
École Polytechnique de Montréal
Montréal, QC
http://nano.polymtl.ca/
_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Reply via email to