Contents
Display Legacy Contents

 Print
    Barcode Connect    
Connects to a Barcode device.

Parameters

DeviceType numeric
The type of barcode device to use.

it can be one of:

  • 0 - Internal API.
    Uses the device manufacturers API to connect to an internal or external scanner.

  • 1 - Serial Port.
    Connects to an external scanner using a serial port.

      Barcode Sufix expression string.
      The control character or characters that indicate the end of the barcode.

      Normally it is an ENTER.
      If this parameter is an empty string, the barcode is considered complete when nothing is received from the scanner for a few milliseconds (normally 100 ms), but can return invalid results if multiple barcodes are scanned in a very fast succession.


      Background Connection numeric.
      Specifies whether the connection is made or not in the background.

      it can be one of:

      • 1 - YES
        Connects in the background without blocking the application untill it succeeds

      • 2 - NO
        Blocks the application and waits until the connection succeeds.


      Device string
      The name of the device string specifying the serial port to open.

      Leave empty for system default.
      For example "BT1:" in Windows or "/dev/ttyS1" in Android.


      Port numeric
      The COM Port Number.

      A negative value specifies an LPT port.


      Baud Rate numeric
      The baud rate for the serial port that user wants to open.

      There are several pre-defined values for this parameter. For more information, see the notes.


      Data Bits numeric
      The number of data bits transmitted thru the serial port.

      it can be one of:

      • 1 - 7 bits

      • 2 - 8 bits.


      Stop Bits numeric
      The number of stop bits in the serial port.

      it can be one of:

      • 1 - 1 bit,

      • 2 - 2 bits.


      Parity numeric
      The number of parity bits in the serial port.

      it can be one of:

      • 1 - None,

      • 2 - Even,

      • 3 - Odd.


  • 2-Bluetooth.
    Connects to an external scanner using bluetooth.

      Barcode Sufix expression string.
      The control character or characters that indicate the end of the barcode.

      Normally it is an ENTER.
      If this parameter is an empty string, the barcode is considered complete when nothing is received from the scanner for a few milliseconds (normally 100 ms), but can return invalid results if multiple barcodes are scanned in a very fast succession.


      Background Connection numeric.
      Specifies whether the connection is made or not in the background.

      it can be one of:

      • 1 - YES
        Connects in the background without blocking the application untill it succeeds

      • 2 - NO
        Blocks the application and waits until the connection succeeds.


      MAC Address string
      The MAC Address of the device.


  • 3 - Socket.
    Connects to an external scanner using TCP/IP sockets.

      Barcode Sufix expression string.
      The control character or characters that indicate the end of the barcode.

      Normally it is an ENTER.
      If this parameter is an empty string, the barcode is considered complete when nothing is received from the scanner for a few milliseconds (normally 100 ms), but can return invalid results if multiple barcodes are scanned in a very fast succession.


      Background Connection numeric.
      Specifies whether the connection is made or not in the background.

      it can be one of:

      • 1 - YES
        Connects in the background without blocking the application untill it succeeds

      • 2 - NO
        Blocks the application and waits until the connection succeeds.


      Host Address string
      The Host Address of the device.


      Port numeric numeric
      The Port Number.

     
  • The pre-defined values for the Baud Rate are: 110, 300, 600, 1200, 2400, 4800, 9600, 14400, 19200, 38400, 56000, 57600, 115200 and 128000.

  • If Device String value is specified, the actual number in Serial Port is ignored to open the port, but you must specify the same Serial Port in subsequent Serial ... actions called to use the same port opened in this action.

  • Internal APIs supported in Windows CE/Mobile.
    • Motorola
    • Intermec
    • Psion
    • Cipherlab
    • Unitech
    • Honeywell
    • Datalogic
    • Pidion
    • M3
    • Denso
    • ACD
    • PointMobile
    • Newland

  • Internal APIs supported in Android.
    • Motorola
    • Intermec
    • Cipherlab
    • Honeywell
    • Datalogic
    • M3
    • Denso
    • Start Asura
    • Adlink
    • PointMobile
    • Newland

  • Internal APIs supported in Windows 10. In Windows 10 the API used is from the Operating System. So any device that complies with Win10 Windows.Devices.PointOfService.BarcodeScanner API should be supported.

See also
Barcode Disconnect
Barcode Enable
Barcode Disable
Barcode Scan
Barcode Set Enabled Symbologies
Barcode Get Enabled Symbologies
Motorola Scan Enum Device
Motorola Scan Connect
Motorola Scan Disconnect
Motorola Scan Enable
Motorola Scan Disable
Motorola Scan Barcode
Motorola Scan Set Enabled Symbologies
Motorola Scan Get Enabled Symbologies
Honeywell Scan Connect
Honeywell Scan Disconnect
Honeywell Scan Enable
Honeywell Scan Disable
Honeywell Scan Barcode
Honeywell Scan Set Enabled Symbologies
Honeywell Scan Get Enabled Symbologies
CipherLab Scan Connect
CipherLab Scan Disconnect
CipherLab Get Scanner Type
CipherLab Reset Scanner
CipherLab Read Barcode
CipherLab Set Scanner Preferences
CipherLab Set Symbology Options
Cipherlab Scan Enable
Cipherlab Scan Disable
Intermec Scan Enum Device
Intermec Scan Connect
Intermec Scan Disconnect
Intermec Scan Enable
Intermec Scan Disable
Intermec Scan Barcode
Intermec Scan Set Enable
Intermec Scan Get Enable
Intermec Scan Send Conf. Command
Intermec Scan Get Conf. Value
Unitech Scan Connect
Unitech Scan Disconnect
Unitech Scan Enable
Unitech Scan Disable
Unitech Scan Barcode
Psion Scan Connect
Psion Scan Disconnect
Psion Scan Enable
Psion Scan Disable
Psion Scan Barcode
Psion Scan Set Property
Psion Scan Get Property
Nordic ID Connect
Nordic ID Disconnect
Nordic ID Get Value
Nordic ID Set Value
Nordic ID Execute
Baracoda Initialize
Baracoda Uninitialize
Baracoda Get Device List
Baracoda Pair Device
Baracoda Unpair Device
Baracoda Is Device Paired
Baracoda Connect Device
Baracoda Disconnect Device
Baracoda Is Device Conn.
Baracoda Send Acknowledge
M3 Scan Connect
M3 Scan Disconnect
M3 Scan Enable
M3 Scan Disable
M3 Scan Barcode
M3 Scan Set Enabled Symbologies
M3 Scan Get Enabled Symbologies
Pidion Scan Connect
Pidion Scan Disconnect
Pidion Scan Enable
Pidion Scan Disable
Pidion Scan Barcode
Pidion Scan Set Enable Symbologie
Pidion Scan Get Enable Symbologie
Denso Scan Connect
Denso Scan Disconnect
Denso Scan Enable
Denso Scan Disable
Denso Scan Barcode
Denso Scan Set Enabled Symbologies
Denso Scan Get Enabled Symbologies
PointMobile Scan Connect
PointMobile Scan Disconnect
PointMobile Scan Enable
PointMobile Scan Disable
PointMobile Scan Barcode
PointMobile Scan Set Enabled Symbologies
PointMobile Scan Get Enabled Symbology
Newland Scan Connect
Newland Scan Disconnect
Newland Scan Enable
Newland Scan Disable
Newland Scan Barcode
Newland Scan Set Enabled Symbology
Newland Scan Get Enabled Symbology
Samples

 
 
Updated : 2/7/2017 11:27 AM