Hello, I confirm that my knowledge is limited, but I researched a lot and I am at least a month locked with this problem !! I really need help, can anyone help me?
I’m following the “MobileFish” tutorial (link below), but since I’m in Brazil I use the American band #define CFG_us915 1 and RFM95-915Mhz
I had a mono-channel gateway, but now I have a gateway Dragino LG02. I have already registered the Gateway on the TTN website to help the community expand.
"https://www.youtube.com/watch?v=d8q-hZLIf6I&list=PLmL13yqb6OxdeOi97EvI8QeO8o-PqeQ0g&index=22
Library -> MCCI_LoRaWAN_LMIC_library by IBM, Matthis Kooijman, Terry Moore …
I send packets to the TTN successfully if I make an ABP connection !! But I am not successful in sending packets if the connection is OTAA and nor send the downlink of the TTN (ABP or OTAA).
I’ve also tried several tutorials, but I’ve always had the same problem! Works ABP; Does not work OTAA and downlinks !!
Below is the OTAA connection log! Stay in this loop forever
______________ OTAA connection log _____________
Starting
Packet queued
189: EV_JOINING
433: EV_TXSTART
516548: EV_TXSTART
…
9826011: EV_TXSTART
10206155: EV_JOIN_FAILED
10529685: EV_TXSTART
…
11056731: EV_TXSTART
20380341: EV_JOIN_FAILED
12062704: EV_TXSTART
Below are the donwlink attempts with ABP!! Remembering that with the ABP connection the packets arrive in the TTN; I just can not do downlinks.
I blocked the TX / RX channels, so every msg that is sent arrives in the TTN
My gateway is configured :
Canal TX -> Freq 923300000 / SF12 / Cod Rate 4-5 / Bandwidth 500Khz
Canal RX-> Freq 917000000 / SF17 / Cod Rate 4-5 / Bandwidth 125Khz
You can see that the data arrives normal in TTN with ABP
You can also see that a TTN has sent the downlink!
At my gateway a message appears on the TX channel, but my node does not execute anything!
I’ve tried other libraries like arduino-lmic-master, but always the same problem !! OTAA does not work; ABP works, but not downlinks!! I believe that if the connection problem with OTAA is solved, it will solve the Downlink problem as well, and vice versa, so I went through the 2 problems!!
Can someone help me? I swear I do not know what else to do!!
One more thing, I put the code and the library I’m using in github:
githubhttps://github.com/marcelzanatta/Lorawan