kevin.cto
@kevinharris · Mitglied seit Juni 2025
Startup founder · logistics · new to IoT
- Themen
- 10
- Antworten
- 54
- Punkte
- 0
Erstellte Forenantworten
Von English mit KI übersetzt ·
Meine gut 30 persönlichen Boards zählen also nicht auf die 5?
So my 30-odd personal boards don’t eat into the 5?
Von English mit KI übersetzt ·
Könntest du nicht das 868-MHz-Signal von der Tastatur mit einem SDR aufzeichnen und es vom Pi aus wieder abspielen?
Couldn’t you capture the 868 MHz signal from the keypad with an SDR and replay it from the Pi?
Von English mit KI übersetzt ·
Wird das irgendwo dauerhaft protokolliert, oder nur während es passiert?
Is that logged anywhere permanently, or only while it’s happening?
Von English mit KI übersetzt ·
Wäre es nicht einfacher, einfach auf jedem Rack einen günstigen ESP32 anzubringen? Das würde ich machen, aber ich bin kein Hardware-Experte.
Would it be easier to just put a cheap ESP32 on each rack? That’s what I’d do but I’m not a hardware guy.
Von English mit KI übersetzt ·
Speichert die Karte einen Verlauf, wo sich das Gerät bereits befunden hat, oder nur den letzten Punkt?
Does the map keep a trail of where it’s been or only the latest point?
Von English mit KI übersetzt ·
ok, das ist eigentlich schöner als unser VPN-Setup
ok that’s actually nicer than our VPN setup
Von English mit KI übersetzt ·
Kannst du stattdessen nicht einfach per VPN ins Farmnetz gehen?
Can’t you just VPN into the farm network instead?
Von English mit KI übersetzt ·
Pull-up-Widerstände? Bis ich 4.7k hinzugefügt habe, waren die Messwerte unzuverlässig
pull-ups? I had flaky reads until I added 4.7k
Von English mit KI übersetzt ·
Ich habe das letztes Jahr an unseren Anhänger-Trackern gemessen, weil unsere Mobilfunkrechnung absurd war. Grobe Werte aus Paketmitschnitten auf einem SIM7600, TLS 1.2, dem Broker der Plattform:
- vollständige Neuverbindung (TCP- + TLS-Handshake mit Zertifikatskette + CONNECT + SUBSCRIBEs): etwa 5 bis 6 KB
- ein Keepalive-Roundtrip (PINGREQ/PINGRESP innerhalb von TLS, dazu TCP/IP-Header und ACKs): ungefähr 150 bis 200 Byte
- Ihr 80-Byte-Messwert als QoS-1-Publish innerhalb von TLS mit PUBACK: ebenfalls ein paar hundert Byte
Eine Neuverbindung alle 5 Minuten würde also etwa 8.640 Handshakes im Monat kosten, 45+ MB. Deutlich schlechter. Keepalive 60 ergibt 43.200 Pings im Monat, rund 8 MB. Das ist ein großer Teil Ihrer 25 MB.Was bei uns funktioniert hat:Keepalive bis 300 s (der Broker setzt alles darüber ohnehin auf 300). Das reduziert die Pings auf ein Fünftel. Prüfen Sie, ob Ihr Provider inaktive NAT-Sitzungen nicht schneller trennt; bei uns hielten 6 Minuten, bei manchen werden sie nach 2 bis 4 Minuten getrennt. Wenn Sie keepalive_timeout im Log-Tab des Geräts sehen, senken Sie den Wert.Batching. Statt alle 5 Minuten einen Publish zu senden, puffern Sie 3 Messwerte und senden sie als ein Array mit Zeitstempeln (der ESP32 hat NTP, daher ist ts unproblematisch):
[{"ts":1762336800000,"values":{"flow":12.1,"pressure":2.4,"pump":1}},
{"ts":1762337100000,"values":{"flow":12.3,"pressure":2.4,"pump":1}},
{"ts":1762337400000,"values":{"flow":11.9,"pressure":2.3,"pump":1}}]
Gleiche Daten, ein Publish, und es zählt zudem als eine Nachricht auf das Monatskontingent statt drei.Suchen Sie nach unnötigem Datenverkehr. Bei uns war das Schlimmste, dass die Firmware bei jedem Publish Client-Attribute (IP, RSSI, Firmware-Version) mitgeschickt hat. Senden Sie diese nur bei Änderung.Zum Offline-Status: Mit Live connection als Online-Regel bleiben die Geräte online, solange die MQTT-Sitzung offen ist, bei Keepalive 300 ändert sich also nichts. Falls Sie jemals auf Verbinden-Senden-Trennen umstellen, wechseln Sie zu einem Profil mit Recent message, sonst werden sie zwischen den Sendungen als offline angezeigt.
I measured this on our trailer trackers last year because our carrier bill was silly. Rough numbers from packet captures on a SIM7600, TLS 1.2, the platform’s broker:
- full reconnect (TCP + TLS handshake with certificate chain + CONNECT + SUBSCRIBEs): about 5 to 6 KB
- one keepalive round trip (PINGREQ/PINGRESP inside TLS, plus TCP/IP headers and ACKs): roughly 150 to 200 bytes
- your 80-byte reading as a QoS 1 publish inside TLS with PUBACK: also a couple of hundred bytes
So reconnecting every 5 minutes would cost about 8,640 handshakes a month, 45+ MB. Way worse. Keepalive 60 is 43,200 pings a month, around 8 MB. That’s a big chunk of your 25 MB.
What worked for us:
Keepalive up to 300 s (the broker serves anything above its maximum at 300 anyway). That cuts pings by five. Check your carrier doesn’t drop idle NAT sessions faster; ours held 6 minutes, some drop at 2 to 4. If you see keepalive_timeout in the device’s Log tab, step it down.
Batch. Instead of one publish every 5 minutes, buffer 3 readings and send them as one array with timestamps (ESP32 has NTP, so ts is fine):
[{"ts":1762336800000,"values":{"flow":12.1,"pressure":2.4,"pump":1}},
{"ts":1762337100000,"values":{"flow":12.3,"pressure":2.4,"pump":1}},
{"ts":1762337400000,"values":{"flow":11.9,"pressure":2.3,"pump":1}}]
Same data, one publish, and it also counts as one message against the monthly quota instead of three.
Look for chatty extras. In our case the worst was the firmware sending client attributes (IP, RSSI, firmware version) on every publish. Only send them on change.
On offline: with Live connection as the online rule they stay online as long as the MQTT session is open, so with keepalive 300 nothing changes. If you ever do go connect-send-disconnect, switch them to a profile with Recent message, otherwise they’d show offline between sends.
Repacked it to 23 bytes (Daniel’s int32 trick) and turned ADR off on the tracker profile. A trailer 9 km out came through on SF11 all afternoon. I also finally get what a chip is.
Facepalm. Missing callbacks on node2, that was all. Both read every second now, and both meters showed up as their own devices in Hermetry. Thanks Ciaran!
Yes, set it to 2 on the front panel. If I swap and read only meter 2 with node (id 1 changed to 2) it works.
Maybe cast it to a String first? String s = (char*)payload;
Von English mit KI übersetzt ·
Warum überhaupt den Netzteil-Teil bauen? Nimm ein Steckernetzteil mit 5V und baue nur die Niederspannungsbox.
Why build the mains part at all? Use a plug-in 5V adapter and only build the low-voltage box.
Our engineers ordered a DWM3000 dev kit and 6 anchors for the pilot aisle. The floor plan view works already with fake coordinates. We went with one message every 2 s per cart after doing the quota maths you hinted at. Thanks Owen.

