LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Sending data from the gadget driver to the host (https://www.linuxquestions.org/questions/programming-9/sending-data-from-the-gadget-driver-to-the-host-820625/)

kewl 07-19-2010 01:43 AM

Sending data from the gadget driver to the host
 
I have been able to receive the data from the Windows Host PC to the linux gadget However the data which I am sending from the linux gadget is not being sent to host by the peripheral controller(in mycase it is net2280) I am try to debug the problem but not finding any clue, I have enabled the debug msgs and the dmesg is like this:


Code:

[  640.869435] net2280.c : Cleanup<6>net2280 0000:03:04.0: PCI INT A disabled
[  640.869576] net2280 0000:03:04.0: unbind
[  649.660158] net2280.c : Init
[  649.660259] net2280 0000:03:04.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
[  649.660512] net2280 0000:03:04.0: PLX NET228x USB Peripheral Controller
[  649.660527] net2280 0000:03:04.0: irq 16, pci mem f7dce000, chip rev 0101
[  649.660536] net2280 0000:03:04.0: version: 2005 Sept 27; dma enabled
[  653.004203] printer.c : Printer node creted : /dev/g_printer
[  653.004269] Printer Gadget: Printer Gadget, version: 2007 OCT 06
[  653.004279] Printer Gadget: using net2280, OUT ep-b IN ep-a
[  653.369699] Printer Gadget: ctrl req80.06 v0100 i0000 l64
[  653.373074] Printer Gadget: printer_disconnect
[  653.619711] Printer Gadget: ctrl req80.06 v0100 i0000 l18
[  653.620134] Printer Gadget: ctrl req80.06 v0200 i0000 l9
[  653.620575] Printer Gadget: ctrl req80.06 v0300 i0000 l255
[  653.621005] Printer Gadget: ctrl req80.06 v0303 i0409 l255
[  653.621385] Printer Gadget: ctrl req80.06 v0200 i0000 l255
[  653.621734] Printer Gadget: ctrl req80.06 v0300 i0000 l255
[  653.622130] Printer Gadget: ctrl req80.06 v0302 i0409 l255
[  653.622506] Printer Gadget: ctrl req80.06 v0300 i0000 l255
[  653.622882] Printer Gadget: ctrl req80.06 v0302 i0409 l255
[  653.645703] Printer Gadget: ctrl req80.06 v0200 i0000 l265
[  653.646121] Printer Gadget: ctrl req00.09 v0001 i0000 l0
[  653.646133] Printer Gadget: high speed config #1: 2 mA, Printer Gadget
[  653.646151] Printer Gadget: Using interface 0
[  653.729197] Printer Gadget: ctrl req80.06 v0100 i0000 l18
[  653.729646] Printer Gadget: ctrl reqa1.00 v0000 i0000 l1009
[  653.729657] Printer Gadget: 1284 PNP String: 2b MFG:linux;MDL:g_printer;CLS:PRINTER;SN:1;
[  685.809751] Printer Gadget: printer_open returned 0
[  685.814012] Printer Gadget: printer_write trying to send 23 bytes
[  685.814038] Printer Gadget: printer_write sent 23 bytes
[  685.814085] Printer Gadget: printer_close
[ 1286.021095] [drm:i915_getparam] *ERROR* Unknown parameter 6



All times are GMT -5. The time now is 03:16 PM.