MQTT-Driven IP-Relay Module

MQTT-driven IP-relay module, on which the variable part of the MQTT broker’s IP address is set by mechanical switches.
ORIGINAL POST
By iot4c
components
Hardware Components
DIP / SIP Switch, 8 Circuits
X 2
Software Apps and online services
Microsoft VS Code
STMicroelectronics STM32CUBEPROG
details

Capture1.JPG

MQTT is a perfect lightweight protocol for managing home electronic devices. The only thing that is not very convenient is the need to know the IP of the MQTT broker for all MQTT clients. Meanwhile this IP may well change in a home router (being a router will be replaced, in case of a failure with a router, or if a home NET’s topology will be changed), or in case of the replacing a MQTT computer with a new one.

It’s not very difficult to change the IP of the MQTT broker within MQTT clients codes (talking about DIY devices), but if this device was deployed a long time ago, it’s not so easy to recall all program code for making changes and restore all programming toolchains.

Described the MQTT-driven IP-relay module, on which the variable part of the MQTT broker’ IP address is set by mechanical switches, and in case of changing this address it is not necessary to change the program of the relay module. This IP-relay module is wired to the home router, that is located in the same cabinet with AC contactors for end devices.

As this module intended for the management of the DIN AC relays with the electric latching, the “IPRelay/Pulse” MQTT message was programmed within the sketch. Of course, any MQTT messages can be programmed.

See “Diary” for details.

Capture1.JPG

MQTT is a perfect lightweight protocol for managing home electronic devices. The only thing that is not very convenient is the need to know the IP of the MQTT broker for all MQTT clients. Meanwhile this IP may well change in a home router (being a router will be replaced, in case of a failure with a router, or if a home NET’s topology will be changed), or in case of the replacing a MQTT computer with a new one.

It’s not very difficult to change the IP of the MQTT broker within MQTT clients codes (talking about DIY devices), but if this device was deployed a long time ago, it’s not so easy to recall all program code for making changes and restore all programming toolchains.

Described the MQTT-driven IP-relay module, on which the variable part of the MQTT broker’ IP address is set by mechanical switches, and in case of changing this address it is not necessary to change the program of the relay module. This IP-relay module is wired to the home router, that is located in the same cabinet with AC contactors for end devices.

As this module intended for the management of the DIN AC relays with the electric latching, the “IPRelay/Pulse” MQTT message was programmed within the sketch. Of course, any MQTT messages can be programmed.

See “Diary” for details.

COMMENTS

Please Login to comment
  Subscribe  
Notify of
POSTED BY
TAGS
Reusable S/W