Hi,
We try to build BLE application which should wake up from extended sleep mode as a result of both synchronous and asynchronous events.
The implementation of asynchronous event has been done according to UM-B-006 document, based on WakeUp timer.
1)在ISR event_flag常规,我们集
2) In Hook#2 - app_asynch_proc() - we clear event_flag and send a message to APP task
3)In APP task we do what we have to do...
The problem is a huge delay between external event and its processing in APP task. Its value is between 5 up to hundreds of milliseconds.
The weird thing is the duration of delay is a function of interval between external events. For example if few seconds passed after previous external event the delay will be about 5 msec. If 30 minutes passed after previous external event the delay will be about 130 msec.
In fact we can't afford more than 1 msec delay
Please advise if there is a solution.
Dan, Tritech
Hi Bendaa,
Please check this posthttp://support.dialog-semiconductor.com/wake-external-event
Thanks MT_dialog
Hi MT,
I saw your reply in the other post however it does not answers the question.
When the external interrupt occurs , we would like that MCU immediately response for the interrupt , not after 5mSec.
we would like that only external interrupt should be processed by MCU , without any other tasks.
So why in our case the response to external interrupt is not immediately ?
Thanks.
Hi Benaa,
In your previous post you mentioned that you experience times over 5 ms when waking up, this is not a normal waking up time, and most probably one of the reasons for that, is what i ve told you in my previous post. But the da when waking up from an external interrupt it needs some time in order to fully wake up about 4-5ms. So thats normal. There is no way to fully wake up the BLE under 1ms.
Thanks MT_dialog