Difference between revisions of "Firmware-73 Command-011"

From I-CubeX Wiki
Jump to: navigation, search
(Created page with "==DUMP STREAM (11, 0Bh)== The DUMP STREAM command can be used to retrieve the sampling activation status of an input channel (configured for either an analog sensor or an I2C...")
 
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
==DUMP STREAM (11, 0Bh)==
 
==DUMP STREAM (11, 0Bh)==
  
The DUMP STREAM command can be used to retrieve the sampling activation status of an input channel (configured for either an analog sensor or an I2C sensor) of a USB-microDig. The command can be used in both host and stand-alone modes of operation. Upon completion of the DUMP STREAM command the USB-microDig sends out the same message as the [[STREAM command]].
+
The DUMP STREAM command can be used to retrieve the sampling activation status of a port, whether configured for an analog sensor or a digital (I2C) sensor. The command can be used in both host and stand-alone modes of operation. Upon completion of the DUMP STREAM command the USB-microDig sends out the same message as the [[Firmware-73 Command-001 |STREAM command]].
  
The DUMP STREAM command has no [BODY].
+
The [BODY] of the STREAM command consists of a single 7-bit byte with the following format :
 +
 
 +
{|
 +
|0000xyyy:
 +
|x = 1; apply the command to all ports (yyy is ignored), ie. send 8 messages with the status for each port
 +
|-
 +
|
 +
|yyy = [0..7]; port number, where the first port number = 0, and the last (8th) port number = 7
 +
|}
  
 
Example:
 
Example:
  
To retrieve the activation status of input channel 2
+
In order to retrieve the activation status of port 2 the following message is sent:
  
 
:240, 125, 0 {DEV}, 11 {DUMP STREAM}, 2, 247 (F0h, 7Dh, 00h, 0Bh, 02h, F7h)
 
:240, 125, 0 {DEV}, 11 {DUMP STREAM}, 2, 247 (F0h, 7Dh, 00h, 0Bh, 02h, F7h)

Latest revision as of 04:41, 20 November 2016

DUMP STREAM (11, 0Bh)

The DUMP STREAM command can be used to retrieve the sampling activation status of a port, whether configured for an analog sensor or a digital (I2C) sensor. The command can be used in both host and stand-alone modes of operation. Upon completion of the DUMP STREAM command the USB-microDig sends out the same message as the STREAM command.

The [BODY] of the STREAM command consists of a single 7-bit byte with the following format :

0000xyyy: x = 1; apply the command to all ports (yyy is ignored), ie. send 8 messages with the status for each port
yyy = [0..7]; port number, where the first port number = 0, and the last (8th) port number = 7

Example:

In order to retrieve the activation status of port 2 the following message is sent:

240, 125, 0 {DEV}, 11 {DUMP STREAM}, 2, 247 (F0h, 7Dh, 00h, 0Bh, 02h, F7h)