<div dir="ltr"><p dir="ltr">Is this more than just UART being UART and the clocks of of each side being out? </p><p><br></p><p>Maybe try repeatedly sending 'U' on one of the problematic devices and measure the frequency, should be half the baud rate as U is 01010101</p>
<div class="gmail_extra"><br></div><div class="gmail_extra">IIRC you use a relatively slow baud rate (4800 IIRC) so you could be overwriting data in a buffer if you send data to fast? </div><div class="gmail_extra"><br></div><div class="gmail_extra">Jeremy</div><div class="gmail_extra"><br><div class="gmail_quote">On 28 Sep 2016 3:08 p.m., "Damon Hart-Davis" <<a href="mailto:damon@opentrv.uk" target="_blank">damon@opentrv.uk</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
We have a Wiki page here for our general amusement:<br>
<br>
<a href="https://github.com/opentrv/OTWiki/wiki/Puzzling-Long-Term-Bugs" rel="noreferrer" target="_blank">https://github.com/opentrv/OTW<wbr>iki/wiki/Puzzling-Long-Term-<wbr>Bugs</a><br>
<br>
We’ve certainly been having some puzzlement while putting together a small run of valves for a trial over the last few days. Could be summarised as ‘dodgy serial’:<br>
<br>
- Some REV7 and other V0p2 units seem to have problems with serial RX and TX, garbling some characters<br>
- Seems especially problematic for longer (16+?) blocks of characters such as setting a key<br>
- Have tried to ensure no sleeping or other fiddling with CPU clock during UART operation<br>
- Seems to apply to a few % of REV7, REV10 boards at least<br>
- It has been possible to load a large (30KB) app over serial with the bootloader.<br>
<br>
Any ideas welcome!<br>
<br>
Rgds<br>
<br>
Damon<br>
<br>
______________________________<wbr>_________________<br>
OpenTRV-dev mailing list<br>
<a href="mailto:OpenTRV-dev@lists.opentrv.org.uk" target="_blank">OpenTRV-dev@lists.opentrv.org.<wbr>uk</a><br>
<a href="http://lists.opentrv.org.uk/listinfo/opentrv-dev" rel="noreferrer" target="_blank">http://lists.opentrv.org.uk/li<wbr>stinfo/opentrv-dev</a><br>
</blockquote></div></div>
</div>