Hi.
I’m converting a tuya device to esphome.
I stumbled accross a problem. I think not all bytes are read.
Here is a log output from my serial sniffer (received bytes):
55 aa 03 07 00 08 12 02 00 04 00 00 00 00 29
55 aa 03 07 00 08 13 02 00 04 00 00 00 00 2a
55 aa 03 07 00 08 14 02 00 04 00 00 00 02 2d
55 aa 03 07 00 08 7a 02 00 04 00 00 01 38 ca
55 aa 03 07 00 08 7b 02 00 04 00 00 00 00 92
55 aa 03 07 00 08 85 02 00 04 00 00 00 00 9c
55 aa 03 07 00 08 86 02 00 04 00 0f 42 3f 2d
55 aa 03 07 00 08 87 02 00 04 00 00 00 20 be
55 aa 03 07 00 08 67 02 00 04 00 00 00 00 7e
55 aa 03 07 00 08 69 02 00 04 00 00 02 f5 77
55 aa 03 24 00 00 26
55 aa 03 07 00 08 69 02 00 04 00 00 02 f5 77
55 aa 03 24
00 00 26
But I only get these bytes in esphome:
55:AA:03:07:00:08:12:02:00:04:00:00:00:00:29:
55:AA:03:07:00:08:13:02:00:04:00:00:00:00:2A:
55:AA:03:07:00:08:14:02:00:04:00:00:00:02:2D:
55:AA:03:07:00:08:7A:02:00:04:00:00:01:38:CA:
55:AA:03:07:00:
0F:42:3F:2D:
55:AA:03:07:00:08:87:02:00:04
[20:39:01][D][uart_debug:114]: <<< 55:AA:03:07:00:08:12:02:00:04:00:00:00:00:29:55:AA:03:07:00:08:13:02:00:04:00:00:00:00:2A:55:AA:03:07:00:08:14:02:00:04:00:00:00:02:2D:55:AA:03:07:00:08:7A:02:00:04:00:00:01:38:CA:55:AA:03:07:00:0F:42:3F:2D:55:AA:03:07:00:08:87:02:00:04
Esphome config (partial):
bk72xx:
board: cb2s
logger:
baud_rate: 0
tx_buffer_size: 1024
level: VERBOSE
uart:
tx_pin: TX1
rx_pin: RX1
baud_rate: 115200
rx_buffer_size: 1024
debug:
direction: BOTH
dummy_receiver: false
Do you have any idea how to debug it further?
When I receive a shorter answer from tuya mcu evertyhing works as expected.
Cheers,
Mateusz