yabo国际娱乐对话半导体客户支持- SPS DA14681 https://support.dialog-semiconductor.com/resource-keywords/sps-da14681 在少量数据发送后SPS配置文件阻塞 https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-software/sps-profile-blocking-after-few-data < 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 >我SPS文件添加到小区送祝福例子当按下按钮时,TX属性的数据。我使用“sps_tx_data”函数发送数据。

连接BLE的android设备正确接收数据。但是在几次传输之后(不是固定的发送数,也不依赖于发送的字节数),就不再使用“sps_tx_data”函数发送数据了。函数“sps_tx_data”在发送数据之前返回,因为函数“get_tx_length”与0不同。

阻塞前的最后一次发送,tx done回调被调用并发送0字节。这是由"handle_event_sent"函数的错误引起的,"get_tx_lenght"函数返回错误,因为函数"generic_get_cmd"返回BLE_ERROR_NOT_FOUND。

我找到了一个临时的解决方案:在函数“sps_tx_data”中,我把对函数“set_tx_length”的调用移动到调用“send_tx_data”之前。

这似乎是时间问题,小姐你有线索的配置可能会导致这样的错误呢? < / 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 / sps-da14681”typeof = " skos:概念”属性= " rdfs: label skos: prefLabel”数据类型= " " > SPS DA14681 < / > < / 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 / da1468x” typeof="skos:Concept" property="rdfs:label skos:prefLabel" datatype="">DA1468x 星期一,17 july 2017 08:23:10 +0000 乔佛里COFFINEAU 67614年https://support.dialog-semiconductor.com https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-software/sps-profile-blocking-after-few-data#comments