This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
esp8266_firmware_update [2014/11/08 23:49] g4wnc-mike |
esp8266_firmware_update [2020/06/27 23:02] (current) |
||
|---|---|---|---|
| Line 20: | Line 20: | ||
| Before you start the update, make sure your ESP8266 is working normally as follows: | Before you start the update, make sure your ESP8266 is working normally as follows: | ||
| - Connect-up as above but leave GPIO0 floating. | - Connect-up as above but leave GPIO0 floating. | ||
| - | - Access the serial interface with a terminal program such as PuTTY. | + | - Access the serial interface with a terminal program such as PuTTY or Termite. |
| - Set the terminal s/w baud rate to either 57600 or 115200 (depends on whether you have an early or later model). The CoolComponents models are 115200. | - Set the terminal s/w baud rate to either 57600 or 115200 (depends on whether you have an early or later model). The CoolComponents models are 115200. | ||
| - Power-up the ESP8266 and you should see some readable text indicating that it's ready. If you get nonsense try changing the baud rate. | - Power-up the ESP8266 and you should see some readable text indicating that it's ready. If you get nonsense try changing the baud rate. | ||
| Line 31: | Line 31: | ||
| ===== Firmware Update ===== | ===== Firmware Update ===== | ||
| + | ==== Windows ==== | ||
| Here are the steps required to update the firmware: | Here are the steps required to update the firmware: | ||
| + | {{ : | ||
| + | {{ : | ||
| - Put the ESP8266 into firmware update mode by grounding GPIO0 and re-cycling the power. | - Put the ESP8266 into firmware update mode by grounding GPIO0 and re-cycling the power. | ||
| - Launch XTCOM_UTIL. | - Launch XTCOM_UTIL. | ||
| - | - In the Tools menu choose Config Device and set the Com port and set the baud rate to the value you used during testing (57600 or 115200). Click Open but **don' | + | - In the Tools menu choose Config Device and set the Com port and set the baud rate to the value you used during testing (57600 or 115200). Click Open then Connect |
| - From the API TEST(A) menu choose Flash Image Download and browse to the downloaded firmware .bin file | - From the API TEST(A) menu choose Flash Image Download and browse to the downloaded firmware .bin file | ||
| - Click DownLoad to start the update - the progress bar will confirm it's under way. | - Click DownLoad to start the update - the progress bar will confirm it's under way. | ||
| - That's it! | - That's it! | ||
| + | ==== Linux or OS X ==== | ||
| + | |||
| + | - Ensure that you have python and the pyserial module installed | ||
| + | - Put the ESP8266 into firmware update mode by grounding GPIO0 and re-cycling the power. | ||
| + | - Get the esptool from [[https:// | ||
| + | - In esptool.py change the device from ttyUSB0 to what ever your usb-serial is | ||
| + | - Run ./ | ||
| + | - The script will write the firmware to the device. | ||
| ===== Testing ===== | ===== Testing ===== | ||
| Line 45: | Line 55: | ||
| You can now use the serial connection to try a few AT commands. | You can now use the serial connection to try a few AT commands. | ||
| - | **NB:** Following the update, the default serial baud rate changes to 9600 and AT commands require a CR+LF combination to signal completion. Some terminal programs (PuTTY) refuse to send the CR+LF combination so you need to press Enter followed by CTRL-j. | + | **NB:** Following the update, the default serial baud rate changes to 9600 and AT commands require a CR+LF combination to signal completion. Some terminal programs (PuTTY) refuse to send the CR+LF combination so you need to press Enter followed by CTRL-j. An alternative terminal that does handle CR+LF is Termite: [[http:// |
| - | **NB:**When entering AT commands you cannot use backspace to make corrections as each character is sent as it is typed. | + | **NB:** When entering AT commands |
| To connect to your local WiFi network use the following commands: | To connect to your local WiFi network use the following commands: | ||
| Line 54: | Line 64: | ||
| * To get the IP address: AT+CIFSR | * To get the IP address: AT+CIFSR | ||
| * To get the ssid of the connected router: AT+CWJAP? | * To get the ssid of the connected router: AT+CWJAP? | ||
| + | |||
| + | ===== Setup an ESP8266 Based Gateway ===== | ||
| + | |||
| + | Chris Stubbs has done the pioneering work and produced software to control the ESP8266 from an Arduino based board. The details can be found [[ideas: | ||
| + | |||
| + | **NB:** When connecting the Moteino or other Arduino board to the ESP8266 the Tx and Rx lines need to be reversed, i.e.Tx on Arduino goes to Rx on Moteino and vice-versa. | ||
| + | |||
| + | ===== Next Steps ===== | ||
| + | It should be possible to use the SoC processor in the ESP8266 to control the RFM69 directly thereby eliminating the need for the Arduino but that code hasn't been written yet. | ||