logo elektroda
logo elektroda
X
logo elektroda

Changing firmware increasingly difficult? Smart Switch on T34 and QFN soldering

p.kaczmarek2 2604 60
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
📢 Listen (AI):
  • #31 21752893
    Atgeek25
    Level 5  
    I tried 1.18.83 but the problem persist.
    Now I'm also facing a new problem with 2 out 4 modules, the relay won't switch anymore.
    Both the relay and the transistor are good, so I guess the problem is the gpio pin.
  • ADVERTISEMENT
  • #32 21752907
    p.kaczmarek2
    Moderator Smart Home
    Are you really sure that you soldered back T34 correctly?
    No cold solder joins, etc, no poor contacts?
    Because, you know... in like 4 years of development we never had a GPIO control failure in OpenBeken.

    Futhermore... poor contact on WiFi antenna pads would also explain WiFI quality issues. Hmmm.

    Or maybe you have lost template while updating/testing? Is given GPIO still configured as Relay?
    Helpful post? Buy me a coffee.
  • #33 21752985
    Atgeek25
    Level 5  
    Well, I actually double/triple checked it by resoldering it again, but the problem persist on two devices.
    Template is ok
  • #34 21753022
    p.kaczmarek2
    Moderator Smart Home
    Which pin exactly is not working? Give exact pin index. Is it still configured as "Relay" in configure module? And does it work when toggled from GPIODoctor?
    Helpful post? Buy me a coffee.
  • #35 21753416
    Atgeek25
    Level 5  
    Pin26, configured as "Rel" in the template.
    Using gpio Doctor doesn't change anything. It just can't toggle the relay anymore. I think they just die after using them for a while...
  • ADVERTISEMENT
  • #36 21753752
    p.kaczmarek2
    Moderator Smart Home
    Remember that GPIODoctor will reassign a channel of given pin, so you need to set it back in configure module.

    That really sounds like a soldering issue. Especially that you're saying that it happens for some of the BKs, not all of them.

    @divadiow does P26 work fine on your BK7231N?
    Helpful post? Buy me a coffee.
  • #37 21753763
    divadiow
    Level 37  
    p.kaczmarek2 wrote:
    @divadiow does P26 work fine on your BK7231N?

    I am able to PU/PD P26 as expected yes - 1.18.212


    Digital multimeter reads 3.26V next to a developer board with a Wi-Fi module.
  • ADVERTISEMENT
  • #38 21754418
    Atgeek25
    Level 5  
    Can you measure it on the module PCB?
  • #39 21755269
    Atgeek25
    Level 5  
    I think all of them are gonna stop working eventually, since there is no flyback diode across the relay coil. Weirdly enough the transistor did survive, but I think the gpio got cooked by the back EMI
  • #40 21756227
    Atgeek25
    Level 5  
    Those modules are completely unreliable. Just got other 4 on my hands and flashed one. After a reboot, it resetted itself. What a mess
  • #41 21756239
    p.kaczmarek2
    Moderator Smart Home
    Are you sure there is no flyback diode? Can you show a photo?

    Enable PowerSave 1 in OBK to make sure that you're not overheating the power supply.
    Helpful post? Buy me a coffee.
  • #42 21756331
    Atgeek25
    Level 5  
    Sure, here it is
    Close-up of backlit PCB with red arrow pointing at a circuit tracePCB with a diode M7 positioned parallel to the N-IN input, marked by a red arrow.
    As you can see on the first pic, the left relay track leads directly to the transistor collector, while the other is connected directly to 5V. The are 5 diodes on the PCB, the two on the bottom are connected in series from L-IN to the transformerless IC, while the other 2 near the IC are connected to the low voltage output after the inductor. Oddly enough, there is one M7 diode in parallel to the N-IN, which makes no sense to me 😅
  • #43 21760034
    Atgeek25
    Level 5  
    Another one just died in 4 days. I think it's cause the input switch pin is not isolated from main voltage, in fact it's using neutral as ground. I think that's the problem
  • #44 21761988
    p.kaczmarek2
    Moderator Smart Home
    I think it would be worth to compare their longevity with non-flashed devices (Tuya firmware - without desoldering T34). This would eliminate the possibility that some pads of T34 weren't soldered correctly.

    I don't think those smart switches should die that fast. They are low quality, but not that bad...
    Helpful post? Buy me a coffee.
  • #45 21776839
    rchristescu
    Level 7  
    I bought some similar devices, with RF433 feature. Looks the same, but have some more components populated on the pcb.

    Four RF433 and Wi-Fi devices: remote control, switch, round button, and control panel Relay module with blue PCB and green screw terminal connector Electronic module with 13.52127 MHz crystal and chip on PCB
    They come with battery powered remotes, but can be paired with any ordinary RF433 remote.
    In order to pair, the device button must be pressed 3 times, then the remote 2 times. To forget all remotes the device button must be pressed 8 times.
    Pairing can also be done via Tuya app.
    I have desoldered the chip, flash with OBK, then solder back.
    Configuration is the same as for devices w/o RF433 feature.
    Original firmware attached.
    readResult...4RF_01.bin Download(2 MB)
    Device works ok, but without the RF433 feature.
    It is not possible to add a remote by pressing the button 3 times.
    Is any possibility to setup OBK in order to have RF433 feature available?
  • #46 21776847
    p.kaczmarek2
    Moderator Smart Home
    We're working on it. This device requires Beken to be able to decode raw IR data from the receiver chip.
    Helpful post? Buy me a coffee.
  • #47 21780847
    DeDaMrAz
    Level 21  
    rchristescu wrote:
    Is any possibility to setup OBK in order to have RF433 feature available?


    We are close to getting this to work, experiments are on the way and so far we have managed to get the reading, and get the consistent data.

    Screenshot of IR logs: received code 591944, 24-bit, protocols 1 and 17

    This is a capture from Princeton protocol remote, Roger protocol also works - more tests are needed...

    Stay tuned!
  • #48 21780853
    p.kaczmarek2
    Moderator Smart Home
    @divadiow do you have device with RF receiver?
    Helpful post? Buy me a coffee.
  • #50 21780879
    DeDaMrAz
    Level 21  
    divadiow wrote:
    https://www.elektroda.com/rtvforum/topic4021221.html#21144422


    We are working on the same device 😎😎😎 that other one will be interesting. Do you have any time to test?
  • ADVERTISEMENT
  • #51 21780882
    divadiow
    Level 37  
    sure, but not tonight. I'm sooo tired
  • #53 21780903
    divadiow
    Level 37  
    and this. don't think I posted about it anywhere

    Smart WiFi+RF433 switch with casing and exposed circuit board
    Close-up of PCB with labeled pins ANT, P8, VCC, and GNDClose-up of a PCB with SMT components and antenna traces inside a plastic case
  • #55 21780940
    p.kaczmarek2
    Moderator Smart Home
    Hey @insmod , what would you say, can we keep it enabled by default, with current flash sizes? I think we should finally stop growing binary so T LFS is not removed.
    https://github.com/openshwprojects/OpenBK7231T_App/pull/1900
    Helpful post? Buy me a coffee.
  • #56 21780947
    DeDaMrAz
    Level 21  
    Princeton RF remote that comes with these devices is now supported. Some more tests before release is needed and some time tweaks but overall expect it very soon.

    This is test autoexec that is working on my test device:

    
    addEventHandler RC 591944 ToggleChannel 1
    addEventHandler RC 591940 ToggleChannel 2
    addEventHandler RC 591948 ToggleChannel 3
    addEventHandler RC 591938 ToggleChannel 4
    


    We had the same approach to get to read data first so you'll have an ability to see the code your remote is transmitting and set the autoexec.

    More to come...
  • #57 21781243
    p.kaczmarek2
    Moderator Smart Home
    addEventHandler2 can be used to detect whether button is doing initial press or kept held. Second event argument is bHold (0 or 1).
    Helpful post? Buy me a coffee.
  • #58 21781273
    DeDaMrAz
    Level 21  
    Just to explain more, important for addEventHandler2 it accepts 2 arguments - RC <CODE> ( or IR <CODE> ) 0 or 1 then action.

    addEventHandler2 RC <CODE> 0 POWER ALL 1


    This means that all the relays will be toggled to ON state (1 after POWERALL, change to 0 for OFF state) on the first CODE received as the feature of detecting the signal will give you this output

    Info:IR:Received 591944 / 24 bit protocol 1, hold 0
    Info:IR:Received 591944 / 24 bit protocol 1, hold 1
    Info:IR:Received 591944 / 24 bit protocol 1, hold 1
    Info:IR:Clearing hold timer


    on every button press.

    So 0 for toggle and 1 for possible dimmer application, not for relays.
  • #59 21781812
    p.kaczmarek2
    Moderator Smart Home
    Helpful post? Buy me a coffee.
  • #60 21781912
    rchristescu
    Level 7  
    >>21776839 Tested, it works, great! Thanks a lot!
    So, I downloaded the latest flasher - BK7231GUIFlashTool-v178, extract config from Tuya binary backup, see RF remote on P6.
    Update device to OBK 1.18.227, set P6 as RCRecv, execute command "startDriver RC" and that's it.
    I can read the remote code.
    To control the relay I execute command: addEventHandler2 RC <code> 0 POWER TOGGLE
    But can do a lot more, actually it can be used as a RFBridge.

    Later edit: I've noticed something strange. The driver does not work in combination with "powersave 1".
📢 Listen (AI):
ADVERTISEMENT