I want help reading serial data from XBee using Python

Hey everyone! :waving_hand:

I am working on a small project where I am trying to read data from an XBee module using Python. I have got the hardware all set – XBee connected via USB & it shows up fine on my machine. I am using the digi-xbee Python library (v1.4.1 I think?) & Python 3.11.

I can send AT commands just fine but when I try to read serial data , I either get nothing or weird characters. I have double-checked the baud rate & all the usual settings but still no luck.

I even tried following a Python tutorial that covered serial communication basics but still could not get the output right. Could it be something with the way the data is being parsed or maybe a buffer issue?

Thank you.:slight_smile:

Which XBee module are you running and how is it configured?

What IDE are you working with?