Receives Commands

<< Click to Display Table of Contents >>

 

Receives Commands

Read-Only

 

N1

3 (three)

N2

Command's index

N3

Variable's index

N4

Offset of RX message

 

Only receives an RX response packet, normally used with devices that continuously send data, without the need to receive a TX request packet. Returns the variable fields from a response message, one for each Block Element, if using a Block Tag, starting with the variable's index informed in the N3 parameter.

Use the N4 parameter so that the command analyzes the response frame with an offset relative to the first character of the message. For example, to discard the first 100 bytes of a message, configure the N4 parameter to 100.

For a better reception of continuous data, users can reduce IOKit's time-out to a very low value, something around 200 ms. In this type of continuous data reception, a time-out is not aimed to monitor a limit for responses to TX requests, simply because they are not present in this type of communication.

Was this page useful?