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\u sleep,只定义CFG\u ext\u sleep是可以的,还是需要设置计时器来启动它?我以为那堆废纸能使它变弱。如果需要设置其他,请建议或有任何例子。对于广告数据,它会发送更多的字节,需要设置广告间隔吗?
2我试过peoximity report,它在基本的DVB上工作,但在烧到我的主板上时总是坏掉(使用eeprom)。是按钮定义冲突还是其他冲突?
please advise,
Thanks

Hi Alex,
We will take a look at your questions and answer shortly.
Best regards,
RvA(对话框)
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)
Thanks RvA.
我也只设置了:#define CFGŠu EXTŠu SLEEP。我想DA14580去延长睡眠模式自动广告期间的间隔。但当我连接时,应用程序断开了。我没有停止广告,这是自动处理堆栈或我必须这样做,如何?
是否需要设置适当的最大和最小广告/连接间隔参数?
Thanks,
有什么意见和建议吗?
对于广告和连接,我假设ble堆栈直接处理它,不需要用户设置它的广告停止或启动,请确认。
look forward to hearing from you,
Thanks!
Hi Alex,
是的,没错。所有这些都由BLE堆栈处理,不需要用户应用程序操作。
Best regards, RvA(Dialog)
Hi RvA,
我也这么做了,再试了一次。我可以用浅蓝色找到我的设备,可以连接,但它会被打破了一段时间,并报告了数据板。。。
My adv inteval and con_interval not be changed as below:
1高级数据标签长度=28
扫描响应数据标签长度=10
2. in app.h, in local address type
#定义APP\u ADV\u INT\u MIN 1100;
#define APP_ADV_INT_MAX 1100;
三。在app\u template\u project.c中,在函数app\u configuration\u func()中
cmd->con\u intv\u min=8;
cmd->con\u intv\u max=16;
cmd->con_superv_to = 100;
please help to verify if those parameters wrong?
Thanks,
我改了密码and _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,
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,
维生素A(Dialog)
Hi RvA,
是的,我用的是DA14580EVKT-B,078\U 30\U 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.
顺便说一句,我使用了ble定时器进行日期更新,这可以影响到tp断开连接?
Thanks,
any idea?
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,
维生素A(Dialog)
Hi Alex,
which project are you using?
如果你使用开箱即用的项目,它应该工作。如果您更改了数据长度和扫描响应长度,您也必须填写这两个结构。
this is done in different files according to the project used.
设置连接间隔没有帮助。这是从中央设置的。为了与外设有一个连接间隔,外设必须首先向中央发送一个参数更新请求。
Best regards,
维生素A(Dialog)
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?
设置连接间隔,请具体告知。不管我修改与否,似乎都不能解决问题。也让我知道如何发送参数更新到中心!
我复习了一下,跟着他。使用浅蓝色,reporter\u fh工作正常,但每次连接后,我的代码总是被外设断开。浅蓝色报告外围设备断开。糟糕的是,在睡眠模式下调试不起作用。i使用Read和Notify更新数据的特征。删除Notify和remove app\utimer\u set后,它也无法修复该问题。
Thanks.
亲爱的华金,
我想知道如果你有任何其他的想法,我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,
托马斯
Hi thomasburton,
你是否尝试过连接其他android应用程序?当设备未处于睡眠模式时,您是否能够连接到中央处理器?我看不出为什么不能连接一个bleè示例项目,因为它的广告你应该可以连接,除非设备广告了一小段时间,然后暂停(当系统启动时,设备不会立即进入睡眠模式,而是等待几秒钟)。因此,也许设备是广告,而醒着,所以你可以跟踪它,但它不在那里后,2秒的延迟,所以你不能发出一个连接。您可以通过智能代码片段检查这一点,也可以刷新手机上的扫描屏幕,检查设备是否仍在(有些应用程序保留设备,即使它们不存在)。无法唤醒的原因可能是选择了低功耗时钟,所有的参考设计和示例都有XTAL32如果您处于降压模式,没有XTAL,您应该选择RCX。除上述情况外,请检查您的广告是否处于不可连接模式(您已更改应用程序的外围设备),并检查是否触发了应用程序的连接功能。雷竞技安卓下载
谢谢你的对话
Hi MT_dialog,
谢谢你的回复。我又回到app-ble-u外围设备的演示,把它设为长时间睡眠,效果很好,最终发现设备在唤醒连接时出现了一个i2c总线错误。谢谢你的帮助,
托马斯