Browser Bluetooth proof of concept

XPrinter XP-P323B / XP-P326B

Discover the printer, inspect BLE services, find a writable characteristic, then test label and receipt command flows from the browser.

Not connectedReady to scan for a printer.
Web BluetoothChecking...
Secure contextChecking...
Writable GATTUnknown until connected
Status I/OUnknown until connected

Connect

Safest browser flow: explain first, then use the browser Bluetooth chooser. Native apps are required for fully custom pairing.

Current printerNone connected in this pageNo previous printer saved

macOS/Windows: use Chrome or Edge Web Bluetooth with the native chooser.

Android POC: use Chrome Web Bluetooth if BLE is exposed; native app is safest for Classic SPP.

iOS POC: use Bluefy with BLE service 18F0; production should use a native CoreBluetooth app.

Status & Sensors

Reads come back as printer status bytes, not direct browser sensor streams. Use raw bytes to map exact XPrinter behavior for paper end, head open, gap/black mark, and errors.

Paper end
Head open
Near end
Error/offline
No status bytes yet.Start listening, send a poll, then open the head or remove paper to capture the response.

GATT Inspector

Use this output to fill in stable service and characteristic UUIDs after hardware testing.

No device inspected yet.Connect to a printer to list its BLE services and characteristics.