Cypress技术论坛
直播中

沈雨露

7年用户 210经验值
私信 关注
[问答]

20736睡眠模式输入低功耗查询回调被连续调用

你好,
我面临着实现睡眠模式的挑战。
在我们的代码中,LPM被初始化,低功耗查询回调也被注册。
问题是低功耗查询回调被连续调用,芯片组DOUNSOT似乎正在进入休眠模式。
基于低功耗查询回呼值,预计睡眠时间为1秒。
给定场景的附加源文件。跟踪转储
0:24:41-创建()
00∶24:41—1
00∶24:41—0018
0:24:41-0203000
0:24:41-636F6F6B705F6C706D
0:24:41-0205000 012A
00∶24:41—0003
00∶24:41—0118
0:24:41-0D
00∶24:41-0D00
0:24:41-02010503030118020A04
0:24:41-0A09636F6F6B705F6C706D
0:24:41跟踪解码错误-找不到第314行
属性字节
0:24:41句柄:0002
00:24:41烫发:0002
00∶24:41伦,Max Len:0005, 0005
0:24:41 UUID:2803
属性字节
0:24:41句柄:0003
00:24:41烫发:0000
00∶24:41伦,Max Len:0009, 0009
0:24:41:UAID:2A00
属性字节
0:24:41句柄:0004
00:24:41烫发:0002
00∶24:41伦,Max Len:0005, 0005
0:24:41 UUID:2803
属性字节
0:24:41句柄:0005
00:24:41烫发:0000
00∶24:41伦,Max Len:0002, 0002
0:24:41 UUID:2A01
属性字节
0:24:41句柄:0006
00:24:41烫发:0002
00∶24:41伦,Max Len:0002, 0002
0:24:41 UUID:2800
属性字节
0:24:41关贸总协定数据库转储完成
0:24:41 BDY-ADDR[5:2]=20 73 6A 11
0:24:41 BDY-ADDR [1:0]=00 00
0:24:41 GPIO 0001(11)
0:24:41 GPIOIWP:OFF=00
0:24:41电池电量:0/100
0:24:42-LPM 0
0:24:42-LPM 0
0:24:42-LPM 0
0:24:42-LPM 0
0:24:42-LPM 0
0:24:42-LPM 0
0:24:42-LPM 0
0:24:42-LPM 0
0:24:42-LPM 0
0:24:42-LPM 0
0:24:42-LPM 0
0:24:42-LPM 0
0:24:42-LPM 0
0:24:42-LPM 0
0:24:42-LPM 0
0:24:42-LPM 0
0:24:42-LPM 0
0:24:42-LPM 0
0:24:42-LPM 0
0:24:42-LPM 0
0:24:42-LPM 0
0:24:42-LPM 0
0:24:42-LPM 0
0:24:42-LPM 0
0:24:42-LPM 0
0:24:42-LPM 0
0:24:42-LPM 0
CoppLLPM.dB.H.Zip
1.3 K
CoppLLPM.D.C.Zip
1.8 K
CoppLLPM.C.Zip
4.6 K

以上来自于百度翻译


     以下为原文
  Hello,
I am facing challenge in achieving Sleep Mode.
In our code, LPM is initialized and low power query call-back is also register.
Issue is lowpowerquery call back is continously called and chipset doensot seems to be entering SLEEP mode.

It is expected to sleep for 1second, based on low power query call back return value.

