Neal Probert wrote:
> I'm using PCAN-USB 6.7 with latest Socket-CAN from Subversion.
>
> Can anybody tell me what this means, and how to I get around it?
>
>     "write: No buffer space available"
>
> I don't get this with vcan0, but I do with can0.  Happens with cangen
> and my own application.
>  

Hi Neal,

when you try to write more data than the 'real' CAN hardware can put
onto the bus the tx-queue from the CAN netdevice simply runs over after
some time.

If you have only 'peak' load you may try to pump up the tx_queue_len of
'can0' in the sysfs:

echo 1000 > /sys/class/net/can0/tx_queue_len

But if your idea is to generate maximum load, you could ignore/handle
the -ENOBUF return value, wait an appropriate time (e.g. 500ns?) and
send your next CAN frame.

Regards,
Oliver

https://lists.berlios.de/pipermail/socketcan-users/2008-March/000297.html

相关文章:

  • 2022-03-06
  • 2022-12-23
  • 2021-09-19
  • 2022-12-23
  • 2021-06-17
  • 2022-12-23
猜你喜欢
  • 2021-12-17
  • 2021-11-24
  • 2022-12-23
  • 2022-12-23
  • 2021-06-17
  • 2021-09-24
相关资源
相似解决方案