background image

 

Fig1: BLE4.1 Minimum System Schematic 

 

 

 

Smartphone Bluetooth Connection 

 

Android Terminal and IOS Terminal 

 

BlunoBasicDemo Android, Android source code (DFRobot) 

 

LightBlue IOS 

 

Blynk IOS 

Different from the traditional Bluetooth (such as Bluetooth headset), BLE4.1 need specified 
eigenvalue and device service ID to connect smartphone. The 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

 from TI .etc. 

In this section, we'll take BunoBasicDemo published by DFRobot as an example.  

 

Set BLE4.1 as peripheral device with command 

AT+ROLE=ROLE_PERIPHERAL

. Set connection 

mode as 

P2P

 by 

AT+NETWORK=P2P

 command and restart BLE4.1 (power off and restart). 

 

Open 

BunoBasicDemo

 app, click 

SCAN

, then we'll see the scanned BLE4.1 device .  

Содержание 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...

Отзывы: