⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads athttps://www.dialog-seminile.com/support.。我们将在未来几天修复错误/优化搜索和标记。
14个帖子/ 0新
最后一篇
GAK.
Offline
最后一次露面:1年7个月前
加入:2018-10-01 11:18
Sleep Mode

嗨达团队,

As I Modified the Sleep Mode Example code "ble_app_sleepmod" like as below, by using toggling a Button (SW3).

1)默认睡眠应关闭,(BLE设备应在广告模式中)
2)按SW3启用睡眠模式(Pro EVKT上的按钮)
3)通过SW3使用唤醒定时器唤醒BLE核心(唤醒BLE设备应在广告模式中)。

第一次这一步骤工作正常。
Current behavior : I am trying to pressing SW3 continuously(next 2nd and every), But after the 2nd step , WKUP_QUADEC_Handler is called before pressing SW3.

Expected behavior: BLE core going to sleep or wake up only after pressing SW3 .

Kindly find the code and give your suggestion regrading this ASAP.

Note:Pro DA14580 EVKT-P_VB with SDK5.0.4

设备:
PM_DIALOG.
Offline
最后一次露面:5 days 37 min ago
职员“title=
加入:2018-02-08 11:03
嗨gak,

嗨gak,

你能澄清你的意思是“接下来的2nd和每一个”?如果我可以理解正确地摇来摇去m what you mention, your device be default start advertising (step 1), and if the button is pressed, stops advertising and it goes into sleep mode (step 2). Both step 1 and step 2 are fully functional, is that correct? But if you are pressing continuously the button in the step 2, the device enters the sleep mode but the WKUP controller is triggered? Could you please provide me the configurations in step 2 and 3? Something is triggering the wake the controller up and the DA1580 wakes up.

谢谢,PM_DIALOG.

GAK.
Offline
最后一次露面:1年7个月前
加入:2018-10-01 11:18
嗨gak,

大家好,

your device be default start advertising (step 1), and if the button is pressed, stops advertising and it goes into sleep mode (step 2). Both step 1 and step 2 are fully functional, is that correct? But if you are pressing continuously the button in the step 2, the device enters the sleep mode but the WKUP controller is triggered?>>>>>

对,就是这样 。
请找到附加的配置。
Pls provide you support ASAP.

附件:
PM_DIALOG.
Offline
最后一次露面:5 days 37 min ago
职员“title=
加入:2018-02-08 11:03
嗨gak,

嗨gak,

中断和唤醒GPIO中断的时,也出现了问题,因此您的应用程序代码返回到STEP2。让我先问你一件事。在user_app_adv_start()中,为什么仍然使用app_easy_timer()计时器?计时器到期后,将触发ADV_DATA_UPDATE_TIMER_CB()。我不知道这是你的整个项目,还是在SDK的BLE_APP_SLEEMODE示例中,当ADV_DATA_UPDATE_TIMER_CB()将停止广告时。我正在尝试测试您的代码并为您创建一个简短的演示。我会尽快回复你。WKUP和GPIO中断都应该高效,正确吗?

谢谢,PM_DIALOG.

GAK.
Offline
最后一次露面:1年7个月前
加入:2018-10-01 11:18
大家好,

大家好,

Kindly find the following inline replay,

你为什么还在使用app_easy_timer()计时器?在计时器到期时,adv_data_update_timer_cb()将被触发<<<<<我只是遵循ever da给出的例子“ble_app_sleepmode”项目的sdk 5.0.4。

I am not aware if this is your whole project,<<<<<<<<<<<<<< I want to control the DA14580 entering Sleep and wake Up by interrupts .

WKUP和GPIO中断都应该高效,正确吗?<<<<<<<<我正在使用SW3来生成中断。所以,它的正确(按SW3)

请尽快提供您的支持。

Thanks

PM_DIALOG.
Offline
最后一次露面:5 days 37 min ago
职员“title=
加入:2018-02-08 11:03
嗨gak,

嗨gak,

I created a short dame code demonstrating how to use the SW3 in order to stop advertising and then wake up. I use only the wake-up controller and not the IRQ, because if you are using any of the sleep modes the IRQ will not be detected. Please find attached the configurations of the wake-up controller. The wkup_flag should be stored into the retention RAM in order to retain the value when going to sleep. Except from the configurations of the wake-up controller you should do the following modifications in the ble_app_sleepmode example of the SDK:

  • 将wkup_flag初始化为false inser_app_init()
  • 在user_app_adv_start()中删除app_easy_timer()并调用app_button_enable();

All the other should be as in default ble_app_sleepmode example of the SDK.

谢谢,PM_DIALOG.

GAK.
Offline
最后一次露面:1年7个月前
加入:2018-10-01 11:18
大家好,

