scanner wmi driver developer’s guide

52
SCANNER WINDOWS MANAGEMENT INSTRUMENTATION DRIVER DEVELOPER’S GUIDE

Upload: others

Post on 21-Dec-2021

9 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Scanner WMI Driver Developer’s Guide

SCANNER WINDOWS MANAGEMENT INSTRUMENTATION DRIVERDEVELOPER’S GUIDE

Page 2: Scanner WMI Driver Developer’s Guide
Page 3: Scanner WMI Driver Developer’s Guide

SCANNER WMI DRIVERDEVELOPER’S GUIDE

72E-149785-04Revision AApril 2019

Page 4: Scanner WMI Driver Developer’s Guide

ii WMI DRIVER DEVELOPER’S GUIDE

No part of this publication may be reproduced or used in any form, or by any electrical or mechanical means, without permission in writing from Zebra. This includes electronic or mechanical means, such as photocopying, recording, or information storage and retrieval systems. The material in this manual is subject to change without notice.

The software is provided strictly on an “as is” basis. All software, including firmware, furnished to the user is on a licensed basis. Zebra grants to the user a non-transferable and non-exclusive license to use each software or firmware program delivered hereunder (licensed program). Except as noted below, such license may not be assigned, sublicensed, or otherwise transferred by the user without prior written consent of Zebra. No right to copy a licensed program in whole or in part is granted, except as permitted under copyright law. The user shall not modify, merge, or incorporate any form or portion of a licensed program with other program material, create a derivative work from a licensed program, or use a licensed program in a network without written permission from Zebra. The user agrees to maintain Zebra’s copyright notice on the licensed programs delivered hereunder, and to include the same on any authorized copies it makes, in whole or in part. The user agrees not to decompile, disassemble, decode, or reverse engineer any licensed program delivered to the user or any portion thereof.

Zebra reserves the right to make changes to any software or product to improve reliability, function, or design.

Zebra does not assume any product liability arising out of, or in connection with, the application or use of any product, circuit, or application described herein.

No license is granted, either expressly or by implication, estoppel, or otherwise under any Zebra Technologies Corporation, intellectual property rights. An implied license only exists for equipment, circuits, and subsystems contained in Zebra products.

Page 5: Scanner WMI Driver Developer’s Guide

iii

Revision HistoryChanges to the original guide are listed below:

Change Date Description

-01 Rev A 5/2011 Initial Release.

-02 Rev A 3/2012 Updates for 64-bit.

-03 Rev A 4/2015 Zebra Rebranding.

-04 Rev A 4/2019 Updated:- File directory on pg 3-1, 3-8, 4-2 and 4-5- Copyright statement on the last page.

Page 6: Scanner WMI Driver Developer’s Guide

iv WMI DRIVER DEVELOPER’S GUIDE

Page 7: Scanner WMI Driver Developer’s Guide

TABLE OF CONTENTS

Revision History .............................................................................................................................. iiiIntroduction ..................................................................................................................................... viiChapter Descriptions ...................................................................................................................... viiNotational Conventions................................................................................................................... viiiService Information ......................................................................................................................... viii

Chapter 1: INTRODUCTION TO THE ZEBRA SCANNER WMI DRIVEROverview ........................................................................................................................................ 1-1

Zebra Scanner WMI Driver Architecture .................................................................................. 1-2Managed Objects and Providers ........................................................................................ 1-2WMI Infrastructure .............................................................................................................. 1-3WMI Management Applications and Scripts ...................................................................... 1-3Zebra WMI Provider Plug-in ............................................................................................... 1-3Supported Devices ............................................................................................................. 1-3System Requirements ........................................................................................................ 1-3

Chapter 2: INSTALLATION INSTRUCTIONSOverview ........................................................................................................................................ 2-1Basic Installation Verification ......................................................................................................... 2-2Configuration .................................................................................................................................. 2-3

Scanner Configuration Bar Codes ........................................................................................... 2-3USB Communication Protocol ............................................................................................ 2-3

Chapter 3: ZEBRA WMI PROVIDER SCHEMA IN COMMON INFORMATION MODEL (CIM)Zebra Scanner WMI MOF File ....................................................................................................... 3-1Properties, Methods and Events .................................................................................................... 3-1

Properties ................................................................................................................................. 3-1Methods ................................................................................................................................... 3-6Events ...................................................................................................................................... 3-8Zebra Driver WMI MOF File ..................................................................................................... 3-8

Page 8: Scanner WMI Driver Developer’s Guide

Table of Contents vi

Chapter 4: TEST UTILITIES AND SOURCE CODEOverview ........................................................................................................................................ 4-1Test Utilities Provided in the SDK .................................................................................................. 4-2

Scanner WMI C# Sample Application ...................................................................................... 4-2Driver WMI C# Sample Application .......................................................................................... 4-5

Appendix A: XML SCHEMASOverview ........................................................................................................................................ A-1GetAllAttributes .............................................................................................................................. A-2GetAttributes .................................................................................................................................. A-3

Schema for AttNumberList ....................................................................................................... A-3Schema for AttValueList .......................................................................................................... A-3

SetAttributes and StoreAttributes ................................................................................................... A-4GetDeviceTopology ....................................................................................................................... A-5SymbScnrFirmwareUpdateEvent ................................................................................................... A-6

Session Start ............................................................................................................................ A-6Download Start ........................................................................................................................ A-6Download Progress .................................................................................................................. A-6Session End ............................................................................................................................. A-7Download End .......................................................................................................................... A-7Error ......................................................................................................................................... A-7

SymbScnrDiscoveryEvent ............................................................................................................. A-8Corded Scanner ....................................................................................................................... A-8Cordless Scanner .................................................................................................................... A-9

Index

Glossary

Page 9: Scanner WMI Driver Developer’s Guide

ABOUT THIS GUIDE

IntroductionThis guide provides information about Windows Management Instrumentation (WMI), a free component of the Microsoft Windows® operating system, that provides a scalable system management infrastructure.

Chapter DescriptionsTopics covered in this guide are as follows:

• Chapter 1, INTRODUCTION TO THE ZEBRA SCANNER WMI DRIVER provides an overview of Windows Management Instrumentation (WMI) and the Zebra Scanner Driver Architecture.

• Chapter 2, INSTALLATION INSTRUCTIONS describes how to verify successful installation of the Zebra WMI provider and provides configuration bar codes.

• Chapter 3, ZEBRA WMI PROVIDER SCHEMA IN COMMON INFORMATION MODEL (CIM) provides information about the Zebra scanner WMI schema, Managed Object Format (symbscnr.mof) file, and the properties, methods, and events exposed by the instance/method provider.

• Chapter 4, TEST UTILITIES AND SOURCE CODE provides information about the sample applications which demonstrate subscription for scanner discovery events and firmware update events.

• Appendix A, XML SCHEMAS provides the XML schemas to communicate with an RSM-ready scanner.

Page 10: Scanner WMI Driver Developer’s Guide

viii WMI DRIVER DEVELOPER’S GUIDE

Notational ConventionsThe following conventions are used in this document:

• Courier New font is used for code segments.

