Sending tags from a Barcode Reader

All questions related to the usage of Rifidi TagStreamer

Moderators: Matt, kyle, Moderators

Post Reply
srinivas
Posts: 67
Joined: Fri May 27, 2011 6:31 am

Sending tags from a Barcode Reader

Post by srinivas » Thu Nov 03, 2011 9:04 am

Hi bppause,

I created a emulated barcode reader with the help of symbol reader which is already present in the emulator.

For sending tags through that emulated barcodereader i followed the algorithm (got in rifidi community) but it is not adding any tags.
Please provide me the properties for running a barcodereader(Symbol). currently i have done with inet_address.

Any help is much appreciated.
Waiting for your reply
with all my respect.

-srinivas.



Code: Select all
byte[] pass = [0x00, 0x00, 0x00, 0x00 ];
byte[] access = [0x00, 0x00, 0x00, 0x00 ];

tagSet = new HashSet();
tagSet.add(readerManager.createGen2Class1Tag((byte[])[53, -24, -98, -23, -7, -67, 93, 53, 5, 43, 58, 115],pass,access));
tagSet.add(readerManager.createGen2Class1Tag((byte[])[53, 98, -102, -105, -79, 81, 55, -29, 100, 12, 113, 118],pass,access));
tagSet.add(readerManager.createGen2Class1Tag((byte[])[53, -73, 8, 85, -64, -65, 88, 119, 7, 2, 53, 38],pass,access));
tagSet.add(readerManager.createGen2Class1Tag((byte[])[53, 85, -57, 38, -7, 101, 95, 86, 74, 102, 36, 11],pass,access));
tagSet.add(readerManager.createGen2Class1Tag((byte[])[53, 109, -86, 39, -4, 84, -111, 46, -115, -123, 54, 44],pass,access));
tagSet.add(readerManager.createGen2Class1Tag((byte[])[53, -102, -23, 53, 121, -89, -62, 60, -13, 26, 57, 40],pass,access));


properties = readerManager.getDefault("BarcodeReader");
properties.setReaderName("barcode1");
properties.setProperty("inet_address","127.0.0.1:30000");
readerName = readerManager.createReader(properties);
readerManager.start(readerName);

Thread.start{
while(true){
readerManager.addTags(readerName,0,tagSet);
sleep(1000);
readerManager.removeTags(readerName,0,tagSet);
sleep(1000);
};
};



srinivas

bppause
Posts: 425
Joined: Sat Oct 03, 2009 12:30 am
Organization: Pramari

Re: Sending tags from a Barcode Reader

Post by bppause » Thu Nov 03, 2011 4:16 pm

I want to understand your question better. Are you trying to add a barcode try when you move a bar code tag in the range of the barcode reader? My understanding is the symbol xr400 (http://www.symbol.com/product.php?productID=232) that comes with emulator is a fixed rfid reader one connects via tcp/ip. Though it can be used as an example most barcode reader are connected vis serial/usb so the awid mpr example would be more relevant as that gives an example of serial emulation.

Also the emulator developer docs can be found:

http://wiki.rifidi.org/index.php/Emulat ... on_summary

The reader user guides can be found here:

http://wiki.rifidi.org/index.php/Reader_Guides

srinivas
Posts: 67
Joined: Fri May 27, 2011 6:31 am

Re: Sending tags from a Barcode Reader

Post by srinivas » Fri Nov 04, 2011 1:12 am

Hi bppause,

For making BarcodeReader functionality i followed the Symbol reader , can i do so?.Please enlighten me whether Symbol supports Barcode functionality.


Regards,
Srinivas.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest