I am making a device driver for printer using USB.

I am using gserial.c in driver/usb/gadget.
In general, once USB cable is connected to the Host PC, the Host PC sends
some request packet and device driver responds for request from Host PC.
Maybe, both Host PC and Device PC, request packets are delivered to each
other properly. When I connect USB cable to Host PC, 'New device is
detected' message is shown. So, I think that Standard requests and Class
requests are delivered to each other.

However, I don't sure that data is also delivered to each other.
By using usbserial.c in Host PC using Linux, if I type a text to
serial(ttyUSB0), it is delivered to USB and delivered to Device PC. This is
"Serial over USB" and it is run properly.
Because data which is typed on ttyUSB0 is delivered to USB, I think that,
in Device PC, PC does not need to know that data comes from whether ttyUSB0
or not. Device PC just knows that data comes from USB.
So, I connected USB cable to Host PC which is using Window-XP, and 'New
Device is detected' message is shown. That is, Host PC detected that
printer using USB is connected. 
However, when I installed printer driver made by someone for USB printer in
Host PC and I print some text, it seems to be send some data, but any
operation is not occurred in Device PC. 
Anybody knows why it is?

Is there any reference for printer device driver which is using USB?




-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to