• Italics are used to highlight:• Chapters and sections in this and related documents• Dialog box, window and screen names• Drop-down list and list box names• Screen field names• Check box and radio button names• File names• Directory names.

• Bold text is used to highlight:• Parameter and option names• Icons on a screen• Key names on a keypad• Button names on a screen.

• bullets (•) indicate:• Action items• Lists of alternatives• Lists of required steps that are not necessarily sequential.

• Sequential lists (e.g., those that describe step-by-step procedures) appear as numbered lists.

• Notes, caution and warning statements appear as follows:

Service InformationIf you have a problem using the equipment, contact your facility’s technical or systems support. If there is a problem with the equipment, they will contact the Global Customer Support Center at: www.zebra.com/support.

NOTE This symbol indicates something of special interest or importance to the reader. Failure to read the note will not result in physical harm to the reader, equipment or data.

CAUTION This symbol indicates that if this information is ignored, the possibility of data or material damage may occur.

WARNING! This symbol indicates that if this information is ignored the possibility that serious personal injury may occur.

Page 11: Scanner WMI Driver Developer’s Guide

CHAPTER 1 INTRODUCTION TO THE ZEBRA SCANNER WMI DRIVER

OverviewWindows Management Instrumentation (WMI) is a free component of the Microsoft Windows® operating system that provides a scalable system management infrastructure. Using a free provider plug-in from Zebra, WMI enables local and network remote management of a scanner. System administrators can leverage WMI to query and set information on desktop systems, applications, networks, components, and accessories, such as a scanner. Developers can use the underlying WMI Application Programmers Interfaces (APIs) to create system management applications/tools that organize system information for the purposes of asset management or other enterprise level activities. The WMI API supports the use of several high level languages such as C++, C#, VB, VBScript, and Jscript.

For more information, search for WMI on http://msdn.microsoft.com.

Page 12: Scanner WMI Driver Developer’s Guide

1 - 2 WMI DRIVER DEVELOPER’S GUIDE

Zebra Scanner WMI Driver Architecture

Figure 1-1 Zebra Scanner WMI Driver Architecture

Managed Objects and Providers

A provider is a COM object that monitors one or more managed objects for WMI. Similar to a driver, a provider supplies WMI with data from a managed object. A provider also handles messages from WMI to the managed object.

A managed object is a logical or physical enterprise component, such as a hard drive, network adapter, database system, operating system, process, or service. A managed object communicates with WMI through a WMI provider that calls methods in the COM API for WMI.

For example, the Platform SDK ships with the Registry provider, which accesses data in the system registry. WMI passes information from the providers to the WMI infrastructure when client applications and scripts request registry data. The Registry provider has one WMI class, StdRegProv, with many methods but no properties. Other providers, such as the Win32 provider, usually have classes with many properties but few methods, such as Win32_Process or Win32_LogicalDisk.

Page 13: Scanner WMI Driver Developer’s Guide

INTRODUCTION TO THE ZEBRA SCANNER WMI DRIVER 1 - 3

WMI Infrastructure

The WMI infrastructure is a Microsoft Windows operating system component comprised of two components: the Windows Management service, including the WMI Core, and the WMI repository. The Windows Management service acts as an intermediary between the providers, management applications, and the WMI repository. The repository contains only static data about objects, such as the classes defined by providers. WMI obtains most data dynamically from the provider when a client requests it.

Most provider classes, such as Win32_LogicalDisk, are defined in Managed Object Format (MOF) files, are then compiled into the WMI repository by mofcomp.exe. A provider also has a DLL file which contains the code that implements the classes.

WMI Management Applications and Scripts

A management application or script is an application that interacts with the WMI infrastructure. A management application can query or enumerate management data by calling either the COM API for WMI or the Scripting API for WMI. Management applications can call methods in either API to send instructions or reconfigure a managed object. The only data or actions available for a managed object such as a disk drive or a service are those that a provider supplies.

Zebra WMI Provider Plug-in

Zebra's driver provides a WMI interface with a mechanism to view and program scanner settings. It also enables an administrator to perform actions such as firmware updates, event reporting on the progress of a firmware update and the discovery of scanners, as defined in the Symbol Scanner Managed Object Format (MOF) file. By leveraging the WMI infrastructure built into the Windows Operating System, an application developer can write a management application to perform the following enterprise level activities:

• Discovery (asset management)

• Configuration deployment

• In system firmware update.

Supported Devices

• Any RSM-ready Zebra scanner

• Supported Scanner Communication Modes

• IBM Hand-held USB.

System Requirements

For system requirements, refer to the Scanner SDK Developer’s Guide.

Page 14: Scanner WMI Driver Developer’s Guide

1 - 4 WMI DRIVER DEVELOPER’S GUIDE

Page 15: Scanner WMI Driver Developer’s Guide

CHAPTER 2 INSTALLATION INSTRUCTIONS

OverviewThe Zebra WMI providers are installed as part of the Zebra Scanner SDK Installshield® package. There are two WMI providers: Scanner WMI provider; and, Driver WMI provider. Two Windows services (Symbol Scanner Management and RSM Driver Provider Service) are installed and start automatically. These two services are called Zebra's WMI provider, also called the WMI plug-in.

For general installation instructions to install the Zebra Scanner SDK, refer to the installation instructions in the Zebra Scanner SDK Programmer's Guide.

NOTE The Zebra CoreScanner Driver is a prerequisite for the Zebra WMI provider. The Zebra Scanner SDK Installshield® package automatically installs the CoreScanner Driver if it is not already on the system. A complete installation of the SDK installs the Zebra WMI provider. If you select the custom installation, you must select the Scanner WMI provider and Driver WMI provider components.

Page 16: Scanner WMI Driver Developer’s Guide

2 - 2 WMI DRIVER DEVELOPER’S GUIDE

Basic Installation VerificationYou can perform a basic inspection on your system process list to verify a successful installation of the Zebra WMI provider.

To do a simple check of the Zebra WMI provider's operation:

1. Right click on the Windows Task Bar and select Task Manager.

Figure 2-1 Task Bar Menu - Task Manger

2. Select the Processes tab.

Figure 2-2 Task Manager - Processes

3. In the Image Name list, find RSMDriverProviderService.exe and ScannerService.exe. The presence of these two processes in the list indicates a successful installation.

Page 17: Scanner WMI Driver Developer’s Guide

INSTALLATION INSTRUCTIONS 2 - 3

Configuration

Scanner Configuration Bar Codes

Scan the Set All Defaults bar code below to return all parameters to the scanner's default values. Refer to the scanner's Product Reference Guide for default values.

Set All Defaults

Scan the bar code below to configure the scanner for the IBM Hand-held USB communication protocol.

USB Communication Protocol

USB (OPOS Hand-held)

Page 18: Scanner WMI Driver Developer’s Guide

2 - 4 WMI DRIVER DEVELOPER’S GUIDE

Page 19: Scanner WMI Driver Developer’s Guide

CHAPTER 3 ZEBRA WMI PROVIDER SCHEMA IN COMMON INFORMATION MODEL (CIM)

