LowPowerLab / RFM69

RFM69 library for RFM69W, RFM69HW, RFM69CW, RFM69HCW (semtech SX1231, SX1231H)
GNU General Public License v3.0
778 stars 381 forks source link

send() locks up for 433MHz RFM69HCW #10

Closed mgrusin closed 8 years ago

mgrusin commented 10 years ago

Hi, I'm Mike Grusin, one of the engineers at SparkFun Electronics.

We're about to release some breakout boards for the RFM69 module in the HCW (high power + compact) variant. We very much like your RFM69 library and are planning on using it as the baseline for our tutorials, etc.

I've run into an interesting problem that I'm still tracking down but wanted to get your insight on.

Everything has worked great with the 915MHz module. But when we run the same code on the 433MHz module, only changing the FREQUENCY definition to RF69_433MHZ, we get consistent lockups when we try to send a packet. The code is locking up in RF69.cpp line 162, which is:

while (!canSend()) receiveDone();

Interestingly, if you run the same 433MHz code on a 915MHz module, it does not lock up (though it can only barely transmit).

Also interestingly, if you run the 915MHz code on a 433MHz module, it does not lock up (and can actually get packets across a few feet). The flexibility of this chip is pretty remarkable.

I'll keep poking at it, but as you are vastly more familiar with the internals of the chip I hope you might have some ideas. I would be more than happy to send you a few of our boards if it would help.

Thanks very much for any assistance you might have, and also for your work on this library. We're big fans of the stuff you do at LowPowerLab. If you're ever interested in licensing your Moteino design to us for manufacture, let me know. (I can't promise anything, but it's a great board and I would push hard to make it so.)

Best, Mike Grusin mike.grusin@sparkfun.com

mgrusin commented 10 years ago

Further debugging. RFM69.cpp line 151:

if (_mode == RF69_MODE_RX && PAYLOADLEN == 0 && readRSSI() < CSMA_LIMIT) //if signal stronger than -100dBm is detected assume channel activity

From printing out readRSSI() here, it is being reported as consistently lower than CSMA_LIMIT on my (433MHz) modules and in my office. CSMA limit is -90; RSSI is -70 on one module and around -30 on the other(!).

Although if I try running readRSSI() in my code, it reports ~95 on both modules. (I am unsure whether to use readRSSI(true) or (false); true locks up in that command, false returns a value that never changes. Is the fact that there's no parameter in your use of readRSSI() in line 151 an issue?

I will try running the modules elsewhere in case there's excessive 433MHz pollution in my office (to the best of my knowledge there shouldn't be).

Again, thanks for any assistance!

LowPowerLab commented 10 years ago

I replied to your sparkfun address, hopefully you got my response? -Felix

On Thu, May 29, 2014 at 8:25 PM, Mike Grusin notifications@github.com wrote:

Further debugging. RFM69.cpp line 151:

if (_mode == RF69_MODE_RX && PAYLOADLEN == 0 && readRSSI() < CSMA_LIMIT) //if signal stronger than -100dBm is detected assume channel activity

From printing out readRSSI() here, it is being reported as consistently lower than CSMA_LIMIT on my modules and in my office. CSMA limit is -90; RSSI is -70 on one module and around -30 on the other(!).

Although if I try running readRSSI() in my code, it reports ~95 on both modules. (I am unsure whether to use readRSSI(true) or (false); true locks up in that command, false returns a value that never changes. Is the fact that there's no parameter in your use of readRSSI() in line 151 an issue?

I will try running the modules elsewhere in case there's excessive 433MHz pollution in my office (to the best of my knowledge there shouldn't be).

Again, thanks for any assistance!

— Reply to this email directly or view it on GitHub https://github.com/LowPowerLab/RFM69/issues/10#issuecomment-44602068.

joniam commented 10 years ago

Hi. We are hitting the same symptoms and we have the 433Mhz RFM69HW. Did this ever get resolved?

LowPowerLab commented 10 years ago

I was not able to reproduce the symptoms.

LowPowerLab commented 8 years ago

Closing since there wasn't further traction on this issue.