⚠️
嗨,...感谢您来论坛。令人兴奋的消息!我们现在正在迁至我们的新论坛平台,将提供更好的功能,并包含在主对话框网站中。所有帖子和帐户都已迁移。我们现在只接受新论坛上的流量 - 请发布任何新线程//www.wsdof.com/support。We’ll be fixing bugs / optimising the searching and tagging over the coming days.
14 posts / 0 new
Last post
GAK
离线
Last seen:1 year 7 months ago
Joined:2018-10-01 11:18
睡眠模式

Hi DA TEAM,

当我修改睡眠模式示例代码“BLE_APP_SLEEPMOD”如下如下,通过剪切按钮(SW3)。

1)By default Sleep should be off,(BLE Device should be in advertising mode)
2)enable the sleep mode by Pressing SW3(button on Pro EVKT)
3)wake up the BLE core by using wake-up timer through SW3(after wake up BLE Device should be in advertising mode).

第一次这个步骤工作好。
当前行为:我正在尝试持续按下SW3(接下来的第二个和每一个),但在第2步之后,在按SW3之前调用wkup_quadec_handler。

预期行为:BLE核心仅在按SW3后睡眠或醒来。

请找到代码并尽快给出您的建议。

注意:Pro DA14580 EVKT-P_VB具有SDK5.0.4

Device:
PM_Dialog
离线
Last seen:2 days 20 hours ago
Staff
Joined:2018-02-08 11:03
Hi GAK,

Hi GAK,

Could you please clarify what you mean with the “next 2n和每一个“?如果我能够从提到的正确了解,设备是默认启动广告(步骤1),如果按下该按钮,则停止广告,它进入睡眠模式(步骤2)。步骤1和步骤2都是完全功能的,是正确的吗?但是如果在步骤2中的按钮连续按下按钮,则设备进入睡眠模式,但触发WKUP控制器?您能否在步骤2和3中提供配置配置?有些东西正在触发唤醒控制器,并且da1580醒来。

谢谢, PM_Dialog

GAK
离线
Last seen:1 year 7 months ago
Joined:2018-10-01 11:18
Hi GAK,

Hi Team,

您的设备是默认启动广告(步骤1),如果按下该按钮,则停止广告,并进入睡眠模式(步骤2)。步骤1和步骤2都是完全功能的,是正确的吗?但是如果您在步骤2中的按钮连续按下按钮,则设备进入睡眠模式,但触发WKUP控制器?>>>>>

Yes ,Exactly .
Kindly find the attached configuration.
请尽快提供支持。

Attachment:
PM_Dialog
离线
Last seen:2 days 20 hours ago
Staff
Joined:2018-02-08 11:03
Hi GAK,

Hi GAK,

Something is getting wrong with the interrupts and when wakes up the GPIO interrupt is triggered as well, so your application code returns to step2. Let me ask you something first. In the user_app_adv_start(), why are you still using the app_easy_timer() timer? Upon the timer expiration the adv_data_update_timer_cb() will be triggered. I am not aware if this is your whole project, but in ble_app_sleemode example of the sdk, when the adv_data_update_timer_cb() the advertising is going to be stopped. I am trying to test you code and create a short demo for you. I will get back to you shortly. Both the WKUP and GPIO interrupts should be active low, correct?

谢谢, PM_Dialog

GAK
离线
Last seen:1 year 7 months ago
Joined:2018-10-01 11:18
HI Team,

HI Team,

请找到以下内联重播,

why are you still using the app_easy_timer() timer? Upon the timer expiration the adv_data_update_timer_cb() will be triggered<<<<< I just follow the what ever DA gives in Example "ble_app_sleepmode" Project of SDK 5.0.4.

我不知道这是你的整个项目,<<<<<<<<<<<<<<我想要控制DA14580进入睡眠并被中断唤醒。

Both the WKUP and GPIO interrupts should be active low, correct? <<<<<<<< I am using SW3 for generate an interrupts .So ,Its correct(pressing SW3 )

Kindly provide your support ASAP.

谢谢

PM_Dialog
离线
Last seen:2 days 20 hours ago
Staff
Joined:2018-02-08 11:03
Hi GAK,

Hi GAK,

我创建了一个简短的DAME代码,演示如何使用SW3来停止广告,然后唤醒。我只使用唤醒控制器而不是IRQ,因为如果您正在使用任何睡眠模式,则不会检测到IRQ。请附上唤醒控制器的配置。WKUP_FLAG应存储到保留RAM中,以便在睡眠时保留该值。除了唤醒控制器的配置外,您应该在SDK的BLE_APP_SLEEPMODE示例中执行以下修改:

  • Initialize the wkup_flag to false into the user_app_init()
  • In user_app_adv_start() remove the app_easy_timer() and call the app_button_enable();

所有其他都应与SDK的默认BLE_APP_SLEEPMODE示例一样。