Zebra Scanner WMI MOF FileThe Zebra scanner WMI schema is defined using Managed Object Format (MOF) in symbscnr.mof. This file is located in the directory \Zebra Technologies\Barcode Scanners\Common. The symbscnr.mof describes and lists the properties, methods, and events exposed by the instance/method provider. If a specific device or class of device does not support a property, its property value is defined as null.

Properties, Methods and Events

Properties

Table 3-1 Properties Descriptions

Name Type Access Allowed Description Valid Values

PartNumber String R (key) Part number (model number) on the label (P/N) attached to the device. This is an 18 digit number but comes from the COM API trimmed.

Matches exactly against the label on the tag.

SerialNumber String R (key) Serial Number (S/N) on the label attached to the device. This is a 16 digit number but comes from the COM API trimmed.

Matches exactly against the label on the tag.

DateOfManufacture String R Manufacturing date of the device. Format DDMMMYY.

DateOfService String R Date of last repair within a Zebra Authorized repair facility. Format DDMMMYY.

Page 20: Scanner WMI Driver Developer’s Guide

3 - 2 WMI DRIVER DEVELOPER’S GUIDE

DeviceClass String R Description of the device's hardware.

"1D Laser""2D Laser""Imager""Cordless 1D Laser" "Cordless 2D Laser" "Cordless Imager" "Cordless Base Station"

Caption String R This property is identical to PartNumber

Description String R This property is identical to PartNumber

FirmwareVersion String R Version of firmware in the scanner.

FirmwareUpdateStatus String R Status of the last firmware update operation.

FirmwareUpdateBlockCount Integer R Count of firmware blocks downloaded to scanner in the current firmware update operation.

FirmwareUpdateTotalBlocks Integer R Total number of blocks the firmware file used in current update operation.

FirmwareUpdateStatusCode Integer R Status code of the last completed stage of the firmware update operation.

0 - Success106 - Invalid file path107 - Management

failure108 - Firmware update

failure 109 - Invalid DAT file118 - Firmware update

underway

FirmwareUpdateStatusCodeEx Integer R Download status of software component contained in the firmware file. Zero indicates at least one component successfully downloaded. Non-zero value indicates no software component was downloaded, and the reason why.

0 - Success110 - Firmware resident

MiddlewareDriverVersion String R Indicates the version of the Management Suite.

Table 3-1 Properties Descriptions (Continued)

Name Type Access Allowed Description Valid Values

Page 21: Scanner WMI Driver Developer’s Guide

ZEBRA WMI PROVIDER SCHEMA IN COMMON INFORMATION MODEL (CIM) 3 - 3

LastDecodeData String R Identifies the last successfully decoded bar code information. The scanner can scan the bar code if it supports its symbology and the symbology is enabled.

TotalDecodes Integer R Total bar codes the scanner decoded. The values reset to 0 when the WMI service stops.

TotalGoodDecodes Integer R Total successful bar codes the scanner decoded. The values reset to 0 when the WMI service stops.

LowPowerMode Boolean R/W Determines whether power remains on after a decode attempt. In low power mode, the scanner enters into a reduced power consumption mode to preserve battery life after each decode attempt.

TRUE, FALSE

RasterMode Byte R/W Sets the raster mode of the scanner.

0, 1, 2

InCradle Boolean R Reports if the cordless scanner is in a charging cradle (applies to cordless only).

TRUE, FALSE

OperationMode Byte R Reports if the scanner is being used in Hand-held Mode or Hands-Free Mode.

0, 1

UPCA Boolean R/W Enable/Disable this symbology. TRUE, FALSE

UPCE Boolean R/W Enable/Disable this symbology. TRUE, FALSE

UPCE1 Boolean R/W Enable/Disable this symbology. TRUE, FALSE

EAN8 Boolean R/W Enable/Disable this symbology. TRUE, FALSE

EAN13 Boolean R/W Enable/Disable this symbology. TRUE, FALSE

ConvertUPCEtoA Boolean R/W Enable/Disable this symbology. TRUE, FALSE

ConvertUPCE1toA Boolean R/W Enable/Disable this symbology. TRUE, FALSE

UCCCouponExtendedCode Boolean R/W Enable/Disable this symbology. TRUE, FALSE

Code 128 Boolean R/W Enable/Disable this symbology. TRUE, FALSE

UCCEAN128 Boolean R/W Enable/Disable this symbology. TRUE, FALSE

Code39 Boolean R/W Enable/Disable this symbology. TRUE, FALSE

Table 3-1 Properties Descriptions (Continued)

Name Type Access Allowed Description Valid Values

Page 22: Scanner WMI Driver Developer’s Guide

3 - 4 WMI DRIVER DEVELOPER’S GUIDE

TriopticCode39 Boolean R/W Enable/Disable this symbology. TRUE, FALSE

Code93 Boolean R/W Enable/Disable this symbology. TRUE, FALSE

Code11 Boolean R/W Enable/Disable this symbology. TRUE, FALSE

RedundancyLevel Integer R/W Sets the scanner's decode redundancy level. There are four levels. Select higher levels for decreasing levels of bar code quality. As redundancy levels increase, the scanner's aggressiveness decreases. Refer to the scanner Product Reference Guide.

0, 1, 2, 3

Code11Length1 Byte R/W Defines the allowable lengths for the symbology.Range: L1 < L2;Two Lengths: L2 > L1; One Length: L1 = len; L2=0; Any Length: L1=0; L2=0

Code11Length2 Byte R/W Defines the allowable lengths for the symbology.Range: L1 < L2Two Lengths:L2 > L1One Length:L1 = len; L2=0Any Length:L1=0; L2=0

Code39Length1 Byte R/W Defines the allowable lengths for the symbology.Range:L1 < L2Two Lengths:L2 > L1One Length:L1 = len; L2=0Any Length:L1=0; L2=0

Code39Length2 Byte R/W Defines the allowable lengths for the symbology.Range: L1 < L2Two Lengths:L2 > L1One Length:L1 = len; L2=0Any Length:L1=0; L2=0

Code93Length1 Byte R/W Defines the allowable lengths for the symbology.Range: L1 < L2Two Lengths:L2 > L1One Length:L1 = len; L2=0Any Length:L1=0; L2=0

Code93Length2 Byte R/W Defines the allowable lengths for the symbology.Range:L1 < L2Two Lengths:L2 > L1One Length:L1 = len; L2=0Any Length:L1=0; L2=0

Table 3-1 Properties Descriptions (Continued)

Name Type Access Allowed Description Valid Values

Page 23: Scanner WMI Driver Developer’s Guide

ZEBRA WMI PROVIDER SCHEMA IN COMMON INFORMATION MODEL (CIM) 3 - 5

LaserOnTime Byte R/W Defines the maximum time decode processing continues during a scan attempt.

"99" = 9.9 seconds"

SecurityLevel Byte R/W Sets decode security for delta bar codes, which include the Code 128 family, UPC/EAN, and Code 93. There are four levels. Select increasing levels of security for decreasing levels of bar code quality. As security levels increase, the scanner's aggressiveness decreases. Refer to the scanner Product Reference Guide.

0, 1, 2, 3

