====== Basic Networking Commands ====== This page documents the core AT commands to configure HaLow firmware 2.x modules for basic network operation. ===== AT+WIFIMODE – Set the Working Mode ===== **Query:** AT+WIFIMODE=? **Set Mode:** AT+WIFIMODE=ap **Response:** OK **Parameters:** * ap – Standard AP mode * sta – Standard STA mode * apsta – Relay mode (acts as AP and STA) * wnbap – Private AP mode (V1.6 compatible, not default) * wnbsta – Private STA mode (V1.6 compatible, not default) **Example:** AT+WIFIMODE=sta ===== AT+SSID – Set the SSID ===== **Query:** AT+SSID=? **Set SSID:** AT+SSID=hgic_ah_test **Response:** +SSID:HALOW_959B60 OK **Notes:** * Default SSID: HALOW_xxxxxx (last 3 bytes of MAC) * Max length: 32 characters (longer truncated) ===== AT+ENCRYPT – Set Encryption Mode ===== **Query:** AT+ENCRYPT=? **Set Encryption:** AT+ENCRYPT=0 (disable) AT+ENCRYPT=1 (enable) **Response:** +ENCRYPT:0 or 1 OK ===== AT+KEY – Set Encryption Password ===== **Query:** AT+KEY=? **Set Key:** AT+KEY=12345678 **Response:** +KEY:12345678 OK **Notes:** * Default key: 12345678 * Minimum 8 ASCII characters ===== AT+PAIR – Pairing Control ===== **Set Pairing:** AT+PAIR=0 (stop) AT+PAIR=1 (start, default group) AT+PAIR=2 (start, group 2) **Response:** OK **Notes:** * AP must have SSID and key configured first * Connection established automatically after pairing stops ===== AT+CHAN_LIST – Set Channel List ===== **Query:** AT+CHAN_LIST=? **Set Channels:** AT+CHAN_LIST=9080,9240 **Response:** +CHAN_LIST:9080,9160,9240 OK **Notes:** * Frequency = center frequency × 10 (9080 → 908 MHz) * Up to 16 points, comma-separated ===== AT+BSS_BW – Set BSS Bandwidth ===== **Query:** AT+BSS_BW=? **Set Bandwidth:** AT+BSS_BW=4 **Response:** +BSS_BW:4MHz OK **Notes:** * Supported values: 1, 2, 4, 8 (MHz) ===== Notes ===== * Configure SSID, encryption, key, mode, channels, and bandwidth before connecting STAs or relays. * Use `AT+WIFIMODE=ap` on AP side and `AT+WIFIMODE=sta` on clients.