Advertisement interval > 4 seconds cause problems.

3 posts / 0 new
Last post
aritec
Offline
Last seen:10 months 15 hours ago
加入:2014-01-29 06:09
Advertisement interval > 4 seconds cause problems.

I use extended sleep mode and modified the advertisement interval. Setting intv_min and intv_max up to 6400 everything works as expected. An advertisement package ever 4 seconds.
但是如果我将时间间隔设置为8000 (nd higher) instead of every 5 seconds, I got an advertisement package every 10 seconds. Every second package got dropped. From the current consumption I see how the BLE is switched on, but after 500us it gets switched off. After 5 seconds all 3 packages got send perfectly.

No clue whats wrong.

Thanks and regards
Armin

Update
It seems the code below in app_ps_scheduler.c:app_rwip_sleep_check() isn't returning false to cause the break on every other interval.
if (!lld_sleep_check(&sleep_duration, rwip_env.wakeup_delay))
break;

Device:
MT_dialog
Offline
Last seen:1 month 5 days ago
工作人员
加入:2015-06-08 11:34
Hi aritec,

Hi aritec,

Can you please try the same configuration with the new SDK, with a quick test seem that the adv interval is every 5 secs (with the 8000 setting). There are quite a few bugs that have been corrected in latest SDK versions.

Thanks MT_dialog

abremen
Offline
Last seen:4 years 3 months ago
加入:2015-02-10 17:44
From going through a rather

From going through a rather lage number of specs I remember that, depending on the type of hardware module you are using, it could be that you need an external 32kHz oscillator for sleep / advertisement times greater than 4 seconds.