Wallboard keyboard emulator
Please note, in order to use Sensors and Sensor events, Premium (ENTERPRISE) license is required.
Requirements
- Android 4.0.6 application version
- Windows 4.0.210 application version
Setup & Configuration
- Navigate to Devices menu, then select the device where you want to use the sensors.
- Open the device settings by clicking on the icon
OR
- Click on the device card, then Select Settings tab
- Find sensor settings, then create a configuration from the following:
Parameters
| Parameter | Android | Windows | JS Core | Description | Possible values |
|---|---|---|---|---|---|
| eol | End-of-line character that triggers sensor event (e.g., Enter key from barcode scanner) | "\r" | |||
| defaultEvent | Default event name used in sensor events when no regex group match | "event" | |||
| defaultId | Default sensor ID, used when idGroupIndex doesn't match | "12" | |||
| target | Determines key event consumption. If target == "displayer", the emulator returns true from handle(), consuming the key event and preventing it from reaching other handlers | "displayer" | |||
| timeout | Sets the maximum amount of time the device will wait for a new key press, if the timeout expires the received message will be sent to the target | 100 | |||
| type | Emulator type, determines which emulator class handles events. usually if for example a barcode or NFC reader is used then the type has to be KEYBOARD | "KEYBOARD" or "SENSOR" or "IR" | |||
| pattern | Regex pattern for extracting id/event/value from keyboard input | "(.*)" | |||
| idGroupIndex | Regex capture group index for extracting the sensor ID from matched input | 3 | |||
| eventGroupIndex | Regex capture group index for extracting the event name from matched input | 2 | |||
| valueGroupIndex | which value group the regex should use. Example regex "(.*)": than the value group I want is 1, because I have one group only | 1 | |||
| ignoreModifiers | When true, modifier-only keypresses (Shift, Ctrl, etc.) are ignored | "false" |
Example configs
Basic eol config
- Example output:
{"event":"scan","id":"default","value":"0004556990"}
{
"services": [
{
"uid": "Eol scanner",
"type": "KEYBOARD_EMULATOR",
"settings": {
"rules": [
{
"eol": "\r",
"type": "KEYBOARD",
"defaultId": "default",
"defaultEvent": "scan",
"ignoreModifiers": false
}
]
}
}
]
}
Regex config
- Example output:
{"event":"04","id":"00","value":"556990"}
{
"services": [
{
"uid": "Regex scanner",
"type": "KEYBOARD_EMULATOR",
"settings": {
"rules": [
{
"pattern": "^(\\d{2})(\\d{2})(\\d{6})\\s*$",
"idGroupIndex": 1,
"eventGroupIndex": 2,
"valueGroupIndex": 3
}
]
}
}
]
}