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

Example 3, NOTAGRPT

Page 70 highlights

Chapter 4 - BRI Commands • If the NOTAGRPT attribute is disabled, the BRI returns OK> instead of NOTAGOK>. For help, see "NOTAGRPT" on page 93. If you want to match any tag that contains a tag ID starting with H123456, you can use the following command: READ TAGID WHERE TAGID=H123456?????????? The ?? wildcard character pair matches any character in that position. The question mark pairs must represent a two-character hex value: • TAGID=123??678 is not valid and causes an ERR response. • TAGID=12??5678 is valid. Note: Wildcard characters do not work with EPC Global Gen 2 tags. Also, if the TAGID being matched begins from the start of the TAGID information, you can leave off the question mark pairs. The following parameter is identical to the one above: READ TAGID WHERE TAGID=H123456 The question mark pairs are implied by the command line parser since a TAGID data type requires up to 16 characters and only six are specified. If fewer than the required number of characters are supplied, implied question mark pairs are inserted to fill the remainder of the field data. Example 3: READ TAGID WHERE STRING(18,5)="HELLO" This READ command with a parameter looks for data on the tag starting at tag memory address 18 through address 22 that matches the string HELLO. The command matches the text between the double quotes. The BRI returns the tag ID of each tag that contains this data string. Each tag that is found is followed by a sequence. When all tags are found matching the parameter, the BRI returns the tag identifier followed by OK>. If no tags are seen matching this data, the BRI returns NOTAGOK>. For example: H1234567890ABCDEF OK> Example 4: READ INT(18,2) This READ command with a [READ FIELD] parameter finds all tags and returns the integer value stored at tag memory addresses 18 and 19 on each tag found. The data is returned as a decimal integer value followed by a sequence. No tag ID information is returned in this case, only the data read from the specified address on each of the tags. When all tags are found and the data is returned, the BRI returns OK>. If no tags are seen, the BRI returns NOTAGOK>. If the [READ FIELD] parameter fails, the BRI returns RDERROK> for the result. For example: 1234 OK> 58 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
58
Basic Reader Interface Programmer Reference Manual
If the NOTAGRPT attribute is disabled, the BRI returns OK><CRLF> instead of
NOTAG<CRLF>OK><CRLF>. For help, see
“NOTAGRPT” on page 93
.
If you want to match any tag that contains a tag ID starting with H123456, you can
use the following command:
READ TAGID WHERE TAGID=H123456??????????
The
??
wildcard character pair matches any character in that position. The question
mark pairs must represent a two-character hex value:
TAGID=123??678
is not valid and causes an ERR response.
TAGID=12??5678
is valid.
Also, if the TAGID being matched begins from the start of the TAGID information,
you can leave off the question mark pairs. The following <DATA CONDITION>
parameter is identical to the one above:
READ TAGID WHERE TAGID=H123456
The question mark pairs are implied by the command line parser since a TAGID
data type requires up to 16 characters and only six are specified. If fewer than the
required number of characters are supplied, implied question mark pairs are
inserted to fill the remainder of the field data.
Example 3:
READ TAGID WHERE STRING(18,5)=“HELLO”
This READ command with a <DATA CONDITION> parameter looks for data on
the tag starting at tag memory address 18 through address 22 that matches the
string
HELLO
. The command matches the text between the double quotes. The BRI
returns the tag ID of each tag that contains this data string. Each tag that is found is
followed by a <CRLF> sequence. When all tags are found matching the <DATA
CONDITION> parameter, the BRI returns the tag identifier followed by
OK><CRLF>. If no tags are seen matching this data, the BRI returns
NOTAG<CRLF>OK><CRLF>. For example:
H1234567890ABCDEF<CRLF>
OK><CRLF>
Example 4:
READ INT(18,2)
This READ command with a [READ FIELD] parameter finds all tags and returns
the integer value stored at tag memory addresses 18 and 19 on each tag found. The
data is returned as a decimal integer value followed by a <CRLF> sequence. No tag
ID information is returned in this case, only the data read from the specified address
on each of the tags. When all tags are found and the data is returned, the BRI
returns OK><CRLF>. If no tags are seen, the BRI returns
NOTAG<CRLF>OK><CRLF>. If the [READ FIELD] parameter fails, the BRI returns
RDERR<CRLF>OK><CRLF> for the result. For example:
1234<CRLF>
OK><CRLF>
Note:
Wildcard characters do not work with EPC Global Gen 2 tags.