ESP-OPEN-RTOS firmware for Gosund SP111 outlet with Apple HomeKit support
This project uses the Apple HomeKit accessory server library ESP-HomeKit from @MaximKulkin for ESP-OPEN-RTOS. And it uses the OTA update system Life-Cycle-Manager (LCM) from @HomeACessoryKid.
Although already forbidden by the sources and subsequent licensing, it is not allowed to use or distribute this software for a commercial purpose.
esp-homekit build instructions
git clone --recursive https://github.com/SuperHouse/esp-open-rtos.git
export SDK_PATH=`pwd`/esp-open-rtos;
export ESPPORT=/dev/cu.usbserial-1410;
export FLASH_SIZE=8;
export HOMEKIT_SPI_FLASH_BASE_ADDR=0x7a000;
export HOMEKIT_DEBUG=1;
docker-run esp-rtos make -C . ESPPORT=/dev/cu.usbserial-1410 FLASH_SIZE=8 HOMEKIT_SPI_FLASH_BASE_ADDR=0x8c000 HOMEKIT_DEBUG=1 clean
docker-run esp-rtos make -C . ESPPORT=/dev/cu.usbserial-1410 FLASH_SIZE=8 HOMEKIT_SPI_FLASH_BASE_ADDR=0x8c000 HOMEKIT_DEBUG=1 all
Erase flash:
esptool.py -p /dev/cu.usbserial-1410 --baud 115200 erase_flash;
Flash firmware:
esptool.py -p /dev/cu.usbserial-A50285BI --baud 115200 write_flash -fs 8m -fm dout -ff 40m \
0x0 firmware_prebuilt/rboot.bin 0x1000 firmware_prebuilt/blank_config.bin 0x2000 ./firmware/gosund_sp111.bin
screen /dev/cu.usbserial-1410 115200 –L