Difference between revisions of "Firmware-75 Function-120"

From I-CubeX Wiki
Jump to: navigation, search
(Created page with "==HOTSPOT2D (120, 78h)== The HotSpot2D function enables output of the HotSpot2D sensor data in both host and stand-alone mode. In host mode the sensor data is output in Fir...")
 
Line 12: Line 12:
 
|0..125
 
|0..125
 
|No output
 
|No output
|Temperature Differential [0..127] or [0..16383]; an unsigned 7-bit or 14-bit value, where 0 represents 0 degrees Celsius and 127 (7-bit) or 16383 (14-bit) represents 163.84 / (FP + 1) degrees Celsius, sent as one or two 8-bit bytes (LSB, MSB)
+
|Temperature Differential [0..127] or [0..16383]; an unsigned 7-bit or 14-bit value, representing [0..163.84/(FP+1)] degrees Celsius, sent as one or two bytes (LSB, MSB)
 
|-
 
|-
 
|126
 
|126
|Ambient Temperature [0..65536]; an unsigned 16-bit value, representing degrees Celsius, sent as three 8-bit bytes (MSB, LSB, error code)
+
|Ambient Temperature [-70..380]; an unsigned 16-bit value, representing [-70..380] degrees Celsius, sent as nibbles in four bytes (MSB .. LSB), followed by an error code sent as nibbles in two bytes (MSB, LSB)
|Ambient Temperature [0..127] or [0..16383]; an unsigned 7-bit or 14-bit value, where the minimum value 12 (7-bit) or 1591 (14-bit) represents -38.20 degrees Celsius and the maximum value 38 (7-bit) or 4875 (14-bit) represents 125.0 degrees Celsius, sent as one or two 8-bit bytes (LSB, MSB)
+
|Ambient Temperature [12..38] or [1591..4875]; an unsigned 7-bit or 14-bit value, representing [-38.20..125.0] degrees Celsius, sent as one or two bytes (LSB, MSB)
 
|-
 
|-
 
|127
 
|127
|Object Temperature [0..65536]; an unsigned 16-bit value, representing degrees Celsius, sent as three 8-bit bytes (MSB, LSB, error code)
+
|Object Temperature [-70..380]; an unsigned 16-bit value, representing [-70..380] degrees Celsius, sent as nibbles in four bytes (MSB .. LSB), followed by an error code sent as nibbles in two bytes (MSB, LSB)
|Object Temperature [0..127] or [0..16383]; an unsigned 7-bit or 14-bit value, where 0 represents -70.00 degrees Celsius and 127 (7-bit) or 16383 (14-bit) represents 257.66 Celsius, sent as one or two 8-bit bytes (LSB, MSB)
+
|Object Temperature [0..127] or [0..16383]; an unsigned 7-bit or 14-bit value, representing [-70.00..257.66] degrees Celsius, sent as one or two bytes (LSB, MSB)
 
|}
 
|}
  

Revision as of 04:50, 5 October 2017

HOTSPOT2D (120, 78h)

The HotSpot2D function enables output of the HotSpot2D 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:

HotSpot2D v1.0

FP Data output in host mode Data output in stand-alone mode
0..125 No output Temperature Differential [0..127] or [0..16383]; an unsigned 7-bit or 14-bit value, representing [0..163.84/(FP+1)] degrees Celsius, sent as one or two bytes (LSB, MSB)
126 Ambient Temperature [-70..380]; an unsigned 16-bit value, representing [-70..380] degrees Celsius, sent as nibbles in four bytes (MSB .. LSB), followed by an error code sent as nibbles in two bytes (MSB, LSB) Ambient Temperature [12..38] or [1591..4875]; an unsigned 7-bit or 14-bit value, representing [-38.20..125.0] degrees Celsius, sent as one or two bytes (LSB, MSB)
127 Object Temperature [-70..380]; an unsigned 16-bit value, representing [-70..380] degrees Celsius, sent as nibbles in four bytes (MSB .. LSB), followed by an error code sent as nibbles in two bytes (MSB, LSB) Object Temperature [0..127] or [0..16383]; an unsigned 7-bit or 14-bit value, representing [-70.00..257.66] degrees Celsius, sent as one or two bytes (LSB, MSB)

Example:

In order to enable the HotSpot2D function to get the temperature differential from a HotSpot2D sensor with I2C device address 90 (default HotSpot2D I2C device address) connected to the 7th I2C port, the following message is sent:

240, 125, 0 {DEV}, 8 {FUNCTION}, 6 {yyy = 6}, 90 {device address}, 120 {HotSpot2D function}, 0 {Temperature Differential method}, 247 (F0h, 7Dh, 00h, 08h, 06h, 5Ah, 78h, 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 HotSpot2D sensor can be effectuated by using I2C commands such as I2C WRITE and I2C READ. See also the datasheet linked from the HotSpot2D v1.0 webpage.