logo elektroda
logo elektroda
X
logo elektroda

Miboxer FUT036w and CB3s Issues: Flashing Firmware, WiFi Connectivity, and Button Control

mplum 5421 61
ADVERTISEMENT
  • #31 20535211
    mplum
    Level 3  
    I cannot reproduce it. I have switched the Flag 12 and 17 off and on again. I don't know what happened the first time.

    But with Flag 17 it is not possible to switch on with Smart Button when the LED is off and you press directly long the button. You know what I mean?

    And is it possible to select the steps how fast the Smart Button increases?

    Miboxer FUT036w and CB3s Issues: Flashing Firmware, WiFi Connectivity, and Button Control Miboxer FUT036w and CB3s Issues: Flashing Firmware, WiFi Connectivity, and Button Control
  • ADVERTISEMENT
  • #32 20535602
    p.kaczmarek2
    Moderator Smart Home
    mplum wrote:

    But with Flag 17 is Not possible to Switch on with Smart Button when the led is off and you Press directly Long the Button. You Know what i mean?

    Ah ok, I understand now! This is because this flag is only for WWW, and you want it for Smart Button as well? Or maybe in general to make that work... it makes sense, I think! Let me see....
    https://github.com/openshwprojects/OpenBK7231...mmit/d441a9d9685cb3ba56840c739d3ab3cf863e2d64
    Done, it should work that way, can you check next release?

    mplum wrote:

    And it is possible to select the Steps How fast the Smart Button increase?

    You can customize button times to change how often hold event is cast.
    The command is:
    
    // SetButtonTimes [ValLongPress] [ValShortPress] [ValRepeat]
    // Each value is times 100ms, so: SetButtonTimes 2 1 1 means 200ms long press, 100ms short and 100ms repeat
    // Default is:
    SetButtonTimes  10 3 5
    

    I think that if you set:
    
    SetButtonTimes  10 3 1
    

    then dimmer will change 5x faster (0.1s is 5x faster than 0.5s)
    And if you set:
    
    SetButtonTimes  10 3 10
    

    dimmer will change 2x slower
    Helpful post? Buy me a coffee.
  • #33 20543374
    mplum
    Level 3  
    OK with the Smart Button is working. The lights go on when you press and hold the button.

    With the time I need to check. But I think this is what I will change. Is the step also possible to change with a command? In the moment the step is 10%.

    Added after 10 [hours] 14 [minutes]:

    Some other question, is it possible to send messages from one cb3s to another cb3s. I will realize a central On / off function. When I press one button on a cb3s then all other cb3s hear this and switch on or off? I think about Home Assistant and use an MQTT Broker. But Home Assistant needs a few minutes to start on the raspberry. I will use it in my mobile home. So it's important for me that it starts in a few seconds.
  • #34 20550159
    mplum
    Level 3  
    >>20535602
    i have to addDimmer with a script. Then the dimmer does not go on when you press long the button. you can with the script toggle the led. and with long you can dim. But with the script the led does not go on when you press long and the led is off
  • ADVERTISEMENT
  • #35 20550761
    p.kaczmarek2
    Moderator Smart Home
    mplum wrote:
    OK with the Smart Button is working. The lights going on when you press hold the button.

    With the time i need to check. But i think this is what i will change.
    Is the step also possible to change with a command?
    in The moment the step is 10%.
    .


    I've added a DimmerDelta command, usage: DimmerDelta 20 to set 20 step, etc, etc, you can set 5, 1, any integer value.
    Please update firmware.

    mplum wrote:

    Some other question, is it possible to send messages from one cb3s to another cb3s. i will relaize a zantral On / off function. when i press one button on a cb3s then all other cb3s hearing this und switch on or off?
    I think about Home assistent and use an MQTT Broker. But Home Assistent needs few minutes to start on the raspberry.
    I will use it in my mobilehome. so its important for me that start in a few seconds.

    There is a SendGet command.
    Examples:
    
    SendGet http://192.168.0.112/cm?cmnd=Power0%20Toggle
    addRepeatingEvent 5 SendGet http://192.168.0.112/cm?cmnd=Power0%20Toggle
    addEventHandler OnClick 8 SendGet http://192.168.0.112/cm?cmnd=Power0%20Toggle
    

    Example usage with channel listener for relays:
    
    addChangeHandler Channel1 == 0 SendGet http://192.168.0.112/cm?cmnd=Power0%20OFF
    addChangeHandler Channel1 == 1 SendGet http://192.168.0.112/cm?cmnd=Power0%20ON
    

    There is also automatic way - device groups.
    See tutorial here:
    https://www.youtube.com/watch?v=e1xcq3OUR5M&ab_channel=Elektrodacom
    but basically you set group name, enable send/receive in Configure Device Groups and it will sync automatically...

    What kind of script do you have, can you post it here?
    Helpful post? Buy me a coffee.
  • #36 20550779
    mplum
    Level 3  
    OK. I want to write a script that contains the following functions.
    2 buttons with script only
    2 PWM outputs that are on one channel.

    If I should now press a button briefly, the LED should toggle.
    Now if I long press I want to run add_dimmer 1 until 100 is reached. It shouldn't go higher than 100 or jump back to 0 or anything.

    If I then let go and long-press again, I want to run add_Dimmer -1 until a minimum value is reached. e.g. 5.

    When I double-click, I want to issue one or more sendget commands to implement a central command.

    Ok now to the script.
    The script works halfway. I just can't dim up and down. For this I need a variable that I press every long time Toggle. and thus I distinguish whether I dim up or down.

    For example, I don't know how I can query the P26 in an IF, which is only script only.
    Or you can also use AND commands in an IF to query 2 conditions.
    e.g. If P26==1 and Channel10==1 then goto Dimm_up

    If P26==1 and Channel10==0 then goto Dimm_down

    Is there an Edge command. Which is only active for the first cycle?

    Is there somewhere in the documentation a list of event handlers and ChangeHandler or RepeatHandler etc.
    I didn't find anything in the documentation about that

    This would be the script I'm running right now:

    setButtonTimes 2 1 0

    addEventHandler OnClick 6 POWER TOGGLE
    addEventHandler OnClick 26 POWER TOGGLE
    addEventHandler OnHold 6 add_Dimmer 1 1
    addEventHandler OnHold 26 add_Dimmer 1 1


    addEventHandler OnDblClick 6 SendGet http://192.168.1.94/cm?cmnd=Power0%20Toggle
    addEventHandler OnDblClick 26 SendGet http://192.168.1.94/cm?cmnd=Power0%20Toggle



    Thank you first of all.

    Added after 10 [minutes]:

    >>20535211

    now i have the same problem again. no matter what I do. if I switch on flag 12, then I can't control the LED either via the buttons or via the website. Channel always remains 0

    I have P6 and P26 as BTN script only

    P7 and P8 as PWM Channel 0

    P24 WiFi LED

    In the configuration, if I turn flag 12 off and turn on flag 17, I can dim and switch again, but when the LED is off and then long press to dim, the LED doesn't go ON.
    If I take a Smart Btn then it works, is that possible?
  • #37 20550831
    p.kaczmarek2
    Moderator Smart Home
    Let me try analyze your message step by step. I may also just look into hardcoding your button behaviour request, but we will see.


    mplum wrote:

    Ok now to the script.
    The script works halfway. I just can't dim up and down. For this I need a variable that I press every long time Toggle. and thus I distinguish whether I dim up or down.

    It should be possible to do that:
    
    // let's say channel 20 is a dimmer direction
    $CH20 = 1
    
    // at start, this will add $CH20 value to dimmer, which is 1 now
    addEventHandler OnHold 26 add_Dimmer $CH20 1
    // but if you do something like this:
    setChannel 20 -1
    // now the event handler will add -1 value, not 1
    


    mplum wrote:

    For example, I don't know how I can query the P26 in an IF, which is only script only.
    Or you can also use AND commands in an IF to query 2 conditions.
    e.g. If P26==1 and Channel10==1 then goto Dimm_up

    If P26==1 and Channel10==0 then goto Dimm_down

    Why do you want to query P26? I don't understand.

    We have IF command. See self test:
    https://github.com/openshwprojects/OpenBK7231T_App/blob/main/src/selftest/selftest_if.c
    
    if $CH10==1 then do_smth
    


    mplum wrote:

    Is there an Edge command. Which is only active for the first cycle?

    What is edge? Do you want to trigger first button hold?
    Button supports:
    - OnHold
    - OnHoldStart
    - OnDblClick
    - On3Click
    - On4Click
    - On5Click
    - OnRelease
    - OnPress

    mplum wrote:

    Is there somewhere in the documentation a list of event handlers and ChangeHandler or RepeatHandler etc.
    I didn't find anything in the documentation about that

    I apologize, the docs for that part are not ready. We are working on it. Here is a list:
    Code: C / C++
    Log in, to see the code
    Helpful post? Buy me a coffee.
  • #38 20552740
    mplum
    Level 3  
    Hi,
    i have some questions about then script:
    - how can i select onHold with the IF, For Exampel If OnHold 26 then echo Hold26
    - how can i use add_Dimmer with an IF? see on the last lines in the script. This is no working. The log said: fourth argument always must be 'else', but it's '-1'
    - how can i use 2 or more actions with an IF? The backlog is not working. for exampel: if $CH11==1 then backlog add_dimmer -1 1; echo dimm_up


    here is my actual script: i can switch between the direction, but the dimmer is not working about the Problem with the add_Dimmer with the IF


    setButtonTimes 2 3 0
    ClampChannel 0 5 100

    $CH10 = 1
    $CH11 = 1


    addEventHandler OnClick 6 POWER TOGGLE
    addEventHandler OnClick 26 POWER TOGGLE
    //addEventHandler OnHold 6 add_Dimmer 1 1
    //addEventHandler OnHold 26 add_Dimmer 1 1

    //Channel 10 is to switch between dim up and down
    addEventHandler OnHoldStart 6 ToggleChannel 10
    addEventHandler OnHoldStart 26 ToggleChannel 10

    // Channel 11 only on when i press long the Button P6 or P26
    addEventHandler OnHoldStart 6 setChannel 11 1
    addEventHandler OnHoldStart 26 setChannel 11 1
    addEventHandler OnRelease 6 setChannel 11 0
    addEventHandler OnRelease 26 setChannel 11 0


    //Group Send
    addEventHandler OnDblClick 6 backlog DGR_SendPower All_on 1 1; POWER ON
    addEventHandler On3Click 6 backlog DGR_SendPower All_on 0 1; POWER OFF

    addEventHandler OnDblClick 26 backlog DGR_SendPower All_on 1 1; POWER ON
    addEventHandler On3Click 26 backlog DGR_SendPower All_on 0 1; POWER OFF


    Main:
    echo Channel 10 $CH10
    echo Channel 11 $CH11

    If $CH10==0 then goto Dimm_up
    If $CH10==1 then goto Dimm_down

    Dimm_up:
    if $CH11==1 then add_dimmer 1 1
    goto Main

    Dimm_down:
    if $CH11==1 then add_dimmer -1 1
    goto Main

    Added after 1 [hours] 25 [minutes]:

    This is my script that is working fine .
    But there are Problems with the flags.Flas 12 and 17 is on.

    On the first device Flag 12 and 17 is on.
    The remember of the LED driver state is ok.
    But the led go not on when the led is off and i press long the button.
    That is only working with smart_BTN

    And the 2nd Device.
    When i activate Flag 12 i cant use the unit. I cannot switch on or off. not with the button, not in the Web portal.
    I have restart again and again, but its not working.
    when i deactivate the flag it is working, but without save the Dreiver state


    setButtonTimes 2 3 0
    ClampChannel 0 5 100

    $CH10 = 1
    $CH11 = 1


    addEventHandler OnClick 6 POWER TOGGLE
    addEventHandler OnClick 26 POWER TOGGLE
    //addEventHandler OnHold 6 add_Dimmer 1 1
    //addEventHandler OnHold 26 add_Dimmer 1 1

    //Channel 10 is to switch between dim up and down
    addEventHandler OnHoldStart 6 ToggleChannel 10
    addEventHandler OnHoldStart 26 ToggleChannel 10

    // Channel 11 only on when i press long the Button P6 or P26
    addEventHandler OnHoldStart 6 setChannel 11 1
    addEventHandler OnHoldStart 26 setChannel 11 1
    addEventHandler OnRelease 6 setChannel 11 0
    addEventHandler OnRelease 26 setChannel 11 0


    //Group Send
    addEventHandler OnDblClick 6 backlog DGR_SendPower All_on 1 1; POWER ON
    addEventHandler On3Click 6 backlog DGR_SendPower All_on 0 1; POWER OFF

    addEventHandler OnDblClick 26 backlog DGR_SendPower All_on 1 1; POWER ON
    addEventHandler On3Click 26 backlog DGR_SendPower All_on 0 1; POWER OFF


    Main:
    //echo Channel 10 $CH10
    //echo Channel 11 $CH11

    If $CH10==0 then goto Dimm_up
    If $CH10==1 then goto Dimm_down

    Dimm_up:
    if $CH11==1 then goto Add_Dimm_up
    goto Main

    Dimm_down:
    if $CH11==1 then goto Add_Dimm_down
    goto Main

    Add_Dimm_up:
    add_dimmer 1 0
    //echo up
    goto Main

    Add_Dimm_down:
    add_dimmer -1 0
    //echo down
    goto Main

    Added after 4 [minutes]:

    And the Group Adress send is not working fine. When i start both moduls. and i make double click then only the local unit going on. when i make a 2nd double click then the 2nd unit going also on. but only the first time after restart. After restarting i waiting for the connectio to the wifi, then i make the test.
  • #39 20553107
    p.kaczmarek2
    Moderator Smart Home
    Hello, good job on the script.
    mplum wrote:
    - how can i use add_Dimmer with an IF? see on the last lines in the script. This is no working. The log said: fourth argument always must be 'else', but it's '-1'

    Very good question! Currently you can use alias for this purpose.

    
    // once, at startup:
    alias MySetDimmerDay led_dimmer 15
    alias MySetDimmerNight led_dimmer 88
    // somewhere inside loop
    if $hour<10||$hour>20 then MySetDimmerNight else MySetDimmerDay 
    

    mplum wrote:
    - how can i use 2 or more actions with an IF? The backlog is not working. for exampel: if $CH11==1 then backlog add_dimmer -1 1; echo dimm_up'

    In general, backlog should be working in this case, but for now, same as above. See your modified example b elow:
    
    // once, at startup
    alias Do_Dimmer_Up backlog add_dimmer -1 1; echo dimm_up
    // later, when you run your script
    if $CH11==1 then Do_Dimmer_Up 
    


    mplum wrote:

    - how can i select onHold with the IF, For Exampel If OnHold 26 then echo Hold26

    I am sorry, but I'm afraid I am not sure what you are trying to do. OnHold is an event that is thrown at given time, it's not persistent. The correct OhHold usage is following:
    
    addEventHandler OnHold 5 addChannel 4 10
    



    mplum wrote:

    And the Group Adress send is not working fine. When i start both moduls. and i make double click then only the local unit going on. when i make a 2nd double click then the 2nd unit going also on. but only the first time after restart. After restarting i waiting for the connectio to the wifi, then i make the test.

    I am currently not sure what the problem is, can you provide more information?
    Maybe you could just come up with a simple scenario with two or 3 devices and give me an example what is not working?
    Your script is currently very complicated.

    The device groups should work good without any scripting. Just setup them via GUI.

    In worst case you could use HTTP instead:
    
    // when channel 1 becomes 0, send OFF
    addChangeHandler Channel1 == 0 SendGet http://192.168.0.112/cm?cmnd=Power0%20OFF
    // when channel 1 becomes 1, send ON
    addChangeHandler Channel1 == 1 SendGet http://192.168.0.112/cm?cmnd=Power0%20ON
    

    or even a single-liner with a $CH10 variable usage (or any other channel)
    Helpful post? Buy me a coffee.
  • #40 20553178
    mplum
    Level 3  
    p.kaczmarek2 wrote:
    In general, backlog should be working in this case, but for now, same as above. See your modified example below:

    OK I will test it.

    p.kaczmarek2 wrote:
    I am sorry, but I'm afraid I am not sure what you are trying to do. OnHold is an event that is thrown at given time, it's not persistent. The correct OnHold usage is following:

    I will use the OnHold function in the If function.

    p.kaczmarek2 wrote:
    I am currently not sure what the problem is, can you provide more information?
    Maybe you could just come up with a simple scenario with two or 3 devices and give me an example what is not working?
    Your script is currently very complicated.

    The device groups should work good without any scripting. Just set them up via GUI.

    In worst case you could use HTTP instead:

    I have 10 lights in my mobile home. All of the lights have their own Button.
    I will use the local button to switch on/off and dim up and down.
    On dblClick I will send a group address message to switch ALL_on
    On 3click I will send a group address message to switch ALL_off.
    So I can use all Buttons in the mobile home to make a central On or OFF.
    But when I press only short then only one Light goes on and off. or I can dim up and down.
    The Problem is when I haven’t used any light for a few minutes and I send the ALL_On message. then the other device does not go on.
    When I send a second message then the other device goes on. Then I can send ALL On and ALL off different times and all the time it is working.
    When I don’t use any Lights for a few minutes then only the first Message does not respond.

    On the first Line you can see the first Message on the other device.
    On the 2nd line you can see the 2nd Message on the other device. I have made a dblClick (on the 1st device) directly after the first Message.
    Then the device writes the 3rd Line with the IP from the first device and then the LED on the 2nd device goes on.
    Info:DGR:DGR_Parse: grp name All_on len 6
    Info:DGR:DGR_Parse: grp name All_on len 6
    Info:DGR:DGR_Parse: [192.168.1.94] seq 0x0001, flags 0x00
    You understand the problem??
  • #41 20553231
    p.kaczmarek2
    Moderator Smart Home
    If you think that SendAll is not reliable, then replace this:
    
    addEventHandler OnDblClick 6 backlog DGR_SendPower All_on 1 1; POWER ON
    addEventHandler On3Click 6 backlog DGR_SendPower All_on 0 1; POWER OFF
    

    with this:
    
    addEventHandler OnDblClick 6 backlog startScript sendAllOn.bat; POWER ON
    addEventHandler On3Click 6 backlog startScript sendAllOff.bat; POWER OFF
    

    Then, in sendAllOn.bat try, option 1:
    
    // send several time, just to be sure
    DGR_SendPower All_on 1 1
    delay_s 0.1
    DGR_SendPower All_on 1 1
    delay_s 0.1
    DGR_SendPower All_on 1 1
    delay_s 0.1
    

    alternatively, try using SendGET (option 2):

    
    // each IP is next light
    SendGet http://192.168.0.100/cm?cmnd=POWER%20ON
    delay_s 0.1
    SendGet http://192.168.0.101/cm?cmnd=POWER%20ON
    delay_s 0.1
    SendGet http://192.168.0.102/cm?cmnd=POWER%20ON
    delay_s 0.1
    SendGet http://192.168.0.103/cm?cmnd=POWER%20ON
    delay_s 0.1
    

    You can try shortening the delays or doing multiple GET together.

    Remember to create the second file, sendAllOff.bat, as well
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #42 20553253
    mplum
    Level 3  
    ok that is 1 option, i will test.
    But with 10 units they need 1s to switch all off.

    Why is the 1st message not working? Maybe energy saving or something?
    it's really always the first command that isn't recognized and after that it always works. Until you haven't been served for several minutes.

    In general, this is a super function. with the Group_Address .
  • #43 20554221
    p.kaczmarek2
    Moderator Smart Home
    The thing is, 1st message is working for me, in case of my network. Please check both options and let me know how it works.

    Also, I know that in my example it would take 1s, but you can make delays smaller and try to send for example 2 gets together
    Helpful post? Buy me a coffee.
  • #44 20554589
    mplum
    Level 3  
    p.kaczmarek2 wrote:
    // send several time, just to be sure
    DGR_SendPower All_on 1 1
    delay_s 0.1
    DGR_SendPower All_on 1 1
    delay_s 0.1


    This is working fine!

    Other question. I have use Flag 12. To save the state when you switch off.
    But i see in the log that all Change off the Channel will be saved. Is this a Problem whith the write cylen?
    When i use BtnHold with Add_Dimmer then every step will be saved.
    For exampel is it better to save when you Release the Button.
  • #45 20554657
    p.kaczmarek2
    Moderator Smart Home
    You have raised a good concern, but our flash memory system is very flexible, when it comes to saving state. We are doing multiple flash writes per single erase cycle, thanks to the system designed by a contributor. At the current state of things, unless I'm much mistaken, the sector size is 4096 bytes and we write 64 bytes (or so?) per cycle, so 4096/64, so we have 64 cycles per erase.... furthermore, flashvars reside over two sectors, so the wear is also 2x slower.

    Futhermore, BK7231 identifies as EN25QH16B , which has minimum 100k endurance cycles.
    And with our system (doing 64 writes per one erase, or even 128 if you count two sectors), then we have 128 000k save states until flash wears out...

    even if we assume it's an order of magnitude lower, it's still much

    Maybe I am optimistic here, but I think there is no need to worry about that.

    Still, we are considering to make a change to our system and for example only save LED state every 10 seconds when it's marked as modified, but this may also have drawbacks, if user changes LED state and turns off power quicker.. what do you think?
    Helpful post? Buy me a coffee.
  • #46 20556902
    mplum
    Level 3  
    ok that sounds great.

    You could also make a flag, always save or only every X seconds.

    Or you make an extra command. That would be enough for me. When I dim, not every step has to be saved. That's enough at the end of the dimming process.
  • #47 20557106
    p.kaczmarek2
    Moderator Smart Home
    I think we will just settle with saving LED every N seconds (if modified, otherwise not).

    So how is your Device Groups stability? Have you got latest DGR update (from about two days ago)?
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #48 20557111
    mplum
    Level 3  
    I don't see the update.
    With the extra script and 2 send command is working. I can change it to 1 command and see what happen.
  • #49 20557126
    p.kaczmarek2
    Moderator Smart Home
    The build from yesterday, 1.17.54, should improve DGR a bit. Any later builds will also be good.
    Helpful post? Buy me a coffee.
  • #50 20557237
    mplum
    Level 3  
    is not working with only 1 command.
  • #52 20557271
    mplum
    Level 3  
    I have no Power save programmed in the script.

    But the Start value is 1.
    But when the Energy consumption is higher with PowerSave 0 then I use the script with the 2 commands.
  • #53 20559643
    mplum
    Level 3  
    Hello.

    I think I found the problem with flag 12.
    If you activate the Flag12, then submit, then save and if you then restart directly without having sent an LED command once, it won't come out of there anymore.
    If you set Flag12 submit and save and then dim back and forth a bit and then restart. Then everything works.

    And another problem with the command:
    ClampChannel 0 5 100

    I have it in my autoexec.bat script and my LED always goes on when I restart. Should that be so? I thought that just sets the limits.
  • #54 20559673
    p.kaczmarek2
    Moderator Smart Home
    mplum wrote:

    I think I found the problem with flag 12.
    If you activate the Flag12, then submit, then save and if you then restart directly without having sent an LED command once, it won't come out of there anymore.
    If you set Flag12 submit and save and then dim back and forth a bit and then restart. Then everything works.

    Hmmm flag 12 only saves LED state on change so it is basically expected. But we assume that users set flag 12 at the beginning of configuration so it's not the big deal that first state after setup is not saved, is it?
    Or do you mean there is another problem?


    mplum wrote:

    And another problem with the command:
    ClampChannel 0 5 100

    I have it in my autoexec.bat script and my LED always goes on when I restart. Should that be so? I thought that just sets the limits.

    This is incorrect. That command clamps channel value at the time of execution. In case of bulbs, it is operating on raw PWM values, which is not recommended. So basically, it will clamp PWM 0 (red color?) at the device startup to [5,100] range, so if PWM 0 is 0 it will set it to 5, ignoring the led state.
    Helpful post? Buy me a coffee.
  • #55 20559752
    mplum
    Level 3  
    p.kaczmarek2 wrote:
    Hmmm flag 12 only saves LED state on change so it is basically expected. But we assume that users set flag 12 at the beginning of configuration so it's not the big deal that first state after setup is not saved, is it?
    Or do you mean there is another problem?

    so that's what I noticed. As I said, if I restart immediately after setting the flag, I have the problem.
    If I then first dim it worked.


    p.kaczmarek2 wrote:
    This is incorrect. That command clamps channel value at the time of execution. In case of bulbs, it is operating on raw PWM values, which is not recommended. So basically, it will clamp PWM 0 (red color?) at the device startup to [5,100] range, so if PWM 0 is 0 it will set it to 5, ignoring the led state.

    OK. Then I must have used it incorrectly.
    So I want to limit the dimming range.
    If I dim up, it should end at 100 and if I dim down, it should end at 5, for example. It should not dim down to 0.

    But without the command, it does exactly that. I hadn't tested that at all. sorry
  • #56 20564057
    mplum
    Level 3  
    Ok. So I will ask Herr again.
    Is it not possible to copy the firmware from one device to another? It only the WiFi settings are not ok?
    Is there a different way to copy all settings, scripts and so on.
  • #57 20564121
    p.kaczmarek2
    Moderator Smart Home
    You can do a 2MB flash backup with Flasher tool, but flashing it to other device might break it, because RF calibration data is per-device.

    The recommended way to copy configuration is download OBK config and then upload it again:
    Miboxer FUT036w and CB3s Issues: Flashing Firmware, WiFi Connectivity, and Button Control
    This will copy everything except MAC address which must be unique and except LFS.
    For LFS (files, autoexec.bat) you can download TAR backup (archive) here:
    Miboxer FUT036w and CB3s Issues: Flashing Firmware, WiFi Connectivity, and Button Control
    Helpful post? Buy me a coffee.
  • #58 20572958
    mplum
    Level 3  
    some different question.

    i have a problem with one cb3s. i can read and write the firmware.
    i can see the script in the bin file.
    but the program is not running.
    i can not connect.
    also with the 5 times power on off to switch in the emergency mode is not possible.
    it is possible that the cb3s is damaged?
    but why i can read the firmware?

    thank you
  • #59 20573784
    p.kaczmarek2
    Moderator Smart Home
    Was this CB3S ever functional? Or is it like that from the start?

    What does the log output on TX2 pin shows? 115200 baud rate
    Helpful post? Buy me a coffee.
  • #60 20578983
    mplum
    Level 3  
    >>20564121

    Sorry Start cfg Write with the OBK File is not working.
    I can download the file. And then on the other device i select the file. Then i can Start with Press the Y. Then i need to reboot. But when i then go to the configuration i can see only a few lines and the start again.
    i have check it different times.

Topic summary

The discussion revolves around issues faced with the Miboxer FUT036w LED controller after flashing it with the ObenBK firmware. Users report successful WiFi connectivity and MQTT integration but encounter problems with web control and button functionality. The conversation highlights the complexity of the TuyaMCU protocol, the need for proper PWM pin connections to MOSFETs for effective light control, and the challenges of managing internal pull-up resistors affecting button operations. Solutions proposed include using a single PWM to control multiple MOSFETs, modifying button behavior through scripts, and addressing firmware bugs. Users also discuss the potential for connecting 1-wire sensors and the importance of maintaining device state across reboots. The conversation concludes with considerations for device configuration and the implications of using Flag 12 for state saving.
Summary generated by the language model.
ADVERTISEMENT