BeeperFreq Byte R/W Gets/sets the Beeper Tone(Low = 2, Med = 1, High = 0) Valid values range from 0 to 2 for LS4208. May vary for other scanners.

Supports values from 0 to 127; which values within this range depend on the scanner.

BeeperVolume Byte R/W Gets/sets the Beeper Volume (Low = 2, Med = 1, High = 0) Valid values range from 0 to 2 for LS4208. May vary for other scanners.

Supports values from 0 to 127; which values within this range depend on the scanner.

Table 3-1 Properties Descriptions (Continued)

Name Type Access Allowed Description Valid Values

Page 24: Scanner WMI Driver Developer’s Guide

3 - 6 WMI DRIVER DEVELOPER’S GUIDE

Methods

The methods in Table 3-2 are counterparts of the functions defined in the Scanner SDK driver COM API. See Appendix A, XML SCHEMAS for the XML schema, which is shared with the Scanner SDK driver COM API.

Table 3-2 Methods Descriptions

Name Parameters Return Values Description

GetAllAttributes [OUT] string attributes

Integer0 = SuccessNon-zero=Failure

Returns all supported attributes of the selected scanner as an xml through the Attributes parameter. The attributes returned as an out value in the Attributes parameter must match the schema on page A-2.This function is an exact mapping of the ATTR_GET method in the Scanner SDK.

GetAttributes [IN] string attNumberList[OUT] string attValueList

Integer0 = SuccessNon-zero=Failure

Retrieves values of specific attribute numbers. Use this to query values of one or more attributes numbers.attrNumberList [in]: The attribute numbers whose values must be queried. These attribute numbers should be comma separated. See page A-3 for the schema for the attribute numbers.attrValueList [out]: The attribute values returned as output. See page A-3 for the schema for the attribute numbers.This function is an exact mapping of the ATTR_GET method in the Scanner SDK.

SetAttributes [OUT] string attributeSettings

Integer0 = SuccessNon-zero=Failure

Changes the value of writable attributes in the scanner. See page A-4 for the schema for attributeSettings.This function is an exact mapping of the ATTR_GET method in the Scanner SDK.

StoreAttributes [OUT] string attributeSettings

Integer0 = SuccessNon-zero=Failure

Changes the value of writable attributes in the scanner. See page A-4 for the schema for attributeSettings.This function is an exact mapping of the ATTR_GET method in the Scanner SDK.

UpdateFirmware [OUT] string filePath Integer0 = SuccessNon-zero=Failure

Update firmware on scanner devices.The firmware file must reside on the computer to which the scanner is connected, and the file path must be fully qualified.This function supports concurrent firmware update of multiple scanner devices. A return value of 0 indicates the successful start of the firmware update, but does not guarantee overall firmware update success.

StartNewFirmware Integer0 = SuccessNon-zero=Failure

Reboots the scanner with the updated firmware activated.

Page 25: Scanner WMI Driver Developer’s Guide

ZEBRA WMI PROVIDER SCHEMA IN COMMON INFORMATION MODEL (CIM) 3 - 7

UpdateAttribMetaFile [OUT] string filePath Integer0 = SuccessNon-zero=Failure

Updates the metafile that defines the names of the attributes.File path:Fully qualified path to the new meta-file.

ScanDisable Integer0 = SuccessNon-zero=Failure

Disables the scanner.

ScanEnable Integer0 = SuccessNon-zero=Failure

Enables the scanner.

Table 3-2 Methods Descriptions (Continued)

Name Parameters Return Values Description

Table 3-3 Return Values for WMI Methods Invocations

Return Value Description

0 Method succeeded.

104 Connection already opened

106 File path invalid (file not found).

108 Firmware update failure.

109 Invalid DAT file.

110 Resident firmware.

112 Invalid scanner.

114 Input parameter invalid.

118 Another firmware update already in progress on the scanner.

122 Driver response empty.

123 Request failed in the driver.

124 Request failed in the scanner.

Page 26: Scanner WMI Driver Developer’s Guide

3 - 8 WMI DRIVER DEVELOPER’S GUIDE

Events

The Zebra scanner WMI provider implements the events in Table 3-4. The events are defined in the scanner MOF file.

Zebra Driver WMI MOF File

The Zebra Driver WMI schema is defined using Managed Object Format (MOF) in the file RSMDriverProvider.mof located in the directory \Zebra Technologies\Barcode Scanners\Common. The RSMDriverProvider.mof describes and lists the properties, methods, and events exposed by the instance/method provider. If a specific device or class of device does not support a property, its property value is defined as null.

Properties Exposed by the Instance/Method Provider

Table 3-4 Events Descriptions

Name Description

SymbScnrFirmwareUpdateEvent Occurs at different stages of firmware update activity. The following values define the Type of event. 1 - Session start 2 - Download start 3 - Download progress11 - Session end 12 - Download end 100 - Error

SymbScnrDiscoveryEvent Occurs when a scanner is connected or disconnected from the host and are indicated using the following Status values in the event.0 - Device lost1 - Device found

Table 3-5 Properties Exposed by the Instance/Method Provider

Name TypeAcces

s Allow

edDescription Valid Values

HostAutoSwitchingEnabled Boolean R/W If enabled, driver temporarily switches Non-RSM mode scanners to RSM mode, every time the scanner is attached or re-booted

TRUE, FALSE

Page 27: Scanner WMI Driver Developer’s Guide

ZEBRA WMI PROVIDER SCHEMA IN COMMON INFORMATION MODEL (CIM) 3 - 9

Methods Exposed by the Instance/Method Provider

Events Exposed by the Instance/Method Provider

Table 3-6 Methods Exposed by the Instance/Method Provider

Name Parameters Return Values Description

GetDeviceTopology [OUT] string DeviceTopology

Integer0 = SuccessNon-zero= Failure

Get the Device Topology.

SwitchHostMode [IN] string ScannerIdentity, [IN] string TargetHostMode, [IN] boolean IsSilentSwitch,[IN] boolean IsPermanentChange

Integer0 = SuccessNon-zero= Failure

Switch the Host Mode of the scanner.

RebootScanner [IN] string ScannerIdentity

Integer0 = SuccessNon-zero=Failure

Reboot the given scanner.

UpdateAttributeMetaFile [IN] string AttributeMetaFilePath

Integer0 = SuccessNon-zero=Failure

Update Attribute MetaFile.

Table 3-7 Events Exposed by the Instance/Method Provider

Name Description

ScannerPNPEvent This event occurs when a Zebra scanner is attached or detached on the host computer.Attach = 0Detach= 1

Page 28: Scanner WMI Driver Developer’s Guide

3 - 10 WMI DRIVER DEVELOPER’S GUIDE

Page 29: Scanner WMI Driver Developer’s Guide

CHAPTER 4 TEST UTILITIES AND SOURCE CODE

OverviewThe Zebra WMI provider includes C# sample applications that perform queries of the scanner properties and invoke methods. These sample applications, which include source code, demonstrate subscription for scanner discovery events and firmware update events.

