Download Print this page

DFRobot BLE4.1 Manual page 16

Advertisement

}
case EVENT_DATA:
{
eventNode e = blunoNet.popEvent();
blunoNet.sendPacket(e.src, blunoID, "hello12345678901234567890",26)
;
break;
}
default: //no event
{
break;
}
}
blunoNet.loop();
if(Serial.available()){
char message=Serial.read();
blunoNet.sendPacket(!blunoID, blunoID, &message,1);
}
}
Bluetooth Low Power Consumption Mode
After Bluetooth enter low power consumption mode, the BLE 4.1 consumes lower than 10uA,
and it can still broadcast and keep data interaction. With command AT+LOWPOWER=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 you should notice: The MCU should WAKEUP the BLE Chip first, or it will
be messy code.
In the low power consumption mode, if there is no extra operation, Bluetooth will enter this
mode after 10s. You can awake Bluetooth by interruption pins; awake ATmega328P by
Bluetooth:
BLE4.1 wakes up the Arduino controller (ATmega328P) with P4_2 (D2_Arduino): high voltage
wakeup
Arduino controller (ATmega328P) wakes up BLE4.1 by WAKEUP (D3_Arduino): low voltage
wakeup

Advertisement

loading

This manual is also suitable for:

Tel0120