flyte / python-xbee

Automatically exported from code.google.com/p/python-xbee
MIT License
0 stars 0 forks source link

'Unrecognized response packet with id byte \x92' #38

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,

Really looking forward to working with your library, was trying out but having 
trouble.

Have a simple coordinator and router reading adc on d0. It polls every 1sec.  
But when I try and read the frame, I will always get this error:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\temp\python-xbee-f2b894f55529\examples\dispatch.py", line 61, in <module>
    dispatch.run()
  File "C:\Python27\lib\site-packages\xbee\helpers\dispatch\dispatch.py", line 58, in run
    self.dispatch(self.xbee.wait_read_frame())
  File "C:\Python27\lib\site-packages\xbee\base.py", line 400, in wait_read_frame
    return self._split_response(frame.data)
  File "C:\Python27\lib\site-packages\xbee\base.py", line 231, in _split_response
    "Unrecognized response packet with id byte {0}".format(data[0]))
KeyError: 'Unrecognized response packet with id byte \x92'

Any idea how to fix this?  Or what \x92 represents?

I am pretty certain I am using your latest.  Have tried multiple sample code 
and approaches, I always get this error.

Original issue reported on code.google.com by codenote...@gmail.com on 6 Jan 2013 at 4:57

GoogleCodeExporter commented 8 years ago
found answer in issue 22.  For that issue it was \x90 instead of 92, but by 
importing zigbee it seems to be parsing correctly. 

Original comment by codenote...@gmail.com on 6 Jan 2013 at 5:01

GoogleCodeExporter commented 8 years ago
I'm glad you figured out the problem.

~Paul Malmsten

Original comment by pmalms...@gmail.com on 14 Apr 2013 at 6:50