Bit numbering

Support forum for users of the M1 Build

Bit numbering

Postby gtihk on Tue Feb 19, 2019 5: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: 76
Joined: Thu Jul 19, 2018 1:37 pm

Re: Bit numbering

Postby rntechnologies on Tue Feb 19, 2019 9: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 27569 times


Hopefully this helps understand how the numbering works.
Regards,
Ryan
Powertune Australia
rntechnologies
Pro User
 
Posts: 91
Joined: Tue Aug 07, 2018 9:45 am
Location: Sydney, Australia

Re: Bit numbering

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

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

Re: Bit numbering

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

Hi githk,
These images show the exact same thing :)
Regards,
Ryan
Powertune Australia
rntechnologies
Pro User
 
Posts: 91
Joined: Tue Aug 07, 2018 9:45 am
Location: Sydney, Australia

Re: Bit numbering

Postby Stephen Dean on Thu Feb 21, 2019 3:04 pm

Hi Ryan,

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

Re: Bit numbering

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

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

Re: Bit numbering

Postby gtihk on Fri Feb 22, 2019 2: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: 76
Joined: Thu Jul 19, 2018 1:37 pm

Re: Bit numbering

Postby David Ferguson on Sat Feb 23, 2019 3: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
David Ferguson
Pro User
 
Posts: 1394
Joined: Fri Nov 07, 2008 2:45 am
Location: Paso Robles, California

Re: Bit numbering

Postby gtihk on Sat Feb 23, 2019 3: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: 76
Joined: Thu Jul 19, 2018 1:37 pm


Return to M1 Build

Who is online

Users browsing this forum: No registered users and 2 guests