Help: NRF52840 Sense - RFM95W - LMIC Library / TTNV3

Please tell us which board you are using.
For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
ghervespark
 
Posts: 4
Joined: Fri Sep 10, 2021 12:19 pm

Help: NRF52840 Sense - RFM95W - LMIC Library / TTNV3

Post by ghervespark »

Hello,
I'm trying to build a sensor node with lora to work with TTN for an outdoor application. The Adafruit NRF52840 Sense (4516) is fantastic for its integration of all the sensors; makes for a very clean and compact device.

I'm trying to send the data it captures via lora with the RFM95W dev board (3072) , and using the LMIC library. The two boards are connected via SPI. I've done quite a few similar projects around the M0 Lora featherboard, but this is a bit different as its not one that is predefined, and as far as I can tell, no one has done this combo online. In my setup of my main code, I have defined the lmic_pinmap corresponding to my wiring. The code is arduino.

The issue I am running into is that the node is not receiving the gateway acceptance message. I see on the gateway side on TTN V3 the gateway sending the acceptance downlink (so my keys are correct), but all I get on node side is EV_JOIN_TXCOMPLETE: no JoinAccept, repeatedly.

I'm not sure if there is something I need to do in the libraries of LMIC to be compatible with the nrf52, or something else.

Any help would be greatly appreciated; thank you.

User avatar
jerryn
 
Posts: 1868
Joined: Sat Sep 14, 2013 9:05 am

Re: Help: NRF52840 Sense - RFM95W - LMIC Library / TTNV3

Post by jerryn »

FWIW -- I have reproduced this problem. My code runs with a Feather M4 express or Feather M0 express, but not with the nrf52840 sense.

mine keeps reporting an "unknown event 20"

User avatar
jerryn
 
Posts: 1868
Joined: Sat Sep 14, 2013 9:05 am

Re: Help: NRF52840 Sense - RFM95W - LMIC Library / TTNV3

Post by jerryn »

Hmm -- I switched to a Feather nRF52840 express and my code runs normaly,
This appears to be an issue with the "sense" build, not the nRF52840 in general.

User avatar
ghervespark
 
Posts: 4
Joined: Fri Sep 10, 2021 12:19 pm

Re: Help: NRF52840 Sense - RFM95W - LMIC Library / TTNV3

Post by ghervespark »

Thanks for giving it a go @jerryn. Interesting to hear you are getting similar results.

Locked
Please be positive and constructive with your questions and comments.

Return to “Feather - Adafruit's lightweight platform”