On Tue, 6 May 2014, Peter Chen wrote:

> 3. Besides, I have tried two configurations, and each configuration with
> one function, I find the host PC always set configuration 1 (The first
>               configuration), any ways to switch configuration at host
> side? libusb?

You can switch configurations on a Linux host by writing to a sysfs 
file:

        echo N >/sys/bus/usb/devices/.../bConfigurationValue

where N is the bConfigurationValue of the config you want to use and 
"..." is the pathname for the device.

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to