ANJIELO WIFI HALOW AH Module AT Command Development Guide

1 Overview
The AH module supports AT command operation mode, allowing AT commands to be sent via UART or Ethernet port for parameter setting.
Set up, for data communication.
2 Interface Description
2.1 Serial Port Settings
The serial port configuration should be done as shown in the following figure
Additionally, please note that newline mode is selected. For example, in SecureCRT:
To test if the serial port is working properly, type AT+, and it will print the following image:
If this printout is missing, it means the serial port input is incorrect and you need to contact our FAE.
2.2 Network Port
For scenarios where serial port usage is inconvenient, we provide two Ethernet-based tools to facilitate parameter configuration
(netat.exe) and log viewing (netlog.exe). Note that both tools require bridge firmware version 12954 or later to function. Instructions for
use are provided below.
2.2.1 Netat.exe
When you need to configure bridge parameters using AT+ commands, you can use netat.exe. Connect
the bridge device and your PC with a network cable. Double-click to run it, enter the PC's IP address, and it will display the MAC address
of the
connected device. If only one device is connected, it will automatically select device 1.
If several devices are connected via a switch, you can select the device by entering numbers.
After selecting the device, enter the AT command to execute the AT command. The usage is the same as for the serial port.
2.2.2 Netlog.exe
To view the debug logs of a network bridge using a network cable, you can use netlog.exe. Connect the
network bridge device and your PC with a network cable. Double-click to run netlog.exe, enter the PC's IP address, and the logs will be printed automatically.
Only the logs of the device connected by the network cable will be displayed. When using this method, avoid connecting multiple devices to a switch.
3. Instructions for using AT commands
3.1 Basic Network Commands
3.1.1 AT+MODE: Set the operating mode
 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
3.1.3AT+KEYMGMT: Set encryption mode
 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



3.1.4AT+PSK: Set encryption password
 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
3.1.5 AT+PAIR: Pairing Control
 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
3.1.6 AT+BSS_BW: Set BSS bandwidth
 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
3.1.7AT+FREQ_RANGE: Sets the operating frequency range
 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

Back to blog

Leave a comment