-
Notifications
You must be signed in to change notification settings - Fork 730
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
Reset Arduino after finish the boot #230
Comments
esp-link does not make any attempt to reset the attached uC when it starts up. I don't know which function you set for gpio12, but if you put a pull-up on it it should stay up. Some users use the attached uC as master and esp-link as "slave" and power down the esp8266 to save power. In that use-case it would be very undesirable to reset the attached uC at esp-link boot time. |
I'm using default firmware available here. I'm talking about function called by this button: Maybe this one: https://github.com/jeelabs/esp-link/blob/master/html/console.html#L81 It could be an optional function with check box in home page to enable. The problem is if the ESP resets by any reason the Arduino won't resync and will keep trying send data. Arduino can crash for it. Call Sync() before try send data won't solve because there a delay to get the connection status. |
If esp-link resets then the EL-Client library will resync. If not, please create a ticket on the el-client repo and describe the exact steps to reproduce the problem with debug output. You're welcome to create a PR to add an option to reset the attached uC when esp-link starts up, but this is not something I plan to work on or something that can be on by default. |
I would like to help you with a PR but I have no idea about what I have to edit on code. Regarding el-client I have explained the problem for you here: jeelabs/el-client#29 Thanks for your time. |
closing 'cause nothing has moved here in a long time. |
Hi!
I can see that during the boot GPIO12 goes to down during a while but it is not enough to reset the Arduino.
I can see too that the "reset uC" function in console.html works fine.
I would like to suggest you to call this function after finish the boot, so Arduino will reset together with ESP.
The best solution could be resync Arduino and ESP after a reset but the reset callback is not working as I told here: jeelabs/el-client#29
Best regards.
The text was updated successfully, but these errors were encountered: