# \#python

**URL:** https://discuss.blues.com/tag/python/1.md

[Latest](https://discuss.blues.com/latest.md) · [Categories](https://discuss.blues.com/categories.md) · [Tags](https://discuss.blues.com/tags.md)

---

## [Trouble Completing OTA Host MCU (Swan + CircuitPython) Firmware Updates Using Notecard DFU](https://discuss.blues.com/t/trouble-completing-ota-host-mcu-swan-circuitpython-firmware-updates-using-notecard-dfu/3376)

<div class="topic-metadata">

**Author:** [@chasez0r](https://discuss.blues.com/u/chasez0r)\
**Replies:** 8\
**Last updated:** [March 15, 2026, 4:30pm UTC](https://discuss.blues.com/t/trouble-completing-ota-host-mcu-swan-circuitpython-firmware-updates-using-notecard-dfu/3376 "2026-03-15T16:30:29Z")

</div>

Hello, I’m trying to update my host MCU firmware (Swan running CircuitPython) over-the-air using the Notecard’s outboard DFU, but I keep running into issues where the host MCU never comes back up properly leading me to …

---

## [Discrepancy between template size and card.usage.get reported size](https://discuss.blues.com/t/discrepancy-between-template-size-and-card-usage-get-reported-size/3452)

<div class="topic-metadata">

**Author:** [@mallonwm](https://discuss.blues.com/u/mallonwm)\
**Replies:** 1\
**Last updated:** [February 11, 2026, 3:09pm UTC](https://discuss.blues.com/t/discrepancy-between-template-size-and-card-usage-get-reported-size/3452 "2026-02-11T15:09:19Z")

</div>

I’m using a compact template to keep the cellular sending size of each note to a minimum, with the reported size being 17 bytes. However, when checking with card.usage.get, the note size is reported as 328 bytes. My temp…

---

## [Float truncated in Transaction](https://discuss.blues.com/t/float-truncated-in-transaction/1441)

<div class="topic-metadata">

**Author:** [@szygmunt](https://discuss.blues.com/u/szygmunt)\
**Replies:** 5\
**Last updated:** [November 10, 2025, 11:42pm UTC](https://discuss.blues.com/t/float-truncated-in-transaction/1441 "2025-11-10T23:42:32Z")

</div>

Having an issue where a float timestamp is sent correctly to the card settings.db file but is truncated on the Transaction request in micropython running on an ESP32. The debug of the request in the REPL shows it correc…

---

## [Feather not able to communicate with Notecard via Notecarrier-F](https://discuss.blues.com/t/feather-not-able-to-communicate-with-notecard-via-notecarrier-f/3352)

<div class="topic-metadata">

**Author:** [@chasez0r](https://discuss.blues.com/u/chasez0r)\
**Replies:** 2\
**Last updated:** [October 23, 2025, 6:35pm UTC](https://discuss.blues.com/t/feather-not-able-to-communicate-with-notecard-via-notecarrier-f/3352 "2025-10-23T18:35:41Z")

</div>

Hello, I recently got my hands on a Notecarrier-F (v1.3) and a Notecard (2.2). I cant get my Adafruit Feather RP2350 to communicate with the Notecard, using CircuitPython 10.0. When I run the basic example (use\_uart=Fa…

---

## [Failed to reset Notecard Exception Issue](https://discuss.blues.com/t/failed-to-reset-notecard-exception-issue/3333)

<div class="topic-metadata">

**Author:** [@smullbw](https://discuss.blues.com/u/smullbw)\
**Replies:** 6\
**Last updated:** [October 23, 2025, 1:02pm UTC](https://discuss.blues.com/t/failed-to-reset-notecard-exception-issue/3333 "2025-10-23T13:02:55Z")

</div>

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(…

---

## [ModuleNotFoundError: No module named 'notehub\_py.models.object'](https://discuss.blues.com/t/modulenotfounderror-no-module-named-notehub-py-models-object/3322)

<div class="topic-metadata">

**Author:** [@Laurent](https://discuss.blues.com/u/Laurent)\
**Replies:** 2\
**Last updated:** [October 15, 2025, 2:49pm UTC](https://discuss.blues.com/t/modulenotfounderror-no-module-named-notehub-py-models-object/3322 "2025-10-15T14:49:37Z")

</div>

Hello, I got an error with the notehub\_py that I installed with pip on my Windows 11 with Python 3.13.5 I got this error when trying to import notehub\_py: line 26, in from notehub\_py.models.object import object Modul…

---

## [Send Binary Data](https://discuss.blues.com/t/send-binary-data/3303)

<div class="topic-metadata">

**Author:** [@alevillegas.cat](https://discuss.blues.com/u/alevillegas.cat)\
**Replies:** 3\
**Last updated:** [October 11, 2025, 10:52am UTC](https://discuss.blues.com/t/send-binary-data/3303 "2025-10-11T10:52:00Z")

</div>

I am trying to send binary data following the documentation, using: Calculate the MD5 checksum of the binary payload COBS-encode the binary payload. The note-c library includes a NoteBinaryEncode method to simplify…

---

## [CircuitPython vs. Micropython](https://discuss.blues.com/t/circuitpython-vs-micropython/3113)

<div class="topic-metadata">

**Author:** [@scavoj](https://discuss.blues.com/u/scavoj)\
**Replies:** 2\
**Last updated:** [June 20, 2025, 1:36am UTC](https://discuss.blues.com/t/circuitpython-vs-micropython/3113 "2025-06-20T01:36:09Z")

</div>

I see a lot of documentation on using CircuitPython with a Swan but haven’t found any for Micropython. Will some of the Micropython functionality just not work with a Swan? Thanks, Joe

---

## [Notehub API and Notehub py](https://discuss.blues.com/t/notehub-api-and-notehub-py/3010)

<div class="topic-metadata">

**Author:** [@Juan\_Cossio](https://discuss.blues.com/u/Juan_Cossio)\
**Replies:** 4\
**Last updated:** [April 29, 2025, 10:11pm UTC](https://discuss.blues.com/t/notehub-api-and-notehub-py/3010 "2025-04-29T22:11:58Z")

</div>

Hello everyone! I have two questions related to how I can query or send data from NoteHub to my web app. The first is: when I configure a route to the server where my app is running, what code do I need to have to rece…

---

## [First try Pico + MicroPython + CarrierB + NotecardWifi](https://discuss.blues.com/t/first-try-pico-micropython-carrierb-notecardwifi/2866)

<div class="topic-metadata">

**Author:** [@quietlife4me2](https://discuss.blues.com/u/quietlife4me2)\
**Replies:** 7\
**Last updated:** [February 27, 2025, 1:03am UTC](https://discuss.blues.com/t/first-try-pico-micropython-carrierb-notecardwifi/2866 "2025-02-27T01:03:54Z")

</div>

First attempt at using Blues. I followed the online tutorials and got the notecard/wifi setup and talking to notehub. But can’t seem to get the Pico connected to the Notecard. I am using: Raspberry Pi Pico H CarrierB N…

---

## [Micropython seems to be broken on Raspberry Pi pico and other hardware problems](https://discuss.blues.com/t/micropython-seems-to-be-broken-on-raspberry-pi-pico-and-other-hardware-problems/2551)

<div class="topic-metadata">

**Author:** [@yossa](https://discuss.blues.com/u/yossa)\
**Replies:** 3\
**Last updated:** [January 8, 2025, 6:49pm UTC](https://discuss.blues.com/t/micropython-seems-to-be-broken-on-raspberry-pi-pico-and-other-hardware-problems/2551 "2025-01-08T18:49:27Z")

</div>

Micropython is broken on Raspberry Pi pico and other hardware problems… micropython defective hardware Legacy modems don’t work with current version of notecarrier B . Micropython: The micropython driver libraries …

---

## [Python Snippet: Automatically Connect to Notecard over Serial (Linux, Mac, Windows)](https://discuss.blues.com/t/python-snippet-automatically-connect-to-notecard-over-serial-linux-mac-windows/2467)

<div class="topic-metadata">

**Author:** [@abucknall](https://discuss.blues.com/u/abucknall)\
**Replies:** 0\
**Last updated:** [November 27, 2024, 8:05pm UTC](https://discuss.blues.com/t/python-snippet-automatically-connect-to-notecard-over-serial-linux-mac-windows/2467 "2024-11-27T20:05:50Z")

</div>

Hi Blues Forum, I was recently working on an internal Python script and noticed a useful snippet for OS-agnostically detecting Notecards (automatically) over Serial. Below is an example of a quick and simple function y…

---

## [Archived data access](https://discuss.blues.com/t/archived-data-access/2078)

<div class="topic-metadata">

**Author:** [@rickpeltier](https://discuss.blues.com/u/rickpeltier)\
**Replies:** 1\
**Last updated:** [April 19, 2024, 1:50pm UTC](https://discuss.blues.com/t/archived-data-access/2078 "2024-04-19T13:50:14Z")

</div>

Wondering if there is a tool that can assist with downloading historical data by API or other means? We routinely pull data with a simple python script with an API call, but occasionally go offline for periods of time a…

---

## [Hacking your own version of CircuitPython for the SWAN](https://discuss.blues.com/t/hacking-your-own-version-of-circuitpython-for-the-swan/2047)

<div class="topic-metadata">

**Author:** [@datalogger](https://discuss.blues.com/u/datalogger)\
**Replies:** 0\
**Last updated:** [April 3, 2024, 7:40am UTC](https://discuss.blues.com/t/hacking-your-own-version-of-circuitpython-for-the-swan/2047 "2024-04-03T07:40:28Z")

</div>

Creating your own version of CircuitPython for the SWAN is very easy now, it should not take more than 15 minutes. You can create a ready-to-use development environment with a few clicks in Github. The one-time setup ta…

---

## [OTA update for Raspberry Pi Pico](https://discuss.blues.com/t/ota-update-for-raspberry-pi-pico/1984)

<div class="topic-metadata">

**Author:** [@bkauf](https://discuss.blues.com/u/bkauf)\
**Replies:** 4\
**Last updated:** [February 27, 2024, 4:55pm UTC](https://discuss.blues.com/t/ota-update-for-raspberry-pi-pico/1984 "2024-02-27T16:55:14Z")

</div>

Hello, I’m trying to setup over the air(OTA) updates for a Raspberry pi pico + notecard running circuit python. The code.py fie I would like to update is ~16Kb so I am attempting to do this via the large file upload pro…

---

## [Best way to download data for visualizations](https://discuss.blues.com/t/best-way-to-download-data-for-visualizations/1738)

<div class="topic-metadata">

**Author:** [@sbu](https://discuss.blues.com/u/sbu)\
**Replies:** 5\
**Last updated:** [October 19, 2023, 8:34pm UTC](https://discuss.blues.com/t/best-way-to-download-data-for-visualizations/1738 "2023-10-19T20:34:17Z")

</div>

I am currently storing readins on Notehub.io. Every month, I want to download the data and generate visualizations on the data on my laptop. As I understand, creating a Route to some external URL like AWS will cost money…

---

## [High latency on inbound .db sync](https://discuss.blues.com/t/high-latency-on-inbound-db-sync/1524)

<div class="topic-metadata">

**Author:** [@szygmunt](https://discuss.blues.com/u/szygmunt)\
**Replies:** 4\
**Last updated:** [August 7, 2023, 2:32pm UTC](https://discuss.blues.com/t/high-latency-on-inbound-db-sync/1524 "2023-08-07T14:32:32Z")

</div>

I am working with two separate units that are seeing extremely long delays syncing db files sent cloud to note hub (inbound to notecard). From a previous topic it seems like it should be within minutes at most but I am …

---

## [NoteHub to Image data](https://discuss.blues.com/t/notehub-to-image-data/1510)

<div class="topic-metadata">

**Author:** [@Pradeep](https://discuss.blues.com/u/Pradeep)\
**Replies:** 5\
**Last updated:** [July 21, 2023, 2:56pm UTC](https://discuss.blues.com/t/notehub-to-image-data/1510 "2023-07-21T14:56:07Z")

</div>

Hi All, I’m trying to send and receive an image payload using a notecard. I can see my encoded image payload in the notehub, but I can’t read back the payload. I’m using this ref python script (https://github.com/C…

---

## [OTA update for CircuitPython programs](https://discuss.blues.com/t/ota-update-for-circuitpython-programs/1481)

<div class="topic-metadata">

**Author:** [@Techpro864](https://discuss.blues.com/u/Techpro864)\
**Replies:** 1\
**Last updated:** [July 1, 2023, 9:47pm UTC](https://discuss.blues.com/t/ota-update-for-circuitpython-programs/1481 "2023-07-01T21:47:04Z")

</div>

Hello, I have found blues and think it’s a very cool platform. I am using it in my IIoT product and want to be able to update my CircuitPython app over the air using the Notecard. I am using the hardware in the North Ame…

---

## [Wrong file name in tutorial](https://discuss.blues.com/t/wrong-file-name-in-tutorial/1397)

<div class="topic-metadata">

**Author:** [@paulohm](https://discuss.blues.com/u/paulohm)\
**Replies:** 1\
**Last updated:** [April 28, 2023, 1:19pm UTC](https://discuss.blues.com/t/wrong-file-name-in-tutorial/1397 "2023-04-28T13:19:19Z")

</div>

I may be wrong, but where you read copy.py in … … you are actually meaning code.py

---

## [How to send a small image](https://discuss.blues.com/t/how-to-send-a-small-image/1393)

<div class="topic-metadata">

**Author:** [@paulohm](https://discuss.blues.com/u/paulohm)\
**Replies:** 5\
**Last updated:** [April 25, 2023, 11:52am UTC](https://discuss.blues.com/t/how-to-send-a-small-image/1393 "2023-04-25T11:52:24Z")

</div>

Trying to find a way to send a small picture using the notecard API. Is there an easy way, or I will need to chop the binary into pieces and send it through several calls?

---

## [Lossing contact with notecard](https://discuss.blues.com/t/lossing-contact-with-notecard/1303)

<div class="topic-metadata">

**Author:** [@rksteeves](https://discuss.blues.com/u/rksteeves)\
**Replies:** 24\
**Last updated:** [March 7, 2023, 4:42pm UTC](https://discuss.blues.com/t/lossing-contact-with-notecard/1303 "2023-03-07T16:42:36Z")

</div>

I have the attached a log of events from the notehub. On the Tuesday (start of this log) , I sent a note to the note card (I use the interupt method to retrieve notes from the notecard via raspberry pico). The note was…

---

## [Notecard.py error](https://discuss.blues.com/t/notecard-py-error/1280)

<div class="topic-metadata">

**Author:** [@BCANDER](https://discuss.blues.com/u/BCANDER)\
**Replies:** 6\
**Last updated:** [February 21, 2023, 12:46am UTC](https://discuss.blues.com/t/notecard-py-error/1280 "2023-02-21T00:46:39Z")

</div>

Trouble connecting through I2C from Pi Pico to Notecarrier A. Using the following micropython code: sda=machine.Pin(4) scl=machine.Pin(5) productUID = “xxx.xxxxxx.xxx” (in my code this is my UID, just edited out her…

---

## [Dim or turn off LEDs](https://discuss.blues.com/t/dim-or-turn-off-leds/1169)

<div class="topic-metadata">

**Author:** [@KevinG](https://discuss.blues.com/u/KevinG)\
**Replies:** 1\
**Last updated:** [January 10, 2023, 9:02pm UTC](https://discuss.blues.com/t/dim-or-turn-off-leds/1169 "2023-01-10T21:02:58Z")

</div>

The Notecard comes with green and red LEDs. The green LED blinks slowly when idle and more rapidly as the card connects to the cellular network then transmits. The flash patterns are very helpful for troubleshooting and …

---

## [Notecard with M5UnitCam V2](https://discuss.blues.com/t/notecard-with-m5unitcam-v2/1003)

<div class="topic-metadata">

**Author:** [@Pradeep](https://discuss.blues.com/u/Pradeep)\
**Replies:** 12\
**Last updated:** [October 4, 2022, 3:52am UTC](https://discuss.blues.com/t/notecard-with-m5unitcam-v2/1003 "2022-10-04T03:52:03Z")

</div>

Hi All, I’m trying to connect my notecard with M5Unit Cam V2, I’m using this below script to communicate with Notecard in Unitcam V2’s Jypyter notebook. Input: import json import notecard import serial import time pr…

---

## [Req Body auto change issue](https://discuss.blues.com/t/req-body-auto-change-issue/1011)

<div class="topic-metadata">

**Author:** [@Pradeep](https://discuss.blues.com/u/Pradeep)\
**Replies:** 2\
**Last updated:** [October 2, 2022, 4:32am UTC](https://discuss.blues.com/t/req-body-auto-change-issue/1011 "2022-10-02T04:32:19Z")

</div>

Hi All, I’m trying to read the ESP32 data in the form of JSON with pyserial and revert the same JSON back to the notecard with the same python script. But I can see some error logs. It seems some \\ symbols added in betw…

---

## [ Tips for increasing CircuitPython durability for field deployments?](https://discuss.blues.com/t/tips-for-increasing-circuitpython-durability-for-field-deployments/985)

<div class="topic-metadata">

**Author:** [@bradspry](https://discuss.blues.com/u/bradspry)\
**Replies:** 4\
**Last updated:** [September 21, 2022, 12:18pm UTC](https://discuss.blues.com/t/tips-for-increasing-circuitpython-durability-for-field-deployments/985 "2022-09-21T12:18:43Z")

</div>

How to deploy CircuitPython powered device without it going into safe mode after powering off and/or needing human reset button intervention?

---

## [Circuitpython binpack utility](https://discuss.blues.com/t/circuitpython-binpack-utility/960)

<div class="topic-metadata">

**Author:** [@RetiredWizard](https://discuss.blues.com/u/RetiredWizard)\
**Replies:** 2\
**Last updated:** [August 30, 2022, 9:05pm UTC](https://discuss.blues.com/t/circuitpython-binpack-utility/960 "2022-08-30T21:05:51Z")

</div>

In your “Reimagining IoT Deployments with CircuitPython” YouTube video, Zak Fields demonstrated the “-binpack” option on what looked like the notecard command line interface. I’ve downloaded a couple version of what app…

---

## [Is my Notecard broken or my Raspberry Pico](https://discuss.blues.com/t/is-my-notecard-broken-or-my-raspberry-pico/913)

<div class="topic-metadata">

**Author:** [@tempneff](https://discuss.blues.com/u/tempneff)\
**Replies:** 9\
**Last updated:** [August 2, 2022, 2:01pm UTC](https://discuss.blues.com/t/is-my-notecard-broken-or-my-raspberry-pico/913 "2022-08-02T14:01:05Z")

</div>

I’m using a Notecarrier-A, Notecard, and Raspberry Pico. My system worked fine for some initial trials using this youtube guide . Then after shuffling things around the workbench, the pi can’t see the notecard anymore.…

---

## [How to talk to notecard from my raspberrpi by using the USB port](https://discuss.blues.com/t/how-to-talk-to-notecard-from-my-raspberrpi-by-using-the-usb-port/890)

<div class="topic-metadata">

**Author:** [@kevin](https://discuss.blues.com/u/kevin)\
**Replies:** 11\
**Last updated:** [June 28, 2022, 11:50am UTC](https://discuss.blues.com/t/how-to-talk-to-notecard-from-my-raspberrpi-by-using-the-usb-port/890 "2022-06-28T11:50:05Z")

</div>

Hello, I want to use pi to automatically seeting some config for the notecard during the manufacturing stage. and we have to use the USB port from notecard to talk with Pi. I was able to open the USB serial port on pi…

[Next page](https://discuss.blues.com/tag/python/1.md?match_all_tags=true&page=1&tags%5B%5D=python)
