flyte / python-xbee

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

ERROR Packet ID byte #22

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. run example code
2. xbee Pro
3. python 2.7/ Mac OS X

What is the expected output? What do you see instead?
Traceback (most recent call last):
  File "bola_xbee.py", line 13, in <module>
    response = xbee.wait_read_frame()
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/xbee/base.py", line 381, in wait_read_frame
    return self._split_response(frame.data)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/xbee/base.py", line 213, in _split_response
    % data[0])
KeyError: 'Unrecognized response packet with id byte \x90'

What version of the product are you using? On what operating system?
last one

Please provide any additional information below.

Original issue reported on code.google.com by bruno.mo...@gmail.com on 19 Jul 2011 at 9:26

GoogleCodeExporter commented 8 years ago
If you're using an XBee ZB PRO (ZB for ZigBee), import and use ZigBee instead 
of XBee:

from xbee import ZigBee

ser = serial.Serial('/dev/ttyUSB0', 9600)
zb = ZigBee(ser)

Does that help?

Original comment by pmalms...@gmail.com on 19 Jul 2011 at 9:59

GoogleCodeExporter commented 8 years ago
SURE! tkx a LOT!

Original comment by bruno.mo...@gmail.com on 20 Jul 2011 at 7:30

GoogleCodeExporter commented 8 years ago

Original comment by pmalms...@gmail.com on 20 Jul 2011 at 7:46