This requires the timestamps of both the systems. Fig. 2 depicts the working of the synchronization process. The first step is the standard establishment of a Bluetooth
connection after pairing with the device.Once the connection is established, the slave device sends a time stamp to the master and stores it as TS. As soon as the master device receives the time stamp, it sends back its own time stamp to the slave device. This returned time stamp is recorded as TR along with the time stamp when TR was received by the slave device as T S. The process is repeated for 30 s and the time stamps a rerecorded.This process is followed by the client clock synchronization module in the slave device. This module has four major operations: estimating the round trip time, estimating the offset, calculating the master time,and setting the slave clock.The round trip time is given by