Перейти к содержанию
    

День добрый!

Пробую реализовать CDC EEM. Дескрипторы в порядке! Устройство в вин10 опознается как Generic USB EEM Network Adapter, но не стартует. Под линухой и вин7 с кастомными драйверами нормально всё!

У кого какие успехи?

 

У кого нибудь есть запись обмена данными по USB wireshark?

 

Буду признателен за любую информацию!

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты

Может все-таки с дескриптором что-то не так?
Я в тестовом проекте просто вычитывал OUT ендпоинт и разбирал что мне там W10 шлет.. Не отваливается. Исходники тут https://github.com/ua1arn/hftrx файлы usbd.c usbd_desc,c
Вот дамп дескрипторов устройства (EEM это восьмой интерфейс):

Spoiler
Connection Status Device connected
Current Configuration 1
Speed High (480 Mbit/s)
Device Address 1
Number Of Open Pipes 8
Offset Field Size Value Description
0 bLength 1 12h  
1 bDescriptorType 1 01h Device
2 bcdUSB 2 0200h USB Spec 2.0
4 bDeviceClass 1 EFh Miscellaneous
5 bDeviceSubClass 1 02h Common Class
6 bDeviceProtocol 1 01h Interface Association Descriptor
7 bMaxPacketSize0 1 40h 64 bytes
8 idVendor 2 FFFFh  
10 idProduct 2 0738h  
12 bcdDevice 2 0102h 1.02
14 iManufacturer 1 01h "MicroGenSF"
15 iProduct 1 02h "Storch TRX"
16 iSerialNumber 1 03h "SN:19640302_122880000_2"
17 bNumConfigurations 1 01h  
Offset Field Size Value Description
0 bLength 1 09h  
1 bDescriptorType 1 02h Configuration
2 wTotalLength 2 01C9h  
4 bNumInterfaces 1 0Ah  
5 bConfigurationValue 1 01h  
6 iConfiguration 1 00h  
7 bmAttributes 1 C0h Self Powered
  4..0: Reserved   ...00000   
  5: Remote Wakeup   ..0.....  No
  6: Self Powered   .1......  Yes
  7: Reserved (set to one)
(bus-powered for 1.0)
  1.......   
8 bMaxPower 1 7Dh 250 mA
Offset Field Size Value Description
0 bLength 1 08h  
1 bDescriptorType 1 0Bh Interface Association
2 bFirstInterface 1 00h  
3 bInterfaceCount 1 02h  
4 bFunctionClass 1 02h CDC Control
5 bFunctionSubClass 1 02h Abstract Control Model
6 bFunctionProtocol 1 01h AT Commands: V.250 etc
7 iFunction 1 04h "Storch TRX CAT"
Offset Field Size Value Description
0 bLength 1 09h  
1 bDescriptorType 1 04h Interface
2 bInterfaceNumber 1 00h  
3 bAlternateSetting 1 00h  
4 bNumEndpoints 1 01h  
5 bInterfaceClass 1 02h CDC Control
6 bInterfaceSubClass 1 02h Abstract Control Model
7 bInterfaceProtocol 1 01h AT Commands: V.250 etc
8 iInterface 1 00h  
Offset Field Size Value Description
0 bFunctionLength 1 05h  
1 bDescriptorType 1 24h CS Interface
2 bDescriptorSubtype 1 00h Header
3 bcdCDC 2 0110h 1.10
Offset Field Size Value Description
0 bFunctionLength 1 05h  
1 bDescriptorType 1 24h CS Interface
2 bDescriptorSubtype 1 01h Call Management
3 bmCapabilities 1 00h  
  7..2: Reserved   000000..   
  1: Data Ifc Usage   ......0.  Call management only over Comm Ifc
  0: Call Management   .......0  Does not handle call management itself
4 bDataInterface 1 01h  
Offset Field Size Value Description
0 bFunctionLength 1 04h  
1 bDescriptorType 1 24h CS Interface
2 bDescriptorSubtype 1 02h Abstract Control Management
3 bmCapabilities 1 02h  
  7..4: Reserved   0000....   
  3: Connection   ....0...   
  2: Send Break   .....0..   
  1: Line Coding   ......1.  Line Coding requests and Serial State notification supported
  0: Comm Features   .......0   
