雷竞技电竞平台Dialog半导体客户支持- BLE主机 https://support.dialog-semiconductor.com/resource-keywords/ble-host 中央锁在断开 https://support.dialog-semiconductor.com/central-locks-disconnect < 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 / > sps_host我们有困难的代码(project DA14580_DSPS_3.150.2___13_2_2015). what we're doing is adding some timers that run background tasks and that should survive disconnection. if we leave the code as is, when the disconnection event comes in, the function app_disconnect_func (file app_task.c) resets (see code snippet below) the system state and we never get events anymore:

app_reset_app(); // link loss (timer timeout) //reset higher layers

// Reset the environment **this is important because otherwise the profile att database will not be re-initiated**
memset(&app_env, 0, sizeof(app_env));

// Initialize next_prf_init value for first service to add in the database
app_env.next_prf_init = APP_PRF_LIST_START + 1;

if we comment this out the system crashes randomly (hard fault handler) at disconnection or reconnection.

is there any way to reset the app without killing other timers?
also, how tested is the connection/disconnection of the host code? we have the sensation that the same crash may occur also when resetting everything.

Keywords: 
Device: 
星期一,2016年5月23日17:50:46 +0000 pnndra 3445年https://support.dialog-semiconductor.com https://support.dialog-semiconductor.com/central-locks-disconnect#comments
广告数据名称中的空格 https://support.dialog-semiconductor.com/spaces-advertised-data-name < 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 / >我刚注意到我祝福主机截断如果数据包含空格,则发布数据。广告包可以不包含空格吗?如果有人能回答这个问题,我将不胜感激。我使用的是SDK3.0.10,但我也尝试了SDK5.0.2.1中的接近监视器,看到了同样的问题。< / 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 /空间”“=“skos:概念”属性=“rdfs: label skos: prefLabel”空间数据类型= " " > < / > < / div > < div class = " field-item古怪”> < a href = " / resource-keywords / advertised-data”“=“skos:概念”属性=“rdfs: label skos: prefLabel”数据类型= " " >广告数据< / > < / div > < div class =”field-item甚至“> < a href = " / resource-keywords / ble-host”“=“skos:概念”属性=“rdfs: label skos: prefLabel”数据类型= " " >祝福主机< / > < / div > < div class = " field-item古怪”> < a href = " / resource-keywords /扫描”“=“skos:概念”属性=“rdfs: label skos: prefLabel”数据类型= " " >扫描< / > < / div > < div class =”field-item甚至“> < a href = " / resource-keywords /距离”“=“skos:概念”属性=“rdfs: label skos: prefLabel”数据类型= " " >与< / > < / 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 > 星期一,2016年2月8日15:26:16 +0000 aley_i 2672年https://support.dialog-semiconductor.com https://support.dialog-semiconductor.com/spaces-advertised-data-name#comments