DA14531吞吐量服务

⚠️
嗨,...感谢您来论坛。令人兴奋的消息!我们现在正在迁至我们的新论坛平台,将提供更好的功能,并包含在主对话框网站中。所有帖子和帐户都已迁移。我们现在只接受新论坛上的流量 - 请发布任何新线程https://www.dialog-seminile.com/support.。我们将在未来几天修复错误/优化搜索和标记。
9个帖子/ 0个新
最后一篇
kombatdavid123
离线
最后一次露面:1年2个月前
加入:2020-03-11 10:12
DA14531吞吐量服务

你好,

我目前正在设计吞吐量服务,用于测试DA1431-USB KIT和智能手机之间的吞吐量与应用程序连接BLE设备。我正在寻找与自定义服务已经实现的项目,所以我选择了ble_app_periial项目在SDK示例项目。我在搜索功能,并试图实现吞吐量的想法,但不知道如何做。有人能帮我实现吗?我添加了基本概念的文件,我发现在不同的网站。

基本概念是通过生成一个循环数据数组并将其发送到主设备来实现吞吐量服务。关贸总协定的通知(未确认)和指示(确认)均应执行。我想发送数据的固定数量的数据(不是在按钮保持像pdf添加到主题)。

谢谢。

关键词:
附件:
设备:
PM_DIALOG.
离线
最后一次露面:17小时21分钟前
职员
加入:2018-02-08 11:03
嗨Kombatdavid123,

嗨Kombatdavid123,

请检查user_svc1_ctrl_wr_ind_handler()。当从对等设备写入控制点特性时,将触发此处理程序。如果写入的值是0x01,并且您已启用通知,则设置计时器,因此每个app_peripheral_ctrl_timer_delay app_adcval1_timer_cb_handler()正在触发。这是用于向对等设备发送通知的函数。在您的情况下,您应该更改此功能以便在手机中发送通知。

谢谢,PM_DIALOG.

kombatdavid123
离线
最后一次露面:1年2个月前
加入:2020-03-11 10:12
谢谢,现在当我有这个时

谢谢,现在当我有这个功能时:

void user_svc1_ctrl_wr_ind_handler(ke_msg_id_t const msgs,struct custs1_val_write_ind const * param,ke_task_id_t const dest_id,ke_task_id_t const src_id){uint8_t val = 0;memcpy(&val,&param->值[0],param->长度);if(val!= custs1_cp_adc_val1_disable){timer_used = app_easy_timer(app_peripheral_ctrl_timer_delay,app_adcval1_timer_cb_handler);} else {if(timer_used!= easy_timer_invalid_timer){app_easy_timer_cancel(timer_used);timer_used = easy_timer_invalid_timer;}}}

它基本上是在我编写一个值时是一项函数(struct susts1_val_write_ind const * param)在自定义服务中的特性,每个函数都被调用app_peripheral_ctrl_timer_delay.值对吧?在每一个app_peripheral_ctrl_timer_delay.通过,一个函数:

