Giter Club home page Giter Club logo

pylora's People

Contributors

bru4bas avatar bruabas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

pylora's Issues

Permission denied pyLoRa library

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

error lora not intialized while setting the frequency

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

License?

I don't see license file included. What is used license for this project?

How to use the set_pins()

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

send_packet hangs after receive_packet

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?

set_frequency

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

ImportError: undefined symbol PyInt_FromLong

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?

Compile on Raspberry PI

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])

PyLora on ubuntu in x86 arch

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

SPI 1

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.