The Driver WMI Sample Application demonstrates an application communicating with the Zebra Scanner WMI Driver. The Scanner WMI Sample Application enables you to display management data received from the scanner through the Zebra Scanner SDK Driver.

Page 30: Scanner WMI Driver Developer’s Guide

4 - 2 WMI DRIVER DEVELOPER’S GUIDE

Test Utilities Provided in the SDK The Zebra WMI provider includes the following test utilities:

• Scanner WMI C# Sample Application

• Driver WMI C# Sample Application.

Each test utility demonstrates the main functionalities of the Zebra WMI provider. You can gain an understanding of the Zebra WMI provider using these test utilities. This chapter also describes how to use the test utilities' functionality.

Scanner WMI C# Sample Application

The Zebra Scanner WMI C#.Net sample application enables you to simulate an application which communicates with the Zebra Scanner WMI provider. The utility demonstrates the functionality of the Scanner WMI provider. It includes C#.Net source code and its solution, and project files for further reference.

The Scanner WMI C# Sample Application is included with the standard installation of the Scanner SDK, or when the Scanner WMI Provider Sample Application option of the custom Scanner SDK installation is selected.

To access this window, go to the Programs menu under Zebra Scanner > WMI > Remote Mgmt - WMI - Scanner Provide Sample App.

Figure 4-1 Scanner WMI Test Window

NOTE Microsoft®.Net Framework v2.0 or later may need to be installed to execute C#.Net sample applications. If so, Microsoft detects and informs the user of this requirement.

Page 31: Scanner WMI Driver Developer’s Guide

TEST UTILITIES AND SOURCE CODE 4 - 3

Table 4-1 Scanner WMI Test Utility - Button/Field Functionality

Button or Field Description

(Host) Name or IP Address Specifies the name or IP address of the computer to connect. The default is localhost.

Connect Connects to the host specified in the Name or IP Address field, populates Method and Property lists, and registers to receive scanner discovery events and firmware update events.

Discover Discovers scanners connected to the host device.

Model Number Extracted from the part number of all discovered scanners.

Serial Number The serial numbers of the scanners under the model selected from the Model Number drop-down list.

Firmware Version The firmware version of the selected scanner.

Manufacture Date The manufacture date of the selected scanner.

Method Drop-down list containing the following items:

• GetAllAttributes: Gets all attribute identities in an XML string and displays them in the output box.

• GetAttributes: Gets detailed attribute information of attribute numbers specified in the parameter input box, and displays them in the output box.

• ScanDisable: Disables scanner.

• ScanEnable: Enables scanner.

• SetAttributes: Sets the list of attribute values specified in the parameter input box. These values are volatile, and are discarded after a device reboot.

• StartNewFirmware: Starts the scanner with newly downloaded firmware.

• StoreAttributes: Stores the list of attribute values specified in the parameter input box. These values are non-volatile, and persist after a device reboot.

• UpdateAttribMetaFile: Updates attribute meta data with contents of the file specified in the parameter input box.

• UpdateFirmware: Displays an Open window for selecting the firmware file.

IN Param Name Name of the input parameter of the item selected in the Method drop-down list, if applicable.

IN Param Value Text field to enter the value of the input parameter required for the selected method, if applicable.

Execute Invokes the method selected in the Method drop-down list. If the method requires an input parameter value, enter it in the text box.

Query Properties List of properties that can be queried. This list is not comprehensive. Use the GetAttributes method to discover additional scanner attribute values.

Get Queries one or more properties selected in the list box and display results in the output text area. You can select multiple items in the list box at a time.

Management Data Displays the results of a method execution or property query.

Firmware Update Status Displays the firmware update status received from Firmware Update Events.

Page 32: Scanner WMI Driver Developer’s Guide

4 - 4 WMI DRIVER DEVELOPER’S GUIDE

Clear Clears text in the data output areas.

Retrieve from Scanner Retrieves all storable attributes from the scanner and stores them in the clipboard.

Retrieve from File Opens a window to read in an .xml file containing attribute settings to the clipboard.

Save to File Save clipboard contents to a file. Provides a Save as window to select the filename.

Push Opens the Cloning window that you can use to push the clipboard contents to selected scanners.

Retrieve Retrieves all storable attributes from the scanner and populates the Parameters drop-down list with the attributes. When you select an attribute in the list, the Value drop-down list changes to match its content (True / False or text box). The Value list also displays the current value.

Set Parameter Stores the current value of the selected attribute.

Table 4-1 Scanner WMI Test Utility - Button/Field Functionality (Continued)

Button or Field Description

Page 33: Scanner WMI Driver Developer’s Guide

TEST UTILITIES AND SOURCE CODE 4 - 5

Driver WMI C# Sample Application

The Zebra Driver WMI C#.Net sample application enables you to simulate an application that communicates with the Zebra Driver WMI provider. The utility demonstrates the functionality of the Driver WMI provider. It includes C#.Net source code and its solution and project files for further reference.

The Driver WMI C# Sample Application is included with the standard installation of the Scanner SDK, or when the Driver WMI Provider Sample Application option of the custom Scanner SDK installation is selected.

To access this window select the Programs menu under Zebra Scanner > WMI > Remote Mgmt - WMI - Driver Provide Sample App.

Figure 4-2 Driver WMI Test Window

Table 4-2 Driver WMI Test Utility - Button/Field Functionality

Button or Field Description

(Host) Name or IP Address Specifies the name or IP address of the computer to connect. The default is localhost.

Connect Connects to the host specified in the Name or IP Address field, populates Method and Property lists, and registers to receive scanner discovery events and firmware update events.

Method Drop-down list containing the following items:

• GetDeviceTopology: Get the topology that devices are connected to the specified computer.

• RebootScanner: Reboot a specified scanner or all scanners connected.

• SwitchHostMode: Switch the USB communication protocol of a specified scanner. Permanent change and silent switch parameters can be set as input parameters.

• UpdateAttribMetaFile: Updates attribute metadata with contents of the file specified in the File Path text box.

Page 34: Scanner WMI Driver Developer’s Guide

4 - 6 WMI DRIVER DEVELOPER’S GUIDE

Input Parameters Name of the input parameter of the item selected in the Method drop-down list, if applicable.

Execute Invokes the method selected in the Method drop-down list. If the method requires an input parameter value, enter it in the text box.

Query Properties List of properties that can be queried.

Get Queries a property selected in the list box and display results in the Management Data text area.

Management Data Displays the results of a method execution or property query.

Listen Scanner PNP Event Listen to the scanner attach and detach events and display the results in the text area.

Autoswitch Host Mode Automatically switch the HID Keyboard scanners to IBM Hand-held scanners.

Clear Clears the output.

Table 4-2 Driver WMI Test Utility - Button/Field Functionality (Continued)

Button or Field Description

Page 35: Scanner WMI Driver Developer’s Guide

APPENDIX A XML SCHEMAS

OverviewThis appendix provides the XML schemas which Zebra Scanner WMI interfaces use to communicate with an RSM-ready scanner.

Table A-1 XML Schemas

Method Page

GetAllAttributes A-2

GetAttributes

• Schema for AttNumberList

• Schema for AttValueList

A-3

