Android Question Microflash 4TE Receipt Printer, using USB Connection

James Costello

Member
Licensed User
Longtime User
Hi,

I am currently trying to connect my O'Neil Microflash 4TE printer to my tablet by USB, but I`m having difficulty printing text. I can send paper forward/reverse commands etc without problems, so I know my USB connection/communications are good.
Using this command : astreams1.Write("{AHEAD:500}".GetBytes("UTF8"))
(I`m using the USB Serial 2.4 library for this testing)

But when I try to print text using this command, I only see a few dots (like the paper isn`t moving as it prints)
astreams1.Write("{ECS EZ}".GetBytes("UTF8"))
astreams1.Write("{PRINT:mad:10,30:|Hi world|}".GetBytes("UTF8"))

So I`m guessing I`ve got some kind command of format problem?
The printer print a self test page fine, and if I print from a Windows PC is also OK; so doesn`t appear to be a hardware problem.

The programmers guide is here for anyone who can help:
https://www.datamax-oneil.com/do/at/de-de/file.cfm/110200.pdf?contentID=4457&ext=.pdf

Any guidance would be appreciated.

James
 

walterf25

Expert
Licensed User
Longtime User
Hi,

I am currently trying to connect my O'Neil Microflash 4TE printer to my tablet by USB, but I`m having difficulty printing text. I can send paper forward/reverse commands etc without problems, so I know my USB connection/communications are good.
Using this command : astreams1.Write("{AHEAD:500}".GetBytes("UTF8"))
(I`m using the USB Serial 2.4 library for this testing)

But when I try to print text using this command, I only see a few dots (like the paper isn`t moving as it prints)
astreams1.Write("{ECS EZ}".GetBytes("UTF8"))
astreams1.Write("{PRINT:mad:10,30:|Hi world|}".GetBytes("UTF8"))

So I`m guessing I`ve got some kind command of format problem?
The printer print a self test page fine, and if I print from a Windows PC is also OK; so doesn`t appear to be a hardware problem.

The programmers guide is here for anyone who can help:
https://www.datamax-oneil.com/do/at/de-de/file.cfm/110200.pdf?contentID=4457&ext=.pdf

Any guidance would be appreciated.

James
Have you tried sending the {LP} command, this should put the printer in Line command mode, followed by the {TP} command this should do a self test print out, look at page 14.
 
Upvote 0

James Costello

Member
Licensed User
Longtime User
Thanks for the fast reply... I`m trying to print in Easy Print mode, hence the {ECS EZ}, but I`ll give the line printer a go first.

Thanks, James
 
Upvote 0

James Costello

Member
Licensed User
Longtime User
I`m really pulling my hair out with this one now...Im running the printer in Easy Print mode (set on printer using Windows config software).

This command works and prints the text vertically, perfectly
"{PRINT,ROT270:mad:1,1:MF107|Hi world|}" & Chr(13)

BUT...this line just prints dots on single line, so it unreadable...
"{PRINT:mad:10,30:MF107|Hi world|}" & Chr(13)

Begging for help with this before I go crazy.


Thanks, James
 
Upvote 0

James Costello

Member
Licensed User
Longtime User
Can anyone help, I'm still struggling...
It would appear even the Datamax/O'Neil Android demo app can`t print over wifi to my printers (I have tried 2 different printers)...?
 
Upvote 0
Top