smithops
@tsmith · Mitglied seit Januar 2026
Plant manager · automotive · 6 years in the field
- Themen
- 4
- Antworten
- 35
- Punkte
- 0
Erstellte Forenantworten
Von English mit KI übersetzt ·
Da sind sie ja. Der Klinkerkühler kommt direkt auf unseren Ofenbildschirm.
There they are. The clinker cooler goes straight onto our kiln screen.
Von English mit KI übersetzt ·
Sind die Zementsymbole eine neue Bibliothek? Wir haben Heavy industry im September gekauft.
Are the cement symbols a new library? We bought Heavy industry in September.
Von English mit KI übersetzt ·
Wir haben letzte Woche unseren ersten Job ausgeführt, 38 Router, ein Wert im Netzwerkbereich. Wir haben unsere eigenen Wellengrößen festgelegt (5 und 25, dann der Rest). Die zwei Router, die länger offline waren als die Wartezeit-Einstellung, wurden ausgelassen, was genau unser Wunsch war. START einzutippen fühlte sich beim ersten Mal albern an, aber ich verstehe, warum.
Ran our first job last week, 38 routers, one value in the network section. We set our own wave sizes (5 and 25, then the rest). The two routers that had been offline longer than the wait setting were left out, which is what we wanted. Typing START felt silly the first time but I get why.
Von English mit KI übersetzt ·
@Rachel das können sie nicht, Hermetry sieht die Daten erst, wenn die Verbindung wieder da ist. Aus demselben Grund behalten wir die lokalen Verriegelungen in der Halle und nutzen die Cloud für Benachrichtigungen und Verlauf. Deine Buzzer-Logik gehört vor Ort.
@Rachel they can’t, Hermetry never sees the data until it comes back. Same reason we keep local interlocks on the shop floor and use the cloud for notices and history. Your buzzer logic belongs on site.
Von English mit KI übersetzt ·
Gutes Timing, in zwei Wochen kommt ein Prüfer von unserer Versicherung. Die Hälfte dessen, was sie wollen, ist die Kamera im Heizhaus. Bekommt der Viewer die Live-Ansicht?
Good timing, we have an auditor from our insurer coming in two weeks. Half of what they want is the camera on the boiler house. Does the viewer get live view?
Von English mit KI übersetzt ·
Genau das habe ich vor zwei Jahren bei den Dachlichtern über unserer Kantine in der Lackiererei gemacht. Du brauchst die KLF 200 Schnittstelle des Fensterherstellers (das io-homecontrol-Gateway mit LAN-Anschluss). Du koppelst jedes Fenster daran, so wie du eine neue Tastatur anlernen würdest, danach stellt sie dir eine lokale API im LAN zur Verfügung. Auf dem Pi gibt es eine Python-Bibliothek, pyvlx, die damit spricht. Aktualisiere die KLF 200 zuerst auf die aktuelle Firmware, die alte hat keine API, und verbinde sie per Kabel, nicht über ihr eigenes WLAN.Die Regenlogik sollte dann der Pi lokal ausführen. Ich würde „bei Regen schließen“ nicht über die Cloud laufen lassen, es muss auch funktionieren, wenn das Internet ausfällt:
if rain_contact_closed() and any_open():
await pyvlx.nodes[n].close(wait_for_completion=False)
# every 30 s, and after each move:
payload = {f"win{n:02d}.pos": node.position.position_percent for n, node in enumerate(nodes)}
mqtt.publish("v1/telemetry", json.dumps(payload), qos=1)
Die Positionen kommen von den Fenstern zurück, du bekommst also echte Rückmeldung, 0 = geschlossen. Für die Öffnen-/Schließen-Tasten im Dashboard füge dem Gerspäteprofil des Pi Befehle wie win.close mit einem Parameter für die Fensternummer hinzu, verarbeite sie auf v1/rpc/req/+ und antworte mit derselben ID. Board-Steuerelemente können nur Befehle der Basic-Stufe aus dem Katalog des Profils senden, was für diesen Zweck ausreicht. Siehe Control cards.Die KLF 200 nimmt nur ein paar API-Verbindungen gleichzeitig an, halte deshalb in deinem Skript eine dauerhaft offene Verbindung.
Did exactly this on the roof lights over our paint shop canteen two years ago. What you want is the window maker’s KLF 200 interface (the io-homecontrol gateway with a LAN port). You pair each window into it like you would a new keypad, then it gives you a local API on the LAN. On the Pi there’s a Python library, pyvlx, that talks to it. Update the KLF 200 to the current firmware first, the old one has no API, and connect it by cable, not its own Wi-Fi.
Then the Pi does the rain logic locally, I would not run „close on rain“ through the cloud, it has to work when the internet is down:
if rain_contact_closed() and any_open():
await pyvlx.nodes[n].close(wait_for_completion=False)
# every 30 s, and after each move:
payload = {f"win{n:02d}.pos": node.position.position_percent for n, node in enumerate(nodes)}
mqtt.publish("v1/telemetry", json.dumps(payload), qos=1)
Positions come back from the windows so you get real feedback, 0 = closed. For the open/close buttons on the dashboard, add commands like win.close with a window number parameter to the Pi’s device profile, handle them on v1/rpc/req/+ and answer on the same id. Board controls can only send Basic tier commands from the profile’s catalogue, which is fine for this. See Control cards.
The KLF 200 only takes a couple of API connections at a time, so keep one long-lived connection in your script.
Von English mit KI übersetzt ·
Was auch immer du kaufst, achte darauf, dass es echtes 802.3af/at ist und kein „passive PoE“. Wir haben im Werk zwei Platinen mit einem 24-V-Passivinjektor gegrillt, den jemand in einer Schublade gefunden hatte. Dein Switch handelt die Stromversorgung korrekt aus, billige Injektoren hingegen nicht.
Whatever you buy, make sure it is real 802.3af/at and not „passive PoE“. We cooked two boards at the plant with a 24 V passive injector somebody found in a drawer. Your switch will negotiate properly, cheap injectors won’t.
Von English mit KI übersetzt ·
Heute Morgen haben zwei von uns dasselbe gemeinsame Board angepasst, und mein Speichern wurde mit einer Meldung abgelehnt, dass das Dashboard woanders geändert und neu geladen wurde. Ist das so erwartet, oder haben wir etwas kaputt gemacht?
Two of us were customising the same shared board this morning and my save bounced back with a message that the dashboard had changed elsewhere and was reloaded. Expected, or did we break something?
And they cost a few dollars more per node, worth it only for the worst ones.
Von English mit KI übersetzt ·
Daniels Frage ist der richtige erste Schritt. Unter macOS wird kein Treiber benötigt: avrdude kommuniziert über libusb mit dem USBasp, und libusb wird mit Homebrew installiert. Wenn Systeminformationen > USB „USBasp“ gar nicht auflistet, liegt es am Adapter und nicht an avrdude. Ich hatte genau das bei zwei günstigen USB-C-Adaptern in unserem Werk: Der USBasp ist ein USB-Gerät mit niedriger Geschwindigkeit, dessen Firmware USB per Bit-Banging umsetzt, und manche USB-C-Adapter und Hubs erkennen solche Geräte nicht zuverlässig. Ein eigenständig versorgter USB-A-Hub zwischen Adapter und USBasp hat es bei mir behoben, ebenso ein anderer (Apple-)Adapter.Sobald das Gerät gefunden wird, ist der nächste Fehler bei neuen Chips wahrscheinlich dieser:
avrdude: warning: cannot set sck period. please check for usbasp firmware update.
avrdude: error: program enable: target does not answer (0x01)
Ein neuer 328P läuft ab Werk mit 1 MHz über den internen Oszillator, und der Standard-ISP-Takt ist dafür zu schnell. Den Takt verlangsamen:
avrdude -c usbasp -p m328p -B 32 -U lfuse:w:0xFF:m -U hfuse:w:0xDE:m -U efuse:w:0xFD:m
avrdude -c usbasp -p m328p -B 4 -U flash:w:rs485node.hex:i
(Diese Fuse-Werte gelten für einen externen 16-MHz-Quarz; prüfen Sie Ihren, bevor Sie sie schreiben.) Die Warnung „cannot set sck period“ stammt von der alten USBasp-Firmware und ist unbedenklich, solange -B funktioniert; bei älteren Versionen erledigt der Jumper für langsamen Takt dasselbe.
Daniel’s question is the right first step. No driver is needed on macOS, avrdude talks to the USBasp through libusb, which Homebrew installs with it. If System Information > USB doesn’t list „USBasp“ at all, it’s the adapter, not avrdude. I had exactly this with two cheap USB-C adapters at our plant: the USBasp is a low-speed USB device with the firmware bit-banging USB, and some USB-C adapters and hubs don’t enumerate those reliably. A powered USB-A hub between the adapter and the USBasp fixed it for me, so did a different (Apple) adapter.
Once it’s found, the next error you’ll probably meet on fresh chips is this:
avrdude: warning: cannot set sck period. please check for usbasp firmware update.
avrdude: error: program enable: target does not answer (0x01)
A new 328P runs at 1 MHz from the internal oscillator, and the default ISP clock is too fast for it. Slow it down:
avrdude -c usbasp -p m328p -B 32 -U lfuse:w:0xFF:m -U hfuse:w:0xDE:m -U efuse:w:0xFD:m
avrdude -c usbasp -p m328p -B 4 -U flash:w:rs485node.hex:i
(those fuses are for an external 16 MHz crystal, check yours before you write them). The „cannot set sck period“ warning is the old USBasp firmware talking, harmless as long as -B works; on older ones the slow-clock jumper does the same.
Von English mit KI übersetzt ·
Wie viele Gateways hast du für ein Gebiet dieser Größe benötigt?
How many gateways did you need for a district that size?
Von English mit KI übersetzt ·
Ist das in jedem Tarif enthalten? Ich sehe Dashboards, aber in unserem Menü gibt es keinen Eintrag Process Diagrams.
Is this in every plan? I can see Dashboards but there is no Process Diagrams entry in our menu.
Watch battery life at SF12 too, each frame is well over a second on air.
Von English mit KI übersetzt ·
Sobald er liest, setze einen 100-nF-Kondensator neben dem Chip an den Eingang. 4-20-mA-Schleifen nehmen auf einem Breadboard viel Rauschen auf.
Once it reads, put a 100 nF cap on the input next to the chip. 4-20 mA loops pick up a lot of noise on a breadboard.
Von English mit KI übersetzt ·
Kevin hat recht, und das ist das Erste, was ich ändern würde. Ich betreibe eine Anlage, und wir hatten bereits zwei Auftragnehmer, die selbst gebaute Boxen dieser Art mitgebracht haben. Beide wurden zurückgeschickt.Grob zur Funktionsweise in Großbritannien. Das Inverkehrbringen elektrischer Betriebsmittel fällt unter die Electrical Equipment (Safety) Regulations 2016, daher braucht es eine UKCA- oder CE-Kennzeichnung mit einer dahinterliegenden technischen Dokumentation. Sie wären dann der Hersteller, was man für eine einzelne Box nicht unbedingt werden möchte. Wenn das Gerät fest im Heizraum verdrahtet wird, ist die Installation Arbeit nach BS 7671 durch eine fachkundige Elektrofachkraft, meist über eine abgesicherte Anschlussdose.Behalten Sie daher nur den Netzteil-Teil als Fertigprodukt. Ein UKCA/CE-gekennzeichnetes Hutschienen-Netzteil (ein Mean Well HDR-15-5 oder ähnlich), installiert von deren Elektrofachkraft, oder sogar ein gekennzeichneter Steckernetzteil-Adapter. Ihre Box arbeitet dann nur noch mit 5 V, und Sie können sie beliebig aufbauen.Gas ist das größere Problem. Ein MQ-4 ist in keinem Sicherheitssinn ein Gasmelder. Er driftet mit der Luftfeuchtigkeit, braucht eine Einbrennphase, und kein Versicherer wird ihn akzeptieren. Verwenden Sie einen zertifizierten fest installierten Melder (für Erdgas im Heizraum nach EN 60079-29-1 suchen) und verbinden Sie dessen potentialfreies Alarmrelais mit einem ESP32-Eingang mit Pull-up-Widerstand. Der Melder übernimmt die Sicherheitsfunktion und schließt das Gasventil, wenn er dafür spezifiziert ist. Ihr ESP32 meldet gas_alarm true/false und die Raumtemperatur, und eine Alarmregel im Profil übernimmt die Benachrichtigungen. Das Kesselverriegelungsrelais wird auf die gleiche Weise an einen zweiten Eingang angeschlossen.
Kevin’s right, and that’s the first thing I’d change. I run a plant and we’ve had two contractors bring in homemade boxes like this. Both went back.
Roughly how it works in the UK. Putting electrical equipment on the market falls under the Electrical Equipment (Safety) Regulations 2016, so it needs UKCA or CE marking with your technical file behind it. You’d be the manufacturer, which is not where you want to be for one box. If it’s hard-wired into the plant room, the installation is BS 7671 work for a competent electrician, usually off a fused connection unit.
So keep the only mains part off the shelf. A UKCA/CE-marked DIN-rail PSU (a Mean Well HDR-15-5 or similar) installed by their electrician, or even a marked plug-in adapter. Your box is then 5V only and you can build it however you like.
Gas is the bigger problem. An MQ-4 is not a gas detector in any safety sense. It drifts with humidity, needs burn-in, and no insurer will accept it. Use a certified fixed detector (for natural gas in a boiler room, look for EN 60079-29-1) and wire its volt-free alarm relay to an ESP32 input with a pull-up. The detector does the safety job and shuts the gas valve if it’s specified for that. Your ESP32 reports gas_alarm true/false and the room temperature, and an alarm rule on the profile handles notifications. The boiler lockout relay goes in the same way on a second input.

