Closed UlrichThiess closed 1 year ago
Hmm, not sure what the problem is. I just loaded that file and there were no errors. Then I saved it to test.dbc and reloaded it. That worked too. Granted, I'm not in Windows and using a pre-release version but as far as I remember, nothing has changed in DBC loading since the published V208. Just to be sure, can you attach the resulting test.dbc file you created so I can try that to ensure there wasn't some quirk I'm not seeing?
I take that back. I did make a number of changes to the DBC code and some of them may have fixed whatever issue is causing it to tell you so many signals are faulty. You should try the latest continuous build to see if things improve.
Load - Save - Reload works with the newest Developer Build. Thanks.
But sadly this file could not load with Vector CANdb++ Editor:
Also in CSScanedge-influxdb-writer i get errors:
I use a CANedge2 to push the CAN Data to my own Server. I convert MF4 files into ASC. Look at it with SavvyCAN, make my own DBC File and then i put the data into an InfluxDB with help of the DBC File. THE CANedgeInfluxDBWriter only works with DBC Files made with Vector CANdb++ Editor.
Hmm, unfortunately that's a very common problem. I recently saw discussion over at OpenDBC where people were saying that the OpenDBC files don't load properly in CANdb++.
I'm not 100% sure why the errors are happening. The output from CCScanedge-influxdb-writer might have a clue though. I see the \n on the end of those lines. I'll bet the standard probably wants only /r as a line ending but a lot of us are using \n instead. Normally text editors support all the line endings, \r, \n, and \r\n but maybe that python script is picky. As for the CANdb++ error, I'm not sure. It doesn't seem to be giving the full line and I don't know for sure what line 200 is. When I tried the same thing you did I got a file that has this as line 200:
SG_MULVAL 2564485392 S1_PID_01_MonitorStatus ParameterID_Service01 1-1;
I'm pretty sure I did the same things you did. But, I don't see the problem with that line. I may have to boot up Windows and install a trial of CANAnlyzer so I can get CANdb++ and test this myself.
candb++ is free, ill get you a Google drive link to avoid the headache of navigation ...one moment On Sat, Jan 7, 2023, 8:46 AM Collin Kidder @.***> wrote:
Hmm, unfortunately that's a very common problem. I recently saw discussion over at OpenDBC where people were saying that the OpenDBC files don't load properly in CANdb++.
I'm not 100% sure why the errors are happening. The output from CCScanedge-influxdb-writer might have a clue though. I see the \n on the end of those lines. I'll bet the standard probably wants only /r as a line ending but a lot of us are using \n instead. Normally text editors support all the line endings, \r, \n, and \r\n but maybe that python script is picky. As for the CANdb++ error, I'm not sure. It doesn't seem to be giving the full line and I don't know for sure what line 200 is. When I tried the same thing you did I got a file that has this as line 200:
SG_MULVAL 2564485392 S1_PID_01_MonitorStatus ParameterID_Service01 1-1;
I'm pretty sure I did the same things you did. But, I don't see the problem with that line. I may have to boot up Windows and install a trial of CANAnlyzer so I can get CANdb++ and test this myself.
— Reply to this email directly, view it on GitHub https://github.com/collin80/SavvyCAN/issues/561#issuecomment-1374503797, or unsubscribe https://github.com/notifications/unsubscribe-auth/AI62NLUECQQPYUAKBSZFWJLWRF6VDANCNFSM6AAAAAATQZYA2Y . You are receiving this because you are subscribed to this thread.Message ID: @.***>
https://drive.google.com/file/d/1hVSgIwxZEOF15moh0ez2z_gpWS21JBHF/view?usp=share_link
On Sat, Jan 7, 2023 at 8:49 AM Mitch Minton @.***> wrote:
candb++ is free, ill get you a Google drive link to avoid the headache of navigation ...one moment On Sat, Jan 7, 2023, 8:46 AM Collin Kidder @.***> wrote:
Hmm, unfortunately that's a very common problem. I recently saw discussion over at OpenDBC where people were saying that the OpenDBC files don't load properly in CANdb++.
I'm not 100% sure why the errors are happening. The output from CCScanedge-influxdb-writer might have a clue though. I see the \n on the end of those lines. I'll bet the standard probably wants only /r as a line ending but a lot of us are using \n instead. Normally text editors support all the line endings, \r, \n, and \r\n but maybe that python script is picky. As for the CANdb++ error, I'm not sure. It doesn't seem to be giving the full line and I don't know for sure what line 200 is. When I tried the same thing you did I got a file that has this as line 200:
SG_MULVAL 2564485392 S1_PID_01_MonitorStatus ParameterID_Service01 1-1;
I'm pretty sure I did the same things you did. But, I don't see the problem with that line. I may have to boot up Windows and install a trial of CANAnlyzer so I can get CANdb++ and test this myself.
— Reply to this email directly, view it on GitHub https://github.com/collin80/SavvyCAN/issues/561#issuecomment-1374503797, or unsubscribe https://github.com/notifications/unsubscribe-auth/AI62NLUECQQPYUAKBSZFWJLWRF6VDANCNFSM6AAAAAATQZYA2Y . You are receiving this because you are subscribed to this thread.Message ID: @.***>
-- Minton Performance 615-977-9787
Thanks for your hint. Yu're right:
CANdb++ Lineending: 0xd 0xa Your Lineending: 0xa
Could you change this?
Sorry, but thats not the Problem. Even if i change the line endings into DOS with unix2dos it won't work in type python script from CSS Electronics nore in CANdb++ Editor.
FiatDucato.dbc is the original File from CSS: CSS-Electronics-OBD2-Extended-v1.4.dbc with two additions edited with CANdb++. It works with the scrip and with SavvyCAN.
Test.dbc is FiatDucato.dbc loaded and saved with SavvyCAN 2.09. Test.dbc could loaded by SavvyCAN without errors. Test.dbc could not load by CANdb++ nor with the CSS canedge-influxdb-writer python script.
Both files has DOS Line endings. Everything was made with Windows Programs.
Well... I installed CANdb++ in a virtual machine and tried out the DBC files. You're right, my version of the DBC file does not work in CANdb++. It seems to mostly be a problem with the ordering of DBC sections. Apparently their software is EXTREMELY picky about the order that things appear in the file. It doesn't help that they start line numbers at 0 whereas basically every text editor since the dawn of time starts line numbers at 1. This causes their error message to also be one line off from the line numbers reported by... anything else. But, I figured that out so now I know which actual line it is faulting on. But, it will say "syntax error" even though usually syntax refers to the actual formatting of a line and not where it shows up in a file. I guess it's still syntax but that's a rather vague error. Then I see another big problem where apparently I'm loading the frame message IDs all wrong when they're extended (29 bit) IDs. That's causing more errors. So, it all comes down to mistakes on my part but at least I pretty much know what all those mistakes are now. So, thanks for the testing DBC files.
I committed a fix for all the issues: 711d5e886035e6723fb873377477cda109bfe843
I have tested your FiatDucato file to still load in CANdb++ after having been saved in SavvyCAN. Hopefully this squashes all the bugs but time will tell.
Perfect. Many thanks. You did it.
Now it works with CANdb++ and with the CSScanedge-InfluxDB-Writer Python script from CSS Electronics.
Version: 2.08 Windows
In the DBC File Manager i load the file CSS-Electronics-OBD2-Extended-v1.4.dbc from CSS Electronics. I saved it as Test.DBC. If i reload this file, i get some errors:
What ist my mistake?