|
|
||
|---|---|---|
| components | ||
| doc | ||
| main | ||
| .gdbinit | ||
| .gitignore | ||
| BUILD.txt | ||
| CMakeLists.txt | ||
| README.md | ||
| add_license.py | ||
| async_find_failed.py | ||
| control_iperf.py | ||
| dependencies.lock | ||
| detect_esp32.py | ||
| esp32_deploy.py | ||
| gen_udev_rules.py | ||
| identiy_port.py | ||
| leddiff.txt | ||
| mass_deploy.sh | ||
| mass_deploy_enhanced.sh | ||
| new_rules.part | ||
| parse_csi.py | ||
| partitions.csv | ||
| partitions_c5.csv | ||
| partitions_esp32.csv | ||
| partitions_s3.csv | ||
| sdkconfig.defaults | ||
| sdkconfig.defaults.ampdu | ||
| sdkconfig.defaults.esp32 | ||
| sdkconfig.defaults.esp32c5 | ||
| sdkconfig.defaults.esp32c5csi | ||
| sdkconfig.defaults.esp32csi | ||
| sdkconfig.defaults.esp32s3 | ||
| sdkconfig.defaults.esp32s3csi | ||
| sdkconfig.defaults.noampdu | ||
| test_devices.sh | ||
README.md
ESP32 iPerf Traffic Generator
High-performance UDP traffic generator firmware for ESP32 devices with interactive console interface, GPS synchronization, and WiFi monitoring capabilities.
Version: 2.1.0 ESP-IDF: 6.0+
Features
- UDP Traffic Generation: Precise packet pacing (PPS) with drift-free timers
- Interactive Console: Full REPL interface with command history and tab completion
- WiFi Management: Station mode with static IP support, DHCP, and monitor mode
- GPS Synchronization: PPS signal support and NMEA parsing for timestamp synchronization
- Persistent Configuration: NVS storage for WiFi credentials, IP settings, and iPerf parameters
- Status LED: Visual feedback for connection state and system status
- Mass Deployment: Python scripts for flashing and configuring multiple devices
Supported Targets
- ESP32
- ESP32-S3
- ESP32-C5
- ESP32-C3, ESP32-C6 (may require testing)
Quick Start
Prerequisites
- ESP-IDF v6.0 or later
- Python 3.7+ (for deployment scripts)
- USB serial connection to ESP32 device
Building
# Set target (e.g., esp32c5, esp32s3, esp32)
idf.py set-target esp32c5
# Configure (optional)
idf.py menuconfig
# Build
idf.py build
# Flash and monitor
idf.py -p /dev/ttyUSB0 flash monitor
Initial Configuration
After flashing, connect to the console at 115200 baud. Use the interactive commands:
# Connect to WiFi
wifi connect "YourSSID" "password"
# Set static IP (optional)
ip set 192.168.1.100 255.255.255.0 192.168.1.1
# Configure iPerf parameters
iperf set --client 192.168.1.10 --port 5001 --len 1470 --burst 1
# Save configuration to NVS
iperf save
# Start iPerf traffic
iperf start
# Check status
iperf status
Console Commands
WiFi Commands
wifi connect <ssid> [password]- Connect to WiFi networkwifi scan- Scan for available networkswifi status- Show WiFi connection statuswifi mode <sta|ap>- Set WiFi modewifi power <dbm>- Set transmit power
IP Configuration
ip addr- Show current IP configurationip set <ip> <mask> <gateway>- Set static IPip dhcp- Enable DHCP
iPerf Commands
iperf start- Start traffic generationiperf stop- Stop traffic generationiperf status- Show current status and statisticsiperf set [--client <ip>] [--port <port>] [--len <bytes>] [--burst <count>]- Configure parametersiperf save- Save configuration to NVSiperf reload- Reload configuration from NVSiperf clear- Clear saved configuration
System Commands
reset- Software resetversion- Show firmware and IDF versionsystem info- Show system informationsystem heap- Show free heap memory
GPS Commands (if GPS enabled)
gps status- Show GPS synchronization status
Monitor Mode
monitor start [channel]- Start WiFi monitor modemonitor stop- Stop monitor modemonitor channel <channel>- Set monitor channelmonitor status- Show monitor status
For detailed command documentation, see doc/QUICK_REFERENCE.md.
Mass Deployment
Use the esp32_deploy.py script for deploying to multiple devices:
# Flash and configure multiple devices
python3 esp32_deploy.py \
--ssid "YourSSID" \
--password "password" \
--start-ip 192.168.1.50 \
--netmask 255.255.255.0 \
--gateway 192.168.1.1 \
--iperf-dest-ip 192.168.1.10 \
--iperf-port 5001
See doc/DEPLOYMENT_GUIDE.md for complete deployment instructions.
Project Structure
├── main/ # Main application code
│ ├── main.c # Entry point and console initialization
│ └── board_config.h # Hardware pin definitions
├── components/
│ ├── app_console/ # Console command implementations
│ ├── iperf/ # iPerf traffic generator core
│ ├── wifi_controller/ # WiFi management and monitor mode
│ ├── wifi_cfg/ # WiFi and IP configuration storage
│ ├── gps_sync/ # GPS PPS and NMEA parsing
│ ├── status_led/ # LED status indication
│ └── ...
├── esp32_deploy.py # Mass deployment script
├── gen_udev_rules.py # USB port mapping utility
└── doc/ # Additional documentation
Documentation
License
Copyright (c) 2025 Umber Networks & Robert McMahon All rights reserved.
See individual source files for full license details.
Contributing
This is a project-specific firmware. For issues or feature requests, please contact the maintainers.