matthijskooijman / arduino-lmic

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

My node transmit only once with no aknowlege #227

Open pierrot10 opened 5 years ago

pierrot10 commented 5 years ago

Hello,

I have two same boards working with the same program. I am using Arduino-LMIC library with a RFM95 radio module and my boards have a ATSAMD21

With my first board, I can successfully send message and this part of code return me the “receive” message.

However, with the second board, the message are sent only once and I never receive the message “receive …”. It look like the EV_TXCOMPLETE case is never called. By the way, the
default case do not print the message "Unknown event"

As my first board works and it has always worked, I believe I may have a hardware problem on my second board.

Do you have an idea how I can debug that issue? How can I debug the onEvent() function? Is a antenna problem? a SPI problem? a RFM95 board problem? How can I debug and solve it?

Many thank for your help!!

matthijskooijman commented 5 years ago

As my first board works and it has always worked, I believe I may have a hardware problem on my second board.

That seems likely. Are both boards identical hardware setups?

My first guess would be that one of the DIO pins is not connected properly, which I think can cause LMIC to miss some events (and I'm not so sure that LMIC has a timeout for this, so it might end up waiting indefinitely). Since sending works, I would assume that the SPI connection is fine, as well as the antenna setup. If the RF end is bad and prevents a downlink from being received, this should not prevent the TX_COMPLETE, at least in ABP mode (in OTAA mode this could prevent activation from finishing and thus prevent the data packet from being sent, but that is not the case here AFAICS).