void app_adcval1_timer_cb_handler() {struct custs1_val_ntf_ind_req *req = KE_MSG_ALLOC_DYN(CUSTS1_VAL_NTF_REQ, prf_get_task_from_id(TASK_ID_CUSTS1), TASK_APP, custs1_val_ntf_ind_req, DEF_SVC1_ADC_VAL_1_CHAR_LEN);// ADC值被采样静态uint16_t sample __SECTION_ZERO("retention_mem_area0");Sample = (Sample <= 0xffff) ?(sample + 1): 0;/ /请求- > conhdl = app_env - > conhdl;申请- >处理= SVC1_IDX_ADC_VAL_1_VAL;申请- >长度= DEF_SVC1_ADC_VAL_1_CHAR_LEN;申请- >通知= true;顺利进行,memcpy(请求- >价值DEF_SVC1_ADC_VAL_1_CHAR_LEN);ke_msg_send(要求的); if (ke_state_get(TASK_APP) == APP_CONNECTED) { // Set it once again until Stop command is received in Control Characteristic timer_used = app_easy_timer(APP_PERIPHERAL_CTRL_TIMER_DELAY, app_adcval1_timer_cb_handler); } }

被称为负责发送数据的,在这种情况下是可变的样本。所以我假设这个变量的长度直接影响要发送的数据包的数量和大小(用于用固定数量的数据测试,例如500分组)。我错了吗 ?

PS:我成功收到了固定数量的数据包所有值0xffff,并且基于平均接收器I每7,5 ms(连接间隔)接收数据包。但是,有没有办法最大化每次连接事件发送的数据包数量?

PM_DIALOG.
离线
最后一次露面:17小时21分钟前
职员
加入:2018-02-08 11:03
嗨Kombatdavid123,

嗨Kombatdavid123,

正如您在附带的代码片段中看到的,示例变量被复制到req->值中。如果检查DEF_SVC1_ADC_VAL_1_CHAR_LEN,您将看到这个特征有2个字节的长度。要做到这一点,你应该改变长度。

谢谢,PM_DIALOG.

kombatdavid123
离线
最后一次露面:1年2个月前
加入:2020-03-11 10:12
好的,我有一半的成功

好的,我通过从DA14531发送固定的通知数量,但是使用MTU = 23的最大大小。当我通过设置来尝试更高的值时.MTU = 247,并且Messege Length是247,在Android应用程序上,我得到了Gatt Conn超时错误(0x08)。任何人都可以帮助我正确设置数据长度扩展,以最大化数据包长度吗?这就是我的处理程序功能代码,当它正常工作时:

void app_adcval1_timer_cb_handler() {struct custs1_val_ntf_ind_req *req = KE_MSG_ALLOC_DYN(CUSTS1_VAL_NTF_REQ, prf_get_task_from_id(TASK_ID_CUSTS1), TASK_APP, custs1_val_ntf_ind_req, DEF_SVC1_ADC_VAL_1_CHAR_LEN);// ADC值被采样静态uint32_t sample __SECTION_ZERO("retention_mem_area0");示例= 0 xffffffff;/ /请求- > conhdl = app_env - > conhdl;申请- >处理= SVC1_IDX_ADC_VAL_1_VAL;申请- >长度= 23;申请- >通知= true;顺利进行,memcpy(请求- >价值DEF_SVC1_ADC_VAL_1_CHAR_LEN);ke_msg_send(要求的);问+ +; if(cnt > 100) { ke_state_set(TASK_APP, APP_DISABLED); } if (ke_state_get(TASK_APP) == APP_CONNECTED) { // Set it once again until Stop command is received in Control Characteristic timer_used = app_easy_timer(1 , app_adcval1_timer_cb_handler); } }
static const struct gapm_configuration user_gapm_conf = {///设备角色:中央,外设,观察者,广播公司或所有角色。(@see枚举gap_role)。rolle = gap_role_peripheral,/// maximal mtu。如果使用遗留配对,则应设置为23,如果使用安全连接,则为65,如果应用程序,则更多如果应用程序.max_mtu = 23,

下面是应用程序日志的输出:

I 08:16:40.073 MTU改为:23 I 08:16:40.928更新的连接参数(间隔:7.5ms,延迟:0,超时:1250ms)v 08:17:01.656写入特性2D86686A-53DC-25B3-0C4A-F0E10C8DEE20 D 08:17:01.656 GATT.WRITECHARACTIC(2D86686A-53DC-25B3-0C4A-F0E10C8DEE20,VALUE = 0x01)I 08:17:01.679数据写入2D86686A-53DC-25B3-0C4A-F0E10C8DEE20,值:( 0x)01 A 08:17:01.679“(0x)01”发送I 08:17:02.679从15005991-B131-3396-014C-664C9867B917,值:(0x)FF-FF-FF-FF-00-01通知-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:02.679“(0x)FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:02.685 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:02.685 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:02.692 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:02.692 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:02.699 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:02.699 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:02.714 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:02.714 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:02.722 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:02.722 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:02.729 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:02.729 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:02.744 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:02.744 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:02.753 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:02.753 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:02.769 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:02.769 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:02.774 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:02.774 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:02.782 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:02.782 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:02.789 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:02.789 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:02.805 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:02.806 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:02.812 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:02.812 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:02.820 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:02.820 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:02.836 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:02.836 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:02.842 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:02.842 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:02.852 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:02.852 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:02.867 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:02.867 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:02.872 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:02.872 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:02.879 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:02.879 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:02.900 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:02.900 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:02.901 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:02.901 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:02.910 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:02.910 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:02.923 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:02.923 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:02.930 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:02.930 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:02.938 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:02.938 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:02.953 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:02.953 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:02.961 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:02.961 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:02.968 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:02.968 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:02.984 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:02.984 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:02.992 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:02.992 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:02.999 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:02.999 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:03.014 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:03.014 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:03.022 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:03.022 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:03.029 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:03.029 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:03.044 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:03.044 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:03.051 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:03.051 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:03.059 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:03.059 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:03.075 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:03.075 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:03.082 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:03.082 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:03.089 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:03.089 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:03.104 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:03.104 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:03.112 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:03.112 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:03.119 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:03.119 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:03.134 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:03.134 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:03.142 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:03.142 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:03.148 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:03.148 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:03.164 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:03.165 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:03.173 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:03.173 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:03.179 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:03.179 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:03.198 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:03.198 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:03.203 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:03.203 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:03.210 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:03.210 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:03.226 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:03.226 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:03.238 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:03.238 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:03.239 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:03.239 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:03.254 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:03.254 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:03.264 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:03.264 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:03.275 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:03.275 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:03.287 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:03.287 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:03.292 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:03.292 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:03.300 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:03.300 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:03.322 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:03.322 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:03.322 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:03.322 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:03.329 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:03.330 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:03.344 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:03.344 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:03.351 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:03.351 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:03.359 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:03.359 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:03.374 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:03.374 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:03.383 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:03.383 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:03.391 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:03.391 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:03.405 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:03.405 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:03.412 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:03.412 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:03.419 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:03.419 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:03.442 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:03.442 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:03.443 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:03.443 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:03.451 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:03.451 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:03.467 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:03.467 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:03.475 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:03.475 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:03.480 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:03.480 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:03.496 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:03.496 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:03.503 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:03.503 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:03.509 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:03.509 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:03.526 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:03.526 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:03.532 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:03.533 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:03.539 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:03.539 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:03.555 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:03.555 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:03.561 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:03.561 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:03.569 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:03.569 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:03.592 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:03.593 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:03.600 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:03.600 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:03.601 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:03.601 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:03.614 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:03.614 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:03.622 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:03.622 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:03.634 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:03.634 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:03.645 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:03.645 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:03.653 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:03.653 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:03.660 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:03.660 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received I 08:17:03.674 Notification received from 15005991-b131-3396-014c-664c9867b917, value: (0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18 A 08:17:03.674 "(0x) FF-FF-FF-FF-00-01-00-16-1C-0A-05-FF-CD-AB-00-00-03-03-0A-18" received

但是现在只改变。max_mtu = 247(基于文档它的最大值为DA14531)和改变DEF_SVC1_ADC_VAL_1_CHAR_LEN = 247我得到这个错误:

编辑:max def_svc1_adc_val_1_char_len值没有错误我得到230 b,这就是对话框中的内容:

0x07FC061A 4770 BX lr 340: ASSERT_WARNING(error == RESET_AFTER_SUOTA_UPDATE);341: #endif 342: //触发SW reset 0x07FC061C 4906 LDR r1,[pc,#24];@0x07FC0638 0x07FC061E 4288 CMP r0,r1 0x07FC0620 D000 BEQ 0x07FC0624 0x07FC0622 BE00 BKPT 0x00 343: tmp = GetWord16(SYS_CTRL_REG);344: tmp = (tmp & ~REMAP_ADR0) | 0;// Map ROM at address 0 0x07FC0624 2105 MOVS r1,#0x05 0x07FC0626 0709 LSLS r1,r1,#28 0x07FC0628 8A48 LDRH r0,[r1,#0x12] 345: tmp |= SW_RESET;

PM_DIALOG.
离线
最后一次露面:17小时21分钟前
职员
加入:2018-02-08 11:03
嗨Kombatdavid123,

嗨Kombatdavid123,

我们已经发布了一个类似的DA14531支持网页的SW例子。你能看一下这个例子吗?为了方便,请点击下载链接:DA14585-DA14531动态DLE和L2CAP报文大小优化

这个例子和我们所有的SW例子一样,不包含SDD,所以你应该在运行它之前把它和SDK6.0.12链接起来。你可以在上面找到说明软件示例使用Python链接脚本设置文档。

- 此示例示例旨在展示:

- 如何执行对等功能请求确定对等DLE功能

-如何请求DLE和利用更大的数据包来提高吞吐量

- L2CAP 100%数据包利用的基本原理

- 非DLE设备的数据包优化

请参阅README文件以获取DA14585-DA14531-dynamic_dle_l2cap_packet_size_optimization \ project_environment路径的更多信息。

谢谢,PM_DIALOG.

kombatdavid123
离线
最后一次露面:1年2个月前
加入:2020-03-11 10:12
每当我试图连接

每当我尝试连接到设备时,它会突然停止对话框,我在keil上得到它:

#if(!production_test)//触发器如果重置原因是reset_after_suota_update assert_warning以外的(错误== reset_after_suota_update);#Endif //触发SW RESET TMP = GETWORD16(SYS_CTRL_REG);TMP =(TMP&〜REMAP_ADR0)|0;//地图0 tmp | = sw_reset;setword16(sys_ctrl_reg,tmp);}

我在Android应用程序中看到它作为对话框,并且在尝试连接时发生。

JK_DIALOG.
离线
最后一次露面:3个月1周前
职员
加入:2016-08-22 23:07
我发现了

我发现了Android问题的根本原因。该代码将于下周初在网站上更新。作为快速修复,您只需注释掉user_on_update_params_rejected中的这行代码。项目的流程将在下周更新的项目中改变,但这应该允许项目运行,只是不涉及参数更新请求的角落案例,以实现全吞吐量优化。

if(status == LL_ERR_LMP_COLLISION) {
/ / app_easy_gap_param_update_start (tput_env.connection_idx);
}别的{

PM_DIALOG.
离线
最后一次露面:17小时21分钟前
职员
加入:2018-02-08 11:03
嗨Kombatdavid123,

嗨Kombatdavid123,

我想让你知道DA14585-DA14531动态DLE和L2CAP报文大小优化SW示例是浮动的!

谢谢,PM_DIALOG.