The source codes of the firmware with my settings are lost. Is it possible to somehow decompile the bin file to make the corrections I need and compile back? Then flash the board with this binary.
The code is all at github: GitHub - Aircoookie/WLED: Control WS2812B and many more types of digital RGB LEDs with an ESP8266 or ESP32 over WiFi!
You want to revers engineer a bin ? That could be considered hacking with other implication .
What are you talking about? What a hack if the open source code of the program is freely available! And I wanted to unpack my compiled bin file.
I have such a situation. I really need to delay Wi-Fi initialization by 10 seconds when turning on the controller, because it slows down my preset when turned on. One kind person prescribed me such settings and compiled a bin file. Now I want to add some more settings to the firmware. But the problem is that I don’t know where in the source files to write this line of code to delay Wi-Fi initialization by 10 seconds and then compile my bin file.
I no longer have a connection with this good man. There is only a bin file with the setting I need. Actually, hence the question of decompilation arose.
Why not just leave the controller powered on and use a relay to kill power to the LEDs? Seems kind of silly having your controller reconnecting to your network all the time.
I completely agree with you that de-energizing the controller is stupid. That is why it is called a controller, because it constantly monitors the state of the connected load, and not just the switch.
But unfortunately, the hands of the masters who did the repairs grew out of their asses. The wiring is laid in such a way that the only way to turn the light on and off is with a button on the wall, which opens the power circuit of the 220-volt power unit. The controller hangs on the edge of the tape and is powered by it. All this is hidden under the ceiling. Now, in order to connect everything as written in the book, I need to break the ceiling, gouge the walls and lay the wiring through the new one.
Can someone tell me where in the source code to write the command to delay the launch of WiFi? Then I can compile the bin. Or maybe you can somehow see in my bin file how it was done?
Yeah i am not saying do not do that in open source , i was just pointing out that such tools could be used with even none open source bins . I would be personally interested in that as i have seen some really advanced work on ethical hacking for cases like yours but it was on another level and part of it was intentionally kept from public consumption . This is not really related to wled alone but in general to MCU based revers engineering . Have a nice day and i hope you could find a solution
I found how to delay the launch of Wi-Fi for 10 seconds when the controller is turned on, maybe it will come in handy for someone.
In the sources, in the \wled00 folder, the wled.cpp file. changed line 686.
Compiled the bin file, flashed the ESP board.
HOORAY! The preset stopped stopping when the controller was turned on.
I express my gratitude for the help of the user from softhack007 the Discord server.