Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: TI Launchpad woes - CDC/ACM interface not starting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: TI Launchpad woes - CDC/ACM interface not starting




Below are the descriptors (from Paul Stoffregen's demo device) and is a good example of what a multifunction CDC device should look like.

If anyone wants a copy of my little demo, here is source code:

http://www.pjrc.com/teensy/beta/apple_demo.tar.gz

The descriptors are in usb.c in a simple array format.

Here is the compiled HEX file. To run it, you'd need the $18 Teensy board, plus a couple pushbuttons if you want the mouse movements to work.

http://www.pjrc.com/teensy/beta/apple_demo.hex

The demo implements CDC-ACM Serial (using IAD), Mass Storage, and a HID Mouse. It was tested on Linux and Windows and passes the USB-IF conformance test tool. It was also tested on OS-X, where the mouse and disk work fine.

These types of devices will be supported on the Mac in the fairly near future.

I'm very glad to hear that. :-)


-Paul





Russ
======================
Full Speed device @ 2 (0x1D100000): ............................................. Miscellaneous/Common Class device: "CDC+HID+MS Demo"
Port Information: 0x001a
Not Captive
Attached to Root Hub
External Device
Connected
Enabled
Device Descriptor Descriptor Version Number: 0x0200
Device Class: 239 (Miscellaneous)
Device Subclass: 2 (Common Class)
Device Protocol: 1 (Interface Association)
Device MaxPacketSize: 64
Device VendorID/ProductID: 0x16C0/0x0480 (unknown vendor)
Device Version Number: 0x0100
Number of Configurations: 1
Manufacturer String: 0 (none)
Product String: 1 "CDC+HID+MS Demo"
Serial Number String: 2 "123456789ABCDEF0"
Configuration Descriptor Length (and contents): 123
Raw Descriptor (hex) 0000: 09 02 7B 00 04 01 00 C0 32 08 0B 00 02 02 02 01 Raw Descriptor (hex) 0010: 00 09 04 00 00 01 02 02 01 00 05 24 00 10 01 05 Raw Descriptor (hex) 0020: 24 01 01 01 04 24 02 06 05 24 06 00 01 07 05 81 Raw Descriptor (hex) 0030: 03 10 00 40 09 04 01 00 02 0A 00 00 00 07 05 02 Raw Descriptor (hex) 0040: 02 40 00 00 07 05 83 02 40 00 00 09 04 02 00 02 Raw Descriptor (hex) 0050: 08 06 50 00 07 05 04 02 40 00 00 07 05 85 02 40 Raw Descriptor (hex) 0060: 00 00 09 04 03 00 01 03 01 02 00 09 21 11 01 00 Raw Descriptor (hex) 0070: 01 22 33 00 07 05 86 03 08 00 04 Number of Interfaces: 4
Configuration Value: 1
Attributes: 0xC0 (self-powered)
MaxPower: 100 ma
Interface Association Communications-Control
First Interface 0
Interface Count 2
Function Class 2 (Communications-Control)
Function Subclass 2
Interface Protocol 1
Function String 0 (none)
Interface #0 - Communications-Control Alternate Setting 0
Number of Endpoints 1
Interface Class: 2 (Communications-Control)
Interface Subclass; 2
Interface Protocol: 1
Comm Class Header Functional Descriptor Raw Descriptor (hex) 0000: 05 24 00 10 01 Comm Class Call Management Functional Descriptor Raw Descriptor (hex) 0000: 05 24 01 01 01 Comm Class Abstract Control Management Functional Descriptor Raw Descriptor (hex) 0000: 04 24 02 06 Comm Class Union Functional Descriptor Raw Descriptor (hex) 0000: 05 24 06 00 01 Endpoint 0x81 - Interrupt Input Address: 0x81 (IN)
Attributes: 0x03 (Interrupt no synchronization data endpoint)
Max Packet Size: 16
Polling Interval: 64 ms
Interface #1 - Communications-Data/Unknown Comm Class Model Alternate Setting 0
Number of Endpoints 2
Interface Class: 10 (Communications-Data)
Interface Subclass; 0 (Unknown Comm Class Model)
Interface Protocol: 0
Endpoint 0x02 - Bulk Output Address: 0x02 (OUT)
Attributes: 0x02 (Bulk no synchronization data endpoint)
Max Packet Size: 64
Polling Interval: 0 ms
Endpoint 0x83 - Bulk Input Address: 0x83 (IN)
Attributes: 0x02 (Bulk no synchronization data endpoint)
Max Packet Size: 64
Polling Interval: 0 ms
Interface #2 - Mass Storage/SCSI Alternate Setting 0
Number of Endpoints 2
Interface Class: 8 (Mass Storage)
Interface Subclass; 6 (SCSI)
Interface Protocol: 80
Endpoint 0x04 - Bulk Output Address: 0x04 (OUT)
Attributes: 0x02 (Bulk no synchronization data endpoint)
Max Packet Size: 64
Polling Interval: 0 ms
Endpoint 0x85 - Bulk Input Address: 0x85 (IN)
Attributes: 0x02 (Bulk no synchronization data endpoint)
Max Packet Size: 64
Polling Interval: 0 ms
Interface #3 - HID/Boot Interface Alternate Setting 0
Number of Endpoints 1
Interface Class: 3 (HID)
Interface Subclass; 1 (Boot Interface)
Interface Protocol: 2
HID Descriptor Descriptor Version Number: 0x0111
Country Code: 0
Descriptor Count: 1
Descriptor 1 Type: 0x22 (Report Descriptor)
Length (and contents): 51
Raw Descriptor (hex) 0000: 05 01 09 02 A1 01 05 09 19 01 29 03 15 00 25 01 Raw Descriptor (hex) 0010: 95 03 75 01 81 02 95 01 75 05 81 03 05 01 09 30 Raw Descriptor (hex) 0020: 09 31 15 81 25 7F 75 08 95 02 81 06 09 38 95 01 Raw Descriptor (hex) 0030: 81 06 C0 Parsed Report Descriptor: Usage Page (Generic Desktop) Usage (Mouse) Collection (Application) Usage Page (Button) Usage Minimum........... (1) Usage Maximum........... (3) Logical Minimum......... (0) Logical Maximum......... (1) Report Count............ (3) Report Size............. (1) Input................... (Data, Variable, Absolute, No Wrap, Linear, Preferred State, No Null Position, Bitfield) Report Count............ (1) Report Size............. (5) Input................... (Constant, Variable, Absolute, No Wrap, Linear, Preferred State, No Null Position, Bitfield) Usage Page (Generic Desktop) Usage (X) Usage (Y) Logical Minimum......... (-127) Logical Maximum......... (127) Report Size............. (8) Report Count............ (2) Input................... (Data, Variable, Relative, No Wrap, Linear, Preferred State, No Null Position, Bitfield) Usage (Wheel) Report Count............ (1) Input................... (Data, Variable, Relative, No Wrap, Linear, Preferred State, No Null Position, Bitfield) End Collection Endpoint 0x86 - Interrupt Input Address: 0x86 (IN)
Attributes: 0x03 (Interrupt no synchronization data endpoint)
Max Packet Size: 8
Polling Interval: 4 ms

_______________________________________________ Do not post admin requests to the list. They will be ignored. Usb mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >TI Launchpad woes - CDC/ACM interface not starting (From: Harsha Chenji <email@hidden>)
 >Re: TI Launchpad woes - CDC/ACM interface not starting (From: Russ Winsper <email@hidden>)
 >Re: TI Launchpad woes - CDC/ACM interface not starting (From: Harsha Chenji <email@hidden>)
 >Re: TI Launchpad woes - CDC/ACM interface not starting (From: Russ Winsper <email@hidden>)
 >Re: TI Launchpad woes - CDC/ACM interface not starting (From: Harsha Chenji <email@hidden>)
 >Re: TI Launchpad woes - CDC/ACM interface not starting (From: Russ Winsper <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.