Overview
Serial Input options are used to specify communications parameters for a scanner or other device connected to a serial port that will be used to acquire data. In the DataWedge UI, the number of serial ports availabile for selection varies according to the number of serial ports on the host device.
Serial Port Configuration
Applies only to devices running Android N and higher. Pre-N versions offer Enable/Disable function only.
Input enabled on Serial port 1 of a Zebra VC80x; second serial port (disabled) also shown.
Baud rate - specifies the modulation rate of the connected serial device.
Data bits - specifies the number of data bits in a serial frame (data bits per byte).
Parity - specifies the parity bits using one of the following values:
- None: No parity check
- Odd: Sets the parity bit so the count of bits set is an odd number
- Even: Sets the parity bit so the count of bits set is an even number
- Mark: Leaves the parity bit set to 1
- Space: Leaves the parity bit set to 0
Stop bits - specifies the number of stop bits to use.
Tapping on a setting displays a dialog box for changing its value.
Notes:
- Serial port configuration is available only on devices running Android N and higher. For prior versions, only the Enable/Disable options are available for serial ports.
- For more information about required serial communication settings of a specific device, please refer to documentation that accompanied the peripheral being connected.
- Serial-port settings also can be configured programmatically. See the Output Using Intents section below.
Output Using Intents
For some scanning applications, it might be preferable to output acquired data directly to an app or app activity rather than displaying decoded data on the screen. This is done using Android intents:
- SET_CONFIG API and sample code for setting serial parameters
- GET_CONFIG API and sample code for getting serial parameter settings
Relates Gudies:
- Intent Output guide | Information and important warnings about intent usage
- DataWedge APIs | List of all DataWedge intent APIs
- DataWedge Profiles | List of dataWedge Plug-ins for input, output and data processing
- Android Developer site | General information about Android intents