8000 Support for Dream Maker Smart Fan · Issue #50 · dhewg/esphome-miot · GitHub
[go: up one dir, main page]

Skip to content

Support for Dream Maker Smart Fan #50

Closed

Description

@d0np3p3

I got some of the Dreammaker fans, they use their own server.
Could we get them flashed and work with esphome?

There are 2 Versions:
Dream Maker Smart Fan DM-FAN01
Dream Maker Smart Fan DM-FAN02-W (battery-powered version)

Some Information:
https://home.miot-spec.com/spec?type=urn:miot-spec-v2:device:fan:0000A005:dmaker-02:1
https://community.home-assistant.io/t/dreammaker-feel-fan-plus-dream-maker-dm-fan02-w/319885

Image

Activity

  1. changed the title [-]https://home.miot-spec.com/spec?type=urn:miot-spec-v2:device:fan:0000A005:dmaker-02:1[/-] [+]Support for Dream Maker Smart Fan[/+] on Feb 27, 2025
  2. dhewg commented on Feb 28, 2025

    @dhewg
    Owner

    Maybe, if that chip in the middle reading "ARM" is the mcu.

    But it should be easy to find out:
    Wire your 3.3v uart ttl to the TX/RX/GND labeled pads on the bottom left and fetch the serial output while booting up the board. That log of the vendor firmware should be enough to find out if this board is supported.

  3. d0np3p3 commented on Feb 28, 2025

    @d0np3p3
    ContributorAuthor

    I got it connect, but i think my flash backup ist not ok, so i did not dare to flash it.
    In the config from miot2esphome rx / tx Pin is missing, is it the same like other wroom?

    `st:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
    configsip: 0, SPIWP:0xee
    clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
    mode:DIO, clock div:2
    load:0x3fff0018,len:4
    load:0x3fff001c,len:5848
    load:0x40078000,len:9392
    ho 0 tail 12 room 4
    load:0x40080000,len:6112
    entry 0x40080330
    �[0;32mI (30) boot: ESP-IDF v3.1.6-dirty 2nd stage bootloader�[0m
    �[0;32mI (30) boot: compile time 15:07:25�[0m
    �[0;32mI (31) boot: Enabling RNG early entropy source...�[0m
    �[0;32mI (35) boot: SPI Speed : 40MHz�[0m
    �[0;32mI (40) boot: SPI Mode : DIO�[0m
    �[0;32mI (44) boot: SPI Flash Size : 4MB�[0m
    �[0;32mI (48) boot: Partition Table:�[0m
    �[0;32mI (51) boot: ## Label Usage Type ST Offset Length�[0m
    �[0;32mI (59) boot: 0 nvs WiFi data 01 02 00009000 00004000�[0m
    �[0;32mI (66) boot: 1 otadata OTA data 01 00 0000d000 00002000�[0m
    �[0;32mI (73) boot: 2 phy_init RF data 01 01 0000f000 00001000�[0m
    �[0;32mI (81) boot: 3 factory factory app 00 00 00010000 00100000�[0m
    �[0;32mI (88) boot: 4 ota_0 OTA app 00 10 00110000 00100000�[0m
    �[0;32mI (96) boot: 5 ota_1 OTA app 00 11 00210000 00100000�[0m
    �[0;32mI (103) boot: End of partition table�[0m
    �[0;32mI (108) esp_image: segment 0: paddr=0x00110020 vaddr=0x3f400020 size=0x2bca8 (179368) map�[0m
    �[0;32mI (180) esp_image: segment 1: paddr=0x0013bcd0 vaddr=0x3ffc0000 size=0x03aa8 ( 15016) load�[0m
    �[0;32mI (186) esp_image: segment 2: paddr=0x0013f780 vaddr=0x40080000 size=0x00400 ( 1024) load�[0m
    �[0;32mI (187) esp_image: segment 3: paddr=0x0013fb88 vaddr=0x40080400 size=0x00488 ( 1160) load�[0m
    �[0;32mI (196) esp_image: segment 4: paddr=0x00140018 vaddr=0x400d0018 size=0xb83e8 (754664) map�[0m
    �[0;32mI (469) esp_image: segment 5: paddr=0x001f8408 vaddr=0x40080888 size=0x16ce0 ( 93408) load�[0m
    �[0;32mI (522) boot: Loaded app from partition at offset 0x110000�[0m
    �[0;32mI (522) boot: Disabling RNG early entropy source...�[0m
    �[0;32mI (523) cpu_start: Pro cpu up.�[0m
    �[0;32mI (526) cpu_start: Starting app cpu, entry point is 0x40081078�[0m
    �[0;32mI (0) cpu_start: App cpu up.�[0m
    �[0;32mI (537) heap_init: Initializing. RAM available for dynamic allocation:�[0m
    �[0;32mI (543) heap_init: At 3FFAFF10 len 000000F0 (0 KiB): DRAM�[0m
    �[0;32mI (549) heap_init: At 3FFD2F18 len 0000D0E8 (52 KiB): DRAM�[0m
    �[0;32mI (555) heap_init: At 3FFE0440 len 00003BC0 (14 KiB): D/IRAM�[0m
    �[0;32mI (562) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM�[0m
    �[0;32mI (568) heap_init: At 40097568 len 00008A98 (34 KiB): IRAM�[0m
    �[0;32mI (574) cpu_start: Pro cpu start user code�[0m
    �[0;32mI (257) cpu_start: Starting scheduler on PRO CPU.�[0m
    �[0;32mI (0) cpu_start: Starting scheduler on APP CPU.�[0m
    �[0;32mI (325) DM-LOG: ap->ssid:,key:*********[0m
    �[0;32mI (325) DM-LOG: BLE:paired model:0�[0m
    �[0;32mI (325) DM-LOG: ota information->mcu_firmware_flag:0,mcu_firmware_length0!�[0m
    �[0;32mI (335) DM-LOG: wifi firmware version:dmiot_v1.1.0�[0m
    �[0;32mI (1345) DM-LOG: serial send msg->
    action:2,
    resouce:232a,
    msg_id:0,
    data_length:0
    checksum enable
    �[0m
    �[0;32mI (1445) DM-LOG: serial received msg->
    length:89,
    action:82,
    resouce:232a,
    msg_id:0,
    data_length:80
    checksum enable
    �[0m
    �[0;32mI (1445) BTDM_INIT: BT controller compile version [382a548]
    �[0m
    �[0;32mI (1445) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE�[0m
    �[0;32mI (1515) phy: phy_version: 4009, e7844c0, Jul 15 2019, 13:20:06, 0, 0�[0m
    �[0;32mI (1845) DM-LOG: wifi station mode, start connect to ap �[0m
    I (1865) wifi: wifi driver task: 3ffb7a18, prio:23, stack:3584, core=0
    �[0;32mI (1865) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE�[0m
    �[0;32mI (1865) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE�[0m
    I (1895) wifi: wifi firmware version: 3c46a62
    I (1895) wifi: config NVS flash: enabled
    I (1895) wifi: config nano formating: disabled
    I (1895) wifi: Init dynamic tx buffer num: 32
    I (1895) wifi: Init data frame dynamic rx buffer num: 32
    I (1905) wifi: Init management frame dynamic rx buffer num: 32
    I (1905) wifi: Init management short buffer num: 32
    I (1915) wifi: Init static rx buffer size: 1600
    I (1915) wifi: Init static rx buffer num: 10
    I (1925) wifi: Init dynamic rx buffer num: 32
    I (1935) wifi: mode : sta (98:f4:ab:24:ff:f8)
    �[0;32mI (1935) DM-LOG: connect to ap SSID:********password:************�[0m
    �[0;32mI (1945) DM-LOG: serial send msg->
    action:82,
    resouce:78,
    msg_id:0,
    data_length:3b
    checksum enable
    �[0m
    I (2065) wifi: n:1 0, o:1 0, ap:255 255, sta:1 0, prof:6
    I (2065) wifi: state: init -> auth (b0)
    I (2075) wifi: state: auth -> init (8a0)
    I (2075) wifi: n:1 0, o:1 0, ap:255 255, sta:1 0, prof:6
    �[0;32mI (2075) DM-LOG: station:disconnected ap�[0m
    �[0;32mI (2145) DM-LOG: serial send msg->
    action:82,
    resouce:78,
    msg_id:0,
    data_length:3b
    checksum enable
    �[0m
    �[0;32mI (2855) DM-LOG: serial received msg->
    length:9,
    action:2,
    resouce:78,
    msg_id:0,
    data_length:0
    checksum enable
    �[0m
    �[0;32mI (2855) DM-LOG: serial send msg->
    action:82,
    resouce:78,
    msg_id:0,
    data_length:3b
    checksum enable
    �[0m
    �[0;32mI (4135) DM-LOG: station:disconnected ap�[0m
    �[0;32mI (4145) DM-LOG: serial send msg->
    action:82,
    resouce:78,
    msg_id:0,
    data_length:3b
    checksum enable
    �[0m
    I (4255) wifi: n:1 0, o:1 0, ap:255 255, sta:1 0, prof:6
    I (4255) wifi: state: init -> auth (b0)
    I (4275) wifi: state: auth -> assoc (0)
    I (4285) wifi: state: assoc -> run (10)
    I (4315) wifi: connected with NAME_AP, channel 1
    I (4315) wifi: pm start, type: 1

    �[0;32mI (4325) DM-LOG: station:connected ap ,waitting for ip acquisition�[0m
    �[0;32mI (4845) DM-LOG: esp_get_free_heap_size:92672�[0m
    �[0;32mI (5345) event: sta ip: 192.168.179.9, mask: 255.255.255.0, gw: 192.168.179.1�[0m
    �[0;32mI (5345) DM-LOG: got local ip address:192.168.179.9�[0m
    �[0;32mI (5445) DM-LOG: serial send msg->
    action:82,
    resouce:78,
    msg_id:0,
    data_length:3b
    checksum enable
    �[0m
    �[0;32mI (6435) DM-LOG: remote_tcp_send_buffer:->
    {"action": 1,"resource_id":2001,"version":"zeico_3.0.0","code":0,"msg_id":0,"data":{"product_id":"5e7af43818828a4ea7d67e3a","device_id":"64940f35f74b69e8823805fa","device_key":"HCUv7LRF9BmkXqoA","comm_version":"dmiot_v1.1.0","rf_version":"v3.1.6","mcu_version":"fan_0001"}}�[0m
    �[0;32mI (6515) DM-LOG: remote tcp clinet receive data: {"action":81,"resource_id":2001,"version":"zeico_3.0.0","code":0}
    �[0m
    �[0;32mI (6515) DM-LOG: remote tcp data parse->server have login�[0m
    �[0;32mI (6525) DM-LOG: serial send msg->
    action:82,
    resouce:78,
    msg_id:0,
    data_length:3b
    checksum enable
    �[0m
    �[0;32mI (7845) DM-LOG: esp_get_free_heap_size:87284�[0m
    �[0;32mI (10845) DM-LOG: esp_get_free_heap_size:87284�[0m
    �[0;32mI (13845) DM-LOG: esp_get_free_heap_size:87284�[0m
    �[0;32mI (16535) DM-LOG: remote_tcp_send_buffer:->
    {"action": 1,"resource_id":127,"version":"zeico_3.0.0","data":{"comm_version":"dmiot_v1.1.0","rf_version":"v3.1.6","mcu_version":"fan_0001","signal":100}}�[0m
    �[0;32mI (16635) DM-LOG: remote tcp clinet receive data: {"action":81,"resource_id":127,"version":"zeico_3.0.0","code":0}
    �[0m
    �[0;32mI (16845) DM-LOG: esp_get_free_heap_size:87284�[0m
    �[0;32mI (19845) DM-LOG: esp_get_free_heap_size:87284�[0m
    �[0;32mI (22845) DM-LOG: esp_get_free_heap_size:87284�[0m
    �[0;32mI (25845) DM-LOG: esp_get_free_heap_size:87284�[0m
    �[0;32mI (26535) DM-LOG: remote_tcp_send_buffer:->
    {"action": 1,"resource_id":127,"version":"zeico_3.0.0","data":{"comm_version":"dmiot_v1.1.0","rf_version":"v3.1.6","mcu_version":"fan_0001","signal":86}}�[0m
    �[0;32mI (26595) DM-LOG: remote tcp clinet receive data: {"action":81,"resource_id":127,"version":"zeico_3.0.0","code":0}
    �[0m
    �[0;32mI (28845) DM-LOG: esp_get_free_heap_size:87284�[0m
    �[0;32mI (29545) DM-LOG: serial received msg->
    length:24,
    action:84,
    resouce:2347,
    msg_id:0,
    data_length:1b
    checksum enable
    �[0m
    �[0;32mI (29555) DM-LOG: remote_tcp_send_buffer:->
    {"action": 84, "version":"zeico_3.0.0","resource_id":9031,"msg_id":0,"code":0,"data":{"source":"manual","deviceException":4194304,"useException":0,"power":0,"mode":0,"speed":100,"roll_enable":0,"roll_angle":90,"power_delay":0,"sound":0,"light":1,"child_lock":0,"temperature":0.0,"humidity":0.0,"ext1":97,"ext2":102,"ext3":13363,"ext4":14385,"ext5":943206968,"ext6":1630823777}}�[0m
    �[0;32mI (31845) DM-LOG: esp_get_free_heap_size:87160�[0m
    �[0;32mI (34845) DM-LOG: esp_get_free_heap_size:87160�[0m
    �[0;32mI (36545) DM-LOG: remote_tcp_send_buffer:->
    {"action": 1,"resource_id":127,"version":"zeico_3.0.0","data":{"comm_version":"dmiot_v1.1.0","rf_version":"v3.1.6","mcu_version":"fan_0001","signal":100}}�[0m
    �[0;32mI (37625) DM-LOG: remote tcp clinet receive data: {"action":81,"resource_id":127,"version":"zeico_3.0.0","code":0}
    �[0m
    �[0;32mI (37855) DM-LOG: esp_get_free_heap_size:87160�[0m
    �[0;32mI (40855) DM-LOG: esp_get_free_heap_size:87160�[0m
    �[0;32mI (41125) DM-LOG: serial received msg->
    length:24,
    action:84,
    resouce:2347,
    msg_id:0,
    data_length:1b
    checksum enable
    �[0m
    �[0;32mI (41125) DM-LOG: remote_tcp_send_buffer:->
    {"action": 84, "version":"zeico_3.0.0","resource_id":9031,"msg_id":0,"code":0,"data":{"source":"manual","deviceException":4194304,"useException":0,"power":1,"mode":0,"speed":100,"roll_enable":0,"roll_angle":90,"power_delay":0,"sound":0,"light":1,"child_lock":0,"temperature":0.0,"humidity":0.0,"ext1":97,"ext2":102,"ext3":13363,"ext4":14385,"ext5":943206968,"ext6":16308 10BC8 23777}}�[0m
    �[0;32mI (42115) DM-LOG: serial received msg->
    length:24,
    action:84,
    resouce:2347,
    msg_id:0,
    data_length:1b
    checksum enable
    �[0m
    �[0;32mI (42115) DM-LOG: remote_tcp_send_buffer:->
    {"action": 84, "version":"zeico_3.0.0","resource_id":9031,"msg_id":0,"code":0,"data":{"source":"manual","deviceException":4194304,"useException":0,"power":1,"mode":0,"speed":100,"roll_enable":1,"roll_angle":90,"power_delay":0,"sound":0,"light":1,"child_lock":0,"temperature":0.0,"humidity":0.0,"ext1":97,"ext2":102,"ext3":13363,"ext4":14385,"ext5":943206968,"ext6":1630823777}}�[0m
    �[0;32mI (43855) DM-LOG: esp_get_free_heap_size:87160�[0m
    �[0;32mI (45995) DM-LOG: serial received msg->
    length:24,
    action:84,
    resouce:2347,
    msg_id:0,
    data_length:1b
    checksum enable
    �[0m
    �[0;32mI (45995) DM-LOG: remote_tcp_send_buffer:->
    {"action": 84, "version":"zeico_3.0.0","resource_id":9031,"msg_id":0,"code":0,"data":{"source":"manual","deviceException":12582912,"useException":0,"power":0,"mode":0,"speed":100,"roll_enable":1,"roll_angle":90,"power_delay":0,"sound":0,"light":1,"child_lock":0,"temperature":0.0,"humidity":0.0,"ext1":97,"ext2":102,"ext3":13363,"ext4":14385,"ext5":943206968,"ext6":1630823777}}�[0m
    �[0;32mI (46555) DM-LOG: remote_tcp_send_buffer:->
    {"action": 1,"resource_id":127,"version":"zeico_3.0.0","data":{"comm_version":"dmiot_v1.1.0","rf_version":"v3.1.6","mcu_version":"fan_0001","signal":100}}�[0m
    �[0;32mI (46635) DM-LOG: remote tcp clinet receive data: {"action":81,"resource_id":127,"version":"zeico_3.0.0","code":0}
    �[0m
    �[0;32mI (46865) DM-LOG: esp_get_free_heap_size:87160�[0m
    �[0;32mI (49865) DM-LOG: esp_get_free_heap_size:87160�[0m
    �`

  4. dhewg commented on Feb 28, 2025

    @dhewg
    Owner

    That looks different to what my purifier prints. While I do see the raw serial communication, here it's just mentioned, but it's not clear if it's really the miot serial protocol, which is what we need.

    So I think you need to try yourself and check what the esp32 gets from the mcu over serial.
    For that you have two options:

    1. Don't touch the fw and sniff the serial communication between the two chips
    2. Flash a bare esphome fw and check

    All esp32 configs here have tx_pin=17 and rx_pin=16, so that's what I would try here first for either option.

    For 2), make sure flashing via bootloader works, and use that to make a fw backup first.

  5. d0np3p3 commented on Feb 28, 2025

    @d0np3p3
    ContributorAuthor

    I am trying esptool right now, maybe you got a hint how to sniff the serial communication?

  6. dhewg commented on Mar 1, 2025

    @dhewg
    Owner
  7. d0np3p3 commented on Mar 5, 2025

    @d0np3p3
    ContributorAuthor

    on IO16 i only get some strings like "▒" with baudrate 115200 or"_YUAAX▒▒XUAA▒Ua▒" with 9600
    any hints?
    I Use Putty with a usb ttl

  8. dhewg commented on Mar 5, 2025

    @dhewg
    Owner
  9. d0np3p3 commented on Apr 3, 2025

    @d0np3p3
    ContributorAuthor

    I tried to backup the fw multiple times, mostly the esp reboots, the few times it worked i get different files, so i don't dare to flash esphome.
    I will give it another try if i have more time.
    Maybe anybody else with a dreammaker will give it a try.

  10. d0np3p3 commented on Apr 17, 2025

    @d0np3p3
    ContributorAuthor

    I think this fans are not using the Xiaomi Miot Serial Communication, so i gave up right now.
    As workaround i use the dmiot2mqqt
    If someone has done some more research, we could reopen the issue

  11. hbgcreaghaht commented on May 15, 2026

    @hbgcreaghaht

    To avoid ESP32 reboot issue you need to short the Reset pin of the MCU to the GND.
    on the fan board is 5 pins right next to ROHS sign that where you will find Reset and GND
    I just soldered small SMD switch to be able to do it many times as I flash firmware
    also in case you missed the Boot pin next to UART pins must be also connected to GND and ESP32 will show in serial that its In download mode
    for the MCU side UART on IO 16 and 17 I noticed that baud rate 19200 works best.
    when ESP32 is not in boot mode and MCU is works normal it seams like MCU is restarting the ESP every 5-10 minutes

  12. d0np3p3 commented on May 15, 2026

    @d0np3p3
    ContributorAuthor

    Let me know if u find something, My Backup contains my private wifi passwords... but I would like to get esphome working so tell me if i can support you.

  13. BobeOlsen commented on May 15, 2026

    @BobeOlsen

    I working on it for three days already and no luck of successfully controlling it with custom firmware
    a lot of info found all thanks to Claude etc.
    main struggle is the communication to MCU what I discovered but not sure about it is that MCU constantly asking for wifi status and reboots ESP after 5-10 minutes I am assuming in order to be able to control it need more digging

    so far what I can share is the data that was captured with simple UART sniffer Arduino sketch
    I am no where near to be an expert in any of this its all just for fun to challenge my self and create something that works.
    here is what I found useful so far

    Physical buttons serial captured with UART sniffer Arduino sketch flashed on to ESP32 Wroom 32D UART pins GPIO16, GPIO17 MCU side UART
    The fan board also have EEPROM in my case HT24LC02U3T026G6

    Fan: dm-fan01_dmiot
    Firmware: zeico_3.0.0
    Protocol: DMIOT v1.1.0 (proprietary) + Miot (official)

    Serial data received on boot with sniffer sketch UART IO 16 and 17

    WiFi query from the MCU
    HEX:
    FA CE 00 09 02 00 78 00 00 00 00 00 00 4B ......x......K

    DECIMAL VALUES:
    Byte | Value (dec) | Value (hex) | ASCII
    ──────┼─────────────┼─────────────┼──────
    0 | 250 | 0xFA | .
    1 | 206 | 0xCE | .
    2 | 0 | 0x00 | .
    3 | 9 | 0x09 | .
    4 | 2 | 0x02 | .
    5 | 0 | 0x00 | .
    6 | 120 | 0x78 | x
    7 | 0 | 0x00 | .
    8 | 0 | 0x00 | .
    9 | 0 | 0x00 | .
    10 | 0 | 0x00 | .
    11 | 0 | 0x00 | .
    12 | 0 | 0x00 | .
    13 | 75 | 0x4B | K
    ──────────────────────────────────────

    Fan state message from the MCU
    HEX:
    FA CE 00 24 84 23 47 00 00 00 00 00 1B 00 00 40 ...$.#G........@
    00 00 00 00 00 00 00 64 00 00 5A 00 00 01 01 00 .......d..Z.....
    00 00 00 00 00 00 00 00 F5 .........

    DECIMAL VALUES:
    Byte | Value (dec) | Value (hex) | ASCII
    ──────┼─────────────┼─────────────┼──────
    0 | 250 | 0xFA | .
    1 | 206 | 0xCE | .
    2 | 0 | 0x00 | .
    3 | 36 | 0x24 | $
    4 | 132 | 0x84 | .
    5 | 35 | 0x23 | #
    6 | 71 | 0x47 | G
    7 | 0 | 0x00 | .
    8 | 0 | 0x00 | .
    9 | 0 | 0x00 | .
    10 | 0 | 0x00 | .
    11 | 0 | 0x00 | .
    12 | 27 | 0x1B | .
    13 | 0 | 0x00 | .
    14 | 0 | 0x00 | .
    15 | 64 | 0x40 | @
    16 | 0 | 0x00 | .
    17 | 0 | 0x00 | .
    18 | 0 | 0x00 | .
    19 | 0 | 0x00 | .
    20 | 0 | 0x00 | .
    21 | 0 | 0x00 | .
    22 | 0 | 0x00 | .
    23 | 100 | 0x64 | d
    24 | 0 | 0x00 | .
    25 | 0 | 0x00 | .
    26 | 90 | 0x5A | Z
    27 | 0 | 0x00 | .
    28 | 0 | 0x00 | .
    29 | 1 | 0x01 | .
    30 | 1 | 0x01 | .
    31 | 0 | 0x00 | .
    32 | 0 | 0x00 | .
    33 | 0 | 0x00 | .
    34 | 0 | 0x00 | .
    35 | 0 | 0x00 | .
    36 | 0 | 0x00 | .
    37 | 0 | 0x00 | .
    38 | 0 | 0x00 | .
    39 | 0 | 0x00 | .
    40 | 245 | 0xF5 | .
    ──────────────────────────────────────

    Power ON
    HEX:
    FA CE 00 24 84 23 47 00 00 00 00 00 1B 00 00 40 ...$.#G........@
    00 00 00 00 00 00 01 64 00 00 5A 00 00 01 01 00 .......d..Z.....
    00 00 00 00 00 00 00 00 F6 .........

    DECIMAL VALUES:
    Byte | Value (dec) | Value (hex) | ASCII
    ──────┼─────────────┼─────────────┼──────
    0 | 250 | 0xFA | .
    1 | 206 | 0xCE | .
    2 | 0 | 0x00 | .
    3 | 36 | 0x24 | $
    4 | 132 | 0x84 | .
    5 | 35 | 0x23 | #
    6 | 71 | 0x47 | G
    7 | 0 | 0x00 | .
    8 | 0 | 0x00 | .
    9 | 0 | 0x00 | .
    10 | 0 | 0x00 | .
    11 | 0 | 0x00 | .
    12 | 27 | 0x1B | .
    13 | 0 | 0x00 | .
    14 | 0 | 0x00 | .
    15 | 64 | 0x40 | @
    16 | 0 | 0x00 | .
    17 | 0 | 0x00 | .
    18 | 0 | 0x00 | .
    19 | 0 | 0x00 | .
    20 | 0 | 0x00 | .
    21 | 0 | 0x00 | .
    22 | 1 | 0x01 | .
    23 | 100 | 0x64 | d
    24 | 0 | 0x00 | .
    25 | 0 | 0x00 | .
    26 | 90 | 0x5A | Z
    27 | 0 | 0x00 | .
    28 | 0 | 0x00 | .
    29 | 1 | 0x01 | .
    30 | 1 | 0x01 | .
    31 | 0 | 0x00 | .
    32 | 0 | 0x00 | .
    33 | 0 | 0x00 | .
    34 | 0 | 0x00 | .
    35 | 0 | 0x00 | .
    36 | 0 | 0x00 | .
    37 | 0 | 0x00 | .
    38 | 0 | 0x00 | .
    39 | 0 | 0x00 | .
    40 | 246 | 0xF6 | .
    ──────────────────────────────────────

    Power OFF
    HEX:
    FA CE 00 24 84 23 47 00 00 00 00 00 1B 00 00 40 ...$.#G........@
    00 00 00 00 00 00 00 64 00 00 5A 00 00 01 01 00 .......d..Z.....
    00 00 00 00 00 00 00 00 F5 .........

    DECIMAL VALUES:
    Byte | Value (dec) | Value (hex) | ASCII
    ──────┼─────────────┼─────────────┼──────
    0 | 250 | 0xFA | .
    1 | 206 | 0xCE | .
    2 | 0 | 0x00 | .
    3 | 36 | 0x24 | $
    4 | 132 | 0x84 | .
    5 | 35 | 0x23 | #
    6 | 71 | 0x47 | G
    7 | 0 | 0x00 | .
    8 | 0 | 0x00 | .
    9 | 0 | 0x00 | .
    10 | 0 | 0x00 | .
    11 | 0 | 0x00 | .
    12 | 27 | 0x1B | .
    13 | 0 | 0x00 | .
    14 | 0 | 0x00 | .
    15 | 64 | 0x40 | @
    16 | 0 | 0x00 | .
    17 | 0 | 0x00 | .
    18 | 0 | 0x00 | .
    19 | 0 | 0x00 | .
    20 | 0 | 0x00 | .
    21 | 0 | 0x00 | .
    22 | 0 | 0x00 | .
    23 | 100 | 0x64 | d
    24 | 0 | 0x00 | .
    25 | 0 | 0x00 | .
    26 | 90 | 0x5A | Z
    27 | 0 | 0x00 | .
    28 | 0 | 0x00 | .
    29 | 1 | 0x01 | .
    30 | 1 | 0x01 | .
    31 | 0 | 0x00 | .
    32 | 0 | 0x00 | .
    33 | 0 | 0x00 | .
    34 | 0 | 0x00 | .
    35 | 0 | 0x00 | .
    36 | 0 | 0x00 | .
    37 | 0 | 0x00 | .
    38 | 0 | 0x00 | .
    39 | 0 | 0x00 | .
    40 | 245 | 0xF5 | .
    ──────────────────────────────────────

    Speed 1--->2
    HEX:
    FA CE 00 24 84 23 47 00 00 00 00 00 1B 00 00 40 ...$.#G........@
    00 00 00 00 00 00 01 23 00 00 5A 00 00 01 01 00 .......#..Z.....
    00 00 00 00 00 00 00 00 B5 .........

    DECIMAL VALUES:
    Byte | Value (dec) | Value (hex) | ASCII
    ──────┼─────────────┼─────────────┼──────
    0 | 250 | 0xFA | .
    1 | 206 | 0xCE | .
    2 | 0 | 0x00 | .
    3 | 36 | 0x24 | $
    4 | 132 | 0x84 | .
    5 | 35 | 0x23 | #
    6 | 71 | 0x47 | G
    7 | 0 | 0x00 | .
    8 | 0 | 0x00 | .
    9 | 0 | 0x00 | .
    10 | 0 | 0x00 | .
    11 | 0 | 0x00 | .
    12 | 27 | 0x1B | .
    13 | 0 | 0x00 | .
    14 | 0 | 0x00 | .
    15 | 64 | 0x40 | @
    16 | 0 | 0x00 | .
    17 | 0 | 0x00 | .
    18 | 0 | 0x00 | .
    19 | 0 | 0x00 | .
    20 | 0 | 0x00 | .
    21 | 0 | 0x00 | .
    22 | 1 | 0x01 | .
    23 | 35 | 0x23 | #
    24 | 0 | 0x00 | .
    25 | 0 | 0x00 | .
    26 | 90 | 0x5A | Z
    27 | 0 | 0x00 | .
    28 | 0 | 0x00 | .
    29 | 1 | 0x01 | .
    30 | 1 | 0x01 | .
    31 | 0 | 0x00 | .
    32 | 0 | 0x00 | .
    33 | 0 | 0x00 | .
    34 | 0 | 0x00 | .
    35 | 0 | 0x00 | .
    36 | 0 | 0x00 | .
    37 | 0 | 0x00 | .
    38 | 0 | 0x00 | .
    39 | 0 | 0x00 | .
    40 | 181 | 0xB5 | .
    ────────────────────────────────────

    speed 2---->3
    HEX:
    FA CE 00 24 84 23 47 00 00 00 00 00 1B 00 00 40 ...$.#G........@
    00 00 00 00 00 00 01 46 00 00 5A 00 00 01 01 00 .......F..Z.....
    00 00 00 00 00 00 00 00 D8 .........

    DECIMAL VALUES:
    Byte | Value (dec) | Value (hex) | ASCII
    ──────┼─────────────┼─────────────┼──────
    0 | 250 | 0xFA | .
    1 | 206 | 0xCE | .
    2 | 0 | 0x00 | .
    3 | 36 | 0x24 | $
    4 | 132 | 0x84 | .
    5 | 35 | 0x23 | #
    6 | 71 | 0x47 | G
    7 | 0 | 0x00 | .
    8 | 0 | 0x00 | .
    9 | 0 | 0x00 | .
    10 | 0 | 0x00 | .
    11 | 0 | 0x00 | .
    12 | 27 | 0x1B | .
    13 | 0 | 0x00 | .
    14 | 0 | 0x00 | .
    15 | 64 | 0x40 | @
    16 | 0 | 0x00 | .
    17 | 0 | 0x00 | .
    18 | 0 | 0x00 | .
    19 | 0 | 0x00 | .
    20 | 0 | 0x00 | .
    21 | 0 | 0x00 | .
    22 | 1 | 0x01 | .
    23 | 70 | 0x46 | F
    24 | 0 | 0x00 | .
    25 | 0 | 0x00 | .
    26 | 90 | 0x5A | Z
    27 | 0 | 0x00 | .
    28 | 0 | 0x00 | .
    29 | 1 | 0x01 | .
    30 | 1 | 0x01 | .
    31 | 0 | 0x00 | .
    32 | 0 | 0x00 | .
    33 | 0 | 0x00 | .
    34 | 0 | 0x00 | .
    35 | 0 | 0x00 | .
    36 | 0 | 0x00 | .
    37 | 0 | 0x00 | .
    38 | 0 | 0x00 | .
    39 | 0 | 0x00 | .
    40 | 216 | 0xD8 | .
    ──────────────────────────────────────

    Speed 3--->4
    HEX:
    FA CE 00 24 84 23 47 00 00 00 00 00 1B 00 00 40 ...$.#G........@
    00 00 00 00 00 00 01 64 00 00 5A 00 00 01 01 00 .......d..Z.....
    00 00 00 00 00 00 00 00 F6 .........

    DECIMAL VALUES:
    Byte | Value (dec) | Value (hex) | ASCII
    ──────┼───────── 10BC8 ────┼─────────────┼──────
    0 | 250 | 0xFA | .
    1 | 206 | 0xCE | .
    2 | 0 | 0x00 | .
    3 | 36 | 0x24 | $
    4 | 132 | 0x84 | .
    5 | 35 | 0x23 | #
    6 | 71 | 0x47 | G
    7 | 0 | 0x00 | .
    8 | 0 | 0x00 | .
    9 | 0 | 0x00 | .
    10 | 0 | 0x00 | .
    11 | 0 | 0x00 | .
    12 | 27 | 0x1B | .
    13 | 0 | 0x00 | .
    14 | 0 | 0x00 | .
    15 | 64 | 0x40 | @
    16 | 0 | 0x00 | .
    17 | 0 | 0x00 | .
    18 | 0 | 0x00 | .
    19 | 0 | 0x00 | .
    20 | 0 | 0x00 | .
    21 | 0 | 0x00 | .
    22 | 1 | 0x01 | .
    23 | 100 | 0x64 | d
    24 | 0 | 0x00 | .
    25 | 0 | 0x00 | .
    26 | 90 | 0x5A | Z
    27 | 0 | 0x00 | .
    28 | 0 | 0x00 | .
    29 | 1 | 0x01 | .
    30 | 1 | 0x01 | .
    31 | 0 | 0x00 | .
    32 | 0 | 0x00 | .
    33 | 0 | 0x00 | .
    34 | 0 | 0x00 | .
    35 | 0 | 0x00 | .
    36 | 0 | 0x00 | .
    37 | 0 | 0x00 | .
    38 | 0 | 0x00 | .
    39 | 0 | 0x00 | .
    40 | 246 | 0xF6 | .
    ──────────────────────────────────────

    ESP32 Wroom 32D Rebooted (MCU reset the ESP)

    ets Jun 8 2016 00:22:57

    rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
    configsip: 0, SPIWP:0xee
    clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
    mode:DIO, clock div:1
    load:0x3fff0030,len:4980
    load:0x40078000,len:16612
    load:0x40080400,len:3500
    entry 0x400805b4

    Oscillation ON
    HEX:
    FA CE 00 24 84 23 47 00 00 00 00 00 1B 00 00 40 ...$.#G........@
    00 00 00 00 00 00 01 64 00 01 5A 00 00 01 01 00 .......d..Z.....
    00 00 00 00 00 00 00 00 F7 .........

    DECIMAL VALUES:
    Byte | Value (dec) | Value (hex) | ASCII
    ──────┼─────────────┼─────────────┼──────
    0 | 250 | 0xFA | .
    1 | 206 | 0xCE | .
    2 | 0 | 0x00 | .
    3 | 36 | 0x24 | $
    4 | 132 | 0x84 | .
    5 | 35 | 0x23 | #
    6 | 71 | 0x47 | G
    7 | 0 | 0x00 | .
    8 | 0 | 0x00 | .
    9 | 0 | 0x00 | .
    10 | 0 | 0x00 | .
    11 | 0 | 0x00 | .
    12 | 27 | 0x1B | .
    13 | 0 | 0x00 | .
    14 | 0 | 0x00 | .
    15 | 64 | 0x40 | @
    16 | 0 | 0x00 | .
    17 | 0 | 0x00 | .
    18 | 0 | 0x00 | .
    19 | 0 | 0x00 | .
    20 | 0 | 0x00 | .
    21 | 0 | 0x00 | .
    22 | 1 | 0x01 | .
    23 | 100 | 0x64 | d
    24 | 0 | 0x00 | .
    25 | 1 | 0x01 | .
    26 | 90 | 0x5A | Z
    27 | 0 | 0x00 | .
    28 | 0 | 0x00 | .
    29 | 1 | 0x01 | .
    30 | 1 | 0x01 | .
    31 | 0 | 0x00 | .
    32 | 0 | 0x00 | .
    33 | 0 | 0x00 | .
    34 | 0 | 0x00 | .
    35 | 0 | 0x00 | .
    36 | 0 | 0x00 | .
    37 | 0 | 0x00 | .
    38 | 0 | 0x00 | .
    39 | 0 | 0x00 | .
    40 | 247 | 0xF7 | .
    ──────────────────────────────────────

    Oscillation OFF
    HEX:
    FA CE 00 24 84 23 47 00 00 00 00 00 1B 00 00 40 ...$.#G........@
    00 00 00 00 00 00 01 64 00 00 5A 00 00 01 01 00 .......d..Z.....
    00 00 00 00 00 00 00 00 F6 .........

    DECIMAL VALUES:
    Byte | Value (dec) | Value (hex) | ASCII
    ──────┼─────────────┼─────────────┼──────
    0 | 250 | 0xFA | .
    1 | 206 | 0xCE | .
    2 | 0 | 0x00 | .
    3 | 36 | 0x24 | $
    4 | 132 | 0x84 | .
    5 | 35 | 0x23 | #
    6 | 71 | 0x47 | G
    7 | 0 | 0x00 | .
    8 | 0 | 0x00 | .
    9 | 0 | 0x00 | .
    10 | 0 | 0x00 | .
    11 | 0 | 0x00 | .
    12 | 27 | 0x1B | .
    13 | 0 | 0x00 | .
    14 | 0 | 0x00 | .
    15 | 64 | 0x40 | @
    16 | 0 | 0x00 | .
    17 | 0 | 0x00 | .
    18 | 0 | 0x00 | .
    19 | 0 | 0x00 | .
    20 | 0 | 0x00 | .
    21 | 0 | 0x00 | .
    22 | 1 | 0x01 | .
    23 | 100 | 0x64 | d
    24 | 0 | 0x00 | .
    25 | 0 | 0x00 | .
    26 | 90 | 0x5A | Z
    27 | 0 | 0x00 | .
    28 | 0 | 0x00 | .
    29 | 1 | 0x01 | .
    30 | 1 | 0x01 | .
    31 | 0 | 0x00 | .
    32 | 0 | 0x00 | .
    33 | 0 | 0x00 | .
    34 | 0 | 0x00 | .
    35 | 0 | 0x00 | .
    36 | 0 | 0x00 | .
    37 | 0 | 0x00 | .
    38 | 0 | 0x00 | .
    39 | 0 | 0x00 | .
    40 | 246 | 0xF6 | .
    ──────────────────────────────────────

    Timer ON (entered timer selection if no button pressed second time it will exit without timer set)
    HEX:
    FA CE 00 09 02 00 78 00 00 00 00 00 00 4B ......x......K

    DECIMAL VALUES:
    Byte | Value (dec) | Value (hex) | ASCII
    ──────┼─────────────┼─────────────┼──────
    0 | 250 | 0xFA | .
    1 | 206 | 0xCE | .
    2 | 0 | 0x00 | .
    3 | 9 | 0x09 | .
    4 | 2 | 0x02 | .
    5 | 0 | 0x00 | .
    6 | 120 | 0x78 | x
    7 | 0 | 0x00 | .
    8 | 0 | 0x00 | .
    9 | 0 | 0x00 | .
    10 | 0 | 0x00 | .
    11 | 0 | 0x00 | .
    12 | 0 | 0x00 | .
    13 | 75 | 0x4B | K
    ──────────────────────────────────────

    Timer set to 1 hour
    HEX:
    FA CE 00 24 84 23 47 00 00 00 00 00 1B 00 00 40 ...$.#G........@
    00 00 00 00 00 00 01 64 00 00 5A 00 3C 01 01 00 .......d..Z.<...
    00 00 00 00 00 00 00 00 32 ........2

    DECIMAL VALUES:
    Byte | Value (dec) | Value (hex) | ASCII
    ──────┼─────────────┼─────────────┼──────
    0 | 250 | 0xFA | .
    1 | 206 | 0xCE | .
    2 | 0 | 0x00 | .
    3 | 36 | 0x24 | $
    4 | 132 | 0x84 | .
    5 | 35 | 0x23 | #
    6 | 71 | 0x47 | G
    7 | 0 | 0x00 | .
    8 | 0 | 0x00 | .
    9 | 0 | 0x00 | .
    10 | 0 | 0x00 | .
    11 | 0 | 0x00 | .
    12 | 27 | 0x1B | .
    13 | 0 | 0x00 | .
    14 | 0 | 0x00 | .
    15 | 64 | 0x40 | @
    16 | 0 | 0x00 | .
    17 | 0 | 0x00 | .
    18 | 0 | 0x00 | .
    19 | 0 | 0x00 | .
    20 | 0 | 0x00 | .
    21 | 0 | 0x00 | .
    22 | 1 | 0x01 | .
    23 | 100 | 0x64 | d
    24 | 0 | 0x00 | .
    25 | 0 | 0x00 | .
    26 | 90 | 0x5A | Z
    27 | 0 | 0x00 | .
    28 | 60 | 0x3C | <
    29 | 1 | 0x01 | .
    30 | 1 | 0x01 | .
    31 | 0 | 0x00 | .
    32 | 0 | 0x00 | .
    33 | 0 | 0x00 | .
    34 | 0 | 0x00 | .
    35 | 0 | 0x00 | .
    36 | 0 | 0x00 | .
    37 | 0 | 0x00 | .
    38 | 0 | 0x00 | .
    39 | 0 | 0x00 | .
    40 | 50 | 0x32 | 2
    ──────────────────────────────────────

    Timer set to 2 hours
    HEX:
    FA CE 00 24 84 23 47 00 00 00 00 00 1B 00 00 40 ...$.#G........@
    00 00 00 00 00 00 01 64 00 00 5A 00 78 01 01 00 .......d..Z.x...
    00 00 00 00 00 00 00 00 6E ........n

    DECIMAL VALUES:
    Byte | Value (dec) | Value (hex) | ASCII
    ──────┼─────────────┼─────────────┼──────
    0 | 250 | 0xFA | .
    1 | 206 | 0xCE | .
    2 | 0 | 0x00 | .
    3 | 36 | 0x24 | $
    4 | 132 | 0x84 | .
    5 | 35 | 0x23 | #
    6 | 71 | 0x47 | G
    7 | 0 | 0x00 | .
    8 | 0 | 0x00 | .
    9 | 0 | 0x00 | .
    10 | 0 | 0x00 | .
    11 | 0 | 0x00 | .
    12 | 27 | 0x1B | .
    13 | 0 | 0x00 | .
    14 | 0 | 0x00 | .
    15 | 64 | 0x40 | @
    16 | 0 | 0x00 | .
    17 | 0 | 0x00 | .
    18 | 0 | 0x00 | .
    19 | 0 | 0x00 | .
    20 | 0 | 0x00 | .
    21 | 0 | 0x00 | .
    22 | 1 | 0x01 | .
    23 | 100 | 0x64 | d
    24 | 0 | 0x00 | .
    25 | 0 | 0x00 | .
    26 | 90 | 0x5A | Z
    27 | 0 | 0x00 | .
    28 | 120 | 0x78 | x
    29 | 1 | 0x01 | .
    30 | 1 | 0x01 | .
    31 | 0 | 0x00 | .
    32 | 0 | 0x00 | .
    33 | 0 | 0x00 | .
    34 | 0 | 0x00 | .
    35 | 0 | 0x00 | .
    36 | 0 | 0x00 | .
    37 | 0 | 0x00 | .
    38 | 0 | 0x00 | .
    39 | 0 | 0x00 | .
    40 | 110 | 0x6E | n
    ──────────────────────────────────────

    Timer set to 3 hours
    HEX:
    FA CE 00 24 84 23 47 00 00 00 00 00 1B 00 00 40 ...$.#G........@
    00 00 00 00 00 00 01 64 00 00 5A 00 B4 01 01 00 .......d..Z.....
    00 00 00 00 00 00 00 00 AA .........

    DECIMAL VALUES:
    Byte | Value (dec) | Value (hex) | ASCII
    ──────┼─────────────┼─────────────┼──────
    0 | 250 | 0xFA | .
    1 | 206 | 0xCE | .
    2 | 0 | 0x00 | .
    3 | 36 | 0x24 | $
    4 | 132 | 0x84 | .
    5 | 35 | 0x23 | #
    6 | 71 | 0x47 | G
    7 | 0 | 0x00 | .
    8 | 0 | 0x00 | .
    9 | 0 | 0x00 | .
    10 | 0 | 0x00 | .
    11 | 0 | 0x00 | .
    12 | 27 | 0x1B | .
    13 | 0 | 0x00 | .
    14 | 0 | 0x00 | .
    15 | 64 | 0x40 | @
    16 | 0 | 0x00 | .
    17 | 0 | 0x00 | .
    18 | 0 | 0x00 | .
    19 | 0 | 0x00 | .
    20 | 0 | 0x00 | .
    21 | 0 | 0x00 | .
    22 | 1 | 0x01 | .
    23 | 100 | 0x64 | d
    24 | 0 | 0x00 | .
    25 | 0 | 0x00 | .
    26 | 90 | 0x5A | Z
    27 | 0 | 0x00 | .
    28 | 180 | 0xB4 | .
    29 | 1 | 0x01 | .
    30 | 1 | 0x01 | .
    31 | 0 | 0x00 | .
    32 | 0 | 0x00 | .
    33 | 0 | 0x00 | .
    34 | 0 | 0x00 | .
    35 | 0 | 0x00 | .
    36 | 0 | 0x00 | .
    37 | 0 | 0x00 | .
    38 | 0 | 0x00 | .
    39 | 0 | 0x00 | .
    40 | 170 | 0xAA | .
    ──────────────────────────────────────

    Timer set to 4 hours
    HEX:
    FA CE 00 24 84 23 47 00 00 00 00 00 1B 00 00 40 ...$.#G........@
    00 00 00 00 00 00 01 64 00 00 5A 00 F0 01 01 00 .......d..Z.....
    00 00 00 00 00 00 00 00 E6 .........

    DECIMAL VALUES:
    Byte | Value (dec) | Value (hex) | ASCII
    ──────┼─────────────┼─────────────┼──────
    0 | 250 | 0xFA | .
    1 | 206 | 0xCE | .
    2 | 0 | 0x00 | .
    3 | 36 | 0x24 | $
    4 | 132 | 0x84 | .
    5 | 35 | 0x23 | #
    6 | 71 | 0x47 | G
    7 | 0 | 0x00 | .
    8 | 0 | 0x00 | .
    9 | 0 | 0x00 | .
    10 | 0 | 0x00 | .
    11 | 0 | 0x00 | .
    12 | 27 | 0x1B | .
    13 | 0 | 0x00 | .
    14 | 0 | 0x00 | .
    15 | 64 | 0x40 | @
    16 | 0 | 0x00 | .
    17 | 0 | 0x00 | .
    18 | 0 | 0x00 | .
    19 | 0 | 0x00 | .
    20 | 0 | 0x00 | .
    21 | 0 | 0x00 | .
    22 | 1 | 0x01 | .
    23 | 100 | 0x64 | d
    24 | 0 | 0x00 | .
    25 | 0 | 0x00 | .
    26 | 90 | 0x5A | Z
    27 | 0 | 0x00 | .
    28 | 240 | 0xF0 | .
    29 | 1 | 0x01 | .
    30 | 1 | 0x01 | .
    31 | 0 | 0x00 | .
    32 | 0 | 0x00 | .
    33 | 0 | 0x00 | .
    34 | 0 | 0x00 | .
    35 | 0 | 0x00 | .
    36 | 0 | 0x00 | .
    37 | 0 | 0x00 | .
    38 | 0 | 0x00 | .
    39 | 0 | 0x00 | .
    40 | 230 | 0xE6 | .
    ──────────────────────────────────────

    Normal mode———> Wind mode
    HEX:
    FA CE 00 24 84 23 47 00 00 00 00 00 1B 00 00 00 ...$.#G.........
    00 00 00 00 00 00 01 01 01 00 5A 00 00 01 01 00 ..........Z.....
    00 00 00 00 00 00 00 00 54 ........T

    DECIMAL VALUES:
    Byte | Value (dec) | Value (hex) | ASCII
    ──────┼─────────────┼─────────────┼──────
    0 | 250 | 0xFA | .
    1 | 206 | 0xCE | .
    2 | 0 | 0x00 | .
    3 | 36 | 0x24 | $
    4 | 132 | 0x84 | .
    5 | 35 | 0x23 | #
    6 | 71 | 0x47 | G
    7 | 0 | 0x00 | .
    8 | 0 | 0x00 | .
    9 | 0 | 0x00 | .
    10 | 0 | 0x00 | .
    11 | 0 | 0x00 | .
    12 | 27 | 0x1B | .
    13 | 0 | 0x00 | .
    14 | 0 | 0x00 | .
    15 | 0 | 0x00 | .
    16 | 0 | 0x00 | .
    17 | 0 | 0x00 | .
    18 | 0 | 0x00 | .
    19 | 0 | 0x00 | .
    20 | 0 | 0x00 | .
    21 | 0 | 0x00 | .
    22 | 1 | 0x01 | .
    23 | 1 | 0x01 | .
    24 | 1 | 0x01 | .
    25 | 0 | 0x00 | .
    26 | 90 | 0x5A | Z
    27 | 0 | 0x00 | .
    28 | 0 | 0x00 | .
    29 | 1 | 0x01 | .
    30 | 1 | 0x01 | .
    31 | 0 | 0x00 | .
    32 | 0 | 0x00 | .
    33 | 0 | 0x00 | .
    34 | 0 | 0x00 | .
    35 | 0 | 0x00 | .
    36 | 0 | 0x00 | .
    37 | 0 | 0x00 | .
    38 | 0 | 0x00 | .
    39 | 0 | 0x00 | .
    40 | 84 | 0x54 | T
    ──────────────────────────────────────

    Wind mode——> Night mode
    HEX:
    FA CE 00 24 84 23 47 00 00 00 00 00 1B 00 00 40 ...$.#G........@
    00 00 00 00 00 00 01 01 02 00 5A 00 00 01 01 00 ..........Z.....
    00 00 00 00 00 00 00 00 95 .........

    DECIMAL VALUES:
    Byte | Value (dec) | Value (hex) | ASCII
    ──────┼─────────────┼─────────────┼──────
    0 | 250 | 0xFA | .
    1 | 206 | 0xCE | .
    2 | 0 | 0x00 | .
    3 | 36 | 0x24 | $
    4 | 132 | 0x84 | .
    5 | 35 | 0x23 | #
    6 | 71 | 0x47 | G
    7 | 0 | 0x00 | .
    8 | 0 | 0x00 | .
    9 | 0 | 0x00 | .
    10 | 0 | 0x00 | .
    11 | 0 | 0x00 | .
    12 | 27 | 0x1B | .
    13 | 0 | 0x00 | .
    14 | 0 | 0x00 | .
    15 | 64 | 0x40 | @
    16 | 0 | 0x00 | .
    17 | 0 | 0x00 | .
    18 | 0 | 0x00 | .
    19 | 0 | 0x00 | .
    20 | 0 | 0x00 | .
    21 | 0 | 0x00 | .
    22 | 1 | 0x01 | .
    23 | 1 | 0x01 | .
    24 | 2 | 0x02 | .
    25 | 0 | 0x00 | .
    26 | 90 | 0x5A | Z
    27 | 0 | 0x00 | .
    28 | 0 | 0x00 | .
    29 | 1 | 0x01 | .
    30 | 1 | 0x01 | .
    31 | 0 | 0x00 | .
    32 | 0 | 0x00 | .
    33 | 0 | 0x00 | .
    34 | 0 | 0x00 | .
    35 | 0 | 0x00 | .
    36 | 0 | 0x00 | .
    37 | 0 | 0x00 | .
    38 | 0 | 0x00 | .
    39 | 0 | 0x00 | .
    40 | 149 | 0x95 | .
    ──────────────────────────────────────

    Night mode——-> Normal Mode
    HEX:
    FA CE 00 24 84 23 47 00 00 00 00 00 1B 00 00 40 ...$.#G........@
    00 00 00 00 00 00 01 01 00 00 5A 00 00 01 01 00 ..........Z.....
    00 00 00 00 00 00 00 00 93 .........

    DECIMAL VALUES:
    Byte | Value (dec) | Value (hex) | ASCII
    ──────┼─────────────┼─────────────┼──────
    0 | 250 | 0xFA | .
    1 | 206 | 0xCE | .
    2 | 0 | 0x00 | .
    3 | 36 | 0x24 | $
    4 | 132 | 0x84 | .
    5 | 35 | 0x23 | #
    6 | 71 | 0x47 | G
    7 | 0 | 0x00 | .
    8 | 0 | 0x00 | .
    9 | 0 | 0x00 | .
    10 | 0 | 0x00 | .
    11 | 0 | 0x00 | .
    12 | 27 | 0x1B | .
    13 | 0 | 0x00 | .
    14 | 0 | 0x00 | .
    15 | 64 | 0x40 | @
    16 | 0 | 0x00 | .
    17 | 0 | 0x00 | .
    18 | 0 | 0x00 | .
    19 | 0 | 0x00 | .
    20 | 0 | 0x00 | .
    21 | 0 | 0x00 | .
    22 | 1 | 0x01 | .
    23 | 1 | 0x01 | .
    24 | 0 | 0x00 | .
    25 | 0 | 0x00 | .
    26 | 90 | 0x5A | Z
    27 | 0 | 0x00 | .
    28 | 0 | 0x00 | .
    29 | 1 | 0x01 | .
    30 | 1 | 0x01 | .
    31 | 0 | 0x00 | .
    32 | 0 | 0x00 | .
    33 | 0 | 0x00 | .
    34 | 0 | 0x00 | .
    35 | 0 | 0x00 | .
    36 | 0 | 0x00 | .
    37 | 0 | 0x00 | .
    38 | 0 | 0x00 | .
    39 | 0 | 0x00 | .
    40 | 147 | 0x93 | .
    ──────────────────────────────────────

  14. d0np3p3 commented on May 15, 2026

    @d0np3p3
    ContributorAuthor

    Great captures, thanks! We (me & Claude Sonnet 4.6) analyzed the binary firmware dump alongside your UART captures and can now map the complete protocol.

    Hardware confirmed:

    • ESP32-WROOM-32D
    • UART2: TX=GPIO17, RX=GPIO16
    • Checksum: sum of all bytes mod 256

    Frame structure (MCU→ESP, 42 bytes):

    FA CE | 00 24 | CMD | 23 47 | 00*8 | 1B | 00 00 | B15 | 00*6 | PWR | SPD | MOD | OSC | 5A | 00 | TMR | 01 01 | 00*10 | CHK
    
    Byte Field Values
    0–1 Magic FA CE
    2–3 Length 00 24
    4 CMD 84=state frame, 02=query
    5–6 Sub 23 47 (state) / 00 78 (WiFi query)
    15 Flag 0x40 normal, 0x00 wind mode only
    22 Power 00=OFF, 01=ON
    23 Speed 0x23=35%, 0x46=70%, 0x64=100%
    24 Mode 00=Normal, 01=Wind, 02=Night
    25 Oscillation 00=OFF, 01=ON
    26 Fixed 5A always
    28 Timer (min) 0x3C=1h, 0x78=2h, 0xB4=3h, 0xF0=4h
    41 Checksum sum of all previous bytes mod 256

    WiFi Query (MCU→ESP, periodically):

    FA CE 00 09 02 00 78 00 00 00 00 00 00 4B
    

    The MCU sends this regularly and reboots the ESP if it gets no valid response. This is why you're seeing the 5–10 min reboot.

    WiFi Response (ESP→MCU) — from firmware binary analysis:

    The firmware contains a resource ID pair table. Resource 0x78 (query) maps to 0x70 (response). So the correct reply is:

    FA CE 00 09 81 00 70 02 00 00 00 00 00 C4
    
    • Byte 4: 81 = ACK/Response
    • Byte 6: 70 = response resource (paired with query resource 0x78)
    • Byte 7: WiFi status — try these in order:
      • 0x02 = WiFi connected → ...00 70 02... C4
      • 0x03 = WiFi + cloud connected → ...00 70 03... C5
      • 0x01 = connecting → ...00 70 01... C3

    Best first attempt: FACE0009810070020000000000C4

    The MCU likely stops rebooting the ESP once it sees status 02 or 03. Try 03 if 02 doesn't stop the reboot — it may expect cloud connectivity confirmation.


    Note: the response resource 0x70 came from the firmware binary, not from your captures — you only sniffed RX (GPIO16). To fully confirm, sniff TX (GPIO17) with the original firmware running.

  15. d0np3p3 commented on May 19, 2026

    @d0np3p3
    ContributorAuthor

    Hello @BobeOlsen, can you still switch between the original and esphome fw? i did some research, but i didn't get the uart to run, could you test some settings with the dreammaker app? i think Byte 27 ist the oscillation angle, it also can be moved left an right, also please set the timer to 8 hours in the app. i did some work here, but i can't confirm if it is working: https://github.com/d0np3p3/esphome-dreammaker-fan

  16. BobeOlsen commented on May 19, 2026

    @BobeOlsen

    Hi
    I did successfully revert back to OG firmware multiple times
    I do not use the esphome for my needs i wanted to us it with homekit and homespan library in arduino

    Here is what currently have have for byte map not sure how accurate is it but works for me

    Image

    UART/Serial data in HEX captured on GPIO17 TX————>MCU RX while controlling fan from the App.

    Turn ON with smart breeze mode
    FA CE 00 0C 04 23 47 00 00 28 BC 00 03 00 00 01 2A

    Turn ON with direct breeze mode
    FA CE 00 0C 04 23 47 00 00 F1 BD 00 03 00 00 01 F4

    Turn ON with direct breeze mode
    FA CE 00 0C 04 23 47 00 00 47 30 00 03 00 00 01 BD

    Turn OFF
    FA CE 00 0C 04 23 47 00 00 0D 86 00 03 00 00 00 D8

    Turn OFF
    FA CE 00 0C 04 23 47 00 01 6F 8B 00 03 00 00 00 40

    Turn OFF
    FA CE 00 0C 04 23 47 00 00 02 63 00 03 00 00 00 AA

    Switched to natural breeze
    FA CE 00 0C 04 23 47 00 01 29 CE 00 03 00 02 01 40

    Switched to direct breeze
    FA CE 00 0C 04 23 47 00 01 59 38 00 03 00 02 00 D9

    Set speed to level 2
    FA CE 00 0C 04 23 47 00 01 61 ED 00 03 00 01 28 BD
    Set speed to level 3
    FA CE 00 0C 04 23 47 00 00 82 F9 00 03 00 01 3F 00
    Set speed to level 4
    FA CE 00 0C 04 23 47 00 01 2D 62 00 03 00 01 64 3A

    Turned ON oscillation with preset 90 degree
    FA CE 00 0C 04 23 47 00 00 E7 80 00 03 00 03 01 B0

    Changed oscillation to 30 degree
    FA CE 00 0C 04 23 47 00 00 BA 72 00 03 00 04 1E 93

    Changed oscillation to 60 degree
    FA CE 00 0C 04 23 47 00 00 49 07 00 03 00 04 3C D5

    Changed oscillation to 120 degree
    FA CE 00 0C 04 23 47 00 00 87 13 00 03 00 04 78 5B

    Changed oscillation to 140 degree
    FA CE 00 0C 04 23 47 00 00 80 B7 00 03 00 04 8C 0C

    Notification sound ON
    FA CE 00 0C 04 23 47 00 00 3F 7C 00 03 00 07 01 08

    Notification sound OFF
    FA CE 00 0C 04 23 47 00 00 6B 08 00 03 00 07 00 BF

    Child Lock ON
    FA CE 00 0C 04 23 47 00 00 17 F8 00 03 00 09 01 5E

    Child Lock OFF
    FA CE 00 0C 04 23 47 00 00 43 05 00 03 00 09 00 96

    LED indication ON
    FA CE 00 0C 04 23 47 00 01 6D DB 00 03 00 08 01 97

    LED indication OFF
    FA CE 00 0C 04 23 47 00 01 0C EF 00 03 00 08 00 49

    Scheduled Turn-OFF set to OFF
    FA CE 00 0D 04 23 47 00 01 6B C3 00 04 00 06 00 00 7C

    Scheduled Turn-OFF set to 1
    FA CE 00 0D 04 23 47 00 01 02 76 00 04 00 06 00 3C 02

    Scheduled Turn-OFF set to 2
    FA CE 00 0D 04 23 47 00 00 A0 9D 00 04 00 06 00 78 02

    Scheduled Turn-OFF set to 3
    FA CE 00 0D 04 23 47 00 00 0E C8 00 04 00 06 00 B4 D7

    Scheduled Turn-OFF set to 4
    FA CE 00 0D 04 23 47 00 00 9D DE 00 04 00 06 00 F0 B8

    Scheduled Turn-OFF set to 5
    FA CE 00 0D 04 23 47 00 01 12 FF 00 04 00 06 01 2C 8C

    Scheduled Turn-OFF set to 6
    FA CE 00 0D 04 23 47 00 00 C1 58 00 04 00 06 01 68 CF

    Scheduled Turn-OFF set to 7
    FA CE 00 0D 04 23 47 00 01 16 D5 00 04 00 06 01 A4 DE

    Scheduled Turn-OFF set to 8
    FA CE 00 0D 04 23 47 00 00 2C FE 00 04 00 06 01 E0 58

  17. d0np3p3 commented on May 23, 2026

    @d0np3p3
    ContributorAuthor

    Thank you, i got it with your findings, i didn't get output from mcu.
    Esphome runs and working, some small issues to fix,and test long running.
    See my repo.

  18. BobeOlsen commented on May 23, 2026

    @BobeOlsen

    Thank you, i got it with your findings, i didn't get output from mcu. Esphome runs and working, some small issues to fix,and test long running. See my repo.

    Glad the info was useful that means I actually did something that works
    Same here works fine with homekit also few tweaks needed

  19. d0np3p3 commented on May 23, 2026

    @d0np3p3
    ContributorAuthor

    @BobeOlsen Are you going to share your project?

  20. BobeOlsen commented on May 24, 2026

    @BobeOlsen

    @BobeOlsen Are you going to share your project?

    You mean the code/sketch?
    I dont want to deal with all the github way of doing it like repo or whatever its called
    I can just paste arduino sketch here and if it will help somebody else that would be nice

  21. BobeOlsen commented on May 26, 2026

    @BobeOlsen

    here is the ArduinoIDE HomeSpan sketch that currently is running on the fans ESP32 Wroom 32D with Apple homekit just fine there is some minor issue that could be fixed I think but generally speaking it works great no random disconnection etc.
    Also attached is reverse engineered protocol created by Claude AI

    Thanks to d0np3p3 for checksum hint (plain 8-bit sum)

    Now moving on to zhimi.fan.za3 Xiaomi Smartmi Standing Fan 2

    ESP32_Wroom_32D_Fan_DM-FAN01-T_HomeKit.odt

    Dream_Feel_Fan_DM_FAN01_HomeSpan_Ver3.ino.zip

  22. d0np3p3 commented on Jul 31, 2026

    @d0np3p3
    ContributorAuthor

    Hello has anybody, maybe @BobeOlsen access to the mcu communication and can test what happens if you try to pair a remote, I am still trying to get it work....
    Everything else is working fine with Esphome.

    [Screenshot_20260731-213703.png

  23. d0np3p3 commented on Aug 3, 2026

    @d0np3p3
    ContributorAuthor

    Correction to my earlier comment in this thread — the 0x70 response I posted
    was speculation read out of the firmware binary, never verified against a
    real capture. It is wrong, and I'd rather flag it than leave people building on
    it.

    Wrong (my earlier guess):

    FA CE 00 09 81 00 70 02 00 00 00 00 00 C4
                 ^^ action 81      ^^ resource 0x70
    

    Correct, confirmed from live UART captures (original firmware running
    against a simulated MCU on a test bench):

    action: 0x82
    resource: 0x0078      <- echoes the QUERY resource, there is no 0x70
    

    The MCU polls with action:2, resource:0x0078 roughly every 60 s, and the ESP
    answers action:0x82 on the same resource. The response payload is 56 bytes:

    FA CE 00 44 82 00 78 [msg_id 4B] 00 3B
    64 6D 69 6F 74 5F 76 31 2E 31 2E 30 00 00 00 00   "dmiot_v1.1.0"  (16 B)
    7A 65 69 63 6F 5F 33 2E 30 2E 30 00 00 00 00 00   "zeico_3.0.0"   (16 B)
    35 63 30 31 33 62 62 66 36 30 64 63 00 00 00 00   "5c013bbf60dc"  (16 B)
    00 00 00 00 01 00 01 02 00 02                     status bytes    (8 B)
    [checksum]
    
    Offset Len Content
    0 16 comm_version, ASCII, null-padded
    16 16 firmware_version, ASCII, null-padded
    32 16 12-hex-digit device ID, ASCII (device-specific)
    48 8 status bytes, meaning still unclear

    Without a response the MCU pulls the ESP's EN pin low and reboots it after
    about four minutes, so this one matters if you're writing your own firmware.

    This is also consistent with @BobeOlsen's independent app captures in this
    thread — those matched our resource mapping 1:1, including the exact angle
    bytes (0x1E/3C/78/8C = 30/60/120/140°) and timer values
    (0x3C/78/B4/F0 = 1–4 h).

    Sorry for the noise. Full protocol notes here:
    https://github.com/d0np3p3/esphome-dreammaker-fan/blob/main/PROTOCOL.md


    Optional addition — only if you want to mention the remote

    The BLE remote work is on a beta branch and needs a per-device key, so it may
    be more noise than help for that thread. Include only if it seems welcome:

    Unrelated but possibly interesting for this thread: the original DM-FCB01
    remote turned out to broadcast each button press as a BLE advertisement
    (company ID 0x4D44), with an 8-byte payload encrypted using single DES in
    ECB mode
    . The key is stored per device in the fan's NVS as ble_key.
    Decrypted, the payload holds the pressed button, the complete target state
    and a checksum — so the remote can keep working after flashing ESPHome,
    without re-pairing. Details:
    https://github.com/d0np3p3/esphome-dreammaker-fan/blob/v4.0.0-beta/PROTOCOL.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0