DA14580

关于低功耗 & WFI();

Fri, 2016-05-13 15:37--z20121202038

你好,
最近,在测功耗,发现设备一直没有进入睡眠模式,于是我打开了da14580_config.h中扩展睡眠模式的宏。
/*Sleep modes*/
#define CFG_EXT_SLEEP
#undef CFG_DEEP_SLEEP
然后,JLINK连接到单板在线调试,发现设备完成第一次启动(因为我加了打印的),之后就进入睡眠模式了,然后再也起不来了,手机也扫描不到设备,一睡不醒了。
问题:
1)开启扩展睡眠模式,是不是不仅仅只是开这个宏,还要在main_func中添加唤醒蓝牙的接口函数,如果是,有没有范例。实际上,我的工程中是有定时器一直在工作的,时间到了,它会自动去开AD采数据,这个动作我是不希望停的,即使蓝牙天线关了,我的AD也要定时去采数据,采完就通过蓝牙上报。我之前理解,应该是系统中有新的消息事件出现时,系统应该就会自动被唤醒的。而定时器时间到了,就是一个消息事件啊,难道这个软件定时器一旦系统进入休眠模式,也会被关掉,那如果系统休眠期间我还是要定时采样,该怎么做呢?
2)WFI();这个宏是不是等待中断事件,包括哪些啊,软件定时器消息算不算。
非常感谢,期待你的答复。

About the sleep mode

Fri, 2016-05-13 15:25--z20121202038

Hi,
A question about the sleep mode, I open the micro in da14580_config.h:
/*Sleep modes*/
#define CFG_EXT_SLEEP
#undef CFG_DEEP_SLEEP

Then it go to sleep after power on, and cannot waked up from the sleep mode.
I cannot catch any broadcast packet.
How can i wake up the systerm every 10s?
Can the timer in the app_ht_task wake up the systerm?
thank you very much!

Create many customs services

Thu, 2016-05-12 08:02--bensalemsaif

Hello MT_dialog,

I already used the template project yith cust1 and cust2 services, and now I want to have 100 fields, so what could be the best way to do that ?

Should I have just one service with 100 fields or create for exemple 5 services and 20 fields per service ?

Otherwise , is there any better solution ? because I need to send 100 variables in connected mode to my BLE app.

Thank you,

To retrieve random address generated via GAPM_GEN_NON_RSLV_ADDR

Thu, 2016-05-12 07:34--hardy.chen

Hi,

Is there any way to retrieve the generated random address after passing command 'gapm_start_advertise_cmd' with 'op.addr_src' set to GAPM_GEN_NON_RSLV_ADDR?
Since this command will generate new random one in every trial, I would like to keep the same one for certain duration in my case.

I'm using SDK DA14580_BEACON_3.40.6.

Thanks

cannot connect to smart tags any more

Thu, 2016-05-12 02:33--uta_lc

Dear Dialogue support,

Just received the smart tags posted from you. Thanks a lot.

I connected to the tags (2 tags) using iOS app and it worked fine. However after running Profile Tuning Test (PTS) suite on one tag, I cannot connect to the tag any more using iOS app (any other iOS app like Lightblue, TI sensor tag). I can see the tick in the Dialogue iOS app flashing and it suggests connected but quickly disconnected. Other iOS app report the same error - disconnected while interrogating service .... Power on/off several times, no difference.

Pages

Subscribe to RSS - DA14580