matthijskooijman / arduino-lmic

:warning: This library is deprecated, see the README for alternatives.
707 stars 650 forks source link

Error: arduino-lmic-master/src/lmic/radio.c:660 #223

Open mdrenth76 opened 5 years ago

mdrenth76 commented 5 years ago

Hi,

Today I managed to get an arduino Uno working with a rfm95 module to the ttn network. Two packets where succesfully receivced.

After that everything stopped working and I got these messages:

21:52:27.853 -> Starting 21:52:27.853 -> Packet queued 21:52:29.890 -> 126906: EV_TXCOMPLETE (includes waiting for RX windows) 21:53:29.901 -> Packet queued 21:53:29.937 -> FAILURE 21:53:29.937 -> /Users/michel/Documents/Arduino/libraries/arduino-lmic-master/src/lmic/radio.c:660

Somebody any ideas what could go wrong?

Best regards,

Michel.

matthijskooijman commented 5 years ago

I think you're triggering this assertion: https://github.com/matthijskooijman/arduino-lmic/blob/master/src/lmic/radio.c#L660

That means that when the library wants to start listening, it finds that the chip is not sleeping as it should be. I recall this assertion being triggered before, but I can't quite remember the cause. Did you look for existing similar issues already?

mdrenth76 commented 5 years ago

Hi Matthijs,

Thanks for your reply. I rewired everything from start and now it works like a charm. I'm seeing my data in the TTN console. In the process I got some errors on multiple lines of the same radio.c. Seems like all those errors are due to connection issues.

Thanks for your support!

mdrenth76 commented 5 years ago

btw... great job Matthijs, creating this lib.

kontaktbl commented 5 years ago

Hi Matthijs,

I have same (or similar) problem - failure lmic\radio.c:660

I have one rfm95 module and it works fine. But I ordered two new modules (from same aliexpress seller) and both modules reported Failure in line 660 during (or after) JOINING: module sent 'JoinRequest' and asserted on 'JoinAccept' (I can see it on network server). log out: 5 Sending.. Packet queued 35 Waiting.. EV_JOINING ...FAILURE C:\Users\User\Documents\Arduino\libraries\arduino-lmic-master\src\lmic\radio.c:660

Just to be clear, I have 3 nano devices and 3 rfm95 modules: only one rfm95 works with any of 3 nanos and 2 rfm95's don't work with any nano. I was try to reconnect wires but not to solder again.

So, what do you think? thanx, Sasa

kontaktbl commented 4 years ago

Hi Matthijs,

I have same (or similar) problem - failure lmic\radio.c:660

I have one rfm95 module and it works fine. But I ordered two new modules (from same aliexpress seller) and both modules reported Failure in line 660 during (or after) JOINING: module sent 'JoinRequest' and asserted on 'JoinAccept' (I can see it on network server). log out: 5 Sending.. Packet queued 35 Waiting.. EV_JOINING ...FAILURE C:\Users\User\Documents\Arduino\libraries\arduino-lmic-master\src\lmic\radio.c:660

Just to be clear, I have 3 nano devices and 3 rfm95 modules: only one rfm95 works with any of 3 nanos and 2 rfm95's don't work with any nano. I was try to reconnect wires but not to solder again.

So, what do you think? thanx, Sasa

wires from rfm95 to Nano were too long for 8MHz (divided by 4)!!! Thnx S.

kahanchudasama commented 4 years ago

Hi Matthijs,

Thanks for your reply. I rewired everything from start and now it works like a charm. I'm seeing my data in the TTN console. In the process I got some errors on multiple lines of the same radio.c. Seems like all those errors are due to connection issues.

Thanks for your support!

HI, currently i am facing same issue can you guide me how can you solve this?

xNestinhox commented 3 years ago

C:\Users\nesto\Documents\Arduino\libraries\arduino-lmic-master\src\lmic\radio.c:535

Buenas colegas tengo este error, estoy usando un sensor hx711 + lora shield con TTN, el codigo en la compilacion no muesra error pero al ver en monitor serie presenta ese mensaje

a que se refiere este error