You're viewing a topic that has been removed.
logo elektroda
logo elektroda
X
logo elektroda

YOMOGI YO-WIFI-C02 Smart Curtain with RF remote - Working progress

iz1gww 138 0
ADVERTISEMENT
  • #1 21637739
    iz1gww
    Level 11  
    Hi guys, i disassembled a smart curtain switch mod. YO-WIFI-C02 branded YOMOGI

    Blue YOMOGI YO-WIFI-C02 module with labeled terminals and connection diagram.YO-WIFI-C02 module in blue casing with technical specifications

    inside


    Circuit board of curtain controller module labeled QL-0870 Rev:A, dated 2024.03.30 Electronic module with two relays and screw terminals on a PCB

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


    Electronic board with W701 chip, top view of populated white PCB Electronics module PCB with labeled pins TXD, A19, A18, A0, A16, A15


    Photo showing both sides of W701 module with labeled GPIO pins and connections


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

    RF module with VCC and NC pins labeled, showing IC chip and antenna

    QL-0866 module with labeled GND and GPIO (TX & BINDING) pins

    and relative remote

    White remote with six buttons for curtain control and position percentages

    with the same custom IC


    Close-up of PCB with 2148aMC chip and 16 MHz crystal oscillator

    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
    Log in, to see the code

    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
    Log in, to see the code

    RF remote circuit board with labeled buttons and central chip visible

    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
  • ADVERTISEMENT
ADVERTISEMENT