Barcode Connect
Kalipso - Form - Actions - Actions Description - Group Barcode - Barcode Connect
Connects to a Barcode device.
Action available for the following operating systems:
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.
4 - External API - Uses an external Java library provided by you to interact with the barcode scanner.
Jar File <string> - Defines the full path and name of the JAR or APK file that contains your barcode interface implementation.
Class Name <string> - Fully classified class name that contains the function to execute. See Notes for more details.
User Parameters <string> - String expression with any value that we will pass in the call to the Method Name.
5 - Android Intent - Uses android Broadcast receiver to receive Intents.
Action - The Android action sent to listen to
Category - The Android Category to listen to
Barcode Data Extra Name - On the intent received it is the name of the "Extra" containing the barcode data
Barcode Data Extra Type - The type of the Data parameter
Barcode Type Extra Name - On the intent received it is the name of the "Extra" containing the barcode symbology type
Barcode Data Extra Type - The type of the Type parameter
Notes
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:
Zebra
Intermec
Psion
Cipherlab
Unitech
Honeywell
Datalogic
Pidion
M3
Denso
ACD
PointMobile
Newland
Internal APIs supported in Android:
Zebra
Intermec
Cipherlab
Honeywell
Datalogic
Unitech
Urovo
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.
External API option allows you to implement an interface with a barcode scanner SDK and use standard Kalipso Barcode... actions to interact with it.
You can find the android java library containing the interfaces in Designer folder under "Plugins\Android\libs"
You should create a class that implements the KExternalScannerAPI interface. Then you pass in the path to the JAR/APK file you created and you must pass the name of the class that implements this interface. Kalipso will create an instance of this class, and any call to Kalipso Barcode... actions will be translated into a call to the corresponding Interface method.
The KExternalEventsInterface that you will receive in the Connect() call allow you to send barcode scan events and other additional events to Kalipso to App Notifed events in Kalipso forms and to register callbacks for some events to be sent to you from Kalipso. See RunJar.
Android Intent
This option will only listen for Broadcast, it is not possible to have any control on the scanner, using actions like BarcodeSetParameter.
BarcodeEnable should be called to specify where to store the barcode data, it does not actually interfaces with the scanner in any way to enable it.
BarcodeDisable only makes Kalipso ignore the barcodes received, it does not actually interfaces with the scanner in any way to disable it.
Last updated