|
ZephyrServer
The ZephyrServer bridges BlueTooth packets into UDP packets. Each UDP packet's payload is a single XML formatted string carrying the physiological data.
IntroductionThe framework intentionally uses network sockets so you can choose any language or platform to read the data. The heavy lifting is done though, all your application needs to do is listen on this UDP port for the XML data. However, if your device has java support, then simply extend from the Framework Objects: HxM, HRM, and the Bioharness. An example feedback XML packet would look like (each devices provides different information): Example Raw Bioharness packet fragment formatted for display: [0] hex : 02 byte : 2 ... [42] hex : ff byte : -1 [43] hex : fb byte : -5 [44] hex : ff byte : -1 [45] hex : 58 byte : 88 [46] hex : 00 byte : 0 [47] hex : 5b byte : 91 [48] hex : 00 byte : 0 ... [58] hex : 00 byte : 0 [59] hex : 00 byte : 0 [60] hex : 00 byte : 0 [61] hex : b7 byte : -73 [62] hex : 06 byte : 6 is then parsed and reformatted for an ATOM feed as: <HXM001175> <heart>66</heart> <speed>6.88</speed> <battery>77</battery> <temperature>35</temperature> ... <RR0>999</RR0> ... </HXM001175> Were, "HXM001175" is the BlueTooth friendly name that was discovered. This is the only form of nesting used, all other tags inside these will be simple name/value pairs only. But what is most interesting is the RR, or "beat to beat" times available. HRV, or heart rate variability is a measure of stress or illness. The Zephyr Bioharness gives "Beat to Beat" or "R to R" times in a dedicated packet that can be enabled by sending commands to the device. A simple display of the last 800 beats (must have a minimum history for any HRV Algorithm to be at all useful/meaningful) below:
see more at Ward Plunet's (PHD) website soon to have a meter type report: The encoded URL below, and this creates a 16kb image.. so a big savings in bandwidth on uploading client. http://chart.apis.google.com/chart?cht=gom&chs=600x250&chl=G0_Faster&chco=1148D4,5766DE,DB3270,D41111&chf=bg,s,808080&chd=e:5m Note that the XML structure for RR times is going to soon change, and why no SVN Access yet. With cooperation there will be a standard soon, done in the Google Health Vault Forum. Ideally this project will support the bulk of the devices that transmit HRV data (subset of full ECG data sets). |
Sign in to add a comment