docs: Update CHEATSHEET — lower baud rate, new packet formats
Use 460800 baud for USB flash (921600 fails on some boards). Document new sensor hostname prefix in all data packet formats. Add USB flash notes section.
This commit is contained in:
@@ -14,9 +14,9 @@ cd ~/git/esp32-hacking/get-started/csi_recv_router
|
||||
idf.py set-target esp32 # Set chip target
|
||||
idf.py menuconfig # Configure WiFi/UDP settings
|
||||
idf.py build # Compile firmware
|
||||
idf.py -p /dev/ttyUSB0 flash # Flash to device
|
||||
idf.py -p /dev/ttyUSB0 -b 460800 flash # Flash to device (460800 baud)
|
||||
idf.py -p /dev/ttyUSB0 monitor # Serial monitor (Ctrl+] to exit)
|
||||
idf.py -p /dev/ttyUSB0 flash monitor # Flash + monitor combined
|
||||
idf.py -p /dev/ttyUSB0 -b 460800 flash monitor # Flash + monitor combined
|
||||
idf.py fullclean # Clean build directory
|
||||
idf.py reconfigure # Re-fetch managed components
|
||||
```
|
||||
@@ -93,7 +93,7 @@ When enabled, the device automatically adjusts ping rate based on CSI wander:
|
||||
|
||||
- **Motion detected** (wander > threshold): 100 pkt/s
|
||||
- **Idle** (wander < threshold for 3s): 10 pkt/s
|
||||
- Rate changes send `EVENT motion=<0|1> rate=<hz> wander=<value>` via UDP
|
||||
- Rate changes send `EVENT,<hostname>,motion=<0|1> rate=<hz> wander=<value>` via UDP
|
||||
|
||||
```bash
|
||||
esp-cmd amber-maple.local ADAPTIVE ON # Enable
|
||||
@@ -140,12 +140,21 @@ nc -lu 5500 | wc -l # Count packets/sec (Ctrl+C)
|
||||
| CSI UDP Configuration → Cmd port | `5501` |
|
||||
| CSI UDP Configuration → Hostname | mDNS name (e.g., `amber-maple`) |
|
||||
|
||||
## CSI Data Format
|
||||
## USB Flash Notes
|
||||
|
||||
- **Use 460800 baud** (`-b 460800`) — 921600 causes connection failures on some boards
|
||||
- Each device needs its own build with its hostname set in menuconfig
|
||||
- First flash after enabling OTA partitions must be via USB
|
||||
|
||||
## Data Packet Formats
|
||||
|
||||
All data packets include sensor hostname after the type tag:
|
||||
|
||||
```
|
||||
CSI_DATA,seq,mac,rssi,rate,sig_mode,mcs,cwb,smoothing,not_sounding,
|
||||
aggregation,stbc,fec_coding,sgi,noise_floor,ampdu_cnt,channel,
|
||||
secondary_channel,timestamp,ant,sig_len,rx_state,len,first_word,"[I,Q,...]"
|
||||
CSI_DATA,<hostname>,seq,mac,rssi,rate,...,len,first_word,"[I,Q,...]"
|
||||
BLE_DATA,<hostname>,mac,rssi,pub|rnd,name
|
||||
EVENT,<hostname>,motion=0|1 rate=<hz> wander=<value>
|
||||
ALERT_DATA,<hostname>,deauth|disassoc,sender_mac,target_mac,rssi
|
||||
```
|
||||
|
||||
## Source Paths
|
||||
|
||||
Reference in New Issue
Block a user