如题,CC2640R2F是否支持一从多主模式?如果可以,设计时有哪些注意点?有没有这方面的资料?
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.
Evan W I change MAX_NUM_BLE_CONNS from 1 to 3 in simple_peripheral example and test it. However, simple_peripheral doesn't advertise after SimpleLink Starter of my iphone connect to it. So, anthoer SimpleLink Starter APP on anther smartphone cannot scan it any more. I move to test this with muti-role example and it works fine. I suppose simple_peripheral example need some extra revisitions to make it keep adverting after it connects to a BLE central.
Hi YK,
It seems that the software in simple_peripheral in the BLE4.2 stacks is just not setup to handle more than one connection. There is nothing in the spec that prevents it, but for instance, there is only a single index for handling connection info, but when you compare that to the BLE5 Simple Peripheral, you have a structure that has all the connection info and an array of them is made during initialization for each possible connection.
// Per-handle connection info static spConnRec_t connList[MAX_NUM_BLE_CONNS];
Therefore, there is nothing in the BLE Stack v3.x.x that prevents someone from using multiple connections to a central with a peripheral other than the software. The application software could be re-written to support such, but i have a feeling we did not do this out of the gate for two reasons.
1) The more connections you support, the more RAM you have to statically allocate for each connection
2) Most of the BLE Stack v3.x.x software architecture was taken from BLE Stack v1/v2.x to make it familiar to customers and this was just missed.