-
Notifications
You must be signed in to change notification settings - Fork 407
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.sym -> .dbc results in syntax error from CanDB++ (BA_DEF_ BO_ ...) #284
Comments
@altendky |
Maybe |
candb++ is not free as far as I know. following patch creates dbcs which can be read from candb++ again... diff --git a/src/canmatrix/sym.py b/src/canmatrix/sym.py
index 6e780e6..053c60c 100644
--- a/src/canmatrix/sym.py
+++ b/src/canmatrix/sym.py
@@ -330,12 +330,12 @@ def load(f, **options):
db = CanMatrix()
db.addFrameDefines("GenMsgCycleTime", 'INT 0 65535')
- db.addFrameDefines("Receivable", 'BOOL False True')
- db.addFrameDefines("Sendable", 'BOOL False True')
+ db.addFrameDefines("Receivable", 'STRING')
+ db.addFrameDefines("Sendable", 'STRING')
db.addSignalDefines("GenSigStartValue", 'FLOAT -3.4E+038 3.4E+038')
- db.addSignalDefines("HexadecimalOutput", 'BOOL False True')
+ db.addSignalDefines("HexadecimalOutput", 'STRING')
db.addSignalDefines("DisplayDecimalPlaces", 'INT 0 65535')
- db.addSignalDefines("LongName", 'STR')
+ db.addSignalDefines("LongName", 'STRING') |
Works here as well, thanks. I'll try to get to a PR soon. |
I'm not sure, maybe dbc exporter should at least warn if attribute types are not supported. |
Errors sound good to me. Either we have a bug internally or someone else has one in their code feeding the dbc export. Though, maybe we should make what were bools into integers? Or enumeration? |
* let dbc replace not known attibute-defines by STRING #284 * add further test
@ebroecker, I'm hoping you know DBC well enough to have an idea for this. I'll see if i can get CANdb++ (if it's free?) and try to see how it outputs such things.
altendky@lt:~$ venv/bin/canconvert Downloads/EPC_DG_ID247_FACTORY_tm3.sym x.dbc
(extensions change so github will accept it...)
EPC_DG_ID247_FACTORY_tm3.sym.txt
x.dbc.txt
CANdb++ version: 3.0.163
Line 6901:
The text was updated successfully, but these errors were encountered: