thompsonfw
@mthompson · Membre depuis août 2025
Embedded developer · agriculture · 4 years in the field
- Sujets
- 5
- Réponses
- 24
- Points
- 0
Toutes mes réponses sur les forums
Traduit de English par IA ·
Arrivée au bon moment. J’ai un Pi 4 qui lit six compteurs d’énergie via RS-485 avec pymodbus. Vers quel topic partent les relevés, et les compteurs ont-ils besoin de leurs propres tokens ?
Perfect timing. I have a Pi 4 reading six energy meters over RS-485 with pymodbus. Which topic do the readings go to, and do the meters need their own tokens?
Traduit de English par IA ·
Bien que Timed out soit formulé comme « outcome unknown » et non comme failed, c’est une bonne chose. Sur une liaison cellulaire faible, nos cartes exécutent souvent la commande du relais, et c’est la réponse qui se perd.
Good that Timed out is worded as « outcome unknown » and not as failed. On a weak cell link our boards often run the relay command and the reply is what gets lost.
Traduit de English par IA ·
Aisha a raison. Et le piège, c’est l’écosystème : très peu de compteurs le parlent, vous seriez donc lié à ce seul fournisseur pour les compteurs aussi. Les compteurs LoRaWAN sont disponibles sur étagère chez une douzaine de fabricants.
Aisha’s right. And the catch is the ecosystem: very few meters speak it, so you’d be tied to that one vendor for the meters too. LoRaWAN meters are on the shelf from a dozen makers.
Traduit de English par IA ·
Bien. Si les pompes doivent un jour recevoir des commandes, gardez à l’esprit qu’une mesure regroupée sur 15 minutes ne retarde pas celles-ci : elles arrivent par la session ouverte.
Nice. If the pumps ever need commands, keep in mind a reading batched for 15 minutes doesn’t delay those, they come down the open session.
Traduit de English par IA ·
Votre collègue #2 a probablement raison. Un handshake TLS complet coûte des kilo-octets, un ping keepalive est minuscule.
Your colleague #2 is probably right. A full TLS handshake costs kilobytes, a keepalive ping is tiny.
Traduit de English par IA ·
La corruption de la carte SD en cas de coupure de courant est la panne classique du Pi. Le système de fichiers overlay via raspi-config (Performance Options > Overlay File System) fonctionne bien.
SD corruption on power loss is the classic Pi failure. Overlay FS through raspi-config (Performance Options > Overlay File System) works well.
Traduit de English par IA ·
Pour les pucks : installez la passerelle en hauteur et aussi près que possible. L’asphalte plus une voiture au-dessus absorbent beaucoup de signal. Au départ, nous avons vu SF12 sur la moitié de nos capteurs enterrés. Vérifiez le journal des trames pour les RSSI/SNR de chaque capteur avant de valider une place.
For the pucks: mount the gateway high and as close as you can, asphalt plus a car on top eats a lot of signal. We saw SF12 on half our in-ground sensors at first. Check the frames log for RSSI/SNR per sensor before you sign off any bay.
Moved to GPIO 26 with the HIGH-before-OUTPUT trick, no more click across 20 reboots. Bound the switch to pump_state and the firmware reports after switching. I had the old-reading option but not the unknown-state one, so the card was still clickable right after a restart. Both ticked now.
Ah. Any pin that stays quiet at boot?
WiFiManager does all of that for you, including custom fields on the page.
Built it last week. 2x2x0.5 shielded, auto-direction 485 modules, buck converters to 5 V at each Nano. All twelve answer at 19200 with zero CRC errors over two days. I forgot the bias resistors at first and got junk on node 11 (the far end) when the bus idled, adding them fixed it. Children show up in Hermetry as bench-01 to bench-12 under the gateway.
Could, but 12 radios and their power is more cost than a cable, and I want mains-powered nodes anyway.
That clears it up. Kept the footprints, fitting the crystal, and borrowed a NanoVNA for the matching once the enclosures arrive. The first prototype with only the 0 Ω in series already reaches the coordinator from 60 m, so the tuning should only make it better.
Traduit de English par IA ·
Sans rapport avec le problème de menu, mais assurez-vous que l’ESP32 ne fait que envoyer une impulsion au relais et ne le maintient jamais enclenché, et que les fins de course et le bord de sécurité propres au contrôleur de porte sont ce qui l’arrête. Le bouton de la carte doit être un confort, pas la sécurité.
Unrelated to the menu thing, but make sure the ESP32 only ever pulses and never holds the relay, and that the door controller’s own limit switches and safety edge are what stop it. The board button should be a convenience, not the safety.
Got two STM32WL modules running on a test probe. The PIC sends three AT commands per reading over its spare UART, joins OTAA fine, and moisture shows up in Hermetry through a table codec. 28 to go. Thanks.

