i have 2 questions:
In connected state, BLE devices will sleep and wake up continuously after intervals time. After waking up, is the connection remain? Or BLE devices have to advertise and reconect?
In connected state, is it posible to config BLE devices only be waken up by external interrupt source. If it is, after waken up, are the BLE devices still in connection state or they have to adverise and reconnect?'
Thanks for reading! I looking forward to getting your answers!
Device:
Hi Thanhtu131,
The device can go into sleep mode between intervals ( advertising or connection) and will wake up automatically by BLE Timer. The connection is maintained between the connection intervals. It’s not possible to use an external interrupt during a connection. In case of waking up via an external interrupt, the wake-up controller should be used. Please check the ble_app_sleepmode example of the SDK.
Thanks, PM_Dialog
"It’s not possible to use an external interrupt during a connection." Do you want to tell me that it is not possible to use an external interrupt to wake the device in connection state?
I've tried to disable sleep mode during a connection and config an external interrupt. It works.
My main question is "In a connection(sleepmode is extendsleep), can i con configurate a wake-up controller to wake aBLE device? Is there any conflict?"
Hi Thanhtu131,
As mentioned in my previous comment, the device will wake up automatically between the connection intervals via the BLE Timer. The connection is maintained as well. Why do you need to use the wake-up timer? Do you want to read some data from a peripheral block when the device is connected, and the extended sleep is on?
Thanks, PM_Dialog
Thanks, i am now implenting another operation for my project and it will not use the wake-up timer during connection state.