Difference between revisions of "Firmware-72 Function-124"
Line 6: | Line 6: | ||
{| | {| | ||
− | !style="text-align:left;"|FP | + | !style="text-align:left;width: 5%;"|FP |
− | !style="text-align:left;"|Data output | + | !style="text-align:left;width: 40%;"|Data output in host mode |
+ | !style="text-align:left;width: 40%;"|Data output in standalone mode | ||
|- | |- | ||
− | |0 | + | |0 |
|Ambient Temperature; an unsigned 8-bit value sent as one 8-bit byte | |Ambient Temperature; an unsigned 8-bit value sent as one 8-bit byte | ||
+ | |Ambient Temperature; an unsigned 7-bit or 14-bit value sent as one or two 8-bit bytes (LSB, MSB) | ||
|- | |- | ||
| | | | ||
|Temperature (pixel 1); an unsigned 8-bit value sent as one 8-bit byte | |Temperature (pixel 1); an unsigned 8-bit value sent as one 8-bit byte | ||
+ | |Temperature (pixel 1); an unsigned 7-bit or 14-bit value sent as one or two 8-bit bytes (LSB, MSB) | ||
|- | |- | ||
| | | | ||
|Temperature (pixel 2); an unsigned 8-bit value sent as one 8-bit byte | |Temperature (pixel 2); an unsigned 8-bit value sent as one 8-bit byte | ||
+ | |Temperature (pixel 2); an unsigned 7-bit or 14-bit value sent as one or two 8-bit bytes (LSB, MSB) | ||
|- | |- | ||
| | | | ||
|Temperature (pixel 3); an unsigned 8-bit value sent as one 8-bit byte | |Temperature (pixel 3); an unsigned 8-bit value sent as one 8-bit byte | ||
+ | |Temperature (pixel 3); an unsigned 7-bit or 14-bit value sent as one or two 8-bit bytes (LSB, MSB) | ||
|- | |- | ||
| | | | ||
|Temperature (pixel 4); an unsigned 8-bit value sent as one 8-bit byte | |Temperature (pixel 4); an unsigned 8-bit value sent as one 8-bit byte | ||
+ | |Temperature (pixel 4); an unsigned 7-bit or 14-bit value sent as one or two 8-bit bytes (LSB, MSB) | ||
|- | |- | ||
| | | | ||
|Temperature (pixel 5); an unsigned 8-bit value sent as one 8-bit byte | |Temperature (pixel 5); an unsigned 8-bit value sent as one 8-bit byte | ||
+ | |Temperature (pixel 5); an unsigned 7-bit or 14-bit value sent as one or two 8-bit bytes (LSB, MSB) | ||
|- | |- | ||
| | | | ||
|Temperature (pixel 6); an unsigned 8-bit value sent as one 8-bit byte | |Temperature (pixel 6); an unsigned 8-bit value sent as one 8-bit byte | ||
+ | |Temperature (pixel 6); an unsigned 7-bit or 14-bit value sent as one or two 8-bit bytes (LSB, MSB) | ||
|- | |- | ||
| | | | ||
|Temperature (pixel 7); an unsigned 8-bit value sent as one 8-bit byte | |Temperature (pixel 7); an unsigned 8-bit value sent as one 8-bit byte | ||
+ | |Temperature (pixel 7); an unsigned 7-bit or 14-bit value sent as one or two 8-bit bytes (LSB, MSB) | ||
|- | |- | ||
| | | | ||
|Temperature (pixel 8); an unsigned 8-bit value sent as one 8-bit byte | |Temperature (pixel 8); an unsigned 8-bit value sent as one 8-bit byte | ||
+ | |Temperature (pixel 8); an unsigned 7-bit or 14-bit value sent as one or two 8-bit bytes (LSB, MSB) | ||
+ | |- | ||
+ | |1 | ||
+ | |Ambient Temperature; an unsigned 8-bit value sent as one 8-bit byte | ||
+ | |Centroid Position; an unsigned 7-bit or 14-bit value sent as one or two 8-bit bytes (LSB, MSB) | ||
+ | |- | ||
+ | | | ||
+ | |Temperature (pixel 1); an unsigned 8-bit value sent as one 8-bit byte | ||
+ | |Centroid Temperature; an unsigned 7-bit or 14-bit value sent as one or two 8-bit bytes (LSB, MSB) | ||
+ | |- | ||
+ | | | ||
+ | |Temperature (pixel 2); an unsigned 8-bit value sent as one 8-bit byte | ||
+ | |Ambient temperature; an unsigned 7-bit or 14-bit value sent as one or two 8-bit bytes (LSB, MSB) | ||
+ | |- | ||
+ | | | ||
+ | |Temperature (pixel 3); an unsigned 8-bit value sent as one 8-bit byte | ||
+ | | | ||
+ | |- | ||
+ | | | ||
+ | |Temperature (pixel 4); an unsigned 8-bit value sent as one 8-bit byte | ||
+ | | | ||
+ | |- | ||
+ | | | ||
+ | |Temperature (pixel 5); an unsigned 8-bit value sent as one 8-bit byte | ||
+ | | | ||
+ | |- | ||
+ | | | ||
+ | |Temperature (pixel 6); an unsigned 8-bit value sent as one 8-bit byte | ||
+ | | | ||
+ | |- | ||
+ | | | ||
+ | |Temperature (pixel 7); an unsigned 8-bit value sent as one 8-bit byte | ||
+ | | | ||
+ | |- | ||
+ | | | ||
+ | |Temperature (pixel 8); an unsigned 8-bit value sent as one 8-bit byte | ||
+ | | | ||
+ | |- | ||
+ | |2..127 | ||
+ | |Ambient Temperature; an unsigned 8-bit value sent as one 8-bit byte | ||
+ | |No Output | ||
+ | |- | ||
+ | | | ||
+ | |Temperature (pixel 1); an unsigned 8-bit value sent as one 8-bit byte | ||
+ | | | ||
+ | |- | ||
+ | | | ||
+ | |Temperature (pixel 2); an unsigned 8-bit value sent as one 8-bit byte | ||
+ | | | ||
+ | |- | ||
+ | | | ||
+ | |Temperature (pixel 3); an unsigned 8-bit value sent as one 8-bit byte | ||
+ | | | ||
+ | |- | ||
+ | | | ||
+ | |Temperature (pixel 4); an unsigned 8-bit value sent as one 8-bit byte | ||
+ | | | ||
+ | |- | ||
+ | | | ||
+ | |Temperature (pixel 5); an unsigned 8-bit value sent as one 8-bit byte | ||
+ | | | ||
+ | |- | ||
+ | | | ||
+ | |Temperature (pixel 6); an unsigned 8-bit value sent as one 8-bit byte | ||
+ | | | ||
+ | |- | ||
+ | | | ||
+ | |Temperature (pixel 7); an unsigned 8-bit value sent as one 8-bit byte | ||
+ | | | ||
+ | |- | ||
+ | | | ||
+ | |Temperature (pixel 8); an unsigned 8-bit value sent as one 8-bit byte | ||
+ | | | ||
|} | |} | ||
Each 8-bit value represents the temperature value [4..100] in degrees Celsius. | Each 8-bit value represents the temperature value [4..100] in degrees Celsius. | ||
+ | |||
+ | The centroid is the mean weighted value of all pixels. | ||
Example: | Example: |
Revision as of 22:33, 1 January 2016
MOVEAROUND (124, 7Ch)
The MoveAround function enables output of the MoveAround 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. Since the MoveAround has multiple output parameters the stand-alone mode settings are incremented by one for each extra output parameter. There are no methods to select, ie. the FUNCTION command’s method/parameter FP is ignored:
MoveAround v1.0
FP | Data output in host mode | Data output in standalone mode |
---|---|---|
0 | Ambient Temperature; an unsigned 8-bit value sent as one 8-bit byte | Ambient Temperature; an unsigned 7-bit or 14-bit value sent as one or two 8-bit bytes (LSB, MSB) |
Temperature (pixel 1); an unsigned 8-bit value sent as one 8-bit byte | Temperature (pixel 1); an unsigned 7-bit or 14-bit value sent as one or two 8-bit bytes (LSB, MSB) | |
Temperature (pixel 2); an unsigned 8-bit value sent as one 8-bit byte | Temperature (pixel 2); an unsigned 7-bit or 14-bit value sent as one or two 8-bit bytes (LSB, MSB) | |
Temperature (pixel 3); an unsigned 8-bit value sent as one 8-bit byte | Temperature (pixel 3); an unsigned 7-bit or 14-bit value sent as one or two 8-bit bytes (LSB, MSB) | |
Temperature (pixel 4); an unsigned 8-bit value sent as one 8-bit byte | Temperature (pixel 4); an unsigned 7-bit or 14-bit value sent as one or two 8-bit bytes (LSB, MSB) | |
Temperature (pixel 5); an unsigned 8-bit value sent as one 8-bit byte | Temperature (pixel 5); an unsigned 7-bit or 14-bit value sent as one or two 8-bit bytes (LSB, MSB) | |
Temperature (pixel 6); an unsigned 8-bit value sent as one 8-bit byte | Temperature (pixel 6); an unsigned 7-bit or 14-bit value sent as one or two 8-bit bytes (LSB, MSB) | |
Temperature (pixel 7); an unsigned 8-bit value sent as one 8-bit byte | Temperature (pixel 7); an unsigned 7-bit or 14-bit value sent as one or two 8-bit bytes (LSB, MSB) | |
Temperature (pixel 8); an unsigned 8-bit value sent as one 8-bit byte | Temperature (pixel 8); an unsigned 7-bit or 14-bit value sent as one or two 8-bit bytes (LSB, MSB) | |
1 | Ambient Temperature; an unsigned 8-bit value sent as one 8-bit byte | Centroid Position; an unsigned 7-bit or 14-bit value sent as one or two 8-bit bytes (LSB, MSB) |
Temperature (pixel 1); an unsigned 8-bit value sent as one 8-bit byte | Centroid Temperature; an unsigned 7-bit or 14-bit value sent as one or two 8-bit bytes (LSB, MSB) | |
Temperature (pixel 2); an unsigned 8-bit value sent as one 8-bit byte | Ambient temperature; an unsigned 7-bit or 14-bit value sent as one or two 8-bit bytes (LSB, MSB) | |
Temperature (pixel 3); an unsigned 8-bit value sent as one 8-bit byte | ||
Temperature (pixel 4); an unsigned 8-bit value sent as one 8-bit byte | ||
Temperature (pixel 5); an unsigned 8-bit value sent as one 8-bit byte | ||
Temperature (pixel 6); an unsigned 8-bit value sent as one 8-bit byte | ||
Temperature (pixel 7); an unsigned 8-bit value sent as one 8-bit byte | ||
Temperature (pixel 8); an unsigned 8-bit value sent as one 8-bit byte | ||
2..127 | Ambient Temperature; an unsigned 8-bit value sent as one 8-bit byte | No Output |
Temperature (pixel 1); an unsigned 8-bit value sent as one 8-bit byte | ||
Temperature (pixel 2); an unsigned 8-bit value sent as one 8-bit byte | ||
Temperature (pixel 3); an unsigned 8-bit value sent as one 8-bit byte | ||
Temperature (pixel 4); an unsigned 8-bit value sent as one 8-bit byte | ||
Temperature (pixel 5); an unsigned 8-bit value sent as one 8-bit byte | ||
Temperature (pixel 6); an unsigned 8-bit value sent as one 8-bit byte | ||
Temperature (pixel 7); an unsigned 8-bit value sent as one 8-bit byte | ||
Temperature (pixel 8); an unsigned 8-bit value sent as one 8-bit byte |
Each 8-bit value represents the temperature value [4..100] in degrees Celsius.
The centroid is the mean weighted value of all pixels.
Example:
In order to enable the MoveAround function to get the temperature data from a MoveAround sensor with I2C device address 104 (default MoveAround I2C device address) connected to the 7th I2C port, the following message is sent:
- 240, 125, 0 {DEV}, 8 {FUNCTION}, 6 {yyy = 6}, 104 {device address}, 124 {MoveAround function}, 0 {all temperatures}, 247 (F0h, 7Dh, 00h, 08h, 06h, 68h, 7Ch, 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. The sensor parameter’s raw values as output in a I2C DATA message are offset and scaled so as to fit in the channel voice MIDI value range of either 0-127 (eg. control-change message) or 0-16383 (pitch-bend message).
Other settings of the MoveAround sensor can be effectuated by using I2C commands such as I2C WRITE and I2C READ.