Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Python Library for Lazurite

Project description

#Lazurite Python Library "PyLaz"
Lazurite is IoT reference design with 920MHz SubGHz RF. It consists of low power micro controller board and Raspberry Pi based gateway.

[Lazurite](http://www.lapis-semi.com/lazurite-jp) development team supports Python Library for our RF on Raspberry Pi.

# Getting Started
1. install library
easy install:
```
sudo pip install PyLaz
sudo pip3 install PyLaz
```
manual install:
```
git clone git://github.com/LAPIS-Lazurite/PyLaz
cd PyLaz
python setup.py install
```
2. download sample program
Please git this repository.
(ex) git clone git://github.com/LAPIS-Lazurite/PyLaz
3. execute sample program
sample programs are stored in samples folder.
rxsample.py : simple version on command line program for receiving.
txsample.py : simple version on command line program for transferring.
gateway.py : GUI for setting RF parameters and log is displayed on GUI's text feild.

# Description
rxsample.py and txsample.py work on Python 2 and 3
gateway.py works on only Python3.


# Requirement
LazDriver must be worked on Raspberry Pi.

# API
## init()
## begin(ch,panid,rate,pwr)
## send(panid,rxaddr,payload)
## close()
## read()
## rxEnable()
## rxDisable()
## available()
## get_my_address()
## get_addr_type(type)
## set_addr_type(type)
## set_tx_retry(type)
## get_tx_retry(type)

## get_rx_time()
## get_rx_rssi()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for PyLaz, version 0.0.10
Filename, size File type Python version Upload date Hashes
Filename, size PyLaz-0.0.10.tar.gz (5.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page