Skip to content

Commit 42a2780

Browse files
committed
update README
1 parent 74d789a commit 42a2780

File tree

2 files changed

+41
-46
lines changed

2 files changed

+41
-46
lines changed

README.md

+37-31
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,21 @@
44

55
# Konnected
66

7-
**Konnected** integrates wired alarm system sensors and sirens to SmartThings, Home Assistant, OpenHAB, or Hubitat using a NodeMCU based ESP8266 development board and (optional) relay. This project consists of a few components:
7+
**Konnected** integrates wired alarm system sensors and sirens to SmartThings, Alexa, Home Assistant, OpenHAB, Hubitat
8+
using the [Konnected Alarm Panel](https://konnected.io) or a ESP8266 development board.
89

9-
1. [NodeMCU](http://nodemcu.com/index_en.html) based firmware for an ESP8266 development board in `firmware`
10-
1. Lua and HTML source code for the NodeMCU in `src`. All these files are built into a SPIFFS file system which runs on NodeMCU
11-
1. [SmartThings](https://www.smartthings.com/) platform code in `smartapps` and `devicetypes`
10+
This is open-source software designed to run on the ESP8266 platform only! This is what powers the
11+
[Konnected Alarm Panel](https://konnected.io) family of ESP8266-based products and is available
12+
open-source for you to use on any compatible device.
1213

13-
![](http://docs.konnected.io/assets/images/konnected-alarm-panel.jpg)
14+
Devices running this software can connect to local home automation platforms using our
15+
[2-way realtime REST API](https://help.konnected.io/support/solutions/articles/32000026804-api-overview) or connect to the
16+
[Konnected Cloud](https://help.konnected.io/support/solutions/articles/32000028756-provision-a-device-in-konnected-cloud),
17+
a cloud service that enables simple integrations with SmartThings or Alexa (currently free to use!).
18+
19+
This project is built upon the [NodeMCU Lua firmware](https://github.com/nodemcu/nodemcu-firmware).
20+
21+
![alarm-panel-plus-addon-2 3-soona](https://user-images.githubusercontent.com/12016/139100157-5e792dbe-fd08-45c1-8637-7dedfc0ae7ef.jpg)
1422

1523
## Skip this Installation!
1624

@@ -21,23 +29,28 @@
2129

2230
1. Flash the device with the latest firmware and filesystem [firmware/releases](firmware/releases) using the instructions in the [Konnected Security Support Documentation](https://help.konnected.io/support/solutions/articles/32000023470-flashing-new-konnected-firmware-software)
2331
1. Connect to the WiFi network `konnected-security_XXXXXX` to set up WiFi
24-
1. Follow wiring instructions and application setup instructions in the [Konnected Security Documentation](http://docs.konnected.io/security-alarm-system)
32+
1. Follow wiring instructions and application setup instructions in the [Konnected Getting Started Guide](https://help.konnected.io/support/solutions/32000015807)
2533

26-
#### Note on Device Drivers
34+
### Device Drivers
2735

2836
Windows and Mac users will need to download drivers so your computer can talk to the ESP8266 chip over USB. Depending
2937
on which board you have, there are different drivers:
3038

39+
**[Silicon Labs USB to UART drivers](https://www.silabs.com/developers/usb-to-uart-bridge-vcp-drivers)** for:
40+
* all Konnected branded hardware
41+
* development boards with the name _Amica_ on the back
42+
* the small component on the board near the USB port is engraved with SiLABS CP2102
43+
3144
**[WeMos CH340 drivers](https://www.wemos.cc/en/latest/ch340_driver.html)** for boards that:
3245
* have the name _LoLin_ on the back or front
3346
* the small rectangular component on the board near the USB port is engraved with CH340G
34-
* **Mac OS X Sierra users**: [use this driver](http://kig.re/2014/12/31/how-to-use-arduino-nano-mini-pro-with-CH340G-on-mac-osx-yosemite.html)
3547

36-
**[Silicon Labs USB to UART drivers](https://www.silabs.com/developers/usb-to-uart-bridge-vcp-drivers)** for boards that:
37-
* have the name _Amica_ on the back
38-
* the small component on the board near the USB port is engraved with SiLABS CP2102
48+
### Download Latest Firmware
3949

40-
### Building the Firmware
50+
Go to the [releases section](https://github.com/konnected-io/konnected-security/releases/latest) for a downloadable image
51+
that you can flash on your Konnected Alarm Panel or ESP8266 device.
52+
53+
### Building the Firmware Yourself
4154
Konnected leverages the [NodeMCU](https://github.com/nodemcu/nodemcu-firmware) codebase and [Docker builder](https://hub.docker.com/r/marcelstoer/nodemcu-build/) to create a base nodeMCU firmware image and a filesystem containing the Konnected application. Building only requires a few steps.
4255

4356
1. Download and install [Docker](https://www.docker.com/products/docker-desktop)
@@ -54,42 +67,35 @@ Konnected leverages the [NodeMCU](https://github.com/nodemcu/nodemcu-firmware) c
5467
1. konnected-filesystem-0x100000-2-2-99.img
5568
1. konnected-firmware-2-2-99.bin
5669
1. konnected-esp8266-2-2-99.bin
70+
71+
The `konnected-firmware-*` contains the firmware partition and should be flashed at location `0x0`.
72+
The `konnected-filesystem-*` image contains the Konnected application and should be flashed at the memory location in
73+
the filename.
74+
For convenience, the `konnected-esp8266-*` image is an all-in-one image to be flashed at memory location `0x0` containing the two images above.
5775

5876
*Note: Each time you build it will remove any prior build outputs corresponding to the same version.*
5977
*Note: Versions in this project should always be formatted `<major>-<minor>-<patch>`.*
6078

6179
### Flashing a Build
62-
Flashing a build is simple with the [Konnected Flashing Tool](https://help.konnected.io/support/solutions/articles/32000023470-flashing-new-konnected-firmware-software).
80+
Flashing a build is simple with the [NodeMCU PyFlasher](https://github.com/marcelstoer/nodemcu-pyflasher/releases). Simply flash
81+
the `konnected-esp8266-*.bin` file to your device. Typically use baud rate 115200 and flash mode `dio`.
6382

64-
Mac and Linux users can also easily flash from the command line using [scripts/flash](scripts/flash).
83+
Mac and Linux users can also easily flash from the command line using `esptool`
6584

6685
1. You must have Python installed with `pip` or `pip3`.
67-
* **Mac users**: I recommend using [Homebrew](https://brew.sh/) and `brew install python`
86+
* **Mac users**: Recommend using [Homebrew](https://brew.sh/) and `brew install python`
6887

6988
1. Open up a terminal and install `esptool` packages:
7089

7190
pip3 install esptool
7291

73-
1. Run the script in `scripts/flash` to flash the firmware and software to the device. You must pass in version and serial port args. The flash script will always attempt to flash a matching version in `firmware/builds` before falling back to `firmware/releases`
74-
75-
./scripts/flash 2-2-99 /dev/ttyS3
76-
77-
*Note: You may also need to make the script executable by running `chmod 755 scripts/flash`.*
78-
79-
80-
### Donations
92+
1. Flash the downloaded image using `esptool`:
8193

82-
We work hard on this project because we're passionate about making home automation accessible to everybody. Millions of
83-
homes in North America and worldwide are already wired with sensors and have the potential to become smart homes. We
84-
want to make this a reality.
94+
esptool.py --port=/dev/cu.SLAB_USBtoUART write_flash --flash_mode dio --flash_size detect 0x0 konnected-esp8266-3-0-0.bin
8595

86-
If you've used Konnected Security and it's improved your life and your home security, please consider [donating](http://docs.konnected.io/donate) to help us
87-
achieve that goal.
96+
*Note: The USB port may vary depending on your computer platform and board.*
8897

89-
Thank you for your support,
9098

91-
Nate Clark
92-
**@heythisisnate**
9399

94100

95101
### [For more information, click here for Konnected Documentation, Help and Community support](http://help.konnected.io)

scripts/flash

+4-15
Original file line numberDiff line numberDiff line change
@@ -28,26 +28,15 @@ if [ ! -d "${BUILD_PATH}" ] ; then
2828
BUILD_PATH="firmware/releases/${VERSION}"
2929
fi
3030

31-
FIRMWARE_NAME="${BUILD_PATH}/konnected-firmware-${VERSION}.bin"
32-
FILESYSTEM_NAME="${BUILD_PATH}/konnected-filesystem-0x*-${VERSION}.img"
31+
IMAGE_NAME="${BUILD_PATH}/konnected-esp8266-${VERSION}.bin"
3332

3433
# Make sure the files exist as expected before flashing
35-
if ! [ -f ${FIRMWARE_NAME} ] ; then
36-
echo "Firmware build not found...expected at '${FIRMWARE_NAME}'"
34+
if ! [ -f ${IMAGE_NAME} ] ; then
35+
echo "Image not found...expected at '${IMAGE_NAME}'"
3736
usage
3837
fi
3938

40-
if ! [ -f ${FILESYSTEM_NAME} ] ; then
41-
echo "Filesystem build not found...expected at '${FILESYSTEM_NAME}'"
42-
usage
43-
fi
44-
45-
# Get the full name and parse out the address
46-
FILESYSTEM_NAME="$(echo ${BUILD_PATH}/konnected-filesystem-0x*-${VERSION}.img)"
47-
FS_ADDRESS="$(cut -d'-' -f5 <<<${FILESYSTEM_NAME})"
48-
49-
esptool.py "--port=${PORT}" write_flash --flash_mode dio --flash_size detect 0x00000 "${FIRMWARE_NAME}"
50-
esptool.py "--port=${PORT}" write_flash --flash_mode dio --flash_size detect "${FS_ADDRESS}" "${FILESYSTEM_NAME}"
39+
esptool.py "--port=${PORT}" write_flash --flash_mode dio --flash_size detect 0x0 "${IMAGE_NAME}"
5140

5241
tput bel
5342

0 commit comments

Comments
 (0)