#CAN Database
1 messages · Page 1 of 1 (latest)
Context: CircuitPython does not seem to have cantools.database stuff that one would typically use to load a CAN database file. It also does not have an xml parser if someone wanted to load the .kcd file directly.
I currently generate a kcd file from a dbc file using canconvert. The dbc file is created using Kvaser Database Editor 3.
If something like this already exists, I'm all ears as I'm constantly struggling to maintain my app's logic let alone tooling for the app to work.
@fervent goblet There may be some confusion. In the CircuitPython context, CAN bus and canio refer to a networking protocol https://en.wikipedia.org/wiki/CAN_bus, not a database.
Yep, I'm aware. This thread is about supporting CAN database files too
my apologies, I was unaware of DBC relevance to CAN
No worries. This channel I assume is for circuitpython itself vs this thread/topic is a more about creating a library for the community bundle kind of thing.
Is there a better place for community bundle questions?
@lethal fossil sorry to ping, but this is now buried in a thread and I think you may be able to answer about the community bundle (I think that's the right place for it, but I don't know the process)
The community bundle expects the submodules to be circuitpython libraries that are ready to be loaded onto devices as they are checked in to the repo.
I don't have any experience with CAN and it's databases, but if I'm understanding this thread correctly it sounds like what @fervent goblet made is a tool that generates circuitpython compatible code that can then get put on a device rather than just directly code that goes on a device itself. Is that right?
If so I think maybe the community bundle is not the best spot for it.
I would say it could be a good candidate for a https://adafruit-playground.com/ page. If you're willing, you can create a repo on Github to hold the code and create a page on here with a bit of information about what is for and how to use it. and link / embed the code.