Firmware-75 Function-118

From I-CubeX Wiki
Revision as of 22:35, 15 October 2017 by Admin (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

BIOBEAT3D (118, 76h)

The BioBeat3D function enables output of the BioBeat3D sensor data in both host and stand-alone mode. In host mode the sensor data is output in I2C DATA messages. In stand-alone mode the sensor data is output according to the stand-alone mode settings of the input number that equals the I2C port number. There are the following methods to select, using the FUNCTION command’s method/parameter FP:

BioBeat3D v1.0

FP Data output in host mode Data output in stand-alone mode
default IR LED intensity [0..65535]: an unsigned 16-bit value, representing IR LED intensity scaled by the method number (FP) - 1, sent as nibbles in four bytes (MSB .. LSB) together with red LED intensity in a separate I2C DATA message IR LED intensity [0..127] or [0..16383]; an unsigned 7-bit or 14-bit value, representing IR LED intensity scaled by the method number (FP) - 1, sent as one or two bytes (LSB, MSB)
Red LED intensity [0..65535]: an unsigned 16-bit value, representing Red LED intensity scaled by the method number (FP) - 1, sent as nibbles in four bytes (MSB .. LSB) together with IR LED intensity in a separate I2C DATA message Red LED intensity [0..127] or [0..16383]; an unsigned 7-bit or 14-bit value, representing Red LED intensity scaled by the method number (FP) - 1, sent as one or two bytes (LSB, MSB)
Heartbeat pulse [0, 1]; an unsigned 8-bit value, representing [no, yes] detection of a heartbeat, sent as one byte in a separate I2C DATA message Heartbeat pulse [0, 64] or [0, 8192]; an unsigned 7-bit or 14-bit value, representing [no, yes] detection of a heartbeat, sent as one or two bytes (LSB, MSB)
BPM [0..2550]: an unsigned 8-bit value, representing [0..255] BPM, sent as nibbles in two bytes (MSB, LSB) together with SpO2 in a separate I2C DATA message BPM [0..127] or [0..16383]; an unsigned 7-bit or 14-bit value, representing [0..127] BPM, sent as one or two bytes (LSB, MSB)
SpO2 [0..255]: an unsigned 8-bit value, representing [0..255] %, sent as nibbles in two bytes (MSB, LSB) together with Heartrate in a separate I2C DATA message SpO2 [0..127] or [0..16383]; an unsigned 7-bit or 14-bit value, representing [0..127] %, sent as one or two bytes (LSB, MSB)
0 Heartbeat pulse [0, 1]; an unsigned 8-bit value, representing [no, yes] detection of a heartbeat, sent as one byte in a separate I2C DATA message Heartbeat pulse [0, 64] or [0, 8192]; an unsigned 7-bit or 14-bit value, representing [no, yes] detection of a heartbeat, sent as one or two bytes (LSB, MSB)
Heartrate [0..2550]: an unsigned 8-bit value, representing [0..255] BPM, sent as nibbles in two bytes (MSB, LSB) together with SpO2 in a separate I2C DATA message Heartrate [0..127] or [0..16383]; an unsigned 7-bit or 14-bit value, representing [0..127] BPM, sent as one or two bytes (LSB, MSB)
SpO2 [0..255]: an unsigned 8-bit value, representing [0..255] %, sent as nibbles in two bytes (MSB, LSB) together with Heartrate in a separate I2C DATA message SpO2 [0..127] or [0..16383]; an unsigned 7-bit or 14-bit value, representing [0..127] %, sent as one or two bytes (LSB, MSB)
1 Heartbeat pulse [0, 1]; an unsigned 8-bit value, representing [no, yes] detection of a heartbeat, sent as one byte in a separate I2C DATA message Heartbeat pulse [0, 64] or [0, 8192]; an unsigned 7-bit or 14-bit value, representing [no, yes] detection of a heartbeat, sent as one or two bytes (LSB, MSB)
Heartrate [0..2550]: an unsigned 8-bit value, representing [0..255] BPM, sent as nibbles in two bytes (MSB, LSB) together with SpO2 in a separate I2C DATA message Heartrate [0..127] or [0..16383]; an unsigned 7-bit or 14-bit value, representing [0..254] BPM, sent as one or two bytes (LSB, MSB)
SpO2 [0..255]: an unsigned 8-bit value, representing [0..255] %, sent as nibbles in two bytes (MSB, LSB) together with Heartrate in a separate I2C DATA message SpO2 [0..127] or [0..16383]; an unsigned 7-bit or 14-bit value, representing [0..127] %, sent as one or two bytes (LSB, MSB)
125 Heartbeat pulse [0, 1]; an unsigned 8-bit value, representing [no, yes] detection of a heartbeat, sent as one byte in a separate I2C DATA message Heartbeat pulse [0, 64] or [0, 8192]; an unsigned 7-bit or 14-bit value, representing [no, yes] detection of a heartbeat, sent as one or two bytes (LSB, MSB)
Heartrate [0..2550]: an unsigned 8-bit value, representing [0..255] BPM, sent as nibbles in two bytes (MSB, LSB) in a separate I2C DATA message Heartrate [0..127] or [0..16383]; an unsigned 7-bit or 14-bit value, representing [0..254] BPM, sent as one or two bytes (LSB, MSB)
126 SpO2 [0..255]: an unsigned 8-bit value, representing [0..255] %, sent as nibbles in two bytes (MSB, LSB) SpO2 [0..127] or [0..16383]; an unsigned 7-bit or 14-bit value, representing [0..127] %, sent as one or two bytes (LSB, MSB)
127 Temperature [0..2550]: an unsigned 8-bit value, representing [0..255] ºC, sent as nibbles in two bytes (MSB, LSB) Temperature [0..127] or [0..16383]; an unsigned 7-bit or 14-bit value, representing [0..127] ºC, sent as one or two bytes (LSB, MSB)

Example:

In order to enable the BioBeat3D function to output the heart beats per minute (BPM) and SpO2 percentage measured by a BioBeat3D sensor with I2C device address 87 (default BioBeat3D I2C device address) connected to the 7th I2C port, the following message is sent:

240, 125, 0 {DEV}, 8 {FUNCTION}, 6 {yyy = 6}, 87 {device address}, 118 {BioBeat3D function}, 0 {BPM and SpO2 method}, 247 (F0h, 7Dh, 00h, 08h, 06h, 57h, 76h, 00h, F7h)

In host mode raw sensor data will be output immediately in I2C DATA messages. In stand-alone mode a suitable configuration has to be set using the EDIT CONFIG command before any MIDI messages will be output.

Other settings of the BioBeat3D sensor can be effectuated by using I2C commands such as I2C WRITE and I2C READ. See also the datasheet linked from the BioBeat3D v1.0 webpage.