延长睡眠模式

17个帖子/ 0新
最后一篇
亚历克斯罗
离线
最后一次露面:1 year 3 months ago
Expert
加入:2014-02-28 19:16
延长睡眠模式

Hi Support Team,

I modified template sample128 with active mode, it works well. I changed it to extend sleep mode by #define CFG_EXT_SLEEP in da14580_config.h. it works, but when connecting it with lightblue or my app, it broken. But it can be rescanned. my questions:
1.对于ext_sleep,只需定义cfg_ext_sleep或需要将定时器设置为一周即可?我认为BLE堆栈可以疲弱它。如果需要设置其他人,请告知或有任何示例。对于广告数据,它将发送更多的字节,需要设置广告间隔inclrdly?
2.我尝试了Peoximity报告,它适用于基本DVB,但它始终在我的电路板上烧毁(使用EEPROM)。它是否被按钮定义或其他内容冲突?

please advise,
Thanks

RVA.
离线
最后一次露面:1 week 9 hours ago
职员
加入:2014-02-07 14:10
Hi Alex,

Hi Alex,

We will take a look at your questions and answer shortly.

Best regards,

RVA(对话)

RVA.
离线
最后一次露面:1 week 9 hours ago
职员
加入:2014-02-07 14:10
Hi Alex,

Hi Alex,

For extended sleep mode, the only setup to do is: #define CFG_EXT_SLEEP. The DA14580 will go to this mode automatically during the advertising interval. In order to put the DA14580 into sleep mode for some times, you have to stop advertising first. The EEPROM does not bring any conflict with DA14580. for more info, please see application note AN-B-023.

Best regards, RvA(Dialog)

亚历克斯罗
离线
最后一次露面:1 year 3 months ago
Expert
加入:2014-02-28 19:16
Thanks RvA.

Thanks RvA.

我也只设置了:#define cfg_ext_sleep。我希望DA14580在广告间隔期间自动扩展睡眠模式。但是当我进入连接时,该应用程序已断开连接。我没有停止广告,它由堆栈自动处理,或者我必须做到,以及如何?
是否需要设置最大和最小广告/连接间隔的适当参数?

Thanks,

亚历克斯罗
离线
最后一次露面:1 year 3 months ago
Expert
加入:2014-02-28 19:16
任何意见和建议?

任何意见和建议?

对于广告和连接,我假设BLE堆栈直接处理它而不需要用户设置其普遍存在的停止或开始,请符合。

look forward to hearing from you,
Thanks!

RVA.
离线
最后一次露面:1 week 9 hours ago
职员
加入:2014-02-07 14:10
Hi Alex,

Hi Alex,

对,那是正确的。这完全由BLE堆栈处理,不需要用户应用程序操作。

Best regards, RvA(Dialog)

亚历克斯罗
离线
最后一次露面:1 year 3 months ago
Expert
加入:2014-02-28 19:16
Hi RvA,

Hi RvA,

我做了同样的事情,再次尝试了。我可以用浅蓝色来找到我的设备,可以连接,但它将被打破一段时间并报告数据Slate ...
My adv inteval and con_interval not be changed as below:
1. ADV_DATA_TAG_LEN = 28
scan_resp_data_tag_len = 10.

2. in app.h, in local address type
#define app_adv_int_min 1100;
#define APP_ADV_INT_MAX 1100;
3.在app_template_project.c中,在function app_configuration_func()中
cmd-> con_intv_min = 8;
cmd-> con_intv_max = 16;
cmd->con_superv_to = 100;

please help to verify if those parameters wrong?

Thanks,

亚历克斯罗
离线
最后一次露面:1 year 3 months ago
Expert
加入:2014-02-28 19:16
我改变了con_intv_min

我改变了con_intv_minand _max, but can't fix it. The app still reported disconnected data slate, the peripheral disconnected....
Sometimes the connction broken soon after connected, sometimes can get into the sevice for a while (10-20s) then disconnected. Is there conflict when sleep? please advise.

Thanks,

RVA.
离线
最后一次露面:1 week 9 hours ago
职员
加入:2014-02-07 14:10
Hi Alex,

Hi Alex,

Are you using one of our DVKs? Can you also check what is the RSSI value with Light Blue?

I will check on the parameters.

Best regards,

RVA.(Dialog)

亚历克斯罗
离线
最后一次露面:1 year 3 months ago
Expert
加入:2014-02-28 19:16
Hi RvA,

