liam96
@liam-price · Mitglied seit Februar 2025
Engineering student · university · new to IoT
- Themen
- 8
- Antworten
- 13
- Punkte
- 0
Erstellte Forenantworten
Von English mit KI übersetzt ·
Der raw -= 65536-Fix funktioniert, Hermetry zeigt jetzt -12.5 an, und das Diagramm springt nicht mehr auf 6000. Die gestrigen 6541 Punkte stehen noch im Verlauf, aber alles Neue ist richtig lol. Danke Aoife.
The raw -= 65536 fix works, Hermetry shows -12.5 now and the chart doesn’t jump to 6000 anymore. Yesterday’s 6541 points are still sitting in the history, but everything new is right lol. Thanks Aoife.
Von English mit KI übersetzt ·
Das erklärt es, danke Ciaran. Wir haben die NPN-Näherungsschalter gegen PNP-Typen getauscht (das Labor hatte welche), Tür- und Schwimmerschalter gehen nun von +24 V auf die Eingänge, alle vier zeigen in Hermetry jetzt 0/1.
That explains it, thanks Ciaran. We swapped the NPN proxes for PNP ones (the lab had some), the door and float switch go from +24 V to the inputs, all four show 0/1 in Hermetry now.
Von English mit KI übersetzt ·
Wir brauchen nur Ein/Aus-Zustände, keine Zählung. Trotzdem gut zu wissen.
We only need on/off states, no counting. Good to know though.
Von English mit KI übersetzt ·
Behoben, aber es waren zwei Dinge! Im Log-Tab stand keepalive_timeout UND „Taken over by a new session“. Mein erster Breadboard-Prototyp war zu Hause noch mit demselben Token an einem USB-Ladegerät angeschlossen. Abgesteckt, auf die millis()-Version umgestellt, und das Gerät ist seit 6 Stunden online.
Fixed, but it was two things! Log tab showed keepalive_timeout AND „Taken over by a new session“. My first breadboard prototype was still plugged into a USB charger at home with the same token. Unplugged it, switched to the millis() version, and the device has been online for 6 hours.
Von English mit KI übersetzt ·
Auf dem Laborofen mit dem Skript von clark.c und einem Ablauf von 10 Minuten auf der Pi-Seite läuft es jetzt. Mein erster Deploy hat nicht ausgelöst, weil ich die Blöcke auf dem falschen Zweig vor „Telemetrie speichern“ platziert hatte; ich habe sie danach verschoben. Die Anfrage lasse ich offen, falls irgendwann eine No-Code-Version erscheint, aber der Flow erledigt die Aufgabe für meine Abschlussarbeit.
Got it working on the lab furnace with clark.c’s script and a 10-minute expiry on the Pi side. My first deploy didn’t fire because I’d put the blocks before Save telemetry on the wrong branch, moved them after it. Leaving the request open in case a no-code version ever appears, but the flow does the job for my thesis.
Von English mit KI übersetzt ·
es funktioniert!!! Vom Bus aus getestet. Eine Sache hat mich aufgehalten: Ich habe den Befehl zuerst als Privileged erstellt, weil er Netzspannung schaltet, und der Schalter auf dem Board meldete nur, dass er nicht von einem Board gesendet werden kann. Auf Basic umgestellt, dann ging es durch. Außerdem abonniere ich jetzt in on_connect, wie du geschrieben hast; vorher hat es aufgehört zu funktionieren, nachdem das WLAN des Pi kurz ausgefallen war.
it works!!! tested from the bus. One thing that tripped me: I first made the command Privileged because it switches mains and the switch on the board just said it can’t be sent from a board. Changed it to Basic and it went through. Also I subscribe in on_connect now like you wrote, before it stopped working after the Pi’s Wi-Fi blipped.
Von English mit KI übersetzt ·
Ach so, die Cloud kann also zurücksprechen? Wie kommt das Handy dabei aber ins Spiel?
oh so the cloud can talk back to it? How does the phone come into it though?
Von English mit KI übersetzt ·
Auf API-Modus umgestellt, mit 10 Samples pro Frame. Die Funkseite läuft jetzt sauber, in 20 Minuten keine verlorenen Frames. Der Pi sendet x/y/z-RMS und Spitzenwerte einmal pro Sekunde. Mein Vorgesetzter bevorzugt eigentlich das RMS-Diagramm. Von den Limits pro Gerät wusste ich gar nichts, das erklärt die Warnungen.
Switched to API mode with 10 samples per frame and the radio side is clean now, no lost frames in 20 minutes. The Pi sends x/y/z RMS and peak once a second. My supervisor actually prefers the RMS chart. I didn’t know about the per-device limits at all, that explains the warnings.
Von English mit KI übersetzt ·
Ja. Ein Serial.println pro Messwert.
Yes. One Serial.println per sample.
Von English mit KI übersetzt ·
Könnte es ein Bibliothekskonflikt mit der MQTT-Bibliothek sein?
Could it be a library conflict with the MQTT lib?
Von English mit KI übersetzt ·
Oh, super, von dtostrf hatte ich überhaupt keine Ahnung
oh nice, didn’t know about dtostrf at all
Von English mit KI übersetzt ·
Ist das eine printf-Einstellung in der IDE? Ich glaube, irgendwo gibt es ein Flag für Floats
is it a printf setting in the IDE? I think there’s a flag for floats somewhere
Von English mit KI übersetzt ·
Das hilft mir sehr. Ich glaube, ich hatte „Chiffre“ und „Protokoll“ im Kopf durcheinandergebracht. Neuer Plan für das praktische Kapitel: SPECK64/128 gegen ChaCha20 auf dem ATmega328P benchmarken (Zyklen pro Byte, Flash, RAM), und die ESP32 weiterhin über normales TLS mit dem Broker verbinden. Mein Betreuer hat über den Teil „statt TLS“ gelacht, als ich ihm den Schlüsselaustausch erklärt habe, also hat er wohl sowieso gescherzt.
This helps a lot. I think I had „cipher“ and „protocol“ mixed up in my head. New plan for the practical chapter: benchmark SPECK64/128 against ChaCha20 on the ATmega328P (cycles per byte, flash, RAM), and keep the ESP32s on normal TLS to the broker. My supervisor laughed at the „instead of TLS“ part when I explained the key exchange bit, so I think he was joking anyway.

