2、协议中是motolora格式;
3、电池的总电流偏置-1600,是确定的格式,(当D=32000时,电流为0A。) 4、以下数据的格式的位数没有问题,具体请见附。 VehicleSpeedVSOSig ResidualOdometer No No 30 32 13 14 附:
Position of signal in the CAN frame Each signal occupies a number of bit-positions in the Message Map, as indicated by the position range.
The relation between the bit-positions used in the Message Map and the Byte/Bit position in the CAN frame is a static representation as illustrated in Table 1. Byte #0 in the table corresponds to the first data byte transmitted or received in the CAN frame, and Byte #n ( “n” is included between 0 and 7) is the last byte.
Bit #7 is the most significant bit in the byte.
Transmitting a message with 8 byte length on the bus, bit 7 (most significant bit of byte 0) will be transmitted first, followed by bit 6. Bit 56 (least significant bit of byte 7) will be transmitted at last.
Bits row out:
7,6,5,4,3,2,1,0,15,14,13,12,11,10,9,8,23, ………………,40,55,54,53,52,51,50,49,48,63,62,61,60,59,58,57,56
When a Module receives a message, the first bit received will be the bit located at position 7 in the CAN message frame and the second one will be the bit on position 6 and so on, see Table 1. Byte 0 1 2 3 4 Bit7 7 15 23 31 39 Bit6 6 14 22 30 38 Bit5 5 13 21 29 37 Bit4 4 12 20 28 36 Bit3 3 11 19 27 35 Bit2 2 10 18 26 34 Bit1 1 9 17 25 33 Bit0 0 8 16 24 32 5 6 7 47 55 63 46 54 62 45 53 61 44 52 60 43 51 59 42 50 58 41 49 57 40 48 56 Table 1: Illustration of Message Map bit positions in a CAN frame
Accessing the Signal within a 64 bits block requires a common indexing standard; “Motorola Forward LSB” notation has been adopted.
Example:
Let us assume a Signal called “RPM” has:
- Its least significant bit on bit 16 of the 64 bits data field; - 12 bits data length
The example is demonstrated by the following illustration: Byte 0 1 2 3 4 5 6 7
Bit7 。 Bit6 。 Bit5 。 Bit4 。 Bit3 msb 。 Bit2 。 。 Bit1 。 。 Bit0 。 lsb
因篇幅问题不能全部显示,请点此查看更多更全内容