Intermec IP2L Basic Reader Interface Programmer's Reference Manual (BRI versio - Page 72

READGPI, REPEAT, Possible Values Returned for a Reader With 2 General Purpose Outputs

Page 72 highlights

Chapter 4 - BRI Commands This command only include tags where the AFI bits equal hexadecimal 0x95. READGPI Purpose: This command returns a value that indicates the current state of all the general purpose (GP) input lines available on a specific reader. The value returned is an integral representation of the bit field corresponding to the output pins available on the reader device. The READGPIO command is the same as the READGPI command, and has been included to maintain backwards compatibility with previous versions of the BRI. For details, see the documentation that shipped with the reader. Note that regardless of the hardware, the BRI will return the following when all of the inputs on a reader are active: Syntax: Examples: READGPI 0 OK> READGPI Example 1: In this example, a reader has 2 general purpose outputs. The following table describes the possible values returned by the BRI for the READGPI and the associated states of each of the inputs. Possible Values Returned for a Reader With 2 General Purpose Outputs BRI Value 0 1 2 3 Pin 1 State Active Active Inactive Inactive Pin 2 State Active Inactive Active Inactive Example 2: Use this command to check the state of all GP input lines in a reader: READGPI The response is formatted as follows for a reader with four GP input lines: 15 OK> The code indicates that all four inputs are ON. REPEAT Purpose: This command causes the last READ or WRITE command to be executed again. When a READ or WRITE command is executed by the BRI, all command line parameters are stored in the reader. If a complex command has been sent, the REPEAT command provides a shortcut method of executing the command multiple times without sending the entire command sequence. 60 Basic Reader Interface Programmer Reference Manual

  • 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
60
Basic Reader Interface Programmer Reference Manual
This command only include tags where the AFI bits equal hexadecimal 0x95.
READGPI
Purpose:
This command returns a value that indicates the current state of all the general
purpose (GP) input lines available on a specific reader. The value returned is an
integral representation of the bit field corresponding to the output pins available on
the reader device. The READGPIO command is the same as the READGPI
command, and has been included to maintain backwards compatibility with
previous versions of the BRI. For details, see the documentation that shipped with
the reader.
Note that regardless of the hardware, the BRI will return the following when all of
the inputs on a reader are active:
READGPI<CRLF>
0<CRLF>
OK><CRLF>
Syntax:
READGPI<CRLF>
Examples:
Example 1:
In this example, a reader has 2 general purpose outputs. The following table
describes the possible values returned by the BRI for the READGPI and the
associated states of each of the inputs.
Example 2:
Use this command to check the state of all GP input lines in a reader:
READGPI<CRLF>
The response is formatted as follows for a reader with four GP input lines:
15<CRLF>
OK><CRLF>
The code indicates that all four inputs are ON.
REPEAT
Purpose:
This command causes the last READ or WRITE command to be executed again.
When a READ or WRITE command is executed by the BRI, all command line
parameters are stored in the reader. If a complex command has been sent, the
REPEAT command provides a shortcut method of executing the command multiple
times without sending the entire command sequence.
Possible Values Returned for a Reader With 2 General Purpose Outputs
BRI Value
Pin 1 State
Pin 2 State
0
Active
Active
1
Active
Inactive
2
Inactive
Active
3
Inactive
Inactive