logo elektroda
logo elektroda
X
logo elektroda

BK7231N Sber Smart Relay SBDV-00050 Pin Assignment and Teardown

tehb13 624 13
ADVERTISEMENT
  • #1 21278069
    tehb13
    Level 3  

    Packaging of the SBER smart relay with text Salut! This is a smart relay and specification 1 channel, 3.68 kW.

    SBER smart relay device with technical specifications

    Close-up of a printed circuit board featuring an AFE BPD-S104SDM relay and other electronic components on a gray background.

    Circuit board with integrated circuits and electronic components.

    Close-up of an electronic module with pin markings and an antenna.

    Blue PCB with pin labels and a logo at the top.

    AFE BPD-SS-105DM relay module with coils and capacitors.

    Electronic module on a gray background with visible components and connectors.


    PINAssignment
    ADC3
    P8Switch
    P24
    P16Button
    P7
    TX1
    GNDGND


    PINAssignment
    EN
    P9RELAY
    P6
    P14
    P26LED
    RX1
    VD0 3.3v
  • ADVERTISEMENT
  • #2 21278275
    divadiow
    Level 34  
    Cool. What are your plans for this device regarding the firmware?
  • ADVERTISEMENT
  • Helpful post
    #3 21278408
    kuba2k2
    Level 13  
    Encryption keys for ESPHome:
    Code: YAML
    Log in, to see the code
  • #4 21278547
    divadiow
    Level 34  
    interesting module. doesn't seem these are for sale outside of Russia/Kazakhstan though :(
  • ADVERTISEMENT
  • ADVERTISEMENT
  • #7 21279490
    insmod
    Level 24  
    >>21279480 If erased without backup, then the original bootloader is lost - guaranteed brick. Or then separating the bootloader from backup image, and flashing just it. Alongside losing RF partition.
    >>21279094 Besides, there is no need to flash a full image, just flashing ota package is enough. Bootloader will then update the firmware. In my case on a different device - bkcrypt_coeff is probably wrong - flashing didn't work. But writing rbl at ota address, and subsequent updates from esphome works ok.
  • #8 21279522
    tehb13
    Level 3  
    I flashed the backup. The device works.
    I got this error when flashing the sbdv-00050-ota.rbl
    When flashing sbdv-00050.uf2, no errors occur, but the device does not work, as well as without adding:
    Code: YAML
    Log in, to see the code
  • #9 21279537
    divadiow
    Level 34  
    insmod wrote:
    If erased without backup, then the original bootloader is lost - guaranteed brick. Or then separating the bootloader from backup image, and flashing just it. Alongside losing RF partition.

    yes, I should have been clearer. The user has posted a backup on Github. BKFIL can be used to erase/flash specific address areas in flash.
  • #10 21280204
    insmod
    Level 24  
    >>21279522 At what address did you flash sbdv-00050-ota.rbl?
    Try to get uart1 connected, if bootloader version is something like 1.0.13, then it will print what is wrong with OTA package (like wrong enc keys).
    You can also erase main firmware (for first attempt - 0x10000 to 0x12000) after flashing OTA. Maybe it will work then.
  • #11 21284726
    tehb13
    Level 3  
    BK7231n_1.0.8
    CPSR:0x000000D3
    R0:0x00800000
    R1:0x00000000
    R2:0x005AA000
    R3:0x00000006
    R4:0x00400001
    R13:0x00401C1C
    R14(LR):0x000033AC
    ST:0x00000000
    [I/FAL] Fal(V0.4.0)success
    [I/OTA] RT-Thread OTA package(V0.2.4) initialize success.
    
    go os_addr(0x10000)..........


    the device can be pinged, but it doesn't have a web interface and doesn't connect to homeassistant.
    please write step-by-step instructions on which files to flash to which addresses

    Spoiler:

    Code: YAML
    Log in, to see the code

  • #12 21284776
    insmod
    Level 24  
    >>21284726 If you are using ltchiptool, then choose rbl and just flash it, it should be autodetected as beken ota image with 0x132000 address.
    Btw, you are missing a "+" sign in board_flash.download, it should be "0x132000+0xCC000"
    And please add log to esphome configuration, it will be easier to debug. And maybe enable api encryption?
    Also, what esphome version are you using? In the OTA config in the latest versions you need to select the platform (just esphome for now) like that
    
    ota:
      - platform: esphome
        password: !secret ota_password
    
  • #13 21284811
    tehb13
    Level 3  
    I have not lost the plus symbol in yaml. This probably happened when publishing the post
    Screenshot of a YAML file named sbdv-00050.yaml with a configuration for esphome.

    When I try to flash sbdv-00050-ota.rbl via ltchiptool, over the factory, I get an error
    Error displayed during an attempt to flash a file using ltchiptool

    BKFIL flashes it without an error.

    logs_sbdv-..050.txt Download (40.54 kB)
  • #14 21284826
    insmod
    Level 24  
    >>21284811 Considering there is no log after go os_addr(0x10000), then it probably flashed successfully. Now try reflash backup, then flash new ota image with logging enabled.
    Your esphome version is rather old, 2024.4.1. But nothing much should have changed for beken, so updating is probably unnecessary.

Topic summary

The discussion revolves around the BK7231N Sber Smart Relay SBDV-00050, focusing on pin assignments and firmware flashing issues. Users share insights on encryption keys for ESPHome, methods for flashing firmware, and troubleshooting steps for successful device operation. Key points include the importance of using the correct OTA package and flashing specific address areas, as well as the potential risks of losing the bootloader. Participants also discuss the availability of the device and share links to images and resources for further assistance.
Summary generated by the language model.
ADVERTISEMENT