On Fri, Nov 16, 2012 at 2:57 AM, Craig Demel wrote:
> Hi,
>
> I'm trying to reproduce some of what Microsoft's Lifecam software does so
> the camera's exposure settings work better on other platforms. For getting
> USB traces I'm using SniffUSB, which has lines like this:
>
>   TransferFlags          = 00000001 (USBD_TRANSFER_DIRECTION_IN,
> ~USBD_SHORT_TRANSFER_OK)
>
>
> Right now I'm sending commands like:
> dev.ctrl_transfer(0xa1, 0x85, 0x1600, 0x500, 2)
> Which sets the direction just fine, but not the short_transfer_ok flag.
>
> Is it possible to do this in PyUSB?

As far as I know, it is not and it is not mentioned in the
documentation. Only the openbsd backend can use a "flags" attribute in
some cases, but I don't even know if those are transfer flags. So you
will have to use libusb directly. Or add support for this in pyusb :)

Anyway, the "~" in the TransferFlags decoding above means that the
flag is not set, right?

Also, please correct me if I am wrong: Transfer flags are not part of
the USB transactions, do not go across the wire to the device, and are
only used between the application and the lower-level host USB stack.

Regards,
Tormod

------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
pyusb-users mailing list
pyusb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyusb-users

Reply via email to