Raspbian and LoRa ChisteraPi

Forum de support et échanges autour du Chistera-Pi

Raspbian and LoRa ChisteraPi

Message non lude eddy33 » Ven 6 Juil 2018 09:30

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.cpp 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+

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.
Avatar de l’utilisateur
eddy33
 
Messages: 4
Inscription: Ven 6 Juil 2018 09:26

Re: Raspbian and LoRa ChisteraPi

Message non lude eddy33 » Lun 3 Sep 2018 10:42

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: Tout sélectionner
#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.
Avatar de l’utilisateur
eddy33
 
Messages: 4
Inscription: Ven 6 Juil 2018 09:26


Retourner vers Chistera-Pi

Qui est en ligne

Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 2 invités