Attached source file for given scenario. and trace dump
00:24:41 - create()
00:24:41 - 1.00
00:24:41 - 0018
00:24:41 - 020300002a
00:24:41 - 636f6f6b705f6c706d
00:24:41 - 020500012a
00:24:41 - 0003
00:24:41 - 0118
00:24:41 - 0d
00:24:41 - 0d00
00:24:41 - 02010503030118020a04
00:24:41 - 0a09636f6f6b705f6c706d
00:24:41 Trace Decoding Error - Could not find line number 314
00:24:41 Attribute bytes
00:24:41 Handle: 0002
00:24:41 Perm : 0002
00:24:41 Len, Max Len : 0005, 0005
00:24:41 UUID : 2803
00:24:41 Attribute bytes
00:24:41 Handle: 0003
00:24:41 Perm : 0000
00:24:41 Len, Max Len : 0009, 0009
00:24:41 UUID : 2A00
00:24:41 Attribute bytes
00:24:41 Handle: 0004
00:24:41 Perm : 0002
00:24:41 Len, Max Len : 0005, 0005
00:24:41 UUID : 2803
00:24:41 Attribute bytes
00:24:41 Handle: 0005
00:24:41 Perm : 0000
00:24:41 Len, Max Len : 0002, 0002
00:24:41 UUID : 2A01
00:24:41 Attribute bytes
00:24:41 Handle: 0006
00:24:41 Perm : 0002
00:24:41 Len, Max Len : 0002, 0002
00:24:41 UUID : 2800
00:24:41 Attribute bytes
00:24:41 Gatt DB Dump complete
00:24:41 bd_addr[5:2] = 20 73 6A 11
00:24:41 bd_addr[1:0] = 00 00
00:24:41 GPIO 0001 (11)
00:24:41 GPIO_WP:OFF= 00
00:24:41 Battery level: 0/100
00:24:42 - LPM 0
00:24:42 - LPM 0
00:24:42 - LPM 0
00:24:42 - LPM 0
00:24:42 - LPM 0
00:24:42 - LPM 0
00:24:42 - LPM 0
00:24:42 - LPM 0
00:24:42 - LPM 0
00:24:42 - LPM 0
00:24:42 - LPM 0
00:24:42 - LPM 0
00:24:42 - LPM 0
00:24:42 - LPM 0
00:24:42 - LPM 0
00:24:42 - LPM 0
00:24:42 - LPM 0
00:24:42 - LPM 0
00:24:42 - LPM 0
00:24:42 - LPM 0
00:24:42 - LPM 0
00:24:42 - LPM 0
00:24:42 - LPM 0
00:24:42 - LPM 0
00:24:42 - LPM 0
00:24:42 - LPM 0
00:24:42 - LPM 0


回帖(3)

贾虎世

2018-10-8 10:18:26
使用模块测试代码吗?如果是,你会想做水晶预热修复。您可能希望将非零值设置为更精细的定时器,例如50。
或者你能在你的应用程序代码中的第248行返回0而不是1000?
我还建议你使用诸如WijdEnStand之类的示例应用程序建立的编码来开发你的睡眠/深度睡眠。我会避免
WORD蓝牙设计师。

以上来自于百度翻译


     以下为原文
  Are you using a module to test your code? If yes, you will want to do the crystal warm up fix. And you may want to set a non zero value to your finer timer, such as 50.
 
Or can you return 0 instead of 1000 at line 248 in your app code?
 
I also suggest that you develop your sleep/deep_sleep using established coding from sample apps like wiced_sense. I will avoid
the wiced bluetooth designer.
举报

贾虎世

2018-10-8 10:28:37
从Wice感测代码的第796行,它拼写出如何进入休眠模式。

以上来自于百度翻译


     以下为原文
  From line 796 of the wiced sense code, it spelt out how to enter sleep mode.
举报

沈雨露

2018-10-8 10:36:25
引用: 广州洋钒 发表于 2018-10-3 13:47
使用模块测试代码吗?如果是,你会想做水晶预热修复。您可能希望将非零值设置为更精细的定时器,例如50。
或者你能在你的应用程序代码中的第248行返回0而不是1000?
我还建议你使用诸如WijdEnStand之类的示例应用程序建立的编码来开发你的睡眠/深度睡眠。我会避免

问题是,返回值应该是从美国东海岸线248。
任何低于3.5msec是拒绝和芯片没有进入睡眠。
因此返回1000000秒1秒睡眠。

以上来自于百度翻译


     以下为原文
  Issue is the return value should be in terms of usec at line 248.
Anything less than 3.5msec is rejected and chip doesnot enter sleep.
 
So return 1000000 for 1 sec Sleep.
举报

更多回帖

发帖
×
20
完善资料,
赚取积分