This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

LPC2388 USB Host

How to interface USB printer to LPC2388

  • You have to implement USB Host functionality, and implement USB Printer Class which is basically Bulk IN and Bulk OUT endpoints, and implement some Printer Control Language on it to send commands that Printer will recognize.

  • Examine your printer, first.
    Most of recent low-cost printers are hard to run with MCUs.
    See this thread for the details.
    http://www.keil.com/forum/15962/

    Tsuneo

  • I am following below logic

    1. Sample code available for Mass storage USB Host is updated & used for interfacing with USB printer.
    2. Through that code data transmission over Control End point is done & Printer is enumerated properly
    3. when data(PCL commands) are sent over data end point. I am unable to communicate over printer.

    Following thing i have found through debuger

    For data transfer(Enumeration sequence) over control endpoint in HOST_TDControlStatus is 0x00

    but when i send data(PCL commands) through BulkEnd point, in HOST_TDControlStatus is 0x0F which corresponds to NOT Accseed as per Open Host Controller Document