I'm exploring the possibility of using an nRF51 for a simple device which must take data samples on a fixed clock and push them to a remote client. The issue I'm investigating is that of synchronization -- there will be several of these devices, and we want reasonably close (~10-50 ms) correlation between their respective data. I believe that I can get close to this number with a simple solution where the client periodically writes a profile characteristic with its current measured time in milliseconds, which the sensor then keeps track of and reports back with sample data. However, we then have to deal with latency, jitter, retries, and all the inherent inaccuracy that introduces which (according to some rough back-of-the-envelope calculations) could well exceed our timing tolerance.
While reading the BLE specification, I noticed that in fact there is a bluetooth clock, which specifically has to be synchronized with the master (in this case, the client and the 'master timekeeper' in our scheme) already.
My question, therefore, is this: Is it possible to query the softdevice for the current value of the bluetooth clock?