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.
Hi, it seems the
AUTOBAUD
setting is causing serious problems when using theTIMER_2mS
, but sooner or later also thePOLLING
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 theOBD_Example_3.ino
worked with theTIMER_2mS
mode, the standardOBD2_11bit_ID
example did not, when I modified it in the same way. Finally, I found out that the crucial difference is the use ofAUTOBAUD
- if used in theOBD_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.