StarPrint+OpenWRT+Printer Sharing

22 Jun

Before i start the tutorial, i want to say thanks to Hamam Jafar from OpenWrt Indonesia Facebook group,  to point to this great android application called “Star Print”.

Now lets start.

First of all, i want to tell you the device that i use:

1. Samsung galaxy Note II with DN4 v2.1.

2. Vodafone HG553 with OpenWrt Barrier Breaker version 14.07.

3. CANON Pixma MP237.

Here is the steps:

1. Connect to your modem via ssh or putty. Type in “opkg update” to update the list of packages. Then you need to install the usb driver, i’m using this command “opkg install luci-app-p910nd kmod-usb-printer p910nd”.

2. After the installation complete and there is no error, now connect the printer usb port to the router, turn it on. Back to putty, and type “dmesg”, if you find something similar like this:

printer.c: usblp0: USB Bidirectional printer  2 if 0 alt 0 proto 2 vid 0x04A9 pid 0x1094
usb.c: USB disconnect on ice 01:02.0-1 address 2
hub.c: new USB ice 01:02.0-1, assigned address 3
printer.c: usblp1: USB Bidirectional printer  3 if 0 alt 0 proto 2 vid 0x04A9 pid 0x1094

then your printer already installed.

3. Now we go to luci interface. For me it is 192.168.1.1 in the browser. Then login, choose the Services -> p910nd – Printer Server. Check the enable checklist then in the interface, choose LAN. Port: 9100. Checklist the bidirectional mode. Then press Save & Apply.

4. Now. Go to system -> Startup. Look at p910nd. To make sure the service is started. Press the start button beside the p910nd.

5. Now. To make sure the printer service is really ready. Go to putty again then type “netstat -an”

If you see

Tcp 0 *.*.*.*:9100

Then the service is running.

6. Open your android device. Install Star Print here:

Star print

Then open it. Slide it to Print Preview. On the printer option, click on “[No printer Selected]”. Press the Shared Printer in the middle bottom side. Type the Printer name to anything you like. Click on the IPP in the type options, Change it to “AppSocket(JetDirect)”. Type the Host to 192.168.1.1 and the port to 9100. Type the Shared name (i type mp237). Next click the select driver in the driver Options. Choose the manufacture of the printer. Then choose the type of printer that you got. After that press Ok.

7. Now connect your android device to the router via Wifi. Then open again the Star Print application. Choose the document you want to print. Then press print.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: