liam96
@liam-price · Membre depuis février 2025
Engineering student · university · new to IoT
- Sujets
- 8
- Réponses
- 13
- Points
- 0
Toutes mes réponses sur les forums
Traduit de English par IA ·
Le correctif raw -= 65536 fonctionne, Hermetry affiche maintenant -12.5 et le graphique ne saute plus à 6000. Les 6541 points d’hier sont toujours dans l’historique, mais tout ce qui est nouveau est juste lol. Merci 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.
Traduit de English par IA ·
Ça explique tout, merci Ciaran. Nous avons remplacé les détecteurs NPN par des PNP (le labo en avait), la porte et le contacteur à flotteur passent de +24 V vers les entrées, les quatre affichent maintenant 0/1 dans Hermetry.
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.
Traduit de English par IA ·
Nous n’avons besoin que des états marche/arrêt, sans comptage. Bon à savoir quand même.
We only need on/off states, no counting. Good to know though.
Traduit de English par IA ·
Réglé, mais il y avait deux problèmes ! L’onglet Log affichait keepalive_timeout ET « Taken over by a new session ». Mon premier prototype sur breadboard était encore branché à un chargeur USB à la maison avec le même token. Je l’ai débranché, passé à la version millis(), et l’appareil est en ligne depuis 6 heures.
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.
Traduit de English par IA ·
J’ai fait fonctionner le tout sur le four de laboratoire avec le script de clark.c et une expiration de 10 minutes côté Pi. Mon premier déploiement ne s’est pas déclenché parce que j’avais placé les blocs avant « Enregistrer la télémétrie », sur la mauvaise branche ; je les ai déplacés après. Je laisse la demande ouverte au cas où une version sans code verrait le jour, mais le flux fait le travail pour ma thèse.
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.
Traduit de English par IA ·
ça marche !!! testé depuis le bus. Un point qui m’a piégé : j’ai d’abord créé la commande en Privileged parce qu’elle commute le secteur, et l’interrupteur de la carte indiquait qu’elle ne pouvait pas être envoyée depuis une carte. Je l’ai passée en Basic et ça a fonctionné. Sinon, je m’abonne maintenant dans on_connect comme tu l’as écrit ; avant, ça cessait de fonctionner après une coupure du Wi-Fi du Pi.
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.
Traduit de English par IA ·
Ah, donc le cloud peut répondre à l’appareil ? Mais comment le téléphone intervient-il dans tout ça ?
oh so the cloud can talk back to it? How does the phone come into it though?
Traduit de English par IA ·
Passé en mode API avec 10 échantillons par trame, la partie radio est propre maintenant, aucune trame perdue en 20 minutes. Le Pi envoie les valeurs RMS et crête x/y/z une fois par seconde. Mon superviseur préfère en fait le graphique RMS. Je ne connaissais pas du tout les limites par appareil, ce qui explique les avertissements.
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.
Traduit de English par IA ·
Oui. Un Serial.println par échantillon.
Yes. One Serial.println per sample.
Traduit de English par IA ·
Cela pourrait-il être un conflit de bibliothèques avec la bibliothèque MQTT ?
Could it be a library conflict with the MQTT lib?
Traduit de English par IA ·
Ah super, je ne connaissais pas du tout dtostrf
oh nice, didn’t know about dtostrf at all
Traduit de English par IA ·
Est-ce un paramètre printf dans l’IDE ? Je crois qu’il y a un flag pour les floats quelque part
is it a printf setting in the IDE? I think there’s a flag for floats somewhere
Traduit de English par IA ·
Cela m’aide beaucoup. Je crois que je confondais « chiffrement » et « protocole ». Nouveau plan pour le chapitre pratique : comparer SPECK64/128 à ChaCha20 sur l’ATmega328P (cycles par octet, flash, RAM), et garder les ESP32 en TLS classique vers le broker. Mon directeur a ri quand je lui ai expliqué la partie échange de clés à propos de « à la place de TLS », donc je pense qu’il plaisantait de toute façon.
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.

