Part Number: CC2652R7
I want to build a network with multiple broadcasters operating in non-connectable mode and an observer. How do I calculate Packet error rate for individual broadcaster ? Is there a sample project I can refer to for this?
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.
Part Number: CC2652R7
I want to build a network with multiple broadcasters operating in non-connectable mode and an observer. How do I calculate Packet error rate for individual broadcaster ? Is there a sample project I can refer to for this?
Hi Garvit,
As Clément mentioned in this thread: https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/1220680/lp-cc2652r7-how-do-i-calculate-total-packets-delivered-from-a-particular-broadcaster-to-observer
What you could do is to count the number of advertisement packets received using the SC_EVT_ADV_REPORT event on the observer side. Count the number of advertisement packets sent using the GAP_EVT_ADV_START event on the broadcaster side and make a ratio to know the error rate.
Regards,
Are you able to count on the observer side? (with the SC_EVT_ADV_REPORT event)
What kind of PHY are you using?
regards,
Hi Garvit,
You have to set the event masks, "GAP_ADV_EVT_MASK_START" in the GapAdv_setEventMask() if you want to enter in the GAP_EVT_ADV_START code event.
regards,
Hi Garvit,
First of all, I encourage you to visit TI Developer Zone. This portal will help you to find the documentation and the training resources related to the device you are using.
The functioning of GapAdv_setEventMask is described here, the API documentation of the function is available here and you can refer to the simple_peripheral (especially in file simple_peripheral.c) example to seehow the function is used.
I hope this will help,
Best regards,
Hello Clement,
I tried setting up event mask under SimplePeripheral_processAdvEvent function to enable the case of GAP_EVT_ADV_START by adding following piece of code -
bStatus_t status = FAILURE;
status = GapAdv_setEventMask(advHandleLegacy, GAP_ADV_EVT_MASK_START);
I tried operating the device in both connectable and non-connectable mode but I am still not able to enter the GAP_EVT_ADV_START case.
Is this the right way to do so?
Thanks,
Garvit