life-cycle-manager icon indicating copy to clipboard operation
life-cycle-manager copied to clipboard

Provisioning wifi and repo using Serial

Open i3laze opened this issue 6 years ago • 6 comments

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.

i3laze avatar Jan 12 '19 08:01 i3laze

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 ;-)

HomeACcessoryKid avatar Jan 12 '19 12:01 HomeACcessoryKid

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?

tgreer avatar Jan 25 '19 17:01 tgreer

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+..

i3laze avatar Mar 20 '19 07:03 i3laze

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

HomeACcessoryKid avatar Jan 26 '20 23:01 HomeACcessoryKid

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

i3laze avatar Jan 27 '20 03:01 i3laze

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 [email protected] 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.

HomeACcessoryKid avatar Jan 27 '20 06:01 HomeACcessoryKid