klausahrenberg / WThermostatBeca

Replaces original Tuya firmware on Beca thermostat with ESP8266 wifi module
395 stars 96 forks source link

How to Debug? #302

Open cparg opened 1 year ago

cparg commented 1 year ago

Hello, I am trying to understand how the Firmware can be debugged.

The Display only shows a little lock symbol and the device does not react on any of the touch keys. I am wondering if the ESP can properly communicate to the MCU at all.

Hard to figure this all out by browsing the sources. Some helping hand would be highly appreciated.

Many thanks Chris

klausahrenberg commented 1 year ago

Hi, Tx and Rx can't be configured in this firmware. If Tx and Rx are connected to other pins at your Tuya device, variable pins must be implemented. network()->debug() messages will be forwarded by mqtt and to serial output, if DEBUG flag is set to true in firmware. On precompiled binaries, this flag is not activated - so no effect.

cparg commented 1 year ago

Hello Klaus, many thanks for your response. Which one is the "serial port" !? TxD and RxD are quite generic terms for a serial ports as well but I suppose there is a second TxD that's used as a "debug console" !? Many thanks Chris