Re: USB Function application testing




Hi Tim,

Ya you are right but we can't say its not possible. One solution is to add
function controller chip like Net2280 but problem is that I'll have to
purchase this extra hardware. I am looking for some other options as well.
Can you please tell me is there any software simulation model that can help
my function side application to communicate with Windows host?


"Tim Roberts" wrote:

mooni <mooni@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

I developed an application using libusb api's that runs on my host pc and
communicates with any device on physical usb port. Till here its fine and its
quite good to test any host application.

But now I want to write function side application and want it communicate
with windows host. How can libusb help me in this case? It looks a bit
difficult as PC needs to be able to treat the application just as if it were
a real USB mass storage device sitting in a USB port. I hope you ppl. have
got my point.

In simple words I want to write USB function application and want it to
communicate with my host PC. what are the possible options as PC does not
have any function/device port in it so how to do this kind of communication?

You already asked this question on the libusb mailing list. The answer is
the same on this list: not possible.

The problem is not software. The problem is HARDWARE. The host controller
in your PC can only be a USB master. It cannot act as a USB device.

Some of the platforms used for Windows CE have both a USB host controller
chip and a USB device chip.
--
Tim Roberts, timr@xxxxxxxxx
Providenza & Boekelheide, Inc.

.



Relevant Pages

  • Re: developing Application software for a host to communicate with a USB device
    ... Writefile, & Readfile functions to communicate with the USB peripheral. ... Also how to access different endpoints of device by the host? ...
    (comp.arch.embedded)
  • Re: USB Function application testing
    ... quite good to test any host application. ... But now I want to write function side application and want it communicate ... a real USB mass storage device sitting in a USB port. ...
    (microsoft.public.development.device.drivers)
  • Re: designing of frame grabber
    ... "I just need to have one USB controller(both host and device controller in ... If you find a 'chip' I'd like to know as well!. ... insignificance compared to the can-o'-worms nightmare of host USB ...
    (sci.electronics.design)
  • Re: USB Function application testing
    ... I do not think the commodity USB controller hardware supports function-side ... quite good to test any host application. ... But now I want to write function side application and want it communicate ... How can libusb help me in this case? ...
    (microsoft.public.development.device.drivers)
  • i2c chip connected through USB port / Serial converter ttyUSB0 --Linux 2.6.17
    ... I am trying to communicate with an i2c board that is connected to my PC ... through USB. ... The serial converter works and the PC detects the device ...
    (comp.arch.embedded)

Quantcast