Use Terminal Bluetooth Printer

Initial Setup:

Not all terminals come with the Bluetooth printer service pre-installed. Before proceeding, ensure you download and install the bluetooth printer service APK.

Settings configuration:

  1. Navigate to Settings > Connected devices or drop down in the screen, click Bluetooth icon button to access the Connected devices page.

  2. Select Connection preferences > Printing, then disable Default Print Service and ensure CloudPOSPrinterService is enabled.

  3. Tap Pair new device.

  4. From the Available devices list, choose CloudPOS_Printer.

  5. Verify that CloudPOS_Printer appears under Saved devices.

Service Overview:

The Bluetooth printer service facilitates printing images and text using Bluetooth APIs. This service operates by connecting with Bluetooth printers and sending data for printing. Data is typically formatted as image and text documents.

Service Startup Process:

  1. Turning on Bluetooth: Automatically activates Bluetooth if it's not already on.

  2. Scanning for Devices: Discovers nearby Bluetooth devices.

  3. Pairing: Selects and pairs with a Bluetooth printer.

  4. Connecting: Establishes a connection using the Serial Port Profile (SPP).

  5. Data Transmission: Sends data in the form of ESC commands.

  6. Printing: Executes the print command for the transmitted data.

Prerequisites for Use:

  • Android SDK 24

  • Android Build Tools v27.0.0

  • Android Support Repository

  • ZXing (for barcode processing)

Getting Started with Development:

To build the Bluetooth printer service, you can use Gradle. Execute the gradle build command or use the "Import Project" option in Android Studio to get started.

Code snippet

  • Basic API of Bluetooth

  • Connection with SPP

  • Send and Print

Download Bluetooth demo

Bluetooth Printer APKarrow-up-right

Bluetooth Printer Demoarrow-up-right

Last updated