Comments (4)
Unfortunately no, the library no longer supports the old API, and I do not plan
to re-instate it.
As it turns out, this is the very same project as the one you linked;
python-xbee originally began from the code you linked as written by Amit
Synderman.
I led a complete rework of the library about two years ago, which brought it to
its approximate current form. The goal was to make the codebase cleaner, easier
to use, and to more completely support the XBee API.
The new implementation of the API for IEEE 802.15.4 XBees (i.e. Series 1) is
quite complete; everything you mentioned should be there. Here is a listing of
all of the packets we currently support:
http://code.google.com/p/python-xbee/source/browse/xbee/ieee.py.
The basic idea is that information coming back from the new library will be a
dictionary containing the information listed on that page for each packet type.
For example, a "rx" packet containing data the attached device recently
received over the air would look like the following dictionary:
{"id":"rx",
"source_addr": <two byte address of the source radio>,
"rssi": <one byte RSSI>,
"options": <one byte for tx options flags>,
"rf_data": <n number of received data bytes>
}
Take a look at some of the examples
(http://code.google.com/p/python-xbee/source/browse/#hg%2Fexamples) to get a
better feel for how to use the new version of the library.
Does this help answer your question?
Original comment by [email protected]
on 14 Jun 2012 at 8:49
- Added labels: Priority-Low, Type-Other
- Removed labels: Priority-Medium, Type-Defect
from python-xbee.
I think so. So I just look at the source_addr?
My output:
{'reserved': b'\xfe\x02', 'options': b'R', 'frame_id': b'\x00', 'source_addr':
b'\x13\xa2\x00@h\xcfF\xff', 'data':
b'\x01#\x00VxOceanWasp03,x:12,y:-492,z:945,bat:91%\r\n', 'id': 'rx_long_addr'}
So my source_addr is not my Node Identifier but it is the Mac Address of my
XBee. It's not the full mac address because it's missing numbers in the middle
and at the end. The end is supposed to be \x46 not \xff. I just put the node
identifier in the data string so I know it's coming from OceanWasp03.
Original comment by ronthecon
on 19 Jun 2012 at 6:33
from python-xbee.
Oops, I misinterpreted Node Identifier. Unfortunately, XBee API responses do
not include a Node Identifier, and only include the physical address of the
sender as you mentioned.
As you demonstrate, sending the Node Identifier along with data works. You
could also consider using a dictionary to map from source address to Node
Identifier, and do a lookup there whenever you receive something.
Original comment by [email protected]
on 20 Jun 2012 at 12:53
from python-xbee.
Original comment by [email protected]
on 14 Apr 2013 at 7:00
- Changed state: WontFix
from python-xbee.
Related Issues (20)
- send and receive file HOT 1
- x92 frame for ZB is not showing the right info ( i think ) HOT 7
- XBee ZB devices: DIO lines 12 and 4 never parsed as enabled HOT 8
- dispatch_async: serialposix.py TypeError HOT 3
- wait read frame return incorrect value HOT 1
- Errors in send command with python 3.3 HOT 4
- SerialException when waiting for frame
- IndexError: pop from empty list
- ZigBee tx_long_addr HOT 1
- xbee.tx doesn't work HOT 1
- dio7 missing on the printed frame
- Misrepresentation of Information HOT 1
- Processing Waspmote data frames. HOT 5
- Response packet was longer than expected; expected: 32, got: 36 bytes - Join Notification HOT 11
- no response to 'SH' HOT 8
- enhancement -> add a protocol stack transport layer
- XBee-2.1.0 Python setup.py install fails
- xbee.wait_read_frame waits forever and returning no response HOT 2
- Unable to receive data in XBee coordinator radio connected to raspberry pi from Xbee router radio connected to PC
- Minor refactoring due to what it seems a fail in the Digi Xbee documentation HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-xbee.