Difference between revisions of "Firmware-73 Command-011"
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 | + | The DUMP STREAM command can be used to retrieve the sampling activation status of a port (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 [[Firmware-73 Command-001 |STREAM command]]. |
The DUMP STREAM command has no [BODY]. | The DUMP STREAM command has no [BODY]. | ||
+ | |||
+ | The [BODY] of the STREAM command consists of a single 7-bit byte with the following format : | ||
+ | |||
+ | {| | ||
+ | |00000yyy: | ||
+ | |- | ||
+ | | | ||
+ | |yyy = [0..7]; port number, where the first port number = 0, and the last (8th) port number = 7 | ||
+ | |} | ||
Example: | 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) | :240, 125, 0 {DEV}, 11 {DUMP STREAM}, 2, 247 (F0h, 7Dh, 00h, 0Bh, 02h, F7h) |
Revision as of 04:09, 20 November 2016
DUMP STREAM (11, 0Bh)
The DUMP STREAM command can be used to retrieve the sampling activation status of a port (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 has no [BODY].
The [BODY] of the STREAM command consists of a single 7-bit byte with the following format :
00000yyy: | |
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)