-
Couldn't load subscription status.
- Fork 428
Open
Labels
Description
This is example:
<I-SIGNAL-TO-I-PDU-MAPPING>
<SHORT-NAME>isSignalDummy_mtx</SHORT-NAME>
<I-SIGNAL-REF DEST="I-SIGNAL">/Communication/ISignal/isSignalDummy</I-SIGNAL-REF>
<PACKING-BYTE-ORDER>MOST-SIGNIFICANT-BYTE-FIRST</PACKING-BYTE-ORDER>
<START-POSITION>20</START-POSITION>
<TRANSFER-PROPERTY>PENDING</TRANSFER-PROPERTY>
</I-SIGNAL-TO-I-PDU-MAPPING>
Signal Length = 13
As I check the start bit in DBC file, it showed 24.
By using arxml.py, it showed 19 so I think we have something wrong here.
Order of bits in byte is MSB: 7-6-5-4-3-2-1-0
| Byte 0 | Byte 1 | Byte 2 | Byte 3 | Byte 4 |
|-----------|-----------|-----------|-----------|-----------|
| 0000 0000 | 0000 0000 | 0001 1111 | 1111 1111 | 0000 0000 |
And I think 24 is the correct position so we should correct the calculation here:
canmatrix/src/canmatrix/canmatrix.py
Line 330 in dfe0018
| def set_startbit(self, start_bit, bitNumbering=None, startLittle=None): |