大家好,
Thanks for the Demo code.
But what is our real expectation is we should use the GPIO IRQ for enter the DA14580 to Sleep .

So can you please give a example for GPIO act as IRQ at BLE

PM_DIALOG.
Offline
最后一次露面:5 days 37 min ago
职员“title=
加入:2018-02-08 11:03
嗨gak,

嗨gak,

如果在广告间隔之间使用扩展睡眠模式,则只能通过唤醒控制器检测中断。是否有任何特定的原因您想要使用IRQ而不是唤醒控制器?

谢谢,PM_DIALOG.

GAK.
Offline
最后一次露面:1年7个月前
加入:2018-10-01 11:18
大家好,

大家好,
我试图使用IRQ将DA14580放入睡眠状态。
And Not for wake up .

预期流动:

1)默认睡眠应关闭,(BLE设备应在广告模式中)
2)按SW3(Pro EVKT上的按钮)启用睡眠模式)===========>通过使用IRQ
3)wake up the BLE core by using wake-up timer through SW3(after wake up BLE Device should be in advertising mode) ===========> by using wake up controller

谢谢,

PM_DIALOG.
Offline
最后一次露面:5 days 37 min ago
职员“title=
加入:2018-02-08 11:03
嗨gak,

嗨gak,

为延迟道歉。您是否有任何具体的理由使用IRQ步骤#2?设备在连接间隔之间进入睡眠模式,因此您可能会错过中断。你为什么不用唤醒控制器实施它,因为我建议你?

谢谢,PM_DIALOG.

GAK.
Offline
最后一次露面:1年7个月前
加入:2018-10-01 11:18
大家好,

大家好,

Thanks for your重播。

We are using DA14580 "ble_app_peripheral“我们产品中的项目(sensor related product which is used in Helath care domine

所以我们正在刨合并这睡觉mode“ble_app_sleepmode"“项目到当前workingble_app_peripheral“ 项目。

因为这,我们should not change any current工作流程“BLE_APP_PERITERWAL”项目和我们的产品SPCIFICIECIED也是如此。

Ourplatform/product一种lready having一种用DA14580连接销钉through SPI ( only for FW flashing),UART (only RX and TX for data transfer)and GPIO (P0_1) Pin of DA14580.

This is a芯片产品系统所以我们无法改变我们产品的任何施舍。

和我们的EXPECTATIONis减少系统力量of our product .For this we are planing to put theDA14580睡眠while断开DA14580by User(Central BLE)

Kindly provied you suport on this ASAP.

注意:我们在yousside上植入了这一点。但是still we are struggling一种nd不是考虑到当前的(I ) reduction in good maner(不是nanoAmps)。但在睡眠模式项目中,我们可以看到电流减少(λ)。

是有可能的share any demo of Sleep mode in "ble_app_peripheral" project

If是的,它very help为我们现在

谢谢,

PM_DIALOG.
Offline
最后一次露面:5 days 37 min ago
职员“title=
加入:2018-02-08 11:03
嗨gak,

嗨gak,

您能否试图为我提供更多关于你最后一个问题的澄清?您在BLE-APP_PERIALLALAL示例中使用睡眠模式是什么?如果您想在广告或连接间隔之间输入睡眠模式,则可以在yours_app_adv_start中延长睡眠的情况下,使用Arch_set_Deep_sleep()在exer_app_adv_start中的延长休眠时,因为它在ble_app_sleepmode示例中实现SDK。此外,您应该在user_config.h标题文件中更改app_default_sleep_mode配置。

谢谢,PM_DIALOG.

GAK.
Offline
最后一次露面:1年7个月前
加入:2018-10-01 11:18
大家好,

大家好,

我们的终极目标是减少d thesensor product当前的(一世)。

In our entire product,DA14580具有1个泵电流。所以我们想要optimize当前的of我们的产品通过进入da14580到“延长睡眠”模式。

您在BLE-APP_PERIALLALAL示例中使用睡眠模式是什么?>>>>its mean,implementing一种DA14580.睡觉功能“ble-app_peripheral" example.

您应该在user_config.h标题文件中更改app_default_sleep_mode配置。>>>这才不是use for our雷电竞官网登录。By默认,da睡觉应该off

DA14580.应该in Sleep while DA14580 Disconnecting from User App. This is our requirement & we have used the "extended sleep" mode.

PM_DIALOG.
Offline
最后一次露面:5 days 37 min ago
职员“title=
加入:2018-02-08 11:03
嗨gak,

嗨gak,

When you disconnect the DA14580 from a peer device, the user_app_disconnect() will be triggered. So, you will have to configure the DA14580 into the extended sleep mode inside this function.

谢谢,PM_DIALOG.