Skip to content

Filter Value #5

Description

@rG2ee

Hello,
this is more like a question rather than an issue. I tried

SGTIN(company_prefix="0614141", indicator="8", item_ref="12345", serial_number="12345").encode(SGTIN.BinarySchemes.SGTIN_96, SGTIN.FilterValues.CASE)
>> '3054257BF7194E4000003039'


SGTIN(company_prefix="0614141", indicator="8", item_ref="12345", serial_number="12345").encode(SGTIN.BinarySchemes.SGTIN_96, SGTIN.FilterValues.RESERVED_2)
>> '30B4257BF7194E4000003039'

So the third bit is reserved for filtering. Is there a way to access the filter from an encoded epc like this:

SGTIN.decode('30B4257BF7194E4000003039').filter_value

Every other attribute is stored on the instance but I haven't found the filter.

Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions