Home/Support/Support Forum/How to send AT command to zigbee device using Python
New and improved user forum site going live on 12/6 (All users will need to reset their password when the new forum is active)

How to send AT command to zigbee device using Python

0 votes
Hi, I'm completely new to Python programming and I'd appreciate any assistance and advices given.

I'm currently working on Zigbee device where I need to send a request command to get the result back. I have a python code that listens to the Serial com port but I need to rectify it so it would send the request command and send back the result.

The zigbee that I'm using is a normal zigbee not xbee's zigbee, I've read that it is similar / compatible

This is an example of what I want it to do.

so I need my Python to send the at command "at+uc=2823,?"

which code should I use to fulfil my needs? and how do I write my codes?

Thank you :)
asked Mar 30, 2021 in IEEE 802.15.4 by sp_trainee_31 New to the Community (0 points)

Please log in or register to answer this question.

3 Answers

0 votes
I think you posted this at the wrong site. This site is for Digi International products and questions related to that.
answered Mar 31, 2021 by mvut Veteran of the Digi Community (15,515 points)
0 votes
when you recive a message you get an xbee_message object, first you must define a data receive callback function and add it to device . In that message you call remote_device_get_64bit_addr().

<a href="https://www.sevenmentor.com/python-course-in-nashik">Python classes in Nashik</a>
answered Apr 12, 2021 by snahtajain New to the Community (1 point)
0 votes
Just use pyserial library, open the connection on the COM (or ttys / stty) port and send and receive data. There is no magic here.

answered Jul 3 by marcel22 New to the Community (13 points)