Cognex Mobile Barcode SDK Knowledge Base

Installing cmbSDK

https://cmbdn.cognex.com/v2.7.x/knowledge/cognex-mobile-barcode-sdk-for-android/using-cmbsdk/installing-cmbsdk

...Installing the Android cmbSDKNote: cmbSDK is compatible with Android Studio.Download the Cognex MobiAndroid cmbSDKNote: cmbSDK is compatible with Android Studio.Download the Cognex Mobile Barcode SDK for And...

Target Decoding

https://cmbdn.cognex.com/v2.7.x/knowledge/how-to-guides/target-decoding

...ault value: OFFExamplereaderDevice.getDataManSystem().sendCommand("SET DECODER.TARGET-DECODING ON");AndroidSwiftObjective-CreaderDevice.getDataManSystem().sendCommand("SET DECODER.TARGET-DECODING ON");self.r...

Getting Started

https://cmbdn.cognex.com/v2.7.x/knowledge/xamarin/xamarin.android/getting-started

...Open Visual Studio and follow these steps:1. Go to File -> New -> Project.2. Select Android App (XamAndroid App (Xamarin), set project name and from templates select Blank AppAfter creating a blank applicati...

Getting Started

https://cmbdn.cognex.com/v2.7.x/knowledge/xamarin/xamarin.forms/getting-started

...ject.2. Create Mobile App(Xamarin.Forms) , set project name, from templates select Blank and choose Android and iOS platform.Next right click on your Android platform specific project file, then click Proper...

Introduction

https://cmbdn.cognex.com/v2.7.x/knowledge/cordova-plugin-for-cmbsdk/introduction

...e js file that can be found in the www folder of your Cordova app.Supports the two major platforms: Android and iOS. All features on both platforms are tailored to work the same from a user/developer point o...

Integrating cmbSDK React-Native Module

https://cmbdn.cognex.com/v2.7.x/knowledge/react-nat/integrating-cmbsdk-react-native-module

...x enabled app to the app store. This is ONLY required for scanning with an MX mobile terminal. For Android there is no extra steps needed And that's it. You should be able to run your app with the cmbSDK r...

Licensing cmbSDK

https://cmbdn.cognex.com/v2.7.x/knowledge/cognex-mobile-barcode-sdk-for-android/using-cmbsdk/licensing-cmbsdk

...ales Representative for information on how to obtain a license key, including 30-day trial licenses.Android: After obtaining your license key, add the following line in the AndroidManifest.xml file of your ...

Multicode

https://cmbdn.cognex.com/v2.7.x/knowledge/how-to-guides/multicode

...t number of codes that the decoder should find for a successful read result.Default value: 1ExampleAndroidSwiftObjective-CreaderDevice.getDataManSystem().sendCommand("SET MULTICODE.NUM-CODES 3"); self.read...

Installation

https://cmbdn.cognex.com/v2.7.x/knowledge/cordova-plugin-for-cmbsdk/installation

...ute_path_to_plugin_directory//for example: /Users/superUser/cmb-cordova-master cordova platform add android //cordova platform add ios //if you want to build on iosFor an Ionic solution:#install ionic sudo n...

Migrating from a DataMan SDK for MX Readers to cmbSDK

https://cmbdn.cognex.com/v2.7.x/knowledge/cognex-mobile-barcode-sdk-for-android/using-cmbsdk/migrating-from-a-dataman-sdk-for-mx-readers-to-cmbsdk

... your project.USB_ DEVICE-ATTACHED and USB_ACCESSORY_ATTACHED Intent filters and meta-data from the AndroidManifest.xml file.USB and accessory descriptor xml files from the XML folder....

Parsers

https://cmbdn.cognex.com/v2.7.x/knowledge/how-to-guides/parsers

... get selected type. Set parser type after valid connection to reader device. None by default.ExampleAndroidSwiftObjective-CreaderDevice.setParser(ResultParser.AAMVA);self.readerDevice.parser = CMBResultParse...

Licensing the SDK

https://cmbdn.cognex.com/v2.7.x/knowledge/xamarin/xamarin.android/licensing-the-sdk

...well as the methods for//passing the key to the SDK (in this example, we're relying on an entry in//AndroidManifest--there are also getPhoneCameraDevice methods where it can be passed//as a parameter).//****...

Licensing the SDK

https://cmbdn.cognex.com/v2.7.x/knowledge/xamarin/xamarin.forms/licensing-the-sdk

...hods for//passing the key to the SDK (in this example, we're relying on an entry in//plist.info and androidmanifest.xml--there are also DeviceCamera methods where it can be passed//as a parameter).//********...

Region of Interest (ROI)

https://cmbdn.cognex.com/v2.7.x/knowledge/how-to-guides/region-of-interest-roi

...raints implied between args, such as the total sum for a given axis to be no more than 100. ExampleAndroidSwiftObjective-CreaderDevice.getDataManSystem().sendCommand("SET DECODER.ROI-PERCENT 10 80 10 80");s...

Implementing SDK

https://cmbdn.cognex.com/v2.7.x/knowledge/xamarin/xamarin.android/implementing-sdk

...eader device constructor (getPhoneCameraDevice) when reader device is initialized.<RelativeLayoutandroid:id="@+id/rlPreviewContainer"android:layout_width="match_parent"android:layout_height="200dp"android...

Implementing SDK

https://cmbdn.cognex.com/v2.7.x/knowledge/xamarin/xamarin.forms/implementing-sdk

...nnerExceptions)args[0] != ScannerExceptions.NoException){// ask for Camera Permission if necessary (android only, for iOS we handle permission from SDK)if ((ScannerExceptions)args[0] == ScannerExceptions.Cam...

Setting up an Application to Use cmbSDK for Android copy

https://cmbdn.cognex.com/v2.7.x/knowledge/cognex-mobile-barcode-sdk-for-android/using-cmbsdk/setting-up-an-application-to-use-cmbsdk-for-android-copy

...eader device constructor (getPhoneCameraDevice) when reader device is initialized.<RelativeLayoutandroid:id="@+id/rlPreviewContainer"android:layout_width="match_parent"android:layout_height="200dp"app:lay...