Use Vehicle Network Toolbox with multiple CAN databases on a single CAN bus
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.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. 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. vehicle network toolbox, vnt, can, canbus, can database, dbc MATLAB Answers — New Questions