Home Internet of Things Aerospace Apparel Energy Defense Health Care Logistics Manufacturing Retail

Ask The Experts Forum

BlogsAsk The Experts ForumHow Can I Read a Tag ID Along With an EPC from an ALR-9650 Reader?

How Can I Read a Tag ID Along With an EPC from an ALR-9650 Reader?

Posted By RFID Journal, 02.10.2015

What would I need to do?

—Name withheld

———

To answer your question, I reached out to Alien Technology. The company told me that since AcqG2Read is not a function available on the ALR-9650 reader, you would need to use a software script to capture the tag ID (TID). Alien provided this example of a script that may be run to perform a series of subcommands that would read the TID data from a tag:

require 'alienconfig'
require 'alienreader'
begin
#Get Reader Configuration
config = AlienConfig.new("config.dat")
ipaddress = config["reader_ip_address"]
port = config["reader_port"]
username = config["username"]
password = config["password"]

r = AlienReader.new #Create Reader
r.open(ipaddress, port, username, password)
while(true)
if r.open(ipaddress) #if reader Connected
taglist = r.taglist.split("\r\n") #pull full taglist

if(taglist != "(No Tags)\0")
for tag in taglist#each tag in taglist
tagid = tag.split(",")[0].split(":")[1].gsub(" ", "") #remove spaces
# Separate Bits for Masking
bitsplittagid = tagid.slice(0, 2) + " " + tagid.slice(2,2) + " " + tagid.slice(4,2) + " " + tagid.slice(6,2) + " " + tagid.slice(8,2) + " " +
tagid.slice(10,2) + " " + tagid.slice(12,2) + " " + tagid.slice(14,2) + " " + tagid.slice(16,2) + " " + tagid.slice(18,2) + " " +
tagid.slice(20,2) + " " + tagid.slice(22,2) + " " + tagid.slice(24,2)
r.acqg2mask("1,32,94," + bitsplittagid) #enter mask
r.clear#clear taglist
tid = r.g2read("1 0 2")#pull read
puts bitsplittagid + " : " + tid #Display epc and tid
sleep(1) #wait one second
end
end
r.close
end
end
rescue #recover error
r.close
puts $!
retry
End

—Mark Roberti, Founder and Editor, RFID Journal

Login and post your comment!

Not a member?

Signup for an account now to access all of the features of RFIDJournal.com!

Next Post
Who Offers Passive RFID Transponders tha...
Previous Post
Are There Any Active UHF Tags That Can B...
PREMIUM CONTENT
Case Studies Features Best Practices How-Tos
RFID JOURNAL EVENTS
Live Events Virtual Events Webinars
ASK THE EXPERTS
Simply enter a question for our experts.
TAKE THE POLL
JOIN THE CONVERSATION ON TWITTER
Loading
RFID Journal LIVE! RFID in Health Care LIVE! LatAm LIVE! Brasil LIVE! Europe RFID Connect Virtual Events RFID Journal Awards Webinars Presentations
© Copyright 2002-2016 RFID Journal LLC.
Powered By: Haycco