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

Provisioning wifi and repo using Serial #6

Open
i3laze opened this issue Jan 12, 2019 · 6 comments
Open

Provisioning wifi and repo using Serial #6

i3laze opened this issue Jan 12, 2019 · 6 comments

Comments

@i3laze
Copy link

i3laze commented Jan 12, 2019

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
Copy link
Owner

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
Copy link

tgreer commented Jan 25, 2019

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
Copy link
Author

i3laze commented Mar 20, 2019

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
Copy link
Owner

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
Copy link
Author

i3laze commented Jan 27, 2020

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

@HomeACcessoryKid
Copy link
Owner

HomeACcessoryKid commented Jan 27, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants