# \#micropython

**URL:** https://forums.digi.com/tag/micropython/3446.md?match_all_tags=true&page=2&tags%5B%5D=micropython

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

**Page:** 3

---

## [XBee3 LTE-M how to get scan response from peripheral](https://forums.digi.com/t/xbee3-lte-m-how-to-get-scan-response-from-peripheral/22533)

<div class="topic-metadata">

**Author:** [@kamilmuza](https://forums.digi.com/u/kamilmuza)\
**Replies:** 2\
**Last updated:** [July 9, 2021, 3:33pm UTC](https://forums.digi.com/t/xbee3-lte-m-how-to-get-scan-response-from-peripheral/22533 "2021-07-09T15:33:21Z")

</div>

Currently playing with a XBee 3 LTE-M device in the development board and MicroPython using the Pycharm IDE plugin. When running a BLE gap.scan, I don’t see a way to get the scan response, I’m only getting advertisement…

---

## [python TLS outdated on xbee gateway](https://forums.digi.com/t/python-tls-outdated-on-xbee-gateway/22472)

<div class="topic-metadata">

**Author:** [@alv1](https://forums.digi.com/u/alv1)\
**Replies:** 2\
**Last updated:** [June 29, 2021, 10:25am UTC](https://forums.digi.com/t/python-tls-outdated-on-xbee-gateway/22472 "2021-06-29T10:25:55Z")

</div>

I tried to publish MQTT files directly from the xbee gateway using the PAHO micropython https://github.com/digidotcom/python-mqtt/tree/master/paho/mqtt def publish(clientId, topic, msg, hostname=“192.168.4.1”): c = mq…

---

## [ETIMEDOUT AWS - IOT using Micropython](https://forums.digi.com/t/etimedout-aws-iot-using-micropython/22498)

<div class="topic-metadata">

**Author:** [@yoheistich](https://forums.digi.com/u/yoheistich)\
**Replies:** 1\
**Last updated:** [June 25, 2021, 8:39am UTC](https://forums.digi.com/t/etimedout-aws-iot-using-micropython/22498 "2021-06-25T08:39:55Z")

</div>

Hello everyone, I have an XBee 3 Cellular LTE-M/NB-IoT Global, firmware version L0.0.00.00.05.06,A.02.01, with a Brazilian sim card. Using the microPython, I’ve already tested with success those examples from digi: con…

---

## [UART interrupt](https://forums.digi.com/t/uart-interrupt/22446)

<div class="topic-metadata">

**Author:** [@mariano90](https://forums.digi.com/u/mariano90)\
**Replies:** 2\
**Last updated:** [May 28, 2021, 10:43am UTC](https://forums.digi.com/t/uart-interrupt/22446 "2021-05-28T10:43:11Z")

</div>

Hi. We are working with the Digi Xbee Cellular 3 LTE-M/NB-IoT with micropython. We are unable to configure the interrupt for the uart or any other interrupt. Aparently micropython has no support for this. Wath exactly ha…

---

## [ImportError: no module named ????](https://forums.digi.com/t/importerror-no-module-named/22361)

<div class="topic-metadata">

**Author:** [@Mohamad-Badr](https://forums.digi.com/u/Mohamad-Badr)\
**Replies:** 4\
**Last updated:** [April 26, 2021, 9:23am UTC](https://forums.digi.com/t/importerror-no-module-named/22361 "2021-04-26T09:23:32Z")

</div>

Hello, i am trying to test the UART connection in the xbee grove board, but when I am trying to import the UART LIBRARY i have this error “ImportError: cannot import name UART”. I have this error with many other librar…

---

## [DIO Pins not working without UART connected to computer](https://forums.digi.com/t/dio-pins-not-working-without-uart-connected-to-computer/21998)

<div class="topic-metadata">

**Author:** [@Antoine](https://forums.digi.com/u/Antoine)\
**Replies:** 11\
**Last updated:** [April 19, 2021, 11:45pm UTC](https://forums.digi.com/t/dio-pins-not-working-without-uart-connected-to-computer/21998 "2021-04-19T23:45:17Z")

</div>

Hello everyone, My goal: I am making a simple remote controller with a XBee3, an LCD screen and 6 push buttons. The idea is to use the i2c to communicate with the LCD screen and 6 DIO to check on the buttons. The good…

---

## [Xbee3 Cellular File Permissions](https://forums.digi.com/t/xbee3-cellular-file-permissions/22355)

<div class="topic-metadata">

**Author:** [@deltav](https://forums.digi.com/u/deltav)\
**Replies:** 3\
**Last updated:** [April 16, 2021, 9:55am UTC](https://forums.digi.com/t/xbee3-cellular-file-permissions/22355 "2021-04-16T09:55:51Z")

</div>

I am unable to delete a file from the modem after it is uploaded to the modem via ATFS and YModem regardless of the permissions of the file when it is uploaded. It is returning a 7001 permission error. I am able to upl…

---

## [Xbee Pro 3 micropython sleep current consumption](https://forums.digi.com/t/xbee-pro-3-micropython-sleep-current-consumption/22348)

<div class="topic-metadata">

**Author:** [@samuelan](https://forums.digi.com/u/samuelan)\
**Replies:** 3\
**Last updated:** [April 15, 2021, 4:30pm UTC](https://forums.digi.com/t/xbee-pro-3-micropython-sleep-current-consumption/22348 "2021-04-15T16:30:42Z")

</div>

Hello, I am making some experimentations on the power consumption of the XB3 MMT module. Using the sleep\_now (pinwake=false) command in the micropython code, I can achieve at best a current consumption of 425µA during …

---

## [Not receiving packet with sensor data - sensor running I2C sensor and Micropython](https://forums.digi.com/t/not-receiving-packet-with-sensor-data-sensor-running-i2c-sensor-and-micropython/22345)

<div class="topic-metadata">

**Author:** [@RguStudent](https://forums.digi.com/u/RguStudent)\
**Replies:** 1\
**Last updated:** [April 13, 2021, 11:02am UTC](https://forums.digi.com/t/not-receiving-packet-with-sensor-data-sensor-running-i2c-sensor-and-micropython/22345 "2021-04-13T11:02:07Z")

</div>

Hi, I’m experimenting with sending data from an I2C pressure/temperature, specifically the BMP280, I’m following instructions from the book “Beginning Sensor Networks with XBee, Arduino and Raspberry Pi” I have got my …

---

## [Is there any Micropython SDI serial software ?](https://forums.digi.com/t/is-there-any-micropython-sdi-serial-software/22314)

<div class="topic-metadata">

**Author:** [@HediLahouar](https://forums.digi.com/u/HediLahouar)\
**Replies:** 4\
**Last updated:** [April 2, 2021, 12:02pm UTC](https://forums.digi.com/t/is-there-any-micropython-sdi-serial-software/22314 "2021-04-02T12:02:42Z")

</div>

I’m Trying to read an SDI-12 sensor directly pluged to the Xbee 3 module, the machine.UART is only for the Xbee Cellular module, so i need an SDI serial software solution

---

## [Is there a way to grab the node\_id from a trasmit message without network discovery?](https://forums.digi.com/t/is-there-a-way-to-grab-the-node-id-from-a-trasmit-message-without-network-discovery/22318)

<div class="topic-metadata">

**Author:** [@blSwagger](https://forums.digi.com/u/blSwagger)\
**Replies:** 1\
**Last updated:** [March 31, 2021, 2:04pm UTC](https://forums.digi.com/t/is-there-a-way-to-grab-the-node-id-from-a-trasmit-message-without-network-discovery/22318 "2021-03-31T14:04:28Z")

</div>

In my application, I want to check the node identifier belonging to the incoming message (direct/non-broadcast). From the material that I have read, the only way that I see to grab the node identifier is through network…

---

## [XBee3 access TX serial with MicroPython for Simplified Serial use](https://forums.digi.com/t/xbee3-access-tx-serial-with-micropython-for-simplified-serial-use/21428)

<div class="topic-metadata">

**Author:** [@Antoine](https://forums.digi.com/u/Antoine)\
**Replies:** 11\
**Last updated:** [March 30, 2021, 5:56pm UTC](https://forums.digi.com/t/xbee3-access-tx-serial-with-micropython-for-simplified-serial-use/21428 "2021-03-30T17:56:30Z")

</div>

Good morning everyone! I have a motor driver that i want to directly control with a simple XBee3 (XB3-24Z8PT-J). Until now I would have use an intermediate cpu like an Arduino, but now we have MicroPython! The motor d…

---

## [java.lang.NullPointerException](https://forums.digi.com/t/java-lang-nullpointerexception/22317)

<div class="topic-metadata">

**Author:** [@janloo](https://forums.digi.com/u/janloo)\
**Replies:** 0\
**Last updated:** [March 30, 2021, 3:40pm UTC](https://forums.digi.com/t/java-lang-nullpointerexception/22317 "2021-03-30T15:40:19Z")

</div>

Hi, i’m experimenting the following IDE internal error trying to connect and program digi xbee zigbee 3 modules with micropython in pycharm PyCharm 2020.3.5 (Professional Edition) macOS 10.16 Any advice? Many thanks j…

---

## [ValueError: incompatible .mpy file](https://forums.digi.com/t/valueerror-incompatible-mpy-file/22253)

<div class="topic-metadata">

**Author:** [@satyaveerSingh](https://forums.digi.com/u/satyaveerSingh)\
**Replies:** 2\
**Last updated:** [March 3, 2021, 2:46pm UTC](https://forums.digi.com/t/valueerror-incompatible-mpy-file/22253 "2021-03-03T14:46:52Z")

</div>

Hello, We are trying to run /flash/main.mpy file using STM32 microcontroller by using CTRL+R command and we are getting below error that is shown in our buffer. ValueError: incompatible .mpy file kindly provide the re…

---

## [Running NeoPixel on XBee3 with MicroPython](https://forums.digi.com/t/running-neopixel-on-xbee3-with-micropython/22227)

<div class="topic-metadata">

**Author:** [@kapetan](https://forums.digi.com/u/kapetan)\
**Replies:** 4\
**Last updated:** [March 1, 2021, 7:43am UTC](https://forums.digi.com/t/running-neopixel-on-xbee3-with-micropython/22227 "2021-03-01T07:43:01Z")

</div>

Hi, Is it possible to run NeoPixel from MicroPython? I was not able to find any compatible drivers (there were some who relied on SPI which the XBee3 doesn’t seem to support).

---

## [How to get RSSI of latest packet received? (XBee3 + micropython)](https://forums.digi.com/t/how-to-get-rssi-of-latest-packet-received-xbee3-micropython/21322)

<div class="topic-metadata">

**Author:** [@oiturra](https://forums.digi.com/u/oiturra)\
**Replies:** 3\
**Last updated:** [February 22, 2021, 10:03am UTC](https://forums.digi.com/t/how-to-get-rssi-of-latest-packet-received-xbee3-micropython/21322 "2021-02-22T10:03:06Z")

</div>

Hello. I need to get the RSSI of received packets. For a network with few devices, where all of them transmit once in a while I could use AT command ‘DB’ (page 146 of https://www.digi.com/resources/documentation/digidoc…

---

## [cellular modem micropython reference?](https://forums.digi.com/t/cellular-modem-micropython-reference/22221)

<div class="topic-metadata">

**Author:** [@liudr](https://forums.digi.com/u/liudr)\
**Replies:** 4\
**Last updated:** [February 19, 2021, 10:29am UTC](https://forums.digi.com/t/cellular-modem-micropython-reference/22221 "2021-02-19T10:29:31Z")

</div>

I’m interested in reading references of the micropython on the cellular xbee 3 modems. I’ve used micropython on other microcontrollers before so I’m primarily looking at what objects and modules are on the modem and how …

---

## [Is there any way to decompress .zip files from Xbee3 Micropython environment?](https://forums.digi.com/t/is-there-any-way-to-decompress-zip-files-from-xbee3-micropython-environment/22174)

<div class="topic-metadata">

**Author:** [@samson49](https://forums.digi.com/u/samson49)\
**Replies:** 3\
**Last updated:** [February 15, 2021, 10:48am UTC](https://forums.digi.com/t/is-there-any-way-to-decompress-zip-files-from-xbee3-micropython-environment/22174 "2021-02-15T10:48:01Z")

</div>

There doesn’t appear to be a way to handle .zip files received from a GET request or otherwise. Is there someway to import zlib or uzlib to solve this? Just need a way to decompress a file. Perhaps even the decompress…

---

## [Why is this a syntax error?](https://forums.digi.com/t/why-is-this-a-syntax-error/22141)

<div class="topic-metadata">

**Author:** [@Glenn\_Hamblin](https://forums.digi.com/u/Glenn_Hamblin)\
**Replies:** 1\
**Last updated:** [February 15, 2021, 10:47am UTC](https://forums.digi.com/t/why-is-this-a-syntax-error/22141 "2021-02-15T10:47:50Z")

</div>

Hi, I’m a total noob with MicroPython. I’m trying to do something I expect would be easy, but I get a syntax error for . Here’s the snippet that fails. It’s actually the second line that generates the error. if(stdin.…

---

## [missing AP MicroPython REPL \[4\] Option Xbee Firmware 4060](https://forums.digi.com/t/missing-ap-micropython-repl-4-option-xbee-firmware-4060/22199)

<div class="topic-metadata">

**Author:** [@tallarean](https://forums.digi.com/u/tallarean)\
**Replies:** 1\
**Last updated:** [February 12, 2021, 8:59am UTC](https://forums.digi.com/t/missing-ap-micropython-repl-4-option-xbee-firmware-4060/22199 "2021-02-12T08:59:38Z")

</div>

Hey there, we are currently trying to get MicroPython to work using XCTU 6.5.5 and are having difficulties. We have succesfully added, as per the digi.com guides for the XBee Zigbee Mesh Kit, Xbee 3 Zigbee RF Module a…

---

## [VL53L1 with Xbee 3 (micropython)](https://forums.digi.com/t/vl53l1-with-xbee-3-micropython/22177)

<div class="topic-metadata">

**Author:** [@samuelan](https://forums.digi.com/u/samuelan)\
**Replies:** 2\
**Last updated:** [February 4, 2021, 10:37am UTC](https://forums.digi.com/t/vl53l1-with-xbee-3-micropython/22177 "2021-02-04T10:37:37Z")

</div>

Hello, I would like to interface a Xbee 3 and a VL53L1x sensor using micropython. In the datasheet of the VL53L1x, they describe a Driver that should be used in order to communicate with the sensor using I2C protocol. …

---

## [Why does device discovery cause MicroPython to stop running on my sleeping end device?](https://forums.digi.com/t/why-does-device-discovery-cause-micropython-to-stop-running-on-my-sleeping-end-device/22157)

<div class="topic-metadata">

**Author:** [@scribblelab](https://forums.digi.com/u/scribblelab)\
**Replies:** 2\
**Last updated:** [February 1, 2021, 12:16pm UTC](https://forums.digi.com/t/why-does-device-discovery-cause-micropython-to-stop-running-on-my-sleeping-end-device/22157 "2021-02-01T12:16:41Z")

</div>

I have several end devices configured for MicroPython Sleep (SM 6). In XCTU, if I do a device discovery-- click on the button to “Discover radio modules in the same network”-- the end devices will sometimes exit sleep, a…

---

## [MicroPython Topology](https://forums.digi.com/t/micropython-topology/22133)

<div class="topic-metadata">

**Author:** [@Martin91](https://forums.digi.com/u/Martin91)\
**Replies:** 9\
**Last updated:** [January 29, 2021, 10:13am UTC](https://forums.digi.com/t/micropython-topology/22133 "2021-01-29T10:13:07Z")

</div>

Hi, can we use MicroPython in XCTU, to establish network topology (star, mesh) ?

---

## [DS18b20 on Xbee3 LTE-M/NB-IoT](https://forums.digi.com/t/ds18b20-on-xbee3-lte-m-nb-iot/21437)

<div class="topic-metadata">

**Author:** [@AEle](https://forums.digi.com/u/AEle)\
**Replies:** 2\
**Last updated:** [January 28, 2021, 3:04pm UTC](https://forums.digi.com/t/ds18b20-on-xbee3-lte-m-nb-iot/21437 "2021-01-28T15:04:10Z")

</div>

Hello! So I’m using Xbee3 LTE-M/NB-IoT and, my goal is to read two DS18b20 temp values. Can that be done? I heard that Xbee3 can’t handle onewire? I really need a solution for this. Only able to use DS18B20.

---

## [Xbee3 micropython transmit() payload and cluser](https://forums.digi.com/t/xbee3-micropython-transmit-payload-and-cluser/22154)

<div class="topic-metadata">

**Author:** [@samuelan](https://forums.digi.com/u/samuelan)\
**Replies:** 1\
**Last updated:** [January 27, 2021, 10:44am UTC](https://forums.digi.com/t/xbee3-micropython-transmit-payload-and-cluser/22154 "2021-01-27T10:44:24Z")

</div>

Hello, Is there any documentation about the cluster ID and payload format that is used by the XBEE when configured with XCTU in API mode to send ADC values and DIO inputs? The idea is to use the xbee.transmit() functio…

---

## [MicroPython xbee.transmit() hangs when the destination address is off/sleep](https://forums.digi.com/t/micropython-xbee-transmit-hangs-when-the-destination-address-is-off-sleep/22163)

<div class="topic-metadata">

**Author:** [@crowrunner](https://forums.digi.com/u/crowrunner)\
**Replies:** 1\
**Last updated:** [January 27, 2021, 10:25am UTC](https://forums.digi.com/t/micropython-xbee-transmit-hangs-when-the-destination-address-is-off-sleep/22163 "2021-01-27T10:25:14Z")

</div>

I assume this is happening because of the lack of ack from the end device but it also wouldn’t work when using .transmit() with tx\_options to 0x01 for no ACKs but no luck. Other than that, tried methods to pass/suppress …

---

## [XBee 3 Cannot Communicate with Trinket M0 over I2C.](https://forums.digi.com/t/xbee-3-cannot-communicate-with-trinket-m0-over-i2c/22124)

<div class="topic-metadata">

**Author:** [@byrleyar](https://forums.digi.com/u/byrleyar)\
**Replies:** 3\
**Last updated:** [January 13, 2021, 10:07am UTC](https://forums.digi.com/t/xbee-3-cannot-communicate-with-trinket-m0-over-i2c/22124 "2021-01-13T10:07:06Z")

</div>

I am trying to use I2C to communicate between my XBee3 (controller) and an adafruit trinket m0. I’m pretty confident I have the modules connected properly (trinket SCL/pin 2 to xbee SCL/pin DIO1 & trinket SDA/pin 0 to x…

---

## [How to load new firmware to Xbee3 micromodule in a easy way?](https://forums.digi.com/t/how-to-load-new-firmware-to-xbee3-micromodule-in-a-easy-way/22109)

<div class="topic-metadata">

**Author:** [@ANOM](https://forums.digi.com/u/ANOM)\
**Replies:** 3\
**Last updated:** [January 12, 2021, 12:36pm UTC](https://forums.digi.com/t/how-to-load-new-firmware-to-xbee3-micromodule-in-a-easy-way/22109 "2021-01-12T12:36:08Z")

</div>

We are currently working with Digi Xbee3 micro module Digimesh 2.4 Firmware version : 300B How to load new firmware to Xbee3 micromodule in a easy way? Procedure which we are following , first all the compiled micropy…

---

## [send AT command to Router that has microPython](https://forums.digi.com/t/send-at-command-to-router-that-has-micropython/22116)

<div class="topic-metadata">

**Author:** [@Fahad\_Faez](https://forums.digi.com/u/Fahad_Faez)\
**Replies:** 2\
**Last updated:** [January 12, 2021, 12:26pm UTC](https://forums.digi.com/t/send-at-command-to-router-that-has-micropython/22116 "2021-01-12T12:26:38Z")

</div>

hi is it possible to send a command ( like set D3 to High ) to a XBee3 Router that has microPython running ? is micropython considered as transparent or API mode ?

---

## [time loop error](https://forums.digi.com/t/time-loop-error/22114)

<div class="topic-metadata">

**Author:** [@Fahad\_Faez](https://forums.digi.com/u/Fahad_Faez)\
**Replies:** 1\
**Last updated:** [January 11, 2021, 10:15am UTC](https://forums.digi.com/t/time-loop-error/22114 "2021-01-11T10:15:25Z")

</div>

hello i’m using the time loop example from the digi micropython guide in Xbee3 Zigbee as below : import time print(" Preparing to print the current time 5 times, once every 5 seconds.") print("The time format is (y…

[Previous page](https://forums.digi.com/tag/micropython/3446.md?match_all_tags=true&page=1&tags%5B%5D=micropython)

[Next page](https://forums.digi.com/tag/micropython/3446.md?match_all_tags=true&page=3&tags%5B%5D=micropython)
