Hi
We are programming a can bus analyzer and it works well. We would like to change the can bus speed properties of the can bus analyzer on itself in the Arduino. The variable can bus rate looks like a solution to use, but we can't change the value of the variable . how does it come we can't change it ?
Kind regard and thanks in advantage
Ruben Bogaerts
Can bus rate changing with variable
Moderator: Benj
-
- Posts: 15
- Joined: Wed Feb 19, 2020 11:32 am
- Has thanked: 4 times
- Been thanked: 2 times
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: Can bus rate changing with variable
Hello,
You cannot change properties on a compiled program but you can alter the CAN speed by using some C code.
Are you using internal or external CAN. Can you post your program so we can see your target MCU etc. This will help us to provide you with some code to do the speed changing.
You cannot change properties on a compiled program but you can alter the CAN speed by using some C code.
Are you using internal or external CAN. Can you post your program so we can see your target MCU etc. This will help us to provide you with some code to do the speed changing.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Posts: 15
- Joined: Wed Feb 19, 2020 11:32 am
- Has thanked: 4 times
- Been thanked: 2 times
Re: Can bus rate changing with variable
Hi Benj
Thanks for the information I write a new program for it . I would like to integrate it in the program as a macro that we use as analyzer its programmed in dutch I'm sorry. I write the program that change the data rate in English i did my best to write it as readable for you as possible . Sorry if its a bit hard to understand. we use an Arduino circuit with a MCP2515 external . for now the Analyzer works only with standard ID's .
Thanks for the information I write a new program for it . I would like to integrate it in the program as a macro that we use as analyzer its programmed in dutch I'm sorry. I write the program that change the data rate in English i did my best to write it as readable for you as possible . Sorry if its a bit hard to understand. we use an Arduino circuit with a MCP2515 external . for now the Analyzer works only with standard ID's .