Hi all,
admittedly the subject is a bit deceiving. I'm not asking advice on which kind of printer to buy (unfortunately the customer already did it); rather, I'd like to hear from you whether an interface is preferable over the other (given both are available).
The context is easy. I had a B4J/Windows-only project working ok with an Epson TM-T20II printer. Then a customer asked for an Android version of it.
First step: convert existing code to B4xPages . Easier then expected. It took me less than one day
Second step: Adapt some UI elements from the 1024*768 fixed screen size to an old 10" Android tablet. Boring, but completed in an half day.
At that point the customer called, happily announcing to have just bought new tablets and printers ( so I had no chance of consulting..sigh ).
It seems (yes, at this moment I'm not 100% sure yet) that the tablet is a Vastking SA 10 while the printer should be a Starmicronics' mCP21LB
Now, looking at the specs, it seems that the tablet sports an USB-C connector that can work as an USB Virtual port and that the printer has its own USB (type B) port.
Both have BT 5.0 available too.
So (finally), what's my question? Here it is: Should I go the unknown "vitual usb port" path or switch to BT pairing?
If I read correctly the printer specs, that model doesn't use the ESC/EPSON mode so there's not so much I can re-use from the original TM-T20II module (which used javafx's "printBytes"/"printString" to send out data to the printer). Anyway, if using the USB interface is simply a matter of discover the virtual port name, then send out bytes according to the proper datasheet, it sounds easier and less error prone than BT. Am I right? What is your experience?
Thank you
admittedly the subject is a bit deceiving. I'm not asking advice on which kind of printer to buy (unfortunately the customer already did it); rather, I'd like to hear from you whether an interface is preferable over the other (given both are available).
The context is easy. I had a B4J/Windows-only project working ok with an Epson TM-T20II printer. Then a customer asked for an Android version of it.
First step: convert existing code to B4xPages . Easier then expected. It took me less than one day
Second step: Adapt some UI elements from the 1024*768 fixed screen size to an old 10" Android tablet. Boring, but completed in an half day.
At that point the customer called, happily announcing to have just bought new tablets and printers ( so I had no chance of consulting..sigh ).
It seems (yes, at this moment I'm not 100% sure yet) that the tablet is a Vastking SA 10 while the printer should be a Starmicronics' mCP21LB
Now, looking at the specs, it seems that the tablet sports an USB-C connector that can work as an USB Virtual port and that the printer has its own USB (type B) port.
Both have BT 5.0 available too.
So (finally), what's my question? Here it is: Should I go the unknown "vitual usb port" path or switch to BT pairing?
If I read correctly the printer specs, that model doesn't use the ESC/EPSON mode so there's not so much I can re-use from the original TM-T20II module (which used javafx's "printBytes"/"printString" to send out data to the printer). Anyway, if using the USB interface is simply a matter of discover the virtual port name, then send out bytes according to the proper datasheet, it sounds easier and less error prone than BT. Am I right? What is your experience?
Thank you