Offset Field Size Value Description
0 bFunctionLength 1 05h  
1 bDescriptorType 1 24h CS Interface
2 bDescriptorSubtype 1 06h Union
3 bControlInterface 1 00h  
4 bSubordinateInterface0 1 01h CDC Data
Offset Field Size Value Description
0 bLength 1 07h  
1 bDescriptorType 1 05h Endpoint
2 bEndpointAddress 1 84h 4 In
3 bmAttributes 1 03h Interrupt
  1..0: Transfer Type   ......11  Interrupt
  7..2: Reserved   000000..   
4 wMaxPacketSize 2 000Ah 10 bytes
6 bInterval 1 0Ch 256 ms
Offset Field Size Value Description
0 bLength 1 09h  
1 bDescriptorType 1 04h Interface
2 bInterfaceNumber 1 01h  
3 bAlternateSetting 1 00h  
4 bNumEndpoints 1 02h  
5 bInterfaceClass 1 0Ah CDC Data
6 bInterfaceSubClass 1 00h  
7 bInterfaceProtocol 1 00h  
8 iInterface 1 00h  
Offset Field Size Value Description
0 bLength 1 07h  
1 bDescriptorType 1 05h Endpoint
2 bEndpointAddress 1 02h 2 Out
3 bmAttributes 1 02h Bulk
  1..0: Transfer Type   ......10  Bulk
  7..2: Reserved   000000..   
4 wMaxPacketSize 2 0200h 512 bytes
6 bInterval 1 00h  
Offset Field Size Value Description
0 bLength 1 07h  
1 bDescriptorType 1 05h Endpoint
2 bEndpointAddress 1 82h 2 In
3 bmAttributes 1 02h Bulk
  1..0: Transfer Type   ......10  Bulk
  7..2: Reserved   000000..   
4 wMaxPacketSize 2 0200h 512 bytes
6 bInterval 1 00h  
Offset Field Size Value Description
0 bLength 1 08h  
1 bDescriptorType 1 0Bh Interface Association
2 bFirstInterface 1 02h  
3 bInterfaceCount 1 02h  
4 bFunctionClass 1 02h CDC Control
5 bFunctionSubClass 1 02h Abstract Control Model
6 bFunctionProtocol 1 01h AT Commands: V.250 etc
7 iFunction 1 05h "Storch TRX CTL"
Offset Field Size Value Description
0 bLength 1 09h  
1 bDescriptorType 1 04h Interface
2 bInterfaceNumber 1 02h  
3 bAlternateSetting 1 00h  
4 bNumEndpoints 1 01h  
5 bInterfaceClass 1 02h CDC Control
6 bInterfaceSubClass 1 02h Abstract Control Model
7 bInterfaceProtocol 1 01h AT Commands: V.250 etc
8 iInterface 1 00h  
Offset Field Size Value Description
0 bFunctionLength 1 05h  
1 bDescriptorType 1 24h CS Interface
2 bDescriptorSubtype 1 00h Header
3 bcdCDC 2 0110h 1.10
Offset Field Size Value Description
0 bFunctionLength 1 05h  
1 bDescriptorType 1 24h CS Interface
2 bDescriptorSubtype 1 01h Call Management
3 bmCapabilities 1 00h  
  7..2: Reserved   000000..   
  1: Data Ifc Usage   ......0.  Call management only over Comm Ifc
  0: Call Management   .......0  Does not handle call management itself
4 bDataInterface 1 03h  
Offset Field Size Value Description
0 bFunctionLength 1 04h  
1 bDescriptorType 1 24h CS Interface
2 bDescriptorSubtype 1 02h Abstract Control Management
3 bmCapabilities 1 02h  
  7..4: Reserved   0000....   
  3: Connection   ....0...   
  2: Send Break   .....0..   
  1: Line Coding   ......1.  Line Coding requests and Serial State notification supported
  0: Comm Features   .......0   
