Symbol CS4070 turns on Amber LED when asked to turn on Red LED

// Expert user has replied.
F Faiz Waghoo 1 year 4 months ago
11 2 0

I'm consuming Zebra's barcode_scanner_library_v2.6.6.0-release.aar for Android and setting CS4070's LED. But when I pass RMDAttributes.RMD_ATTR_VALUE_ACTION_LED_RED_ON it turns on Amber LED on the scanner and when I pass RMDAttributes.RMD_ATTR_VALUE_ACTION_LED_OTHER_ON it turns on Red LED on the scanner. So I wanted clarification whether is this intended behavior. If yes, then what is the reason behind this.

Note: I have only CS4070 so can't confirm if this behavior is same on other models too.

Please register or login to post a reply

2 Replies

R Riad Benallou

This behavior is indeed only with CS4070 . you can use the scanner name to Trigger other LED for RED , something like below

public void otherLEDOnClicked(View view) {
if(scannerName.startsWith(SCANNER_MODEL_CS4070)){
prepareInXML(RMDAttributes.RMD_ATTR_VALUE_ACTION_LED_RED_ON);
}else {
prepareInXML(RMDAttributes.RMD_ATTR_VALUE_ACTION_LED_OTHER_ON);
}
}

public void otherLEDOffClicked(View view) {
if(scannerName.startsWith(SCANNER_MODEL_CS4070)){
prepareInXML(RMDAttributes.RMD_ATTR_VALUE_ACTION_LED_RED_OFF);
}else {
prepareInXML(RMDAttributes.RMD_ATTR_VALUE_ACTION_LED_OTHER_OFF);
}
}

public void redLEDOnClicked(View view) {
if(scannerName.startsWith(SCANNER_MODEL_CS4070)){
prepareInXML(RMDAttributes.RMD_ATTR_VALUE_ACTION_LED_OTHER_ON);
}else{
prepareInXML(RMDAttributes.RMD_ATTR_VALUE_ACTION_LED_RED_ON);

}

}

public void redLEDOffClicked(View view) {
if(scannerName.startsWith(SCANNER_MODEL_CS4070)){
prepareInXML(RMDAttributes.RMD_ATTR_VALUE_ACTION_LED_OTHER_OFF);
}else {
prepareInXML(RMDAttributes.RMD_ATTR_VALUE_ACTION_LED_RED_OFF);
}
}
}

F Faiz Waghoo

Yeah I had thought of this workaround but I wasn't sure whether this was only specific to CS4070 or other models too. Thanks for the clarification.

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