====== AT Command Usage Examples ====== This page provides example sequences for using HaLow firmware 2.x AT commands in typical module configurations, including basic connection setup, relay configuration, and STA setup. ===== 1. Basic Module Connection Setup ===== When initializing a module, set frequency, bandwidth, SSID, and password: AT+CHAN_LIST=9080,9160,9240 # Set 3 channels AT+BSS_BW=8 # Set 8 MHz bandwidth AT+SSID=hgic_ah_test # Set SSID AT+ENCRYPT=1 # Enable encryption AT+KEY=12345678 # Set encryption key AT+WIFIMODE=ap # Set AP mode (or STA mode) ===== 2. Configuring a Relay Network ===== === AP Modules === 1. Configure AP SSID: AT+SSID=ssid1 2. Disable encryption (optional for easier configuration): AT+ENCRYPT=0 === Relay Module === 1. Set role to relay (AP+STA mode): AT+WIFIMODE=apsta 2. Disable encryption: AT+ENCRYPT=0 3. Configure relay downstream SSID: AT+R_SSID=ssid1_r1 4. Configure relay SSID to connect to upstream AP: AT+SSID=ssid1 === STA Modules === 1. Set STA SSID to match relay’s downstream SSID: AT+SSID=ssid1_r1 2. Disable encryption (optional): AT+ENCRYPT=0 ===== Notes ===== * Always configure basic network parameters before enabling relay or roaming. * Encryption can be enabled for secure networks; disable only for test or simplified setups. * Use the examples above as a starting point for building multi-hop HaLow networks.