mill1000 / esphome-winix-c545

An ESPHome external component for the Winix C545 air purifier.
MIT License
16 stars 1 forks source link

invalid sentence on UART comms with revised board #12

Closed brbrindle closed 3 months ago

brbrindle commented 7 months ago

I believe I have successfully wired up a revised board found in the wiki. I did get it to connect once and see UART comms, but all marked as "invalid sentence" (~logs.txt)

On fresh power on, outright no connection, (ICT DEVICEREADY) with the winix showing a blinking led.

logs_esphome-web-269cb4_logs.txt logs_esphome-web-269cb4_logs1.txt PXL_20240131_220140499 RAW-01 COVER PXL_20240131_220206260 RAW-01 COVER PXL_20240131_220219330 RAW-01 COVER

Any thoughts? Is this a handshake issues?

mill1000 commented 7 months ago
[14:09:04][D][winix_c545:248]: Received sentence: n\xc9{\xeb\xfd-\xd7_\xbd\x8fe\xff\xad\x96\x99\xd47\xdd=\xddu\xa6J\xf8>y\xdft\xfe\xf75\xff\xff\xfa\xf5W\xf6\xbfzn\xa8\xbf\xb5eeTnz\xcdmg\xbd}w\xb7\xfbW\xc6Y\xef\xea\xff\xef\xfd\xff\xef\xff\xff\xfb\xff\xff\xff\xff\xff\xff\xff\xef\xff\xff\xff\xff\xff\xec\xff\xfa\xe0s\xfe\xd7\xf7\xfe\xff\xf2Y\xed\xaf\xff+\xdd\xf4\x9d\xe3\xb5\xf8\xdf\xfc\xbd\xe8\xce\xf7\xf8l\xc5*\xae\xfe.\xfb\xd5:\xaf\xd7
[14:09:04][W][winix_c545:259]: Received invalid sentence: n\xc9{\xeb\xfd-\xd7_\xbd\x8fe\xff\xad\x96\x99\xd47\xdd=\xddu\xa6J\xf8>y\xdft\xfe\xf75\xff\xff\xfa\xf5W\xf6\xbfzn\xa8\xbf\xb5eeTnz\xcdmg\xbd}w\xb7\xfbW\xc6Y\xef\xea\xff\xef\xfd\xff\xef\xff\xff\xfb\xff\xff\xff\xff\xff\xff\xff\xef\xff\xff\xff\xff\xff\xec\xff\xfa\xe0s\xfe\xd7\xf7\xfe\xff\xf2Y\xed\xaf\xff+\xdd\xf4\x9d\xe3\xb5\xf8\xdf\xfc\xbd\xe8\xce\xf7\xf8l\xc5*\xae\xfe.\xfb\xd5:\xaf\xd7

It looks like there's quite a bit of gibberish in the UART Rx.

I can't quite decipher the wiring from your photos.

Finally you could also try enabling UART debugging

uart:
  baud_rate: 115200
  debug:
    direction: BOTH
    after:
      delimiter: "\n"
    sequence:
      - lambda: UARTDebug::log_string(direction, bytes);
mill1000 commented 3 months ago

Closing as stale. Feel free to re-open.