Skip to content

Generated file too long #3

Description

@ricardo119

I'm working on an electric motorcycle project and I was searching for an way to convert the DBC file into an usable Rust code close to an library.

I tested your tool and worked but I have 55 different messages on the DBC and your tool generated an file with !!!!!22559 lines!!!!!!

My DBC has 5 devices that are listed as BU_: MCU BMS DISPLAY VCU CHARGER

This is an example how you can explicit the sender and receiver for an message:

BO_ 2203160576 Gear_Selection: 8 VCU  // 0x3519000
 SG_ Gear : 0|2@1+ (1,0) [0|1] ""  MCU
 SG_ Drive_Profile : 8|4@1+ (1,0) [0|15] ""  MCU
 SG_ Allow_Discharge : 16|16@1+ (0.1,0) [0|6553.5] "A"  MCU
 SG_ Allow_Charge : 32|16@1+ (0.1,0) [0|6553.5] "A"  MCU

My suggestion was to take the devices and generated different code for each device sender. The example above should go into an mcu.rs, if it was the charger should be on an charger.rs etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions