From 0c45be8b480533427c4faf9b1693b7a503d59c02 Mon Sep 17 00:00:00 2001 From: LowPowerLab Date: Fri, 2 Aug 2013 10:27:14 -0400 Subject: [PATCH] Make CSMA_LIMIT=-90dBm (less sensitive when sending) Sometimes (especially 433Mhz versions) are too sensitive or there is more noise in the channel than usual. Touching the antenna or coiling it helps a lot but a more permanent fix is to adjust the sensitivity. This addresses the issue when send sensitivity is too high and the radio will spend a lot of time reading RSSI to make sure channel is clear, resulting in dropped ACKs. --- RFM69.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RFM69.h b/RFM69.h index 7821590..29799a3 100644 --- a/RFM69.h +++ b/RFM69.h @@ -14,7 +14,7 @@ #define SPI_CS SS // SS is the SPI slave select pin, for instance D10 on atmega328 #define RF69_IRQ_PIN 2 // INT0 on AVRs should be connected to DIO0 // ex on Atmega328 it's D2 -#define CSMA_LIMIT -100 // upper RX signal sensitivity threshold in dBm for carrier sense access +#define CSMA_LIMIT -90 // upper RX signal sensitivity threshold in dBm for carrier sense access #define RF69_MODE_SLEEP 0 // XTAL OFF #define RF69_MODE_STANDBY 1 // XTAL ON #define RF69_MODE_SYNTH 2 // PLL ON @@ -91,4 +91,4 @@ class RFM69 { void unselect(); }; -#endif \ No newline at end of file +#endif