davidp11
@david-patel · Mitglied seit März 2025
Facility manager · hospitality · new to IoT
- Themen
- 8
- Antworten
- 63
- Punkte
- 0
Erstellte Forenantworten
Von English mit KI übersetzt ·
Die Heizung unseres Gebäudes erledigt all das im lokalen Regler. Ich würde sie lokal belassen, könnte aber nicht genau sagen, warum.
Our building’s heating does all that in the local controller. I’d keep it local, but I couldn’t tell you why exactly.
Von English mit KI übersetzt ·
OK, also Batterien. Übernimmt Hermetry City das oder brauche ich etwas anderes?
OK so batteries. Does Hermetry City handle that or do I need something else?
Von English mit KI übersetzt ·
Spielt die Kabellänge bei nur 9600 Baud wirklich eine Rolle?
Does cable length really matter at only 9600 baud?
Von English mit KI übersetzt ·
Wie arbeitet das Nachtpersonal, eine Person an einem festen Stützpunkt oder unterwegs? Das ändert, welche Art von Alarm sinnvoll ist.
How do the night staff work, one person on a fixed station or walking around? That changes what kind of alert makes sense.
Von English mit KI übersetzt ·
Wofür genau ist das 9. Bit? Ich habe bisher immer nur 8N1 gesehen.
What’s the 9th bit for exactly? I’ve only ever seen 8N1.
Von English mit KI übersetzt ·
Genau das hatten wir an einem unserer Standorte, nachdem der ISP IPv6 aktiviert hat. Der Pi bekommt eine IPv6-Adresse, versucht sie zuerst, die Route ist kaputt und er wartet bis zum Timeout, bevor er auf IPv4 zurückfällt. Dein curl-Test zeigt das.Ich wollte IPv6 nicht überall deaktivieren, also habe ich dem Pi gesagt, dass er IPv4 bevorzugen soll. Entkommentiere diese Zeile in /etc/gai.conf:
precedence ::ffff:0:0/96 100
Ein Neustart ist für neue Prozesse nicht nötig, starte einfach dein Skript neu. Wenn du es nur für das Skript willst, kannst du es in Python vor dem Import von requests erzwingen:
import socket
import urllib3.util.connection as conn
conn.allowed_gai_family = lambda: socket.AF_INET
Owens Idee ist für später trotzdem gut. Trag die öffentliche IPv4 des Hotels in die IP-Allowlist des Schlüssels ein, damit ein gestohlener Schlüssel anderswo nutzlos ist.
Had exactly this at one of our properties after the ISP turned IPv6 on. The Pi gets an IPv6 address, tries it first, the route is broken and it waits for the timeout before falling back to IPv4. Your curl test shows that.
I didn’t want to switch IPv6 off for everything, so I told the Pi to prefer IPv4. Uncomment this line in /etc/gai.conf:
precedence ::ffff:0:0/96 100
No reboot needed for new processes, just restart your script. If you only want it for the script, you can force it in Python before importing requests:
import socket
import urllib3.util.connection as conn
conn.allowed_gai_family = lambda: socket.AF_INET
And Owen’s idea is still a good one for later. Put the hotel’s public IPv4 in the key’s IP allowlist so a stolen key is useless elsewhere.
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 ·
Kannst du die Antenne nicht einfach höher anbringen?
Can’t you just put the antenna higher?
Von English mit KI übersetzt ·
Vielleicht brauchst du Pull-up-Widerstände an SDA und SCL? Ich habe gelesen, dass I2C sie braucht.
Maybe you need pull-up resistors on SDA and SCL? I read I2C needs them.
Von English mit KI übersetzt ·
Zeigt der Schalter an, wenn jemand das Licht an der Wand eingeschaltet hat?
Will the switch show if someone turned the light on at the wall?
Von English mit KI übersetzt ·
Zählt das Gateway also als ein Gerät oder als 26?
so the gateway counts as one device or 26?
Von English mit KI übersetzt ·
Ich verfolge das mit. Ich habe auch einen MCP3008 in einer Schublade, den ich ebenfalls nie zum Laufen gebracht habe
following, I have an MCP3008 in a drawer I never got working either
Von English mit KI übersetzt ·
Ich bin neu im Bereich IoT, aber wir hatten genau dieses Problem mit einem Pi in einem Stahlkasten im Pooltechnikraum unseres Hotels. Unser IT-Verantwortlicher hat mich vom Löten abgebracht. Ein geschlossener Stahlkasten ist nahezu ein Faraday-Käfig, daher wird die eingebaute Chip-Antenne darin immer Probleme haben, und der Pi 3 ist nicht für eine externe Antenne ausgelegt.Stattdessen haben wir Folgendes gemacht, Kosten etwa 20 Dollar:
- Ein USB-WLAN-Adapter mit RP-SMA-Anschluss.
- Ein kurzes RP-SMA-Verlängerungskabel durch eine Kabelverschraubung im Kasten, die Antenne außen oben montiert.
- Das integrierte WLAN deaktiviert, sodass der Dongle das einzige wlan0 ist. Füge
dtoverlay=disable-wifiin config.txt ein und starte neu. Danach trägst du deine WLAN-Einstellungen wie gewohnt auf dem Dongle ein.
Unser Signal stieg von etwa -84 auf -58 dBm.Auf der Hermetry-Seite habe ich außerdem den Offline-Alarm verlängert. Die Dokumentation empfiehlt für Geräte, die kurz abbrechen können, eine Open-Zeit, die länger ist als eine normale Wiederverbindung. Wir verwenden 600 s, sodass ein 30-Sekunden-WLAN-Aussetzer niemanden mehr weckt. Das Keepalive beträgt in unserem Skript 60 s.
I’m new to IoT but we had exactly this with a Pi in a steel box in our hotel’s pool plant room. Our IT guy talked me out of soldering. A closed steel box is close to a Faraday cage, so the onboard chip antenna inside it will always struggle, and the Pi 3 is not designed for an external one.
What we did instead, cost about 20 dollars:
- A USB Wi-Fi adapter with an RP-SMA connector.
- A short RP-SMA extension cable through a cable gland in the box, antenna mounted outside on top.
- Onboard Wi-Fi switched off so the dongle is the only wlan0. Add
dtoverlay=disable-wifito config.txt and reboot. Then put your Wi-Fi settings on the dongle as usual.
Our signal went from about -84 to -58 dBm.
On the Hermetry side I also lengthened the offline alarm. The docs suggest an Open after time longer than a normal reconnect for devices that can drop briefly, we use 600 s, so a 30 second Wi-Fi dip no longer wakes anyone. Keepalive is 60 s in our script.
Von English mit KI übersetzt ·
Ja, der Laptop teilt seine Verbindung (NAT) und muss eingeschaltet bleiben. Deshalb habe ich mich für den Adapter entschieden.
Yep, laptop shares its connection (NAT) and has to stay on. That’s why I went with the adapter.
Von English mit KI übersetzt ·
Wahrscheinlich die am wenigsten qualifizierte Person in diesem Thread, aber unser Elektriker hat bei uns im Heizungsraum fast dasselbe Problem gelöst, und Emilys Punkt erklärt, warum deiner bei 9 V liegt. Dein 10k-Pull-up und 10k-Pulldown bringen das Gate auf etwa 12 V, minus die Schwellenspannung ergibt für die Source knapp unter 10 V. Der MOSFET ist halb durchgeschaltet und wird deshalb warm.Seine Lösung war, den MOSFET wegzulassen. Ein SPS-Eingang dieser Art zieht nur wenige Milliampere (bei uns waren es laut Handbuch etwa 5 mA bei 24 V), und ein PC817-Transistor kann das allein schalten:
Pi-Seite: GPIO17 -- 330R -- PC817 Anode (Pin 1), Kathode (Pin 2) -- Pi GND
24-V-Seite: +24 V -- PC817 Kollektor (Pin 4)
PC817 Emitter (Pin 3) -- SPS-Eingang I0.5
SPS-Eingang Bezugspotenzial -- 0 V
Optokoppler an, der Eingang sieht nahezu 24 V. Optokoppler aus, nichts. Die Trennung bleibt erhalten. Wenn du etwas mit DIN-Schienenclip und Beschriftung willst, erledigt ein fertiges 24-V-Optokoppler- oder Relaismodul dasselbe.Auf der Hermetry-Seite hat er den Haltebefehl als Hohe Auswirkung eingestellt, damit der Absender ihn bestätigen muss. Eine Board-Steuerung sendet allerdings keinen Befehl mit hoher Auswirkung, deshalb geht er über den Tab Commands des Geräts. Für eine Haltanforderung, die eine Linie stoppt, fanden wir das in Ordnung.
Probably the least qualified person in this thread, but our electrician sorted almost the same thing in our boiler room, and Emily’s point is why yours sits at 9 V. Your 10k pull-up and 10k pulldown make the gate about 12 V, minus the threshold gives the source a bit under 10 V. The MOSFET is half on, so it gets warm.
His fix was to throw the MOSFET out. A PLC input like that only draws a few milliamps (ours was about 5 mA at 24 V, the manual says), and a PC817 transistor can switch that by itself:
Pi side: GPIO17 -- 330R -- PC817 anode (pin 1), cathode (pin 2) -- Pi GND
24 V side: +24 V -- PC817 collector (pin 4)
PC817 emitter (pin 3) -- PLC input I0.5
PLC input common -- 0 V
Opto on, the input sees close to 24 V. Opto off, nothing. Isolation stays. If you want something with a DIN rail clip and a label on it, a ready-made 24 V opto or relay module does the same.
On the Hermetry side he set the hold command as High impact so whoever sends it has to confirm. A board control won’t send a high-impact command though, so it goes from the device’s Commands tab. For a hold request that stops a line, we found that was fine.

