Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4844

Beginners • Pigpio initialization error while try to run LoRa c codes

$
0
0
Hello,
I am trying to send data from an Arduino UNO to a Raspi3 via a LoRa module Ra-02. I have already done a test with two Arduino UNOs and it worked.
Now I have downloaded and installed this library

https://github.com/YandievRuslan/sx1278 ... ree/master


But if I run the receive scripts, I get this message

Code:

2024-11-05 22:29:37 initInitialise: Cannot lock /var/run/pigpio.pidPigpio initialization error2024-11-05 22:29:37 spiXfer: pigpio uninitialized, call gpioInitialise()2024-11-05 22:29:37 spiXfer: Pigpio is not initialized, call gpioInitialise()2024-11-05 22:29:37 spiXfer: Pigpio uninitialized, call gpioInitialise()2024-11-05 22:29:37 spiXfer: Pigpio uninitialized, call gpioInitialise()2024-11-05 22:29:37 gpioSetMode: Pigpio uninitialized, call gpioInitialise()2024-11-05 22:29:37 gpioSetISRFuncEx: Pigpio not initialized, call of gpioInitialise()2024-11-05 22:29:37 spiXfer: pigpio uninitialized, call gpioInitialise()2024-11-05 22:29:37 spiXfer: Pigpio uninitialized, call gpioInitialise()End of2024-11-05 22:30:37 gpioSetISRFunc: Pigpio uninitialized, call gpioInitialise()2024-11-05 22:30:37 spiXfer: pigpio uninitialized, call gpioInitialise()2024-11-05 22:30:37 spiXfer: Pigpio uninitialized, call gpioInitialise()2024-11-05 22:30:37 spiClose: Pigpio uninitialized, call gpioInitialise()
Unfortunately, not much is explained in the lib.
I have checked the SPI interface is running but I don't know what I also have to do.
I have tried

Code:

sudo killall pigpiod
with response

Code:

no process found
and also

Code:

sudo pigpiod
with no response

Code:

ls /dev/*spi*
with response

Code:

/dev/spidev0.0 /dev/spidev0.1

My Wiring is like this (sorry I don't know how to add pngs on this forum)
https://ibb.co/w4VQLR8

Statistics: Posted by Mathrim — Wed Nov 06, 2024 6:33 am



Viewing all articles
Browse latest Browse all 4844

Trending Articles