collin80 / GEVCU

Generalized Electric Vehicle Control Unit
114 stars 56 forks source link

Investigate serial buffering between MCU and IChip #87

Open collin80 opened 9 years ago

collin80 commented 9 years ago

Arduino 1.6.0 includes new code to implement serial TX interrupts. This allows serial writing to be non-blocking most of the time. However, no one knows for sure how this has affected the ichip interface code. Are we filling up the TX buffer? How often does it block if so? Can some of the complications in the ichip param updating code be removed now?

collin80 commented 9 years ago

Is it possible to stop sending updates to the web interface if we know that nobody is listening? Perhaps a 10 minute time out? Can we figure out if anyone is listening?