SetAttributes and StoreAttributes A-4

GetDeviceTopology A-5

SymbScnrFirmwareUpdateEvent

• Session Start

• Download Start

• Download Progress

• Session End

• Download End

• Error

A-6

SymbScnrDiscoveryEvent

• Coded Scanners

• Codeless Scanners

A-8

Page 36: Scanner WMI Driver Developer’s Guide

A - 2 WMI DRIVER DEVELOPER’S GUIDE

GetAllAttributes <?xml version="1.0" encoding="utf-8"?><xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="attrib_list"> <xs:complexType> <xs:sequence> <xs:element maxOccurs="unbounded" name="attribute"> <xs:complexType> <xs:simpleContent> <xs:extension base="xs:unsignedShort"> <xs:attribute name="name" type="xs:string" use="required" /> </xs:extension> </xs:simpleContent> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element></xs:schema>

Page 37: Scanner WMI Driver Developer’s Guide

XML SCHEMAS A - 3

GetAttributes

Schema for AttNumberList<?xml version="1.0" encoding="utf-8"?><xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="attrib_list" type="xs:string" /></xs:schema>

Schema for AttValueList <?xml version="1.0" encoding="utf-8"?><xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="attrib_list"> <xs:complexType> <xs:sequence> <xs:element maxOccurs="unbounded" name="attribute"> <xs:complexType> <xs:sequence> <xs:element name="id" type="xs:unsignedShort" /> <xs:element name="name" /> <xs:element name="datatype" type="xs:string" /> <xs:element name="permission" type="xs:string" /> <xs:element name="value" type="xs:string" /> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element></xs:schema>

Page 38: Scanner WMI Driver Developer’s Guide

A - 4 WMI DRIVER DEVELOPER’S GUIDE

SetAttributes and StoreAttributes <?xml version="1.0" encoding="utf-8"?><xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="attrib_list"> <xs:complexType> <xs:sequence> <xs:element maxOccurs="unbounded" name="attribute"> <xs:complexType> <xs:sequence> <xs:element name="id" type="xs:unsignedByte" /> <xs:element name="datatype" type="xs:string" /> <xs:element name="value" type="xs:string" /> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element></xs:schema>

Page 39: Scanner WMI Driver Developer’s Guide

XML SCHEMAS A - 5

GetDeviceTopology<?xml version="1.0" encoding="utf-16"?><xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="device"> <xs:complexType> <xs:sequence> <xs:element maxOccurs="unbounded" name="device"> <xs:complexType> <xs:sequence> <xs:element name="host_mode" type="xs:string" /> <xs:element name="scannerID" type="xs:positiveInteger" /> <xs:element name="port" /> <xs:element name="baud" /> <xs:element name="GUID" type="xs:string" /> <xs:element name="VID" type="xs:unsignedShort" /> <xs:element name="PID" type="xs:unsignedShort" /> <xs:element name="DoM" type="xs:string" /> <xs:element name="firmware" type="xs:string" /> <xs:element minOccurs="0" maxOccurs="unbounded" name="device"> <xs:complexType> <xs:sequence> <xs:element name="host_mode" type="xs:string" /> <xs:element name="scannerID" type="xs:positiveInteger" /> <xs:element name="port" /> <xs:element name="baud" /> <xs:element name="GUID" /> <xs:element name="VID" /> <xs:element name="PID" /> <xs:element name="DoM" type="xs:string" /> <xs:element name="firmware" type="xs:string" /> </xs:sequence> <xs:attribute name="model" type="xs:string" use="required" /> <xs:attribute name="serial_num" type="xs:string" use="required" /> </xs:complexType> </xs:element> </xs:sequence> <xs:attribute name="model" type="xs:string" use="required" /> <xs:attribute name="serial_num" type="xs:string" use="required" /> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element></xs:schema>

Page 40: Scanner WMI Driver Developer’s Guide

A - 6 WMI DRIVER DEVELOPER’S GUIDE

SymbScnrFirmwareUpdateEvent

Session Start<?xml version="1.0" encoding="utf-8"?><xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="sess_start"> <xs:complexType> <xs:sequence> <xs:element name="modelnumber" type="xs:string" /> <xs:element name="serialnumber" type="xs:unsignedLong" /> <xs:element name="GUID" type="xs:string" /> <xs:element name="maxcount" type="xs:unsignedShort" /> <xs:element name="status" type="xs:unsignedByte" /> </xs:sequence> </xs:complexType> </xs:element></xs:schema>

Download Start<?xml version="1.0" encoding="utf-8"?><xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="dl_start"> <xs:complexType> <xs:sequence> <xs:element name="modelnumber" type="xs:string" /> <xs:element name="serialnumber" type="xs:unsignedLong" /> <xs:element name="GUID" type="xs:string" /> <xs:element name="software_component" type="xs:unsignedByte" />

<xs:element name="status" type="xs:unsignedByte" /> </xs:sequence> </xs:complexType> </xs:element></xs:schema>

Download Progress<?xml version="1.0" encoding="utf-8"?><xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="dl_progress"> <xs:complexType> <xs:sequence> <xs:element name="modelnumber" type="xs:string" /> <xs:element name="serialnumber" type="xs:unsignedLong" /> <xs:element name="GUID" type="xs:string" /> <xs:element name="software_component" type="xs:unsignedByte" /> <xs:element name="progress" type="xs:unsignedByte" /> <xs:element name="status" type="xs:unsignedByte" /> </xs:sequence> </xs:complexType> </xs:element></xs:schema>

Page 41: Scanner WMI Driver Developer’s Guide

XML SCHEMAS A - 7

Session End<?xml version="1.0" encoding="utf-8"?><xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="sess_end"> <xs:complexType> <xs:sequence> <xs:element name="modelnumber" type="xs:string" /> <xs:element name="serialnumber" type="xs:unsignedLong" /> <xs:element name="GUID" type="xs:string" /> <xs:element name="status" type="xs:unsignedByte" /> </xs:sequence> </xs:complexType> </xs:element></xs:schema>

Download End<?xml version="1.0" encoding="utf-8"?><xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="dl_end"> <xs:complexType> <xs:sequence> <xs:element name="modelnumber" type="xs:string" /> <xs:element name="serialnumber" type="xs:unsignedLong" /> <xs:element name="GUID" type="xs:string" /> <xs:element name="software_component" type="xs:unsignedByte" /> <xs:element name="size" type="xs:unsignedByte" /> <xs:element name="status" type="xs:unsignedByte" /> </xs:sequence> </xs:complexType> </xs:element></xs:schema>

Error<?xml version="1.0" encoding="utf-8"?><xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="sess_info"> <xs:complexType> <xs:sequence> <xs:element name="modelnumber" type="xs:string" /> <xs:element name="serialnumber" type="xs:unsignedLong" /> <xs:element name="GUID" type="xs:string" /> <xs:element name="status" type="xs:unsignedShort" /> </xs:sequence> </xs:complexType> </xs:element></xs:schema>

Page 42: Scanner WMI Driver Developer’s Guide

A - 8 WMI DRIVER DEVELOPER’S GUIDE

SymbScnrDiscoveryEvent

