From: "Jonas Witt" Date: Thu, 10 May 2007 14:53:42 +0200 Message-ID: <000b01c79302$3cf11a40$c67ba8c0@domain.hid> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_000C_01C79313.0079EA40" Subject: [Xenomai-help] Serial Port Driver (rtser): No RTSER_RTIOC_WAIT_EVENT List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: xenomai@xenomai.org This is a multi-part message in MIME format. ------=_NextPart_000_000C_01C79313.0079EA40 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi everybody, =20 i am having a problem with the serial port driver in xenomai for a while now.. =20 I have tried different programs like http://www.captain.at/xenomai-serial-port-example.php =20 I have also changed the code of cross-link.c to use the same port for writing and reading (as i only have one serial port in my computer). = Opening a port and writing the configuration seems to work form e.. also = writing. The Problem stems from the call to: =20 rt_dev_ioctl(read_fd, RTSER_RTIOC_WAIT_EVENT, &rx_event); =20 which keeps waiting forever and never receives an interrupt. I tried a self-made loopback-adapter and a sensor with a serial interface (so at = least _something_ should come back). Nothing worked. The serial port is = working fine with the linux-driver, though. I already figured that the calls to rt_dev_write do not work from non-xenomai-tasks (which should really be emphasized in the documentation..) =20 I am already pretty much behind my schedule with the project that i am undertaking.. any (preferably fast ;) ) input is very much appreciated. = I think i will update the serial driver documentation when i am through = with my initial problems. I think that is desperately needed for other people that are new to xenomai. =20 Thanks in advance! Cheers, Jonas ------=_NextPart_000_000C_01C79313.0079EA40 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi everybody,

 

i am having a problem with the serial port driver in = xenomai for a while now..

 

I have tried different programs like http://www= .captain.at/xenomai-serial-port-example.php

 

I have also changed the code of cross-link.c to use = the same port for writing and reading (as i only have one serial port in my = computer). Opening a port and writing the configuration seems to work form e.. also writing. The Problem stems from the call to:

 

rt_dev_ioctl(read_fd, RTSER_RTIOC_WAIT_EVENT, &rx_event);

 

which keeps waiting forever and never receives an = interrupt. I tried a self-made loopback-adapter and a sensor with a serial = interface (so at least _something_ = should come back). Nothing worked. The serial port is working fine with the = linux-driver, though. I already figured that the calls to rt_dev_write do not work = from non-xenomai-tasks (which should really be emphasized in the = documentation..)

 

I am already pretty much behind my schedule with the = project that i am undertaking.. any (preferably fast ;) ) input is very much appreciated. I think i will update the serial driver documentation when = i am through with my initial problems. I think that is desperately needed for = other people that are new to xenomai.

 

Thanks in advance!

Cheers, Jonas

------=_NextPart_000_000C_01C79313.0079EA40--