雷竞技电竞平台Dialog Semiconductor客户支持- app_easy_timer https://support.dialog-semiconductor.com/resource-keywords/appeasytimer 在定义新计时器时出现的问题 https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-software/problem-while-defining-new-timer < div class = "字段field-name-taxonomy-forums field-type-taxonomy-term-reference field-label-above”> < div class = "字段标签" >论坛:,< / div > < div class = "字段条目" > < div class =”field-item甚至“rel = " sioc: has_container " > < a href = " /论坛/ dialog-smartbond-bluetooth-low-energy - % E2 % 80% 93 -软件”“=“sioc:容器sioc:论坛”属性= " rdfs: label skos: prefLabel”数据类型= " " >对话框Smartbond蓝牙低能量-软件< / > < / div > < / div > < / div > < div class =”字段field-name-body field-type-text-with-summary field-label-hidden”> < div class = "字段条目" > < div class =”field-item甚至“财产=“内容:编码”> < p >亲爱的对话框支持团队,< / p > < p > < / p > < p >对不起,如果我的问题有一点基础,我对这个领域还很陌生。

我试图修改SDK中的UART示例,以便我能够每200 msc接收日期。这是我所做的:

 #include <#include "arch_system.h" #include " user_user_setup .h" #include "uart_common.h" #include "uart_utils.h" #include "gpio.h" #include "app_easy_timer.h" #include "app_easy_timer.h" #include "rwip_config.h" #include "gap.h" static void receive_timer_cb();timer_hnd receive_timer_used;Int main(void) {system_init();//设置UART2引脚和配置uart_peripher_init (UART2);//执行UART2 receive blocking example receive_timer_used = app_easy_timer(200,receive_timer_cb); printf_string(UART2, "\n\n\n\r* UART examples finished successfully *\n\r"); } static void receive_timer_cb() { uart_receive_blocking_example(UART2); receive_timer_used = app_easy_timer(200, receive_timer_cb); }

However, when I try to compile this piece of code, I get the following error:

 .\..\..\..\..\..\sdk\platform\core_modules\rwip\api\rwip_config.h(464): error: #20: identifier "BLE_NB_PROFILES" is undefined TASK_PRF_MAX = (TASK_RFU_5 + BLE_NB_PROFILES), ..\src\main.c(40): warning: #1295-D: Deprecated declaration receive_timer_cb - give arg types static void receive_timer_cb();

Other examples in the SDK use the same method to define and use a timer, but there is not such a problem while compiling. That being said, would you please give me some instructions about this error and how to remove it?

