Hi guys, i disassembled a smart curtain switch mod. YO-WIFI-C02 branded YOMOGI

inside
inside i have found a W701 mcu, searching info online i understand that is a RTL8720 clone (or compatible)
than there is a custom rf receiver for remote(i suppose on 2.4Ghz band due to the 16Mhz quartz)
and relative remote
with the same custom IC
for programming i use the classic tools and gear : usb to ttl adapter with 3.3v supply and amebaZII PGTool 1.2.47, with OpenRTL87X0C_1.18.155.bin
connected in this way :
W701 Module USB-TTL Module
VCC 3.3v
GND GND
A15 TX
A16 RX
A0 3.3v (for bootloader mode)
RXD 3.3v (for bootloader mode)
all flashing procedure completed correctly and i can proceed with configuration
PIN A07 - Button 2 Open
PIN A11 - LED
PIN A12 - Button Close
PIN A14 - Data from remote receiver
PIN A18 - Relays 1 Close
PIN A19 - Relays 2 Open
here my autoexec script
at this point i have a smart curtain module basically working, but without remote function.... i enable the driver tuyaMCU and i see that the custom mcu use a protocol different from the classic tuyaMCU, it use only 3 byte at all and the 2 header byte are 55 A5 insteath classic 55 AA so the tuyaMCU driver can't work... i collect the codes of all remote's function and they are
now i'm stuck, i don't find any function to use with the script for manage this code, i don't find a function that permit to read the bytes read by a gpio...
any suggestion?
thank you very mutch
Alex


inside


inside i have found a W701 mcu, searching info online i understand that is a RTL8720 clone (or compatible)



than there is a custom rf receiver for remote(i suppose on 2.4Ghz band due to the 16Mhz quartz)


and relative remote

with the same custom IC


for programming i use the classic tools and gear : usb to ttl adapter with 3.3v supply and amebaZII PGTool 1.2.47, with OpenRTL87X0C_1.18.155.bin
connected in this way :
W701 Module USB-TTL Module
VCC 3.3v
GND GND
A15 TX
A16 RX
A0 3.3v (for bootloader mode)
RXD 3.3v (for bootloader mode)
all flashing procedure completed correctly and i can proceed with configuration
PIN A07 - Button 2 Open
PIN A11 - LED
PIN A12 - Button Close
PIN A14 - Data from remote receiver
PIN A18 - Relays 1 Close
PIN A19 - Relays 2 Open
here my autoexec script
Code: Text
at this point i have a smart curtain module basically working, but without remote function.... i enable the driver tuyaMCU and i see that the custom mcu use a protocol different from the classic tuyaMCU, it use only 3 byte at all and the 2 header byte are 55 A5 insteath classic 55 AA so the tuyaMCU driver can't work... i collect the codes of all remote's function and they are
Code: Text
now i'm stuck, i don't find any function to use with the script for manage this code, i don't find a function that permit to read the bytes read by a gpio...
any suggestion?
thank you very mutch
Alex