SX1276 im FSK-Modus: Was AFC, AGC, RSSI und FEI tun und warum meine Verbindungen an kalten Morgen ausfallen
Von English mit KI übersetzt ·
Punkt-zu-Punkt-FSK-Verbindungen für Bodenfeuchtesonden in Obstplantagen, nicht LoRaWAN, sondern nur SX1276-Module (RFM95-Boards) im FSK-Modus bei 868.3 MHz, 4.8 kbps, ±5 kHz Hub, RxBw auf 10.4 kHz eingestellt. Der Empfänger sitzt an einem Mast und leitet an einen Pi weiter, der jede Sonde als Child an Hermetry meldet.Den ganzen Tag funktioniert es. An kalten Morgen (unter etwa 3 °C) fallen einige Sonden komplett aus, bis es wärmer wird. Ich habe im Datenblatt über AFC, AGC, RSSI und FEI gelesen und folge nur halb. Was macht jedes davon im RX, und welches sollte ich aktivieren? Im Moment ist RegRxConfig 0x0E, das ich aus einem Beispiel kopiert habe.
Point-to-point FSK links for soil moisture probes in orchards, not LoRaWAN, just SX1276 modules (RFM95 boards) in FSK mode at 868.3 MHz, 4.8 kbps, ±5 kHz deviation, RxBw set to 10.4 kHz. The receiver sits on a mast and forwards to a Pi that reports each probe to Hermetry as a child.
Works all day. On cold mornings (below about 3 °C) a few probes drop out completely until it warms up. I read about AFC, AGC, RSSI and FEI in the datasheet and only half follow it. What do they each do in RX, and which one should I be turning on? Right now RegRxConfig is 0x0E, which I copied from an example.
Von English mit KI übersetzt ·
Ich verfolge das mit. Ich habe den FSK-Modus bisher noch nie angefasst.
Following. I’ve never touched FSK mode at all.
Von English mit KI übersetzt ·
Ist das derselbe Funkchip wie bei LoRa? Ich dachte, der RFM95 unterstützt nur LoRa.
Is this the same radio as LoRa? I thought the RFM95 was LoRa only.
Von English mit KI übersetzt ·
Derselbe Chip kann beides, der Modus ist eine Registereinstellung. Warum sollte die Kälte aber eine Rolle spielen, die Entfernung ändert sich ja nicht?
Same chip does both, the mode is a register setting. Why would cold matter though, the distance doesn’t change?
Von English mit KI übersetzt ·
Aoifes Frage ist die richtige. Kälte verschiebt die Quarze.Die vier im RX:RSSI gibt an, wie stark das empfangene Signal ist, gelesen aus RegRssiValue (0x11), Wert / 2 als negative dBm. AGC wählt daraus die LNA-Verstärkung, damit starke Signale den Empfänger nicht übersteuern; dein 0x0E hat AgcAutoOn (Bit 3) bereits gesetzt, lass es so. FEI (Frequenzfehler-Indikator, RegFeiMsb/Lsb 0x1D/0x1E) misst, wie weit der eintreffende Träger von der Frequenz abweicht, die der Empfänger erwartet. AFC nutzt diese Messung, um den Empfänger zu Beginn eines Pakets auf das Signal nachzustellen, falls AfcAutoOn (Bit 4) gesetzt ist. Bei dir ist es aus.Ein einfacher Quarz ist vielleicht ±10 bis 20 ppm gut und driftet mit der Temperatur. Bei 868 MHz sind 20 ppm etwa 17 kHz. Sender und Empfänger driften an einem kalten Morgen unterschiedlich, und sobald der Versatz plus deine Abweichung außerhalb einer 10,4 kHz Empfangsbandbreite liegt, ist das Paket verloren. Das sind deine Ausfälle.
RegRxConfig (0x0D) = 0x1E // AfcAutoOn + AgcAutoOn + preamble detect trigger
RegAfcBw (0x13) = wide enough to catch the offset before AFC (e.g. 41.7 kHz)
RegRxBw (0x12) = 20.8 kHz after AFC
// or simply widen RxBw if you don't want AFC
Sende dann FEI und RSSI jeder Sonde als Werte zusammen mit dem Feuchtigkeitswert. In Hermetry zeigt dir ein Diagramm von FEI gegen Lufttemperatur, welche Sonden driften; unsere zeigten bei zwei Geräten 11 kHz Schwankungen, bevor wir etwas geändert haben.
Aoife’s question is the right one. Cold moves the crystals.
The four in RX:
RSSI is how strong the received signal is, read from RegRssiValue (0x11), value / 2 as negative dBm. AGC picks the LNA gain from that so strong signals don’t saturate the receiver; your 0x0E already has AgcAutoOn (bit 3) set, leave it. FEI (frequency error indicator, RegFeiMsb/Lsb 0x1D/0x1E) measures how far the incoming carrier is from where the receiver expects it. AFC uses that measurement to retune the receiver onto the signal, at the start of a packet if AfcAutoOn (bit 4) is set. Yours is off.
A plain crystal is good for maybe ±10 to 20 ppm, and drifts with temperature. At 868 MHz, 20 ppm is about 17 kHz. Probe and receiver drift differently on a cold morning, and once the offset plus your deviation falls outside a 10.4 kHz receive bandwidth, the packet is gone. That’s your dropouts.
RegRxConfig (0x0D) = 0x1E // AfcAutoOn + AgcAutoOn + preamble detect trigger
RegAfcBw (0x13) = wide enough to catch the offset before AFC (e.g. 41.7 kHz)
RegRxBw (0x12) = 20.8 kHz after AFC
// or simply widen RxBw if you don't want AFC
Then send the FEI and RSSI of each probe as values next to the moisture reading. In Hermetry a chart of FEI against air temperature shows you which probes drift; ours showed 11 kHz swings on two units before we changed anything.
Von English mit KI übersetzt ·
Dafür gibt es TCXO-Module, falls ein Sensor weiterhin Probleme macht.
TCXO modules exist for exactly this if a probe still misbehaves.
Von English mit KI übersetzt ·
Und sie kosten pro Knoten ein paar Dollar mehr, lohnen sich nur für die schlimmsten Fälle.
And they cost a few dollars more per node, worth it only for the worst ones.
Von English mit KI übersetzt ·
AfcAutoOn ist an, AfcBw bei 41.7 kHz. Diese Woche gab es drei Morgen mit -1 °C und keine Verbindungsabbrüche. Das FEI-Diagramm ist eine nette Zugabe, eine Sonde schwankt um 13 kHz, die bekommt eine TCXO-Platine.
AfcAutoOn on, AfcBw at 41.7 kHz. This week had three mornings at -1 °C and no dropouts. The FEI chart is a nice touch, one probe swings 13 kHz, it gets a TCXO board.
- Du musst angemeldet sein, um auf dieses Thema antworten zu können.
Mitdiskutieren
Melde dich an, um Fragen zu stellen und zu beantworten, hilfreiche Beiträge mit „Gefällt mir“ zu markieren und die Antwort zu kennzeichnen, die dein Problem gelöst hat. Jeder Beitrag bringt Punkte und Stufen.

