orionrobots / Bounce

Visual Programming System For Esp8266 running NodeMCU
Apache License 2.0
56 stars 19 forks source link

Serial connecting issues with init.lua #26

Closed dannystaple closed 7 years ago

dannystaple commented 8 years ago

As reported by user Bernard Bout:

I think it is with your Timeout of 2 seconds(I looked at the code). On my NodeMCU I have an init.lua on the chip that sets it as StationAP and then prints out the AP info and tries to connect to my Wifi and prints out the Station IP assigned.

  1. So I set the Options to 115200 and clicked connect, It connects but times out when trying to connect as station to my WiFi.
  2. Once it times out like this, it will NOT connect again till I unplug the NodeMCU and replug it. Even pressing Reset button on the board does not work.
  3. I used ESPlorer and deleted init.lua from my board. Now when I try to connect I still cannot, but this is what I see: http://i64.tinypic.com/fz0r4g.jpg and if I try to reset with the button - no dice. Some code needs the button to reset the board like the Blink loop so it should recover from a reset.
dannystaple commented 8 years ago

First to try and reproduce this - I'll need to set up a board with the same code. Note - I do NOT know the Lua build - or when this is connected. However - I am aware of some serial instability myself.

I've attached the output from my board before adding an init.

2016-06-12 1
dannystaple commented 8 years ago

Original issue screenshot from Bernard Bout attached. fz0r4g

dannystaple commented 8 years ago

I've added code with timeouts and checking for the "powered by Lua" text as well. This should give the system a better chance of confirming.

dannystaple commented 7 years ago

The serial has fundamentally changed, and timeouts are configurable now. This is not reproducible.