Unrecognized response packet

8 views
Skip to first unread message

Jeffrey Parker

unread,
Aug 30, 2015, 2:10:05 AM8/30/15
to Python XBee Dev
I am working with python xbee 2.10 in python 2.7.10 and I was getting packets successfully for a while, but sending response never seemed to work properly. Using XCTU I was able to verify the XBees that I have can communicate back and forth, though the communication keeps stopping in certain circumstances that I have not been able to narrow down yet. 

Anyways the real reason for posting this is I am not getting "Unrecognized response packet with id byte \xa1". I was not getting this before and have not changed the code at all. All I did was restart everything and this started happening. XCTU shows the same packets that I was getting before so I am very confused.

Any help that can be provided on getting this packet error fixed and getting both directions of communication to work would be much appreciated. It would also be very nice if I could see the packets on both ends while my arduino is sending and receiving data and while my code that is handling the data on the computer so if anyone has a way to do that please let me know what it is.

Alistair Adams

unread,
Aug 30, 2015, 10:48:51 AM8/30/15
to python-...@googlegroups.com

I’ve been using xbee 2.10 successfully with a Raspberry Pi for a while now but have never seen this. In getting up and running I had to go digging for the latest XBee module spec which is http://ftp1.digi.com/support/documentation/90000982_S.pdf and there’s lots of good information about the protocol in that document that I found useful.

 

On p114 there’s a list of response codes and 0xA1 is a Route Record Indicator. Looking at the table in zigbee.py there is no handling for this response code which might explains the error. I don’t know enough to know why you are getting that but perhaps there’s an error in the packets command you are sending out – that’s where I would start.

 

If you still can’t figure it out can you provide a description of your hardware setup and what code is running where. In my setup I’m not using an Arduino, I’m taking advantage of the I/O in the XBee and using that to drive relays and read sensors.

 

Alistair

--
You received this message because you are subscribed to the Google Groups "Python XBee Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-xbee-d...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jeffrey Parker

unread,
Aug 30, 2015, 1:09:57 PM8/30/15
to Python XBee Dev
It is probably a terrible hack but I just copied the rx handling and pasted it in and changed the response code to match the packets that I am getting and it seems to be working that way. I still have problems but they all seem to be on the Arduino side in that the Arduino is never seeing any packets, even though I can use the same XBee modue and see them in XCTU.
Reply all
Reply to author
Forward
0 new messages