In all cases (Robert lie code, adaptation of otaa-dht-feather code), the code gets compiled and gets uploaded successfully. Upon opening serial monitor, it says ‘Starting’, and then nothing happens after that.
I’ve double checked the pin mapping (w.r.t schematic) and its correct. As I said before, I used the corrected form of the circuit mentioned in post#1. In addition I’ve interfaced DHT11 sensor to the circuit. The pin mapping in my case is as follows:
I ran both the sketches again, and I see the same ‘Starting’ in case of robertlie’s sketch, and ‘Start?p’ in case of ttn-otaa-feather sketch. And nothing happens after that.
I’ve tried @LoRaTracker’s suggestion as well. The following is the output on serial monitor in that case:
Starting
FAILURE
C:\Users\Sam\Documents\Arduino\libraries\MCCI_LoRaWAN_LMIC_library\src\lmic\oslmic.c:53
I realized something, my node is connected to TTN as I could see the status ‘x’ minutes ago, which is altogether a new development. I could also see devadd, appeui and deveui (just once) in the Data tab. However I’m not sure which of the two codes partially worked (in the sense connected to TTN)
Adafruits tutorial code for their board includes checks to see if the board is responding correctly (i.e. that its connected correctly) did you try that code ?
By any chance, is it because I’m not using logic converter (I’m using G1 pin of rfm95 breakout)? But there were no issues when I was sending Hello World message to TTN.
Sorry if my questions/comments seem to be too dumb, I’m completely a novice in IOT and LoRaWAN.
That breakout board does not have logic level converters on the RFM95 DIO pins, and it should really as even if the respective voltage regulators are exatly 3.3V and 5V, its marginally out of specification, although in most cases its going to work.
If the 3.3V regulastor is slighty low and the 5V regulator is slightly high then a logic level converter may be required.
However if the hello world example worked, you migh conclude that its not a logic level conversion issue.
Its also worth mentioning that the Adafruit board does not have input protection on DIO2, this pin can be used on the RFM95 as an input, so feeding 5V into it may not do the RFM95 a lot of good.
If logic converter is the reason, I suppose using a board which works on the same logic as that of lora module is better. How about Adafruit feather M0 with RFM95 lora?
If somebody can share their experience of using feather M0 with RFM95 for sending sensor data to TTN, it would be great. I’m sure the example code in Lmic library (ttn-otaa-feather-dht22) can directly be used for the purpose.
The feather M0 probably is one of the more thoroughly supported platforms for LMiC, especially the MCCI LMiC repo (they have their own STM32 boards as well).
In contrast ESP32 is pretty much completely broken in terms of receive timing. I think ESP8266 may work, but never really tried that.
Typically this indicates an SPI communication failure, but it can also be a result of unexpected program flow (ie, getting here when the radio has not actually been put to sleep). You can try temporarily commenting out the ASSERT and seeing if you get any further.