×

Sale ends todayGet 30% off any course (excluding packages)

Ends in --- --- ---

Maxxecu can-bus

CANBus Communications Decoded

Forum Posts

Courses

Blog

Tech Articles

Discussion and questions related to the course CAN Bus Communications Decoded

= Resolved threads

Author
915 Views

Hello.

I want to send a transbrake signal to my maxxecu, from my transmission controller

But I'm having kinda hard finding out about bit mask , the transmission controller sends out 8 bit /flags on the same byte, so need to apply a bit mask to get it to work but not entirely sure if I got it right, how do I calculate the bit mask?

Best regards Henrik

Attached Files

Here is the data from the transmission controller

Attached Files
  • Screenshot_2022-02-06-16-12-12-375_com.android.chrome.jpg
  • Attachments may only be downloaded by paid Gold members. Read more about becoming a Gold member here.

Mask = Result

80 = Shift right by 7 bits

40 = Shift right by 6 bits

20 = Shift right by 5 bits

10 = Shift right by 4 bits

08 = Shift right by 3 bits

04 = Shift right by 2 bits

02 = Shift right by 1 bit

01 = No bit shift

so the way I have done it now with bit mask 10 should be correct for reading transbrake ( bit 4)

We usually reply within 12hrs (often sooner)

Need Help?

Need help choosing a course?

Experiencing website difficulties?

Or need to contact us for any other reason?