Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 07-19-2010, 01:43 AM   #1
LQ Newbie
Registered: Feb 2009
Posts: 29

Rep: Reputation: 15
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:

[  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


driver, gadget

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
usb gadget printer driver application grsandeep85 Programming 1 08-18-2010 01:24 AM
Problems with USB Gadget driver when host is windows VGM Linux - Newbie 2 07-07-2010 11:45 PM
MTP gadget driver Robert_A Programming 7 01-14-2010 02:51 PM
Problem with Serial Gadget driver simic Linux - Kernel 0 12-12-2007 04:21 AM
Sending signal from one host to other zaheer031 Linux - Networking 1 11-04-2004 12:31 PM

All times are GMT -5. The time now is 11:25 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration