Tool/software:
Hi,
When using CC2745 as a Peripheral and one Central device is connected and a second Central device repeatedly disconnects, will the ConnectionHandle increment by 1 from 0x0001 to 0xFFFE?
Kind regards,
Haruki
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software:
Hi,
When using CC2745 as a Peripheral and one Central device is connected and a second Central device repeatedly disconnects, will the ConnectionHandle increment by 1 from 0x0001 to 0xFFFE?
Kind regards,
Haruki
Hello Haruki-san,
Thank you for your patience.
From the Bluetooth Specification: "...on the Central, the handle for a CIS remains valid even after disconnection and, therefore, the Host can recreate a disconnected CIS at a later point in time using the same connection handle." (Page 1920).
If the Peripheral and Central devices have connected before, then the next connection will maintain the same connection handle unless the connection information is deleted. Then a new connection handle is created.
Let me know if you have any questions!
Thanks,
Isaac
Hello Mr,Isaac,
Thank you for your answer.
If the connection information is cleared immediately after a disconnect, and the second device repeatedly disconnects and connects, will the ConnectionHandle increment from 0x0001 to 0xFFFE, or will it continue to be assigned 0x0001, even though the connection information is deleted and a new ConnectionHandle is assigned?
Kind regards,
Haruki
Hello Haruki-san,
I made a mistake in my previous response. The connection information is deleted by the stack after every disconnection.
If two centrals are connected to a peripheral, they will be assigned a connection handle 0x0000 and 0x0001. If connection handle 0x0000 is disconnected and reconnected, the connection will be assigned a connection handle of 0x0000. The same is true with 0x0001.
So, for your original question, no, the connection handle will not continue to increment from 0x0000 to 0xFFFE.
And for your recent question, the information is deleted in the stack after disconnection, but the connection handle of the disconnected device will then be made available for the next connection.
Let me know if that answers your question.
Thanks,
Isaac