kevin.cto
@kevinharris · Se unió el junio 2025
Startup founder · logistics · new to IoT
- Temas
- 10
- Respuestas
- 54
- Puntos
- 0
Respuestas de foro creadas
Traducido del English por IA ·
¿Entonces mis 30 y pico boards personales no descuentan de los 5?
So my 30-odd personal boards don’t eat into the 5?
Traducido del English por IA ·
¿No podrías capturar la señal de 868 MHz del teclado con un SDR y reproducirla desde la Pi?
Couldn’t you capture the 868 MHz signal from the keypad with an SDR and replay it from the Pi?
Traducido del English por IA ·
¿Se registra eso de forma permanente en algún lugar, o solo mientras está ocurriendo?
Is that logged anywhere permanently, or only while it’s happening?
Traducido del English por IA ·
¿No sería más fácil poner simplemente un ESP32 barato en cada rack? Es lo que haría yo, pero no soy un experto en hardware.
Would it be easier to just put a cheap ESP32 on each rack? That’s what I’d do but I’m not a hardware guy.
Traducido del English por IA ·
¿El mapa guarda un rastro de por dónde ha estado o solo el último punto?
Does the map keep a trail of where it’s been or only the latest point?
Traducido del English por IA ·
vale, eso es en realidad mejor que nuestra configuración de VPN
ok that’s actually nicer than our VPN setup
Traducido del English por IA ·
¿No puedes simplemente conectarte por VPN a la red de la granja en su lugar?
Can’t you just VPN into the farm network instead?
Traducido del English por IA ·
¿Las resistencias pull-up? Tenía lecturas inestables hasta que añadí 4.7k
pull-ups? I had flaky reads until I added 4.7k
Traducido del English por IA ·
Lo medí el año pasado en nuestros rastreadores de remolques, porque la factura de la operadora era absurda. Cifras aproximadas a partir de capturas de paquetes con un SIM7600, TLS 1.2 y el broker de la plataforma:
- reconexión completa (handshake TCP + TLS con cadena de certificados + CONNECT + SUBSCRIBEs): unos 5 a 6 KB
- un ida y vuelta de keepalive (PINGREQ/PINGRESP dentro de TLS, más cabeceras TCP/IP y ACKs): entre 150 y 200 bytes aproximadamente
- su lectura de 80 bytes como publicación QoS 1 dentro de TLS con PUBACK: también un par de cientos de bytes
Así que reconectar cada 5 minutos costaría unos 8.640 handshakes al mes, más de 45 MB. Mucho peor. Un keepalive de 60 son 43.200 pings al mes, unos 8 MB. Eso es una parte importante de sus 25 MB.Lo que nos funcionó:Keepalive de hasta 300 s (el broker sirve cualquier valor por encima de su máximo como 300 de todos modos). Eso reduce los pings a una quinta parte. Compruebe que su operadora no cierra las sesiones NAT inactivas más rápido; las nuestras aguantaban 6 minutos, algunas se cierran a los 2 o 4. Si ve keepalive_timeout en la pestaña Log del dispositivo, bájelo.Agrupar. En lugar de una publicación cada 5 minutos, almacene 3 lecturas y envíelas como un único array con marcas de tiempo (el ESP32 tiene NTP, así que ts es válido):
[{"ts":1762336800000,"values":{"flow":12.1,"pressure":2.4,"pump":1}},
{"ts":1762337100000,"values":{"flow":12.3,"pressure":2.4,"pump":1}},
{"ts":1762337400000,"values":{"flow":11.9,"pressure":2.3,"pump":1}}]
Los mismos datos, una sola publicación, y además cuenta como un mensaje frente a la cuota mensual en lugar de tres.Busque extras que generen tráfico innecesario. En nuestro caso lo peor era que el firmware enviaba atributos de cliente (IP, RSSI, versión de firmware) en cada publicación. Envíelos solo cuando cambien.Sobre el estado sin conexión: con Live connection como regla de conexión, los dispositivos permanecen en línea mientras la sesión MQTT esté abierta, así que con keepalive 300 no cambia nada. Si alguna vez pasa al esquema conectar-enviar-desconectar, cámbielos a un perfil con Recent message; de lo contrario, aparecerán como desconectados entre envíos.
I measured this on our trailer trackers last year because our carrier bill was silly. Rough numbers from packet captures on a SIM7600, TLS 1.2, the platform’s broker:
- full reconnect (TCP + TLS handshake with certificate chain + CONNECT + SUBSCRIBEs): about 5 to 6 KB
- one keepalive round trip (PINGREQ/PINGRESP inside TLS, plus TCP/IP headers and ACKs): roughly 150 to 200 bytes
- your 80-byte reading as a QoS 1 publish inside TLS with PUBACK: also a couple of hundred bytes
So reconnecting every 5 minutes would cost about 8,640 handshakes a month, 45+ MB. Way worse. Keepalive 60 is 43,200 pings a month, around 8 MB. That’s a big chunk of your 25 MB.
What worked for us:
Keepalive up to 300 s (the broker serves anything above its maximum at 300 anyway). That cuts pings by five. Check your carrier doesn’t drop idle NAT sessions faster; ours held 6 minutes, some drop at 2 to 4. If you see keepalive_timeout in the device’s Log tab, step it down.
Batch. Instead of one publish every 5 minutes, buffer 3 readings and send them as one array with timestamps (ESP32 has NTP, so ts is fine):
[{"ts":1762336800000,"values":{"flow":12.1,"pressure":2.4,"pump":1}},
{"ts":1762337100000,"values":{"flow":12.3,"pressure":2.4,"pump":1}},
{"ts":1762337400000,"values":{"flow":11.9,"pressure":2.3,"pump":1}}]
Same data, one publish, and it also counts as one message against the monthly quota instead of three.
Look for chatty extras. In our case the worst was the firmware sending client attributes (IP, RSSI, firmware version) on every publish. Only send them on change.
On offline: with Live connection as the online rule they stay online as long as the MQTT session is open, so with keepalive 300 nothing changes. If you ever do go connect-send-disconnect, switch them to a profile with Recent message, otherwise they’d show offline between sends.
Repacked it to 23 bytes (Daniel’s int32 trick) and turned ADR off on the tracker profile. A trailer 9 km out came through on SF11 all afternoon. I also finally get what a chip is.
Facepalm. Missing callbacks on node2, that was all. Both read every second now, and both meters showed up as their own devices in Hermetry. Thanks Ciaran!
Yes, set it to 2 on the front panel. If I swap and read only meter 2 with node (id 1 changed to 2) it works.
Maybe cast it to a String first? String s = (char*)payload;
Traducido del English por IA ·
¿Por qué construir la parte de red en absoluto? Usa un adaptador de 5V enchufable y construye solo la caja de baja tensión.
Why build the mains part at all? Use a plug-in 5V adapter and only build the low-voltage box.
Our engineers ordered a DWM3000 dev kit and 6 anchors for the pilot aisle. The floor plan view works already with fake coordinates. We went with one message every 2 s per cart after doing the quota maths you hinted at. Thanks Owen.