Device: 
Tue, 30 june 2020 14:09:39 +0000 hamiddhosseini 366710年https://support.dialog-semiconductor.com https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-software/problem-while-defining-new-timer#comments
请教app_easy_timer在周期性唤醒休眠时的正常用法 https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-software/%E8%AF%B7%E6%95%99appeasytimer%E5%9C%A8%E5%91%A8%E6%9C%9F%E6%80%A7%E5%94%A4%E9%86%92%E4%BC%91%E7%9C%A0%E6%97%B6%E7%9A%84%E6%AD%A3%E5%B8%B8%E7%94%A8%E6%B3%95 < div class = "字段field-name-taxonomy-forums field-type-taxonomy-term-reference field-label-above”> < div class = "字段标签" >论坛:,< / div > < div class = "字段条目" > < div class =”field-item甚至“rel = " sioc: has_container " > < a href = " /论坛/ dialog-smartbond-bluetooth-low-energy - % E2 % 80% 93 -软件”“=“sioc:容器sioc:论坛”属性= " rdfs: label skos: prefLabel”数据类型= " " >对话框Smartbond蓝牙低能量-软件< / > < / div > < / div > < / div > < div class =”字段field-name-body field-type-text-with-summary field-label-hidden”> < div class = "字段条目" > < div class =”field-item甚至“财产=“内容:编码”> < p >你好,对话框:< br / >需求:用SPI接口外接传感器,需要定时每隔20年代采样一次。程序工作在扩展休眠模式,我使用的是app_easy_timer()接口周期性的定时唤醒。现在需要先测试周期性唤醒功能 。< br / >问题描述:在祝福向外开始广播时调用app_easy_timer(2000年,timeout_cb),超时后,进入定时超时回调timeout_cb处理,下面是timeout_cb大概的实现< br / >空白timeout_cb (void) < br / >{…
if(xx_timerid != 0)
app_easy_timer_cancel(xx_timerid); / />
app_easy_timer_cancel(xx_timerid);/ /先取消< / p > < p > xx_timerid = app_easy_timer(2000年,timeout_cb); / /再启动< br / >} < / p > < p >问题:(1)第一次唤醒后,回调函数中会调用取消定时器easy_timer_cancel(),然后功耗就升高了,大约在500 + ua。这是什么原因,这段代码有没有问题吗?是不是定时器使用方法不正确导致?< / p > < p >(2)另一个问题是,以上的实现好像只能唤醒1 - 2次,后面无法正常唤醒,所以想知道这个定时函数的使用技巧是什么,有哪些注意的地方,< br / >比如,在timeout_cb内是否还能调用app_easy_timer吗?< / p > < / div > < / div > < / div > < div class =”字段field-name-field-forum-keywords field-type-taxonomy-term-reference field-label-above”> < div class = "字段标签" >关键词:,< / div > < div class = "字段条目" > < div class =”field-item甚至“> < a href = " / resource-keywords / appeasytimer”“=“skos:概念”属性=“rdfs: label skos: prefLabel”数据类型= " " > app_easy_timer < / > < / div > < / div > < / div > < div class =”字段field-name-field-device field-type-taxonomy-term-reference field-label-above”> < div class = "字段标签" >设备:,< / div > < div class = "字段条目" > < div class =”field-item甚至“> < a href = " / forum-post-device / da14580”“=“skos:概念”属性=“rdfs: label skos: prefLabel”数据类型= " " > DA14580 < / > < / div > < / div > < / div >
Thu, 09 Nov 2017 01:29:58 +0000 理查德。 111509年https://support.dialog-semiconductor.com https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-software/%E8%AF%B7%E6%95%99appeasytimer%E5%9C%A8%E5%91%A8%E6%9C%9F%E6%80%A7%E5%94%A4%E9%86%92%E4%BC%91%E7%9C%A0%E6%97%B6%E7%9A%84%E6%AD%A3%E5%B8%B8%E7%94%A8%E6%B3%95#comments
我们可以用app_easy_timer替换Timer0和Timer2吗? https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-software/can-we-replace-timer0-and-timer2
论坛:
app\u easy\u timer 星期三,2017年10月25日11:26:22 +0000 前腿帕特尔 106178年https://support.dialog-semiconductor.com https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-software/can-we-replace-timer0-and-timer2#comments App_easy_timer_cancel检查是否过期 https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-software/appeasytimercancel-checking-if-expired < div class = "字段field-name-taxonomy-forums field-type-taxonomy-term-reference field-label-above”> < div class = "字段标签" >论坛:,< / div > < div class = "字段条目" > < div class =”field-item甚至“rel = " sioc: has_container " > < a href = " /论坛/ dialog-smartbond-bluetooth-low-energy - % E2 % 80% 93 -软件”“=“sioc:容器sioc:论坛”属性= " rdfs: label skos: prefLabel”数据类型= " " >对话框Smartbond蓝牙低能量-软件< / > < / div > < / div > < / div > < div class =”字段field-name-body field-type-text-with-summary field-label-hidden”> < div class = "字段条目" > < div class =”field-item甚至“财产=“内容:编码”> < p >你好,< / p > < p >我在app_on_connection启动一个计时器。这个计时器在给定的时间后终止连接。如果用户在计时器结束前断开连接,则应取消计时器。这在用户在计时器结束之前断开连接的情况下是有效的,但它在计时器处理程序终止连接时给我一个错误。
据我所知,这是因为当计时器过期时,传递给app_easy_timer_cancel的timer_id无效。然而,我认为添加一个检查像if(conn_timeout != EASY_TIMER_INVALID_TIMER){..就能解决这个问题。< / p > < p > 1)。有人能告诉我为什么app_easy_timer_cancel仍然执行,即使我之前检查有效性?这是在app_on_disconnect上执行的代码片段。< / p > < p > printf_string(“用户断开连接! \ n \ r”);< br / >如果(conn_timeout ! = EASY_TIMER_INVALID_TIMER) {< br / > / / < br / >取消计时器printf_string(“conn_timeout取消了由于用户断开\ n \ r”);< br / > app_easy_timer_cancel (conn_timeout); < br / >} < / p > < p > 2)。 I used the watch tool from Keil to keep an eye on the value of conn_timeout. It is 0x00 initially and stays this value if I connect and disconnect before the timer elapses. However when the timer does elapse and the callback of conn_timeout is executed, conn_timeout keeps the value 0x03. It stays at this value even if I proceed the software (after it gets stuck on ASSERT_WARNING(0) in void app_easy_timer_cancel(const timer_hnd timer_id)). Also connecting and disconnecting is still possible. Doing this ( quicker than the timer period) also does not make a change to the value 0x03.
What does this value mean? Isn't this value supposed to be reset to 0x00 when the timer elapses or when the timer is cancelled?

