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

Error 2, Examples, This WRITE command with a [WRITE FIELD] parameter writes all tags found

Page 82 highlights

Chapter 4 - BRI Commands Error 2: MEMOVRN OK> This error indicates that the address used in the WRITE command was not available on the tag. This is only returned when the TAGTYPE attribute contains EPCC1G2. Error 3: PVERR OK> This error indicates that an incorrect password has been provided when writing to an EPCglobal Gen 2 tag, or the address being written has previously been locked. Error 4: PWERR OK> This error indicates that the tag did not have enough power to complete the WRITE command when writing to an EPCglobal Gen 2 tag. Examples: These examples demonstrate how to use the WRITE command. Example 1: WRITE INT(10,2)=3 HEX(12,2)=H12CD TAGTYPE=G2 The data field parameters specified above will write at tag memory address 10, and a value of 3 will be written. The data 0x12 and 0xCD will be written to locations 12 and 13 respectively. Example 2: WRITE STRING(18,5)="HELLO" TAGTYPE=G2 This WRITE command with a [WRITE FIELD] parameter writes all tags found with the data HELLO starting at address 18 in the tag. Each tag written responds with the status of the WRITE command terminated with a . When all tags are written, the BRI returns WROKOK>. If no tags are written, the BRI returns NOTAGOK>. Here is an example response when a single tag is written: WROK OK> For an EPCglobal Class 1 Gen 2 tag, this example returns the ADERR error response because the data to be written does not have an even length: WRITE STRING(10,5)="HELLO" ADERR Here is a valid WRITE command for an EPCglobal Class 1 Gen 2 tag: WRITE STRING(10,4)="GOOD" WROK OK> Example 3: WRITE STRING(10,5)="HELLO" TAGTYPE=G2 WHERE TAGID=H1234567890ABCDEF 70 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
70
Basic Reader Interface Programmer Reference Manual
Error 2:
MEMOVRN<CRLF>
OK><CRLF>
This error indicates that the address used in the WRITE command was not available
on the tag. This is only returned when the TAGTYPE attribute contains EPCC1G2.
Error 3:
PVERR<CRLF>
OK><CRLF>
This error indicates that an incorrect password has been provided when writing to
an EPCglobal Gen 2 tag, or the address being written has previously been locked.
Error 4:
PWERR<CRLF>
OK><CRLF>
This error indicates that the tag did not have enough power to complete the WRITE
command when writing to an EPCglobal Gen 2 tag.
Examples:
These examples demonstrate how to use the WRITE command.
Example 1:
WRITE INT(10,2)=3 HEX(12,2)=H12CD TAGTYPE=G2
The data field parameters specified above will write at tag memory address 10, and a
value of 3 will be written. The data 0x12 and 0xCD will be written to locations 12
and 13 respectively.
Example 2:
WRITE STRING(18,5)=“HELLO” TAGTYPE=G2
This WRITE command with a [WRITE FIELD] parameter writes all tags found with
the data
HELLO
starting at address 18 in the tag. Each tag written responds with the
status of the WRITE command terminated with a
<CRLF>
. When all tags are
written, the BRI returns
WROK<CRLF>OK><CRLF>
. If no tags are written, the BRI
returns
NOTAG<CRLF>OK><CRLF>
. Here is an example response when a single tag
is written:
WROK<CRLF>
OK><CRLF>
For an EPCglobal Class 1 Gen 2 tag, this example returns the ADERR error response
because the data to be written does not have an even length:
WRITE STRING(10,5)=“HELLO”<CRLF>
ADERR<CRLF>
Here is a valid WRITE command for an EPCglobal Class 1 Gen 2 tag:
WRITE STRING(10,4)=“GOOD”<CRLF>
WROK<CRLF>
OK><CRLF>
Example 3:
WRITE STRING(10,5)=”HELLO” TAGTYPE=G2
WHERE TAGID=H1234567890ABCDEF