dbc paring, message._fmt with wrong padding
See original GitHub issueHi, first cool project!
I think there is a bug in computing the padding for some messages:
I have a messgae format in DBC like this:
BO_ 1 MSG0: 8 E1
SG_ A : 6|15@0+ (1,0) [0|32768] "" E1
SG_ B : 7|1@0+ (1,0) [0|1] "" E1
SG_ C : 38|15@0+ (1,0) [0|32768] "" E1
SG_ D : 39|1@0+ (1,0) [0|1] "" E1
It results in a fmt string with more than 64 bit due to too large padding like this:
p24u2u15p30u1u15
I don’t know the exact syntax of the DBC file, but the definition of start in not intuitive. The Vector DBC editor reports as startbits: D->39 C->40 B->7 A->8
I think the logic in this function of start + length may not be right. May be even the start bit coputed by your code before is wrong.
def _create_message_encode_decode_format(signals):
fmt = ''
end = 64
for signal in signals:
padding = end - (signal.start + [signal.length)
Let me know it this it the right way to report the issue, if you plan to fix it or would like to have more information.
Issue Analytics
- State:
- Created 6 years ago
- Comments:14
Top Results From Across the Web
dbc paring, message._fmt with wrong padding #5 - GitHub
Hi, first cool project! I think there is a bug in computing the padding for some messages: I have a messgae format in...
Read more >Scapy Documentation - Read the Docs
Scapy is a Python program that enables the user to send, sniff and dissect and forge network packets. This capability allows construction of ......
Read more >Mainframe Connect Client Option - Sybase Infocenter
messages that mainframe access components return. This guide contains all messages returned by Open ServerConnect and Open ClientConnect.
Read more >https://huggingface.co/huggingface/CodeBERTa-langu...
... + "Ġforeach": 1040, + "Arg": 1041, + "oolean": 1042, + "Message": 1043, ... + "inary": 2783, + "Ġoption": 2784, + "Channel": 2785,...
Read more >The Racket Guide - Northwestern University PLT
Writing definitions outside of a module leads to bad error messages, bad performance, ... Line breaks and indentation are not significant for parsing...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi, first simple test looks good. I plan to confirm and provide a test case on Monday.
Hi, thank you for the quick response. I will report if it works tomorrow.
That might be quite right. The Vector Editor also shows a bit-layout that matches your format string (2 bytes are used, 2 unused, 2 used, 2 unused). I think its just Vectors is counting bits inside a byte the other way around, hence showing non intuitive values for their signal.start.