mcci-catena / arduino-lmic

LoraWAN-MAC-in-C library, adapted to run under the Arduino environment
https://forum.mcci.io/c/device-software/arduino-lmic/
MIT License
638 stars 208 forks source link

EV_JOIN_TXCOMPLETE: no JoinAccept, but getting the Join Accept in the Gateway live data #798

Closed miguemorales closed 2 years ago

miguemorales commented 2 years ago

Hi to everyone,

I am using a ESP-32-Wroom-32E mounted on a firebeetle IoT, Using the las version of LMIC and Arduino IDE 1.8.51, A RFM96 (write on the chip) (HopeRF) Using TTN eu868 with an application already used with other devices and working

I have conexion with the radio module and i can send the Join Accept getting good RSSI and SNR ( I am very close to the gateway): imagen

And on the arduino serial i see:

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 mode:DIO, clock div:1 load:0x3fff0018,len:4 load:0x3fff001c,len:1044 load:0x40078000,len:10124 load:0x40080400,len:5856 entry 0x400806a8 Starting Packet queued 1915: EV_JOINING 301433: EV_TXSTART 694611: EV_JOIN_TXCOMPLETE: no JoinAccept 4505890: EV_TXSTART 4899064: EV_JOIN_TXCOMPLETE: no JoinAccept 8952770: EV_TXSTART 9345944: EV_JOIN_TXCOMPLETE: no JoinAccept 13103293: EV_TXSTART 13499682: EV_JOIN_TXCOMPLETE: no JoinAccept

I have try doing more frecuently joiningaccepts, and also defining the clock error to the maximum, but nothing works, I have no clue what may be happening, if there is someone with something to add it will really be very aprecieted.

Thanks,

Miguel

terrillmoore commented 2 years ago

Please check the reported experience in #794.

cstratton commented 2 years ago

RSSI -25 is absurdly "loud" and certainly overloading the receiver, which can cause problems all by itself.

So in addition to other measures, move the node and gateway apart until you're seeing something below say - 45 or even lower

miguemorales commented 2 years ago

@cstratton at the begining i was trying from a very far place RSSI -100 and i get nothing, that is why i have tried much close and alse getting nothing...., but i can try again.

miguemorales commented 2 years ago

@terrillmoore I have check the #794 i have even write a message there before here. But it didn't work, he just solved his problem with a new gateway. But i have mine really close, even too much it looks.

miguemorales commented 2 years ago

@cstratton I get the same with -45, this was not the problem: imagen

miguemorales commented 2 years ago

I have not mention that i have a multitech with multichanel bands, so I still very far i think. Also i have been working with some devices of hetec and they work properly with similar configuration and in the same application.

miguemorales commented 2 years ago

I also remember to have read something in the documentation of this library about "switch from rx to tx" I am not doing nothing of this, may it be an option?

miguemorales commented 2 years ago

I have also read something about lsb/msb, because in ttn i am just receiving the join request on the gateway with proper appeui deveui but on my application in not getting nothing (device still unkonwn) so likely ttn in not even sending a downlink, that gives someone any clue? I am a little hopeless now..... I will really apreciate any help @terrillmoore @cstratton thanks anyway for the help

miguemorales commented 2 years ago

I have found the problem....totally my foult, the order between dev and join eui was different the heltec code and in the lmic, so i write deveui where appeui and viceversa. So sorry for your waste of time

terrillmoore commented 2 years ago

Glad you were able to find the problem!