Hello,

A while back I asked a bunch of newbie questions and they were answered.
Thankyou very much. Gadgetfs seems to be working, I *think*.
Since the last time I e-mailed this mailing list, I have decided to use
libusb-win32 with gadgetfs. My goal is still to get some simple
communcation (read/write) done between the host computer and the device.

I *think* I have almost got it, but am not there yet ... or I may not be
where at all ... I really don't know. Any help directing me towards the
right direction will be greatly appreciated.

Here is what I currently have on the hostside, using libusb-win32
(based on libusb's developers guide @
http://libusb.sourceforge.net/doc/functions.html) :

--- briefly ...

    dev = device_init();
    handle = usb_open(dev);

       // set configuration
    usb_set_configuration(handle,1);

       // claim interface
    usb_claim_interface(handle, 0);

       // set alternate interface
    usb_set_altinterface(handle, 0);

---- ...

All seems successful for the above though I'm not sure why the '1' in
usb_set_configuration(handle,1) works when the bConfigurationValue is 3
on gadgetfs. :-/

Next, I'd like to use libusb's usb_bulk_write() or usb_bulk_read() to
read/write to the endpoints but that hasn't been successful so far.
Which brings me to my first question : What is the address of my IN/OUT
endpoints? How do I go about finding that out? I can see the following
files in /dev/gadget :

ep2out-bulk
ep2in-bulk
ep1in-int
amd5536udc

... and would love to be able to just write to ep2in-bulk or ep2out-bulk
(or whichever).

---- ...

For your reference, here is the output on the device that is running the
usb.c sample code. I don't know what it's suppose to do next after the
CONFIG #3 stage.

 CONNECT high speed
 SETUP 80.06 v0300 i0000 255
 ... get string 0 lang 0000
 SETUP 80.06 v0303 i0409 255
 ... get string 3 lang 0409
 SETUP 80.06 v0302 i0409 255
 ... get string 2 lang 0409
 SETUP 80.06 v0300 i0000 255
 ... get string 0 lang 0000
 SETUP 80.06 v0302 i0409 255
 ... get string 2 lang 0409
 SETUP 80.06 v0300 i0000 255
 ... get string 0 lang 0000
 
    goes on for a while

 SETUP 00.09 v0003 i0000 0
 CONFIG #3
 simple_source_thread start 16386 fd 13
 simpele_sink_thread start 32771 fd 14

---- ...

All confusion aside, this has been quite interesting and I do hope to
learn more. Thankyou.

Yours,
Lisa
Newbie. 


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to