Giter Club home page Giter Club logo

ble-thermal-cat-printer-with-circuitpython's Introduction

BLE Thermal "Cat" Printer with CircuitPython

The printer has an internal battery, which needs charging via a micro USB cable (included). Once charged

  • Single button press (there is only one button) turns the unit on.
  • Double-pressing the button causes the printer to print a test page that features a QR code and some details, including the device Bluetooth name and the pairing PIN.

Overview

BLE Thermal "Cat" Printer with CircuitPython

BLE

Introduction to Bluetooth Low Energy

BLE Sniffer with nRF52840

Adafruit BLE Library

Scanning MX10

scanning
<Address 1a:11:27:26:bd:03> <ProvideServicesAdvertisement flags=<AdvertisingFlags general_discovery le_only > services=<BoundServiceList: UUID(0xaf30)> >
	Advertisement(data=b"\x03\x03\x30\xaf\x02\x01\x06")

Using The MX10 Thermal Printer

  • Power on the printer (you can tell it's powered on when the blue LED blinks), then power on your CLUE.
  • The CLUE will wait until it can connect to the printer.
  • Tap the "UP" button to move to the next file in the list. When you reach the end of the list, you'll be sent back to the first file.
  • Tap the "DOWN" button to send the selected file to the printer. While the print is in progress, button presses are ignored.
  • When the image is done printing, the CLUE will return to the screen where you can select an image to print.

Thermal Printer Demo

Logs

17:13:19.058 -> Scan Result: Name: MX10, Address: 1a:11:27:26:bd:03, manufacturer data: 1a112726bd03, serviceUUID: 0000af30-0000-1000-8000-00805f9b34fb, rssi: -52 
17:13:19.090 -> Found a match for MX10
17:13:19.090 -> Printer type = 2
17:13:19.090 -> A match! - 1a:11:27:26:bd:03 - MX10
17:13:23.618 -> Found a compatible device - MX10
17:13:23.618 -> Found a printer!, connecting...
17:13:23.618 ->  - Created client, connecting to 1a:11:27:26:bd:03
17:13:24.208 -> Came back from connect
17:13:24.706 ->  - Found our service
17:13:24.706 -> Got data transfer characteristic!
17:13:24.706 -> Connected!, printing graphics
17:13:27.650 -> Testing plain text printing
17:13:27.875 -> Disconnecting
17:13:27.875 -> Done!

ble-thermal-cat-printer-with-circuitpython's People

Contributors

lboue avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.