ciaran55
@ciaranwalsh55 · Mitglied seit Juni 2025
Smart-city engineer · energy
- Themen
- 9
- Antworten
- 68
- Punkte
- 0
Erstellte Forenantworten
Von English mit KI übersetzt ·
Android prüft speziell auf eine 204-Antwort; erhält es etwas anderes, sollte es die Anmeldeaufforderung anzeigen. Ohne den DNS-Teil wird Ihr Server wahrscheinlich gar nicht angefragt.
Android specifically checks for a 204 answer, if it gets anything else it should show the sign-in prompt. Your server probably isn’t being asked at all without the DNS bit.
Von English mit KI übersetzt ·
Ist das UART-Logging im Build noch aktiviert? Auf dem nRF52 hält das den Hochfrequenztakt am Laufen.
Is UART logging still on in the build? On the nRF52 that keeps the high-frequency clock running.
Von English mit KI übersetzt ·
Viele unserer Zählern in den Straßenschränken liefern nur Impulse, und sie melden trotzdem zuverlässig; es muss nur jemand diese Impulse zählen.
Plenty of our street cabinet meters only give pulses and they report fine, something just has to count them.
Von English mit KI übersetzt ·
jessicathompson37 hat auf der Prozessseite recht, behalten Sie die Rückschlagventile. Ich habe letztes Jahr einen Kompressorraum für einen Kunden gezeichnet.Palette: Compressor, Compressed-air receiver und Compressed-air dryer befinden sich in der Process-Bibliothek, nicht im Kernsatz. Wenn Sie nur einige davon sehen, prüfen Sie, welche Bibliotheken Ihre Organisation gekauft hat. Check valve ist im Kernsatz unter der Familie Water network enthalten; suchen Sie in der Palette nach „check valve“.Die Animation: Eine Verbindung hat keinen eigenen Wert. Sie folgt ihrem „from“-Symbol, daher zeigt eine Leitung Durchfluss, solange das Symbol an ihrem Anfang läuft. Wenn Ihre Leitung von Kompressor 2 weiterhin fließt, wurde sie wahrscheinlich vom Receiver in Richtung Kompressor gezeichnet, oder beide Leitungen beginnen am selben laufenden Symbol. Zeichnen Sie sie in Durchflussrichtung:
Compressor 1 -> Check valve 1 -> Receiver -> Dryer -> header
Compressor 2 -> Check valve 2 ----^
und binden Sie das Running jedes Kompressors an den eigenen Running-Wert in seinen Views. Aktivieren Sie Flow arrow an den Leitungen, damit die Richtung sichtbar ist. Ein auf die Leitung gesetztes Rückschlagventil übernimmt das Medium der ersten Verbindung, die es berührt. Pipes, cables and connections
jessicathompson37 is right on the process side, keep the check valves. I drew a compressor room for a client last year.
Palette: Compressor, Compressed-air receiver and Compressed-air dryer are in the Process library, not the core set, so if you only see some of them, check which libraries your organisation bought. Check valve is in the core set under the Water network family; search the palette for „check valve“.
The animation: a connection has no value of its own. It follows its „from“ symbol, so a pipe shows flow while the symbol at its start runs. If your pipe from compressor 2 keeps flowing, it was probably drawn from the receiver towards the compressor, or both pipes start at the same running symbol. Draw them in the flow direction:
Compressor 1 -> Check valve 1 -> Receiver -> Dryer -> header
Compressor 2 -> Check valve 2 ----^
and bind each compressor’s Running to its own running value on its Views. Tick Flow arrow on the pipes so the direction is visible. A check valve placed on the line takes the medium of the first connection that touches it. Pipes, cables and connections
Von English mit KI übersetzt ·
I2C mit einem Bus-Extender wie dem P82B715 kann lange Strecken überbrücken, wir haben ihn einmal für 20 m verwendet.
I2C with a bus extender like the P82B715 can do long runs, we used it for 20 m once.
Von English mit KI übersetzt ·
Zwei verschiedene Fragen.SPI: Ja, Bit-Banging funktioniert problemlos. Der SX1276 hat keine minimale SPI-Taktfrequenz, Modus 0 und Registerzugriffe mit einigen hundert kHz vom PIC aus sind völlig ausreichend. Menschen betreiben rohes LoRa Punkt-zu-Punkt auf diese Weise.LoRaWAN: Hier stößt ein PIC16 an seine Grenzen. Der Stack benötigt Kryptografie (AES-CMAC für den MIC), Sitzungszustände, und er muss nach jedem Uplink die Empfangsfenster rechtzeitig öffnen. Hermetrys Standard-RX1-Verzögerung beträgt 5 s, und das Fenster muss sich innerhalb weniger Millisekunden danach öffnen. Machbar, aber nicht mit diesem RAM.Also Kevins Idee: ein Modul mit eigenem LoRaWAN-Stack (zum Beispiel ein STM32WL-basiertes) über UART. Der PIC sendet einmal einen Join-Befehl und danach pro Messwert eine Hex-Nutzlast, das Modul übernimmt alles Weitere. Jeder Sensor verbindet sich per OTAA, Class A, LoRaWAN 1.0.2 bis 1.0.4, wie es Hermetrys Netzwerkserver nutzt, mit demselben Frequenzplan wie Ihr Gateway. Ein Tabellen-Codec wandelt Ihre Bytes in Feuchtigkeit und Batteriewert um. Prüfen Sie die LoRaWAN limits, bevor Sie das Modul auswählen, damit die Version passt, und kaufen Sie es für das Frequenzband Ihres Gateways.
Two different questions.
SPI: yes, bit-banging is fine. The SX1276 has no minimum SPI clock, mode 0, and register access at a few hundred kHz from a PIC is plenty. People run raw LoRa point to point like that.
LoRaWAN: that’s where a PIC16 runs out. The stack needs crypto (AES-CMAC for the MIC), session state, and it has to open the receive windows on time after each uplink. Hermetry’s default RX1 delay is 5 s, and the window has to open within a few milliseconds of that. Doable, but not on that RAM.
So Kevin’s idea. A module with its own LoRaWAN stack (an STM32WL based one, for example) over UART. The PIC sends a join command once and then a hex payload per reading, the module handles everything else. Each probe joins with OTAA, Class A, LoRaWAN 1.0.2 to 1.0.4, which is what Hermetry’s network server does, on the same frequency plan as your gateway. A table codec turns your bytes into moisture and battery. Check LoRaWAN limits before you pick the module so its version matches, and buy it for your gateway’s band.
Von English mit KI übersetzt ·
Dann drehen Sie es um, damit niemand den Uno überhaupt aufrufen muss. Der Uno sendet seinen Zähler an Hermetry, und das ERP holt die Schichtsumme von Hermetry ab. Eingehender Verkehr in Ihr Netz bleibt geschlossen.Uno: Den laufenden Gesamtwert (auf dem Uno niemals zurücksetzen) jede Minute mit dem Token an die HTTP-API des Geräts senden. Ein W5100 kann kein TLS, also entweder eine kleine TLS-fähige Platine davorschalten oder, am einfachsten, den Uno durch einen ESP32 mit Ethernet ersetzen und über HTTPS senden. Der Body ist nur {"cases_total": 184233}.ERP-Seite: ein API-Schlüssel mit der Voreinstellung Read only für Telemetrie, auf die Adresse des ERP-Servers per Allowlist beschränkt. Um 06:05, 14:05 und 22:05 fragt der Importjob den Zuwachs über die Schicht ab:
GET /tenant/{tenantId}/api/telemetry/series?kind=iot_device&entityId={line3}
&keys=cases_total&from={shift_start_ms}&to={shift_end_ms}&bucket=1h&agg=increase
Addieren Sie die 8 stündlichen Werte. increase behandelt den Zähler korrekt, und wenn das Gerät dazwischen 10 Minuten offline war, ist es egal, der Gesamtwert holt es auf. Auf dem Board liefert derselbe Schlüssel mit increase in einem Diagramm dem Betrieb die Live-Fälle pro Stunde.Ich würde in Ihrem Fall vermeiden, aus einem Flow heraus an das ERP zu pushen: Der HTTP-Request-Block lehnt private Adressen ab, kann also 10.x ohnehin nicht erreichen. Der Pull hält die IT zufrieden. Referenz: The history API.
Then flip it around so nobody calls the Uno at all. The Uno posts its counter to Hermetry, and the ERP pulls the shift total from Hermetry. Inbound to your network stays closed.
Uno: send the running total (never reset it on the Uno) every minute to the device HTTP API with its token. A W5100 can’t do TLS, so either put a small TLS-capable board in front or, simplest, swap the Uno for an ESP32 with Ethernet and post over HTTPS. The body is just {"cases_total": 184233}.
ERP side: an API key with the Read only preset for telemetry, allowlisted to the ERP server’s address. At 06:05, 14:05 and 22:05 the import job asks for the increase over the shift:
GET /tenant/{tenantId}/api/telemetry/series?kind=iot_device&entityId={line3}
&keys=cases_total&from={shift_start_ms}&to={shift_end_ms}&bucket=1h&agg=increase
Add up the 8 hourly values. increase handles the counter properly and you don’t care if the device was offline for 10 minutes in between, the total catches up. On the board, the same key on a chart with increase gives ops the live cases per hour.
I’d avoid pushing from a flow to the ERP in your case: the HTTP request block refuses private addresses, so it can’t reach 10.x anyway. The pull keeps IT happy. Reference: The history API.
Von English mit KI übersetzt ·
Bleib auch beim Testen bei ADC1. Ich habe eine Stunde verloren, weil ADC2 bei eingeschaltetem WLAN immer 4095 liefert.
Stick to ADC1 even for testing, I lost an hour to ADC2 reading 4095 with Wi-Fi on.
Von English mit KI übersetzt ·
Und STATE ist kein Reset-Signal. Es geht einmal auf High, wenn die Bluetooth-Verbindung aufgebaut wird, und es erzeugt keinen Impuls, wenn avrdude startet. Allein das erklärt resp=0x00.
And STATE isn’t a reset signal. It goes high once when the Bluetooth link connects, it doesn’t pulse when avrdude starts. That alone gives you resp=0x00.
Von English mit KI übersetzt ·
Der schnellste Weg zurück: pip install paho-mqtt==1.6.1 ausführen und den Dienst neu starten. Die eigentliche Ursache sollten Sie dann bei Gelegenheit richtig beheben.
Quickest way back: pip install paho-mqtt==1.6.1 and restart the service. Then fix it properly when there’s time.
Von English mit KI übersetzt ·
Genau das war es. Die Übergabe von &Wire an beide hat die Sensoren behoben, und die RS-485-Seite funktioniert wieder, weil 21/22 unangetastet bleiben. Schrankstrom und Temperatur werden jetzt im Dashboard angezeigt. Falls jemand die INA219-Bibliothek hat: Deren begin() erwartet den Zeiger, ältere Versionen taten das aber nicht, also zuerst aktualisieren.
That was exactly it. Passing &Wire to both fixed the sensors, and the RS-485 side works again because 21/22 are left alone. Cabinet current and temperature are on the dashboard now. In case someone has the INA219 library I have: its begin() takes the pointer, but older versions did not, so update it first.
Von English mit KI übersetzt ·
Keishas Kurzfassung stimmt. Die Details, so wie ich sie neuen Kollegen erkläre:Die Chiprate entspricht der Bandbreite, bei 125 kHz also 125.000 Chips pro Sekunde. Ein Symbol besteht aus 2^SF Chips, ein Symbol dauert also 2^SF / BW: etwa 1 ms bei SF7 und 33 ms bei SF12. Jedes Symbol trägt SF Bit. Mit der Coding Rate 4/5 ergibt sich eine Bitrate von SF × BW / 2^SF × 4/5, also etwa 5,5 kbit/s bei SF7 und 290 bit/s bei SF12. Jeder SF-Schritt halbiert die Bitrate ungefähr und verdoppelt die Airtime.In EU868, vorausgesetzt, Ihre Gateways laufen so, sind die DR-Nummern nur Bezeichnungen für Paare aus SF und Bandbreite:
DR0 SF12 125k DR3 SF9 125k
DR1 SF11 125k DR4 SF8 125k
DR2 SF10 125k DR5 SF7 125k
DR6 SF7 250k DR7 FSK 50 kbit/s
Das SF9 des Herstellers ist also DR3. Dafür müssen Sie nichts einstellen. ADR (standardmäßig aktiv) verschiebt jedes Gerät innerhalb des DR-Bereichs des Profils (Lowest/Highest DR, standardmäßig DR0 bis DR5) auf Basis des besten SNR der letzten 20 Uplinks. Ein Zähler, der das Gateway gut hört, arbeitet schneller als SF9, ein weit entfernter bleibt langsamer. Nach einer Änderung sehen Sie das im Attribut lora.dr des Geräts. Den Fall, in dem Sie ADR abschalten würden, bilden Geräte, die sich bewegen, etwa ein Tracker.ADR, Datenraten und MAC-Befehle
Keisha’s short version is right. The detail, as I explain it to new starters:
The chip rate equals the bandwidth, so at 125 kHz you get 125,000 chips per second. One symbol is 2^SF chips, so a symbol lasts 2^SF / BW: about 1 ms at SF7 and 33 ms at SF12. Each symbol carries SF bits. With the 4/5 coding rate that gives a bit rate of SF × BW / 2^SF × 4/5, about 5.5 kbit/s at SF7 and 290 bit/s at SF12. Each SF step roughly halves the bit rate and doubles the airtime.
In EU868, assuming that’s what your gateways run, the DR numbers are just names for SF and bandwidth pairs:
DR0 SF12 125k DR3 SF9 125k
DR1 SF11 125k DR4 SF8 125k
DR2 SF10 125k DR5 SF7 125k
DR6 SF7 250k DR7 FSK 50 kbit/s
So the vendor’s SF9 is DR3. You don’t have to set anything for that. ADR (on by default) moves each device within the profile’s Lowest/Highest DR range, DR0 to DR5 by default, based on the best SNR over its last 20 uplinks. A meter that hears the gateway well ends up faster than SF9, a far one stays slower. After a change you can see it in the device’s lora.dr attribute. The one case where you’d turn ADR off is anything that moves, like a tracker.
Von English mit KI übersetzt ·
Verlassen Sie sich im Stahlanhänger nicht auf Gierwinkel (Yaw). Das Magnetometer wird vom Stahl verzerrt, wir haben 40° Fehler beobachtet. Roll und Pitch brauchen Sie ohnehin, um „umgekippt“ zu erkennen.
Don’t count on yaw inside a steel trailer. The magnetometer gets pulled around by the steel, we saw 40° errors. Roll and pitch are what you need for „tipped over“ anyway.
Von English mit KI übersetzt ·
Ich habe mich für einen schleifengespeisten Splitter entschieden, das Budget ging mit 4 V Reserve auf. Der Node liest den zweiten Ausgang, der Scale-Block liefert level_pct, und den rohen mA-Schlüssel habe ich mit einem Alarm unterhalb von 3.8 behalten. Der SPS-Messwert hat sich nicht verändert, als wir die Stromversorgung des Nodes zum Test abgeschaltet haben.
Went with a loop-powered splitter, the budget worked out with 4 V to spare. The node reads the second output, Scale block gives level_pct, and I kept the raw mA key with an alarm below 3.8. The PLC reading didn’t move when we cut the node’s power to test.
Von English mit KI übersetzt ·
@Kevin H. nicht dumm, aber für diese SPS gibt es keine Kommunikationslizenz, und der Hersteller verkauft für einen Standort dieser Größe keine. @aisha.maker das ist hier eine Masseschleife, die nur darauf wartet, zu entstehen: Der ESP wird aus einer anderen Versorgung gespeist.
@Kevin H. not dumb, but no comms licence on that PLC and the vendor won’t sell one for a site this size. @aisha.maker that’s a ground loop waiting to happen here, the ESP is powered from a different supply.

