串口连接打印机发送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);