[OpenTRV-dev] Puzzling long-term bugs
Damon Hart-Davis
dhd at exnet.com
Thu Sep 29 17:10:43 BST 2016
> On 29 Sep 2016, at 11:13, Adrian Godwin <artgodwin at gmail.com> wrote:
>
> Could you measure the PC's baud rate at the AVR and then adjust the BRG divider (or the AVR's clock calibration, if that's possible) to match ?
As Deniz says, we do already have code to cross-check the relative frequencies of the slow (RTC, 32678Hz) and internal RC clocks.
And yes, if we do want to sort this I think that either automatic adjustment at start-up on on a CLI command (and persisted) might well be a good solution.
Also, as a work around, we could send the data to and fro with gaps between the bytes as a work-round when there is a lot of data to be sent. Even injecting the equivalent of an extra stop bit might be enough?
Thank you all!
Rgds
Damon
More information about the OpenTRV-dev
mailing list