QCanBusDevice errors on write
-
I am using QCanBusDevice with socketcan under linux. (Qt5). The device is actually a Peak CAN adapter, but using the socketcan plugin in Qt. I can successfully capture frames, and then I try to play them all back using writeFrame (in a simple loop)
If I capture 1000 frames, only 100 will play back successfully. The remaining 900 generate an error signal (QCanBusDevice::WriteError). This appears to be related to the speed at which I send frames. If I add a 1ms delay between frames all works fine.
How can I find out if the socketcan plugin offers buffering. Do I only need to add a delay if the plugin is NOT buffering?