title: Android: how to programmatically send command to Nonin OnyxII 9560 pulse oximeter to select the data format and display the SpO2 and heart rate value
body: <p>I am developing an Android Application of elder healthcare. The devices I used are Nonin Onyx II 9560 pulse oximeter and Nexus 7 tablet.</p>
  
  <p>The application will allow the pulse oximeter and tablet to communicate with each other. Once the user makes a measurement with pulse oximeter, the reading will transmit to tablet via bluetooth.</p>
  
  <p>I have already completed the connection session, but I don't know how to send command to pulse oximeter, to select the data format and after receiving, how to display the reading of SpO2 and heart rate on the tablet.</p>
  
  <p>My application is quite similar to the <a href="http://simpleeye.com/platforms/android/live-pulse-oximeter/" rel="nofollow noreferrer">Simple Eye application</a>. </p>
  
  <p>I have found someone faces the same problem as me, however he solved his problem by using the code in <a href="https://stackoverflow.com/questions/10402291/parsing-data-from-hdp-device-for-android-api-15">this website</a>. The code is for a blood pleasure sensor.</p>
  
  <p>The following codes are from my app service class. I didn't purchase the development kit for Nonin Onyx II 9560. </p>
  
  <p>Can anyone help me with these problems. Please provide me some ideas or help me modify my codes. Thanks a lot.</p>