Cannot Decode RFID Tag

177 Views Asked by At

Thanks for taking a look.

I'll include a full description here as I'm not sure what might be relevant to solving my question.

Background Information:

My current project involves reading RFID (Radio Frequency ID) tags. To achieve this I'm using a Rasberry Pi with the Fonkan FM 503 RFID Reader. So far I got it to work using the code below and can correctly read and decode the test RFID that came with it. See the manufacturers instructions and my code below:

rfid reader overview

rfid reader commands

import serial
import time
from subprocess import Popen

ser = serial.Serial(port='/dev/ttyUSB0', baudrate = 38400, parity=serial.PARITY_NONE, stopbits=serial.STOPBITS_ONE, bytesize=serial.EIGHTBITS, timeout=1)

while 1:

  ser.write(b"\nU\r")
  epcs = ser.read(ser.inWaiting())
  epcs = epcs.decode("ascii").replace("\r", "").replace("\n", "")
  time.sleep(1)
  if not epcs == "Q" and not epcs == "U" and not epcs == "":
    epcs = epcs.split("U")
    for epc in epcs:
        print(epc)

This renders the following tag value in hexadecimal:

3000E280699500005011153664F378DF

With this EPC I was able to go to the GS1 decoder page and see that the tag decodes to get the information contained within.

gs1 decoder working

The Question:

Encouraged by this I decided to try and find some more tags to read so I went to Zara Home a home furnishing store in Spain where RFID is used to track inventory and bought some bowls like the one below:

zara home bowl

These came with the following RFID tags stuck to them:

rfids_top

rfid bottom

When reading these with my code above, I get the following output EPC values:

400009CA3D5A706573802B1D46418C4004235E73 (Returns Total value is out of range)
440009CA2662748C77002CFDDABC286004239E2D (Returns Header 68 is not a known EPC header)
400009CA3D5A706573802B1D467D8C400423D9B6 (Returns Total value is out of range)
400009CA3D5A6D58338026D0DEF60F400423DC64 (Can be decoded)

The problem is that I can't decode these using the GS1 decoder page or pyepc which is a decoding library. I also tried other online tools but being very new to this field couldn't really understand the documentation about different types of tags and the data within them.

enter image description here

I'd like to ask:

  • Are these EPC codes and am I reading the tags correctly?
  • How can I decode these EPC codes? (I'd like to get the company Id)
0

There are 0 best solutions below