All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@domain.hid>
To: Divi Oillo <divi.oillo@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Problem with a serial test sofware
Date: Mon, 10 May 2010 12:23:23 +0200	[thread overview]
Message-ID: <4BE7DE9B.7030105@domain.hid> (raw)
In-Reply-To: <AANLkTimWzc7PUZP2g7hxT-upoxCcBj777L9c7d7rTRQe@domain.hid>

Divi Oillo wrote:
> Hi,
> 
> I have a kernel 2.6.32.12 with Xenomai 2.5.3
> I'm using a serial port with a PCMCIA card receiving a message each second
> (9600 8N1) and I'm having some trouble with this software:
> http://www.captain.at/xenomai-serial-port-example.php

Please avoid using examples or docs from this site. It is seriously
outdated and is obviously no longer updated (the editor was informed
several times). I just recently had to support a local user because of a
documentation flaw of that site.

There is a serial example under xenomai/examples/rtdm/profiles/serial.

> 
> $ dmesg | grep ttyS0
> [   10.550153] 0.0: ttyS0 at I/O 0x5100 (irq = 10) is a 16550A
> $ sudo setserial /dev/ttyS0
> /dev/ttyS0, UART: 16550A, Port: 0x5100, IRQ: 10
> $ sudo setserial /dev/ttyS0 uart none
> $ sudo modprobe xeno_16550A io=0x5100 irq=10
> $ sudo ./rt_serial_uprog
> START RT_SERIAL
> rt_serial_uprog: PRESS CTRL-C to EXIT
> rt_serial_uprog: rtser_file opened
> rt_serial_uprog: serial-port-config written
> rt_serial_uprog: read-task created
> rt_serial_uprog: starting read-task
> read_task : error while RTSER_RTIOC_WAIT_EVENT, code -110
> rt_serial_uprog: rtser0 (rtser) -> closed
> read_task : exit
> 
> I don't receive any message...
> 
> $ lsmod
> xeno_16550A            10568  0
> serial_cs              20295  1
> pcmcia                 34113  1 serial_cs
> pcmcia_core            36724  4 serial_cs,pcmcia,yenta_socket,rsrc_nonstatic
> 

I didn't try the xeno_16550A with pcmcia so far, nor am I aware of any
successful attempt. Please check the code of the Linux driver. Maybe
there is some additional mapping of the 16550A registers required, or
they are organized in an incompatible way.

Jan

-- 
Siemens AG, Corporate Technology, CT T DE IT 1
Corporate Competence Center Embedded Linux


      parent reply	other threads:[~2010-05-10 10:23 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-10  9:03 [Xenomai-help] Problem with a serial test sofware Divi Oillo
2010-05-10  9:52 ` Gilles Chanteperdrix
2010-05-10 10:03   ` Divi Oillo
2010-05-10 10:07     ` Gilles Chanteperdrix
2010-05-10 10:23 ` Jan Kiszka [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4BE7DE9B.7030105@domain.hid \
    --to=jan.kiszka@domain.hid \
    --cc=divi.oillo@domain.hid \
    --cc=xenomai@xenomai.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.