La forma más barata de enviar datos desde mi taller con una placa alimentada por PoE
Traducido del English por IA ·
Vale, soy un principiante total, sed indulgentes. Tengo un taller/granero independiente a unos 40 m de la casa con un cableado Cat6 ya instalado (lo hizo el dueño anterior, gracias por ello). Allí no hay WiFi decente y realmente no quiero tender una línea de red eléctrica para una pequeña caja de sensores.El plan es temperatura + humedad y quizá un interruptor de puerta, enviando los datos a Hermetry. Me creé una cuenta y conseguí que funcionara el «connect your first device» con mosquitto_pub desde mi portátil, así que esa parte está bien.Lo que no consigo resolver es el hardware. ¿Hay algún microcontrolador barato que simplemente reciba alimentación por PoE? Veo shields Ethernet para Arduino con módulos PoE, placas ESP32 con Ethernet, gente que usa splitters… Tengo un switch PoE de TP-Link en casa. El presupuesto ronda los 30-40 dólares. ¿Cuál elegiríais y le importa realmente a Hermetry que sea Ethernet en lugar de WiFi?
ok so total beginner here, be gentle. I have a detached workshop/barn about 40 m from the house with a Cat6 run already in it (previous owner did it, thank you previous owner). No good WiFi out there and I really don’t want to run mains for a little sensor box.
Plan is temperature + humidity and maybe a door switch, sending to Hermetry. I made an account and got the «connect your first device» thing working with mosquitto_pub from my laptop so that part is ok.
What I can’t figure out is the hardware. Is there a cheap microcontroller that just takes PoE? I see Arduino Ethernet shields with PoE modules, ESP32 boards with Ethernet, people using splitters… I’ve got a TP-Link PoE switch in the house. Budget is like 30-40 bucks. Which one would you pick and does it even matter to Hermetry if it’s Ethernet instead of WiFi?
Traducido del English por IA ·
Lo más barato es cualquier ESP32 + un módulo W5500 + un splitter 802.3af que entregue 5 V. Unos 15 en total. Eso sí, muchos cables puente, y las placas W5500 son exigentes con los 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.
Traducido del English por IA ·
Compre lo que compre, asegúrese de que sea un 802.3af/at real y no un «passive PoE». En la planta quemamos dos placas con un inyector pasivo de 24 V que alguien encontró en un cajón. Su switch negociará correctamente; los inyectores baratos no.
Whatever you buy, make sure it is real 802.3af/at and not «passive PoE». We cooked two boards at the plant with a 24 V passive injector somebody found in a drawer. Your switch will negotiate properly, cheap injectors won’t.
Traducido del English por IA ·
¿A Hermetry le importa si es Ethernet o WiFi? Supuse que el dispositivo tiene que usar WiFi para usar MQTT
Does Hermetry care if it’s Ethernet or WiFi? I assumed the device has to be WiFi to use MQTT
Traducido del English por IA ·
Sí, esa también era mi duda. Mi switch es un TL-SG1005P, así que supongo que es 802.3af. La opción de Tyler me parece un poco complicada, la verdad, prefiero una sola placa.
yeah that was my question too. My switch is a TL-SG1005P so 802.3af I think. Tyler’s option looks fiddly for me tbh, I’d rather one board.
Traducido del English por IA ·
A Hermetry no le importa, solo ve una conexión TLS en el 8883 (o HTTPS en el 443). Ethernet o WiFi son invisibles para él.
Para una sola placa me quedaría con un Olimex ESP32-POE-ISO. Tengo tres en un invernadero. PoE aislado, Ethernet integrado, funciona con el core Arduino normal de ESP32. En ESP32 el Ethernet pasa por la misma pila de red que el WiFi, así que WiFiClientSecure y PubSubClient funcionan sin cambios:
#include <ETH.h>
#include <WiFiClientSecure.h>
#include <PubSubClient.h>
WiFiClientSecure net;
PubSubClient mqtt(net);
void setup() {
ETH.begin(); // valores por defecto del ESP32-POE-ISO
while (!ETH.linkUp()) delay(200);
net.setCACert(ROOT_CA); // CA pública, el host del broker tiene un certificado público
mqtt.setServer(BROKER_HOST, 8883); // NOMBRE del host, no IP (SNI)
}
void loop() {
if (!mqtt.connected()) mqtt.connect("barn-01", ACCESS_TOKEN, NULL);
mqtt.loop();
// cada 60 s:
// mqtt.publish("v1/telemetry", "{"temperature":7.4,"humidity":81}");
}
El token es el nombre de usuario, la contraseña va vacía. PubSubClient solo publica con QoS 0, que Hermetry acepta. Los pasos para el token están en Connect your first device.
Y en la versión no ISO no la alimentes por USB y PoE a la vez, así perdí un puerto USB de un portátil.
Hermetry doesn’t care, it only sees a TLS connection on 8883 (or HTTPS on 443). Ethernet or WiFi is invisible to it.
For one board I’d get an Olimex ESP32-POE-ISO. I have three in a greenhouse. Isolated PoE, Ethernet on board, works with the normal ESP32 Arduino core. On ESP32 the Ethernet goes through the same network stack as WiFi, so WiFiClientSecure and PubSubClient work unchanged:
#include <ETH.h>
#include <WiFiClientSecure.h>
#include <PubSubClient.h>
WiFiClientSecure net;
PubSubClient mqtt(net);
void setup() {
ETH.begin(); // ESP32-POE-ISO defaults
while (!ETH.linkUp()) delay(200);
net.setCACert(ROOT_CA); // public CA, broker host has a public cert
mqtt.setServer(BROKER_HOST, 8883); // host NAME, not IP (SNI)
}
void loop() {
if (!mqtt.connected()) mqtt.connect("barn-01", ACCESS_TOKEN, NULL);
mqtt.loop();
// every 60 s:
// mqtt.publish("v1/telemetry", "{"temperature":7.4,"humidity":81}");
}
Token is the username, password empty. PubSubClient only publishes QoS 0, which Hermetry accepts. Steps for the token are in Connect your first device.
And on the non-ISO version don’t power it from USB and PoE at the same time, I lost a laptop USB port that way.
Traducido del English por IA ·
actualización: pedí el POE-ISO, llegó el jueves. Me costó un rato porque tenía la IP del broker en setServer sacada de una prueba de ping, y TLS fallaba en silencio. Cambié al nombre de host y conectó al primer intento. Las temperaturas del granero ya están en mi panel, 6,8 C ahí dentro jaja. ¡gracias Aisha!
update: ordered the POE-ISO, it came Thursday. Took me a while because I had the IP of the broker in setServer from a ping test, TLS just failed silently. Switched to the host name and it connected first try. Temps from the barn are on my dashboard now, 6.8 C in there lol. thanks Aisha!
- Debes estar registrado para responder a este debate.
Únete a la conversación
Inicia sesión para preguntar y responder, dar me gusta a las publicaciones útiles y marcar la respuesta que resolvió tu problema. Cada aportación suma puntos y niveles.

