Intermec IV7 Basic Reader Interface Programmer's Reference Manual (BRI version - Page 76
GPIO or GPIOEDGE MASK, entered after expiration of the delay time
View all Intermec IV7 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 76 highlights
Chapter 4 - BRI Commands = This parameter specifies the name of the trigger. You must enclose the name in double quotes. The affect of the parameter depends on the optional parameters: • When you include optional parameters such as GPIO or MASK, the trigger is created and stored in the reader with the name given in the parameter. If a trigger already exists with the given name, it is updated with the new parameter information, and the trigger is reset if it is currently active. • When you omit optional parameters, the trigger with the name specified is deleted. [GPIO or GPIOEDGE MASK value FILTER delay] = These optional parameters are defined in the following description of how a trigger operates. When a trigger has been created, it immediately enters the DETECTION state. In the DETECTION state, the GPIO inputs are scanned until a fire condition is detected: • When GPIO is used, the fire condition occurs when the current GP input state masked (ANDed) with the mask parameter is equal to the value. • When GPIOEDGE is used, the fire condition is the transition from the state where the input state masked (ANDed) with the mask parameter is not equal to the value to a state where the input state masked (ANDed) with the mask parameter is equal to the value. When this input condition is true, a trigger event is stored on an internal queue and the trigger enters the FIRED state. The trigger remains in the FIRED state for the number of milliseconds given by the FILTER delay parameter, after which it re-enters the DETECTION state. If level triggering is used, when the DETECTION state is reentered after expiration of the delay time, the input state may not have changed (the fire condition still exists) and that causes a new "firing" of the trigger. GPIOEDGE trigger event messages, radio event messages, and tag event messages are sent directly without any internal queueing. Trigger event messages from level triggered GPIO triggers are queued internally in the reader. This queue has two states: • BLOCKED • READY The queue is initially in the BLOCKED state. Every 200 milliseconds, the event queued is monitored to determine whether the queue is in the READY state and there is at least one event queued. If both conditions are met, then a queued event is reported asynchronously from the reader to the host and the queue is returned to the BLOCKED state. The host must issue a TRIGGERREADY command to transition the queue to the READY state. The reader stores up to ten events. If more than ten events are held, the oldest event is overwritten. [ACTION] = This parameter allows the commands given by the macro to be executed upon detection of the fire condition. 64 Basic Reader Interface Programmer Reference Manual