Changes

Jump to: navigation, search

Phonegap Healthcare Adapter

783 bytes removed, 14:48, 8 August 2012
Project Functionality Description
== Project Functionality Normal 0 false false false EN-US X-NONE X-NONE Process Description of Bluetooth Communication ==
=== Project task ===
Design and implement PhoneGap plugins on iOS and Android platforms to realize the collection and storage of healthcare measurements (blood pressure, blood glucose, and weight) using Bluetooth® wireless technology.
=== Bluetooth Profile ===
Serial Port Profile (SPP).
[[File:NexjPhoneGap.png]]
=== PhoneGap Plugin Functionalities Communication Process Description for unpaired devices in brief:===The PhoneGap plugins to be developed on iOS and Android should have the following JavaScript functions:==== 1a. Enable Bluetooth ====This function turns on Bluetooth on the mobile device.==== 2. Disable Bluetooth ====This function turns off Bluetooth on and set the mobile deviceto discoverable mode (as slave device).==== 3b. List Bluetooth Devices ====This function search and list all detected Bluetooth devices.==== 4. List Paired Devices ====This function lists all Make a measurement on selected A&D Bluetooth devices which have bound to device such as weight scale. Upon the completion of measurement, the mobile smartphone/tablet.==== 5. Unpair device ====This function removes an A&D (as master device) searches slave devices and initials Bluetooth device from paired device listcommunication.==== 6c. Start Listing ====* This function starts Bluetooth communication as SPP server on the The mobile device through native application and makes receives the device available to receive signal of the health measurements from A&D Bluetooth devicesdevice and prompts user to enter a PIN/passkey.* This function should be called after Bluetooth d. Once the PIN is enabled on matched, the mobile device.* For first connection between an A&D Bluetooth and a device sends the measurement data to the mobile device, a native screen will pop up to allow user to input PIN code to configure using the specified format such as weight scale packet followed by the connectionConfirmation Packet Response.e. Upon the success of connection, the two devices are paired. Then PIN code is no longer needed afterward.* After receiving the communication packet from the A&D PBT Series (master) device, the packet is parsed and the obtained measurement date/time, measurement values, Bluetooth Id of remote unit, mode, and serial number of A&D PBT Series plus the Bluetooth ID of access point (the mobile device) will be stored in local database. The number of records is controlled less than 100.* Upon the record successfully stored (Other situations are not covered here for conciseness), the access point needs to wait for about 250msec and to return “Data Accepted” within “Acknowledge & Configuration Packet” back to the master device ( A&D PBT series device).* Shows mobile user with message that a measurement was successfully received.==== 7. Stop Listing ====This function stops the SPP server on the mobile device.==== 8. Get recently received records ====This function return received measurements in different ways:* All records in brief* A specific record by record id* Blood pressure records* Blood glucose records* Weight scale records
 
=== Communication Process Description for paired devices in brief: ===
a. Enable Bluetooth on the mobile device and set the device to discoverable mode.
b. Make a measurement on selected A&D Bluetooth device. Upon the completion of measurement, the A&D Bluetooth device checks its memory for previously paired address of mobile device and directly sends the measurement data to the mobile device using the specified format, followed by the Confirmation Packet Response.
== Project Repository ==
1
edit

Navigation menu