LowPowerLab Forum

Hardware support => Moteino => Topic started by: mrpaulpaul on September 20, 2018, 11:13:37 PM

Title: Slow sendWithRetry with Arduino + RFM69HCW
Post by: mrpaulpaul on September 20, 2018, 11:13:37 PM
Similar to this observation here:
https://lowpowerlab.com/forum/general-topics/rfm69-with-bean-very-slow-1-5-seconds-to-do-simple-send()-probably-config/msg19597/?topicseen#msg19597

I first tested out two moteinos (433Mhz, RFM69HCW) and tested out the Gateway/Node and it works fine.

I then created the Arduino+RFM69HCW in the configuration (with a logic level shifter):
https://learn.sparkfun.com/tutorials/rfm69hcw-hookup-guide?status=7

When I upload and run the Node code on the Arduino, it seems to "work" but runs very slowly. The Arduino code returns the "nothing..." but around every 3 seconds, while the moteinos were giving " ok!" every ~200ms. It seems to be hanging up in the sendWithRetry for some reason. Am I missing something?

Thanks





Title: Re: Slow sendWithRetry with Arduino + RFM69HCW
Post by: Felix on September 21, 2018, 09:12:01 AM
The antenna is pretty important, can you post a photo of your setup and antenna?
Title: Re: Slow sendWithRetry with Arduino + RFM69HCW
Post by: mrpaulpaul on September 25, 2018, 08:48:13 PM
The arduino are not very far apart on my desk, and the antennas are about 2.5 inch? Would I have to look in the library to change something for the Arduino hardware? I might try soldering up another RFM69HCW, just to see if it was that.
Title: Re: Slow sendWithRetry with Arduino + RFM69HCW
Post by: Felix on September 26, 2018, 09:41:13 AM
If that's a monopole antenna, try soldering an equally long wire perpendicular to it, away from the board.
Otherwise it's too hard to tell what's going on there, lots of wiring.
Title: Re: Slow sendWithRetry with Arduino + RFM69HCW
Post by: perky on September 26, 2018, 12:37:05 PM
Is it getting stuck in canSend() then timing out after a second? Is it the readRSSI() routine not dynamically reading RSSI properly?

Mark.