Click or drag to resize

RfidBank01FromBackscatterBytes Method

Creates an RfidBank01 instance having the specified contents of the PC, XPC, and EPC/UII portion. The most significant bit of element 0 of the specified byte array becomes bit 10 (hex). Elements 0 and 1 of the specified byte array become bits 10 (hex) through 1F (hex) (the PC bits). If the XPC indicator (bit 16 hex, extracted from element 0 of the specified byte array) is zero, then the remaining elements of the byte array become bits 20 (hex) onward, with the most significant bit of element 2 becoming bit 20 (hex). If the XPC indicator is one, then elements 2 and 3 of the specified byte array become the XPC bits 210 (hex) through 21F (hex), and the remaining elements of the specified byte array become bits 20 (hex) onward (with the most significant bit of element 4 becoming bit 20 hex). This interpretation of the byte array corresponds to the way that the contents of Bank 01 are backscattered in the Gen2/18000-6C Air Interface protocol, excluding the CRC bits.

If adjustEpcUiiLength is false, then sufficient zero padding bits are added to make the total length of the EPC/UII portion a multiple of 16 bits (that is, either 0 or 8 bits of padding are added), and the PC length bits are calculated based on this padded length, replacing whatever PC length value was provided in the input.

If adjustEpcUiiLength is true, then the contents of the EPC/UII portion is either right-truncated or padded on the right with zeros to match the length implied by the PC bits provided in the input.

If the specified byte array is smaller than two bytes (or four if the XPC indicator is one), then additional zero bytes are assumed to bring the total size to two (or four if the XPC indicator is one), for the purposes of parsing the input as specified above.


Namespace: GS1.EPC.Api
Assembly: epc-epconly (in epc-epconly.dll) Version: 2.1.0.28145 (2.1.0.0)
Syntax
C#
public static RfidBank01 FromBackscatterBytes(
	byte[] bytes,
	bool adjustEpcUiiLength
)

Parameters

bytes  Byte
 
adjustEpcUiiLength  Boolean
 

Return Value

RfidBank01
See Also