Offset Field Size Value Description
0 bFunctionLength 1 05h  
1 bDescriptorType 1 24h CS Interface
2 bDescriptorSubtype 1 06h Union
3 bControlInterface 1 02h  
4 bSubordinateInterface0 1 03h CDC Data
Offset Field Size Value Description
0 bLength 1 07h  
1 bDescriptorType 1 05h Endpoint
2 bEndpointAddress 1 85h 5 In
3 bmAttributes 1 03h Interrupt
  1..0: Transfer Type   ......11  Interrupt
  7..2: Reserved   000000..   
4 wMaxPacketSize 2 000Ah 10 bytes
6 bInterval 1 0Ch 256 ms
Offset Field Size Value Description
0 bLength 1 09h  
1 bDescriptorType 1 04h Interface
2 bInterfaceNumber 1 03h  
3 bAlternateSetting 1 00h  
4 bNumEndpoints 1 02h  
5 bInterfaceClass 1 0Ah CDC Data
6 bInterfaceSubClass 1 00h  
7 bInterfaceProtocol 1 00h  
8 iInterface 1 00h  
Offset Field Size Value Description
0 bLength 1 07h  
1 bDescriptorType 1 05h Endpoint
2 bEndpointAddress 1 03h 3 Out
3 bmAttributes 1 02h Bulk
  1..0: Transfer Type   ......10  Bulk
  7..2: Reserved   000000..   
4 wMaxPacketSize 2 0200h 512 bytes
6 bInterval 1 00h  
Offset Field Size Value Description
0 bLength 1 07h  
1 bDescriptorType 1 05h Endpoint
2 bEndpointAddress 1 83h 3 In
3 bmAttributes 1 02h Bulk
  1..0: Transfer Type   ......10  Bulk
  7..2: Reserved   000000..   
4 wMaxPacketSize 2 0200h 512 bytes
6 bInterval 1 00h  
Offset Field Size Value Description
0 bLength 1 08h  
1 bDescriptorType 1 0Bh Interface Association
2 bFirstInterface 1 04h  
3 bInterfaceCount 1 02h  
4 bFunctionClass 1 01h Audio
5 bFunctionSubClass 1 00h  
6 bFunctionProtocol 1 00h  
7 iFunction 1 09h "Storch RX Voice"
Offset Field Size Value Description
0 bLength 1 09h  
1 bDescriptorType 1 04h Interface
2 bInterfaceNumber 1 04h  
3 bAlternateSetting 1 00h  
4 bNumEndpoints 1 00h  
5 bInterfaceClass 1 01h Audio
6 bInterfaceSubClass 1 01h Audio Control
7 bInterfaceProtocol 1 00h  
8 iInterface 1 09h "Storch RX Voice"
Offset Field Size Value Description
0 bLength 1 09h  
1 bDescriptorType 1 24h Audio Control Interface Header
2   7 01 00 01 27 00 01 05   
Offset Field Size Value Description
0 bLength 1 0Ch  
1 bDescriptorType 1 24h Audio Control Input Terminal
2   10 02 1E 10 07 00 02 03 00 
1B 00 
 
Offset Field Size Value Description
0 bLength 1 09h  
1 bDescriptorType 1 24h Audio Control Feature Unit
2   7 06 28 1E 02 03 00 00   
Offset Field Size Value Description
0 bLength 1 09h  
1 bDescriptorType 1 24h Audio Control Output Terminal
2   7 03 23 01 01 00 28 0F   
Offset Field Size Value Description
0 bLength 1 09h  
1 bDescriptorType 1 04h Interface
2 bInterfaceNumber 1 05h  
3 bAlternateSetting 1 00h  
4 bNumEndpoints 1 00h  
5 bInterfaceClass 1 01h Audio
6 bInterfaceSubClass 1 02h Audio Streaming
7 bInterfaceProtocol 1 00h  
8 iInterface 1 12h "xxxx 1"
 