Corded Scanner<?xml version="1.0" encoding="utf-8"?><xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="scanners"> <xs:complexType> <xs:sequence> <xs:element name="scanner"> <xs:complexType> <xs:sequence> <xs:element name="scannerID" type="xs:unsignedByte" /> <xs:element name="modelnumber" type="xs:string" /> <xs:element name="serialnumber" type="xs:unsignedLong" /> <xs:element name="GUID" type="xs:string" /> </xs:sequence> <xs:attribute name="type" type="xs:string" use="required" /> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element></xs:schema>

Page 43: Scanner WMI Driver Developer’s Guide

XML SCHEMAS A - 9

Cordless Scanner<?xml version="1.0" encoding="utf-8"?><xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="scanners"> <xs:complexType> <xs:sequence> <xs:element name="scanner"> <xs:complexType> <xs:sequence> <xs:element name="scannerID" type="xs:unsignedByte" /> <xs:element name="modelnumber" type="xs:string" /> <xs:element name="serialnumber" type="xs:string" /> <xs:element name="GUID" type="xs:string" /> <xs:element name="pnp" type="xs:unsignedByte" /> <xs:element name="scanner"> <xs:complexType> <xs:sequence> <xs:element name="scannerID" type="xs:unsignedByte" /> <xs:element name="modelnumber" type="xs:string" /> <xs:element name="serialnumber" type="xs:unsignedLong" /> <xs:element name="GUID" /> <xs:element name="pnp" type="xs:unsignedByte" /> </xs:sequence> <xs:attribute name="type" type="xs:string" use="required" /> </xs:complexType> </xs:element> </xs:sequence> <xs:attribute name="type" type="xs:string" use="required" /> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element></xs:schema>

Page 44: Scanner WMI Driver Developer’s Guide

A - 10 WMI DRIVER DEVELOPER’S GUIDE

Page 45: Scanner WMI Driver Developer’s Guide

INDEX

BBeeperFreq . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-5BeeperVolume . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-5bold text use in guide . . . . . . . . . . . . . . . . . . . . . . . . . viiibullets use in guide . . . . . . . . . . . . . . . . . . . . . . . . . . . viii

CCaption . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-2Code11 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-4Code11Length1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-4Code11Length2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-4CODE128 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-3Code39 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-3Code39Length1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-4Code39Length2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-4Code93 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-4Code93Length1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-4Code93Length2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-4conventions

notational . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . viiiConvertUPCE1toA . . . . . . . . . . . . . . . . . . . . . . . . . . 3-3ConvertUPCEtoA . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-3

DDateOfManufacture . . . . . . . . . . . . . . . . . . . . . . . . . . 3-1DateOfService . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-1Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-2DeviceClass . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-2

EEAN13 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-3EAN8 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-3events

SymbScnrDiscoveryEvent . . . . . . . . . . . . . . . . . . 3-8SymbScnrFirmwareUpdateEvent . . . . . . . . . . . . 3-8

events Exposed by instance/method providerScannerPNPEvent . . . . . . . . . . . . . . . . . . . . . . . 3-9

FFirmwareUpdateBlockCount . . . . . . . . . . . . . . . . . . . 3-2FirmwareUpdateStatus . . . . . . . . . . . . . . . . . . . . . . . 3-2FirmwareUpdateStatusCode . . . . . . . . . . . . . . . . . . . 3-2FirmwareUpdateStatusCodeEx . . . . . . . . . . . . . . . . . 3-2FirmwareUpdateTotalBlocks . . . . . . . . . . . . . . . . . . . 3-2FirmwareVersion . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-2font use in guide . . . . . . . . . . . . . . . . . . . . . . . . . . . . .viii

GGetAllAttributes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-6GetAttributes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-6GetDeviceTopology . . . . . . . . . . . . . . . . . . . . . . . . . . 3-9

HHostAutoSwitchingEnabled . . . . . . . . . . . . . . . . . . . . 3-8

IInCradle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-3information, service . . . . . . . . . . . . . . . . . . . . . . . . . . .viiiitalics use in guide . . . . . . . . . . . . . . . . . . . . . . . . . . . .viii

LLaserOnTime . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-5LastDecodeData . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-3LowPowerMode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-3

Page 46: Scanner WMI Driver Developer’s Guide

Index - 2 WMI DRIVER DEVELOPER’S GUIDE

Mmethods

GetAllAttributes . . . . . . . . . . . . . . . . . . . . . . . . . . 3-6GetAttributes . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-6ScanDisable . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-7ScanEnable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-7SetAttributes . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-6StartNewFirmware . . . . . . . . . . . . . . . . . . . . . . . 3-6StoreAttributes . . . . . . . . . . . . . . . . . . . . . . . . . . 3-6UpdateAttribMetaFile . . . . . . . . . . . . . . . . . . . . . 3-7UpdateFirmware . . . . . . . . . . . . . . . . . . . . . . . . . 3-6

MiddlewareDriverVersion . . . . . . . . . . . . . . . . . . . . . 3-2MOF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-3mof file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-3, 3-1, 3-8

Nnotational conventions . . . . . . . . . . . . . . . . . . . . . . . . . viii

OOperationMode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-3

PPartNumber . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-1plug-in . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-3properties

BeeperFreq . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-5BeeperVolume . . . . . . . . . . . . . . . . . . . . . . . . . . 3-5Caption . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-2Code11 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-4Code11Length1 . . . . . . . . . . . . . . . . . . . . . . . . . 3-4Code11Length2 . . . . . . . . . . . . . . . . . . . . . . . . . 3-4CODE128 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-3Code39 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-3Code39Length1 . . . . . . . . . . . . . . . . . . . . . . . . . 3-4Code39Length2 . . . . . . . . . . . . . . . . . . . . . . . . . 3-4Code93 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-4Code93Length1 . . . . . . . . . . . . . . . . . . . . . . . . . 3-4Code93Length2 . . . . . . . . . . . . . . . . . . . . . . . . . 3-4ConvertUPCE1toA . . . . . . . . . . . . . . . . . . . . . . . 3-3ConvertUPCEtoA . . . . . . . . . . . . . . . . . . . . . . . . 3-3DateOfManufacture . . . . . . . . . . . . . . . . . . . . . . . 3-1DateOfService . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-1Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-2DeviceClass . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-2EAN13 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-3EAN8 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-3FirmwareUpdateBlockCount . . . . . . . . . . . . . . . . 3-2FirmwareUpdateStatus . . . . . . . . . . . . . . . . . . . . 3-2FirmwareUpdateStatusCode . . . . . . . . . . . . . . . . 3-2FirmwareUpdateStatusCodeEx . . . . . . . . . . . . . 3-2

