This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to realize usb gadget printer on OMAPL138 ?

Other Parts Discussed in Thread: OMAPL138, DA8XX

I need configuring OMAPL138 as a usb gadget printer , i always config the linux kernel supporting usb gadget , details :

  < * > Inventra Highspeed Dual Role Controller(TI , ADI , ...)

  < * > DA8xx/OMAP-L1x

            Driver Mode (USB Peripheral(gadget stack)) - ->

   [ * ]   Disable DMA(always use PIO)

   [ * ]   Enable debugging messages

   < * > USB Gadget support  - - >

                   < M > USB Gadegt Drivers

                   < M > Printer Gadgets  

    after that , running make ARCH=arm CROSS_COMPILE=/ti-sdk-am180x-evm-05.05.01.00/linux-devkit/bin/arm-arago-linux-gnueabi-  uImage modules ,i get uImage and g_printer.ko   , then load kernel(uImage) and load the driver (g_printer.ko)   

                insmod  g_printer.ko  idVendor=0x154f idProduct=0x1300 .

     then   connected  the  OMAPL138  to the PC host , the  PC  host  running the system is Windwos 7 , usb printer is found in PC host .

     But , how to control the printer through the PC host?

 

Regards, 

JOE 

  •       now , i send a string from host side to  device side(omapl138 board) through the usb cable.    on device side ,  i run  prn_example -read_data ,  but  i can't received anything .  the prn_example is a example  in Document/usb/gadget/gadget_printer.txt  .

          I confirm  the srting be sent to the usb device through the USB Analyzer.

     

    Regards, 

    JOE