¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

Re: Crestron & Wiegand keypads


 

Hi Dean,

I threw the code on Github at? this morning.

The code comes as "Examples" you can compile with Arduino IDE and flash to ESP32 devices.? Edit the examples to add your WiFi credentials before flashing.

The Examples do nothing more than make a secure?connection to a free public MQTT server (HiveMQ), and report "Hello World" with the device MAC address and a counting number that increments every few seconds.? Upon success, you get serial messages, and a green light or message (assuming an LED or LCD to display it).? Upon failure, the hardware watchdog timer will force a hard reboot of the device.? You simply provide a WiFi SSID/password or an Ethernet connection to your flashed ESP32 device.

The goal is that you'll edit it to make a secure?connection to your own TCP / UDP / MQTT port, and edit it to report your?data to your?infrastructure.

I've already worked out WiFi, Ethernet, the secure connection over TLS (at least for MQTT), and everything.? The reason I'm highlighting secure is that I've already done the work to make sure that security works... you can disable it if you like... but out of the gate, we're using a good working certificate-based solution you can replace the certificate with your own, and don't have to "add security" as an afterthought.

My examples are centered around using M5Stack-branded ESP32 devices.? But you can use any, it's not hard tied to M5Stack... I just like their offering because (not only the low cost) but they're pre-populated into an enclosure and easy to slap into a rack or onto a DIN rail and then I don't waste too much time tinkering with hardware or looking at naked circuit boards.

Unfortunately you probably won't get a secure connection directly to a Crestron processor without some extra work.? For me I just use physical security.? I get the secure connection to Crestron by having one more device in the middle (the private MQTT server on an industrial Raspberry Pi) that's physically located in the same rack as the Crestron processor.? Everything from the ESP32's to the MQTT server is all secured with certificates.? Some middleware I published elsewhere makes the direct TCP connection into Crestron and provides direct access to SIMPL symbols through a custom S+ module I wrote.? This is one of many possible ways to do it.? One day I may take on the project of writing a S# MQTT client for the processor.

A cheap non-secure shortcut that works well in many instances, and requires no MQTT, is to just allow the ESP32 devices to send UDP packets straight to a UDP SIMPL?block.? No security, no guaranteed reliability, but in practice, will work very well as a "proof of concept" with quality on par with pointing an IR remote at a TV to change a volume.

Although I've been using this code for quite a while and?am happy with?how it performs, I literally packaged it into a library and threw it on to GitHub this morning.? Thanks for your patience in advance if I need to make a couple tweaks resulting from the way I published it.

Mike




On Sat, Mar 1, 2025 at 9:57?AM Dean Detton via <dean=[email protected]> wrote:
@Michael Caldwell-Waller I¡¯m interested in learning more about your enhanced template code for ESP32 devices.? I also use ESP32 devices in my home and overall, they are reliable but would like to know how you have improved their reliability.

I have not used in years but just discovered that it has an iOS and ipadOS app.? I have been trying to figure out how to tag specific people in a message.? Read through help and could not find a way to do this.? Any tips would be appreciated.

Join [email protected] to automatically receive all group messages.