5 posts / 0 new
Last post
zwang308
Offline
Last seen:4years 4 months ago
Master
加入:2014-07-02 14:15
ce_len_max/ce_len_min

Hi Dialog,

I notice there are two parameters(ce_len_max and ce_len_min) in gapm_start_connection_cmd structure. What's the function of these two parameters? What is the full name of CE.

Thanks.

Device:
MT_dialog
Offline
Last seen:1 month 3 weeks ago
工作人员
加入:2015-06-08 34
Hi zwang308,

Hi zwang308,

According to the BLE specification the minimum and maximum CE length parameters are informative parameters providing the controller with the expected minimum and maximum length of the Connection Events. The minimum parameter shall be less that or equal to the maximum length parameter.

Thanks MT_dialog

zwang308
Offline
Last seen:4years 4 months ago
Master
加入:2014-07-02 14:15
Hi Dialog,

Hi Dialog,

Thanks a lot for the information.

I am a little confused about that parameter. What's the appropriate value for CE length? Does it have some relationship with MTU size and connection interval?

E.g. I set MTU size to 67 and connection interval to 12ms. What should I set for max and min CE length?

Also, in what case should I change the max/min CE size?

Thanks a lot,

的产品

MT_dialog
Offline
Last seen:1 month 3 weeks ago
工作人员
加入:2015-06-08 34
Hi zwang308,

Hi zwang308,

The connection event length size is an optional parameter (the 580 always consider this parameter, android and linux doesn't as far as we know) in order for the controller to have a hint about the expected minimum and maximum length of the connection event. In other words lets say that we would like to avoid holding our radio very long and we want our connection events to be shorter, so we could handle that with those values. The values on the parameters depends on the application that you are implementing and how many data you are willing to sent over the link. For example if you set value x*0.625, every connection event will last x*0.625 ms if your peripheral wants to send data and the x*0.625 time has elapsed the central wont be listening.

Thanks MT_dialog

zwang308
Offline
Last seen:4years 4 months ago
Master
加入:2014-07-02 14:15
Hi MT_dialog,

Hi MT_dialog,

Thanks a lot for the information. It makes sense to me.

Thank you!

Topic locked