escpos-php icon indicating copy to clipboard operation
escpos-php copied to clipboard

connect to sunmi inner Bluetooth printer

Open rami1973 opened this issue 3 years ago • 1 comments
trafficstars

How we can connect to sunmi inner Bluetooth printer?

rami1973 avatar Mar 09 '22 13:03 rami1973

Hi!

I use a Sunmi T2 mini with the rawbt app. It's possible via RawbtPrintConnector from a web page (see examples) or NetworkPrintConnector using the LanShare settings (quick manual see here).

Notice: Referring to the SUNMI Printer Developer Documentation you have to send 0x1c, 0x26, 0x1c, 0x43, 0xff to print unicode characters (e.g. german umlaute and € sign).

$printer->selectPrintMode();
$connector->write("\x1c\x26\x1c\x43\xff");
$printer->textRaw("öäü €");

stefankugler avatar Mar 13 '22 22:03 stefankugler