how to change the default 30s TGAP(conn_param_timeout) in f/w

⚠️
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.xmece.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 2 weeks ago
加入:2016-05-03 07:39
how to change the default 30s TGAP(conn_param_timeout) in f/w

Dear Dialogue support,

According to BLE core spec, "The Peripheral shall not send an L2CAP Connection Parameter Update Request command within TGAP(conn_param_timeout normally 30 seconds) of an L2CAP Connection Parameter Update Response being received. ".
It also states that " If a user wants to use a value less than 30 seconds, it has to be communicated to firmware by calling LsSetTgapConnParamTimeout with the appropriate value. See Bluetooth Core Specification Version 4.1 [Vol. 3] [15], Part C Section 9.3.9. "

In our application we try to reduce the default 30 seconds to a shorter value but I've searched everywhere but so far no clue on how to do that yet? Do you have idea how to do this to make DA14580 to use a shorter Tgap? Is LsSetTgapConnParamTimeout something to be provided optionally on iPhone/Android or on DA 14580 SDK? Seems I cannot find any information on this - even google gives very limited information.

Thanks for your help & best regards,
uta_lc

Device:
MT_dialog
Offline
Last seen:2 months 1 week ago
工作人员
加入:2015-06-08 11:34
Hi uta_lc,

Hi uta_lc,

Although i dont see anywhere in the BLE specification the LsSetTgapConnParamTimeout parameter or what you mention in your post regarding using a value less than 30 seconds, on the 580 there is no time restriction between successive parameter update requests. There is a 30 seconds timer that is used in order to timeout the operation if there is no reply from the master, but i dont see any restriction in sending additional connection parameter update in less than 30 seconds, as long as the previous update has successfully ended, for example i can increment my connection parameters via a timer elapsing every 10 seconds and sending a parameter update.

Thanks MT_dialog