Firmware-811 Function-114
REACHOND (114, 72h)
The ReachOnD function enables output of the ReachOnD 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:
ReachOnD v1.0
FP | Data output in host mode | Data output in stand-alone mode |
---|---|---|
0, 13..126 | Activation: , sent as nibbles in one or two bytes (MSB .. LSB) | Activation [0..127] or [0..16383]; an unsigned 7-bit or 14-bit value sent as one or two bytes (LSB, MSB) |
127 | Activation: Unique ID, 8 bytes, sent as nibbles in 16 bytes (MSB .. LSB); method number (FP), sent as nibbles in 2 bytes (MSB, LSB) | Activation [0..127] or [0..16383]; an unsigned 7-bit or 14-bit value sent as one or two bytes (LSB, MSB) |
Example:
In order to enable the ReachOnD function in standalone mode to output ReachOnD sensor with I2C device address 36 (default ReachOnD I2C device address) connected to the 7th I2C port, the following message is sent:
- 240, 125, 0 {DEV}, 8 {FUNCTION}, 6 {yyy = 6}, 36 {device address}, 80 {ReachOnD function}, 64 { method}, 247 (F0h, 7Dh, 00h, 08h, 06h, 24h, 50h, 40h, F7h)
In stand-alone mode a suitable configuration has to be set using the EDIT CONFIG command before any MIDI messages will be output.
In order to enable the ReachOnD function in host mode to output ReachOnD sensor with I2C device address 36 (default ReachOnD I2C device address) connected to the 7th I2C port, the following message is sent:
- 240, 125, 0 {DEV}, 8 {FUNCTION}, 6 {yyy = 6}, 36 {device address}, 80 {ReachOnD function}, 0 { method}, 247 (F0h, 7Dh, 00h, 08h, 06h, 24h, 50h, 00h, F7h)
In host mode raw sensor data will be output immediately in I2C DATA messages.
Other settings of the ReachID sensor can be effectuated by using I2C commands such as I2C WRITE and I2C READ. See also the datasheet linked from the ReachOnD v1.0 webpage.