Difference between revisions of "Serprog/ESP8266 flasher"

From flashrom
Jump to: navigation, search
(Created page with "This is more than just WIP. hetii has started a serprog implementation on the ESP8266 and Stefanct will set up test hardware if that's ready. Till then this will host various...")
 
Line 1: Line 1:
 
This is more than just WIP. hetii has started a serprog implementation on the ESP8266 and Stefanct will set up test hardware if that's ready.
 
This is more than just WIP. hetii has started a serprog implementation on the ESP8266 and Stefanct will set up test hardware if that's ready.
 
Till then this will host various ESP-related bits not necessarily related to Serprog.
 
Till then this will host various ESP-related bits not necessarily related to Serprog.
 +
 +
= UART =
  
 
The default UART requires line feeds to be sent.
 
The default UART requires line feeds to be sent.
Line 23: Line 25:
 
  Build:1.3.0.2 Sep 11 2015 11:48:04
 
  Build:1.3.0.2 Sep 11 2015 11:48:04
 
  OK
 
  OK
 +
 +
[https://github.com/espressif/ESP8266_AT/wiki/AT_Description Documentation of AT commands]
 +
 +
= WLAN =
 +
 +
To connect to an existing network one needs to
 +
 +
# enable client mode
 +
# enable DHCP
 +
# connect to an AP
 +
 +
AT+CWMODE=1
 +
AT+CWDHCP=1,1
 +
AT+CWJAP="ssid","password"

Revision as of 00:06, 16 May 2016

This is more than just WIP. hetii has started a serprog implementation on the ESP8266 and Stefanct will set up test hardware if that's ready. Till then this will host various ESP-related bits not necessarily related to Serprog.

UART

The default UART requires line feeds to be sent. This can be done by ending every line with '<enter> <ctrl>-j'. A more convenient solution is to use automatic mapping provided by a terminal emulator, e.g.:

picocom -b 115200 --omap crcrlf /dev/ttyUSB1

After boot you should see (at least) the ready message as below. You can test if the UART connection works correctly by issuing AT commands.

Ai-Thinker Technology Co.,Ltd.

ready
AT

OK
AT+GMR
AT version:0.40.0.0(Aug  8 2015 14:45:58)
SDK version:1.3.0
Ai-Thinker Technology Co.,Ltd.
Build:1.3.0.2 Sep 11 2015 11:48:04
OK

Documentation of AT commands

WLAN

To connect to an existing network one needs to

  1. enable client mode
  2. enable DHCP
  3. connect to an AP
AT+CWMODE=1
AT+CWDHCP=1,1
AT+CWJAP="ssid","password"