inteform / pylora Goto Github PK
View Code? Open in Web Editor NEWLow-level Lora (SX127_) Python module for Linux (Raspberry Pi and others)
Low-level Lora (SX127_) Python module for Linux (Raspberry Pi and others)
Hello to all,
I have installed the pyLoRa package on my Pi. Unfortunately I seem to have some problems with the access rights. When I run the program test_lora.py
I get the following error message:
Traceback (most recent call last): File "/home/Imker/pySX127x/test_lora.py", line 25, in <module> from SX127x.LoRa import * File "/home/Imker/pySX127x/SX127x/LoRa.py", line 77, in <module> class LoRa(object): File "/home/Imker/pySX127x/SX127x/LoRa.py", line 79, in LoRa spi = BOARD.SpiDev() # init and get the baord's SPI File "/home/Imker/pySX127x/SX127x/board_config.py", line 90, in SpiDev BOARD.spi.open(spi_bus, spi_cs) PermissionError: [Errno 13] Permission denied
Who can help me?
Thanks a lot
Max
when just try to run your sender code it fails to to run it by saying lora not initialized
Traceback (most recent call last):
File "pylora.py", line 4, in
PyLora.set_frequency(915000000)
RuntimeError: Lora not initialized
Hi, just wanted to know if its possible to run this on python 3.x version ?
I don't see license file included. What is used license for this project?
Hi
Do you have any reference examples for connecting multiple LoRa Nodes to single Receiver
How to use the PyLora.set_pins() ?
I am doing this
cs = "25" reset = "22" dio0 = "4" PyLora.set_pins(cs,reset,dio0)
When I set the variables as int, it says they must be string. But then, when I make them string, this error shows up
Traceback (most recent call last): File "send.py", line 6, in <module> PyLora.set_pins(cs,reset,dio0) TypeError: an integer is required
Please help
Hi, I have a simple script which waits for a remote command then sends back some data:
PyLora.wait_for_packet(-1)
cmd = PyLora.receive_packet()
# process command:
...
# send response:
PyLora.send_packet(resp)
=> The last statement (send_packet) hangs, probably in the loop waiting for the IRQ_TX_DONE_MASK flag to clear.
note: if I comment out the call to receive_packet(), then send_packet() goes through just fine.
what am I missing?
On my Raspberry Pi Zero if I try to follow the snipped code in the Readme.md I got :
`pi@swpi ~/swpi/test_lora $ sudo python
Python 2.7.3 (default, Jun 22 2016, 03:14:32)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
import PyLora
PyLora.init()
1
PyLora.set_frequency(915e6)
Traceback (most recent call last):
File "", line 1, in
TypeError: integer argument expected, got float
`
Casting :
PyLora.set_frequency(int(915e6))
Works fine but I do not know yet the result as I'm still waiting for my RFM95 module.
Thanks
I've cloned the repo, built, and installed as the README instructed.
I created a python file and it fails on import PyLora
with the error
Traceback (most recent call last):
File "LoRaController_TCP_Rev-3.py", line 2, in
import PyLora
ImportError: /usr/local/lib/python3.5/dist-packages/PyLora.cpython-35m-arm-linux-gnueabihf.so: undefined symbol: PyInt_FromLong
I'm using Python 3.5.3 on Raspbian 9.9
Edit: I'm guessing this project is dead?
To compile on raspberry PI I had yo add -std=c99 on CFLAGS either using :
CFLAGS="-std=c99" python setup.py build
or modifying setup.py
from distutils.core import setup, Extension
mod = Extension("PyLora",
sources = ["src/PyLora.c",
"src/lora.c",
"src/gpio.c",
"src/spi.c"],
extra_compile_args = ["-std=c99"],
include_dirs = ["./include"])
setup(
name = "PyLora",
version = "1.0",
description = "Python interface with LoRa Radio Transceiver",
author = "Bruno Abrantes Basseto",
author_email = "[email protected]",
url = "https://",
ext_modules = [mod])
hi,
i am trying to install PyLora in Ubuntu , i am using python2.7 but it is giving bellow error when i am executing set_frequency function
PyLora.init()
-1
PyLora.set_frequency(915000000)
Traceback (most recent call last):
File "", line 1, in
RuntimeError: Lora not initialized
Hi,
I would like to use spi1 channel (gpio16,19,20,21) instead of spi0 channel.
How to configure it with PyLora.set_pins() ?
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.