CanBus 'Bits' from the data?

I asked my ECU supplier about using a CanBus output for my Traction Control and Launch control.

He asked me,
"can the ADU-7 use ‘bit’ data from the import CAN data, i.e. just mask a CAN byte to get one or more bits of data. *

For example, you might want to pick up bit 0 from the TC flags to indicate on dash that the TC is active and/or pick up bit 3 to indicate that launch mode is active.

*If you can set up the dash to use those status bits then you may not need the direct LED control."
Can anybody please advise if this is possible on the ADU-7?

I have imported the DBC file however I cannot see how to enable the ‘bit’ data which I believe, has more data than I can currently see.

I can’t help you, but what you are describing is called bitmask or bitfield.
It’s used by Ecumaster for the CEL and the torqueCorrectionFlags.

Might be helpful to find something in the help/forum.

Based on my experience with the bluetooth connection, except CEL, torqueCorrectionFlags and co are not sent by ECUMaster.
(there is no channel defined in the xml)

I hope someone will correct me and tell us how to intercept them. :+1:

1 Like

yes, ecumaster calls it ‘bitfield’

If you share what ecu and the DBC file I can probably be more specific
Look at the link generic stream for an example, they use bits to display flag data; traction control, rev limit, etc

2 Likes

Thanks for the reply. I’ll speak to my Ecu manufacturer to check they are ok with me sharing their latest DBC file and if so, I’ll post it up here.
My Ecu manufacturer is Emerald (Emeraldm3d.com) and my Ecu is the K6+.

There is a CANX file for Emerald ECUs installed with the ADU.
It is implemented based on this document from Emerald.
They didn’t describe the error and status flags, so obviously those are imported as full bytes only.
We don’t know the meaning of each bit.

If you provide complete documentation, we can update the CANX file.

1 Like

I’ll check with Emerald to see if the new DBC file for the K6+ is complete and if so, pass on the information.

Fyi, the K6+ is the latest Emerald ECU revision. Prior to this there was the K3 and K6.

Hi,
Please see the attached. Hope this is all you need.
Emerald CAN protocol5.3 (1).pdf (43.3 KB)

Thanks. We will update canx in one of the next releases. Before that, you can add CAN bus input messages on your own. Below, you have an example for the TC Active and Launch Mode Active flags. You can create the rest in the same manner.
example.adu (6.1 KB)

1 Like

Many thanks for your help :+1:

Much appreciated.