Offset Field Size Value Description
0 bLength 1 09h  
1 bDescriptorType 1 04h Interface
2 bInterfaceNumber 1 05h  
3 bAlternateSetting 1 01h  
4 bNumEndpoints 1 01h  
5 bInterfaceClass 1 01h Audio
6 bInterfaceSubClass 1 02h Audio Streaming
7 bInterfaceProtocol 1 00h  
8 iInterface 1 12h "xxxx 1"
Offset Field Size Value Description
0 bLength 1 07h  
1 bDescriptorType 1 24h Audio Streaming Interface
2   5 01 23 01 01 00   
Offset Field Size Value Description
0 bLength 1 0Bh  
1 bDescriptorType 1 24h Audio Streaming Format Type
2   9 02 01 02 02 10 01 80 BB 
00 
 
Offset Field Size Value Description
0 bLength 1 09h  
1 bDescriptorType 1 05h Endpoint
2 bEndpointAddress 1 81h 1 In
3 bmAttributes 1 25h Isochronous, Asynchronous, Implicit Feedback Data
  1..0: Transfer Type   ......01  Isochronous
  3..2: Sync Type   ....01..  Asynchronous
  5..4: Usage Type   ..10....  Implicit Feedback Data
  7..6: Reserved   00......   
4 wMaxPacketSize 2 00C4h 196 bytes
6 bInterval 1 04h 1 ms
7 bRefresh 1 00h  
8 bSynchAddress 1 00h  
Offset Field Size Value Description
0 bLength 1 07h  
1 bDescriptorType 1 25h Audio Streaming Isochronous Audio Data Endpoint
2   5 01 00 02 00 00   
Offset Field Size Value Description
0 bLength 1 09h  
1 bDescriptorType 1 04h Interface
2 bInterfaceNumber 1 05h  
3 bAlternateSetting 1 02h  
4 bNumEndpoints 1 01h  
5 bInterfaceClass 1 01h Audio
6 bInterfaceSubClass 1 02h Audio Streaming
7 bInterfaceProtocol 1 00h  
8 iInterface 1 12h "xxxx 1"
Offset Field Size Value Description
0 bLength 1 07h  
1 bDescriptorType 1 24h Audio Streaming Interface
2   5 01 23 01 01 00   
Offset Field Size Value Description
0 bLength 1 0Bh  
1 bDescriptorType 1 24h Audio Streaming Format Type
2   9 02 01 02 03 18 01 00 77 
01 
 
Offset Field Size Value Description
0 bLength 1 09h  
1 bDescriptorType 1 05h Endpoint
2 bEndpointAddress 1 81h 1 In
3 bmAttributes 1 25h Isochronous, Asynchronous, Implicit Feedback Data
  1..0: Transfer Type   ......01  Isochronous
  3..2: Sync Type   ....01..  Asynchronous
  5..4: Usage Type   ..10....  Implicit Feedback Data
  7..6: Reserved   00......   
4 wMaxPacketSize 2 0258h 600 bytes
6 bInterval 1 04h 1 ms
7 bRefresh 1 00h  
8 bSynchAddress 1 00h  
Offset Field Size Value Description
0 bLength 1 07h  
1 bDescriptorType 1 25h Audio Streaming Isochronous Audio Data Endpoint
2   5 01 00 02 00 00   
Offset Field Size Value Description
0 bLength 1 08h  
1 bDescriptorType 1 0Bh Interface Association
2 bFirstInterface 1 06h  
3 bInterfaceCount 1 02h  
4 bFunctionClass 1 01h Audio
5 bFunctionSubClass 1 00h  
6 bFunctionProtocol 1 00h  
7 iFunction 1 0Bh "Storch TX Voice"
Offset Field Size Value Description
0 bLength 1 09h  
1 bDescriptorType 1 04h Interface
2 bInterfaceNumber 1 06h  
3 bAlternateSetting 1 00h  
4 bNumEndpoints 1 00h  
5 bInterfaceClass 1 01h Audio
6 bInterfaceSubClass 1 01h Audio Control
7 bInterfaceProtocol 1 00h  
8 iInterface 1 0Bh "Storch TX Voice"
Offset Field Size Value Description
0 bLength 1 09h  
1 bDescriptorType 1 24h Audio Control Interface Header
2   7 01 00 01 27 00 01 07   
Offset Field Size Value Description
0 bLength 1 0Ch  
1 bDescriptorType 1 24h Audio Control Input Terminal
2   10 02 0C 01 01 00 02 03 00 
1B 0E 
 
