BFQ4004
Dual-band Wi-Fi Module
AT Command Reference
July 2020
Overview¶
BFQ4004 AT Firmware, officially launched by BeeFi Technologies (hereafter “BeeFi”), is available for download and can be used directly. Users may also find AT Project where BeeFi created example demo code for users to customize their AT firmware.
This document provides detailed information about the BF4004Q WiFi module AT commands. It also introduces how to download firmware images onto the flash on the module as well as some customization examples.
Note
- Please make sure that correct binary file (.bin) has been installed in BFQ4004 module before using the AT commands in this document.
- AT firmware uses priority levels and 1 of system_os_task, so only one task of priority 2 is allowed to be set up by user application.
Command Types and Formats¶
Each command set contains four types of AT commands.
| Type | Command Format | Description |
|---|---|---|
| Test Command | AT+<X>=? | Queries the Set Commands’ internal parameters and their range of values. |
| Query Command | AT+<X>? | Returns the current value of parameters. |
| Set Command | AT+<X>=<…> | Sets the value of user-defined parameters in commands, and runs these commands. |
| Execute Command | AT+<X> | Runs commands with no user-defined parameter. |
Note
- Not all AT commands support all four varioations mentioned above.
- Square brackets “[]” designate the default value. It is not always required or may not appear.
- String values need to be included in double quotation markets, for example: AT+CWSAP_CUR=”BFQ4004A”,”123456789”,1,4
- The default baud rate is 1152.
- AT commands have to be capitalized and must end with a new line (CR LF).
Basic AT Commands¶
Overview¶
| Commands | Description |
|---|---|
| AT | Tests AT startup. |
| ATE | Configures echoing of AT commands. |
| AT+RST | Restarts the module. |
| AT+GMR | Checks AT commands version information. |
| AT+RESTORE | Restores the factory settings. |
| AT+UART_CUR | The current UART configuration. |
| AT+UART_DEF | The default UART configuration, saved in flash. |
| AT+SYSRAM | Checks the available RAM space. |
| AT+SLEEP | Configures the operating modes for power optimization |
| AT+GSLP | Enters suspend (deep-sleep) mode. |
| AT+RFPOWER | Sets the maximum RF TX power. |
Command Descriptions¶
AT – Tests AT Startup¶
| Execute Command | AT |
| Response | OK |
| Parameters | - |
AT+ATE – Configures Echoing of AT Commands¶
| Execute Command | ATE |
| Response | OK |
| Parameters |
|
| Notes | This command is used to configure command echoing. It means that entered commands are echoed back to the sender when ATE is set to 1. Two settings are possible. The command returns OK in normal case and ERROR when a parameter other than or 1 was specified. |
AT+RST – Restarts the Module¶
| Execute Command | AT+RST |
| Response | OK |
| Parameters | - |
AT+GMR – Checks AT Commands Version Information¶
| Execute Command | AT+GMR |
| Response | <AT version info> <SDK version info> <compile time> OK |
| Parameters | - |
AT+RESTORE – Restores Factory Settings¶
| Execute Command | AT+RESTORE |
| Response | OK |
| Notes | The execution of this command resets all parameters saved in flash, and restores the factory default settings of the module. The chip will be restarted when this command is executed. |
AT+UART_CUR – Current UART Configuration in RAM¶
| Command | Query: AT+UART_CUR? | Set: AT+UART_CUR=<baudrate>, <databit s>,<stopbits>,<parity>, <flow control> |
| Response | +UART_CUR:<baudrate>,
<databit
s>,<stopbits>,<parity>, | <flow control> OK |
OK |
| Notes | Command AT+UART_CUR? will return the actual value of UART configuration parameters, which may have allowable errors compared with the set value because of the clock division. For example, if the UART baud rate is set as 1152, the baud rate returned by using command AT+UART_CUR? could be 115273. |
- |
| Parameters |
|
|
| Notes |
|
|
| Examples | AT+UART_CUR=1152,8,1,,3 | |
AT+UART_DEF – Default UART Configuration from Flash¶
| Command | Query: AT+UART_DEF? | Set: AT+UART_DEF=<baudrate>, <databit s>,<stopbits>,<parity>, <flow control> |
| Response | +UART_DEF:<baudrate>,
<databit
s>,<stopbits>,<parity>, | <flow control> OK |
OK |
| Parameters |
|
|
| Notes |
|
|
| Examples | AT+UART_DEF=1152,8,1, ,3 | |
AT+SYSRAM – Checks the Remaining Space on RAM¶
| Query Command | AT+SYSRAM? |
| Response | +SYSRAM:<remaining RAM size> OK |
| Notes | <remaining RAM size>: remaining space of RAM, in bytes. |
AT+SLEEP – Configures the Operating Modes for Power Optimization¶
| Command | Query: AT+SLEEP? | Set: AT+SLEEP=<sleep mode> |
| Response | +SLEEP:<sleep mode> OK |
OK |
| Parameters |
|
|
| Notes | This command can only be used in Station mode. Associated mode is the default mode.
|
|
| Examples | AT+SLEEP=0 | |
AT+GSLP – Enters Suspend (Deep-sleep) Mode¶
| Set Command | AT+GSLP=<time> |
| Response | <time> OK |
| Parameters | <time>: the milliseconds (ms) BFQ4004 stays in suspend mode. |
| Notes | In suspend mode only the wakeup manager and PMU are powered with everything else powered down. It is the lowest power consumption mode at the expense of a longer wakeup latency. BFQ4004 can exit suspend mode in 2 ways:
|
AT+RFPOWER – Sets Maximum of RF TX Power¶
| Set Command | AT+RFPOWER=<TX power> |
| Response | OK |
| Parameters | <TX power>: the maximum value of RF TX power, range: [0, 82] in 0.25dBm unit |
| Notes | This command sets the maximum value of BFQ4004 RF TX power. It is not precise. The actual value could be smaller than the set value. |
| Examples | AT+RFPOWER=50 |
Hardware-Related AT Commands¶
Overview¶
| Commands | Description |
|---|---|
| AT+SYSIOSETCFG | Configures IO working mode. |
| AT+SYSIOGETCFG | Checks the working mode of IO pin. |
| AT+SYSGPIODIR | Configures the direction of GPIO. |
| AT+SYSGPIOWRITE | Configures the GPIO output level. |
| AT+SYSGPIOREAD | Configures the GPIO input level. |
| AT+WAKEUPGPIO | Configures a GPIO to wake BFQ4004 up from sleep mode. |
Command Descriptions¶
AT+SYSIOSETCFG – Configures IO Working Mode¶
| Set Command | AT+SYSIOSETCFG=<pin>,<mode>,<pull-up> |
| Response | OK |
| Parameters |
|
| Notes | Please refer to BFQ4004 Pin List for uses of AT+SYSGPIO-related commands. |
| Examples | AT+SYSIOSETCFG=12,3,1 //Set GPIO12 to work as a GPIO |
AT+SYSIOGETCFG – Get IO Working Mode¶
| Set Command | AT+SYSIOGETCFG=<pin> |
| Response | +SYSIOGETCFG:<pin>,<mode>,<pull-up> OK |
| Parameters |
|
| Notes | Please refer to BFQ4004 Pin List for uses of AT+SYSGPIO-related commands. |
AT+SYSGPIODIR – Configures the Direction of GPIO¶
| Set Command | AT+SYSGPIODIR=<pin>,<dir> |
| Response |
|
| Parameters |
|
| Notes | Please refer to BFQ4004 Pin List for uses of AT+SYSGPIO-related commands. |
| Examples | AT+SYSIOSETCFG=12,3,1 //Set GPIO12 to work as a GPIO AT+SYSGPIODIR=12,0 //Set GPIO12 to work as an input |
AT+SYSGPIOWRITE – Configures the Output Level of a GPIO¶
| Set Command | AT+SYSGPIOWRITE=<pin>,<level> |
| Response |
|
| Parameters |
|
| Notes | Please refer to BFQ4004 Pin List for uses of AT+SYSGPIO-related commands. |
| Examples | AT+SYSIOSETCFG=12,3,1 //Set GPIO12 to work as a GPIO AT+SYSGPIODIR=12,1 //Set GPIO12 to work as an output AT+SYSGPIOWRITE=12,1 //Set GPIO12 to output high level |
AT+SYSGPIOREAD – Reads the GPIO Level¶
| Set Command | AT+SYSGPIOREAD=<pin> |
| Response |
|
| Parameters |
|
| Notes | Please refer to BFQ4004 Pin List for uses of AT+SYSGPIO-related commands. |
| Examples | AT+SYSIOSETCFG=12,3,1 //Set GPIO12 to work as a GPIO AT+SYSGPIODIR=12,0 //Set GPIO12 to work as an input AT+SYSGPIOREAD=12 //Read GPIO12 level |
AT+WAKEUPGPIO – Configures a GPIO to Wake BFQ4004 up from Sleep Mode¶
| Set Command | AT+WAK EUPGPIO=<enable>,<trigger_GPIO>,<trigger_level>[, <awake_GPIO>,<awake_level>] |
| Response | OK |
| Parameters |
|
| Notes |
|
| Examples |
|
Wi-Fi-Related AT Commands¶
Overview¶
| Commands | Description |
|---|---|
| AT+CWMODE_CUR | Sets the Wi-Fi mode (Station/SoftAP/Station+SoftAP); configuration not saved in flash. |
| AT+CWMODE_DEF | Sets the default Wi-Fi mode (Station/SoftAP/Station+SoftAP); configuration saved in flash. |
| AT+CWJAP_CUR | Connects to an AP; configuration not saved in flash. |
| AT+CWJAP_DEF | Connects to an AP; configuration saved in flash. |
| AT+CWLAPOPT | Sets the configuration of command AT+CWLAP. |
| AT+CWLAP | Lists available APs. |
| AT+CWQAP | Disconnects from an AP. |
| AT+CWSAP_CUR | Sets the current configuration of BFQ4004 SoftAP; configuration not saved in flash. |
| AT+CWSAP_DEF | Sets the configuration of BFQ4004 SoftAP; configuration saved in flash. |
| AT+CWLIF | Gets the IP addresses of the Stations the BFQ4004 SoftAP is connected with. |
| AT+CWDHCP_CUR | Enables/Disables DHCP; configuration not saved in the flash. |
| AT+CWDHCP_DEF | Enable/Disable DHCP; configuration saved in flash. |
| AT+CWDHCPS_CUR | Sets the IP address range the SoftAP DHCP server can allocate; configuration not saved in flash. |
| AT+CWDHCPS_DEF | Sets the IP address range the SoftAP DHCP server can allocate; configuration saved in flash. |
| AT+CWAUTOCONN | Connects to an AP automatically on power-up or not. |
| AT+CIPSTA_CUR | Sets the IP address of BFQ4004 Station; configuration not saved in flash. |
| AT+CIPSTA_DEF | Sets the IP address of BFQ4004 Station; configuration saved in flash. |
| AT+CIPAP_CUR | Sets the IP address of BFQ4004 SoftAP; configuration not saved in flash. |
| AT+CIPAP_DEF | Sets the IP address of BFQ4004 SoftAP; configuration saved in flash. |
| AT+WPS | Enables the WPS function. |
| AT+CWHOSTNAME | Configures the name of BFQ4004 Station. |
| AT+CWCOUNTRY_CUR | Sets current WiFi country code, not saved in flash |
| AT+CWCOUNTRY_DEF | Sets default WiFi country code, saved in flash |
Command Descriptions¶
AT+CWMODE_CUR – Sets Current WiFi Mode Configuration, Not Saved in Flash¶
| Command | Test: A T+CWMODE_CUR=? |
Query: AT+CWMODE_CUR? Function: check current WiFi mode |
Set: AT+CWMODE_CUR= | <mode> Function: set current WiFi mode |
| Response | +CWMODE_CUR: <mode> OK |
+CWMODE_CUR: <mode> OK |
OK |
| Parameters |
|
||
| Notes | The configuration changes will NOT be saved in flash. | ||
| Examples | A T+CWMODE_CUR=1 | ||
AT+CWMODE_DEF- Sets Default WiFi Mode Configuration, Saved in Flash¶
| Command | Test: A T+CWMODE_DEF=? |
Query: AT+CWMODE_DEF? Function: check current WiFi mode |
Set: AT+CWMODE_DEF= | <mode> Function: set current WiFi mode |
| Response | +CWMODE_DEF: <mode> OK |
+CWMODE_DEF: <mode> OK |
OK |
| Parameters |
|
||
| Notes | The configuration changes will be saved in flash. | ||
| Examples | A T+CWMODE_DEF=1 | ||
AT+CWJAP_CUR – Connects to AP, Configuration Not Saved in Flash¶
| Command | Query:
AT+CWJAP_CUR?
Function: check parameters of the AP BFQ4004 Station is connected to. |
Set:
AT+
CWJAP_CUR=<ssid>,<pwd>, [<bssid>,<pci_en>] Function: specify parameters of the AP BFQ4004 wants to connect to. |
| Response | +CW JAP_CUR:<ssid>,<bssid>, <channel>,<rssi> OK |
OK or +CWJAP_CUR:<error code> FAIL |
| Parameters | <ssid>: a string parameter showing the SSID of the AP BFQ4004 Station is connected to. |
This command requires Station mode to work. Escape character syntax is needed if SSID or password contains special characters, such as , or “ or \ |
| Notes | The configuration changes will NOT be saved in flash | |
| Examples | AT+CWJA P_CUR=”abc”,”123456789” For example, if the target AP’s SSID is “ab,c” and the password is “123456789”“, the command is as follows: AT+CWJAP_CUR=”a b\,c”,”123456789”" If multiple APs have the same SSID as “abc”, the target AP can be found by BSSID: AT+C WJAP_CUR=”abc”,”1234567 89”,”ca:d7:19:d8:a6:44” |
|
AT+CWJAP_DEF – Connects to AP, Configuration Saved in Flash¶
| Command | Query:
AT+CWJAP_DEF?
Function: check parameters of the AP BFQ4004 Station is connected to. |
Set:
AT+
CWJAP_DEF=<ssid>,<pwd>, [<bssid>,<pci_en>] Function: specify parameters of the AP BFQ4004 wants to connect to. |
| Response | +CW JAP_DEF:<ssid>,<bssid>, <channel>,<rssi> OK |
OK or +CWJAP_DEF:<error code> FAIL |
| Parameters | <ssid>: a string parameter showing the SSID of the AP BFQ4004 Station is connected to. |
This command requires Station mode to work. Escape character syntax is needed if SSID or password contains special characters, such as , or “ or \ |
| Notes | The configuration changes will be saved in the system parameters area in the flash | |
| Examples | AT+CWJA P_DEF=”abc”,”123456789” For example, if the target AP’s SSID is “ab,c” and the password is “123456789”“, the command is as follows: AT+CWJAP_DEF=”a b\,c”,”123456789”" If multiple APs have the same SSID as “abc”, the target AP can be found by BSSID: AT+C WJAP_DEF=”abc”,”1234567 89”,”ca:d7:19:d8:a6:44” |
|
AT+CWLAPOPT – Sets the Configuration for the Command AT+CWLAP¶
| Set Command | AT+CWLAPOPT=<sort_enable>,<mask> |
| Response | OK or ERROR |
| Parameters |
|
| Examples | AT+CWLAPOPT=1,247 The first parameter is 1, meaning that the result of the command AT+CWLAP will be ordered according to RSSI; The second parameter is 247, namely x7FF, meaning that the corresponding bits of <mask> are all set to 1 and all parameters will be shown in the result of AT+CWLAP. |
AT+CWLAP – Lists Available APs¶
| Command | Set: AT+CWLAP[=<ssid>,<mac>, <channel>,<scan_type>, <scan_time_min>, <scan_time_max>] Function: to query the APs with specific SSID and MAC on a specific channel. |
Execute: AT+CWLAP Function: to list all available APs. |
| Response | +CWL AP:<ecn>,<ssid>,<rssi>, <mac>,< channel>,<freq_offset>, <freq_c ali>,<pairwise_cipher>, <gr oup_cipher>,<bgn>,<wps> OK |
+CWL AP:<ecn>,<ssid>,<rssi>, <mac>,< channel>,<freq_offset>, <freq_c ali>,<pairwise_cipher>, <gr oup_cipher>,<bgn>,<wps> OK |
| Parameters |
|
|
| Examples | AT+CWLAP=”Wi-Fi “,”ca:d7:19:d8:a6:44”,6 or search for APs with a designated SSID: AT+CWLAP=”Wi-Fi” or enable passive scan: AT+CWLAP=,,,1,, |
|
AT+CWQAP – Disconnects from the AP¶
| Execute Command | AT+CWQAP |
| Response | OK |
| Parameters | - |
AT+CWSAP_CUR – Configures the BFQ4004 SoftAP, Configuration Not Saved to Flash¶
| Command | Query: AT+CWSAP_CUR? Function: to obtain the configuration parameters of the BFQ4004 SoftAP. |
Set: AT+ CWSAP_CUR=<ssid>,<pwd>, <chl>,<ecn>[,<max conn>] [,<ssid hidden>] Function: to configure the BFQ4004 SoftAP. |
| Response | CWSAP_CUR:<ssid>,<pwd>, < chl>,<ecn>,[<max_conn>, <ssid_hidden>] |
OK or ERROR |
| Parameters |
|
|
| Notes |
|
|
| Examples | AT+CWSAP_CUR=”BFQ 4004AP”,”123456789”,5,3 | |
AT+CWSAP_DEF - Configures the BFQ4004 SoftAP, Configuration Saved to Flash¶
| Command | Query: AT+CWSAP_DEF? Function: to obtain the configuration parameters of the BFQ4004 SoftAP. |
Set: AT+ CWSAP_DEF=<ssid>,<pwd>, <chl>,<ecn>[,<max conn>] [,<ssid hidden>] Function: to configure the BFQ4004 SoftAP. |
| Response | CWSAP_DEF:<ssid>,<pwd>, < chl>,<ecn>,[<max_conn>, <ssid_hidden>] |
OK or ERROR |
| Parameters |
|
|
| Notes |
|
|
| Examples | AT+CWSAP_DEF=”BFQ 4004AP”,”123456789”,5,3 | |
AT+CWLIF – Gets the IP Addresses of the Stations the BFQ4004 SoftAP Is Connected With¶
| Execute Command | AT+CWLIF |
| Response | <ip_addr>,<mac> OK |
| Parameters |
|
| Notes | This command cannot get a static IP. It only works when both DHCPs of the BFQ4004 SoftAP, and of the Station to which BFQ4004 SoftAP is connected, are enabled. |
AT+CWDHCP_CUR - Enables/Disables DHCP, Configuration Not Saved to Flash¶
| Command | Query: AT+CWDHCP_CUR? Function: to obtain the status of DHCP. |
Set: AT +CWDHCP_CUR=<mode>,<en> Function: to configure.DHCP. |
| Response | +CWSAP_CUR: <station_dhcp_status>, <softap_dhcp_status> |
OK |
| Parameters |
|
|
| Notes |
|
|
| Examples | AT+CWDHCP_CUR=,1 | |
AT+CWDHCP_DEF - Enables/Disables DHCP, Configuration Saved to Flash¶
| Command | Query: AT+CWDHCP_DEF? Function: to obtain the status of DHCP. |
Set: AT +CWDHCP_DEF=<mode>,<en> Function: to configure.DHCP. |
| Response | +CWSAP_DEF: <station_dhcp_status>, <softap_dhcp_status> |
OK |
| Parameters |
|
|
| Notes |
|
|
| Examples | AT+CWDHCP_DEF=,1 | |
AT+CWDHCPS_CUR - Sets the IP address Range the SoftAP DHCP Server Can Allocate, Configuration Not Saved to Flash¶
| Command | Query: AT+CWDHCPS_CUR? Function: to obtain the IP address range of the SoftAP DHCP. |
Set: A T+CWDHCPS_CUR=<enable>, <lease_ti me>,<start_IP>,<end_IP> Function: to set the IP address range of the BFQ4004 SoftAP DHCP server. |
| Response | +CW DHCPS_CUR=<lease_time>, <start_IP>,<end_IP> |
OK |
| Parameters |
|
|
| Notes |
|
|
| Examples | A T+CWDHCPS_CUR=1,3,”192. 168.4.1”,”192.168.4.15” or AT+CWDHCPS_CUR= //Disable the settings and use the default IP range. |
|
AT+CWDHCPS_DEF - Sets the IP address Range the SoftAP DHCP Server Can Allocate, Configuration Saved to Flash¶
| Command | Query: AT+CWDHCPS_DEF? Function: to obtain the IP address range of the SoftAP DHCP. |
Set: A T+CWDHCPS_DEF=<enable>, <lease_ti me>,<start_IP>,<end_IP> Function: to set the IP address range of the BFQ4004 SoftAP DHCP server. |
| Response | +CW DHCPS_DEF=<lease_time>, <start_IP>,<end_IP> |
OK |
| Parameters |
|
|
| Notes |
|
|
| Examples | A T+CWDHCPS_DEF=1,3,”192. 168.4.1”,”192.168.4.15” or AT+CWDHCPS_DEF= //Disable the settings and use the default IP range. |
|
AT+CWAUTOCONN – Automatically Connects to the AP on Power-up or Not¶
| Set Command | AT+CWAUTOCONN=<enable> |
| Response | OK |
| Parameters |
|
| Notes | The configuration changes will be saved in the system parameter area in the flash. |
| Examples | AT+CWAUTOCONN= |
AT+CIPSTA_CUR – Sets the Current IP Address of the BFQ4004 Station, Configuration Not Saved in Flash¶
| Command | Query: AT+CIPSTA_CUR? Function: to obtain the IP address of the BFQ4004 Station. |
Set: AT+CIPS TA_CUR=<ip>,[<gateway>, <netmask>] Function: to set the current IP address of the BFQ4004 Station. |
| Response | +CIPSTA_CUR:<ip> +CIPSTA_CUR:<gateway> +CIPSTA_CUR:<netmask> OK |
OK |
| Parameters |
|
|
| Notes | ️ Warning: Only when the BFQ4004 Station is connected to an AP can its IP address be queried.
|
|
| Examples | AT+CIPSTA_ CUR=”192.168.6.1”,”192. 168.6.1”,”255.255.255.” | |
AT+CIPSTA_DEF - Sets the Default IP Address of the BFQ4004 Station, Configuration Saved in Flash¶
| Command | Query: AT+CIPSTA_DEF? Function: to obtain the IP address of the BFQ4004 Station. |
Set: AT+CIPS TA_DEF=<ip>,[<gateway>, <netmask>] Function: to set the current IP address of the BFQ4004 Station. |
| Response | +CIPSTA_DEF:<ip> +CIPSTA_DEF:<gateway> +CIPSTA_DEF:<netmask> OK |
OK |
| Parameters |
|
|
| Notes | ️ Warning: Only when the BFQ4004 Station is connected to an AP can its IP address be queried.
|
|
| Examples | AT+CIPSTA_ DEF=”192.168.6.1”,”192. 168.6.1”,”255.255.255.” | |
AT+CIPAP_CUR – Sets the Current IP Address of the BFQ4004 SoftAP, Configuration Not Saved in Flash¶
| Command | Query: AT+CIPAP_CUR? Function: to obtain the IP address of the BFQ4004 SoftAP. |
Set: AT+CIP AP_CUR=<ip>,[<gateway>, <netmask>] Function: to set the current IP address of the BFQ4004 SoftAP. |
| Response | +CIPAP_CUR:<ip> +CIPAP_CUR:<gateway> +CIPAP_CUR:<netmask> OK |
OK |
| Parameters |
|
|
| Notes |
|
|
| Examples | AT+CIPAP_ CUR=”192.168.5.1”,”192. 168.5.1”,”255.255.255.” | |
AT+CIPAP_DEF - Sets the Default IP Address of the BFQ4004 SoftAP, Configuration Saved in Flash¶
| Command | Query: AT+CIPAP_DEF? Function: to obtain the IP address of the BFQ4004 SoftAP. |
Set: AT+CIP AP_DEF=<ip>,[<gateway>, <netmask>] Function: to set the current IP address of the BFQ4004 SoftAP. |
| Response | +CIPAP_DEF:<ip> +CIPAP_DEF:<gateway> +CIPAP_DEF:<netmask> OK |
OK |
| Parameters |
|
|
| Notes |
|
|
| Examples | AT+CIPAP_ DEF=”192.168.5.1”,”192. 168.5.1”,”255.255.255.” | |
AT+WPS – Enables the WPS Function¶
| Set Command | AT+WPS=<enable> |
| Response | OK |
| Parameters |
|
| Notes |
|
| Examples | AT+CWMODE=1 AT+WPS=1 |
AT+CWHOSTNAME – Configures the Name of BFQ4004 Station¶
| Command | Query: AT+CWHOSTNAME? Function: to check the name of the BFQ4004 Station. |
Set: AT+ CWHOSTNAME =<hostname> Function: to set the name of the BFQ4004 Station. |
| Response | +CWHOSTNAME:<hostname> OK If the Station mode is not enabled, the command will return: +CWHOSTNAME:<null> OK |
OK If the Station mode is not enabled, the command will return: ERROR |
| Parameters | <hostname>: the host name of the BFQ4004 Station, the maximum length is 32 bytes. | |
| Notes |
TNAME:<BFQ4004_A378DA>. |
|
| Examples | AT+CWMODE=1 AT+CWHOSTNAME=”my_test” |
|
AT+CWCOUNTRY_CUR – Sets the Current Wi-Fi Country Code, Configuration Not Saved in Flash¶
| Command | Query: AT+CWCOUNTRY_CUR? Function: to check the current WiFi country code of BQ4004 |
Set: AT+ CWCPUNTRY_CUR= <country_ policy>,<country_code>, <start_channel>, <total_channel_count> Function: to set the current WiFi country code of BFA4004. |
| Response | +CWCOUNTRY_CUR:
<country_policy>,
<country_code>,
<start_channel>,
<total_channel_count>
OK AT+CWCOUNTRY_CUR? returns the actual value of WiFi country code, which may be changed to the same as the AP it connected to. |
OK |
| Parameters |
|
|
| Notes | The configuration changes are NOT saved in the flash. | |
| Examples | AT+CWMODE=1 AT+CW COUNTRY_CUR=1,”US”,1,13 |
|
AT+CWCOUNTRY_DEF – Sets the Default Wi-Fi Country Code, Configuration Save in Flash¶
| Command | Query: AT+CWCOUNTRY_DEF? Function: to check the default WiFi country code of BQ4004 |
Set: AT+ CWCPUNTRY_DEF= <country_ policy>,<country_code>, <start_channel>, <total_channel_count> Function: to set the default WiFi country code of BFA4004. |
| Response | +CWCOUNTRY_DEF:
<country_policy>,
<country_code>,
<start_channel>,
<total_channel_count>
OK AT+CWCOUNTRY_DEF? returns the default value of WiFi country code stored in the flash. |
OK |
| Parameters |
|
|
| Notes | The configuration changes are saved in the user parameter area of the flash. | |
| Examples | AT+CWMODE=1 AT+CW COUNTRY_DEF=1,”US”,1,13 |
|
TCP/IP-Related AT Commands¶
Overview¶
| Commands | Description |
|---|---|
| AT+CIPSTATUS | Gets the connection status |
| AT+CIPDOMAIN | DNS function |
| AT+CIPSTART | Establishes TCP connection, UDP transmission or SSL connection |
| AT+CIPSSLSIZE | Sets the size of SSL buffer |
| AT+CIPSSLCCONF | Configures the SSL client |
| AT+CIPSEND | Sends Data |
| AT+CIPSENDEX | Sends data when length of data is <length>, or when \ appears in the data |
| AT+CIPSENDBUF | Writes data into TCP-send-buffer |
| AT+CIPBUFRESET | Resets the segment ID count |
| AT+CIPBUFSTATUS | Checks the status of TCP-send-buffer |
| AT+CIPCHECKSEQ | Checks if a specific segment is sent or not |
| AT+CIPCLOSE | Closes TCP/UDP/SSL connection |
| AT+CIFSR | Gets the local IP address |
| AT+CIPMUX | Configures the multiple connections mode |
| AT+CIPSERVER | Creates or deletes TCP server |
| AT+CIPSERVERMAXCONN | Set the maximum connections that server allows |
| AT+CIPMODE | Configures the transmission mode |
| AT+CIPSTO | Sets timeout when BFQ4004 runs as TCP server |
| AT+PING | Ping packets |
| AT+CIUPDATE | Upgrades the software through network |
| AT+CIPDINFO | Shows remote IP and remote port with +IPD |
| +IPD | BFQ4004 receives network data |
| AT+CIPRECVMODE | Set TCP Receive Mode |
| AT+CIPRECVDATA | Get TCP Data in Passive Receive Mode |
| AT+CIPRECVLEN | Get TCP Data Length in Passive Receive Mode |
| AT+CIPSNTPCFG | Configures the time domain and SNTP server. |
| AT+CIPSNTPTIME | Queries the SNTP time. |
| AT+CIPDNS_CUR | Sets user-defined DNS servers; configuration not saved in flash |
| AT+CIPDNS_DEF | Sets user-defined DNS servers; configuration saved in flash |
Command Descriptions¶
AT+CIPSTATUS – Gets the Connection Status¶
| Execute Command | AT+CIPSTATUS |
| Response | STATUS:<status> +CIPSTATUS:<li
nk_ID>,<conn_type>,<remote_IP>,<remote_port>, | <local_port>,<tetype> |
| Parameters |
|
AT+CIPDOMAIN – DNS Function¶
| Execute Command | AT+CIPDOMAIN=<domain_name> |
| Response | +CIPDOMAIN:<IP_address> OK or DNS Fail ERROR |
| Parameters |
|
| Examples | AT+CWMODE=1 // set Station mode AT+CWJAP=”SSID”,”password” // access to the internet AT+CIPDOMAIN=”www.beefi.io” // DNS function |
AT+CIPSTART – Establishes TCP Connection, UDP Transmission or SSL Connection¶
Establish TCP Connection¶
| Set Command | Single connection (AT+CIPMUX=): AT
+CIPSTART=<conn_type>, | <r emote_IP/domain_name>, | <remote_port> | [,<TCP_keep_alive>] |
Multiple Connections (AT+CIPMUX=1): AT+CIPSTART=<link_ID>, | <conn_type>, | <r emote_IP/domain_name>, | <remote_po rt>[,<TCP_keep_alive>] |
| Response | OK or ERROR If the TCP connection is already established, the response is: ALREADY CONNECTED |
|
| Parameters |
|
|
| Notes | The configuration changes are saved in the user parameter area of the flash. | |
| Examples | AT+CIPSTART= “TCP”,”www.beefi.io”,8 AT+CIPSTART=” TCP”,”192.168.11.11”,1 For more information please see: BFQ4004 AT Command Examples. |
|
Establish UDP Transmission¶
| Set Command | Single connection (AT+CIPMUX=): AT
+CIPSTART=<conn_type>, | <r emote_IP/domain_name>, | <remote_port> | [,<l ocal_port>,<UDP_mode>] |
Multiple Connections (AT+CIPMUX=1): AT+CIPSTART=<link_ID>, | <conn_type>, | <r emote_IP/domain_name>, | <remote_port> | [,<l ocal_port>,<UDP_mode>] |
| Response | OK or ERROR If the UDP transmission is already established, the response is: ALREADY CONNECTED |
|
| Parameters |
️ Warning: To use <UDP_mode>, <local_port> must be set first. |
|
| Examples | AT+CIPSTART=”UDP”, “192.168.11.11”,1,12,2 For more information please see: BFQ4004 AT Command Examples. |
|
Establish SSL Connection¶
| Set Command | AT+CIPSTART= [<link_ID>,]<conn_type>,<remote_IP>,<remote_port> [,<TCP keep alive>] |
| Response | OK or ERROR If the TCP connection is already established, the response is: ALREADY CONNECTED |
| Parameters |
|
| Notes |
|
| Examples | AT+CIPSTART=”SSL”,”www.beefi.io”,8443 |
AT+CIPSSLSIZE – Sets the Size of the SSL Buffer¶
| Set Command | AT+CIPSSLSIZE=<size> |
| Response | OK |
| Parameters | <size>: the size of the SSL buffer; range of value: [248, 496]. |
| Examples | AT+CIPSSLSIZE=496 |
AT+CIPSSLCCONF – Configures the SSL Client¶
| Command | Query: AT+CIPSSLCCONF? Function: gets the configuration of the BFQ4004 SSL client. |
Set: AT+CIPSSLCCONF=<SSL mode> Function: sets the configuration of the BFQ4004 SSL client. |
| Response | +CIPSSLCCONF:<SSL mode> OK |
OK |
| Parameters | <SSL mode>: a value from -3 representing 2 bits used to configure the SSL as described below:
(Looks like ESP8266 can also do mutual SSL according to the above 2-bit settings? What should be added to cover mutual SSL feature BFQ4004 provides?) |
|
| Notes |
This configuration will be saved in the user parameter area of the flash. |
|
| Examples | AT+CWMODE=1 // enable sta mode AT+ CWJAP=”SSID”,”PASSWORD” // connect to an AP AT+CIPSNTPCFG=1,8 // set SNTP time zone AT+CIPSNTPTIME? // get SNTP time AT+CIPSSLCCONF=2 AT+CIPSTART=”S SL”,”192.168.3.38”,8443 |
|
AT+CIPSEND – Sends Data¶
| Command | Set Command:
AT+CIPSEND=<length>
AT+CIP SEND=<link_ID>,<length>
AT+CIPSEND=[<link_ID>,] | <length>
<remote_port>]
Function: to configure the data length in normal transmission mode. |
Execute Command: AT+CIPSEND Function: to start sending data in transparent transmission mode. |
| Response | Send data of designated length. Wrap return > after the Set Command. Begin receiving serial data. When data length defined by <length> is met, the transmission of data starts. If the connection cannot be established or gets disrupted during data transmission, the system returns: ERROR If data is transmitted successfully, the system returns: SEND OK If it failed, the system returns: SEND FAIL |
Wrap return > after executing this command. Enter transparent transmission, with a 20-ms interval between each packet, and a maximum of 248 bytes per packet. When a single packet containing +++ is received, BFQ4004 returns to normal command mode. Please wait for at least one second before sending the next AT command. This command can only be used in transparent transmission mode which requires single connection. For UDP transparent transmission, the value of<UDP_mode> has to be when using AT+CIPSTART. |
| Parameters |
|
- |
| Examples | AT+CIPSEND=124 // +CIPMUX= AT+CIPSEND=2,124 // +CIPMUX=1 |
|
AT+CIPSENDEX – Sends Data¶
| Set Command |
AT+CIPSENDEX=<length>
AT+CIPSENDEX=<link_ID>,<length>
=[<link_ID>,]<length>[,<remote_IP>,<remote_port>] Function: to configure the data length in normal transmission mode. |
| Response | Send data of designated length. Wrap return > after the Set Command. Begin receiving serial data. When the requirement of data length, determined by <length>, is met, or when \ appears in the data, the transmission starts. If connection cannot be established or gets disconnected during transmission, the system returns: ERROR If data are successfully transmitted, the system returns: SEND OK If it failed, the system returns: SEND FAIL |
| Parameters |
|
AT+CIPSENDBUF – Writes Data Into the TCP-Send-Buffer¶
| Set Command |
|
| Response |
|
| Parameters |
|
| Notes |
|
AT+BUFRESET – Resets the Segment ID Count¶
| Set Command |
|
| Response | OK If the connection is not established or there is still TCP data waiting to be sent, the response will be: ERROR |
| Parameters | <link_ID>: ID of the connection (~4), for multiple connections. |
| Notes | This command can only be used when AT+CIPSENDBUF is used. |
AT+CIPBUFSTATUS – Checks the Status of the TCP-Send-Buffer¶
| Set Command |
|
| Response | <next segment_ID>,<segment_ID sent >,<segment_ID successfully sent>,<remain_buffer_size>,<queue_number> OK |
| Parameters |
|
| Notes | This command can NOT be used for SSL connection. |
| Examples | For example, in single connection, the command AT+CIPBUFSTATUS returns: 2,15,1,2,7 Description:
|
AT+CIPCHECKSEQ – Checks If a Specific Segment Was Successfully Sent¶
| Set Command |
|
| Response | [<link ID>,]<segment_ID>,<status> OK |
| Parameters |
|
| Notes | This command can only be used when AT+CIPSENDBUF is used. |
AT+CIPCLOSE – Closes the TCP/UDP/SSL Connection¶
| Command | Set Command: (used in multiple connections) AT+CIPCLOSE=<link_ID> Function: to close the particular link_ID TCP/UDP connection. |
Execute Command: (used in multiple connections) AT+CIPCLOSE Function: to close all TCP/UDP connections. |
| Response | OK | |
| Parameters | <link_ID>: ID of the connection to be closed. When ID is 5, all connections will be closed. In server mode, ID=5 has no effect. | - |
| Examples | AT+CIPSEND=124 // +CIPMUX= AT+CIPSEND=2,124 // +CIPMUX=1 |
|
AT+CIFSR – Gets the Local IP Address¶
| Execute Command | AT+CIFSR |
| Response | +CIFSR:APIP,<SoftAP_IP> +CIFSR:APMAC,<SoftAP_MAC> +CIFSR:STAIP,<Station_IP> +CIFSR:STAMAC,<Station_MAC> OK |
| Parameters | <SoftAP_IP>: IP address of the BFQ4004 SoftAP. <Station_IP>: IP address of the BFQ4004 Station. <SoftAP_MAC>: MAC address of the BFQ4004 SoftAP. <Station_MAC>: MAC address of the BFQ4004 Station. |
| Notes | Only when the BFQ4004 Station is connected to an AP can its Station IP can be queried. |
AT+CIPMUX – Enables or Disables Multiple Connections¶
| Command | Query Command: AT+CIPMUX? Function: checks the connection mode. |
Set Command: AT+CIPMUX=< mode> Function: sets the connection mode. |
| Response | +CIPMUX:< mode> OK |
OK |
| Parameters | <mode>:
|
|
| Notes |
|
|
| Examples | AT+CIPMUX=1 | |
AT+CIPSERVER – Creates or Deletes TCP Server¶
| Set Command | AT+CIPSERVER=<mode>[,<port>] |
| Response | OK |
| Parameters |
|
| Notes |
|
| Examples | AT+CIPMUX=1 AT+CIPSERVER=1,11 |
AT+CIPSERVERMAXCONN – Sets the Maximum Connections Allowed by Server¶
| Command | Query Command: AT+CIPSERVERMAXCONN? Function: obtains the maximum number of clients allowed to connect to the TCP or SSL server. |
Set Command: AT+CIPSERVERMAXCONN=< num> Function: sets the maximum number of clients allowed to connect to the TCP or SSL server. |
| Response | +CIPSERVERMAXCONN:< num> OK |
OK |
| Parameters | <num>: the maximum number of clients allowed to connect to the TCP or SSL server, range:[1~5]. | |
| Notes | AT +CIPSERVERMAXCONN=<num> should be used to set up the correct configuration before creating a server. | |
| Examples | AT+CIPMUX=1 AT+CIPSERVERMAXCONN=2 AT+CIPSERVER=1,8 |
|
AT+CIPMODE – Sets Transmission Mode¶
| Command | Query Command: AT+CIPMODE? Function: checks the transmission mode. |
Set Command: AT+CIPMODE=< mode> Function: sets the transmission mode. |
| Response | +CIPMODE:< mode> OK |
OK |
| Parameters | <mode>:
|
|
| Notes |
|
|
| Examples | AT+CIPMODE=1 | |
AT+CIPSTO – Sets the TCP Server Timeout¶
| Command | Query Command: AT+CIPSTO? Function: checks the TCP server timeout setting. |
Set Command: AT+CIPSTO=< time> Function: sets the TCP server timeout. |
| Response | +CIPSTO:< time> OK |
OK |
| Parameters | <time>: TCP server timeout duration, range: ~72 seconds (s). | |
| Notes |
|
|
| Examples | AT+CIPMUX=1 AT+CIPSERVER=1,11 AT+CIPSTO=1 |
|
AT+PING – Pings Packets¶
| Set Command | AT+PING=<IP> Function: ping packets. |
| Response | +<time> OK or +timeout ERROR |
| Parameters |
|
| Examples | AT+PING=”192.168.1.1” AT+PING=”www.beefi.io” |
AT+CIUPDATE – Updates the Software Through Wi-Fi¶
| Execute Command | AT+CIUPDATE Function: updates software. |
| Response | +CIUPDATE:<action> OK |
| Parameters | <action>:
|
| Notes |
|
AT+CIPDINFO – Shows the Remote IP and Port with +IPD¶
| Set Command | AT+CIPDINFO=<mode> Function: sets whether to show remote IP and port with +IPD. |
| Response | OK |
| Parameters | <mode>:
|
| Examples | AT+CIPDINFO=1 |
+IPD – Receives Network Data¶
| Command | Single connection: (+CIPMUX=)+IPD,<len> [,<rem ote_IP>,<remote_port>]: <data> |
Multiple connection: (+CIPMU X=)+IPD,<link_ID>,<len> [,<rem ote_IP>,<remote_port>]: <data> |
| Parameters |
|
|
AT+CIPRECVMODE – Sets TCP Receive Mode¶
| Command | Query Command: AT+CIPRECVMODE? Function: checks the receive mode of TCP data. |
Set Command: AT+CIPRECVMODE=<mode> Function: sets the receive mode of TCP data. |
| Response | +CIPRECVMODE:<mode> OK |
OK |
| Parameters | <mode>: the receive mode of TCP data.
|
|
| Notes |
|
|
| Examples | AT+CIPRECVMODE=1 | |
AT+CIPRECVDATA – Gets TCP Data In Passive Receive Mode¶
| Set Command | Single connection mode (AT+CIPMUX=): AT+CIPRECVDATA=<len> |
Multiple connections mode (AT+CIPMUX=1): AT+CIPRE CVDATA=<link_ID>,<len> |
| Response | +CIPRECVDAT A:<actual_leng>,<data> OK |
|
| Parameters |
|
|
| Notes | In case of disconnection, the buffered TCP data will still be there and can be read by MCU until a new connection is established. If the newly established connection happens to use the same link ID, the previously buffered data in the last connection will be lost. | |
| Examples | AT+CIPRECVMODE=1 // For example, if host MCU got a message of receiving 1 bytes data in connection with connection , the message will be as following: +IPD,,1 // then you can read those 100 bytes by using the command below AT+CIPRECVDATA=,1 |
|
AT+CIPREVLEN – Gets TCP Data Length in Passive Received Mode¶
| Query Command | AT+CIPRECVLEN? |
| Response | +CIPRECVLEN:<data length of link0>,<data length of link1>,<data length of link2>,<data length of link3>,<data length of link4> OK |
| Parameters | <data length of link#>: length of the data currently buffered for the particular link number. |
| Examples | AT+CIPRECVLEN? +CIPRECVLEN:1,,,, OK |
AT+CIPSNTPCFG – Sets the Configuration of SNTP¶
| Command | Query Command: AT+CIPSNTPCFG? Function: checks the SNTP configuration. |
Set Command: AT+CIPSNTPCFG=<enable> [,<tim ezone>][,<SNTP_server>, <SNTP_s erver1>,<SNTP_server2>] Function: sets the SNTP configuration. |
| Response | +CIPSNTPCFG:<enable>, < timezone>,<SNTP_server> [,<SNTP_server1>, <SNTP_server2>] OK |
OK |
| Parameters |
|
|
| Notes | If the <SNTP server> parameters are not set, servers “cn.ntp.org .cn”,”ntp.sjtu.edu.cn”, and “us.pool.ntp.org” (change to “0.pool.ntp.org”, “1.pool.ntp.org” and “2.pool.ntp.org”?) will be used by default. | |
| Examples | AT+CIPSNTPCFG=1,8,”0.p ool.ntp.org”,”1.pool.nt p.org”,”2.pool.ntp.org” | |
AT+CIPSNTPTIME – Checks the SNTP Time¶
| Query Command | AT+CIPSNTPTIME? |
| Response | +CIPSNTPTIME:<time> OK |
| Parameters | <time>: SNTP time OK |
| Examples | AT+CWMODE=1 //set as station mode AT+CWJAP=”DemoAP”,”password” //connect to router, access the internet AT+CIPSNTPCFG=1,8 //set time zone AT+CIPSNTPTIME? //get time For example: +CIPSNTPTIME:Thu Aug 04 14:48:05 2019 OK |
AT+CIPDNS_CUR – Sets User-defined DNS Servers, Configuration Not Saved to Flash¶
| Command | Query Command: AT+CIPDNS_CUR? Function: gets the current DNS server. |
Set Command: AT+CIPDNS_CUR=<enable> [,<DNS_server>, <DNS_server1>] Function: sets user-defined DNS servers. |
| Response | [+CIPDNS_CUR:<DNS server0>] [+CIPDNS_CUR:<DNS server1>] OK |
OK |
| Parameters |
|
|
| Notes |
|
|
| Examples | AT+CIP DNS_CUR=1,”28.67.22.22” | |
AT+CIPDNS_DEF – Sets User-defined DNS Servers, Configuration Saved to Flash¶
| Command | Query Command: AT+CIPDNS_DEF? Function: gets the current DNS server. |
Set Command: AT+CIPDNS_DEF=<enable> [,<DNS_server>, <DNS_server1>] Function: sets user-defined DNS servers. |
| Response | [+CIPDNS_DEF:<DNS server0>] [+CIPDNS_DEF:<DNS server1>] OK |
OK |
| Parameters |
|
|
| Notes |
|
|
| Examples | AT+CIP DNS_DEF=1,”28.67.22.22” | |
HTTP-Related AT Commands¶
Overview¶
| Commands | Description |
|---|---|
| AT+CHTTPURL | Set HTTP server port and address. |
| AT+CHTTPPH | Set path of POST/GET. |
| AT+CHTTPTP | Set command type of HTTP (GET or POST). |
| AT+CHTTPDT | Set name and value pair of data in HTTP. |
| AT+CHTTPTR | Send HTTP package and return received data. |
Command Descriptions¶
AT+CHTTPURL – Sets HTTP Server Port and Address¶
| Command | Query Command: AT+CHTTPURL? Function: gets the current port and IP address of the HTTP server. |
Set Command: AT+CHTTPURL=<port>, <IP_address> Function: sets port and IP address of the target HTTP server. |
| Response | +CHTTP URL=<port>,<IP_address> OK |
OK or <error_code> |
| Parameters |
|
|
| Notes | If resource is not found, standard HTTP error code = 404, the set command would return the following error code: x7194 Because hex(x7+44)=0x7194 For a complete list of standard HTTP/1.1 error codes please refer to: RFC 2616: https://tool s.ietf.org/html/rfc2616 |
|
| Examples | AT+C HTTPURL=8,”192.168..18” | |
AT+CHTTPPH – Sets Path of POST/GET¶
| Command | Query Command: AT+CHTTPPH? Function: gets paths of POST/GET. |
Set Command: AT+CHTTPPH=<path> Function: sets path of POST/GET. |
| Response | +CHTTPPH=<path> OK |
OK |
| Parameters | <path>: a string representing the path of POST/GET. | |
| Examples | AT+CHTTPPH=”/userLogin” | |
AT+CHTTPCTP – Sets Command Type of HTTP (GET or POST)¶
| Set Command | AT+CHTTPCTP=<type> Function: sets command type of either POST or GET. |
| Response | OK |
| Parameters | <type>: a number representing GET or POST command.
|
| Examples | AT+CHTTPCTP=1 |
AT+CHTTPCDT – Sets Name and Value Pair of Data in HTTP¶
| Set Command | AT+CHTTPCDT=<name>,<value> Function: sets name and value pair of data in HTTP. |
| Response | OK |
| Parameters | <name>: a string representing the name of the data; <value>: a string representing the value corresponding to the name. |
| Examples | AT+CHTTPCTP=”username”,”admin” |
AT+CHTTPTR – Sends HTTP Package and Return Received Data¶
| Execute Command | AT+CHTTPTR Function: sends HTTP package and return received data. |
| Response | <reply_data> OK or <error_code> |
| Parameters | <reply_data>: data received from HTTP server. <error_code>: a hex number in the form of “x7+Standard HTTP error code”. |
| Notes | If resource is not found, standard HTTP error code = 404, the set command would return the following error code: x7194 Because hex(x7+44)=0x7194 For a complete list of standard HTTP/1.1 error codes please refer to: RFC 2616: https://tools.ietf.org/html/rfc2616 |
| Examples | AT+CHTTPTR |
Example operation: (is this correct?)
GET:
POST:
Espressif’s HTTP commands:
AT+HTTPCLIENT=<opt>,<content-type>,[<url>],[<host>],[<path>],<transport_type>,[<data>][,”http_req_header”][,”http_req_header”][…]
AT+HTTPGETSIZE
AT+HTTPGETSIZE=<url>
Should we follow their commands?
Internet-of-Things (IoT)-Related AT Commands¶
MQTT Commands Overview¶
| Commands | Description |
|---|---|
| AT+CMQNEW | |
| AT+CMQCON | |
| AT+CMQDISCON | |
| AT+CMQSUB | |
| AT+CMQUNSUB | |
| AT+CMQPUB | |
| AT+CMQTTSNEW | |
| AT+CMQTTSNEWEXT |
CoAP Commands Overview¶
| Commands | Description |
|---|---|
| AT+CCOAPNEW | |
| AT+CCOAPSEND | |
| AT+CCOAPCSEND | |
| AT+CCOAPDEL |
TLS Commands Overview¶
| Commands | Description |
|---|---|
| AT+CTLSCFG | |
| AT+CTLSCONN | |
| AT+CTLSCLOSE | |
| AT+CTLSSEND | |
| AT+CTLSRECV | |
| AT+CSETCA |
AWS IoT Core AT Commands¶
Customizing AT Firmware¶
Compiling AT project¶
If users want to customize AT source code, or add customized AT commands, please copy the folder “at” in the examples to the root directory of the corresponding BFQ4004 SDK , and then enter BFQ4004_SDK/at folder to develop and compile the custom AT project. For details, please refer to BFQ4004 Getting Started Guide.
Customize AT Functions¶
- OTA:
The official AT firmware launched by BeeFi supports the command AT+CIUPDATE by default, which helps update AT firmware to the latest version from BeeFi Cloud.
For the customized AT firmware, users have to implement this function by themselves to update the firmware from their own cloud. Please refer to the OTA example detailed inat_upgrade.c.
- [STRIKEOUT:SmartConfig:]
[STRIKEOUT:The official AT firmware launched by Espressif supports the commands AT+CWSTARTSMART and AT+CWSTOPSMART.]
[STRIKEOUT:If users don’t need SmartConfig, you can compile AT Project and disable CONFIG_AT_SMARTCONFIG_COMMAND_ENABLE in user_config.h for smaller bin size and more memory.]
Add User-defined AT Commands¶
TBD
Revision History
| Revision | Description | Date |
| V0.1.0 | Initial internal review version | 2020-07-26 |
Disclaimer and Copyright Notice
Information in this document, including URL references, is subject to change without notice. Please visit http://www.beefi.io/ for the latest information.
THIS CODUMENT IS PROVIDED AS IS WITH NO WARRANTIES WHATSOEVER, INCLUDING ANY WARRANTY OF MERCHANTABILITY, NON-INFRINGEMENT, FITNESS FOR ANY PARTICULAR PURPOSE, OR ANY WARRANTY OTHERWISE ARISING OUT OF ANY PROPOSAL, SPECIFICATION OR SAMPLE.
All liability, including liability for infringement of any proprietary rights, relating to the use of information in this document, is disclaimed. No licenses express or implied, by estoppel or otherwise, to any intellectual property rights are granted herein.
The Wi-Fi Alliance Member logo is a trademark of the Wi-Fi Alliance. The Bluetooth logo is a registered trademark of Bluetooth SIG.
All trade names, trademarks and registered trademarks mentioned in this document are property of their respective owners and are hereby acknowledged.
Copyright©2020 BeeFi Technologies Inc. All rights reserved.
