Zebra RFID Enteprise Browser

A Alex Wiese 3 years 5 months ago
26 3 0

After calling rfid.enumerate I get this error:
Error code 2004: RFID service is not installed or available Failure in resolving dependency.

v1

var log = function(s){
document.getElementById("output").innerHTML += s + "";
}
function initRfid() {
rfid.statusEvent = "statusHandler(%json)";
log("set enumerate handler");
rfid.enumRFIDEvent = "enumerateRFIDHandler(%json)";
log("calling enumerate");
rfid.enumerate();
}
function enumerateRFIDHandler(enumRFIDJSON) {
log("EnumResult:" + JSON.stringify(enumRFIDJSON));
rfid.connect();
performAdvancedInventory1();
}
function TagHandlerAdvanced1(tagReportJSON) {
log(
"TagID :" +
tagReportJSON.TagData[0].tagID +
" Seen Count: " +
tagReportJSON.TagData[0].tagSeenCount +
" First seen Timestamp:" +
tagReportJSON.TagData[0].firstSeenTimeStamp);
log(
"TagID :" +
tagReportJSON.TagData[1].tagID +
" Seen Count: " +
tagReportJSON.TagData[1].tagSeenCount +
" First seen Timestamp:" +
tagReportJSON.TagData[1].firstSeenTimeStamp);
log(
"TagID :" +
tagReportJSON.TagData[2].tagID +
" Seen Count: " +
tagReportJSON.TagData[2].tagSeenCount +
" First seen Timestamp:" +
tagReportJSON.TagData[2].firstSeenTimeStamp);
log(
"TagID :" +
tagReportJSON.TagData[3].tagID +
" Seen Count: " +
tagReportJSON.TagData[3].tagSeenCount +
" First seen Timestamp:" +
tagReportJSON.TagData[3].firstSeenTimeStamp);
log(
"TagID :" +
tagReportJSON.TagData[4].tagID +
" Seen Count: " +
tagReportJSON.TagData[4].tagSeenCount +
" First seen Timestamp:" +
tagReportJSON.TagData[4].firstSeenTimeStamp);
}
function statusHandler(statusJSON) {
log("Status: " + statusJSON.method + " " + statusJSON.errorCode);
log("Status: " + JSON.stringify(statusJSON));
}
function performAdvancedInventory1() {
rfid.tagEvent = "TagHandlerAdvanced1(%json)";
rfid.reportUniqueTags = false;
rfid.reportTrigger = 5;
rfid.enableTagSeenCount = true;
rfid.enableTagUTCTimeStamp = true;
rfid.startTriggerType = "triggerPress";
rfid.stopTriggerType = "duration";
rfid.stopDuration = 10000; // Duration in milliseconds.
rfid.performInventory();
}
log("about to init");
setTimeout(()=>{
initRfid();
}, 5000);

Please Register or Login to post a reply

3 Replies

f faul knernolan

I don't see any convincing answer. You can contact the admin for help or post on many forums to get the most effective answer. https://iogames.onl/battledudes-io

A Alex Wiese

I managed to get this working by setting the transport to "Bluetooth".
rfid.transport = "Bluetooth";
I'd recommend the documentation and examples to be updated to include this, as well as making that error message more useful.

D Darryn Campbell

Hi,
Do any of the native RFID samples at https://www.zebra.com/us/en/support-downloads/rfid/rfid-handhelds/rfd-85... work?  The RFID capability should be pre-installed with Enterprise Browser version 3.0+ and there are more caveats available at https://techdocs.zebra.com/enterprise-browser/3-0/api/re2x/rfid/#remarks but that error does not look like it is coming from Enterprise Browser to me, hence why I ask if native apps can access the RFID.

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