I try to connect my node to network. I have my own script, but I also tried with example from library (ttn-otaa) and I get the same result.
Furthermore, I got connection with gateway, ttn properly proceed join procedure, but it looks like my node never get downlink with authorization and then can’t send data. In logs, it look like this.
Node in application in TTN:
I thought that problem can be in too close communication, but I take my node to walk and outside the building in range of 200m I still get results like this.
I also tried to add some configs according to some posts on forum:
LMIC_setLinkCheckMode(0); // Disable link check validation
LMIC_setAdrMode(false); // Disable ADR
LMIC.dn2Dr = DR_SF9; // TTN uses SF9 for its RX2 window.
LMIC_setDrTxpow(DR_SF7, 14); // Set data rate and transmit power for uplink (note: txpow seems to be ignored by the library)
Don’t. The defaults should be right and by setting things differently you have worse settings and one is actually wrong when using OTAA (the dn2Dr setting, during the join TTN will set this to the correct value)
Sorry for the lack of contact, but I had some problems.
Okay, I start again with a totally clean example. I add only my addresses and my pin map. I still get the same results. When I tested it, had a router in another room (5-10m) and wall between us. RSSI in gateway logs is between -65 and -85.
Maybe you should buy a known good device with a documented pin map to test with - that way you can eliminate any issues with the radio on your unknown ESP32 device.
I have WiFi LoRa 32(V3), but now I know it’s not the best choice (too new module with lack of support). I will try to buy something with SX1276.
But if I have uplink communication, it’s possible to have something meshed up with physical connection on board? Are there some pins related only to retrieve downlinks?
For that device, RadioLib can be a good choice, as that supports SX126x series radios as well as SX127x. The wiki for RadioLib is a WIP, but the examples and their notes should be able to get you started on most of the basics.
I again try to figure it out and now I sure my gateway send downlink, but still my node didn’t get i or can’t handle it. On my SDR graph I can see on signal from node and second one stronger from gateway. The second signal appears in the same moment when in serial monitor I get EV_JOIN_TXCOMPLETE: no JoinAccept.
So for me it’s looks like my node working, but for some reason I have problem only with receive downlink. What can be wrong? Wiring or maybe some problem with my antenna?
I tried to schedule downlink but my node didn’t received it (or I cant schedule it properly).
I just run my Heltec (Wifi LoRa 32 V2) with example from Lora-Node (https://github.com/lnlp/LMIC-node). I have communication in two directions with my gateway and TTN:
So with this information, I can assume it’s a problem with my board. Probably with some wiring or antenna (I guess), by maybe you have idea what else can be wrong?
The antenna and wiring are not able to determine between MAC commands and user initiated downlinks. The fact is you can receive downlinks as you are getting the Join Accept plus other MAC commands.
Downlinks and otaa connection work on my heltec and here I get those MAC commands.
Now I want to run the same program on my custom board and there I can send uplink but never receive downlink with join-accept data (or any other). And here is a problem, but I don’t know with which part. As far as I know, my wiring is good (I checked it twice), but I can’t see anything else what can be wrong.