Reference

Last revision 2026/01/27

This guide explores the use of AT commands for configuring Bluetooth parameters, including setting modes, network configurations, and performing firmware upgrades through the Arduino IDE.

AT commands

AT commands are communication instructions used to configure Bluetooth parameter. AT is the abbreviation of ATtention. Every command line starts with "AT" and ends with a carriage return character and a linefeed character<CR+LF>.

Only stands for carriage return and linefeed character, not part of the AT command.

AT Commands Set

AT command Functions Parameter
AT+ROLE= set Bluetooth mode "?"query the current BLE mod;e "ROLE_CENTRAL"set to center mode; "ROLE_PERIPHERAL" set to node mode
AT+NETWORK= set network mode "?"query the current network; "P2P"set to p2p network; "STAR"set to star network
AT+MIN_INTERVAL= set the minimum communication interval "?"query the minimum communication interval(10~99999ms)
AT+MAX_INTERVAL= set the maximum communication interval "?" query the maximum communication interval (10~99999ms)
AT+BIND= set binding Bluetooth address “?”query the current binding MAC address. e.g.: 0x0017ea9397e1 Set Bluetooth MAC address in need
AT+CMODE= set BLE connection mode “?” Query the current connection mode “UNIQUE”set to specify the connection; “ANYONE”set to any connection
AT+MAC= set the Bluetooth address "?"query the MAC address of the BLE device
AT+NAME= set the name "?"query the name of the BLE device "DFBLEduino2"
AT+SETTING= change/reset the defalut mode "?"query the current setting; "DEFAULT" reset to the initial settings; "DEFPERIPHERAL" reset to the initial setting of the node mode; "DEFCENTRAL" reset to the initial setting of the center mode
AT+USB_MONITOR= turn the USB monitor on/off "?"query the current USB monitor; "ON" turn on the USB monitor; "OFF" turn off the USB monitor
AT+HELP= get help from AT command help information "ALL" query all AT commands help information
AT+NET_INF= query the device information of the current network "?"query the device information of the current network
AT+VERSION= query the firmware version "?"query the current firmware version
AT+RSSI= query the RSSI value "?"query the current RSSI value
AT+P= query/set the P(n, n=0, 1, 2...)status "?"set IO pins to inout mode and query its level; "1"set the pin to output mode and output HIGH"; "0" set the pin to output mode and output LOW
AT+WL= query/clear white list "?"query white list;"NONE"clear white list
AT+LOWPOWER= query/set the low-power mode "?"query the current low-power mode; "ON" turn on the low-power mode; "OFF" turn off the low-power mode
AT+EXIT exit the AT command mode exit the AT command mode

Configure the BLE through AT command

  1. Open the Arduino IDE.

  2. Select the correct serial port in Menu->Tool->Serial port.

  3. Open the Serial monitor(on the upper right of the IDE windows).

  4. Select the "No line ending"(①) and 115200 baud(②) in the pull-down menu.

  5. Type "+++"(③) like this and press send button (④).

  6. If the AT Command Mode is successfully access, you will receive "Enter AT Mode"(⑤) from it.
    DFR0492-Enter the AT CMD Mode

  7. Select the "Both NL & CR"(①) and 115200 baud(②) in the pull-down menu.

  8. Type or copy the AT command in the dialog(③) like this and press send button(④).

  9. If the BLE is successfully configured , you will receive "OK"(⑤) from it.
    DFR0492-Enter the AT command

  10. If received "ERROR CMD" instead, try sending it again or you should check whether the command is correct or not.

  11. USE “AT+EXIT” to exit AT Mode.

  12. You can input AT+HELP=ALL to query all AT Command information.
    DFR0492-Enter AT+HELP=? to get AT Command List

Firmware Upgrade

DFRobot BLE4.1 has the firmware method to BLE 4.0, click to download BLE4.1 firmware update tool, BLE4.1 firmware address Firmware Download.

Fig1: Bluno2 Firmware Update Tool

Update steps are shown as below:

  • Hold BOOT
  • Connect BLE4.1 to PC and loose BOOT, CHG and LINK flashes alternatively.
  • Open Bluno2 Firmware and select corresponding serial number.
  • Choose firmware to update, the firmware format is .img
  • Click to download

Was this article helpful?

TOP