emily30
@emily-campbell · Mitglied seit August 2025
Backend developer · energy
- Themen
- 6
- Antworten
- 36
- Punkte
- 0
Erstellte Forenantworten
Von English mit KI übersetzt ·
Keine Antwort auf die ganze Frage, aber Modbus-RTU-Geräte können selbst nicht mit einer Cloud sprechen; etwas vor Ort muss sie abfragen. Du brauchst also so oder so eine Box vor Ort. Eigentlich wählst du nur, welche Box es wird.
Not an answer to the whole thing, but Modbus RTU devices can’t talk to any cloud by themselves, something on site has to poll them. So you need a box on site either way. You’re really choosing which box.
Von English mit KI übersetzt ·
esptool read_flash bei 0x8000?
esptool read_flash at 0x8000?
Von English mit KI übersetzt ·
RaspAP sperrt nichts, es schreibt seine Konfiguration unter /etc/raspap und in die Dateien hostapd/dnsmasq. Bei aktivem Overlay ist jede Änderung, die du in seiner Web-UI vornimmst, nach einem Neustart weg. Das ist die Geschichte von „mag keine Overlays“.
RaspAP doesn’t lock anything, it writes its config under /etc/raspap and the hostapd/dnsmasq files. With the overlay on, any change you make in its web UI is gone after reboot. That’s the „it doesn’t like overlays“ story.
Von English mit KI übersetzt ·
Laut Dokumentation ist die mobile App für Benachrichtigungen und Freigaben gedacht. Zum Schalten funktioniert die Web-Konsole im Handy-Browser gut, so steuere ich auch meine Parzellenpumpe.Einrichtung:
- Im Geräteprofil des Pi, Reiter Commands, einen Befehl hinzufügen, z. B. Methode
heater.set, ein Ja/Nein-Parameteron, Tier Basic. Boards senden nur Befehle der Stufe Basic. - Ein Dashboard erstellen, ein Switch-Steuerelement hinzufügen, Aktion Run a command, den Pi und
heater.setauswählen und den aktuellen Zustand an einen Schlüssel binden, den der Pi meldet (z. B.heater_onals 0/1). - Auf dem Pi:
def on_connect(c, u, f, rc):
c.subscribe("v1/rpc/req/+", qos=1)
def on_message(c, u, msg):
req_id = msg.topic.rsplit("/", 1)[1]
body = json.loads(msg.payload)
if body.get("method") == "heater.set":
on = bool(body["params"]["on"])
GPIO.output(17, on)
c.publish("v1/telemetry", json.dumps({"heater_on": int(on)}), qos=1)
c.publish(f"v1/rpc/res/{req_id}", json.dumps({"ok": True}), qos=1)
Es werden keine Ports geöffnet. Lege das Board als Lesezeichen auf dem Startbildschirm deines Handys ab, dann verhält es sich praktisch wie eine App. Für Warnungen (Raum zu kalt usw.) bietet die App Push-Benachrichtigungen auf dem Handy, alternativ kannst du E-Mail oder eine verknüpfte Chat-App nutzen.
From what the docs say, the mobile app is for notifications and approvals. For the switch, the web console in the phone browser works fine, that’s how I run my allotment pump.
What to set up:
- On the Pi’s device profile, Commands tab, add a command, e.g. method
heater.set, one Yes/no parameteron, tier Basic. Boards only send Basic tier commands. - Make a dashboard, add a Switch control, action Run a command, pick the Pi and
heater.set, and bind the current state to a key the Pi reports (sayheater_onas 0/1). - On the Pi:
def on_connect(c, u, f, rc):
c.subscribe("v1/rpc/req/+", qos=1)
def on_message(c, u, msg):
req_id = msg.topic.rsplit("/", 1)[1]
body = json.loads(msg.payload)
if body.get("method") == "heater.set":
on = bool(body["params"]["on"])
GPIO.output(17, on)
c.publish("v1/telemetry", json.dumps({"heater_on": int(on)}), qos=1)
c.publish(f"v1/rpc/res/{req_id}", json.dumps({"ok": True}), qos=1)
No ports opened. Bookmark the board on your phone’s home screen and it’s basically an app. For alerts (room too cold etc.) the app gives you push on the phone, or use e-mail or a linked chat app.
Von English mit KI übersetzt ·
Guter Punkt, dass batteriebetriebene Geräte nicht routen. Ich hatte netzbetriebene Steckdosen im Sinn.
Fair point on battery devices not routing, I had mains plugs in mind.
Von English mit KI übersetzt ·
Als Start habe ich die Kameraereignisse für die beiden Hofkameras aktiviert, die sie unterstützen. Der Bewegungsalarm nach 20:00 Uhr funktioniert. Für saubere Zählungen ist ein Jetson bestellt. Die Anfrage lasse ich offen, eine Erkennung in der Cloud würde uns trotzdem pro Standort einen Kasten sparen.
Switched on camera events for the two yard cameras that support them as a start, motion alarm after 20:00 works. Jetson is on order for proper counts. Leaving the request open, cloud detection would still save us a box per site.
Von English mit KI übersetzt ·
Das Mesh von Zigbee ist in einem Büro mit vielen Wänden zuverlässiger, ich würde mich für Zigbee entscheiden.
Zigbee’s mesh is more reliable in an office with lots of walls, I’d go Zigbee.
Von English mit KI übersetzt ·
+1 dafür, die Fehlerzähler zu protokollieren, bei uns gibt es einen Alarm, wenn CRC-Fehler eine Stunde lang über 1 % liegen.
+1 to logging the error counters, we have an alarm on ours when crc errors go above 1 % for an hour.
Von English mit KI übersetzt ·
Wenn immer nur eine läuft, würde ich auf das Rückschlagventil verzichten, dann gibt es weniger zu warten.
If only one runs at a time I’d skip the check valve, less to maintain.
Von English mit KI übersetzt ·
Ich habe NM bei HF-Zeichnungen immer als Nanometer gelesen, ist das falsch?
I always read NM as nanometre on RF drawings, is that wrong?
Von English mit KI übersetzt ·
Gute Wahl. Halten Sie einen Ersatz-Membransatz im Regal bereit, Stroh verschleißt sie schneller, als man denkt.
Good choice. Keep a spare diaphragm kit on the shelf, straw wears them faster than you’d think.
Von English mit KI übersetzt ·
Wie hoch ist ungefähr der Feststoffanteil? Das entscheidet das meiste.
What’s the solids content, roughly? That decides most of it.
Von English mit KI übersetzt ·
Kevin, nein: Der Broker benötigt SNI, daher musst du per Hostname verbinden, und die Zertifikatsprüfung erfolgt ebenfalls gegen diesen Namen. Die IP ist eine Sackgasse.Der Hinweis ist, dass die statische Konfiguration des Technikers 8.8.8.8 enthielt. rc=-2 in PubSubClient bedeutet „connect failed“, was auf einem 8266 sehr oft eine fehlgeschlagene Namensauflösung ist. Ich habe das in Produktionsnetzen schon mehrfach gesehen: Der DHCP-Server verteilt den internen DNS-Server der Anlage, und dieser beantwortet nur interne Namen oder blockiert externe Abfragen. Mit der statischen Konfiguration nutzte das Board stattdessen 8.8.8.8, und alles funktionierte. Füge nach dem Verbinden Folgendes hinzu, dann siehst du es:
Serial.println(WiFi.dnsIP());
IPAddress ip;
Serial.println(WiFi.hostByName(MQTT_HOST, ip) ? ip.toString() : "lookup failed");
Bitte die IT dann um eines von zwei Dingen: Ihr DNS soll den Hostnamen des Broker-Ihrer-Organisation auflösen (er steht auf der Karte Connection details des Geräts), oder ausgehendes DNS aus diesem VLAN soll erlaubt werden. Und wenn du schon mit der IT sprichst: Ausgehendes TCP 8883 muss ebenfalls offen sein, dazu 443, falls du jemals HTTPS nutzt. Wilsons Vermutung lohnt sich trotzdem abzusichern: Warte vor dem ersten Verbindungsaufbau, bis WiFi.localIP() ungleich null ist.
Kevin, no: the broker needs SNI, so you have to connect by host name, and the certificate check is against that name too. IP is a dead end.
The clue is that the tech’s static config included 8.8.8.8. rc=-2 in PubSubClient is „connect failed“, which on an 8266 is very often a failed name lookup. I’ve seen this on plant networks a few times: the DHCP server hands out the plant’s internal DNS server, and that one only answers for internal names, or blocks outside lookups. With static config the board used 8.8.8.8 instead and everything worked. Add this after connecting and you’ll see it:
Serial.println(WiFi.dnsIP());
IPAddress ip;
Serial.println(WiFi.hostByName(MQTT_HOST, ip) ? ip.toString() : "lookup failed");
Then ask IT for one of two things: let their DNS resolve your organisation’s broker host name (it’s on the device’s Connection details card), or allow outbound DNS from that VLAN. And while you’re talking to them, outbound TCP 8883 has to be open as well, plus 443 if you ever use HTTPS. Wilson’s guess is worth guarding against anyway: wait for WiFi.localIP() to be non-zero before the first connect.
Von English mit KI übersetzt ·
Wenn der Laptop für den Roboter weiterleitet, machen Sie den Laptop zu einem Gateway-Gerät und melden Sie den Roboter als dessen Child-Gerät; dann hat der Roboter seine eigene Geräteseite und eigene Alarme.
If the laptop forwards for the robot, make the laptop a gateway device and report the robot as its child, then the robot has its own device page and alarms.
Von English mit KI übersetzt ·
LoRa kann überhaupt kein Video übertragen, die Datenraten sind viel zu gering.
LoRa won’t carry video at all, the data rates are tiny.

