Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/niolabs/python-xbee
Python tools for working with XBee radios
https://github.com/niolabs/python-xbee
Last synced: 2 months ago
JSON representation
Python tools for working with XBee radios
- Host: GitHub
- URL: https://github.com/niolabs/python-xbee
- Owner: niolabs
- License: mit
- Created: 2015-05-29T19:45:06.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2020-11-30T14:03:17.000Z (about 4 years ago)
- Last Synced: 2024-04-14T08:15:58.492Z (9 months ago)
- Language: Python
- Homepage:
- Size: 277 KB
- Stars: 100
- Watchers: 19
- Forks: 45
- Open Issues: 5
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGES.txt
- License: LICENSE.txt
Awesome Lists containing this project
- awesome-gnuradio - python-xbee - Python tools for working with XBee radios (Other SDR Software)
README
XBee
====|build_status_badge| |pypi_badge| |py_versions_badge|
.. |build_status_badge| image:: https://travis-ci.org/nioinnovation/python-xbee.svg?branch=master
:target: https://travis-ci.org/nioinnovation/python-xbee
.. |pypi_badge| image:: https://img.shields.io/pypi/v/XBee.svg
:target: https://pypi.python.org/pypi/XBee
.. |py_versions_badge| image:: https://img.shields.io/pypi/pyversions/XBee.svg
:target: https://pypi.python.org/pypi/XBeeXBee provides an implementation of the XBee serial communication API. It
allows one to easily access advanced features of one or more XBee
devices from an application written in Python. An example use case might
look like this:.. code:: python
#! /usr/bin/python
# Import and init an XBee device
from xbee import XBee, ZigBee
import serialser = serial.Serial('/dev/ttyUSB0', 9600)
# Use an XBee 802.15.4 device
xbee = XBee(ser)
# To use with an XBee ZigBee device, replace with:
# xbee = ZigBee(ser)# Set remote DIO pin 2 to low (mode 4)
xbee.remote_at(
dest_addr=b'\x56\x78',
command='D2',
parameter=b'\x04')xbee.remote_at(
dest_addr=b'\x56\x78',
command='WR')Installation
============::
pip install xbee
Install from Source
-------------------Extract the source code to your computer, then run the following command
in the root of the source tree:::
python setup.py install
This will automatically install the package for you.
Install with Tornado Support
----------------------------::
pip install xbee[tornado]
Documentation
=============See the python-xbee project on `Read the Docs `_.
To build the documentation yourself, ensure that `Sphinx
`_ is installed. Then cd into the docs folder,
and run ‘make html’. The documentation can then be opened in any modern
web browser at docs/build/html/index.html.For more information about building or modifying this project's
documentation, see the documentation for the Sphinx project.Dependencies
============PySerial
pip >= 6.0
setuptools >= 8.0Additional Dependencies
-----------------------If wanting to use the Tornado IOLoop: `Tornado `_
To run automated tests: `pytest `_
To build the documentation: `Sphinx `_
XBee Firmware
-------------Please ensure that your XBee device is programmed with the latest
firmware provided by Digi. Using an old firmware revision is not
supported and may result in unspecified behavior.Contributors
============* Paul Malmsten [email protected]
* Greg Rapp [email protected]
* Brian [email protected]
* Chris Brackert [email protected]
* Amit Synderman
* Marco Sangalli
* James Saunders [email protected]
* David Walker [email protected]