Problem with Arduino library 1.5.x

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"}

Hi @Alec,

The latest version of note-arduino is 1.5.3 (just released a couple weeks ago). I might start by trying that first to see if that resolves your issue…?

Rob

Hi,

I see now that it was maybe not clear. When I mentioned 1.5.1+, it was including 1.5.2 and 1.5.3. The behavior is exactly the same for these 3 versions.

Thanks

Got it, thanks. Will have our team look into it and let you know!

Hi Alec,

I was able to reproduce this problem with an Arduino Uno. I will keep you posted on what I find from here.

Thanks,

Hayden Roche
Senior Software Engineer @ Blues

Hi Alec,

I have fixed the problem locally. I’ll be working to get the fix into a new note-arduino version as soon as possible. I’ll let you know when that new version has been released. Thanks for your patience!

Best,

Hayden

1 Like

Thank you for your help!

Of course! Happy to help. I’ve emailed you a new note-arduino release candidate to try out. It has resolved the same errors you’re seeing on my end. Please let me know if it works for you, or if you encounter further issues.

Hi,

The release you sent me is working fine.

Thank you!

1 Like