Failed to reset Notecard Exception Issue

Working on a project using the Raspberry Pi 5 and the Notecard WiFi Chip. I’m using this small python3 code:

import notecard, smbus2 
bus = smbus2.SMBus(1) 
card = notecard.OpenI2C(bus, 0x17, 0) 
rsp = card.Transaction({"req":"card.version}) 
print(rsp)

Running this gives me an “Exception: Failed to reset Notecard” and the error says it is coming from “notecard.OpenI2C(bus, 0x17, 0)”. Is there already a forum that I just didn’t see that talks about this?

Also for more background information:
I have confirmed that there is power going to the chip, when doing “i2cdetect -y 1” I can see that port 0x17 is being used. And the pins being used are GPIO 2 + 3 (pins 3 + 5).

For the libraries, I’m using smbus version 0.5.0 and note-python version 2.1.1

Any help would be much appreciated.

Hey @smullbw,

And welcome to the Blues community! Sorry you ran into issues here.

I’d recommend going through our Pi sensor tutorial if you haven’t already, as it walks through the steps necessary to establish an I2C connection.

The I2C code you have there differs a bit from what we have in our standard tutorial, which looks more like this:

import notecard
from periphery import I2C

port = I2C("/dev/i2c-1")
card = notecard.OpenI2C(port, 0, 0)

I’d give that a shot and let me know if you’re still getting the same error.

TJ