jeelabs / esp-link

esp8266 wifi-serial bridge, outbound TCP, and arduino/AVR/LPC/NXP programmer
Other
2.84k stars 723 forks source link

Help Adding better uC flashing interface using arduino ide #357

Open frizzle101101 opened 6 years ago

frizzle101101 commented 6 years ago

So i have this working manualy with just the firmware the way it is and a program on my computer that maps the esp-ip:23 to a COM port which i can use the arduino ide to target. I say manually because as soon as you see upload in the ide you must press the reset button and hope it syncs up. Ive gotten it to work a bunch of times. So i just want to purpose to add some checks to check for the serial sequence (27,1,0,1,14,1,20) then resets the child uC for the next upload attempt, this is then the start of the sync sequence if it is timed propperly.

uzi18 commented 6 years ago

Try with port 2323

frizzle101101 commented 6 years ago

No difference on port 2323 same operation i must restart it manually to get it in sync to start the upload

frizzle101101 commented 6 years ago

the auto reset on 2323 doesnt help with the timing it, and it doesnt always auto reset.

uzi18 commented 6 years ago

if you have constant connection reset will not occur.

27.01.2018 6:05 PM "frizzle101101" notifications@github.com napisał(a):

the auto reset on 2323 doesnt help with the timing it.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/jeelabs/esp-link/issues/357#issuecomment-360998485, or mute the thread https://github.com/notifications/unsubscribe-auth/AAHOU9Ydvf9v5n0JYP3o48FUtFbUU65gks5tO1dRgaJpZM4RvLv8 .

frizzle101101 commented 6 years ago

Ok i got that to work but the restart is too early or late, probs late, for sync

frizzle101101 commented 6 years ago

I just need help finding the place where I can edit the code, i guess to change the restart requirment on port 2323, just restart when sees the programming sequence