Intermec IV7 Basic Reader Interface Programmer's Reference Manual (BRI version - Page 79

TRIGGERREADY, Example 2, Responses, Purpose, Command Shortcut, Syntax, Parameters

Page 79 highlights

Chapter 4 - BRI Commands Example 2: This example shows how to check how many trigger events are in the queue, remove all trigger events from the queue, and then check the queue again: TRIGGERQUEUE 3 OK> TRIGGERQUEUE FLUSH OK> Responses: TRIGGERQUEUE 0 OK> For details about EVENT messages, see "Understanding EVENT Messages" on page 110. TRIGGERREADY Purpose: Command Shortcut: Syntax: Parameters: Responses: Examples: This command is used by the application to transition the event queue for the reader to the READY state. When issued, this command enables the asynchronous reporting of the oldest trigger event in the event queue for the reader. Events are reported in the same order as they were originally queued. If you send a TRIGGERREADY command, but no trigger event has been configured, the BRI ignores the command and returns OK>. TRIGRDY TRIGGERREADY [CANCEL] [CANCEL] = This reserved keyword terminates a TRIGGERREADY command that was issued if no event has occurred yet. For details about EVENT messages, see "Understanding EVENT Messages" on page 110. These examples demonstrate how to use the TRIGGERREADY command. Example 1: In this example, the reported GPIO state 11 (8+2+1) indicates that when the trigger fired, inputs 0, 1, and 3 were all high, and input 2 was low: TRIGGERREADY OK> EVT:TRIGGER Dock door #43 GPIO 11 Example 2: In this example, you can use this command to terminate a TRIGGERREADY command that was issued if no event has occurred yet. TRIGGERREADY CANCEL Basic Reader Interface Programmer Reference Manual 67

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146

Chapter 4 — BRI Commands
Basic Reader Interface Programmer Reference Manual
67
Example 2:
This example shows how to check how many trigger events are in the queue, remove
all trigger events from the queue, and then check the queue again:
TRIGGERQUEUE<CRLF>
3<CRLF>
OK><CRLF>
TRIGGERQUEUE FLUSH<CRLF>
OK><CRLF>
TRIGGERQUEUE
0<CRLF>
OK><CRLF>
Responses:
For details about EVENT messages, see
“Understanding EVENT Messages” on
page 110
.
TRIGGERREADY
Purpose:
This command is used by the application to transition the event queue for the
reader to the READY state. When issued, this command enables the asynchronous
reporting of the oldest trigger event in the event queue for the reader. Events are
reported in the same order as they were originally queued.
If you send a TRIGGERREADY command, but no trigger event has been configured,
the BRI ignores the command and returns OK><CRLF>.
Command Shortcut:
TRIGRDY
Syntax:
TRIGGERREADY [CANCEL]<CRLF>
Parameters:
[CANCEL] = This reserved keyword terminates a TRIGGERREADY command that
was issued if no event has occurred yet.
Responses:
For details about EVENT messages, see
“Understanding EVENT Messages” on
page 110
.
Examples:
These examples demonstrate how to use the TRIGGERREADY command.
Example 1:
In this example, the reported GPIO state 11 (8+2+1) indicates that when the trigger
fired, inputs 0, 1, and 3 were all high, and input 2 was low:
TRIGGERREADY<CRLF>
OK><CRLF>
EVT:TRIGGER Dock door #43 GPIO 11<CRLF>
Example 2:
In this example, you can use this command to terminate a TRIGGERREADY
command that was issued if no event has occurred yet.
TRIGGERREADY CANCEL<CRLF>