FirmwareUpdateTotalBlocks . . . . . . . . . . . . . . . . 3-2FirmwareVersion . . . . . . . . . . . . . . . . . . . . . . . . . 3-2InCradle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-3LaserOnTime . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-5LastDecodeData . . . . . . . . . . . . . . . . . . . . . . . . . 3-3LowPowerMode . . . . . . . . . . . . . . . . . . . . . . . . . . 3-3MiddlewareDriverVersion . . . . . . . . . . . . . . . . . . . 3-2OperationMode . . . . . . . . . . . . . . . . . . . . . . . . . . 3-3PartNumber . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-1RasterMode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-3RedundancyLevel . . . . . . . . . . . . . . . . . . . . . . . . 3-4SecurityLevel . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-5SerialNumber . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-1TotalDecodes . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-3TotalGoodDecodes . . . . . . . . . . . . . . . . . . . . . . . 3-3TriopticCode39 . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-4UCCCouponExtendedCode . . . . . . . . . . . . . . . . . 3-3UCCEAN128 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-3UPCA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-3UPCE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-3UPCE1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-3

properties exposed by instance/method providerGetDeviceTopology . . . . . . . . . . . . . . . . . . . . . . . 3-9HostAutoSwitchingEnabled . . . . . . . . . . . . . . . . . 3-8RebootScanner . . . . . . . . . . . . . . . . . . . . . . . . . . 3-9SwitchHostMode . . . . . . . . . . . . . . . . . . . . . . . . . 3-9UpdateAttributeMetaFile . . . . . . . . . . . . . . . . . . . 3-9

RRasterMode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-3RebootScanner . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-9RedundancyLevel . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-4return values, WMI methods invocations . . . . . . . . . . 3-7RSM Driver Provider Service . . . . . . . . . . . . . . . . . . . 2-1

SScanDisable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-7ScanEnable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-7Scanner Managed Object Format . . . . . . . . . . . . . . . 1-3SDK Installshield® package . . . . . . . . . . . . . . . . . . . . 2-1SecurityLevel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-5SerialNumber . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-1service information . . . . . . . . . . . . . . . . . . . . . . . . . . . viiiSetAttributes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-6StartNewFirmware . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-6StoreAttributes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-6SwitchHostMode . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-9Symbol Scanner Management . . . . . . . . . . . . . . . . . . 2-1SymbScnrDiscoveryEvent . . . . . . . . . . . . . . . . . . . . . 3-8SymbScnrFirmwareUpdateEvent . . . . . . . . . . . . . . . . 3-8

Page 47: Scanner WMI Driver Developer’s Guide

Index - 3

Ttest utilities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-2TotalDecodes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-3TotalGoodDecodes . . . . . . . . . . . . . . . . . . . . . . . . . . 3-3TriopticCode39 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-4

UUCCCouponExtendedCode . . . . . . . . . . . . . . . . . . . 3-3UCCEAN128 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-3UPCA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-3UPCE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-3UPCE1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-3UpdateAttribMetaFile . . . . . . . . . . . . . . . . . . . . . . . . 3-7UpdateAttributeMetaFile . . . . . . . . . . . . . . . . . . . . . . 3-9UpdateFirmware . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-6

WWindows Management Service . . . . . . . . . . . . . . . . 1-3windows services

RSM Driver Provider Service . . . . . . . . . . . . . . . 2-1Symbol Scanner Management . . . . . . . . . . . . . . 2-1

WMIcomponents . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-3driver architecture . . . . . . . . . . . . . . . . . . . . . . . . 1-2Driver WMI provider . . . . . . . . . . . . . . . . . . . . . . 2-1infrastructure . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-3mof file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-1overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-1plug-in . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-1provider installation . . . . . . . . . . . . . . . . . . . . . . . 2-2provider plug-in . . . . . . . . . . . . . . . . . . . . . . . . . . 1-3provider test utilities . . . . . . . . . . . . . . . . . . . . . . 4-2providers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-1repository . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-3return values, methods invocations . . . . . . . . . . 3-7Scanner WMI provider . . . . . . . . . . . . . . . . . . . . 2-1

Page 48: Scanner WMI Driver Developer’s Guide

Index - 4 WMI DRIVER DEVELOPER’S GUIDE

Page 49: Scanner WMI Driver Developer’s Guide

GLOSSARY

AAPI. An interface by means of which one software component communicates with or controls another. Usually used to

refer to services provided by one software component to another, usually via software interrupts or function calls

Aperture. The opening in an optical system defined by a lens or baffle that establishes the field of view.

Application Programming Interface. See API.

ANSI Terminal. A display terminal that follows commands in the ANSI standard terminal language. For example, it uses escape sequences to control the cursor, clear the screen and set colors. Communications programs support the ANSI terminal mode and often default to this terminal emulation for dial-up connections to online services.

ASCII. American Standard Code for Information Interchange. A 7 bit-plus-parity code representing 128 letters, numerals, punctuation marks and control characters. It is a standard data transmission code in the U.S.

Autodiscrimination. The ability of an interface controller to determine the code type of a scanned bar code. After this determination is made, the information content is decoded.

BBar. The dark element in a printed bar code symbol.

Bar Code. A pattern of variable-width bars and spaces which represents numeric or alphanumeric data in machine-readable form. The general format of a bar code symbol consists of a leading margin, start character, data or message character, check character (if any), stop character, and trailing margin. Within this framework, each recognizable symbology uses its own unique format. See Symbology.

Bar Code Density. The number of characters represented per unit of measurement (e.g., characters per inch).

Bar Height. The dimension of a bar measured perpendicular to the bar width.

Page 50: Scanner WMI Driver Developer’s Guide

Glossary - 2 WMI DRIVER DEVELOPER’S GUIDE

Bar Width. Thickness of a bar measured from the edge closest to the symbol start character to the trailing edge of the same bar.

BIOS. Basic Input Output System. A collection of ROM-based code with a standard API used to interface with standard PC hardware.

Bit. Binary digit. One bit is the basic unit of binary information. Generally, eight consecutive bits compose one byte of data. The pattern of 0 and 1 values within the byte determines its meaning.

Bits per Second (bps). Bits transmitted or received.

Bit. Binary digit. One bit is the basic unit of binary information. Generally, eight consecutive bits compose one byte of data. The pattern of 0 and 1 values within the byte determines its meaning.

bps. See Bits Per Second.

Byte. On an addressable boundary, eight adjacent binary digits (0 and 1) combined in a pattern to represent a specific character or numeric value. Bits are numbered from the right, 0 through 7, with bit 0 the low-order bit. One byte in memory is used to store one ASCII character.

BOOTP. A protocol for remote booting of diskless devices. Assigns an IP address to a machine and may specify a boot file. The client sends a bootp request as a broadcast to the bootp server port (67) and the bootp server responds using the bootp client port (68). The bootp server must have a table of all devices, associated MAC addresses and IP addresses.

boot or boot-up. The process a computer goes through when it starts. During boot-up, the computer can run self-diagnostic tests and configure hardware and software.

Page 51: Scanner WMI Driver Developer’s Guide
Page 52: Scanner WMI Driver Developer’s Guide

72E-149785-04 Revision A - April 2019

Zebra Technologies CorporationLincolnshire, IL U.S.A.http://www.zebra.com

ZEBRA and the stylized Zebra head are trademarks of Zebra Technologies Corporation, registered in many jurisdictions worldwide. All other trademarks are the property of their respective owners. ©2015-2019 Zebra Technologies Corporation and/or its affiliates. All rights reserved.