H19

Revision as of 22 October 2010 18:06 by Administrator (Comments | Contribs) | (FAQ) m

FAQ

What's the best way to get the Device ID of an H19?

Use the GetDeviceId method of the H19 SDK (H1xSDK.dll).

My app is throwing an exception when I try and create a ScanBarcode or BarcodeDevice object on other Windows Mobile devices. What's going on?

Well, the H1xSDK is only meant for the H16 and H19 devices! If your app needs to try and determine the model of device at runtime, there are a few ways to go about it: you can use the GetSystemInfo native function and the OEM ID field of the structure it returns, or if your app is written in C# and using the .NET runtime, and you don't want to P/Invoke GetSystemInfo, you can check out the DeviceManagement class of the OpenNETCF framework.

Is there an emulator image for the H19 available in the SDK for debugging/testing?

No, there is not. You can test standard Windows Mobile code on one of the standard emulator images, but if you need to test anything related that employs the use of the H1xSDK, you'll need to debug/test on an actual device.

The Universal Menu Book codes I put in the initBCR file get overwritten when my application is run. What's going on?

If your application is utilizing the H1xSDK (rather than using the barcode scanner in keyboard wedge mode) and sending Universal Menu Book commands using the SendCommand method, then those command will overwrite anything you'd previously set in the initBCR file. This is by design.

When I scan in my application, the data being gathered in my BarcodeDataReceived event handler is the barcode I scanned, but multiple instances of it, strung together. I only want a single instance of the barcode data. Help!

You likely have multiple read mode turned on; this will perform multiple decodes in one scan session, and return the data of each successful decode. Enabling single read mode will enable you to get the single decode you're looking for. You can do this through the Scanner application or via code:
ScanBarcode sb = new ScanBarcode();
sb.ReadMode = ScanBarcode.ReadModes.RM_SINGLE;

Links