Biosensor Array Protocol Definition
This page is part of the Biosensor Array Project
This page describes how biometric data is formatted, identified and transmitted from the collection hardware to any system intended to consume that data. The biometric data is made available via one or more of the interfaces: USB, RS-232C serial or Bluetooth. Data is not polled but is instead transmitted, unsolicited, at regular intervals by the logic on the biosensor array itself. Each collection of data will be timestamped and will include all of the measurements made at that timestamp. Measurements are transmitted only when they have changed since the previous transmission.
The general format of a packet of biometric data is a collection of fields and a packet termination character. Each biometric packet is terminated by a single LF character. LF characters are not allowed anywhere else in the biometric packet. Each field within a biometric packet is terminated with a single vertical bar character and the vertical bar is not allowed within an individual field.
The list of fields in a biometric data packet are as follows:
- a short unsigned integer indicating the version of the biosensor array
- the number of seconds since the biosensor array was last reset, as a long, unsigned integer
- a short unsigned integer indicating the number of sensor data fields contained in this packet
- one or more sensor data fields, each of which consists of:
- a tiny unsigned integer ID number for the sensor
- a single comma character
- the numerical measurement for this sensor at this timestamp