Cambiata configurazione per scanner Honeywell.

Sistemati decimali in lista ul recupero materiale.
This commit is contained in:
2022-08-05 17:09:36 +02:00
parent 2960d0d4b4
commit 6a848e081a
3 changed files with 11 additions and 10 deletions

View File

@@ -9,7 +9,6 @@ import com.honeywell.aidc.BarcodeFailureEvent;
import com.honeywell.aidc.BarcodeReadEvent;
import com.honeywell.aidc.BarcodeReader;
import com.honeywell.aidc.ScannerUnavailableException;
import com.honeywell.aidc.UnsupportedPropertyException;
import java.util.ArrayList;
import java.util.HashMap;
@@ -124,12 +123,12 @@ public class HoneyWellBarcodeReader implements BarcodeReaderInterface {
// set the trigger mode to client control
try {
barcodeReader.setProperty(BarcodeReader.PROPERTY_TRIGGER_CONTROL_MODE,
BarcodeReader.TRIGGER_CONTROL_MODE_CLIENT_CONTROL);
} catch (UnsupportedPropertyException e) {
throw new Exception("Failed to apply properties");
}
// try {
// barcodeReader.setProperty(BarcodeReader.PROPERTY_TRIGGER_CONTROL_MODE,
// BarcodeReader.TRIGGER_CONTROL_MODE_CLIENT_CONTROL);
// } catch (UnsupportedPropertyException e) {
// throw new Exception("Failed to apply properties");
// }
Map<String, Object> properties = new HashMap<>();
@@ -146,7 +145,8 @@ public class HoneyWellBarcodeReader implements BarcodeReaderInterface {
properties.put(BarcodeReader.PROPERTY_EAN_13_CHECK_DIGIT_TRANSMIT_ENABLED, true);
properties.put(BarcodeReader.PROPERTY_UPC_A_CHECK_DIGIT_TRANSMIT_ENABLED, true);
properties.put(BarcodeReader.PROPERTY_TRIGGER_CONTROL_MODE, BarcodeReader.TRIGGER_CONTROL_MODE_AUTO_CONTROL);
properties.put(BarcodeReader.PROPERTY_TRIGGER_SCAN_MODE, BarcodeReader.TRIGGER_SCAN_MODE_READ_ON_RELEASE);
// properties.put(BarcodeReader.PROPERTY_TRIGGER_SCAN_DELAY, 500);
// Apply the settings
barcodeReader.setProperties(properties);