谢谢, PM_Dialog

Attachment:
GAK
离线
Last seen:1 year 7 months ago
Joined:2018-10-01 11:18
Hi Team,

Hi Team,
谢谢你的演示代码。
但是我们的真正期望是什么,我们应该使用GPIO IRQ进入DA14580来睡眠。

所以请你给出GPIO的一个例子,因为它是伊克的GPIO

PM_Dialog
离线
Last seen:2 days 20 hours ago
Staff
Joined:2018-02-08 11:03
Hi GAK,

Hi GAK,

如果you are using extended sleep mode between the advertising intervals, you can only detect the interrupt through the wake up controller. Is there any specific reason you want to use the IRQ and not the wake up controller?

谢谢, PM_Dialog

GAK
离线
Last seen:1 year 7 months ago
Joined:2018-10-01 11:18
Hi Team,

Hi Team,
I am try to use a IRQ for put the DA14580 to SLEEP.
而不是醒来。

Expected flow:

1)By default Sleep should be off,(BLE Device should be in advertising mode)
2)enable the sleep mode by Pressing SW3(button on Pro EVKT)===========> by Using IRQ
3)通过SW3使用唤醒定时器唤醒BLE核心(唤醒BLE设备应在广告模式中)===========>通过使用唤醒控制器

谢谢,

PM_Dialog
离线
Last seen:2 days 20 hours ago
Staff
Joined:2018-02-08 11:03
Hi GAK,

Hi GAK,

Apologies for the delay. DO you have any specific reason to use the IRQ for step #2? The device enters the sleep mode between the connection intervals, so you might miss the interrupt. Why don’t you implement it with the wake-up controller as I suggested you?

谢谢, PM_Dialog

GAK
离线
Last seen:1 year 7 months ago
Joined:2018-10-01 11:18
Hi Team,

Hi Team,

谢谢你的replay.

我们使用DA14580“ble_app_peripheral." project in our product(传感器相关产品,用于Helath Care Comine)

So we are planing tomerge睡眠模式“ble_app_sleepmode”"project to current在职的"ble_app_peripheral." project.

Because of this, we不应该张e任何当前在职的flow的"ble_app_peripheral"project and our product spcifiation also.

我们的平台/产品已经拥有了apin connection with DA14580通过SPI(仅适用于FW闪烁),UART(仅用于数据传输的RX和TX)和DA14580的GPIO(P0_1)引脚。

这是一个System on Chip product。So we cannot change any schmatic of our product.

And our期待reducethe systemPower我们的产品。我们正在努力推动DA14580 sleep尽管Disconnectthe DA14580用户(中央BLE)

请尽快证实你的超声。

NOTE: we are implent this on ourside.but我们仍在挣扎notachive the当前(i)减少我好好师(不是纳米垃圾).but In Sleep mode project is we can able to see the current reduction(nAmps).

Is it possible ,kindly在“ble_app_peripheral”项目中共享睡眠模式的任何演示?

如果yes,It非常帮助for usNow

谢谢,

PM_Dialog
离线
Last seen:2 days 20 hours ago
Staff
Joined:2018-02-08 11:03
Hi GAK,

Hi GAK,

Could you please try to provide me more clarifications regarding your last question? What do you mean with the sleep mode in the ble-app_peripheral example? If you would like to enter the sleep mode between the advertising or connection intervals, you could use the either arch_set_deep_sleep() in case of deep sleep or arch_set_extended_sleep() in case of extended sleep in user_app_adv_start, as it is implemented in ble_app_sleepmode example of the SDK. Also, you should change the app_default_sleep_mode configuration in user_config.h header file.

谢谢, PM_Dialog

GAK
离线
Last seen:1 year 7 months ago
Joined:2018-10-01 11:18
Hi Team,

Hi Team,

我们的ultimate goal is to减少了传感器产品current(I).

在我们的整个产品中,DA14580 haveing 1mAmps current.So we want to优化thecurrentour productthrough enteringDA14580 to "Extended sleep"mode.

你是什​​么意思在BLE-App_Peripheral示例中使用睡眠模式?>>>>其平均值,实施一个da14580.sleepfeature to "ble-app_perizera.L“示例。

you should change the app_default_sleep_mode configuration in user_config.h header file.>>> thisdoes not用于我们的雷电竞官网登录。经过default, DAsleep要d be离开

DA14580在DA14580断开用户应用程序时应入住睡眠状态。这是我们的要求,我们使用了“延长睡眠”模式。

PM_Dialog
离线
Last seen:2 days 20 hours ago
Staff
Joined:2018-02-08 11:03
Hi GAK,

Hi GAK,

断开DA14580从对等设备的连接时,将触发USER_APP_DISCONNECT()。因此,您必须将DA14580配置为此功能内的扩展睡眠模式。

谢谢, PM_Dialog