Offset Field Size Value Description
0 bLength 1 09h  
1 bDescriptorType 1 24h Audio Control Feature Unit
2   7 06 16 0C 02 03 00 00   
Offset Field Size Value Description
0 bLength 1 09h  
1 bDescriptorType 1 24h Audio Control Output Terminal
2   7 03 11 11 07 00 16 00   
Offset Field Size Value Description
0 bLength 1 09h  
1 bDescriptorType 1 04h Interface
2 bInterfaceNumber 1 07h  
3 bAlternateSetting 1 00h  
4 bNumEndpoints 1 00h  
5 bInterfaceClass 1 01h Audio
6 bInterfaceSubClass 1 02h Audio Streaming
7 bInterfaceProtocol 1 00h  
8 iInterface 1 17h "yyyy 3"
 
Offset Field Size Value Description
0 bLength 1 09h  
1 bDescriptorType 1 04h Interface
2 bInterfaceNumber 1 07h  
3 bAlternateSetting 1 01h  
4 bNumEndpoints 1 01h  
5 bInterfaceClass 1 01h Audio
6 bInterfaceSubClass 1 02h Audio Streaming
7 bInterfaceProtocol 1 00h  
8 iInterface 1 1Ah "zzzz 3"
Offset Field Size Value Description
0 bLength 1 07h  
1 bDescriptorType 1 24h Audio Streaming Interface
2   5 01 0C 01 01 00   
Offset Field Size Value Description
0 bLength 1 0Bh  
1 bDescriptorType 1 24h Audio Streaming Format Type
2   9 02 01 02 02 10 01 80 BB 
00 
 
Offset Field Size Value Description
0 bLength 1 09h  
1 bDescriptorType 1 05h Endpoint
2 bEndpointAddress 1 01h 1 Out
3 bmAttributes 1 05h Isochronous, Asynchronous, Data
  1..0: Transfer Type   ......01  Isochronous
  3..2: Sync Type   ....01..  Asynchronous
  5..4: Usage Type   ..00....  Data
  7..6: Reserved   00......   
4 wMaxPacketSize 2 00C0h 192 bytes
6 bInterval 1 04h 1 ms
7 bRefresh 1 00h  
8 bSynchAddress 1 00h  
Offset Field Size Value Description
0 bLength 1 07h  
1 bDescriptorType 1 25h Audio Streaming Isochronous Audio Data Endpoint
2   5 01 00 00 00 00   
Offset Field Size Value Description
0 bLength 1 08h  
1 bDescriptorType 1 0Bh Interface Association
2 bFirstInterface 1 08h  
3 bInterfaceCount 1 01h  
4 bFunctionClass 1 02h CDC Control
5 bFunctionSubClass 1 0Ch Ethernet Emulation Model
6 bFunctionProtocol 1 07h Ethernet Emulation Model
7 iFunction 1 06h "Storch TRX CDC EEM"
Offset Field Size Value Description
0 bLength 1 09h  
1 bDescriptorType 1 04h Interface
2 bInterfaceNumber 1 08h  
3 bAlternateSetting 1 00h  
4 bNumEndpoints 1 02h  
5 bInterfaceClass 1 02h CDC Control
6 bInterfaceSubClass 1 0Ch Ethernet Emulation Model
7 bInterfaceProtocol 1 07h Ethernet Emulation Model
8 iInterface 1 06h "Storch TRX CDC EEM"
Offset Field Size Value Description
0 bLength 1 07h  
1 bDescriptorType 1 05h Endpoint
2 bEndpointAddress 1 86h 6 In
3 bmAttributes 1 02h Bulk
  1..0: Transfer Type   ......10  Bulk
  7..2: Reserved   000000..   
