From: Wolfgang Grandegger <wg@domain.hid>
To: "Charlton, John" <john.charlton@domain.hid>
Cc: "'xenomai@xenomai.org'" <xenomai@xenomai.org>
Subject: Re: [Xenomai-help] rt_dev_send() does not timeout
Date: Mon, 21 Jun 2010 19:09:32 +0200 [thread overview]
Message-ID: <4C1F9CCC.1050806@domain.hid> (raw)
In-Reply-To: <CF7FB0793253794F9F45991443E5FE200935FF897B@us194mx002.tycoelectronics.net>
On 06/21/2010 04:52 PM, Charlton, John wrote:
> We are experiencing a problem with the user mode CanFestival library when it calls rt_dev_send() when the CAN bus is disconnected. In that case the rtcan driver info is:
>
> root@domain.hid:~# cat /proc/rtcan/rtcan0/info
> Device rtcan0
> Controller SJA1000
> Board PEAK-PCI
> Clock-Hz 8000000
> Baudrate 1000000
> Bit-time brp=1 prop_seg=0 phase_seg1=5 phase_seg2=2 sjw=1 sam=0
> Ctrl-Mode
> State passive
> TX-Counter 1
> RX-Counter 0
> Errors 2
> Refcount 3
> root@domain.hid:~#
>
> The rt_dev_send() function hangs and does not timeout or return an error and never returns. We are using Xenomai 2.5.2 with linux 2.6.32.7.
It's the normal behaviour if you have not set RTCAN_RTIOC_SND_TIMEOUT
and don't use non-blocking mode. Is that the case?
Wolfgang.
next prev parent reply other threads:[~2010-06-21 17:09 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-21 14:52 [Xenomai-help] rt_dev_send() does not timeout Charlton, John
2010-06-21 17:09 ` Wolfgang Grandegger [this message]
2010-06-21 20:04 ` Charlton, John
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=4C1F9CCC.1050806@domain.hid \
--to=wg@domain.hid \
--cc=john.charlton@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.