Kind regards,
Niek

Device: 
星期三,2017年7月19日19:38:13 +0000 Niekvdd 69370年https://support.dialog-semiconductor.com https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-software/appeasytimercancel-checking-if-expired#comments 关于app_easy_timer的问题 https://support.dialog-semiconductor.com/question-about-appeasytimer < div class = "字段field-name-taxonomy-forums field-type-taxonomy-term-reference field-label-above”> < div class = "字段标签" >论坛:,< / div > < div class = "字段条目" > < div class =”field-item甚至“rel = " sioc: has_container " > < a href = " /论坛/ dialog-smartbond-bluetooth-low-energy - % E2 % 80% 93 -软件”“=“sioc:容器sioc:论坛”属性= " rdfs: label skos: prefLabel”数据类型= " " >对话框Smartbond蓝牙低能量-软件< / > < / div > < / div > < / div > < div class =”字段field-name-body field-type-text-with-summary field-label-hidden”> < div class = "字段条目" > < div class =”field-item甚至“财产=“内容:编码”> < p >当使用app_easy_timer()调用返回一个函数,< br / >在程序的某个位置,我想检查Fn1的函数是否已执行。
如果它不执行,我将管道回调。< br / > (Fn1中添加一个标记的方法不适合我)< / p > < p >谢谢< / p > < / div > < / div > < / div > < div class =”字段field-name-field-forum-keywords field-type-taxonomy-term-reference field-label-above”> < div class = "字段标签" >关键词:,< / div > < div class = "字段条目" > < div class =”field-item甚至“> < a href = " / resource-keywords / appeasytimer”typeof = " skos:概念”属性= " rdfs: label skos: prefLabel”数据类型= " " > app_easy_timer < / > < / div > < / div > < / div > < div class =”字段field-name-field-device field-type-taxonomy-term-reference field-label-above”> < div class = "字段标签" >设备:,< / div > < div class = "字段条目" > < div class =”field-item甚至“> < a href = " / forum-post-device / da14580”typeof="skos:Concept" property="rdfs:label skos:prefLabel" datatype="">DA14580
.
2016年8月11日星期四10:54:57 +0000 RandyYu 4410年https://support.dialog-semiconductor.com https://support.dialog-semiconductor.com/question-about-appeasytimer#comments