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.
Help: NRF52840 Sense - RFM95W - LMIC Library / TTNV3
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- ghervespark
- Posts: 4
- Joined: Fri Sep 10, 2021 12:19 pm
- jerryn
- Posts: 1868
- Joined: Sat Sep 14, 2013 9:05 am
Re: Help: NRF52840 Sense - RFM95W - LMIC Library / TTNV3
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"
mine keeps reporting an "unknown event 20"
- jerryn
- Posts: 1868
- Joined: Sat Sep 14, 2013 9:05 am
Re: Help: NRF52840 Sense - RFM95W - LMIC Library / TTNV3
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.
This appears to be an issue with the "sense" build, not the nRF52840 in general.
- ghervespark
- Posts: 4
- Joined: Fri Sep 10, 2021 12:19 pm
Re: Help: NRF52840 Sense - RFM95W - LMIC Library / TTNV3
Thanks for giving it a go @jerryn. Interesting to hear you are getting similar results.
Please be positive and constructive with your questions and comments.