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("rn") #pull full taglist
if(taglist != "(No Tags) ")
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
Previous Post Are There Any Active UHF Tags That Can Be Read Using an EPC Class 1 Gen 2 Reader? »