marcelbuesing / can-dbc

Rust dbc parser
MIT License
59 stars 22 forks source link

Question: serialize to CAN payload #6

Closed andresv closed 3 years ago

andresv commented 3 years ago

I can see that this library can be used to parse messages from dbc file. However is it also possible to serialize those messages so they can be sent out using socketcan?

marcelbuesing commented 3 years ago

Take a look at https://github.com/technocreatives/dbc-codegen

That uses can-dbc internally and covers generating functions for readeling and writing messages. It can be combined with socketcan, tokio-socketcan or tokio-socketcan-bcm.