Skip to content
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

Closed
FernandoGarcia opened this issue Dec 13, 2016 · 5 comments
Closed

Reset Arduino after finish the boot #230

FernandoGarcia opened this issue Dec 13, 2016 · 5 comments

Comments

@FernandoGarcia
Copy link

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.

@tve
Copy link
Member

tve commented Dec 13, 2016

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.
What are you trying to solve by resetting the arduino when esp-link boots?

@FernandoGarcia
Copy link
Author

I'm using default firmware available here.

I'm talking about function called by this button:

s

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.

@tve
Copy link
Member

tve commented Dec 13, 2016

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.

@FernandoGarcia
Copy link
Author

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.

@tve
Copy link
Member

tve commented Jun 18, 2017

closing 'cause nothing has moved here in a long time.

@tve tve closed this as completed Jun 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants