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);
};
};