[Ovmsdev] CAN Bus ID Data Byte Numbering Problem

Mark Webb-Johnson mark at webb-johnson.net
Sun Dec 30 14:55:48 HKT 2012


I've always seen it described as B1, B2, ... B8. But, b[0]..b[7] is equally acceptable.

How about we say either b[2] or B3 if we mean the third byte of the can bus message. Use the [ ] to reinforce that it is an array index?

In the tesla roadster canbus notes, it has a little explanation:

Bytes are numbered B1 to B8 not B0-B7
bits are numbered bit0 to bit7
Byte pairs are in little endian order (e.g B4*256+B3)

Regards, Mark.

On 30 Dec, 2012, at 3:14 AM, mikeljo at me.com wrote:

> Hi everyone,
> 
> we have a little big Problem. :-)
> 
> Computer Nerds, programmer etc. start counting by 0 (zero).
> The CAN Bus Data Byte descriptions say D1, D2, ... , D8
> 
> Example:
> 5EC 8 FE 47 69 00 00 00 00 00
> So, what do you mean with Byte 2? Is it 47 or is ist 69?
> 
> As a programmer i say it is 69.
> But other People say it is 47.
> Confusing!?
> 
> I think it is essential that we have one base.
> Lets start counting with 0. So the value from above is 69.
> 
> 
> Bye
> Michael J.
> 
> _______________________________________________
> OvmsDev mailing list
> OvmsDev at lists.teslaclub.hk
> http://lists.teslaclub.hk/mailman/listinfo/ovmsdev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openvehicles.com/pipermail/ovmsdev/attachments/20121230/099434c8/attachment.htm>


More information about the OvmsDev mailing list