Difference between revisions of "Firmware-72 Command-004"

From I-CubeX Wiki
Jump to: navigation, search
 
Line 1: Line 1:
 
==SAMPLE (4, 04h)==
 
==SAMPLE (4, 04h)==
  
The SAMPLE command provides a snapshot of the data coming out of a single sensor input. Upon completion of the command the USB-microDig sends out the SAMPLE DATA message, whether in host or stand-alone mode.
+
The SAMPLE command provides a snapshot of the data coming out of a single sensor input. Upon completion of the command the USB-microDig sends out the [[Firmware-72_Message-004 |SAMPLE DATA message]], whether in host or stand-alone mode.
  
 
The [BODY] of the SAMPLE command is composed of one byte - the sensor input number:
 
The [BODY] of the SAMPLE command is composed of one byte - the sensor input number:

Latest revision as of 17:28, 3 November 2015

SAMPLE (4, 04h)

The SAMPLE command provides a snapshot of the data coming out of a single sensor input. Upon completion of the command the USB-microDig sends out the SAMPLE DATA message, whether in host or stand-alone mode.

The [BODY] of the SAMPLE command is composed of one byte - the sensor input number:

00000yyy: yyy = [0..7]; sensor input number, where the first sensor input number = 0, and the last (8th) sensor input number = 7

Example:

In order to sample sensor input 5 (provided it is turned off), the following message is sent:

240, 125, 0 {DEV}, 4 {SAMPLE}, 4 {yyy}, 247 (F0h, 7Dh, 00h, 04h, 04h, F7h)