I am using Arduino pro mini and RA-01H containing SX1276 to develop a node device. I am using Arduino IDE; the library is MCCI Arduino LoRAWAN library(latest version). I successfully connected the node with the TTN. But without a join request & acceptance, I could not receive any payload through TTN. I am badly in need of obtaining a payload.
my payload is simple “Hello World”
I am using OTAA from the example.
my TX interval is 238 s
My Pin configuration that follows the code is given below:
;
Side note: text based payloads are wasteful of spectrum and device battery life - please switch to using binary/byte based payload (no that doesnt mean encoding Hello World as ASCII bytes! )
Thanks for the suggestion @Jeff-UK . But my main problem is I am not receiving any payload though it is connected to TTN. I will be grateful if you help me out
Ok, I solved the issue of not receiving the payload. The important thing I was missing is the Spreading factor. I entered lorabase.h & changed the code where SF is defined seems the code is running & sending Payload to TTN. the code is below in lorabash.h.
Please see the comments. In the comment, I mentioned previously embedded SF. I changed all of them to SF12. @mrtopu34 helped me to find out SF issue. Now payload is being transmitted in regular intervals.
Now I have fallen into a new problem where after several transmissions, a new error found in the Serial monitor says " OP_TXRXPEND, not sending". Any solution you may help with?
Actually at 3m likely too close esp if antennas aligned hence channel bleed and or front end distortion…. Using SF12 means extended Tx hence opportunity for discriminators to do their job over time……
Move to 10m best with absorber in between…wall, window etc. and drop SF’s back, then try again….
Hacking it to work only on SF12 is not a good thing - you will be exceeding the Fair Use Policy (you already were with your 238 seconds from the start) and be trying to breach legal limits but I suspect LMIC is blocking you from that - it still has a job waiting to send once it is OK to do so.
The other consideration for hacking on the code is that it works for others, so it’s not the code that is the issue, it’s something else that needs fixing.
Ok. I will find the fixing except changing SF. Thanks for guiding me. The problem is EU868 & US915 have a lot of resources online, try & fail online but AS923 has very limited resources and problem-fixing.