Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QCanBusDevice errors on write
Qt 6.11 is out! See what's new in the release blog

QCanBusDevice errors on write

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 221 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ocgltdO Offline
    ocgltdO Offline
    ocgltd
    wrote on last edited by ocgltd
    #1

    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?

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved