Scanner stops using the profile intermittently

S Steven Martin 3 years 7 months ago
6 1 0

Sometimes after the scanner hasn't been used in a while the EMDK ignores the profile being used and goes back to it's defaults of just using the keystroke inputs. The profile I'm using turns off the keystroke inputs and uses intents instead. The app I've written connects to the scanner when it starts or comes into the foreground and disconnects from the scanner when it goes into the background. I haven't been able to find out the exact frequency of when this happens.

When this happens, I can close the app and open it up again and the profile gets loaded just fine. Other times I need to restart the device before the profile starts working again. Both of these situations are not ideal, as we really just want it to work without these sorts of workarounds.

I have added some logging and it doesn't look like I'm getting any errors from the EMDK when the app connects or when it process the profile. Is there a proper way to ensure the profile will be applied every time?

I saw mention of a similar problem in and the suggestion of possibly using the DataWedge APIs instead of the EMDK. Is this still the recommendation?

EMDK service version - 6.7.10.1010
OS version - 7.1.2
Device model - TC75EK

Please Register or Login to post a reply

1 Replies

E Efkan YILMAZ

Hi Steven, typically you would use either EMDK OR DataWedge - I presume the profiles you are referring to are the Data Capture profiles and please note that these are going away (please see   for more information).

I couldn't say why the wrong profile is being applied in the situation you describe but you could try disabling other DataWedge profiles or configuring the default profile to also send intents, as a fallback.  There is a way to determine the active profile using the DataWedge API (Get Active Profile - Zebra Technologies TechDocs ) but I would consider that a last resort, this should 'just work'.  Are you applying the profile every time the app comes to the foreground?  It is only necessary to specify the profile once.

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