K
kategor
Hi everyone,
I'm trying to print barcodes on Datamax printers (thermal barcode
printers), and I send an outputStream of byte[], but the printers does
nothing.
The printer is a Datamax Allegro 2, and the code I send is (for example):
<code>
byte[] linea_01 = {0x02,'A'};
outputStream.write(linea_01);
</code>
That is supposed to be an Immediate Command (the hex 0x02 is the
attention getter) and 'A' code is 'Send ASCII status string'.
I've a printer in com1, another in com2, and another in lpt1.(I've
trying in linux (/dev/ttyS0, S1 and /dev/lp0) and WinXP and it doesn't
works at all). I'm sure all ports work fine because I can read a
barcode-reader.
Well, if anyones knows anything about this, i could explain a bit more.
Thanks a lot.
I'm trying to print barcodes on Datamax printers (thermal barcode
printers), and I send an outputStream of byte[], but the printers does
nothing.
The printer is a Datamax Allegro 2, and the code I send is (for example):
<code>
byte[] linea_01 = {0x02,'A'};
outputStream.write(linea_01);
</code>
That is supposed to be an Immediate Command (the hex 0x02 is the
attention getter) and 'A' code is 'Send ASCII status string'.
I've a printer in com1, another in com2, and another in lpt1.(I've
trying in linux (/dev/ttyS0, S1 and /dev/lp0) and WinXP and it doesn't
works at all). I'm sure all ports work fine because I can read a
barcode-reader.
Well, if anyones knows anything about this, i could explain a bit more.
Thanks a lot.