Bit numbering

Support forum for users of the M1 Build

Bit numbering

Postby gtihk on Tue Feb 19, 2019 4:44 pm

I use Can Capture to read and analyse OE CAN messages.The Byte and Bit numbering seems to be different from what M1 uses. I am working on a BMW which uses Little Endian.
If I want to assign the left 2 bytes for a channel, what start bit should I use please?
These two bytes might be called Byte 7 and 6 in Little Endian.
Any help will be appreciated.
gtihk
 
Posts: 72
Joined: Thu Jul 19, 2018 12:37 pm

Re: Bit numbering

Postby rntechnologies on Tue Feb 19, 2019 8:17 pm

Hi Githk,
Your question is a little vague.
Firstly, the M1 is quite capable of handling either type of CAN messaging (RX and TX), just by setting the endianness flag in the CAN message.
Have a look at the below image to assist with Byte numbering within a CAN message:
Endianness.jpg
Endianness.jpg (33.39 KiB) Viewed 8766 times


Hopefully this helps understand how the numbering works.
Regards,
Ryan
User avatar
rntechnologies
Pro User
 
Posts: 84
Joined: Tue Aug 07, 2018 8:45 am
Location: Australia

Re: Bit numbering

Postby gtihk on Wed Feb 20, 2019 7:05 pm

I am a little confused.
I was given this by MoTec.
endian.png
endian.png (64.92 KiB) Viewed 8753 times
gtihk
 
Posts: 72
Joined: Thu Jul 19, 2018 12:37 pm

Re: Bit numbering

Postby rntechnologies on Thu Feb 21, 2019 1:33 pm

Hi githk,
These images show the exact same thing :)
Regards,
Ryan
User avatar
rntechnologies
Pro User
 
Posts: 84
Joined: Tue Aug 07, 2018 8:45 am
Location: Australia

Re: Bit numbering

Postby SDean on Thu Feb 21, 2019 2:04 pm

Hi Ryan,

They are different... :D
Stephen Dean
MoTeC Research Centre Melbourne, Australia
User avatar
SDean
Site Admin
 
Posts: 973
Joined: Tue Dec 02, 2014 9:29 am
Location: Melbourne

Re: Bit numbering

Postby rntechnologies on Thu Feb 21, 2019 6:34 pm

My apologies!
I didn't read that very well! :o
Regards,
Ryan
User avatar
rntechnologies
Pro User
 
Posts: 84
Joined: Tue Aug 07, 2018 8:45 am
Location: Australia

Re: Bit numbering

Postby gtihk on Fri Feb 22, 2019 1:31 pm

If I want to assign Byte7 and Byte 6 as a received channel,what Start bit should I use please? Would it be 0 or 7?
gtihk
 
Posts: 72
Joined: Thu Jul 19, 2018 12:37 pm

Re: Bit numbering

Postby David Ferguson on Sat Feb 23, 2019 2:41 am

You can try 0, but I think that byte6/7 whould start at bit 48 with length 16.
David Ferguson
Veracity Racing Data
Check out Shift RPM - https://shiftrpm.veracitydata.com
David Ferguson
Pro User
 
Posts: 999
Joined: Fri Nov 07, 2008 1:45 am
Location: Paso Robles, California

Re: Bit numbering

Postby gtihk on Sat Feb 23, 2019 2:39 pm

I think for big endian, Byte 6/7 should start with bit 48.
I was not sure about little endian. This was why I was asking.
gtihk
 
Posts: 72
Joined: Thu Jul 19, 2018 12:37 pm


Return to M1 Build

Who is online

Users browsing this forum: No registered users and 1 guest

cron