Bit packaging into Can Bus message
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!
-
Hello,
Yes this can be done by setting the bit mask to a single bit, then marking the checkbox to shift the data
(attachment: mask and shift.png)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.

mask and shift.png0 -
Ah...Okay. That makes sense.
Thank you for the info @SOReilly! :)
I'll give it a try next weekend when I'm back in front of the vehicle.0
Please sign in to leave a comment.
Comments
2 comments