happy-bubbles / presence-firmware

Apache License 2.0
42 stars 26 forks source link

Generic ESP8266 Load of Firmware #16

Open mdframe opened 4 years ago

mdframe commented 4 years ago

Has anyone been able to flash a generic esp8266 and get the device to run as expected? I have loaded a couple of the devices I had laying with the existing firmware, v12, and the flasher which is successful however I am never able to get the config mode working. I have tried pulling GPIO12 to high per what I looked at in the source code but it never goes into web server config mode. I have also tried numerous other things including monitoring the serial connection but nothing is displaying.

Just thought I would ask around... I am working to setup of the development environment to compile locally but I believe I would get the same result as I am experiencing.

nemik commented 4 years ago

You should definitely see output from the UART and console, so I'd first work out how to get that working. For the config button, GPIO 12 should be pulled high by default, so pulling it low for 5 seconds or so should start the config mode. I hope this help.

mdframe commented 4 years ago

Thanks for the info. I am using 115200 baud for the console, and tried others, but nothing is showing, any ideas on how to get the serial monitor working? I have not had any issues in the past with getting serial output with these devices. The ESP8266Flasher shows successful for all three binaries. I was also able to use the esptools.py script to load it with the given memory locations with the same result.

mdframe commented 4 years ago

I was able to resolve the load of the firmware. I am now seeing messages on the console so thank you for telling me to continue looking into that section. I was able to get the device configured and setup one however it now just gives the same message over and over regarding CONFIG COUNT RESET. I must still have something misconfigured.

mdframe commented 4 years ago

What is the expected baud of the bluetooth module attached to the esp8266?

nemik commented 4 years ago

it's 115200. The source code for the BLE module with more info is here: https://github.com/happy-bubbles/presence-firmware/tree/master/ble_module