how to intercpet LL_CONNECTION_UPDATE_REQ (issued from master) on slave device running DA14580

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.wsdof.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
2 posts / 0 new
Last post
uta_lc
Offline
Last seen:1 year 3 weeks ago
加入:2016-05-03 07:39
how to intercpet LL_CONNECTION_UPDATE_REQ (issued from master) on slave device running DA14580

Dear Dialogue support,

有一种固件跑步on slave device using DA14580 (sdk5.0.4) to intercept LL_CONNECTION_UPDATE_REQ - trigger a callback by modifying any source code provided in the SDK?

The reason is that we've found under certain circumstances iPhone or Android can issue unprompted LL_CONNECTION_UPDATE_REQ which disrupts the BLE link using unintended connection parameters. We hope to capture this and rectify that.

Can you please please kindly advise how to do it if possible?

Regards,
uta_lc

Device:
MT_dialog
Offline
Last seen:2 months 3 weeks ago
Staff
加入:2015-06-08 11:34
Hi uta_lc,

Hi uta_lc,

You should be able to get the update parameter indication by catching the GAPC_PARAM_UPDATED_IND, in the app_process_catch_rest_cb() but this indicates that the connection parameters have allready changed by the master. You cannot catch the message before the new parameters are applied to the connection. In the LL_CONNECTION_UPDATE_REQ message there is no negotiation between the master and the Slave, the Slave either accepts the new parameters or drops the link as soon as the the parameters are applied, there is no option for the peripheral to do something else. On the other hand this is possible on the master side, you will be able to catch the L2CAP request of the slave in order to decide if you are going to accept the parameters or not.

Thanks MT_dialog