cross-posted from: https://lemmy.world/post/110673
Hey all,
i want to hack a portable AC. The devices communicates via UART between Mainboard and control unit (LCD and Buttons). As we still want to use the original controls, i had the idea to put an ESP32 in the middle of the communication (using UART2 for the mainboard and UART3 for the control board).
I don’t want to reverse engineer the whole protocol, only the relevant parts. So, i need a way to forward all messages in both directions, to make this work as it should.
Has anybody done such a thing already? Or has any tips how to do it.
I’m fluent in C++, so there is not barrier here, but i am new to the codebase of ESPHome
You could probably use ESPHome or Tasmota serial port proxy for this … Just connect to it using
nc
or something like that.https://esphome.io/components/uart.html#debugging
https://github.com/thegroove/esphome-serial-server
https://tasmota.github.io/docs/Serial-to-TCP-Bridge/
Using ESPHome is probably the fastest path to something that works since you can use the serial server and/or debug mode to figure out the commands you want to read/write and write a config for those right away.