return 0 from lld_evt_time_get

5 posts / 0 new
Last post
achao1104
Offline
Last seen:5 years 3 months ago
Master
加入:2015-12-24 10:56
return 0 from lld_evt_time_get

dialog,

lld_evt_time_get some times return 0, some times, it works fine. when I call it in high frequency, it usually returns 0.
why?

Device:
MT_dialog
Offline
Last seen:2 months 1 week ago
工作人员
加入:2015 - 06-08 11:34
Hi achao1104,

Hi achao1104,

You can use this function while the BLE is up and running, perhaps the times you are calling it and returns 0 is because the BLE is down.

Thanks MT_dialog

achao1104
Offline
Last seen:5 years 3 months ago
Master
加入:2015-12-24 10:56
thanks for reply.

thanks for reply.
but I am sure I have called codes below in the wake up callback function
if(GetBits16(SYS_STAT_REG, PER_IS_DOWN))
periph_init();
arch_ble_force_wakeup();
arch_ble_ext_wakeup_off();.

liuluan002
Offline
Last seen:5 months 3 weeks ago
加入:2015-11-27 14:24
Hi DIalog,

Hi DIalog,

I have got the same problem when wake up from the interruption of button press and try to call the function of lld_evt_time_get(), it always return the 0 values, is any way I can fix this problem?

MT_dialog
Offline
Last seen:2 months 1 week ago
工作人员
加入:2015 - 06-08 11:34
Hi achao1104,

Hi achao1104,

When issuing the command it doesn't mean that the ble will wake up instantly, it takes about 4-5ms until the waking up is completed.

Thanks MT_dialog