I must support print to a mobile printer. Where start

Discussion in 'iOS Programming' started by mamcx, Jan 29, 2009.

  1. mamcx macrumors regular

    Joined:
    Mar 13, 2008
    #1
    I'm building a app as a mobile POS for the iPhone.

    I have the requeriment to support printing to a mobile printer (like http://pos.epson.com/products/prodsPMOP.htm). I know that the status of native iPhone printing is still gray right now, but considering that:

    - I'm free to decide which kind of mobile printing I will support. Only requeriment from customer is that must be suitable for sales on the road
    - I have time. I expect launch the App in 2-3 months, but can delay native printing to 6 months.
    - I know about wireless printing,like HP have in the AppStore. That is ok, I will support that, but is just not enough for that customers.

    So, where to start? Where to look for code, or advice?
     
  2. CommanderData macrumors regular

    Joined:
    Dec 1, 2007
    #2

    Bluetooth is out indefinitely, tethering/USB is out indefinitely. WiFi is your only hope, and I doubt Epson will make it easy for you.

    I'd say your *only* hope at all is to buy one of those 802.11b TM-T88 printers and reverse-engineer the protocol with a packet sniffer if you can't get it by signing up for their tech resources here http://pos.epson.com/developers/index.htm
     
  3. mamcx thread starter macrumors regular

    Joined:
    Mar 13, 2008
    #3
    Do you mean that that printer act as a kind of wireless router, not depending of a normal router for comunications?
     
  4. chbeer macrumors member

    chbeer

    Joined:
    Sep 22, 2008
    Location:
    Berlin
    #4
    I would have a look at linux and CUPS as the protocol. OSX uses CUPS as a printing framework, too.

    Hiere is a link about sharing a USB printer in OSX:
    Sharing A Mac USB Printer Over The LAN

    Since CUPS is open source you should find out about the protocol easily. What you could also do with linux is providing a simple pdf2cups service that you can access from the iphone. For printing you simply create a PDF and send it to your service using HTTP or something. Then you can build the service on the server using PHP, Java or what you like.

    Link to CUPS:
    CUPS

    Since CUPS is developed by Apple you should also find a way to build a client for the iPhone.

    ADD: I read in the CUPS docs:

    (http://www.cups.org/documentation.php/api-cups.html#CLIENTS_AND_SERVERS)

    So maybe IPP is a choice for you? But easier would be to use CUPS for that...

    Also: OSX provides a nice Bonjour service for the printer.
     
  5. CommanderData macrumors regular

    Joined:
    Dec 1, 2007
    #5
    I wouldnt' know. But I'd assume that it is capable of WiFi ad-hoc connections. Epson's site is woefully inadequate unless you register...
     

Share This Page