User avatar
eddy33
Posts: 4
Joined: Thu Jul 05, 2018 9:48 am

Raspbian and LoRa ChisteraPi

Thu Jul 05, 2018 4:03 pm

Hi all,

I'm using the LoRa Snootlab's ChisteraPi 1.2 hat with Raspberry Pi 3B board.

For testing, I'm using 2 RPi boards with ChisteraPi and a Lora example from https://github.com/Snootlab/lora_chisterapi

After waisted time, be carefull with your Raspbian version.

What I've tested is:
- OK with Raspbian 2017-09-07. Kernel version: 4.9.41-v7+.
- BAD with Raspbian 2017-11-29. Kernel version: 4.9.59-v7+ (You have an "Init failed" with the sender example)
- BAD with Raspbian 2018-03-13. Kernel version: 4.9.80-v7+
- BAD with Raspbian 2018-04-18. Kernel version: 4.14.34-v7+
- BAD with Raspbian 2018-06-27. Kernel version: 4.14.50-v7+

You have another thread (viewtopic.php?t=201810#p1256776) on this problem.

So the last Raspbian version working with ChisteraPi 1.2 is Raspbian 2017-09-07 (http://downloads.raspberrypi.org/raspbi ... 017-09-08/). I have to put a couple of time to see why when I 'll have enough time for this ;-)

Cheers.

User avatar
eddy33
Posts: 4
Joined: Thu Jul 05, 2018 9:48 am

Re: Raspbian and LoRa ChisteraPi

Mon Sep 03, 2018 12:31 pm

Hi all,

After studying the source code for LoRa with the ChisteraPi board, I've found the problem.

For the LoRa stack, in file lib/radiohead/RH_RF95.cpp, after line 46, please add the call of the begin() method for RHLinuxSPI objet:

Code: Select all

    #if (RH_PLATFORM == RH_PLATFORM_RPI)
        RHLinuxSPI::begin("/dev/spidev0.0");
    #endif
Don't care about the "char *" warning at the compilation.
It works great after with the RPi 3B model and with the RPi 3B+ model too.

I've tested this (sender.cpp and receiver.cpp examples):
- OK with Raspbian 2017-09-07. Kernel version: 4.9.41-v7+.
- OK with Raspbian 2018-06-27. Kernel version: 4.14.50-v7+

Cheers.

Adam79
Posts: 1
Joined: Thu Jan 10, 2019 11:11 pm

Re: Raspbian and LoRa ChisteraPi

Thu Jan 10, 2019 11:20 pm

Hi,

I'm also trying to use LoRa hat to transmit p2p with ChisteraPi lib, but adding this 3 lines of code to specified file gives me compilation error like this:

Code: Select all

[email protected]:~/lora/lora_chisterapi $ make
g++ -std=c++11 -g -Wall -DRH_PLATFORM=RH_PLATFORM_RPI -D__RASPBERRY_PI_ -I lib/radiohead/ -o lib/radiohead/RH_RF95.o -c lib/radiohead/RH_RF95.cpp
lib/radiohead/RH_RF95.cpp: In member function ‘virtual bool RH_RF95::init()’:
[b]lib/radiohead/RH_RF95.cpp:48:43: error: no matching function for call to ‘RH_RF95::begin(const char [15])’
         RHLinuxSPI::begin("/dev/spidev0.0");[/b]
                                           ^
In file included from lib/radiohead/RH_RF95.h:17:0,
                 from lib/radiohead/RH_RF95.cpp:6:
lib/radiohead/RHLinuxSPI.h:74:10: note: candidate: virtual void RHLinuxSPI::begin()
     void begin();
          ^~~~~
lib/radiohead/RHLinuxSPI.h:74:10: note:   candidate expects 0 arguments, 1 provided
Makefile:24: polecenia dla obiektu 'lib/radiohead/RH_RF95.o' nie powiodły się
make: *** [lib/radiohead/RH_RF95.o] Błąd 1
Can you help me, please?

Best regards, Adam

User avatar
Snootlab
Posts: 1
Joined: Fri Jan 11, 2019 9:02 am
Location: Toulouse
Contact: Website Facebook

Re: Raspbian and LoRa ChisteraPi

Fri Jan 11, 2019 9:12 am

Hello,
Thank you for using our product.
We updated on github the lib, please check it : https://github.com/Snootlab/lora_chisterapi
It should solve the problem.
Do not hesitate to create issues or pull requests on our github.
Best regards.
Snootlab design & manufacture electronics for industry and DIY. OSHW Member since 2011.

Return to “Interfacing (DSI, CSI, I2C, etc.)”