Hello,
I have a problem with Arduino library 1.5.x for MCU AVR128DA (same problem with ATtiny3217). Everything is working fine with the library 1.4.5.
The problem is a bit different between 1.5.0 and 1.5.1+.
With 1.5.0, it seems working but after few requests (always the same amount), I get a timeout error:
[ERROR] {“err”:“timeout {io}”,“src”:“note-c”}.
With 1.5.1+, the requests are sent to the notecard but I cannot get the answers and after few requests (always the same amount), the same timeout error:
[ERROR] {“err”:“timeout {io}”,“src”:“note-c”}
Is anyone got these libraries working with 8bits MCUs?
To demonstrate the problem, you can find below the debug output for the different versions of the library for the example program “Example1_NotecardBasics.ino”.
* * * * * BLUES ARDUINO LIBRARY 1.4.5 * * * * * * * * * * * * * * * * * * * *
{"req":"hub.set","product":"xx","mode":"continuous","body":{"agent":"note-arduino","compiler":"gcc 7.3.0","req_interface":"i2c","cpu_name":"megaavr"}}
{}
{"req":"card.temp"}
{"value":23.0625,"calibration":-1}
{"req":"card.voltage"}
{"minutes":11,"mode":"normal","value":3.8651690307996258,"calibration":-0.20000001081999361}
{"req":"note.add","sync":true,"body":{"temp":23.06250000023552,"voltage":3.865168548429824,"count":1}}
{"total":1}
{"req":"card.temp"}
{"value":23.0625,"calibration":-1}
{"req":"card.voltage"}
{"minutes":11,"mode":"normal","value":3.8652412577027567,"calibration":-0.20000001081999361}
{"req":"note.add","sync":true,"body":{"temp":23.06250000023552,"voltage":3.865241026002944,"count":2}}
{"total":1}
>>> Subsequent records removed
* * * * * BLUES ARDUINO LIBRARY 1.5.0 * * * * * * * * * * * * * * * * * * * *
[INFO] {"req":"hub.set","product":"xx","mode":"continuous","body":{"agent":"note-arduino","compiler":"gcc 7.3.0","req_interface":"i2c","cpu_name":"megaavr"}}
[INFO] {}
[INFO] {"req":"card.temp"}
[INFO] {"value":25.1875,"calibration":-1}
[INFO] {"req":"card.voltage"}
[INFO] {"minutes":20,"mode":"normal","value":3.8642775101858243,"calibration":-0.20000001081999361}
[INFO] {"req":"note.add","sync":true,"body":{"temp":25.18750000594944,"voltage":3.864277342715904,"count":1}}
[INFO] {"total":1}
>>> Count:2, Count:3 and Count:4 removed
[INFO] {"req":"card.temp"}
[INFO] {"value":25.1875,"calibration":-1}
[INFO] {"req":"card.voltage"}
[INFO] {"minutes":21,"mode":"normal","value":3.8643206930970237,"calibration":-0.20000001081999361}
[INFO] {"req":"note.add","sync":true,"body":{"temp":25.18750000594944,"voltage":3.864320762150912,"count":5}}
[INFO] {"total":1}
[INFO] {"req":"card.temp"}
[ERROR] {"err":"timeout {io}","src":"note-c"}
* * * * * BLUES ARDUINO LIBRARY 1.5.1 * * * * * * * * * * * * * * * * * * * *
[INFO] {"req":"hub.set","product":"xx","mode":"continuous","body":{"agent":"note-arduino","compiler":"gcc 7.3.0","req_interface":"i2c","cpu_name":"megaavr"}}
[INFO] {}
[INFO] {"req":"hub.set","product":"xx","mode":"continuous","body":{"agent":"note-arduino","compiler":"gcc 7.3.0","req_interface":"i2c","cpu_name":"megaavr"}}
[INFO] {}
>>> 11 duplicated records removed
[INFO] {"req":"hub.set","product":"xx","mode":"continuous","body":{"agent":"note-arduino","compiler":"gcc 7.3.0","req_interface":"i2c","cpu_name":"megaavr"}}
[INFO] {}
[INFO] {"req":"hub.set","product":"xx","mode":"continuous","body":{"agent":"note-arduino","compiler":"gcc 7.3.0","req_interface":"i2c","cpu_name":"megaavr"}}
[INFO] {}
[INFO] {"req":"card.temp"}
[INFO] {"value":25.1875,"calibration":-1}
[INFO] {"req":"card.voltage"}
[INFO] {"minutes":23,"mode":"normal","value":3.86339648418561,"calibration":-0.20000001081999361}
[INFO] {"req":"note.add","sync":true,"body":{"temp":0,"voltage":0,"count":1}}
[INFO] {"total":1}
>>> Count:2 and Count:3 removed
[INFO] {"req":"card.temp"}
[INFO] {"value":25.1875,"calibration":-1}
[INFO] {"req":"card.voltage"}
[INFO] {"minutes":23,"mode":"normal","value":3.863453602322372,"calibration":-0.20000001081999361}
[INFO] {"req":"note.add","sync":true,"body":{"temp":0,"voltage":0,"count":4}}
[INFO] {"total":1}
[INFO] {"req":"card.temp"}
[ERROR] {"err":"timeout {io}","src":"note-c"}