Part Number: CC2652R7
Other Parts Discussed in Thread: SYSCONFIG
Hi,
We have a design which includes some sensitive metrology which is scheduled by the sensor controller. When using advertising we are able to use advertising events to carefully schedule our measurements between adverts to ensure that we do not measure whilst the radio is sending a packet. This is done using
GAP_EVT_ADV_START
GAP_EVT_ADV_END
events and registering with the GAP to receive these:
// Set event mask for set #1
status = GapAdv_setEventMask(advHandleLegacy,
GAP_ADV_EVT_MASK_START_AFTER_ENABLE |
GAP_ADV_EVT_MASK_END_AFTER_DISABLE |
GAP_ADV_EVT_MASK_END |
GAP_ADV_EVT_MASK_SET_TERMINATED);
This all works well.
We now want to be able to run our metrology whilst the stack is serving connections from LE clients. In this case we have much less control over when radio packets are sent, but we would still like to be able to determine when our measurements might be corrupted. Are there any similar events that we can register for to be informed when a packet is about to be sent? Or another strategy that could give us knowledge of when our measurements are likely to be corrupted?
To be clear, we're not trying to know when connections are made or disconnected, but rather when the packets are sent during the time that a connection is in place.
Thanks
Ed
