Intermec CV30 Intermec Terminal Emulator (ITE) Programmer's Reference Manual - Page 134

VT/ANSI Data Stream Control Character Method, Return Codes for the RFID (#W) Write Command, Example 1

Page 134 highlights

Chapter 3 - Extended Commands Example 1: Write one 11-byte string and one integer to any tag: Use the SWTT mask once during the entire command. b#WXXXXXXXXXXXXS20001800011HELLO WORLD,I200029000041234# Example 2: To support variable length EPCIDs, the SWTT can start with a "V" character and terminate with a "V" character. EPC Class 1 Gen 2 tags do not support a wild card in the EPCID filter. If a wild card is part of the EPCID, then error #9 is returned from the #W command Set the reader to write EPC Class 1 Gen 2 tags which have an EPCID starting with 0001. Only to these tags write the string DATA to bank 3 (user data): b#WV0001VS30000000004DATA# Guidelines for using this command are as follows: • Since the TagID or EPCID is a setting of hex pairs, you need to ensure that you send an even number of characters. If not, then communications between the computer and the RFID reader generates an error and the reader state on the ITE toolbar is modified to show the new error state. • If the TagType is set to multiple types, then setting a filter on TagID or EPCID generates error #9. • If you write data to EPC Class 1 Gen 2 tags, then all data written to the tags must be in words. If you attempt to write data that is not in a word format, then a communication error occurs between the reader and the computer. The reader state on the ITE toolbar is modified to show the new error state. • The SWTT mask does not apply to Phillips U-Code v1.19 tags. VT/ANSI Data Stream Control Character Method This method uses the control characters APC (0x9f) and ST(0x9c) to encapsulate the extended command. This method is faster since it is not written to the display. You do not need to clear the screen or move the cursor because the encapsulated command executes in the background. The format is exactly the same as the conventional method within the APC and ST control characters. Example: This takes the previous example and uses the control character method. It writes the "Hello World" string to all tags starting at offset 18. At the 29th location in the tag, the "4660" data is written because the integer data is sent as hex data and hex "1234" is a decimal "4660." ^9F#WXXXXXXXXXXXXS20001800011HELLO WORLD,I200029000041234#^9C Return Codes for the RFID (#W) Write Command The return code is a status sent to the host computer in the \\x format indicating whether the extended command was successful. The return codes are listed in the following chart. Return Codes for RFID (#W) Write Command Code 0 1 Description Good status, transaction complete Incorrect setting for SWTT not '0' - '9' or 'A' - 'F' or 'X' or "V" 122 Intermec Terminal Emulator (ITE) Programmer's 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
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184

Chapter 3 — Extended Commands
122
Intermec Terminal Emulator (ITE) Programmer’s Reference Manual
Example 1:
Write one 11-byte string and one integer to any tag: Use the SWTT mask once
during the entire command.
b
#WXXXXXXXXXXXXS20001800011HELLO WORLD,I200029000041234#
Example 2:
To support variable length EPCIDs, the SWTT can start with a “V” character and
terminate with a “V” character. EPC Class 1 Gen 2 tags do not support a wild card in
the EPCID filter. If a wild card is part of the EPCID, then error #9 is returned from
the #W command
Set the reader to write EPC Class 1 Gen 2 tags which have an EPCID starting with
0001. Only to these tags write the string DATA to bank 3 (user data):
b
#WV0001VS30000000004DATA#
Guidelines for using this command are as follows:
Since the TagID or EPCID is a setting of hex pairs, you need to ensure that you
send an even number of characters. If not, then communications between the
computer and the RFID reader generates an error and the reader state on the ITE
toolbar is modified to show the new error state.
If the TagType is set to multiple types, then setting a filter on TagID or EPCID
generates error #9.
If you write data to EPC Class 1 Gen 2 tags, then all data written to the tags must
be in words. If you attempt to write data that is not in a word format, then a
communication error occurs between the reader and the computer. The reader
state on the ITE toolbar is modified to show the new error state.
The SWTT mask does not apply to Phillips U-Code v1.19 tags.
VT/ANSI Data Stream Control Character Method
This method uses the control characters APC (0x9f) and ST(0x9c) to encapsulate the
extended command. This method is faster since it is not written to the display. You
do not need to clear the screen or move the cursor because the encapsulated
command executes in the background. The format is exactly the same as the
conventional method within the APC and ST control characters.
Example:
This takes the previous example and uses the control character method. It writes the
“Hello World” string to all tags starting at offset 18. At the 29th location in the tag,
the “4660” data is written because the integer data is sent as hex data and hex “1234”
is a decimal “4660.”
^9F#WXXXXXXXXXXXXS20001800011HELLO WORLD,I200029000041234#^9C
Return Codes for the RFID (#W) Write Command
The return code is a status sent to the host computer in the
\\x<cr>
format
indicating whether the extended command was successful. The return codes are
listed in the following chart.
Return Codes for RFID (#W) Write Command
Code
Description
0
Good status, transaction complete
1
Incorrect setting for SWTT not '0' - '9' or 'A' - 'F' or 'X' or “V”