https://github.com/star-micronics/starlabs-cashdrawer-sdk-android
Android SDK for Star Micronics SMD2 Max and CD3 Value series USB Cash Drawers
https://github.com/star-micronics/starlabs-cashdrawer-sdk-android
android cash-drawers cashdrawer sdk
Last synced: 8 months ago
JSON representation
Android SDK for Star Micronics SMD2 Max and CD3 Value series USB Cash Drawers
- Host: GitHub
- URL: https://github.com/star-micronics/starlabs-cashdrawer-sdk-android
- Owner: star-micronics
- License: mit
- Created: 2020-11-02T05:53:12.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2025-02-14T19:59:38.000Z (over 1 year ago)
- Last Synced: 2025-05-08T23:53:40.107Z (about 1 year ago)
- Topics: android, cash-drawers, cashdrawer, sdk
- Language: Java
- Homepage: https://www.starmicronics.com/pages/pos-cash-register-drawers
- Size: 6.88 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# USB CashDrawer SDK
SDK for SMD2 Max and CD3 Value series USB Cash Drawers.
More info on the Cash Drawers can be found on our [website](https://www.starmicronics.com/pages/pos-cash-register-drawers).
This SDK is distributed as an Android Library (AAR) and a sample app is provided to demonstrate usage.
## Star Labs
This SDK is a Star Labs project meaning that it is created and released, under an open source license, by Star Micronics employees or subsidiaries, but is not an official Star Micronics software product and not subject to the same guarantees, support or testing requirements from Star Micronics Co Ltd, Japan. As a result, quality, reliability and global support availability will vary between Star Labs projects, please check the project specific support information for details.
## Star Labs Project Status
This project has been developed by Star Micronics America and is safe to use in production.
Direct support is provided for the following regions: USA, Canada, Latin & Central America, and the Carribean.
## Getting Started
Run the included Android Studio project or add the AAR to you own project.
## Adding Dependencies
File :arrow_right: Project Structure :arrow_right: Dependencies :arrow_right: JAR dependency

## Add your imports
To access the **CashDrawer** class
`import com.starmicronics.labs.CashDrawer;`
The **CashDrawer** class provides functions for discovery, checking status and opening the CashDrawer.
## USB Cash Drawer PID/VID Information
The PID (Product ID) of our USB cash drawers can change based on the DIP switch settings. This feature is intentional in case users have multiple drawers and want them to be distinguishable by software.
The VID (Vendor ID) for Star Micronics USB cash drawers is 0519 (in HEX). The PID, however, can vary depending on the DIP switch settings on the back of the cash drawer, which control the USB ID.
## DIP Switch Settings for USB IDs
The following table outlines how the DIP switches should be configured to assign a specific USB ID. The default factory setting is USB ID 1011, with all switches set to 0 (OFF).

## USB Interface PIDs
The PID changes based on the DIP switch settings (USB ID). Here’s how the USB ID relates to the PID:
- USB ID 1011: Default PID
- USB IDs 1012 - 1018: Custom PIDs, assigned based on the DIP switch configurations.
This customization allows users to track multiple drawers and distinguish them within their software environment.
## Documentation
[API Reference](https://starmicronics.altervista.org/cashdrawersdk/documentation/)