ANJIELO WIFI HALOW AH Module AT Command Development Guide

| Execute instructions |
Query: AT+MODE?
|
Setting: AT+MODE=ap/sta
|
|
response
|
+MODE:ap/stay
OK
|
Success: OK
Failure: ERROR
|
|
Parameter Description
|
|
Supports 4 modes: ap, sta, group, and apsta.
|
|
Example
|
|
• at+mode=ap: AP mode • at+mode=sta: STA mode • at+mode=group: Broadcast mode • at+mode=apsta: Repeater mode. In repeater mode, the device acts as both an STA to connect to an upstream AP and as an AP to provide connection services to other STAs. Use at+r_ssid and at+r_psk to set the connection parameters for the upstream AP |
3.1.2 AT+SSID: Setting the SSID
| Execute instructions |
Query: AT+SSID?
|
Setting: AT+SSID=ssid_char
|
|
response
|
+SSID:hgic_ah_test
OK
|
Success: OK
Failure: ERROR
|
|
Parameter Description
|
|
ssid_char is less than 32 characters long
|
|
Example
|
|
at+ssid=hgic_ah_test
|
| Execute instructions |
Query: AT+KEYMGMT?
|
Setting: AT+KEYMGMT=WPA-PSK/NONE
|
|
response
|
+KEYMGMT:WPA-PSK
OK
|
Success: OK
Failure: ERROR
|
|
Parameter Description
|
|
WPA-PSK: Enable encryption
NONE: Disable encryption
|
|
Example
|
|
at+keymgmt=WPA-PSK
at+keymgmt=NONE
|
|
|
|
|
| Execute instructions |
Query: AT+PSK?
|
Set: AT+PSK=psk_char
|
|
response
|
+PSK:baa58569a9edd7c3a55e4
46bc658ef76a7173d023d25678
6832474d737756a82
OK
|
Success: OK
Failure: ERROR
|
|
Parameter Description
|
|
psk_char must be 64 hex characters.
|
|
Example
|
|
at+psk=baa58569a9edd7c3a55e446bc6
58ef76a7173d023d256786832474d7377
56a82
|
| Execute instructions |
Query: AT+PAIR=0/1
|
|
response
|
OK
|
|
Parameter Description
|
This command enables quick pairing and network setup. When initiating pairing:
1. The AP is configured with an SSID and password: During the pairing process, the STA will obtain the AP's SSID and password
code
2. The AP is not configured with an SSID and password: During the pairing process, the AP will generate a random SSID for each STA.
password
Once pairing is successful, a PAIR SUCCESS message will be generated, and you need to execute AT+PAIR=0 to stop pairing.
A connection will be automatically established after pairing stops.
|
|
Example
|
AT+PAIR=1 //Initiate pairing
AT+PAIR=0 // Stop pairing
|
| Execute instructions |
Query: AT+BSS_BW?
|
Set: AT+BSS_BW=bss_bw
|
|
response
|
+BSS_BW:8MHz
OK
|
Success: OK
Failure: ERROR
|
|
Parameter Description
|
|
bss_bw selects only the following 4 values:
1 : 1MHz
2 : 2MHz
4 : 4MHz
8 : MHz
|
|
Example
|
|
at+bss_bw=4
|
| Execute instructions |
Execute instructions
|
Setting: AT+FREQ_RANGE=start,end
|
|
response
|
+FREQ_RANGE:9080-9240
OK
|
Success: OK
Failure: ERROR
|
|
Parameter Description
|
|
This command is used to set the frequency points for continuous use.
Range, specifying the start center frequency and the end center frequency
The AH module will automatically calculate the frequency point sequence
surface.
The values for start and end are the center frequency multiplied by 10.
|
|
Example
|
|
at+freq_range=9080,9240
set up
start freq=908MHz
end freq=924MHz
The generated channel list is 908M
916M,924M
Note that if AT+CHAN_LIST is also set,
The parameters take precedence over the CHAN_LIST settings.
|
3.1.8 AT+CHAN_LIST: Sets the list of operating frequencies.
| Execute instructions |
Query: AT+CHAN_LIST?
|
Set: AT+CHAN_LIST=freq1,freq2
|
|
response
|
+CHAN_LIST:9080,9240
OK
|
Success: OK
Failure: ERROR
|
|
Parameter Description
|
|
• This command is used to set a list of non-contiguous frequency points.
• The specified frequency value is the center frequency * 10. • A maximum of 16 frequency points are supported, separated by commas. |
|
Example
|
|
at+chan_list=9080,9240
Sets two frequencies: 908 MHz and 924 MHz. |
4 AT Command Usage Examples
4.1 Basic Commands for Module Connection Setup
When using AT commands to initialize the AH module, the main parameters to set are the frequency points, bandwidth, SSID, and password. A simple list of initialization AT commands is as follows:
AT+CHAN_LIST=9080,9160,9240 # Set 3 frequency points
AT+BSS_BW=8 # Set 8M bandwidth
AT+SSID=hgic_ah_test # Set SSID
AT+KEY_MGMT=WPA-PSK # Enable encryption
AT+PSK=baa58569a9edd7c3a55e446bc658ef76a7173d023d256786832474d737756a82
AT+MODE=ap # Set to AP mode
4.2 Relay Network Configuration Commands
4.2.1 AP Module
1. Configure the AP's SSID. Each AP should have a different SSID, for example, ssid1, ssid2, etc.:
at+ssid=ssid1
2. Configure without encryption (for simplicity, this example uses no encryption):
at+keymgmt=none
4.2.2 Relay Module
1. Configure the relay's role:
at+mode=apsta
2. Configure without encryption:
at+keymgmt=none
3. Configure the relay's r_ssid, used for the relay to connect to the AP. It should be the same as the SSID of the AP it wants to connect to, for example:
at+r_ssid=ssid1
4. Configure the relay's SSID, used for the relay to connect to the STA. For easier management, you can consider using the same SSID as the AP with a suffix, for example, ssid1_r1, ssid1_r2, ssid2_r1, etc.:
at+ssid=ssid1_r1
4.2.3 STA Module
1. Configure the STA's SSID to allow the STA to connect to the repeater. The SSID should match the SSID of the repeater you want to connect to, for example:
at+ssid=ssid1_r1
2. Configure no encryption:
at+keymgmt=none