From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <485765FF.20606@domain.hid> Date: Tue, 17 Jun 2008 09:21:35 +0200 From: Wolfgang Grandegger MIME-Version: 1.0 References: <2f7417810806160933v43b88a2ek6232473fc7efd100@domain.hid> In-Reply-To: <2f7417810806160933v43b88a2ek6232473fc7efd100@domain.hid> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai-help] Hello, doubts with RT-CAN List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: quinty Cc: xenomai@xenomai.org quinty wrote: > Hello, > > I am testing RT-CAN with MPC5200 and linux 2.6.23.14 > , xenomai 2.4.2. > Well I have some doubts: > 1.- In kernel configuration, there is a parameter to change lenght of RX > CAN buffer, 1024 by default. > What units???, 1024 bytes, 1024 telegrams??' It is in bytes and must be 2^n. > 2.- RT-CAN is a block or non-block??? in other words, when I use > rtcanrecv examples, code wait in this line of code > > ret = rt_dev_recvfrom (s, (void *)&frame, sizeof(can_frame_t ), 0,(struct sockaddr *)&addr, &addrlen);, until driver recieve message. Yes, unless you have opened the socket with the non-blocking flag. > > 3.- Have RT-CAN TX buffer??? No, Out-going messages are not queued. What is your problem? Wolfgang.