From: "Urs.Eichholzer" Date: Thu, 28 Feb 2008 19:54:19 +0700 Message-ID: <001501c87a09$08a9f6f0$2401a8c0@domain.hid> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0016_01C87A43.B508CEF0" Subject: [Xenomai-help] FW: xeno_can: socket buffer overflow for fd=0 List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: xenomai@xenomai.org This is a multi-part message in MIME format. ------=_NextPart_000_0016_01C87A43.B508CEF0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Dear Xenomai Help The write to CAN is fast and have no problem... this can be performed fast and even in microsecond resolution The read to CAN is working... but not fast enough as we expect it should be reading the network... The Xenomai CAN can read the network transfers in seconds and about 40 milliseconds but once the read is performed on a much faster rate... the Xenomai CAN is having errors already... The message is: xeno_can: socket buffer overflow for fd=0 Something like this would be printed on screen and the system scrolls with this message again and again. Here are some of the remedies I tried but still this problem occurs: 1.) Increase the buffer size for receive in the menuconfig from 1024 to 4096, same problem. 2.) Link the CAN drivers statically to the OS, same problem. 3.) Link the CAN drivers with dynamic loading of driver, same problem. 4.) Create my own test program, same problem 5.) Create my own xenomai task based on how a task should be made, same problem... I have investigated this and it is coming from the rtdm file of Xenomai... when it detects a low buffer resource, it will trigger this error. But allocating more buffer space to 4096 will not solve this problem. On my investigation, the problem is buried deep in the Xenomai itself for the CAN driver and RTCAN socket. The file which is responsible for this is involved in the Xenomai RTCAN driver support. Best Regards Urs ------=_NextPart_000_0016_01C87A43.B508CEF0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Dear Xenomai Help

 

The write to CAN is fast and have = no problem... this can  be performed fast and even in = microsecond  resolution

The read to CAN is working... but not fast enough as we expect it should = be reading the network... The Xenomai CAN  can  read the network transfers in seconds and  about 40 milliseconds but once the read = is performed on a much faster rate... the Xenomai CAN is having errors = already... The message is:
xeno_can: socket buffer overflow for fd=3D0

Something like this would be printed on screen and the system scrolls = with this message again and again.

Here are some of the remedies I tried but still this problem occurs:

1.) Increase the buffer size for receive in the menuconfig from 1024 to = 4096, same problem.

2.) Link the CAN drivers statically to the OS, same problem.

3.) Link the CAN drivers with dynamic loading of driver, same = problem.

4.) Create my own test program, same problem

5.) Create my own xenomai task based on how a task should be made, same problem...


I have investigated this and it is coming from the rtdm file of  Xenomai... when it detects  a low buffer resource, it will  = trigger this error. But allocating more buffer space to 4096 will not solve this problem. On my investigation, the problem is buried deep in the Xenomai = itself for the CAN driver and RTCAN socket. The file which is responsible for = this is involved in the Xenomai RTCAN driver support.

 

Best = Regards

=  

Urs

 

------=_NextPart_000_0016_01C87A43.B508CEF0--