-
Notifications
You must be signed in to change notification settings - Fork 21
Dependency and pip version problem #20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hello Rainer, I am currently facing the same issue. Have you managed to fix it yet? Best regards Edit: I fixed it with the solution described in issue#19 |
I try to get the waveshare lora hat running with SX1262 and gps. Took me a little bit to find the right documentation. They provide a LoRaRF version, which works out of the box. I had no time so far to have a look where they modified it. If you want to have a look in the meanwhile here is the link. Scroll down to the bottom of the page: waveshare lorarf library |
Wow, how could I have not found that earlier? Thank you for that! I was
always just relayed to a different product page that had only useless demo
code.
To be honest though, I am still not able to make it work. I've tried to use
the transmitter.py example and at first I got an error with the call to
SX126x() and after I fixed that I got an error during the LoRa.begin().
Have you encountered similar issues?
Am So., 14. Jan. 2024 um 16:38 Uhr schrieb Rainer Fritz <
***@***.***>:
… I try to get the waveshare lora hat running with SX1262 and gps. Took me a
little bit to find the right documentation. They provide a LoRaRF version,
which works out of the box. I had no time so far to have a look where they
modified it. If you want to have a look in the meanwhile here is the link.
Scroll down to the bottom of the page: waveshare lorarf library
<https://www.waveshare.com/wiki/SX1262_XXXM_LoRaWAN/GNSS_HAT>
—
Reply to this email directly, view it on GitHub
<#20 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BDYPCLTIJJGSOZPJIAX7HGLYOP3XHAVCNFSM6AAAAABAOW2IBWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJQHE4DKNZTGQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Before you test it with that library, make sure you uninstall from your primary python environment the lorarf package.
|
That was it, I still had the old installation, thank you so much!! Now it
works!
Am Di., 16. Jan. 2024 um 15:19 Uhr schrieb Rainer Fritz <
***@***.***>:
… Before you test it with that library, make sure you uninstall from your
primary python environment the lorarf package.
Thats how I did it:
- generate a virtual python environment
- activate it and cd into it
- copy the whole library into the venv directory
- pip install ./sx126x_lorawan_hat_code/python/lora
But it worked also without installing it on my side
—
Reply to this email directly, view it on GitHub
<#20 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BDYPCLXYW3IOSC6DAFFIOWTYO2EA3AVCNFSM6AAAAABAOW2IBWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJTHA2DAMBSGM>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Hello, I got the same module for my Model: Raspberry Pi 4 Model B Rev 1.1. If I put a sudo in front of the python3, I get these error message: The Lib from the ZIP File runs without installing it, but the target is to have a long running (multiple months/years) solution. If I run it the python process, it sometimes stopping without any failure. The data send over LoRa is no longer processed. Making the python script as a serivce was also not successful because of the lacking of the installation, which is preventing the python script to start. At the end I cloned this git repository and set the pins to the numbers named in the example scripts of the ZIP file. I'm confused, thanks for you help. |
Hello longtomin, I'm by far no expert, I am just a masters student that tried to make a project but my honest opinion is that this piece of hardware (the Raspberry Pi LoRa Hat by waveshare) is some of the biggest garbage I've ever encountered. Nothing works and the documentation is old and shitty. I have now switched to the Pi Pico version and used micropython and everything works perfectly with a suitable library. I have nothing against waveshare, I even use their RP2040 pico board with USB-C, but the LoRa Hat for the Pi 3/Pi4 is a disgrace. |
Hello, I tried the EByte Module for the RPi4 which has an AirRate and no spreading factor or Bandwidth. Is there a step by step installation guide from a brand new installed RPi Image, e.g.
Thanks & regards |
Ah yes, I was talking about my experiences with the hat with the Ebyte module. Sorry, I should have made this clearer. I have no experiences with this hat but I wish you the best of luck in finding a solution! |
If you make a diff on the SX126x.py from the ZIP file and from the repository here, there is not much difference, but never then less it's not working |
Are you sure you have this zip downloaded? I did not install it with the setup.py, I copied the library in the into the venv and installed it then with pip with the install command: |
Yes, I downloaded the ZIP (sha256sum is 8273f7605d73a7353311282faa69d2334b54af3736d09144bef06a6801aeee14) on both machines, my Ubuntu Laptop and my RPi4. If you make a diff on the SX126x.py from the ZIP file and from the repository here, there is not much difference, but never then less it's not working. |
Hello, I found a solution for my Hat with the RadioLib compiled by cmake on the Raspberry with C and the functions of the Lib which are also used on the Arduino. |
Hi longtomin! Saw this possibility also and tried it out myself but I can't get the lora chip initialised, getting error code -707. I am using SPI channel 0 for my waveshare board which is this one here: My workflow was to compile radiolib and lgpio and linked in the Cmakeslists.txt to the header files. Did the following:
gets installed in: /usr/local/include Building Radiolib
gets installed in: /usr/local/include/RadioLib
Edit CMakeLists.txt
comment out the add_subdirectory line because all header files are compiled as shared library add: #link to shared library build before
How did you get it working? BR |
Hello, I just installed the 2024-07-04-raspios-bookworm-arm64.img on a SD-Card or USB Stick and assigned a static IP with the eth0 file in /etc/network/interfaces.d direcotry. And I had to change the radio.begin like this:``` #define FREQUENCY 868.0 int state = radio.begin(FREQUENCY, BANDWIDTH, SPREADING_FACTOR, CODING_RATE, 0x12, 10, 8, 0.0, false); Important is the 0.0 in the radio.begin.
|
Awesome! Thanks, the 0.0 and false at the end did the trick to not use TCXO and LDO. |
Hi!
I try to get the library running on an RPi 3b+ with the 64bit OS headless. The board I am using is the waveshare board with SX1262 via SPI and GPS via serial.
When I compare the version if install directly LoRa RF via pip3 install LoRaRF, the base.py file seems not uptodate as it misses the classes LoraSPI and LoraGpio. So i am going with the version here from github, manual install in an venv.
I do the following:
-create virtual env for python
python -m venv lora
--activate if not already
source lora/bin/activate
--get the LoRa Repo from git - pip is not actual
--install dependencies
--install LoRaRF
--try to call the receiver example:
python3 examples/SX126x/receiver.py
Gives the Error:
FileNotFoundError: [Errno 2] No such file or directory
Can it be, that the actual gpiod version 2.1.3 does not work with the code currently?
I changed then in the chip.py the line
self._chip = _ext.Chip(path)
toself._chip = _ext.Chip("/dev/gpiochip0")
which seems to work, but then the chip object complains:Any help to get it running would be awesome.
THX, Rainer
The text was updated successfully, but these errors were encountered: