All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] Problem with a serial test sofware
@ 2010-05-10  9:03 Divi Oillo
  2010-05-10  9:52 ` Gilles Chanteperdrix
  2010-05-10 10:23 ` Jan Kiszka
  0 siblings, 2 replies; 5+ messages in thread
From: Divi Oillo @ 2010-05-10  9:03 UTC (permalink / raw)
  To: xenomai

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

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

$ 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

Regards.

[-- Attachment #2: Type: text/html, Size: 1318 bytes --]

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

* Re: [Xenomai-help] Problem with a serial test sofware
  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:23 ` Jan Kiszka
  1 sibling, 1 reply; 5+ messages in thread
From: Gilles Chanteperdrix @ 2010-05-10  9:52 UTC (permalink / raw)
  To: Divi Oillo; +Cc: xenomai

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
> 
> $ 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...

I do not know much about this test, so I will only have a stupid
question: is there anything sending messages to this machine through the
serial cable?


-- 
					    Gilles.


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

* Re: [Xenomai-help] Problem with a serial test sofware
  2010-05-10  9:52 ` Gilles Chanteperdrix
@ 2010-05-10 10:03   ` Divi Oillo
  2010-05-10 10:07     ` Gilles Chanteperdrix
  0 siblings, 1 reply; 5+ messages in thread
From: Divi Oillo @ 2010-05-10 10:03 UTC (permalink / raw)
  To: Gilles Chanteperdrix; +Cc: xenomai

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

2010/5/10 Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>

> 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
> >
> > $ 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...
>
> I do not know much about this test, so I will only have a stupid
> question: is there anything sending messages to this machine through the
> serial cable?
>

Yes there is.

$ sudo minicom -s
Welcome to minicom 2.3

OPTIONS: I18n

Compiled on Sep 25 2009, 23:45:34.

Port /dev/ttyS0



               Press CTRL-A Z for help on special keys



$GPGLL,2146.590,N,02146.590,W,115718*5E

$GPRMC,115718,A,2146.590,N,02146.590,W,005.0,315.0,100510,000.0,W*7A

$GPVTG,315.0,T,315.0,M,005.0,N,009.3,K*41

$GPZDA,115718,10,05,2010,00*68

$GPGGA,115718,2146.590,N,02146.590,W,1,08,2.0,100.0,M,50.0,M,,*55

$GPGSA,A,3,01,02,03,,05,,07,,09,,11,12,2.0,2.0,2.0*38
$GPGLL,2146.591,N,02146.591,W,115719*5F
$GPRMC,115719,A,2146.591,N,02146.591,W,005.0,315.0,100510,000.0,W*7B
$GPVTG,315.0,T,315.0,M,005.0,N,009.3,K*41
$GPZDA,115719,10,05,2010,00*69
$GPGGA,115719,2146.591,N,02146.591,W,1,08,2.0,100.0,M,50.0,M,,*54
$GPGSA,A,3,01,02,03,,05,,07,,09,,11,12,2.0,2.0,2.0*38

$ sudo setserial /dev/ttyS0
/dev/ttyS0, UART: 16550A, Port: 0x5100, IRQ: 10
$ sudo setserial /dev/ttyS0 uart none
$ sudo setserial /dev/ttyS0
/dev/ttyS0, UART: unknown, Port: 0x5100, IRQ: 10
$ 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
^C
rt_serial_uprog: exit

Divi

>
>

[-- Attachment #2: Type: text/html, Size: 4106 bytes --]

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

* Re: [Xenomai-help] Problem with a serial test sofware
  2010-05-10 10:03   ` Divi Oillo
@ 2010-05-10 10:07     ` Gilles Chanteperdrix
  0 siblings, 0 replies; 5+ messages in thread
From: Gilles Chanteperdrix @ 2010-05-10 10:07 UTC (permalink / raw)
  To: Divi Oillo; +Cc: xenomai

Divi Oillo wrote:
> 2010/5/10 Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org
> <mailto:gilles.chanteperdrix@xenomai.org>>
>     I do not know much about this test, so I will only have a stupid
>     question: is there anything sending messages to this machine through the
>     serial cable?
> 
> 
> Yes there is.

Ok. And is the frequency sufficient for rt_serial_uprog ?

-- 
					    Gilles.


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

* Re: [Xenomai-help] Problem with a serial test sofware
  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:23 ` Jan Kiszka
  1 sibling, 0 replies; 5+ messages in thread
From: Jan Kiszka @ 2010-05-10 10:23 UTC (permalink / raw)
  To: Divi Oillo; +Cc: xenomai

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


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

end of thread, other threads:[~2010-05-10 10:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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.