Hi RvA,
是的,我使用da14580evkt-b,078_30_b。
The RSSI is about 50 showed with Light Blue. For avertising, it's ok and always be scanned by Light Blue. But sometimes can't br cpnnected and sometimes not. When connected, it can lasted about 10-20seconds for maximium. scanning.
I used the same EVK to run Prximity Reporr, it works well.
顺便说一下,我使用了可以携带TP中断连接的日期更新的BLE定时器?

Thanks,

亚历克斯罗
离线
最后一次露面:1 year 3 months ago
Expert
加入:2014-02-28 19:16
any idea?

any idea?

RVA.
离线
最后一次露面:1 week 9 hours ago
职员
加入:2014-02-07 14:10
Hi Alex,

Hi Alex,

I will get back to you as soon as possible on this one after I have consulted with the applications team. Thanks and best regards,

RVA.(Dialog)

RVA.
离线
最后一次露面:1 week 9 hours ago
职员
加入:2014-02-07 14:10
Hi Alex,

Hi Alex,

which project are you using?
如果您将项目用完框中,它应该工作。如果您更改数据长度和扫描响应长度,则必须也必须填写这两个结构。
this is done in different files according to the project used.
设置连接间隔将ot over。这是从中央设置的。为了从外围设备中具有锥度间隔,外围设备必须首先向中央发送参数更新请求。

Best regards,

RVA.(Dialog)

亚历克斯罗
离线
最后一次露面:1 year 3 months ago
Expert
加入:2014-02-28 19:16
Thanks RvA,

Thanks RvA,
The project I used is fh_project_template.uvproj, sample128. The SDK vertion is 3.2.0.1.
I changed the app_adv_data_len to 0, and app_scnrsp_data_length stays at 9 (orginal) in file app_template_proj.h . please advise and that is what you said to fill in the 2 structure?
设置连接间隔,请更具体地说。无论我修改什么,它似乎都不会解决问题。另请告诉我如何将参数更新发送到Central!
我审查并遵循了Proximity Reporter_FH。使用浅蓝色,eporter_FH运行良好,但我的代码始终通过连接后的外设断开连接。浅蓝色报道了外围的断开连接。坏事是调试不适用于睡眠模式。i使用读取和通知的数据更新的特征。删除通知和删除app_ timer_set后,它也无法解决问题。

Thanks.

托马堡
离线
最后一次露面:3 years 4 months ago
加入:2016-01-13 14:46
亲爱的Joaquin,

亲爱的Joaquin,

我想知道如果你有任何其他的想法,我have defined extended sleep mode in my version of the ble_app_peripheral demo in sdk5.0.3 and while I can see the advertising data being updated I still can't connect to the device and get a GATT error from my ble scanner every time I try.

Best wishes,

托马斯

mt_dialog.
离线
最后一次露面:2个月3天前
职员
加入:2015-06-08 11:34
Hi thomasburton,

Hi thomasburton,

您是否尝试使用不同的BLE Android应用程序连接?当设备不在睡眠模式时,您是否能够与中心连接?我不能看到为什么无法与BLE_Example项目连接的任何原因,因为它应该能够连接,除非设备宣布了一个小时期然后摊位(当系统启动时,设备不会下降在睡眠模式下,莫迪亚特利,但等待几秒钟)。因此,如果令人醒着,那么设备就是广告,所以你可以跟踪它,但是在2秒之后,它不再那儿了,所以你不能发出连接。您可以通过Smart Scippets查看此功能,或者您可以在手机上刷新扫描屏幕并检查设备是否仍然存在(某些应用程序即使不存在)。雷竞技安卓下载无法唤醒的原因可能是您的低功耗时钟,所有参考设计和示例都具有XTAL32,如果您处于降压模式,并且没有XTAL,则应选择RCX。除了上面的检查外,如果您在非连接模式下广告(已更改App_ble_Peripheral)并检查App_On_Conention函数是否触发。

谢谢mt_dialog.

托马堡
离线
最后一次露面:3 years 4 months ago
加入:2016-01-13 14:46
Hi MT_dialog,

Hi MT_dialog,

感谢你的回复。我返回App_ble_Peripheral演示,刚刚将其设置为Extended_sleep,并且工作正常,最终将设备唤醒以连接到连接到I2C总线错误。谢谢你的帮助,

托马斯

主题锁定