-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from gls-denmark/support-ring-scanner
Support ring scanner
- Loading branch information
Showing
14 changed files
with
215 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
// Top-level build file where you can add configuration options common to all sub-projects/modules. | ||
plugins { | ||
id("com.android.library") version "8.0.1" apply false | ||
id("com.android.library") version "8.2.0-rc02" apply false | ||
id("org.jetbrains.kotlin.android") version "1.8.0" apply false | ||
kotlin("plugin.serialization") version "1.8.21" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-bin.zip | ||
networkTimeout=10000 | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package dk.gls.kdw | ||
|
||
import dk.gls.kdw.implementation.KDWImplementation | ||
|
||
object KDW : KDWImplementation() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
kotlin-data-wedge-lib/src/main/java/dk/gls/kdw/configuration/scanner/DeviceId.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package dk.gls.kdw.configuration.scanner | ||
|
||
enum class DeviceId { | ||
/** Built-in imager scanner **/ | ||
INTERNAL_IMAGER, | ||
/** Built-in laser scanner **/ | ||
INTERNAL_LASER, | ||
/** Built-in camera scanner **/ | ||
INTERNAL_CAMERA, | ||
/** Pluggable Z-back scanner for ET50/ET55 **/ | ||
SERIAL_SSI, | ||
/** RS507 Bluetooth scanner **/ | ||
BLUETOOTH_SSI, | ||
/** RS6000 Bluetooth scanner **/ | ||
BLUETOOTH_RS6000, | ||
/** RS5100 Bluetooth scanner **/ | ||
BLUETOOTH_RS5100, | ||
/** DS2278 Bluetooth scanner **/ | ||
BLUETOOTH_DS2278, | ||
/** DS3678 Bluetooth scanner **/ | ||
BLUETOOTH_DS3678, | ||
/** Serial SSI scanner RS429 (for use with WT6000) **/ | ||
PLUGABLE_SSI, | ||
/** Serial SSI scanner RS5000 (for use with WT6000) **/ | ||
PLUGABLE_SSI_RS5000, | ||
/** DS3608 pluggable USB scanner **/ | ||
USB_SSI_DS3608 | ||
} |
10 changes: 0 additions & 10 deletions
10
kotlin-data-wedge-lib/src/main/java/dk/gls/kdw/configuration/scanner/HardwareScanner.kt
This file was deleted.
Oops, something went wrong.
25 changes: 25 additions & 0 deletions
25
kotlin-data-wedge-lib/src/main/java/dk/gls/kdw/configuration/scanner/IHardwareScanner.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package dk.gls.kdw.configuration.scanner | ||
|
||
import dk.gls.kdw.model.scanner.ScannerOutput | ||
import kotlinx.coroutines.flow.Flow | ||
|
||
interface IHardwareScanner { | ||
/** | ||
* Receive the [ScannerOutput] as a flow | ||
*/ | ||
fun scannerOutputFlow(): Flow<ScannerOutput> | ||
|
||
/** Suspend the scanner **/ | ||
fun suspendScanner() | ||
|
||
/** Resume the scanner **/ | ||
fun resumeScanner() | ||
|
||
/** | ||
* Send a variable amount of notification lists specifying the notifications for the remote scanner (RMS) | ||
* The notifications are send with a delay between parsed lists of 1000 ms | ||
* Official documentation | ||
* @link https://techdocs.zebra.com/datawedge/8-2/guide/api/notify/ | ||
**/ | ||
fun remoteScannerNotifications(deviceId: DeviceId, vararg notifications: List<RemoteScannerNotification>) | ||
} |
35 changes: 35 additions & 0 deletions
35
kotlin-data-wedge-lib/src/main/java/dk/gls/kdw/configuration/scanner/NotificationSettings.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package dk.gls.kdw.configuration.scanner | ||
|
||
enum class RemoteScannerNotification(val value: Int) { | ||
ONE_HIGH_SHORT_BEEP(0), | ||
TWO_HIGH_SHORT_BEEPS(1), | ||
THREE_HIGH_SHORT_BEEPS(2), | ||
FOUR_HIGH_SHORT_BEEPS(3), | ||
FIVE_HIGH_SHORT_BEEPS(4), | ||
ONE_LOW_SHORT_BEEP(5), | ||
TWO_LOW_SHORT_BEEPS(6), | ||
THREE_LOW_SHORT_BEEPS(7), | ||
FOUR_LOW_SHORT_BEEPS(8), | ||
FIVE_LOW_SHORT_BEEPS(9), | ||
ONE_HIGH_LONG_BEEP(10), | ||
TWO_HIGH_LONG_BEEPS(11), | ||
THREE_HIGH_LONG_BEEPS(12), | ||
FOUR_HIGH_LONG_BEEPS(13), | ||
FIVE_HIGH_LONG_BEEPS(14), | ||
ONE_LOW_LONG_BEEP(15), | ||
TWO_LOW_LONG_BEEPS(16), | ||
THREE_LOW_LONG_BEEPS(17), | ||
FOUR_LOW_LONG_BEEPS(18), | ||
FIVE_LOW_LONG_BEEPS(19), | ||
FAST_WARBLE_BEEP(20), | ||
SLOW_WARBLE_BEEP(21), | ||
HIGH_LOW_BEEP(22), | ||
LOW_HIGH_BEEP(23), | ||
HIGH_LOW_HIGH_BEEP(24), | ||
LOW_HIGH_LOW_BEEP(25), | ||
HIGH_HIGH_LOW_LOW(26), | ||
GREEN_LED_OFF(42), | ||
GREEN_LED_ON(43), | ||
RED_LED_ON(47), | ||
RED_LED_OFF(48) | ||
} |
Oops, something went wrong.