完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
你好,
我们有蓝牙广告的问题。序言中,我们使用蓝牙的单核(CM0+),并使用处理事件的CysBLyReStasePopFistCalk回退()来注册APPHOST的回调函数。正如本讨论中所建议的,在“马克斯数”的BLE连接时间之后,BLE连接停止工作,我们修改了CythBuryHalf.It.c文件,以便在某些事件期间调用回调。 只要没有设备连接,蓝牙就可以成功地启动广告、超时、重启等等。然而,在第一次断开后的第一次连接之后,一旦广告超时,它就不能重新启动。我们可以确认这是一个问题与设备进入深度睡眠而蓝牙广告发行以来没有发生时,我们把它进入睡眠状态而不是。我们的低功耗代码如下: (;) { 如果(!)CythySypMyCM0ISLoWPOWER() { cy_syspm_enterlowpowermode(); } cy_en_ble_bless_state_t blessstate = cy_ble_stackgetblessstate(); 如果(blessstate = = cy_ble_bless_state_active | | blessstate = = cy_ble_bless_state_eco_stable) { cy_en_syspm_status_t apiresult = cy_syspm_sleep(cy_syspm_wait_for_interrupt); } 其他的 { cy_en_syspm_status_t apiresult = cy_syspm_deepsleep(cy_syspm_wait_for_interrupt); } } 我们想知道问题是什么?同时,调试和深睡眠压力测试功能的最佳方式是什么?在调试模式下,上述问题不发生因设备不进入深度睡眠会在正常的程序。谢谢您. 以上来自于百度翻译 以下为原文 Hi there, We are having issues with bluetooth advertisement. To preface, we are using single core (cm0+) for Bluetooth, and have registered a callback function for the AppHost using Cy_BLE_RegisterAppHostCallBack() which Processes Events. As suggested in this discussion, Ble connection stops working after 'Max num. of ble connections' times , we have modified the cy_ble_hal_int.c file so that the callback is called during certain events. Bluetooth can start advertisement, time out, restart, and so on successfully as long as no device has ever been connected. However, after the first connection proceeded by the first disconnection, once advertising times out it fails to restart again. We can confirm it as an issue with the device entering deep sleep while bluetooth is advertising since the issue doesn't occur when we put it into sleep mode instead. Our low-power code is as follows: for(;;) { if(!Cy_SysPm_Cm0IsLowPower()) { Cy_SysPm_EnterLowPowerMode(); } cy_en_ble_bless_state_t bleSsState = Cy_BLE_StackGetBleSsState(); if(bleSsState == CY_BLE_BLESS_STATE_ACTIVE || bleSsState == CY_BLE_BLESS_STATE_ECO_STABLE) { cy_en_syspm_status_t apiResult = Cy_SysPm_Sleep(CY_SYSPM_WAIT_FOR_INTERRUPT); } else { cy_en_syspm_status_t apiResult = Cy_SysPm_DeepSleep(CY_SYSPM_WAIT_FOR_INTERRUPT); } } We are wondering what is the problem? Also, what is the best way to debug and stress test functionalities with deep sleep? In debugger mode, the described problem does not occur because the device does not enter deep sleep as it would during regular programming. Thank you. |
|
相关推荐
4个回答
|
|
史提夫,
你用同样的项目你已经从其他岗位做测试? 我只是修改了项目与你提供的代码和它似乎正确的行为。我相信startadvertisement仍然通过开关机?? 在所附的项目看一看,让我知道你所做的事有什么不同。我是不是能够用更新的cy_ble_hal_int观察问题。C文件(我在其他线程提供)。 当做, Meenakshi Sundaram R 深睡眠模式 91.6 K 以上来自于百度翻译 以下为原文 Steve, Are you doing the test with the same project you had from the other post? I just modified the project with the code you provided and it seem to behave properly. I believe the StartAdvertisement is still through switch press?? Take a look at the attached project and let me know if you are doing anything different. I was not able to observe the issue with the updated cy_ble_hal_int.c file (I provided in the other thread). Regards, Meenakshi Sundaram R
|
|
|
|
斯图尔特233 发表于 2018-8-30 15:32 你好, 从那时起,我们改变了广告,因此如果没有连接远程设备,设备总是处于发现模式。我已经附上了我们目前正在测试的项目,如果你正在观察同样的问题,你能告诉我们吗?谢谢您。 深度睡眠模式 12.1兆字节 以上来自于百度翻译 以下为原文 Hi msur, We have changed advertising since then so that the device is always in discovery mode if a remote device is not connected. I've attached the project that we are currently testing, could you let us know if you are observing the same issues? Thank you.
|
|
|
|
斯图尔特233 发表于 2018-8-30 15:32 你好, 我们仍然在经历同样的问题。你能让我们知道如果你观察同一问题时,得到的机会吗?谢谢您。 以上来自于百度翻译 以下为原文 Hi msur, We are still experiencing the same issue. Could you let us know if you are observing the same issue when getting the chance? Thank you. |
|
|
|
如果有人正在经历和观察同一个问题,请让我们知道,我们可以一起工作来解决这个问题。谢谢您。
以上来自于百度翻译 以下为原文 If anyone is experiencing and observing the same issue, please let us know and we can work together to figure out the issue. Thank you. |
|
|
|
只有小组成员才能发言,加入小组>>
752个成员聚集在这个小组
加入小组2069 浏览 1 评论
1826 浏览 1 评论
3639 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1761 浏览 6 评论
1512 浏览 1 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
508浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
358浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
410浏览 2评论
357浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
855浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-23 13:42 , Processed in 0.875261 second(s), Total 85, Slave 68 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号