Hm. Flir One FFC control with programm for STM32F4. But no data with restart interface...
--------------------------------------------------------------------
I am surprised. I read descriptor of interface. bAlternateSetting=1 means that the interface does not have end points! The bAlternateSetting=0 means that there are endpoints.
SetConfiguration( bInterfaceNumber=1, bAlternateSetting=0) - EP=0x83, 0x04;
SetConfiguration( bInterfaceNumber=1, bAlternateSetting=1) - No EP!!!
SetConfiguration( bInterfaceNumber=2, bAlternateSetting=0) - EP=0x85, 0x06;
SetConfiguration( bInterfaceNumber=2, bAlternateSetting=1) - No EP!!!
But initialize Flir One is:
1) SetConfiguration( bInterfaceNumber=1, bAlternateSetting=0)
2) SetConfiguration( bInterfaceNumber=2, bAlternateSetting=0)
3) SetConfiguration( bInterfaceNumber=2, bAlternateSetting=1) - No EP.
4) SetConfiguration( bInterfaceNumber=1, bAlternateSetting=1) - No EP.
How can this be?
In Linux
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 240
bInterfaceProtocol 1
iInterface 6 com.flir.rosebud.fileio
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x04 EP 4 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 1
In STM32F wMaxPacketSize=64.
And:
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 1
bNumEndpoints 0
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 240
bInterfaceProtocol 1
iInterface 6 com.flir.rosebud.fileio
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 240
bInterfaceProtocol 1
iInterface 6 com.flir.rosebud.fileio
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x04 EP 4 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 1