HomeACcessoryKid / life-cycle-manager

Initial install, WiFi settings and over the air firmware upgrades for any esp-open-rtos repository on GitHub
Apache License 2.0
60 stars 11 forks source link

Provisioning wifi and repo using Serial #6

Open i3laze opened 5 years ago

i3laze commented 5 years ago

Use the serial port as input while you setup a new device so there is no need for the wifi AP

Awesome job overall, Thank you! But..

Provisioning via Serial works too straightforward - my experience isn't great:

  1. scandone string interrupts my input every 10 sec. What's for is it?
  2. Result: 'ota_repo'=... If this is not OK, re-flash the device I'd love to be able Confirm OR retype again to fix misprints.
  3. Press <enter> to continue I did, but nothing happened. Bunch of scandone, but no other activity.

UPD: I had to power cycle my Sonoff Basic for OTA magic to begin. Is it by design? Then it should be prompted.

HomeACcessoryKid commented 5 years ago

Thanks for your feedback Scandone comes from the Wifi somehow having started searching. Did you start with a full erase?

This was the very first implementation and I made it as simple as possible. Some future version will have retype system (no promis when)

PowerCycle: You have a point there. It is a bug in the ESP-bootROM that after flashing a reboot command does not work reliable until a power cycle is needed. I will add it to the prompt.

This item can stay open till I have coded it (to remember ;-)

tgreer commented 5 years ago

I might be missing something, but I can't appear to enter anything into the serial console in order to provision that way, using 1.0.0. Am I missing something?

i3laze commented 5 years ago

I might be missing something, but I can't appear to enter anything into the serial console in order to provision that way, using 1.0.0. Am I missing something?

Actually, 3 months passed and I stumbled on it too (Sonoff Basic, baud rate 115200). I see serial log output, but no questions asked and my input has no effect.

Any plans on improving serial provisioning?

P.S. Still powercycle required after wifi and repo settings input. Even via SoftAP/smartphone.

UPD:

LifeCycleManager version 1.0.0
Will start Wifi AP for config if no input in 5 seconds
Press <enter> to begin
Too Late, Typo? Just restart

Totally can't catch these 5 sec.. let it be 8+..

HomeACcessoryKid commented 4 years ago

I believe to have addressed all of the above requests.
You can test it using https://github.com/HomeACcessoryKid/LCMdev
Note that this is never going to a stable repo, so do not apply it for production devices

i3laze commented 4 years ago

Thank you! I’ll give it a try during the week.

HomeACcessoryKid commented 4 years ago

Note that maybe your use of a terminal program influences your success I use Esplorer (with some setting changed from default) because it supports 74880 or Z-Term (32bit, I know)

Good luck

On 27 Jan 2020, at 04:46, i3laze notifications@github.com wrote:

Thanks, No promises, I’ll give it a try during the week.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/HomeACcessoryKid/life-cycle-manager/issues/6?email_source=notifications&email_token=AFOQOQRJVQ6O5VSFD7LA6ULQ7ZKIHA5CNFSM4GPSGJ7KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJ6HMKY#issuecomment-578582059, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFOQOQV2XCEXBBFZG35DC63Q7ZKIHANCNFSM4GPSGJ7A.