4 wMaxPacketSize 2 0200h 512 bytes
6 bInterval 1 01h  
Offset Field Size Value Description
0 bLength 1 07h  
1 bDescriptorType 1 05h Endpoint
2 bEndpointAddress 1 04h 4 Out
3 bmAttributes 1 02h Bulk
  1..0: Transfer Type   ......10  Bulk
  7..2: Reserved   000000..   
4 wMaxPacketSize 2 0200h 512 bytes
6 bInterval 1 01h  
Offset Field Size Value Description
0 bLength 1 08h  
1 bDescriptorType 1 0Bh Interface Association
2 bFirstInterface 1 09h  
3 bInterfaceCount 1 01h  
4 bFunctionClass 1 FEh Application-Specific
5 bFunctionSubClass 1 01h Device Firmware Upgrade
6 bFunctionProtocol 1 02h DFU Mode
7 iFunction 1 20h "Storch DFU Device"
Offset Field Size Value Description
0 bLength 1 09h  
1 bDescriptorType 1 04h Interface
2 bInterfaceNumber 1 09h  
3 bAlternateSetting 1 00h  
4 bNumEndpoints 1 00h  
5 bInterfaceClass 1 FEh Application-Specific
6 bInterfaceSubClass 1 01h Device Firmware Upgrade
7 bInterfaceProtocol 1 02h DFU Mode
8 iInterface 1 21h "@SPI Flash : M25Px/0x18000000/32*64Kg"
Offset Field Size Value Description
0 bLength 1 09h  
1 bDescriptorType 1 21h DFU Functional
2 bmAttributes 1 03h  
  0: bitCanDnload   .......1  Yes
  1: bitCanUpload   ......1.  Yes
  2: bitManifestationTolerant   .....0..  No
  3: bitWillDetach   ....0...  No
  7..4: Reserved   0000....   
3 wDetachTimeOut 2 01F4h 500 ms
5 wTransferSize 2 0400h 1024 bytes
7 bcdDFUVersion 2 011Ah 1.1?

 

Изменено пользователем GenaSPB

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты

Спасибо!

За основу брал вот этот проект.

Вот мой дескриптор:

Generic USB-EEM Network Adapter.html

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты

Если делаю устройство с EEM в одиночестве, тоже "не стартует". Если доавить любую функциональность - audio, компорты - работает нормально.

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты

On 3/27/2019 at 8:53 AM, bullit said:

Пара дескрипторов лишних... Header и Functional
Но в одиночестве и так и сяк не работает

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты

7 hours ago, GenaSPB said:

Пара дескрипторов лишних... Header и Functional

Точно лишние. Информация о MAC-адресе оттуда игнорируется (это вообще с ECM кто-то срисовал).

Запустил в варианте на HIGH SPEED USB - нормально в одиночестве работает.

Spoiler

Information for device Storch TRX (VID=0xFFFF PID=0x0738):

Connection Information:
------------------------------
Device current bus speed: HighSpeed
Device supports USB 1.1 specification
Device supports USB 2.0 specification
Device address: 0x0001
Current configuration value: 0x01
Number of open pipes: 2

Device Descriptor:
------------------------------
0x12    bLength
0x01    bDescriptorType
0x0200    bcdUSB
0xEF    bDeviceClass      (Miscellaneous device)
0x02    bDeviceSubClass   
0x01    bDeviceProtocol   
0x40    bMaxPacketSize0   (64 bytes)
0xFFFF    idVendor
0x0738    idProduct
0x0102    bcdDevice
0x01    iManufacturer   "MicroGenSF"
0x02    iProduct   "Storch TRX"
0x03    iSerialNumber   "SN:19640302_122880000_2"
0x01    bNumConfigurations

Device Qualifier Descriptor is not available. Error code: 0x0000001F

