Connecting usb android printer wirelessly

gehaste

Honorable
Jul 15, 2013
1
0
10,510
Hi.I have a star micronics 100U/143U.It's an USB printer,i succesfully developed an android app that prints to it thru a direct USB cable.The printer supports android.
What i want to do next is to try and connect to that printer thru a wireless network.Something like connecting the printer to a device that transforms the USB into an IP.There are Star Micronics printers that connect wirelessly.In the Android SDK you can access the printer either by using "USB:" or using "TCP:ipHere".

What device do i need to achieve this ? To be able to transform that USB: to an IP.

I've thought about the following :
1. connecting the printer to a router with an USB port but i don't know if that router will give an IP to my USB printer.
2. connecting the printer to a USB-LAN adapter or to something like this that transforms my printer into a wireless network ?

Also,my printer doesn't send current thru USB.
Is there any solution to my problem ?
Thanks in advance !
 
Solution
You are looking for a Print Server. Haven't used one in about 5 years.
This lists both wired and wireless.
http://www.newegg.com/Network-Print-Servers/SubCategory/ID-387

Cheapest solution though is to hook up the printer via USB to a computer and share it, making the PC a print server.
The printer server will have an IP and allow access to printing via that IP.
EG: tcp:\\192.168.1.1:9100\VritalPrinterInstance
Depending on the server software and configuration you use, like Linux and CUPS.

Linux/CUPS Instructions:
http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/CUPS-printing.html


Windows instruction:
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/ntcmds_new_tools.mspx?mfr=true

See also...

fyrye

Honorable
Jul 1, 2013
136
0
10,760
You are looking for a Print Server. Haven't used one in about 5 years.
This lists both wired and wireless.
http://www.newegg.com/Network-Print-Servers/SubCategory/ID-387

Cheapest solution though is to hook up the printer via USB to a computer and share it, making the PC a print server.
The printer server will have an IP and allow access to printing via that IP.
EG: tcp:\\192.168.1.1:9100\VritalPrinterInstance
Depending on the server software and configuration you use, like Linux and CUPS.

Linux/CUPS Instructions:
http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/CUPS-printing.html


Windows instruction:
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/ntcmds_new_tools.mspx?mfr=true

See also:
http://usbip.sourceforge.net/

I use a CUPS printer server via Samba for my work. Simple one click driver installs after configuring it etc.

Some routers also support print servers such as the ASUS RT-N16 - http://www.asus.com/Networking/RTN16/
http://support.asus.com/FAQ/Detail.aspx?SLanguage=en&no=552E63A3-FA2D-1265-7029-84467B3993E4&m=RT-N16
https://www.youtube.com/watch?v=5kQU8lF0-5Q

No clue on drivers for the printer working with the phone however.
I assume your app handles that or you are feeding PS or Raw data to the printer.
 
Solution

shahjai75

Reputable
Jun 10, 2014
1
0
4,510
please can you give me your code to print via usb in android?
i have bluetooth printer share code.

I need help.

please send me simple demo project of code to my mail id.
technocratsappware@gmail.com