From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4C1F9CCC.1050806@domain.hid> Date: Mon, 21 Jun 2010 19:09:32 +0200 From: Wolfgang Grandegger MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai-help] rt_dev_send() does not timeout List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Charlton, John" Cc: "'xenomai@xenomai.org'" 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.