background image

AT Command 

 

To get a ‘better’ Bluetooth experience on BLE 4.1 modules, we highly recommand you to 

update the newest firmware

 first.  

 

AT is the abbreviation of attention. AT command is the communication command used to configure 
Bluetooth parameters. It begins with AT, end with 

<CR+LF>

 (carriage return and line feed).  

 

NOTE: 

<CR+LF>

 is not a part of AT Command. 

AT Command List 

AT Command

 

Function

  

Parameters <X>

  

AT+ROLE=<X>  

Set Bluetooth 
mode  

“?” Query Bluetooth working mode  
“ROLE_CENTRAL” Set as the central device 
“ROLE_PERIPHERAL” Set as the peripheral device  

AT+NETWORK=<X>  

Set network 
mode  

“?” Query the network mode  
“P2P” Set to peer to peer connection 
“STAR” Set to star network  

AT+MIN_INTERVAL=<X>  

Set the 
minimum 
communication 
interval  

“?” Query the current minimum communication interval (10~99999ms)  

AT+MAX_INTERVAL=<X> 

Set the 
maximum 
communication 
interval  

“?” Query the current maximum communication interval (10~99999ms)  

AT+BIND=<X>  

Set binding 
Bluetooth 
address  

“?” Query the current binding MAC address  
e.g.: 0x0017ea9397e1 Set Bluetooth MAC address in need  

AT+CMODE=<X>  

Set BLE 
connection 
mode  

“?” Query the current connection mode  
“UNIQUE” Specify the connection mode  
“ANYONE” Set to free connection  

AT+MAC=<X>  

Query the 
Bluetooth 
address  

“?” Query the current Bluetooth MAC address  

AT+NAME=<X>  

Set the name  

“?” Query the Bluetooth device name  
“DFBLEduino2”  

AT+SETTING=<X>  

Modify/Reset 
to default <X> 
mode  

“?” Query the current setting  
“DEFAULT” Reset to initial setting 
“DEFPERIPHERAL” Reset to initial slave setting 
“DEFCENTRAL” Reset to initial host setting  

AT+USB_MONITOR=<X> 

Turn the USB 
monitor 
ON/OFF  

“?” Query the current USB monitor  
“ON” Turn on the USB monitor 

Содержание BLE4.1

Страница 1: ...3 7V lithium battery charging circuit It obtains power directly from the USB port Support 400mA maximum charge current Feature Support BLE 4 1 master and slave switch Support Bluetooth serial data tra...

Страница 2: ...twork tree network Developing Maximum number of slave connections 4 simultaneous connection Maximum transfer rate of 4Kbps Flash 8Mbit 64KB OTP 128KB Data SRAM 16KB Cache SRAM 128KB ROM On chip crysta...

Страница 3: ...D are USB Power port BAT and BAT are battery power po rt Note There is a 0 1 ohm resistor between BAT and GND The battery can also be used directly between BAT and GND when in use Dimension Dimension...

Страница 4: ...tion interval Query the current minimum communication interval 10 99999ms AT MAX_INTERVAL X Set the maximum communication interval Query the current maximum communication interval 10 99999ms AT BIND X...

Страница 5: ...o output mode and output LOW voltage AT WL X Query Declare the White List Query the White List NONE Declare the White List AT LOWPOWER X Query Set the low power mode Query the low power mode ON Turn o...

Страница 6: ...ss send button 9 If the BLE is successfully configured you will receive OK from it Fig1 enter the AT command remember selecting the Both NL CR 10 If received ERROR CMD instead try sending it again or...

Страница 7: ...mode For any enquiry please refers to the part Firmware Update You can release your hand after you plugged the USB cable Approach connection Press and hold the host BOOT button approach the slave Blu...

Страница 8: ...direct connection between BLE and smartphone device manager will lead to communication problems Therefore it needs a the third party APP such as BunoBasicDemo published by DFRobot BLE Device Monitor...

Страница 9: ...Fig1 Scanning Click the device to connect Once it connected successfully it will show Connected and LINK will light for 3s and blink for every 3s...

Страница 10: ...Fig2 Connected Send data frome the Data sending Area...

Страница 11: ...Fig3 Send Data Click Send Data to send data...

Страница 12: ...nnection The development is still in planning Bluetooth P2P Communication The procedure of BLE4 1 P2P connection is similar to BLE4 0 and the only difference is the P2P mode command There are two devi...

Страница 13: ...Fig1 set the connection mode AT Command AT ROLE ROLE_CENTRAL AT ROLE ROLE_PERIPHERAL Fig2 set the device as central mode...

Страница 14: ...e the difference between them in setting is that the star network uses the command AT NETWORK STAR The light LINK suggests the node device has been added to the white list of the central device and th...

Страница 15: ...Serial id void loop uint8_t event blunoNet getEvent queue switch event case EVENT_NETINFO eventNode e blunoNet popEvent StaticJsonBuffer 200 jsonBuffer JsonObject root jsonBuffer parseObject const cha...

Страница 16: ...WER ON BLE4 1 device will enable low power consumption mode after you reboot the device BLE4 1 device will enter this mode in 10s You can also use AT BOOT to make a software reboot Here is something y...

Страница 17: ...Pairing the host and the slave download is available 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 D...

Страница 18: ...Arduino UNO COM x after connected to PC A The COM name in default is Arduino UNO Please choose the board according to bootloader e g choose Arduino Pro Mini 3 3V 8MHz for FireBeetle BLE4 1 Q How to de...

Отзывы: