Open Nanne118 opened 6 years ago
I'm also trying to get this working, but with no luck yet. I think I have a different problem to you, though. I do have files in /sys/class/gpio/gpio4/
. Have you enabled SPI in boot/config.txt
?
In my case I'm just getting:
FAILURE
radio.c:666
I have got the Lora HAT working with the Radiohead library, using the LORASPI
board option, which defines the following pins:
#define RF_LED_PIN RPI_V2_GPIO_P1_16 // Led on GPIO23 so P1 connector pin #16
#define RF_CS_PIN RPI_V2_GPIO_P1_24 // Slave Select on CE0 so P1 connector pin #24
#define RF_IRQ_PIN RPI_V2_GPIO_P1_22 // IRQ on GPIO25 so P1 connector pin #22
#define RF_RST_PIN RPI_V2_GPIO_P1_15 // IRQ on GPIO22 so P1 connector pin #15
I'm not sure how these CS/IRQ/RST pinouts relate to the lmic_pins
.
Has anyone been able to get this to work with the Raspberry Pi 3 B+ (esp. for the US) ? I have it running, but it doesn't show up in the TTN console. I did the following:
Hi,
I’m using a raspberry pi 3b and a Dragino gps/hat v1.4 as a sender. When I run thethingsnetwork code with sudo, I get this error:
Failure radio.c 664
this does not happen if I launch it normally. It would seem a pin connection problem, could anyone please help me?
Thank you all
you need to check the pin mapping in your lmic code. i had the same error before but as soon as you set the pins properly
// Pin mapping const lmic_pinmap lmic_pins = { .nss = 10, .rxtx = LMIC_UNUSED_PIN, .rst = 9, .dio = {2, 6, 7}, };
Anybody solved this? I've changed everything according to the instructions and posts here but no luck, still same radio.c:664 error and no idea how to debug it.
I'm stuck with the same Problem. I changed the mapping like @simortus recommended with one correction of mine: LMIC_UNUSED_PIN changed to UNUSED_PIN
you need to check the pin mapping in your lmic code. i had the same error before but as soon as you set the pins properly
// Pin mapping const lmic_pinmap lmic_pins = { .nss = 10, .rxtx = LMIC_UNUSED_PIN, .rst = 9, .dio = {2, 6, 7}, };
But the Problem is still: FAILURE radio.c:664
Hi @lazarusCantini did you solve this issue? I am having the same problem. Thank you!
Hey @asanz060 Indeed, I solved THIS Problem. Now I'm struggling with another Problem, but the issue above I solved with the configuration:
// Pin mapping
lmic_pinmap pins = {
.nss = 6,
.rxtx = UNUSED_PIN, // Not connected on RFM92/RFM95
.rst = 0, // Needed on RFM92/RFM95
.dio = {7,4,5}
};
This Configuration works with the Dragino LoRa/GPS HAT for RPi v1.4
You can find the Infos needed:
Pin Mapping LoRa Chip to Raspberry
Translation wiringPi to Raspberry Pinout
Hope this is helpfull!
Hey all, I know this is not within the scope or ''support'' for this, but I cannot seem to get this software / library working with the Dragion GPS/Lora HAT for the Raspberry Pi (3). Although there are a variety of tutorials that describe it as working with this software and hardware combination, the issue I run into is that the pin 4 is not found:
Most likely this is due to the newer version of the GPS/Lora board having a different pinout than the previous versions: anyone here that has also run into this issue and knows how to solve it?