summaryrefslogtreecommitdiff
path: root/fw
diff options
context:
space:
mode:
Diffstat (limited to 'fw')
-rw-r--r--fw/README.md29
-rw-r--r--fw/src/main.c2
2 files changed, 29 insertions, 2 deletions
diff --git a/fw/README.md b/fw/README.md
index f58008f..a940651 100644
--- a/fw/README.md
+++ b/fw/README.md
@@ -3,6 +3,13 @@
This is the firmware for soundbox. It is based on the Zephyr real time
operating system [1].
+## Get all source files
+
+```
+git submodule update --init
+./update_espressif_blobs.py # proprietary binary blobs
+```
+
## Setup Python environment
```
@@ -24,10 +31,30 @@ ninja -C build
esptool.py --chip auto write_flash 0x1000 build/zephyr/zephyr.bin
```
-## Get shell output
+## Connect to shell
```
picocom -b 115200 /dev/ttyUSB0
```
+## Scan for WLAN networks
+
+```
+wifi scan
+```
+
+## Connect to WLAN network
+
+This uses WPA2-PSK (`-k 1`). See `wifi connect help` for other options.
+
+```
+wifi connect -s <ssid> -p <passphrase> -k 1
+```
+
+## Validate network connection
+
+```
+net ping 8.8.8.8 # Google DNS server
+```
+
[1]: https://zephyrproject.org
diff --git a/fw/src/main.c b/fw/src/main.c
index a21e6d7..1dd5790 100644
--- a/fw/src/main.c
+++ b/fw/src/main.c
@@ -20,7 +20,7 @@ int main(void)
goto FINISH;
}
LOG_INF(
- "Got link address of default network interface: %02x:%02x:%02x:%02x:%02x:%02x",
+ "Got link address of default network interface: %02x:%02x:%02x:%02x:%02x:%02x.",
link_addr->addr[0],
link_addr->addr[1],
link_addr->addr[2],