Git Product home page Git Product logo

pmanzoni / pyuputronics Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 2.0 106 KB

This is a python interface for the Raspberry Pi+ LoRa(TM) Expansion Board by Uputronics (https://store.uputronics.com/index.php?route=product/product&path=61&product_id=68). This board uses the Hope RF’s patented LoRaTM modulation technique RFM95/96/97/98(W)

License: GNU Affero General Public License v3.0

Python 100.00%

pyuputronics's Introduction

Hi there 👋

Pietro's github stats Top Langs

pyuputronics's People

Contributors

grclab avatar pmanzoni avatar

Stargazers

 avatar  avatar

Watchers

 avatar

pyuputronics's Issues

UTF Error on Receive

Would greatly appreciate any help for an issue that I thought I could solve with online searches. Unfortunately, despite finding a lot of references to similar error messages, I have not resolved my issue here.

I have -2- of the Uputronics LoRa Expansion Boards on a couple of Raspberry Pi SBCs. Wanting to learn how to interface with them, and not being a programmer, this repository looked like it might be something I could handle since I've used Python in the past for various projects.

Pi #1 (Pi version 2) is setup as my receive test unit and Pi #2 (Pi 3b+) is doing the transmitting. Their python versions are as follows:

pi@k4kdr-lora-1:~/pyUputronics $ python --version
Python 2.7.9
pi@k4kdr-lora-1:~/pyUputronics $ python3 --version
Python 3.4.2
pi@k4kdr-lora-2:~/pyUputronics $ python --version
Python 2.7.13
pi@k4kdr-lora-2:~/pyUputronics $ python3 --version
Python 3.5.3

I run the receiver (Pi #1) with the following command:

pi@k4kdr-lora-1:~/pyUputronics $ ./rx_cont.py --sf 6 --freq 434.475 --bw BW20_8

... and Pi #2 is setup to transmit with the following command:

pi@k4kdr-lora-2:~/pyUputronics $ ./tx_beacon.py --sf 6 --freq 434.475 --bw BW20_8 --single

... and appears to work correctly on the TX side:

pi@k4kdr-lora-2:~/pyUputronics $ ./tx_beacon.py --sf 6 --freq 434.475 --bw BW20_8 --single

Press enter to start...
Mode <- STDBY
Mode <- TX
Mode <- STDBY
tx #1

... however, when Pi #1 receives the transmission, I get:

pi@k4kdr-lora-1:~/pyUputronics $ ./rx_cont.py --sf 6 --freq 434.475 --bw BW20_8

// cut //

Press enter to start...
-132 1 0
RxDone
Traceback (most recent call last):
  File "/home/pi/pyUputronics/hoperf/LoRa.py", line 158, in _dio0
    self.on_rx_done()
  File "./rx_cont.py", line 46, in on_rx_done
    print(bytes(payload).decode())
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xbc in position 5: invalid start byte

... there are a LOT of references online to this 'utf-8' error but I've not been able to get any of the suggested solutions to alter my results here.

FYI, both devices give the following:

pi@k4kdr-lora-1:~/pyUputronics $ echo $LANG
en_GB.UTF-8

Thanks in advance for any pointers particular to how I might get around this!

-Scott, K4KDR

Missing python programs

I have run the setup according to your instructions however am missing lora_util.py program.
Further the commands : from hoperf.LoRa import *
from hoperf.board_config import BOARD
fail to be recognised in python 3. Can you please amend this issue so it is possible to A) obtain and run lora_util.py and also allow the hoperf.LoRa board to run.

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.