Skip to content

Possibility to serialize messages from DBC? #33

Open
@mehmetalianil

Description

@mehmetalianil

We are using this crate to deserialize received CanFrames using a dbc file, so thank you!

In our use case, we also need to form CanFrames, and it would be extremely ergonomic for us to use the same dbc file for this. Since all information is there maybe except the source addresses in J1939, and there might be a significant overlap in the work to be done.

Do you have such a plan? (I see that there is an old issue about serde) Is there a way that you would prefer us to contribute this in a proper way? If we fork this, would you mentor us for a pull requestable contribution?

If we had to do it sloppily and fast, we would add a trait to the SPN, that others can write a logic for SPNDefinition -> CanFrame (or I guess ExtendedCanFrame), even methods that return the data structure of the SPN in a PGN would somewhat work.

A nice way to do it would be of course to have the serialization in the crate, but I cannot judge it.

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