Tool/software:
How to initiate channel sounding ranging from the peripheral?
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:
How to initiate channel sounding ranging from the peripheral?
Hello Calvin,
Firstly, the peripheral needs to be the initiator in this case. Second, channel sounding requires the devices to be paired and encrypted. The central will need to initiate the pairing and encryption.
Currently, we do not have any example projects supporting this. Let me look at our current projects, to see if I can alter the project to support this.
To do this, the peripheral would begin advertising. The central reflector will begin scanning and initiate the connection. The central will then go through the process of connecting, pairing, encrypting, and bonding. Once that is complete, the reflector initiator device will need to wait for a pairing state complete, or pairing encryption complete command before initiating channel sounding.
You should be able to alter the Car_Node, Key_Node, and the python script used for CS demo to enable this.
Give me until the end of next week (06/13) to see if I can provide an example.
Thanks,
Isaac
Hello Isaac,
Thank you, I modified the carnode project as perpherial and initiator to do the cs ranging successfully, but there is a problem, the function ChannelSounding_securityEnable must be initiated by the central side to work, is this the ble stack design so?
Hello Calvin,
The link layer of the Central device will enable security. The central always initiates security. This is BLE stack design but also based on the Bluetooth Core Specification v6.0.
From the peripheral/initiator side, you should wait for CS_SECURITY_ENABLE_COMPLETE_EVENT before continuing with the CS setup procedure.
You can read more about this in section 5.1.23 in the Bluetooth Core Specification 6.0.
Let me know if you have any questions, or any more problems.
Thanks,
Isaac