ESP32/doc/QUICK_START.md

71 lines
1.5 KiB
Markdown

# ESP32 Mass Deployment - Quick Reference
## Files You Need
1. **mass_deploy_enhanced.sh** - Main deployment script (RECOMMENDED)
2. **test_devices.sh** - Testing script
3. **DEPLOYMENT_GUIDE.md** - Full documentation
## One-Line Deployment
```bash
PASSWORD='your_wifi_pass' ./mass_deploy_enhanced.sh ~/Code/esp32/esp32-iperf
```
## Common Commands
### Deploy 32 devices
```bash
PASSWORD='mypass' ./mass_deploy_enhanced.sh
```
### Test all devices
```bash
NUM_DEVICES=32 ./test_devices.sh
```
### Custom IP range
```bash
PASSWORD='mypass' START_IP='192.168.1.100' ./mass_deploy_enhanced.sh
```
### Different WiFi network
```bash
PASSWORD='newpass' SSID='NewNetwork' GATEWAY='192.168.2.1' START_IP='192.168.2.50' ./mass_deploy_enhanced.sh
```
## IP Address Scheme
Default: `192.168.1.51 + device_index`
- Device 0 → 192.168.1.51
- Device 1 → 192.168.1.52
- Device 31 → 192.168.1.82
## Time Savings
- **Old way:** 60-90 minutes for 32 devices
- **New way:** 15-20 minutes for 32 devices
- **Speedup:** 4-5x faster! ⚡
## Troubleshooting
**No devices found?**
```bash
ls /dev/ttyUSB* /dev/ttyACM*
sudo usermod -a -G dialout $USER # then logout/login
```
**Flash failed?**
```bash
BAUD_RATE=115200 PASSWORD='pass' ./mass_deploy_enhanced.sh
```
**Can't ping devices?**
- Check WiFi password
- Wait 30 seconds after deployment
- Verify network supports static IPs
**iperf connection refused?**
- Device still booting (wait 30s)
- Check logs: `cat /tmp/esp32_deploy_*.log`