Difference between revisions of "Phonegap Healthcare Adapter Bluetooth Implementation"

From CDOT Wiki
Jump to: navigation, search
(Android)
Line 35: Line 35:
 
* Example exploring interactions with Bluetooth devices using Android Bluetooth API's
 
* Example exploring interactions with Bluetooth devices using Android Bluetooth API's
 
** [http://developer.android.com/guide/topics/connectivity/bluetooth.html Bluetooth Library]
 
** [http://developer.android.com/guide/topics/connectivity/bluetooth.html Bluetooth Library]
** [http://jayxie.com/mirrors/android-sdk/resources/samples/BluetoothChat/index.html Chat Sample]
+
** [http://jayxie.com/mirrors/android-sdk/resources/samples/BluetoothChat/index.html Sample: BluetoothChat]
 +
*** [https://gist.github.com/3407398 BluetoothChat.java]
 +
*** [https://gist.github.com/3407451 BluetoothChatService.java]
 +
*** [https://gist.github.com/3407482 DeviceListActivity.java]

Revision as of 15:15, 20 August 2012


NexJ Medical Peripheral Mobile Adapter Will be designed to enable NexJ's Mobile Healthcare solutions to interact with Bluetooth peripherals.

Bluetooth Profiles

A Bluetooth profile is a wireless interface specification for Bluetooth-based communication between devices. Bluetooth communication protocols in the programming interface of iOS and Android are transparent.

iOS

  • iOS 3+ SDK supports Bluetooth 2.2 devices.
    • Profiles for Bluetooth 2.2 devices are specified here.
  • iOS 5+ SDK supports low energy Bluetooth devices(Bluetooth 4.0).

Android

  • SDK supports Bluetooth 2.2
  • No Support for Bluetooth 4.0

Supported Languages

iOS

Android

  • Supports Java, equivalent to Java SE 6
  • C, C++ support via the Android NDK

SDK Examples

iOS

  • Enabling Bluetooth on the iOS simulator
  • Example program interfacing with Bluetooth low energy temperature sensor using the SDK's CoreBluetooth class

Android