Use Vehicle Network Toolbox with multiple CAN databases on a single CAN bus
15 views (last 30 days)
Show older comments
I'm using Vehicle Network Toolbox (VNT) to itneract with a CAN bus using database files (.dbc files). I've got it working with the code below.
chanA = canChannel('Kvaser', 'Leaf Light v2 1', 1);
chanA.Database = canDatabase('OperatorControl.dbc');
That works fine, but now I want to interact with messages that are defined in different databases, but are on the same CAN bus. What is the best way to do that? Should I define a new CAN channel? I could do that, but it seems like it would become cumbersome if there are a lot of extra channels to deal with.
Can I combine multiple CAN databases into a single one before adding it to the CAN channel? Can I add more than one database to the CAN channel? I haven't been able to find a way to do that.
Thank you.
2 Comments
Nishant Elkunchwar
on 7 Mar 2022
I second this question. The ability to add multiple dbc files to a channel is an essential functionality since the database files are usually defined per module.
Nishant Elkunchwar
on 26 Aug 2022
Answers (0)
See Also
Categories
Find more on Vehicle Network Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!