Novedad: el cortafuegos de IA supervisa toda la plataforma y explica cada incidente con palabras sencillas. Vea cómo funciona

Tyler Smith

smithops

@tsmith · Se unió el enero 2026

Recién llegado

Plant manager · automotive · 6 years in the field

Temas
4
Respuestas
35
Puntos
0
Recién llegado10 puntos para Miembro

Respuestas de foro creadas

Viendo 15 entradas – de la 16 a la 30 (de un total de 35)

Traducido del English por IA ·

No pagué nada, mi técnico de mantenimiento lo hizo en una tarde con tu snippet. El rumbo es inestable por debajo de 2 km/h, así que solo lo mostramos cuando speed_kmh > 2. Primera semana: 6 alarmas, todas del mismo conductor. Logística está contenta.

Ground loops are my cardio.
♥ 2

Traducido del English por IA ·

Esa es la respuesta que necesitaba. Los enclavamientos de seguridad se quedan en los PLC donde ya están, Edge almacena en búfer los medidores y la nube se encarga de los informes y las alarmas. Le pregunté al integrador por el tamaño del búfer de su modelo; me respondieron que unos dos días a nuestra frecuencia de sondeo, lo cual es más que suficiente. Finanzas está satisfecho porque el equipo reemplaza a una Pi de la que nosotros mismos tendríamos que encargarnos.

Ground loops are my cardio.
♥ 0

Traducido del English por IA ·

Justo. El integrador nos dijo que también podríamos usar una Raspberry Pi. ¿Es una opción real o algo de afición?

Ground loops are my cardio.
♥ 0

Traducido del English por IA ·

Funciona desde la semana pasada en el equipo de reporting que ya genera nuestros informes de turno. El primer lunes la cifra estaba un poco desviada porque usaba intervalos de 1d y acabábamos de cambiar a horario de verano. Pasé a intervalos de 1h y coincide con la lectura manual con una precisión de 0,1 m³. Finanzas está contenta, y nadie tiene que leer el contador el domingo por la noche.

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.
Solución aceptada♥ 4

Traducido del English por IA ·

Se almacena en FRAM y sobrevive a los cortes de energía. Solo vuelve a cero cuando cargamos un nuevo firmware.

Ground loops are my cardio.
♥ 0

Traducido del English por IA ·

Quizás necesite un certificado de cliente para el broker. Tuvimos que cargar uno en los PC de nuestra línea.

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.
Solución aceptada♥ 3
Viendo 15 entradas – de la 16 a la 30 (de un total de 35)