Configuration Descriptor:
------------------------------
0x09    bLength
0x02    bDescriptorType
0x0028    wTotalLength   (40 bytes)
0x01    bNumInterfaces
0x01    bConfigurationValue
0x00    iConfiguration
0xC0    bmAttributes   (Self-powered Device)
0x7D    bMaxPower      (250 mA)

Interface Association Descriptor:
------------------------------
0x08    bLength
0x0B    bDescriptorType
0x00    bFirstInterface
0x01    bInterfaceCount
0x02    bFunctionClass      (Communication Device Class)
0x0C    bFunctionSubClass   (Ethernet Emulation Model - EEM)
0x07    bFunctionProtocol   (USB EEM)
0x06    iFunction   "Storch TRX CDC EEM"

Interface Descriptor:
------------------------------
0x09    bLength
0x04    bDescriptorType
0x00    bInterfaceNumber
0x00    bAlternateSetting
0x02    bNumEndPoints
0x02    bInterfaceClass      (Communication Device Class)
0x0C    bInterfaceSubClass   (Ethernet Emulation Model - EEM)
0x07    bInterfaceProtocol   (USB EEM)
0x06    iInterface   "Storch TRX CDC EEM"

Endpoint Descriptor:
------------------------------
0x07    bLength
0x05    bDescriptorType
0x81    bEndpointAddress  (IN endpoint 1)
0x02    bmAttributes      (Transfer: Bulk / Synch: None / Usage: Data)
0x0200    wMaxPacketSize    (512 bytes)
0x01    bInterval         

Endpoint Descriptor:
------------------------------
0x07    bLength
0x05    bDescriptorType
0x01    bEndpointAddress  (OUT endpoint 1)
0x02    bmAttributes      (Transfer: Bulk / Synch: None / Usage: Data)
0x0200    wMaxPacketSize    (512 bytes)
0x01    bInterval         

Microsoft OS Descriptor is not available. Error code: 0x0000001F

String Descriptor Table
--------------------------------
Index  LANGID  String
0x00   0x0000  0x0409 
0x01   0x0409  "MicroGenSF"
0x02   0x0409  "Storch TRX"
0x03   0x0409  "SN:19640302_122880000_2"
0x06   0x0409  "Storch TRX CDC EEM"

------------------------------

Connection path for device: 
Intel(R) ICH9 Family USB2 Enhanced Host Controller - 293A
Root Hub
Storch TRX (VID=0xFFFF PID=0x0738) Port: 1

Running on: Windows 10 or greater

Brought to you by TDD v2.11.0, Mar 26 2018, 09:54:50
 

 

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты

27.03.2019 в 08:53, bullit сказал:

Спасибо!

За основу брал вот этот проект.

Вот мой дескриптор:

Generic USB-EEM Network Adapter.html

Доброго времени суток!

Адаптирую проект под драйвер . В Linux Win7 со сторонним драйвером работает корректно, а в Win10 не стартует.

В линии USB после ответов хосту на запросы дескрипторов - все замолкает, идут только SOF пакеты.

Подскажите, у Вас заработало после изменения дескрипторов в проекте согласно Generic USB-EEM Network Adapter.html ?

 

Есть ли перечень требований для работы с в Win10?

 

И как описать составное устройство USB, чтобы заработало с драйвером Generic USB EEM Network Adapter? Достаточно указать несколько интерфейсов в одной конфигурации? или указать несколько конфигураций?

Изменено пользователем sanekrk
Дополнил сообщение

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты

Присоединяйтесь к обсуждению

Вы можете написать сейчас и зарегистрироваться позже. Если у вас есть аккаунт, авторизуйтесь, чтобы опубликовать от имени своего аккаунта.

Гость
Ответить в этой теме...

×   Вставлено с форматированием.   Вставить как обычный текст

  Разрешено использовать не более 75 эмодзи.

×   Ваша ссылка была автоматически встроена.   Отображать как обычную ссылку

×   Ваш предыдущий контент был восстановлен.   Очистить редактор

×   Вы не можете вставлять изображения напрямую. Загружайте или вставляйте изображения по ссылке.

×
×
  • Создать...