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. QCanBus - DLC (Data Length Code) automatically calculated from payload?
Forum Updated to NodeBB v4.3 + New Features

QCanBus - DLC (Data Length Code) automatically calculated from payload?

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

    Hi,

    I used to work with an API from Kvaser for a CanBus interface.
    Here I had to enter the Data Length Code for every message I wanted to write to the bus.

    Do I understand right, that this is not even possible with QCanBus and that the Data Length Code is automatically calculated here from the size of the payload?

    aha_1980A 1 Reply Last reply
    1
    • R robro

      Hi,

      I used to work with an API from Kvaser for a CanBus interface.
      Here I had to enter the Data Length Code for every message I wanted to write to the bus.

      Do I understand right, that this is not even possible with QCanBus and that the Data Length Code is automatically calculated here from the size of the payload?

      aha_1980A Offline
      aha_1980A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on last edited by
      #2

      hi @robro,

      (very short answer) yes: DLC = payload.size()

      Regards

      Qt has to stay free or it will die.

      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