This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

BLE connection create parameters and connection parameters questions

Dear support

I am developing a generic central application intended to connect any BLE devices which is connectable. So I need to figure out which parameters are needed and make the them configurable. In Central multilink sample, there are two sets of parameters shown below:

	struct bt_conn_le_create_param create_param = {
		.options = BT_CONN_LE_OPT_NONE,
		.interval = INIT_INTERVAL,
		.window = INIT_WINDOW,
		.interval_coded = 0,
		.window_coded = 0,
		.timeout = 0,
	};
	struct bt_le_conn_param conn_param = {
		.interval_min = CONN_INTERVAL,
		.interval_max = CONN_INTERVAL,
		.latency = CONN_LATENCY,
		.timeout = CONN_TIMEOUT,
	};

The first one is create_param, and second one is conn_param, I read some explanation about the conn_param, but never find anything on create_param, could someone explain to me please? is INIT_INTERVAL and INIT_WINDOW important to make connection? shall I make it changeable by user?

Thank you.

Ping

Parents
  • Hi, Abhijith

    Thank you for reply.

    So, about create parameters, I can ignore it and just use the default one?

    How about the connection parameters? there are 4 of them, probably I can make at least 3 of them user configurable? they are interval max, latency and timeout.

    I am trying to connect to different devices use an application based on central multilink sample, and found that some apple devices are able to be connected and then later the connection is terminated by the peripherals with reason code of 0x13, I wonder what is the reason for that, does change connection parameter help?

    Thank you for your help.

    Ping

     

Reply
  • Hi, Abhijith

    Thank you for reply.

    So, about create parameters, I can ignore it and just use the default one?

    How about the connection parameters? there are 4 of them, probably I can make at least 3 of them user configurable? they are interval max, latency and timeout.

    I am trying to connect to different devices use an application based on central multilink sample, and found that some apple devices are able to be connected and then later the connection is terminated by the peripherals with reason code of 0x13, I wonder what is the reason for that, does change connection parameter help?

    Thank you for your help.

    Ping

     

Children
No Data
Related