Intermec IF2 Basic Reader Interface Programmer's Reference Manual (BRI version - Page 51

Syntax, Parameters, Examples, FLEXQUERY

Page 51 highlights

Chapter 4 - BRI Commands Syntax: Parameters: BLOCKPERMALOCK [flex_query_selector] LOCK [data_field]*[TAGTYPE=tagtype list] [WHERE ] [PASSWORD=] [flex_query_selector] = This parameter modifies the command for certain types of EPCC1G2 tags. For details, see "FLEXQUERY" on page 47. = Specifies a bank, offset, length, and mask in which the Permalock field is to operate. For example: HEX(:,)=H = The bank should always be 3. = This parameter is the BlockPtr parameter of the EPCGlobal Gen2 specification. It specifies the starting address for the Mask field in units of 16 blocks. For example, 0 indicates block 0, 1 indicates block 16. = This parameter is the BlockRange parameter of the specification. It specifies the range of the Mask field starting at and ending (16*)1 blocks later. = Contains a bit mask indicating which blocks in the range should be locked. One bits indicate that a block should be locked. Zero bits indicate that a block is left alone. The most significant bit of corresponds to the lowest address block. must be specified as a hexadecimal string and it must contain 16 bits for each unit of . For example, when is 1, must consist of 2 hex pairs. Examples: These examples demonstrate how to use the BLOCKPERMALOCK command. Example 1: BLOCKPERMALOCK LOCK HEX(3:0,1)=H0800 H0123456789ABCDEF01234567 LCKOK Lock the 5th block of user memory. Example 2: BLOCKPERMALOCK LOCK HEX(3:2,1)=H0001 H0123456789ABCDEF01234567 LCKOK Lock the 48th block of user memory. Example 3: BLOCKPERMALOCK LOCK HEX(3:0,1)=H0800 HEX(3:2,1)=H0001 H0123456789ABCDEF01234567 LCKOK Lock the 5th and 48th blocks of user memory. Example 4: BLOCKPERMALOCK LOCK HEX(3:0,3)=H080000000001 H0123456789ABCDEF01234567 LCKOK Lock the 5th and 48th blocks of user memory. Basic Reader Interface Programmer Reference Manual 39

  • 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
39
Syntax:
BLOCKPERMALOCK [flex_query_selector] LOCK
[data_field]*[TAGTYPE=tagtype list] [WHERE <data condition>]
[PASSWORD=<access_password>]
Parameters:
[flex_query_selector] = This parameter modifies the command for certain types of
EPCC1G2 tags. For details, see
“FLEXQUERY” on page 47
.
<data_field> = Specifies a bank, offset, length, and mask in which the Permalock
field is to operate. For example:
HEX(<Bank>:<Offset>,<Length>)=H<Data>
<Bank> = The bank should always be 3.
<Offset> = This parameter is the BlockPtr parameter of the EPCGlobal Gen2
specification. It specifies the starting address for the Mask field in units of 16
blocks. For example, <Offset> 0 indicates block 0, <Offset> 1 indicates block 16.
<Length> = This parameter is the BlockRange parameter of the specification. It
specifies the range of the Mask field starting at <Offset> and ending (16*<Length>)-
1 blocks later.
<Data> = Contains a bit mask indicating which blocks in the range should be
locked. One bits indicate that a block should be locked. Zero bits indicate that a
block is left alone. The most significant bit of <Data> corresponds to the lowest
address block. <data> must be specified as a hexadecimal string and it must contain
16 bits for each unit of <length>. For example, when <length> is 1, <data> must
consist of 2 hex pairs.
Examples:
These examples demonstrate how to use the BLOCKPERMALOCK command.
Example 1:
BLOCKPERMALOCK LOCK HEX(3:0,1)=H0800
H0123456789ABCDEF01234567 LCKOK
Lock the 5th block of user memory.
Example 2:
BLOCKPERMALOCK LOCK HEX(3:2,1)=H0001
H0123456789ABCDEF01234567 LCKOK
Lock the 48th block of user memory.
Example 3:
BLOCKPERMALOCK LOCK HEX(3:0,1)=H0800 HEX(3:2,1)=H0001
H0123456789ABCDEF01234567 LCKOK
Lock the 5th and 48th blocks of user memory.
Example 4:
BLOCKPERMALOCK LOCK HEX(3:0,3)=H080000000001
H0123456789ABCDEF01234567 LCKOK
Lock the 5th and 48th blocks of user memory.