# Unable to .info or .factory reset. insufficient data (2 \< 49). Raspberry Pi 5

**URL:** <https://discuss.blues.com/t/unable-to-info-or-factory-reset-insufficient-data-2-49-raspberry-pi-5/2872>\
**Category:** Uncategorized\
**Created:** [February 23, 2025, 4:20pm UTC](https://discuss.blues.com/t/unable-to-info-or-factory-reset-insufficient-data-2-49-raspberry-pi-5/2872 "2025-02-23T16:20:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![JustJoel](https://avatars.discourse-cdn.com/v4/letter/j/edb3f5/32.png) [@JustJoel](https://discuss.blues.com/u/JustJoel)\
**Post date:** [February 23, 2025, 4:20pm UTC](https://discuss.blues.com/t/unable-to-info-or-factory-reset-insufficient-data-2-49-raspberry-pi-5/2872/1 "2025-02-23T16:20:45Z")

</div>

Hello. I have just started to play with the simple notecard wifi with the notecarrier PI with a brand new raspberry pi 5. I have the CLI downloaded, and have experimented with the python library however, I seem to be unable to do simple things like `notecard -info` with an error `insufficient data (2 < 49)`.

It appears in my fiddling I have have made it sync to my project, but something is off. I am doing this directly on the raspberry pi through i2c - but this is new ground for me.

The bottom output of `notecard` is as follows:

```auto
Currently saved values:
   -interface i2c
   -port /dev/i2c-1
   -portconfig 23

Ports on 'i2c':
   /dev/i2c-1 ***
   /dev/i2c-13
   /dev/i2c-14

```

Errors:

```auto
notecard -info -verbose
{"req":"card.version"}
retrying I/O error detected by host: read error: rb: insufficient data (2 < 49) {io}

```

```auto
notecard -factory -verbose
{"req":"card.restore","delete":true}
read error: rb: insufficient data (2 < 49) {io} {io}

```

```auto
notecard -format
error i2c reopen not yet supported since I can't test it yet

```

Similarly with a python script as follows:

```auto
import notecard
from notecard import hub, card, note
from periphery import I2C

productUID = "com.gmail.EMAIL:UID"
port = I2C("/dev/i2c-1")
nCard = notecard.OpenI2C(port, 0, 0, debug=True)

```

I have an exception:

```auto
Resetting Notecard I2C communications.
Serial-over-I2C error: reported data length (2) differs from actual data length (0).
Serial-over-I2C error: reported data length (2) differs from actual data length (0).
Notecard not responding to newline during reset.

```

May well be something basic in i2c world I am yet to understand, I have only picked up the notecard today, but some help would be appreciated. I simply want to experiment, first with CLI and then a mock python program to mimic a sensor and send notes on demand.

---

<div class="post-metadata">

**Author:** ![abucknall](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.blues.com/abucknall/32/1335_2.png) [@abucknall](https://discuss.blues.com/u/abucknall)\
**Post date:** [February 24, 2025, 5:54am UTC](https://discuss.blues.com/t/unable-to-info-or-factory-reset-insufficient-data-2-49-raspberry-pi-5/2872/2 "2025-02-24T05:54:16Z")

</div>

Hi @JustJoel,

I believe we have noticed issues connecting to the Raspberry Pi 5 over I2C, specifically because of the limited/unclear documentation regarding whether the Raspberry Pi 5 supports I2C clock stretching (which is frequently used by the Notecard). **I’ll create a docs ticket** for this to make sure it works its way into our documentation as I am aware that it’s unclear for the Raspberry Pi 5.

If it is possible, I’d suggest using `Serial` to connect to the Pi and Notecard. On the Notecarrier Pi, you can enable this by [toggling](https://dev.blues.io/datasheets/notecarrier-datasheet/notecarrier-pi-v2-0/#dip-switches) the `SERIAL TXRX` switch to `ON`. You can then access it over the UART0 interface on GPIO pins 14 (TX) and 15 (RX).

You’ll also need to instruct Notecard CLI to use the `notecard -interface serial` with the corresponding port, likely `notecard -port /dev/ttyAMA0`.

Thanks,  
Alex
