Serprog/ESP8266 flasher: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(→WLAN) |
||
Line 35: | Line 35: | ||
# enable DHCP | # enable DHCP | ||
# connect to an AP | # connect to an AP | ||
# optional: test upstream connection | |||
AT+CWMODE=1 | AT+CWMODE=1 | ||
AT+CWDHCP=1,1 | AT+CWDHCP=1,1 | ||
AT+CWJAP="ssid","password" | AT+CWJAP="ssid","password" | ||
AT+PING="flashrom.org" |
Latest revision as of 00:09, 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
WLAN
To connect to an existing network one needs to
- enable client mode
- enable DHCP
- connect to an AP
- optional: test upstream connection
AT+CWMODE=1 AT+CWDHCP=1,1 AT+CWJAP="ssid","password" AT+PING="flashrom.org"