title: Cycling speed and cadence sensor's BLE Gatt characteristic data parsing and operation
body: <p>We have identified the wheel and crank sensor Gatt characteristic measurement data which we have got in our application as per the split ups in the link below. 
  " <a href="https://www.bluetooth.com/specifications/gatt/viewer?attributeXmlFile=org.bluetooth.characteristic.csc_measurement.xml" rel="noreferrer">https://www.bluetooth.com/specifications/gatt/viewer?attributeXmlFile=org.bluetooth.characteristic.csc_measurement.xml</a> "</p>
  
  <p>For instance we have tried the following, </p>
  
  <p>Hex Data : 0x03 6D010000 FC7E 2C01 F87E</p>
  
  <p>Flag-03 ->0000 0011 -> 8bits so both are true hence we can get the wheel and crank's respective values.</p>
  
  <p>Cumulative Wheel Revolutions- 6D 01 00 00 -> 32bits so reversing the bluetooth values in little endian i.e 00 00 01 6D and converting it in decimal we get-365</p>
  
  <p>Last Wheel Event Time- FC 7E -> 16bits so reversing the bluetooth values in little endian i.e 7E FC and converting it in decimal we get-32508 </p>
  
  <p>Cumulative Crank Revolutions- 2C 01 -> 16bits so reversing the bluetooth values in little endian i.e 01 2C and converting it in decimal we get-300</p>
  
  <p>Last Crank Event Time- F8 7E -> 16bits so reversing the bluetooth values in little endian i.e 7E F8 and converting it in decimal we get-32504</p>
  
  <p>Here we used only the wheel and crank revolution value for our application so we are facing a problem that the last value of the crank or wheel is repeating even after stopping the cycle and the value continues from the previous event value Some times the values are very high and aberrant. Here I suspect <strong>Last Wheel and Crank event times will play a major role</strong>. But I am not sure about the functionality and purpose behind those time bytes. The main wheel and crank value are unit less hence we don't know what type of conversion we have to do. How can we get the right real time value for calculating the RPM and speed of the cycle when it is in motion. How should we use the last event time in our C# coding ? How can we incorporate the time event in our logic ? Kindly guide us through this process of parsing. The device I am using is the <strong>SunDing515 cycling speed and cadence sensor with Bluetooth low energy</strong>. <strong>strong text</strong> </p>