Table of Contents

.bp Block Permalock transponder Command

This command is used to read or write the block permalock status on supported transponders. Block permalock is an optional command in the Class 1 Generation 2 Air Protocol so requires both the reader and the transponder to support the block permalock command for it to be used. With block permalock the user memory of a transponder is split into several manufacturer defined blocks. These blocks each have a write protect bit which can be set but NOT reset (hence permalock). The block permalock command can be used to read the status of these permalock flags or to write them. To read the permalock flags specify the start index offset (-do) and the number of blocks (-dl) to read the status of. The returned data is a bit pattern of lock status, 1 for locked 0 for not locked. To write the permalock flags specify the start index offset (-do), the number of blocks (-dl), the mask of the blocks to lock (-dm). Setting the bit index for the block permalock to 1 will permalock the block, setting to 0 will leave the block in its current state (permalocked or not).

Android iOS .NET
link coming soon link coming soon BlockPermalockTransponderCommand

Parameters

Identifier Values Description
-al on/off Perform an alert after a successful write using the current alert Parameters from the .al command
-ap xxxxxxxx Access password, where xxxxxxxx is an 8 character ASCII Hex value
-c on/off Include EPC checksum response
-dm xxxx..zzzz The mask data of blocks to lock in 4 character ASCII Hex words. Up to a maximum of 16 words
-dl xx Length in words of the data to read or write, where xx is a 2 character ASCII Hex value up to a maximum of 10hex
-do xxxx Mask data offset specifies the starting address for the mask, in units of 16 manufacturer defined blocks, where xxxx is a 4 character ASCII Hex value
-dt on/off Include date time response
-e on/off Include EPC PC information response
-io on/off Inventory only, if set to on then no select will be performed before the inventory round phase is started
-ix on/off Index number each transponder response
-m rd/wr Set the mode to either read (rd) the block permalock status or write (wr) the block permalock bits
-n No action, just set the parameters
-o nn Output power in dBm, where nn is in the range 10 to 29
-p List the parameter and their current values
-ql all/nsl/sl query Select
-qs s0/s1/s2/s3 query Session
-qt a/b query Target
-qv nn Q value (0..15)
-r on/off Include transponder RSSI response
-sa n Select action
-sb epc/tid/usr Bank to use for the select mask
-sd xx..zz Select mask data in 2 character ASCII Hex bytes padded to ensure full bytes, up to a maximum of 32 bytes.
-sl xx Length in bits of the select mask, where xx is a 2 character ASCII Hex value
-so xxxx Number of bits from the start of the block to the start of the select mask, where xxxx is a 4 character ASCII Hex value
-st s0/s1/s2/s3/sl Select target
-x Reset the parameters to defaults

Parameter detail

-al

Perform an alert after a successful write using the current alert Parameters from the .al command

TypeEnum
Valueon/off
Rangeon/off
Order In Interpretation2
Default Valueon

-ap

Access password, where xxxxxxxx is an 8 character ASCII Hex value

TypeHEX
Valuexxxxxxxx
Range8 Hex digits
Order In Interpretation24
Default Value00000000

-c

Include EPC checksum response

TypeEnum
Valueon/off
Rangeon/off
Order In Interpretation3
Default Valueoff

-dm

The mask data of blocks to lock in 4 character ASCII Hex words. Up to a maximum of 16 words

TypeHEX
Valuexxxx..zzzz
Rangeinteger numberof HEX words
Order In Interpretation22
Default Value

-dl

Length in words of the data to read or write, where xx is a 2 character ASCII Hex value up to a maximum of 10hex

TypeHEX
Valuexx
Range2 Hex digits
Order In Interpretation21
Default Value00

-do

Mask data offset specifies the starting address for the mask, in units of 16 manufacturer defined blocks, where xxxx is a 4 character ASCII Hex value

TypeHEX
Valuexxxx
Range4 Hex digits
Order In Interpretation23
Default Value0000

-dt

Include date time response

TypeEnum
Valueon/off
Rangeon/off
Order In Interpretation7
Default Valueoff

-e

Include EPC PC information response

TypeEnum
Valueon/off
Rangeon/off
Order In Interpretation4
Default Valueoff

-io

Inventory only, if set to on then no select will be performed before the inventory round phase is started

TypeEnum
Valueon/off
Rangeon/off
Order In Interpretation14
Default Valueoff

-ix

Index number each transponder response

