Nouveau : le pare-feu IA surveille toute la plateforme et explique chaque incident en termes simples. Découvrez comment ça marche

Tyler Smith

smithops

@tsmith · Membre depuis janvier 2026

Nouveau

Plant manager · automotive · 6 years in the field

Sujets
4
Réponses
35
Points
0
Nouveau10 points pour Membre

Toutes mes réponses sur les forums

15 sujets de 16 à 30 (sur un total de 35)

Traduit de English par IA ·

Je n’ai rien payé, mon technicien de maintenance s’en est occupé en un après-midi avec votre snippet. Le cap est instable en dessous de 2 km/h, donc nous ne l’affichons que lorsque speed_kmh > 2. Première semaine : 6 alarmes, toutes pour le même conducteur. La logistique est contente.

Ground loops are my cardio.
♥ 2

Traduit de English par IA ·

C’est la réponse dont j’avais besoin. Les verrouillages de sécurité restent dans les automates où ils se trouvent déjà, Edge met en tampon les compteurs, et le cloud se charge du reporting et des alarmes. J’ai demandé à l’intégrateur la taille du tampon de leur modèle ; ils m’ont répondu environ deux jours à notre cadence d’interrogation, ce qui est largement suffisant. La finance est satisfaite, car ce boîtier remplace un Pi dont nous aurions dû nous occuper nous-mêmes.

Ground loops are my cardio.
♥ 0

Traduit de English par IA ·

Juste. L’intégrateur nous a dit qu’on pourrait aussi utiliser un Raspberry Pi. Est-ce une option sérieuse ou un truc de bricolage ?

Ground loops are my cardio.
♥ 0

Traduit de English par IA ·

En service depuis la semaine dernière sur le boîtier de reporting qui gère déjà nos rapports de poste. Le premier lundi, la valeur était un peu décalée car j’utilisais des tranches de 1d et nous venions de passer à l’heure d’été. Je suis passé à des tranches de 1h et elle correspond à la lecture manuelle à 0,1 m³ près. Le service financier est satisfait, et personne ne relève plus le compteur le dimanche soir.

Ground loops are my cardio.
♥ 1

Two bugs, and a third waiting to happen. I did nearly this exact thing on a test rig years ago.

1. On the slave, each Wire.write() inside onRequest on AVR replaces the buffer instead of adding to it in some library versions, and the order of evaluation in (Wire.read() << 8) | Wire.read() on the master isn’t defined in C++, so the bytes can come out swapped.

2. The stray single byte shifts everything if the counts ever disagree.

Do it with one struct on both sides and one write:

struct __attribute__((packed)) Packet {
  uint16_t m1, m2;
  int16_t  t_x100;      // 23.47 C -> 2347, no float on the wire
  uint8_t  seq;
};
// slave
void onRequest() { Wire.write((uint8_t*)&pkt, sizeof(pkt)); }
// master
Packet p;
if (Wire.requestFrom(8, sizeof(p)) == sizeof(p))
  Wire.readBytes((uint8_t*)&p, sizeof(p));
float t = p.t_x100 / 100.0;

Scaled integers avoid any float layout question if the slave ever becomes an ESP or an STM32. The seq byte tells you if you’re reading a stale packet. And on the ESP32 side, skip the key entirely if a reading is invalid instead of sending NaN, NaN isn’t valid JSON anyway.

Ground loops are my cardio.
Solution acceptée♥ 4

Traduit de English par IA ·

La valeur est stockée dans une FRAM et survit aux coupures de courant. Elle ne revient à zéro que lorsque nous flashons un nouveau firmware.

Ground loops are my cardio.
♥ 0

Traduit de English par IA ·

Peut-être avez-vous besoin d’un certificat client pour le broker ? Nous avons dû en charger un sur nos PC de ligne.

Ground loops are my cardio.
♥ 0

Not a dead end at all, the « communicating » part just moves to a box next to it. We have a press line from the 90s that reports like this.

Hermetry Edge runs on licensed gateways and reads field devices on site, Modbus RTU over RS-485 and Modbus TCP among them, depending on the gateway model. So you put an analog-to-Modbus I/O module next to the skid: 4-20 mA input for the level, a digital input for the float, and a counter input for the pump pulses. Edge reads the module and each field device shows up in Hermetry as its own child device with readings, alarms and boards. The gateway dials out over TLS with its own certificate, you claim it with the code from its local Cloud page.

Pulse counting directly on the gateway’s own digital inputs depends on the model, so check the model’s specification first. If it doesn’t count, the I/O module does.

The alarm lamp comparator can stay as it is. Wire its output into a digital input too, so you see the lamp state remotely.

What you don’t get from analog gear: timestamps, local logic and buffering at the sensor. The gateway adds the time when it reads, and licensed gateways can buffer while the link is down, but how much depends on the model. Read Licensed gateways and Hermetry Edge before you pick one.

Ground loops are my cardio.
Solution acceptée♥ 3
15 sujets de 16 à 30 (sur un total de 35)