~/talk

Let Kotlin Handle Low Layers Too! — Mastering Language Features Even for Hardware Control

TalkinJapaneseat DroidKaigi 2026 · 2026-09-01..09-03· [android, embedded-and-hardware]
slides:none on file

Presents a Kotlin-based DSL that turns raw ESC/POS byte sequences into a readable, type-safe API for controlling thermal printers, implemented and tested on 10+ USB printers. Describes handling USB Host API issues (bad cables, 5V/12V and 1–3A power needs, per-device buffer limits) using bulk transfers, timeouts and resumable chunks, and shows Compose off-screen Bitmap rendering to create ESC/POS image commands for CI/CD-verified printable receipts.

AI-written summary · about

  1. 0:00Introduction
  2. 3:45Hardware and Android basics
  3. 8:51ESC/POS protocol with Kotlin DSL
  4. 15:18USB pitfalls and Android APIs
  5. 21:50Hardware-software integration
  6. 27:38Compose UI preview
  7. 31:53Device compatibility and generic printers
  8. 34:46Summary
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.