I am developing an Android Java app that uses thermal printers to print delivery notes.
Actually I have two printer models that print ok via Bluetooth (using ESC/POS) but when I try to do it with the DPP-450 (which supports ESC/POS ), it connects ok via Bluetooth, but does not print anything.
The way I print is:
if (mbtSocket!=null && mbtSocket.isConnected()) {
inReader = mbtSocket.getInputStream();
outReader = mbtSocket.getOutputStream();
int s = inReader.available();
outReader.write(setInitp);
String sendingmessage = "******************************" + "\n";
byte[] send = sendingmessage.getBytes();
outReader.write(send);
sendingmessage = "Esto es una prueba de impresión" + "\n";
send = sendingmessage.getBytes();
outReader.write(send);
outReader.flush();
s = inReader.available();
inReader.skip(0);
}
This piece of code works on my other two printers (Citizen CMP-40 and Star printer BTT), but not on the DPP-450.
Could some one help me please?