Hi everyone, I’m prototyping a smart meter interface using an ESP32 to read DLMS/COSEM data over RS-485 and then relay that information via MQTT. For inspiration on reliable multi-node communication, I found this guide on ESP-NOW peer-to-peer networking really insightful:
https://www.theengineeringprojects.com/2022/01/esp-now-protocol-with-es…
I’ve also reviewed Gurux’s own DLMS implementation examples and came across a community Arduino–ESP32 RS-485 telemetry setup that emphasizes buffer management. My main challenge is ensuring stable DLMS frame parsing and MQTT transmission without timing conflicts. Has anyone used ESP32 in production with DLMS, how did you manage serial buffering, task prioritization, and recovery from communication errors?
Hi, When you receive MQTT…
Hi,
When you receive MQTT message, you must establish the connection to the meter and read data. Then close the connection.
You can't leave the connection open, because there is an inactivity timeout and the meter will close the connection after that time.
https://gurux.fi/Gurux.DLMS.Objects.GXDLMSIecHdlcSetup
BR,
Mikko