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. CAN bus protocol counter REC/TEC
Forum Updated to NodeBB v4.3 + New Features

CAN bus protocol counter REC/TEC

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 1 Posters 338 Views
  • 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.
  • martial123M Offline
    martial123M Offline
    martial123
    wrote on last edited by
    #1

    Hi everyone,

    I would like to know where are this counters and how I can recover there value in Qt CAN class .

    Thank you
    Martial

    1 Reply Last reply
    0
    • martial123M Offline
      martial123M Offline
      martial123
      wrote on last edited by martial123
      #2

      I have found my answer in the CAN protocol here : https://en.wikipedia.org/wiki/CAN_bus

      in fact, when problem occur, node send active frame, after 127 active frame , if error is still here, node send passive error frame, and after 255 , node place in mode buss off.

      So we just need to check this type of frame and the type of enum return from Qt lib when we are in mode bus off :

      QCanBusDevice::CanBusStatus QCanBusDevice::busStatus() const
      

      Bye

      edit:
      In fact this is not 127 frame send, because counter increase by 8 bit when error occur but is when counter are 127, node emit passive frame...

      1 Reply Last reply
      2

      • Login

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