Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Trying to use default CDC drivers



Return-Path: <email@hidden>
Hi,

help please!

we have built a USB device, based on an Atmel ARM9 processor. Atmel
provide sample code for presenting this as a simple CDC, and related
stuff to let this create a virtual serial port under Windows so that
you can talk to it on that platform via that port without writing a
specialized driver. Which all works.

We've been trying to make this work the same way on the Mac. We're at
a point where when we plug our device into the Mac, it gets recognised
and the Mac seems to create a new virtual serial port in /dev.
However, we can't communicate via this port. For example, ZTerm offers
us the port but if we pick it, characters don't seem to go in or out.
Similarly, if we "cat" the device, nothing seems to appear.

We have enabled the port in "System Preferences"/"Network port
configurations" - is there any other kind of enabling required?

Or, perhaps more likely, do we have to present a different set of data
in our descriptors? Any suggestions gratefully received...



Here's some output from USB Prober for our device, in case that sheds
any light...

Full Speed device @ 2 (0x1B100000): 
.............................................   Communication device 
from Atmel Corporation
     Device Descriptor
         Descriptor Version Number:   0x0110
         Device Class:   2   (Communication)
         Device Subclass:   0
         Device Protocol:   0
         Device MaxPacketSize:   8
         Device VendorID/ProductID:   0x03EB/0x6119   (Atmel Corporation)
         Device Version Number:   0x0110
         Number of Configurations:   1
         Manufacturer String:   0 (none)
         Product String:   0 (none)
         Serial Number String:   0 (none)
     Configuration Descriptor
         Length (and contents):   67
         Number of Interfaces:   2
         Configuration Value:   1
         Attributes:   0xC0 (self-powered)
         MaxPower:   2 ma
         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
             Comm Class Abstract Control Management Functional Descriptor
             Comm Class Union Functional Descriptor
             Comm Class Call Management Functional Descriptor
             Endpoint 0x83 - Interrupt Input
         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 0x01 - Bulk Output
             Endpoint 0x82 - Bulk Input

I have listed the information that we see in USB Prober on the Kernel 
Extensions window below:

com.apple.iokit.IOUSBFamily      2.1.5      112 KB      108 KB      
0x84c000
com.apple.driver.AppleUSBOHCI      2.1.4      48 KB      44 KB      
0x951000
com.apple.driver.AppleUSBEHCI      2.2.0      76 KB      72 KB      
0x93e000
com.apple.driver.AppleUSBHub      2.1.5      36 KB      32 KB      
0x868000
com.apple.iokit.IOUSBUserClient      2.1.4      44 KB      40 KB      
0xc06000
com.apple.driver.AppleUSBBluetoothHCIController      1.5.4f6      24 KB 
      20 KB      0xc64000
com.apple.driver.CSRUSBBluetoothHCIController      1.5.4f6      12 KB   
    8 KB      0xd28000
com.apple.driver.AppleUSBCDC      3.0.2      12 KB      8 KB      
0x206bd000
com.apple.driver.AppleUSBCDCACMData      3.0.2      24 KB      20 KB    
   0x20854000
com.apple.driver.InternalUSBModem      2.6.3      604 KB      600 KB    
   0x209e5000
com.apple.driver.AppleUSBCDCEthernet      2.0.0      20 KB      16 KB   
    0x20836000
com.apple.driver.AppleUSBCDCDriver      2.0.5      24 KB      20 KB     
  0x2083b000
com.apple.driver.AppleUSBCDCACMControl      3.0.2      16 KB      12 KB 
      0x2078e000
com.apple.driver.AppleUSBCDCECMData      3.0.2      20 KB      16 KB    
   0x20841000
com.apple.driver.AppleUSBCDCWMCData      3.0.2      24 KB      20 KB    
   0x20846000

All the lines below the Bluetooth are added on plugging in the device 
and pressing Refresh.

Regards,
- Dave Cleal


- Dave

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Usb mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/usb/email@hidden

This email sent to email@hidden



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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.