串口连接打印机发送16进制指令,打印机无反应,通过PC串口调试工具发送可以实现打印,请教大侠求助!
String msg = "abcdefg";
mOutputStream.write(msg);
byte order[] = { (byte) 0x0D, (byte) 0x0D, (byte) 0x0D,
(byte) 0x0D, (byte) 0x0D, (byte) 0x0D, (byte) 0x69 };
mOutputStream.write(order);
String msg = "abcdefg";
mOutputStream.write(msg);
byte order[] = { (byte) 0x0D, (byte) 0x0D, (byte) 0x0D,
(byte) 0x0D, (byte) 0x0D, (byte) 0x0D, (byte) 0x69 };
mOutputStream.write(order);
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货