diff --git a/README.md b/README.md index d8ebcc7..6e34d48 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ To save battery power, the controller, radio module and temperature sensor are put to power down/sleep mode in between transmissions. The idle current is ~57 uA, which is still quite a lot (< 10 uA should be possible), but already -better than 8 mA :-) +better than 8 mA 🙂 ![IMG_20250212_190518](https://github.com/user-attachments/assets/dd87b7de-c97d-4ecb-ab24-f5a34b849914) @@ -29,10 +29,10 @@ ## Range -Setting `RegPaLevel` to `0x5f`, which gives +13 dBm with `PA1`, indoor range is very good -and in an actual "field" test, packet reception was still reliable with an RSSI of about -90 dBm -at about 2.2 km distance - with simple wire antennas. What would be the range with +20 dBm and -decent antennas? +Setting `RegPaLevel` to `0x5f`, which gives +13 dBm with `PA1`, indoor range is +very good and in an actual "field" test, packet reception was still reliable +with an RSSI of about -90 dBm at about 2.2 km distance - with simple wire +antennas. What would be the range with +20 dBm and decent antennas? ![IMG_20250306_180139c](https://github.com/user-attachments/assets/27c66e7a-ec16-4e98-9f94-7713fe54c7d0) @@ -40,13 +40,14 @@ ## Susceptibility to Temperature Changes -With the default Frequency Deviation of 5 kHz and Receiver Bandwidth of 10.4 kHz, packet transmission -is very unreliable and fails completely for me, when the temperature of the transmitter is below -10°C and above 40°C, while the receiver temperature is at 20°C. The receiver does not seem to be -prone to temperature changes. -Increasing Frequency Deviation to 10 kHz and Receiver Bandwidth to 20.8 kHz, temperature susceptibility -is eliminated; when testing with transmitter temperature from -20°C to 50°C, packet transmission is -perfectly reliable. +With the default frequency deviation of 5 kHz and receiver bandwidth of +10.4 kHz, packet transmission is very unreliable and fails completely for me; +when the temperature of the transmitter is below 10°C and above 40°C, while +the receiver temperature is at 20°C. The receiver does not seem to be prone to +temperature changes. +Increasing frequency deviation to 10 kHz and Receiver Bandwidth to 20.8 kHz, +temperature susceptibility is eliminated; when testing with transmitter +temperature from -20°C to 50°C, packet transmission is perfectly reliable. Frequency Deviation = 10 kHz (transmitter) `RegFdevMsb` = `0x00` @@ -75,7 +76,8 @@ So, 21.2 °C 🙂 -The first 15 `0b10101010` bytes are the preamble, then there are 4 sync word bytes. -After the 4 payload bytes, there are 2 CRC bytes as described in the datasheet of the RFM69HCW: +The first 15 `0b10101010` bytes are the preamble, then there are 4 sync word +bytes. After the 4 payload bytes, there are 2 CRC bytes as described in the +datasheet of the RFM69HCW: ![PackageFormat](https://github.com/user-attachments/assets/11687645-552c-46e5-a0bf-ef490b1bca48) diff --git a/avrrfm.c b/avrrfm.c index abb8326..7a0bba0 100644 --- a/avrrfm.c +++ b/avrrfm.c @@ -229,8 +229,8 @@ yo = yl; xl += LABEL_OFFSET; yl += LABEL_OFFSET; - if (xl > DISPLAY_WIDTH - width) xl = 0; - if (yl > DISPLAY_HEIGHT - dejaVu->height) yl = unifont->height; + if (xl > DISPLAY_WIDTH - width - LABEL_OFFSET) xl = 0; + if (yl > DISPLAY_HEIGHT - dejaVu->height- LABEL_OFFSET) yl = unifont->height; } /**