DA14531吞吐量服务

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

你好,

我目前正在努力设计吞吐量的吞吐量,以便在DA1431-USB套件和智能手机与应用程序连接到与BLE设备连接的智能手机之间的吞吐量。我正在寻找已经实现的自定义服务的项目,所以我在SDK示例项目中选择了BLE_APP_PERIPERIAL项目。我正在寻找功能并试图实现吞吐量的想法,但不知道如何做到这一点。有人可以帮助我实现吗?我在不同站点上找到的文件中添加了基本概念。

基本概念是通过生成圆形数据数组并将其发送到主设备来实现吞吐量服务。应该实施两个通知(未经承认)和指示(确认)GATT操作。我想向固定AMONUT发送数据(在添加到主题中的PDF中,不像BUTON保持)。

谢谢。

关键词:
附件:
设备:
PM_Dialog
离线
最后看到:8小时30分钟前
工作人员
加入: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
离线
最后看到:2个月前1年
加入: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) ?(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,并基于接收器平均我收到数据包每7,5毫秒(连接间隔)。但是,是否有办法最大限度地增加每个连接事件发送的数据包数量?

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

嗨kombatdavid123,

正如您在附加的代码片段中看到的那样,将样本变量复制到REQ->值中。如果检查def_svc1_adc_val_1_char_len,则会看到此特征有2个字节长度。为此,您应该更改长度。

谢谢,PM_Dialog

kombatdavid123
离线
最后看到:2个月前1年
加入: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”);sample = 0xffffffff;/ /请求- > conhdl = app_env - > conhdl;申请- >处理= SVC1_IDX_ADC_VAL_1_VAL;req->长度= 23;申请- >通知= true;顺利进行,memcpy(请求- >价值DEF_SVC1_ADC_VAL_1_CHAR_LEN);ke_msg_send(要求的);CNT ++; 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的max值)和更改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
离线
最后看到:8小时30分钟前
工作人员
加入: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
离线
最后看到:2个月前1年
加入: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小时30分钟前
工作人员
加入:2018-02-08 11:03
嗨kombatdavid123,

嗨kombatdavid123,

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

谢谢,PM_Dialog