DataWedge – Speed Up profile updating

// Expert user has replied. //Solved
S Stefan Karabin 1 year 9 months ago
78 2 0

Hi,

I am using DataWedge with my app and updating its profile using intents. However, I have observed that the profile update process takes up to 2 seconds, which is not suitable for my app's needs. Since my app only has one activity, creating additional profiles is not a viable solution.

Are there any strategies to optimize the profile updating process and reduce its duration? For example,  I need to frequently enable and disable multi-scanning.

Thank you for your assistance.


Any suggestions or insights would be greatly appreciated. Thank you.

fun configureBarcodeScanning(
    enableMultiScan: Boolean,
    context: Context
) {

    val profileConfig = Bundle()
    profileConfig.putString("PROFILE_NAME", DATAWEDGE_PROFILE_NAME)
    profileConfig.putString("PROFILE_ENABLED", "true")s
    profileConfig.putString("CONFIG_MODE", "UPDATE")

    val barcodeConfig = Bundle()
    barcodeConfig.putString("PLUGIN_NAME", "BARCODE")
    barcodeConfig.putString("RESET_CONFIG", "false")

    val barcodeProps = Bundle()
    barcodeProps.putString("scanner_selection_by_identifier", "INTERNAL_IMAGER")

    if (enableMultiScan) {
        barcodeProps.putString("scanning_mode", "3")
        barcodeProps.putString("instant_reporting_enable", "true");
    } else {
        barcodeProps.putString("scanning_mode", "1")
        barcodeProps.putString("instant_reporting_enable", "false");
    }

    barcodeConfig.putBundle("PARAM_LIST", barcodeProps)
    profileConfig.putBundle("PLUGIN_CONFIG", barcodeConfig)

    sendCommandBundle(context, DWInterface.DATAWEDGE_SEND_SET_CONFIG, profileConfig)
}
Please Register or Login to post a reply

Accepted Solution

J James Swinton-Bland

You could try the SWITCH_PROFILE API instead to hop between two profiles with the relevant configurations: https://techdocs.zebra.com/datawedge/latest/guide/api/switchtoprofile/

2 Replies

J James Swinton-Bland

You could try the SWITCH_PROFILE API instead to hop between two profiles with the relevant configurations: https://techdocs.zebra.com/datawedge/latest/guide/api/switchtoprofile/

S Stefan Karabin

Thanks for your advice; it is much better.

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