togglebit / ArduinoDUE_OBD_FreeRunningCAN

These classes have been built with free-running CAN and OBDII data acq in mind
GNU Lesser General Public License v2.1
45 stars 22 forks source link

issues with AUTOBAUD #10

Open wanthalf opened 3 years ago

wanthalf commented 3 years ago

Hi, it seems the AUTOBAUD setting is causing serious problems when using the TIMER_2mS, but sooner or later also the POLLING mode (if combined with a more complex processes). I spent many hours trying to find out why my sketch freezes, also the communication through SerialUSB port itself, and why I have to manually erase the controller to upload a new sketch. While the OBD_Example_3.ino worked with the TIMER_2mS mode, the standard OBD2_11bit_ID example did not, when I modified it in the same way. Finally, I found out that the crucial difference is the use of AUTOBAUD - if used in the OBD_Example_3.ino, it freezes too. I suppose it requires too much time at every call - I thought it only detects the speed when the bus if first initialized.