jacksonmaker
@mariajackson · Mitglied seit Mai 2026
Maker · hobby projects · Hamilton
- Themen
- 1
- Antworten
- 18
- Punkte
- 0
Erstellte Forenantworten
Von English mit KI übersetzt ·
Jetzt zwei Standorte, beide OK. Danke!
Two sites now, both OK. Thanks!
Von English mit KI übersetzt ·
Habe es in meinem eigenen Workspace ausprobiert und die Tabelle ist leer. Ich habe Geräte, aber nie Sites angelegt. Vermutlich liegt genau darin das ganze Problem?
Tried it on my own workspace and the table is empty. I have devices but I never made any sites. I’m guessing that’s the whole problem?
Which autopilot firmware and which port is free on it? Most have a second telemetry port meant for a companion computer.
Von English mit KI übersetzt ·
Dann scheidet das Gäste-WLAN aus. Ich habe das für die Bäckerei meiner Schwester und zwei Cafés gemacht, alles Ubiquiti, also ungefähr dein Setup:Lege eine neue SSID „store-iot“ mit WPA2 PSK an, weise ihr ein eigenes VLAN zu (sagen wir 30), aktiviere Client-Isolation, damit die Sensoren nicht untereinander kommunizieren können, und erlaube in den Firewall-Regeln für dieses VLAN nur ausgehenden Verkehr: DNS, NTP und TCP 8883 zum Hermetry-Broker (443 auch, falls etwas HTTPS nutzt). Blockiere VLAN 30 zu allen anderen internen Netzen. Das will der Prüfer sehen, und es ist pro Laden ein Nachmittag Arbeit.Einen Pi würde ich dafür nicht hinzufügen. Ein Pi lohnt sich, wenn deine Geräte selbst nicht ins Internet kommen (BLE, Modbus, Zigbee) und etwas als Gateway für sie melden muss. Deine ESP32 machen TLS bereits selbst, ein Pi würde nur eine SD-Karte hinzufügen, die im Büro hinten kaputtgehen kann.Auf der Hermetry-Seite zwei günstige Extras: Setze im Kühlschrank-Profil bei Allowed networks die öffentliche IP jedes Ladens ein, damit ein gestohlener Token von überall anders nutzlos ist. Und prüfe, dass Plain MQTT deaktiviert ist. Nur TLS auf 8883 ist der Standard, aber dein IT-Kollege hat es womöglich beim Testen eingeschaltet. Checkliste unten unter Device transport security.
Then guest is out. I did this for my sister’s bakery and two cafes, all Ubiquiti, so roughly your setup:
Make a new SSID „store-iot“ with WPA2 PSK, tag it to its own VLAN (say 30), turn on client isolation so sensors can’t talk to each other, and in the firewall rules allow that VLAN only outbound: DNS, NTP, and TCP 8883 to the Hermetry broker (443 too if anything uses HTTPS). Block VLAN 30 to every other internal network. That’s what the auditor wants to see, and it’s one afternoon per store.
I wouldn’t add a Pi for this. A Pi is worth it when your devices can’t reach the internet themselves (BLE, Modbus, Zigbee) and something has to report for them as a gateway. Your ESP32s already do TLS on their own, a Pi just adds an SD card that can die in the back office.
On the Hermetry side two cheap extras: on the fridge profile set Allowed networks to each store’s public IP, so a stolen token is useless from anywhere else. And check Plain MQTT is off, TLS only on 8883 is the default but your IT guy may have turned it on while testing. Checklist at the bottom of Device transport security.
Following. I’ve never touched FSK mode at all.
Von English mit KI übersetzt ·
Zigbee funktioniert bei mir zu Hause im Mesh problemlos, jede netzbetriebene Steckdose wird zu einem Router. Seitdem hatte ich nie mehr eine tote Ecke.
Zigbee at home meshes fine for me, every mains-powered plug becomes a router. Never had a dead corner since.
I went down this hole for a garden sensor last year and the answer turned out to be energy per job, not current.
A battery device spends 99.9% of its life asleep. What empties the battery is (sleep current × sleep time) + (active current × awake time) + the radio. The core width hardly matters for sleep current: that’s set by the process the chip is made on, the RTC, the RAM retention and leakage. Modern 32-bit low power parts are made on newer, leakier-in-theory but better-managed processes with power domains you can switch off, and their sleep currents with RTC running are around 1 µA or less. An ATmega328P in power-down with the watchdog running is in the same ballpark at best, and with brown-out detection on, worse.
When awake, a 32-bit core finishes the job faster. Reading a 16-bit ADC result, doing a few multiplications for RMS current and building a packet is many more instructions on an 8-bit AVR than on a Cortex-M0+, at similar µA/MHz. Fewer cycles means less time awake, so less energy, even if the current while running is similar.
And the peripherals: the low power ARM parts can run the ADC, DMA and timers while the core sleeps, so the core wakes once with the result ready.
In my case the MCU choice turned out to be noise next to the radio: one LoRa transmit costs more than an hour of MCU sleep. Spend your effort on how often you send.
Von English mit KI übersetzt ·
Für die Vor-Ort-Erhebung: Trage einen Test-Sensor herum und beobachte das Frame-Log. RSSI und SNR pro Frame haben mir mehr verraten als jede Abdeckungskarte.
For the survey: carry one test sensor around and watch the frames log. RSSI and SNR per frame told me more than any coverage map.
HC-06 default is 9600. Is your sketch on 115200?
Way over my head but following, the tank-and-pump setup is the same as my rainwater barrel lol
Even with a null at the end, atoi on {„method“:… gives 0 because the first character is a brace. You need to parse the JSON.
Von English mit KI übersetzt ·
CE0 vs. CE1, natürlich. CS lag an Pin 24, und im Code stand 1. Ich habe es auf spi.open(0, 0) geändert, und Kanal 0 liefert jetzt 412 bei halb vollem Tank, Kanal 1 schwebt wie es sollte. Der Loopback-Test hat ebenfalls bestanden, den behalte ich also. Ich sende jetzt mA und skaliere im Flow, wie twilson vorgeschlagen hat.
CE0 vs CE1, of course. CS was on pin 24 and the code said 1. Changed it to spi.open(0, 0) and channel 0 now reads 412 with the tank half full, channel 1 floats like it should. Loopback test passed too, so I’ll keep that one. Sending mA now and scaling in the flow as twilson said.
Von English mit KI übersetzt ·
VREF und VDD liegen beide an 3,3 V, AGND und DGND liegen auf Masse. Zweimal überprüft.
VREF and VDD both on 3.3 V, AGND and DGND on ground. Checked twice.
Von English mit KI übersetzt ·
Lücken genau in der Länge des Ausfalls deuten eher darauf hin, dass während des Ausfalls gar nichts veröffentlicht wurde, und nicht darauf, dass der Broker sie verloren hat. Stellt Ihr Client während der Trennung überhaupt Nachrichten in eine Warteschlange?
Gaps of exactly the outage length sounds like nothing was published at all during the outage, not like the broker lost them. Is your client even queuing while disconnected?
Von English mit KI übersetzt ·
Ich bin ziemlich sicher, dass der Pi die HEC-Pins gar nicht beschaltet, aber ich habe das nie richtig überprüft.
Pretty sure the Pi doesn’t wire up the HEC pins at all, but I’ve never checked properly.

