CHANGING THE RFD8500 TRIGGER MODE

D Dennis Rene Chavez Hernriquez 2 years 5 months ago
15 0 0

I have the following routine to change the rfid barcode mode, the rfd8500 makes it perfect, but when I scan a barcode it makes a 3 sound and does not return the value that could be?

Code:

internal void SetTriggerMode(string mode)
{
//Try to connect
if (rfidReader != null && !rfidReader.IsConnected)
{
ConnectReader(LastConnectedReaderIndex);
}
if (isConnected)
{
ThreadPool.QueueUserWorkItem(o =>
{
try
{
if (mode.Equals("Barcode"))
{
rfidReader.Config.SetTriggerMode(ENUM_TRIGGER_MODE.BarcodeMode, true);
SetAttribute attributeInfo = new SetAttribute();
attributeInfo.Attnum = 1664;
attributeInfo.Atttype = "B";
attributeInfo.Attvalue = "1";
try
{
rfidReader.Config.SetAttribute(attributeInfo);
}
catch (InvalidUsageException e)
{
}
catch (OperationFailureException e)
{
}
}
else
{
rfidReader.Config.SetTriggerMode(ENUM_TRIGGER_MODE.RfidMode, true);
}
}
catch (OperationFailureException e)
{
e.PrintStackTrace();
}
});
}
}

CONTACT
Can’t find what you’re looking for?