Giter Club home page Giter Club logo

Comments (8)

brady-aiello avatar brady-aiello commented on September 12, 2024 1

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:

  1. Change config.h to have: #define CFG_us915 1
  2. Change line 764 of lmic.c to LMIC.channelMapp[channel/16] &= ~(1<<(channel&0F));
  3. Added in all session keys, eui's and dev address.

from lmic_pi.

simoncozens avatar simoncozens commented on September 12, 2024

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.

from lmic_pi.

Hacklog24 avatar Hacklog24 commented on September 12, 2024

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

from lmic_pi.

simortus avatar simortus commented on September 12, 2024

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},
};

from lmic_pi.

koldogut avatar koldogut commented on September 12, 2024

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.

from lmic_pi.

lazarusCantini avatar lazarusCantini commented on September 12, 2024

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

from lmic_pi.

asanz060 avatar asanz060 commented on September 12, 2024

Hi @lazarusCantini did you solve this issue? I am having the same problem. Thank you!

from lmic_pi.

lazarusCantini avatar lazarusCantini commented on September 12, 2024

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!

from lmic_pi.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. šŸ“ŠšŸ“ˆšŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.