this post was submitted on 14 Jun 2023
3 points (100.0% liked)

ESP Home

61 readers
1 users here now

ESPHome is a system to control your ESP8266/ESP32 by simple yet powerful configuration files and control them remotely through Home Automation systems.

founded 1 year ago
MODERATORS
 

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

top 3 comments
sorted by: hot top controversial new old
[–] bcnelson 3 points 1 year ago (1 children)

depending on your needs you can setup two uart components wand wire them up. I would think that the best way to do this would be with a custom_component here is a good starting place. I'm not sure id the esp32 has the right hardware on board as one of the uarts is send only and it does not support software uart. This sounds like a really interesting problem. Please let me know how it goes or if i can be of help

[–] vapeloki 2 points 1 year ago (1 children)

The ESP32 wroom has 3 uarts on Board.in theory, that should work.

Yeah, I thought about a custom component also.

At least for prototyping the best way. If it works, I may contribute a UART intercepting component later on.

[–] bcnelson 3 points 1 year ago

Sounds good to go then. I would appreciate it if you let me know how it turns out