TypeEnum
Valueon/off
Rangeon/off
Order In Interpretation8
Default Valueoff

-m

Set the mode to either read (rd) the block permalock status or write (wr) the block permalock bits

TypeEnum
Valuerd/wr
Rangerd/wr
Order In Interpretation5
Default Valuerd

-n

No action, just set the parameters

TypeSwitch
Value
Range
Order In Interpretation26

-o

Output power in dBm, where nn is in the range 10 to 29

TypeOutput power
Valuenn
Range
Order In Interpretation13
Default Value29

-p

List the parameter and their current values

TypeSwitch
Value
Range
Order In Interpretation25

-ql

query Select

TypeEnum
Valueall/nsl/sl
Rangeall/nsl/sl
Order In Interpretation17
Default Valueall

-qs

query Session

TypeEnum
Values0/s1/s2/s3
Ranges0/s1/s2/s3
Order In Interpretation18
Default Values2

-qt

query Target

TypeEnum
Valuea/b
Rangea/b
Order In Interpretation19
Default Valueb

-qv

Q value (0..15)

TypeOutput power
Valuenn
Range
Order In Interpretation20
Default Value4

-r

Include transponder RSSI response

TypeEnum
Valueon/off
Rangeon/off
Order In Interpretation6
Default Valueoff

-sa

Select action

Parameter

n=

Matching ActionNon Matching Action
SL FlagSession FlagSL FlagSession Flag
0assertSet AdeassertSet B
1assertSet Anothingnothing
2nothingnothingdeassertSet B
3toggletogglenothingnothing
4deassertSet BassertSet A
5deassertSet Bnothingnothing
6nothingnothingassertSet A
7nothingnothingtoggletoggle
TypeNumeric
Valuen
Range
Order In Interpretation15
Default Value4

-sb

Bank to use for the select mask

TypeEnum
Valueepc/tid/usr
Rangeepc/tid/usr
Order In Interpretation9
Default Valueepc

-sd

Select mask data in 2 character ASCII Hex bytes padded to ensure full bytes, up to a maximum of 32 bytes.

TypeHEX
Valuexx..zz
RangeInteger number of HEX bytes
Order In Interpretation12
Default Value

-sl

Length in bits of the select mask, where xx is a 2 character ASCII Hex value

TypeHEX
Valuexx
Range2 Hex digits
Order In Interpretation11
Default Value00

-so

Number of bits from the start of the block to the start of the select mask, where xxxx is a 4 character ASCII Hex value

TypeHEX
Valuexxxx
Range4 Hex digits
Order In Interpretation10
Default Value0000

-st

Select target

TypeEnum
Values0/s1/s2/s3/sl
Ranges0/s1/s2/s3/sl
Order In Interpretation16
Default Values2

-x

Reset the parameters to defaults

TypeSwitch
Value
Range
Order In Interpretation1

Parameter Interpretation Order

-x, -al, -c, -e, -m, -r, -dt, -ix, -sb,-so, -sl, -sd, -o, -io, -sa, -st, -ql, -qs, -qt, -qv, -dl, -dm, -do, -ap, -p, -n

Parameter Defaults

-al on, -ap 00000000, -c off, -dm, -dl 00, -do 0000, -dt off, -e off, -io off, -ix off, -m rd, -o 29, -ql all, -qs s2, -qt b, -qv 4, -r off, -sa 4, -sb epc, -sd, -sl 00, -so 0000, -st s2

Response Headers

CR CS DT EA EB EP ER IX ME OK PC PR RI LS

Examples

CommandResponseAction
.bp -x -sd1166FFFFAAAAFFFF -sl40 -so0020 -m wr -dl01 -do0000 -dm1000CS: .bp -x -sd1166FFFFAAAAFFFF -sl40 -so0020 -m wr -dl01 -do0000 -dm1000

EP: 1166FFFFAAAAFFFF

LS: Lock Success

OK:

Block permalock block 3 of transponder with EPC 1166FFFFAAAAFFFF
.bp -x -sd1166FFFFAAAAFFFF -sl40 -so0020 -m rd -dl01 -do0000CS: .bp -x -sd1166FFFFAAAAFFFF -sl40 -so0020 -dl01 -do0000 -m rd

EP: 1166FFFFAAAAFFFF

RD: 0000

OK:

Read the block permalock status of transponder with EPC 1166FFFFAAAAFFFF

(no blocks locked)