tyler_plc
@tylermurray · Membre depuis août 2026
Automation engineer · oil and gas
- Sujets
- 2
- Réponses
- 12
- Points
- 0
Toutes mes réponses sur les forums
Traduit de English par IA ·
Existe-t-il une version où la page 2 affiche le schéma de procédé du site ?
Is there a version where page 2 shows the site’s process diagram?
Traduit de English par IA ·
Notre automate de test répond à sys.ping, l’historique affiche Successful ainsi que la durée. Il m’a fallu une heure pour comprendre qu’il faut se réabonner après chaque reconnexion, je ne le faisais qu’une seule fois au démarrage.
Got our test PLC answering sys.ping, history shows Successful and the duration. Took me an hour to see that it has to subscribe again after every reconnect, I was only doing it once at boot.
Traduit de English par IA ·
Que reçoit réellement l’appareil ? J’écris la partie automate la semaine prochaine.
What does the device actually receive? Writing the PLC side next week.
Traduit de English par IA ·
Le moins cher consiste à prendre n’importe quel ESP32 + un module W5500 + un splitter 802.3af qui délivre 5 V. Environ 15 au total. Beaucoup de câbles volants, par contre, et les cartes W5500 sont capricieuses avec le 3,3 V.
Cheapest is any ESP32 + a W5500 module + an 802.3af splitter that outputs 5 V. Maybe 15 total. Lots of jumper wires though, and the W5500 boards are picky about 3.3 V.
Traduit de English par IA ·
Longueur (cellules). Je l’avais complètement manqué, merci.
Length (cells). Missed it completely, thanks.
Traduit de English par IA ·
Bon timing, je dessine une ligne de tri cette semaine. Peut-on étirer un convoyeur ou seulement le mettre à l’échelle ? Quand j’agrandis un tapis pour le rallonger, les rouleaux deviennent énormes et ça fait bizarre.
Good timing, I am drawing a sorting line this week. Can a conveyor be stretched or only scaled? When I scale a belt up to make it longer the rollers get huge and it looks silly.
Traduit de English par IA ·
CONNACK 4 alors que l’onglet Log de votre propre organisation est vide est un indice important. Votre organisation n’a jamais vu ces connexions.
CONNACK 4 with nothing in your own Log tab is a big hint. Your org never saw those logins.
Traduit de English par IA ·
Boucle de polling en place, n atteint 3 au deuxième ou troisième essai, soit environ 20-30 ms. Deux jours sans trou. J’envoyais aussi 0 en cas d’échec, ce qui explique les étranges chutes sur le graphique. Merci Daniel.
Polling loop in, n hits 3 on the second or third try, so about 20-30 ms. Two days without a hole. I was also sending 0 on failures, which explains the weird dips on the chart. Thanks Daniel.
Traduit de English par IA ·
Il y a déjà du 4,7k sur le breakout, et le scanner ne rate jamais rien, donc je doute du câblage.
4.7k on the breakout already, and the scanner never misses, so I doubt wiring.
Traduit de English par IA ·
Le point d’Emily fait partie du problème. Le reste, c’est le jeu de permutation des UART du Pi 3, qui piège tout le monde.Les Pi 3/4/Zero W disposent de deux UART. ttyAMA0 est le PL011, le bon, avec sa propre horloge. ttyS0 est le mini UART, dont le débit en bauds est dérivé de l’horloge du cœur VPU ; quand l’horloge du cœur varie, le débit dérive, et c’est exactement ce qui provoque vos erreurs CRC une fois sur cinq. Sur ces modèles, le PL011 est par défaut relié au Bluetooth intégré et l’en-tête GPIO reçoit le mini UART. /dev/serial0 est un alias qui pointe toujours vers celui qui se trouve sur GPIO14/15.Donc, selon votre configuration, vous parliez soit à la puce Bluetooth, soit au mini UART. Rendez le PL011 à l’en-tête :
# /boot/firmware/config.txt (Bookworm)
enable_uart=1
dtoverlay=disable-bt
sudo systemctl disable hciuart
# et supprimez console=serial0,115200 de /boot/firmware/cmdline.txt
sudo reboot
Ensuite, ouvrez /dev/serial0 dans votre script, pour que tout continue de fonctionner si vous passez à un autre modèle. Vous perdez le Bluetooth intégré, ce qui, sur un boîtier de relevé de compteurs, ne vous manquera pas.Si vous avez besoin du Bluetooth, l’autre option est core_freq=250 pour figer l’horloge du mini UART, mais je préfère nettement le PL011.
Emily’s bit is part of it. The rest is the Pi 3 UART shuffle, which catches everyone.
The Pi 3/4/Zero W have two UARTs. ttyAMA0 is the PL011, the good one with its own clock. ttyS0 is the mini UART, whose baud rate is derived from the VPU core clock, so when the core clock moves the baud drifts and you get exactly your one-in-five CRC errors. On those models the PL011 is wired to the onboard Bluetooth by default and the GPIO header gets the mini UART. /dev/serial0 is an alias that always points at whichever one is on GPIO14/15.
So depending on your config you were either talking to the Bluetooth chip or to the mini UART. Give the PL011 back to the header:
# /boot/firmware/config.txt (Bookworm)
enable_uart=1
dtoverlay=disable-bt
sudo systemctl disable hciuart
# and remove console=serial0,115200 from /boot/firmware/cmdline.txt
sudo reboot
Then open /dev/serial0 in your script, so it keeps working if you move to another model. You lose onboard Bluetooth, which on a meter-reading box you don’t miss.
If you need Bluetooth, the other option is core_freq=250 to pin the clock for the mini UART, but I’d rather have the PL011.
Good explanation Ciaran, saving this for the next new hire.
Yep, a 4G router in each one. Signal is fine at most of them, marginal at two.

