-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flashing a Sonoff Basic R1 #86
Comments
I managed to get this to work. I reprogrammed the device with micropython (successfully) and then with cforth. And it works. |
Spoke to soon, works but on startup it sometimes does not. Also, when it does start, can't switch relay |
OK, some progress. I removed most of the code from app.fth leaving just the bare minimum. I have a utility word
used like this
And sure enough a subscriber gets the message. Followed shortly by
Any suggestions ? |
Yes I am reading it but I don't have much time to do anything about it. |
If it is a watchdog reset then something is probably blocking so the core wifi code cannot run periodically. Normally, when you run mqtt-loop, it calls do-tcp-poll which includes "ms" inside the loop, which returns to the ESP8266 core code to give it time to do its wifi stuff. But since you did not tell us what your main loop looks like, I can't tell what is going on. Are you just sitting at the ok prompt? Or what? You have to give me a lot of information for me to be able to help you without wasting huge amounts of my time. |
I understand that you have a day job Mitch, I was wondering if others (who post here) had seen this. I interrupt the auto start. I then enter
After a short delay it returns I then run the publish command, my subscriber sees the message. Then the reset. I have only seen the watchdog a few times. I also see a reset. I'm beginning to suspect power issues since I am running the sonoff from external power, i.e. not mains. If I get time I'm going to try a few things today. As always, thanks for your assistance. |
In the past I had some power issues when the ESP8266 or ESP32 were connecting to my router. |
I too have had problems that were solved with a capacitor. In my case it was an ESP32 on a D1 Mini form factor module. The module had too little capacitance on 3V3, so when the radio turned on the 3v3 rail dipped and caused the module to reset. A 220uF cap from 3V3 to GND fixed it. The quality "Devkit C" modules from Espressif seem to have about 50uF on 3V3, so that might be enough, assuming a good quality cap that has its rated capacitance. |
Hi,
I have a 'spare' sonoff R1 and I am trying to flash cforth onto it.
I have read the notes
I am using the following to flash it:
I have flashed other things (Tasmota and cforth onto esp8266 boards) recently bit for information the esptool version is
Any advice/hints/tips etc is appreciated.
Thanks
Andrew
The text was updated successfully, but these errors were encountered: