Bit packaging into Can Bus message

D153, D175, C125, C127, C185 and C187 forum

Bit packaging into Can Bus message

Postby svanni on Fri Apr 10, 2026 8:49 am

Hello, I'm trying to stuff 8, 1-bit status channels into 1 byte of a Can transmit message. Can this be done in the Can Communications Setup windows?

I know I could do it with a math channel and "decode" it on the other side, but I don't have the math channel option on this c185 dash.

Any ideas? Am I missing something?

Thanks for your time!
svanni
 
Posts: 1
Joined: Thu Apr 09, 2026 5:41 am
Location: Northern California, USA

Re: Bit packaging into Can Bus message

Postby SOReilly on Fri Apr 10, 2026 9:54 am

Hello,

Yes this can be done by setting the bit mask to a single bit, then marking the checkbox to shift the data
mask and shift.png
mask and shift.png (37.61 KiB) Viewed 39 times


You can see in the example above I have set the mask to 80 so this channel will be placed in the left most bit of the first byte.

The next signal would be the same process but with the bit mask set to 40 and so on.
SOReilly
MoTeC
 
Posts: 115
Joined: Wed May 04, 2022 12:28 pm
Location: Melbourne


Return to Colour displays

Who is online

Users browsing this forum: No registered users and 3 guests