CANhack.de CAN-Interface RKS+CAN
Diesel technology, engine technology, vehicle diagnostics, repair & maintenance.

Arduino CAN set to 666,666 baud

 
New Topic Reply 🔗 🖨 CANhack.de - Index » Microcontrollers and Electronics, Programming
Author Message
Ulli13



Joined: 10/08/2012
Posts: 27
Karma: +19 / -0   Thank you, like it!
Location: Senden
2018 Audi A4 Avant
CAN Support

Post01-09-2017, 22:58    Subject: Arduino CAN set to 666,666 baud Quote

Hello fellow Can hackers,

Does anyone know how to configure the MCP25215 CAN transceiver for the non-standard Powertrain baud rate of 666,666 kbaud?

for example, if(CAN0.begin(MCP_STD, CAN_500KBPS, MCP_8MHZ) == CAN_OK)
"Only the even baud rates defined in the `mcp_can.h` file are supported."

Best regards,
Ulli
Audi A4 B9 Bj 2018
Back to top Profile PM Email Garage
shavenne
CAN-Profi
CAN-Profi


Joined: 04/27/2015
Posts: 37
Karma: +6 / -0   Thank you, like it!
Location: Paderborn

CAN Support

Post04-09-2017, 9:01    Subject: Arduino CAN set to 666,666 baud Quote

You need to modify the library by adding an additional bitrate and its corresponding CFG[1-3] settings.
You can calculate the settings, for example, here.
Back to top Profile PM
Ulli13



Joined: 10/08/2012
Posts: 27
Karma: +19 / -0   Thank you, like it!
Location: Senden
2018 Audi A4 Avant
CAN Support

CAN-Diagnose likes this.
Post14-12-2017, 11:04    Subject: Arduino with 666,666 kB Quote

Hello can tool,

I solved the problem myself by modifying the following files: `keywords.txt`, `mcp_can.cpp`, and `mcp_can_dfs.h`. I added the baud rate of 666 kB in those files. We can use this to measure data within our omnibus and react to it.

Best regards,
Uli



You are not permitted to view these file(s), please log in or register for extended rights or status updates.

Audi A4 B9 Bj 2018
Back to top Profile PM Email Garage
New Topic Reply 🔗 🖨 CANhack.de - Index » Microcontrollers and Electronics, Programming
Similar articles and topics
Topic Forum
No new posts Baud für virtuellen Com Port CANhack.de CAN-USB System: RKS+CAN
No new posts Arduino & CAN Microcontrollers and Electronics, Programming
No new posts Arduino - CAN Bus Shield Microcontrollers and Electronics, Programming
No new posts Audi A4 S4 RS4 B5 FIS CAN Project mit Arduino Interior / Comfort CAN
Jump to:  
You cannot post new topics in this forum.