# Problem with Arduino library 1.5.x

**URL:** <https://discuss.blues.com/t/problem-with-arduino-library-1-5-x/1883>\
**Category:** Tools & SDKs\
**Created:** [January 9, 2024, 8:27pm UTC](https://discuss.blues.com/t/problem-with-arduino-library-1-5-x/1883 "2024-01-09T20:27:07Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alec](https://avatars.discourse-cdn.com/v4/letter/a/53a042/32.png) [@Alec](https://discuss.blues.com/u/Alec)\
**Post date:** [January 9, 2024, 8:27pm UTC](https://discuss.blues.com/t/problem-with-arduino-library-1-5-x/1883/1 "2024-01-09T20:27:07Z")

</div>

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”.

```auto
* * * * * 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"}

```

---

<div class="post-metadata">

**Author:** ![RobLauer](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.blues.com/roblauer/32/1567_2.png) [@RobLauer](https://discuss.blues.com/u/RobLauer)\
**Post date:** [January 10, 2024, 2:17pm UTC](https://discuss.blues.com/t/problem-with-arduino-library-1-5-x/1883/2 "2024-01-10T14:17:39Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Alec](https://avatars.discourse-cdn.com/v4/letter/a/53a042/32.png) [@Alec](https://discuss.blues.com/u/Alec)\
**Post date:** [January 10, 2024, 2:32pm UTC](https://discuss.blues.com/t/problem-with-arduino-library-1-5-x/1883/3 "2024-01-10T14:32:55Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![RobLauer](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.blues.com/roblauer/32/1567_2.png) [@RobLauer](https://discuss.blues.com/u/RobLauer)\
**Post date:** [January 10, 2024, 3:00pm UTC](https://discuss.blues.com/t/problem-with-arduino-library-1-5-x/1883/4 "2024-01-10T15:00:53Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![hroche](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.blues.com/hroche/32/1442_2.png) [@hroche](https://discuss.blues.com/u/hroche)\
**Post date:** [January 10, 2024, 6:06pm UTC](https://discuss.blues.com/t/problem-with-arduino-library-1-5-x/1883/5 "2024-01-10T18:06:10Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![hroche](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.blues.com/hroche/32/1442_2.png) [@hroche](https://discuss.blues.com/u/hroche)\
**Post date:** [January 11, 2024, 12:53am UTC](https://discuss.blues.com/t/problem-with-arduino-library-1-5-x/1883/6 "2024-01-11T00:53:34Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Alec](https://avatars.discourse-cdn.com/v4/letter/a/53a042/32.png) [@Alec](https://discuss.blues.com/u/Alec)\
**Post date:** [January 11, 2024, 3:36am UTC](https://discuss.blues.com/t/problem-with-arduino-library-1-5-x/1883/7 "2024-01-11T03:36:58Z")

</div>

Thank you for your help!

---

<div class="post-metadata">

**Author:** ![hroche](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.blues.com/hroche/32/1442_2.png) [@hroche](https://discuss.blues.com/u/hroche)\
**Post date:** [January 12, 2024, 5:01pm UTC](https://discuss.blues.com/t/problem-with-arduino-library-1-5-x/1883/8 "2024-01-12T17:01:29Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Alec](https://avatars.discourse-cdn.com/v4/letter/a/53a042/32.png) [@Alec](https://discuss.blues.com/u/Alec)\
**Post date:** [January 16, 2024, 12:40am UTC](https://discuss.blues.com/t/problem-with-arduino-library-1-5-x/1883/9 "2024-01-16T00:40:00Z")

</div>

Hi,

The release you sent me is working fine.

Thank you!
