Release 2.1.7
Version 2.1.7 is identical to 2.1.beta6. The latter has worked well for a while and a 2.2 series with new features is about to start, so this is a good time to promote the code in 2.1.beta6 to release status.
Features:
- port 23 transparent bridge, port 2323 programming bridge
- AVR, ARM & esp8266 flashing support (port 23 and 2323)
- built-in programmer for AVRs with optiboot (typical for Arduinos), auto-switches baud rate to 9600/57600/115200
- outbound TCP connections from attached micro-controller to the internet
- outbound HTTP REST requests from attached microcontroller using espduino library and protocol
- built-in MQTT client that can be used by attached uC using espduino library and protocol
- over-the-air (OTA) reflashing of the esp if your module has 1MB or more flash (e.g. esp-12 but not esp-01)
- console page to see the attached uC's output
- simple debug log page to view the esp-link's own os_printf output
- buttons to reset the uC and change the baud rate
- pin configuration selector to change GPIO function assignments
- web page to configure MQTT client and built-in status message publishing
- saving of configuration changes in flash
Warnings
- Over-the-air upgrades of esp-link are no longer supported on esp8266 modules with 512KB of flash. You need
a module with more flash (such as an esp-12) for this to be possible. On the bright side: all the other features of
esp-link work great on the older modules.
Changes since v2.0.rc1:
- built-in optiboot programmer
- added automatic switching to 9600/57600/115200 baud when using built-in AVR programmer (it will try the baud rate set on the uC Console page first)
- changed pin config to allow control over individual pin assignments
- added option for internal pull-up on RX pin
- fix switching between dhcp and static IP
- extend reset pulse so programming an esp8266 works
- merged "system name" shown in menu bar and "hostname" used for DHCP (and mDNS someday)
- changed home page around
- compiled with SDK v1.4.1_pre7
- added option to select uart1 for debug log
- added drop-down for baud rates, warning pgm baud rate selection is non-functional
- fixed style of uC console page, now 100% height
- uC console text input courtesy https://github.com/katyo
- first cut at supporting hidden SSIDs
- improved click-to-edit name/description fields
- extended AP+STA time before switching to STA-only
- new esp-link summary card on home page with, among other things, info on the flash chip and configured size
- new editable 12-character "name" displayed on home page and in left menu bar so you know which esp-link module you're looking at
- new editable 128 character "description" displayed on home page so you can leave yourself a memo about this module
- single image fits any esp module flash size, no OTA reflashing of esp-link with 512KB modules though
- attempt to fix crash when scanning and there are too many access points around (I have not been able to really test the fix yet)
This version uses the Espressif IOT SDK version v1.4.1_pre7.
Install via serial upload
The short version for the serial install is:
- flash
boot_v1.4(b1).bin
from the officialesp_iot_sdk_v1.4.0
and included in the release tgz to0x00000
- flash
blank.bin
from the official SDK and also included in the tgz to0x3FE000
- flash
user1.bin
to0x01000
- be sure to use the commandline flags when flashing the bootloader to set the correct flash size
32Mbit / 4Mbyte module
On Linux using esptool.py this turns into the following for a 32mbit=4MByte flash chip, such as an esp-12 module typically has:
curl -L https://github.com/jeelabs/esp-link/releases/download/v2.1.7/esp-link-v2.1.7.tgz | \
tar xzf -
cd esp-link-v2.1.7
esptool.py --port /dev/ttyUSB0 --baud 460800 write_flash -fs 32m -ff 80m \
0x00000 boot_v1.4\(b1\).bin 0x1000 user1.bin 0x3FE000 blank.bin
I use a high baud rate as shown above because I'm impatient, but that's not required.
4Mbit / 512Kbyte module
curl -L https://github.com/jeelabs/esp-link/releases/download/v2.1.7/esp-link-v2.1.7.tgz | \
tar xzf -
cd esp-link-v2.1.7
esptool.py --port /dev/ttyUSB0 --baud 460800 write_flash -fs 4m -ff 40m \
0x00000 boot_v1.4\(b1\).bin 0x1000 user1.bin 0x7E000 blank.bin
The `-fs 4m -ff40m' options say 4Mbits and 40Mhz as opposed to 32Mbits at 80Mhz for the 4MByte flash modules. Note the different address for blank.bin (the SDK stores its wifi settings near the end of flash, so it changes with flash size).
Upgrade over-the-air
To upgrade from an earlier version 2.x of esp-link:
curl -L https://github.com/jeelabs/esp-link/releases/download/v2.1.7/esp-link-v2.1.7.tgz | \
tar xzf -
cd esp-link-2.1.7
./wiflash <esp-hostname> user1.bin user2.bin
Installing esptool.py
On Linux use esptool.py to flash the esp8266.
If you're a little python challenged then the following install instructions might help:
-
Install ez_setup with the following two commands (I believe this will do something
reasonable if you already have it):wget https://bootstrap.pypa.io/ez_setup.py python ez_setup.py
-
Install esptool.py:
git clone https://github.com/themadinventor/esptool.git cd esptool python setup.py install cd .. esptool.py -h