One possible work around, some devices aren’t fussy about what configuration value they have, so if you could send a set_configuration, for a different value, like 1, it might actually configure the device.
I’m not sure that will help you, as the Mac OS will still not know the device is configured. You might just manage to do a SetConfiguration with a configuration of 1, but I think the Mac OS may be validating it’s legal value before it’ll try (or it might not if you’re lucky). You’re probably screwed, but if you can get this thing to work, that’d be the sort of thing you’d need to do. > On Oct 12, 2017, at 2:05 PM, Barry Twycross <[email protected]> wrote: > > A configuration value of zero is not going to work. > > It means that the device is not configured. See sec 9.4.2 of the spec: > > "If the returned value is zero, the device is not configured.” > > and 9.4.7: > > "If the configuration value is zero, the device is placed in its Address > state.” > > I.e. the device is unconfigured. Mac OS uses this so won’t work with devices > with a configuration of zero. if you say to set configuration zero, it’s > interpreted as unconfiguring it. > > Other OSs may see things differently. > >> On Oct 12, 2017, at 12:39 PM, Daniel Côté <[email protected] >> <mailto:[email protected]>> wrote: >> >> Hello: >> >> I am trying to get a device from the company Arcoptix to work. It appears >> very simple (single configuration, single interfaces single endpoint, output >> only). Should be trivial. However, I can't for the life of me get the USB >> Interface after configuring the device. >> >> The device comes "unconfigured", which is fine, however, as can be seen in >> the USB Prober dump below the bConfigurationValue for the only available >> configuration is actually "0" (i.e. zero). This means when I try to call the >> SetConfiguration() function, I end up calling it with the parameter 0. This >> looks weird to me as a value of zero in the current configuration actually >> means “unconfigured”, and usually the first bConfigurationValue is 1. >> >> I may be missing something here and I’d like to know what to do to select >> this configuration. >> >> Is their a problem with the device? (It works on Windows) What am I missing? >> Should the device be configured differently? I am not too sure if there is >> anything useful in "Other Speed Configuration Descriptor”. >> >> Daniel >> >> High Speed device @ 35 (0x14600000): >> ............................................. Composite device: "ARClc" >> Port Information: 0x001a >> Number Of Endpoints (includes EP0): >> Device Descriptor >> Descriptor Version Number: 0x0200 >> Device Class: 0 (Composite) >> Device Subclass: 0 >> Device Protocol: 0 >> Device MaxPacketSize: 64 >> Device VendorID/ProductID: 0x1B9E/0x3000 (unknown vendor) >> Device Version Number: 0x0003 >> Number of Configurations: 1 >> Manufacturer String: 1 "ARCoptix" >> Product String: 2 "ARClc" >> Serial Number String: 3 "SN-3-003-01.00-07.10-00.02.00-TST" >> Current configuration: 0 (unconfigured) >> Configuration Descriptor (current config): ...................... >> "\ua004" >> Length (and contents): 25 >> Raw Descriptor (hex) 0000: 09 02 19 00 01 00 04 <tel://09 02 >> 19 00 01 00 04> A0 FA 09 04 00 00 01 <tel://09 04 00 00 01> FF 00 >> Raw Descriptor (hex) 0010: 00 05 07 05 01 03 00 <tel://00 05 >> 07 05 01 03 00> 02 00 >> Number of Interfaces: 1 >> Configuration Value: 0 >> Attributes: 0xA0 (bus-powered, remote wakeup) >> MaxPower: 500 ma >> Interface #0 - Vendor-specific >> .............................................. "\ub005" >> Alternate Setting 0 >> Number of Endpoints 1 >> Interface Class: 255 (Vendor-specific) >> Interface Subclass; 0 (Vendor-specific) >> Interface Protocol: 0 >> Endpoint 0x01 - Interrupt Output >> Device Qualifier Descriptor >> Descriptor Version Number: 0x0200 >> Device Class 0 (Composite) >> Device Subclass 0 >> Device Protocol 0 >> Device MaxPacketSize: 64 >> Number of Configurations: 1 >> bReserved: 0 >> Other Speed Configuration Descriptor: >> ....................................... "ARCoptix" >> Length (and contents): 6407 >> Number of Interfaces: 0 >> Configuration Value: 1 >> Attributes: 0x04 (bus-powered) >> MaxPower: 256 ma >> Illegal Descriptor: Length of 0 >> >> >> Daniel Cote >> >> _______________________________________________ >> Do not post admin requests to the list. They will be ignored. >> Usb mailing list ([email protected] <mailto:[email protected]>) >> Help/Unsubscribe/Update your Subscription: >> https://lists.apple.com/mailman/options/usb/barry%40nestlabs.com >> <https://lists.apple.com/mailman/options/usb/barry%40nestlabs.com> >> >> This email sent to [email protected] <mailto:[email protected]>
_______________________________________________ Do not post admin requests to the list. They will be ignored. Usb mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/usb/archive%40mail-archive.com This email sent to [email protected]
