DA14531吞吐量服务

⚠️
大家好. .谢谢你来到论坛。令人兴奋的消息!我们现在正在转移到新的论坛平台,它将提供更好的功能,包含在主对话网站中。所有岗位和账户都已迁移。我们现在只接受新论坛的流量-请在上面发布任何新帖子//www.xmece.com/support.我们将在未来几天修复bug /优化搜索和标记。
9个帖子/ 0个新
最后发表
kombatdavid123
离线
最后看到:1年2个月前
加入:2020-03-11十12
DA14531吞吐量服务

你好,

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

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

谢谢。

关键词:
附件:
设备:
PM_Dialog
离线
最后看到:8小时56分钟前
工作人员
加入:2018-02-08 11:03
嗨kombatdavid123,

嗨kombatdavid123,

请检查user_svc1_ctrl_wr_ind_handler()。当控制点特征从对等设备写入时,将触发此处理程序。如果写入的值是0x01,并且您启用了通知,那么将设置一个计时器,因此将触发app_adcval1_timer_cb_handler()中的每个APP_PERIPHERAL_CTRL_TIMER_DELAY。向对端设备发送通知功能。在您的情况下,您应该修改此功能,以便在手机上发送通知。

谢谢,PM_Dialog

kombatdavid123
离线
最后看到:1年2个月前
加入:2020-03-11十12
谢谢,现在当我有这个

谢谢,现在我有了这个函数

Void user_svc1_ctrl_wr_ind_handler(ke_msg_id_t const msgid, 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,参数[0]- >值,参数- >长度);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 custs1_val_write_ind const *param)以自定义服务为特征的函数称为everyAPP_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)?(样品+ 1):0;/ /请求- > conhdl = app_env - > conhdl;申请- >处理= SVC1_IDX_ADC_VAL_1_VAL;req-> length = 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,并基于接收器平均我收到数据包每7,5毫秒(连接间隔)。但是,是否有办法最大限度地增加每个连接事件发送的数据包数量?

PM_Dialog
离线
最后看到:8小时56分钟前
工作人员
加入:2018-02-08 11:03
嗨kombatdavid123,

嗨kombatdavid123,

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

谢谢,PM_Dialog

kombatdavid123
离线
最后看到:1年2个月前
加入:2020-03-11十12
好吧,我已经成功一半了

通过从DA14531发送固定数量的通知,我成功了一半,但MTU的最大大小为23。当我通过设置。mtu = 247尝试更高的值,消息长度是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 enum gap_role) .role = GAP_ROLE_PERIPHERAL, ///最大MTU。如果使用Legacy结对,则设置为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复位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;//地图ROM在地址0 0x07FC0624 2105 MOVS R1,#0x05 0x07FC0626 0709 LSLS R1,R1,#28 0x07FC0628 8A48 LDR R0,[R1,#0x12] 345:TMP | = SW_Reset;

PM_Dialog
离线
最后看到:8小时56分钟前
工作人员
加入:2018-02-08 11:03
嗨kombatdavid123,

嗨kombatdavid123,

我们发布了DA14531支持网页的类似SW示例。你能看一下这个例子吗?为方便起见,这是下载它的链接:DA14585-DA14531动态DLE和L2CAP数据包大小优化

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

-这个例子旨在说明:

-如何做一个peer特性请求,以确定peer DLE能力

- 如何请求DLE并利用较大的数据包来增强吞吐量

—L2CAP 100%报文利用率的基本原理

-对非DLE设备的数据包优化

更多信息请参考Readme文件,该文件位于da14585- da14551 -dynamic_dle_l2cap_packet_size_optimization\project_environment路径下。

谢谢,PM_Dialog

kombatdavid123
离线
最后看到:1年2个月前
加入:2020-03-11十12
每当我试图连接

每当我尝试连接到设备,它突然停止对话框,我得到这个keil:

如果重置原因不是RESET_AFTER_SUOTA_UPDATE,则触发断言ASSERT_WARNING(error == RESET_AFTER_SUOTA_UPDATE);#endif //触发SW reset tmp = GetWord16(SYS_CTRL_REG);tmp = (tmp & ~REMAP_ADR0) | 0;//映射ROM地址0 tmp |= SW_RESET;SetWord16 (SYS_CTRL_REG tmp);}

我看到它在android应用程序作为对话- tput,当试图连接它发生。

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
离线
最后看到:8小时56分钟前
工作人员
加入:2018-02-08 11:03
嗨kombatdavid123,

嗨kombatdavid123,

我想让你知道DA14585-DA14531动态DLE和L2CAP数据包大小优化SW例子更新了!

谢谢,PM_Dialog