Closed JonathanTreffler closed 2 years ago
Does the default firmware of prebuilt tindie modules have UART included ? The more i debug this it just seems like nothing but interference gets recieved by the esp.
More logs (no logic level invertion), but logging as hex, not strings:
[00:25:00][D][button:013]: 'Desk Position 2' Pressed.
[00:25:00][D][uart_debug:114]: >>> 3C:4C:30:2C:32:2E
[00:25:00][E][uart:015]: Reading from UART timed out at byte 0!
[00:25:00][D][uart_debug:114]: <<< 58:3B:00:68:FE:81:00
[00:26:02][D][button:013]: 'Desk Position 3' Pressed.
[00:26:02][D][uart_debug:114]: >>> 3C:4C:30:2C:33:2E
[00:26:08][D][button:013]: 'Desk Position 4' Pressed.
[00:26:08][D][uart_debug:114]: >>> 3C:4C:30:2C:34:2E
Odd that your logs are being printed as hex, possibly a bug with the ESP32 build.
Unless @gcormier changed it since the v2021.09 build, serial is not enabled on the shipping boards.
If you don't have any programmer to flash a different firmware onto the megadesk controller, then you could try using https://github.com/ESP32-Musings/OTA_update_AVR_using_ESP32. I have not tried or used it, but it may be worth a shot before purchasing a programmer.
Phil is correct - the serial firmware is not flashed by default.
What are the reasons for not compiling it in the default firmware ?
The solution by @tagno25 requires bidirectional voltage shifters, which i don't have at my current location :/
Probably due to the chip shortage i can only find knock-offs of the AVR Programmer recommended in the DIY section for twice the price in germany😐
So i guess my Megadesk project needs to be delayed about 6 months when i am back at this location.
Thanks anyways :)
I bought a prebuilt Megadesk module, connected it to a ESP32 and flashed that using esphome and the provided yaml file.
I get the following logs:
My configuration is:
I tried inverting the UART RX and TX logic levels:
But as i don't know what the communication is supposed to look like i don't know if that helped at all.
Are the UART answers as you would expect ?