Hi y'all,
I've searched the forum for printing to a Zebra printer from an android device, and have not found anything that works for my situation.
Situation:
Build B4A app that selects inventory items. The user then prints those items to the Zebra printer which is connected to the LAN, via USB to OTG cable. This will be the customers hardware setup.
I see there are lots of posts for BT connection, but that will not be the case for my customers multiple locations.
For testing purposes, my setup is such: the Zebra printer is connected to the desktop PC with the USB to OTG cable.
I need the Android device to recognize that printer and connect to it for print testing.
With my setup, I have not gotten past getting to connect to the printer or even the GetDevices function to see any devices.
And the customers setup will be different again, as described above.
The Data:
What will be printed on the label consists of inventory information such as PLU, Description, PLU printed as the Barcode, and Price. This data is downloaded to the device with JSON data to the local SQLite database. ZPL will be sent to the printer with the item data.
The labels are a 2-up (2 across) Zebra labels, if that makes a difference, but shouldn't.
Libraries Tried:
I've tried a number of libraries: RandomAccessFile, UsbSerial, Network, and USB, using examples from the forum.
But none will recognize the Zebra printer. I'm obviously doing it all wrong, as the posting people says it's working.
I've considered the Printing library but I don't know if it will send the ZPL data to the printer.
So I need help big time to connect to the printer and print ZPL to it.
Regards,
Mark Stuart
I've searched the forum for printing to a Zebra printer from an android device, and have not found anything that works for my situation.
Situation:
Build B4A app that selects inventory items. The user then prints those items to the Zebra printer which is connected to the LAN, via USB to OTG cable. This will be the customers hardware setup.
I see there are lots of posts for BT connection, but that will not be the case for my customers multiple locations.
For testing purposes, my setup is such: the Zebra printer is connected to the desktop PC with the USB to OTG cable.
I need the Android device to recognize that printer and connect to it for print testing.
With my setup, I have not gotten past getting to connect to the printer or even the GetDevices function to see any devices.
And the customers setup will be different again, as described above.
The Data:
What will be printed on the label consists of inventory information such as PLU, Description, PLU printed as the Barcode, and Price. This data is downloaded to the device with JSON data to the local SQLite database. ZPL will be sent to the printer with the item data.
The labels are a 2-up (2 across) Zebra labels, if that makes a difference, but shouldn't.
Libraries Tried:
I've tried a number of libraries: RandomAccessFile, UsbSerial, Network, and USB, using examples from the forum.
But none will recognize the Zebra printer. I'm obviously doing it all wrong, as the posting people says it's working.
I've considered the Printing library but I don't know if it will send the ZPL data to the printer.
So I need help big time to connect to the printer and print ZPL to it.
Regards,
Mark Stuart