hi, we have exact hardware(PCB) as that of proximity reference design and I could burn the proximity smart tag firmware and able to communicate with it. My setup is fine. I use SmartTags android app to test it. I am trying to modify the firmware and connect with the app. Initially it works but after some time it goes for sleep and it never shows up in the android app. Please let us know the solution for this. Even the example firmware without modifying the code also am seeing this behavior. Is there anyway to reconfigure or avoid the sleep mode..etc. Help needed, thank you.
Device:
Hi MADHUSF,
默认情况下,在一段时间内,近距离演示将停止广告,并在按下广告的广告时进行深度睡眠。这不是一个问题,而且是节省电量的设置。
You don't have to totally disable sleeping, just remove the timout settings on advertising.
Go to user_config.h
set .adv_scenario=DEF_ADV_FOREVER,
在user_default_hnd_conf下
and see if it works as you want
嗨qinjiny,谢谢你reply. I checked the code.
此设置已在下面的user_config.h中。如果缺少其他设置,请告诉我。此外,请告诉我在哪个代码中进行关注此按钮功能。
----------------------- user_config.h-----------------
.....
static const struct default_handlers_configuration user_default_hnd_conf = {
//Configure the advertise operation used by the default handlers
//可能的值:
// - DEF_ADV_FOREVER
// - def_adv_with_timeout.
。adv_scenario = DEF_ADV_FOREVER,
//在def_add_with_timeout的情况下配置通告期间。
//以定时器单元(10ms)测量。使用ms_to_timerUnits宏转换
//从毫秒(ms)到定时器单位。
。advertise_period = MS_TO_TIMERUNITS(10000),
//Configure the security start operation of the default handlers
//if the security is enabled (CFG_APP_SECURITY)
。security_request_scenario = DEF_SEC_REQ_ON_CONNECT
};
。。
-----------------------------------
Hi MADHUSF,
外部唤醒机制正在设置app_advertise_complete()user_proxr.c文件中的回调。但是,如果方案设置为def_add_forever,则系统不应该达到此点。如果这个系统仍然睡觉,从来没有醒来,那么还有一些其他潜在问题。请尝试以下步骤以isloate在硬件/软件中的问题。
1.尝试在DEV套件上运行一个清晰的盒子Prox_reporter项目,该项目与Adv方案设置为Forever。如果您没有看到任何问题,则在自定义硬件上运行相同的图像,并查看它是否正常。如果这里有问题,那么问题可能在自定义硬件中。
2.此外,使用您正在使用的图像进行编程驱动程序套件,该图像导致此睡眠问题。在SmartSnippets工具箱中使用电源分布器工具,请在永久睡眠阶段检查读数。如果系统完全睡眠或崩溃,则阅读读数可以提供一些洞察力。
3. You can also debug this program on the Dev Kit from the Keil MDK and see if it is reaching any of the breakpoints or watchdog reset etc., which will confirm a crash.
请让我们知道您在这些测试中的观察结果是什么。
Also, what are all the changes that you have made in the default project. This might give some information about what might be causing this issue.
最好的,
LC_Dialog
hi LC_Dialog, thanks for the reply . I tried and the response per below.
1.尝试在DEV套件上运行一个清晰的盒子Prox_reporter项目,该项目与Adv方案设置为Forever。如果您没有看到任何问题,则在自定义硬件上运行相同的图像,并查看它是否正常。如果这里有问题,那么问题可能在自定义硬件中。
ANS:是的,没有发现问题及其工作。实际上,该应用程序在Bluetooth会话/对象中锁定了背景。所以,必须重新启动或杀死应用程序以再次扫描并连接。
2.此外,使用您正在使用的图像进行编程驱动程序套件,该图像导致此睡眠问题。在SmartSnippets工具箱中使用电源分布器工具,请在永久睡眠阶段检查读数。如果系统完全睡眠或崩溃,则阅读读数可以提供一些洞察力。
ANS:我不确定如何使用电力分析器,但使用它:始终它显示相同的电流,没有变化。请建议设置。
3. You can also debug this program on the Dev Kit from the Keil MDK and see if it is reaching any of the breakpoints or watchdog reset etc., which will confirm a crash.
Ans: Not tried, I guess the sleep issue for now is resolved.
Question: But, I need to know how do we wakeup from extended sleep or deep sleep without any GPIO trigger? Please suggest. As the current power draw based on mutlimeter measure is showing about 600 uA current usage with this proximity project. Please help us on reducing the power and optimum values.
谢谢,
Madhusf.
嗨madhusf,
Did you track how the issue was resolved. Please post on this thread so that other users can also take advantage of it.
Regarding your question.,
只需配置睡眠模式即可延长睡眠即可从延长睡眠中唤醒。它将在内部配置定时器并以间隔唤醒以执行任何BLE事件或任何用户定义的事件(您需要在特定的回调点添加以处理任何数据)。如果您在应用程序中没有执行任何数据处理,那么您的睡眠电流应比您现在所在体验更小。我建议您对任何当前泄漏等进行审查设计,以确保外部外设没有绘制的额外电流。
如果您希望我们快速查看您的设计,请将您的原理图与电感器(L1)的数据表一起发送和16MHz晶体(Y1)。如果您想安全地分享此项,我可以向您发送安全的服务器链接以上载文件。
最好的,
LC_Dialog
Dear LC_Dialog, Please send me the secure link so that I will share you the design, scope of requirements and sleep requirements. Thank you.
嗨madhusf,
使用以下链接将文件上传到服务器。请注意,您只能在此上传。
https://diasemi.egnyte.com/ul/Jrgzqaa9X6
最好的,
LC_Dialog
嗨madhusf,
从图表,我已经注意到,你是你sing a Module in your design. The module design guidelines can be different from our design guidelines. The basic checks that we do on customer designs has already been done on the Module and rest of the components should be desinged into the system as per the Module vendor's recommendations which is something that the vendor of the module can help with.
我建议首先研究软件应用程序,看看设备是否真的进入睡眠状态。由于您看到的当前消耗靠近主动电流,这可能主要是由于软件设计中的一些问题,或者如果修改了主循环,请将处理器保持活动状态。请参阅支持网站上的文档,了解如何利用SmartSnippets工具箱等的工具,您可以检查程序执行期间发生的情况。
最好的,
LC_Dialog