From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6014 invoked by alias); 27 Aug 2007 20:01:48 -0000 Received: (qmail 5816 invoked by uid 22791); 27 Aug 2007 20:01:46 -0000 X-Spam-Check-By: sourceware.org Received: from londo.lunn.ch (HELO londo.lunn.ch) (80.238.139.98) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 27 Aug 2007 20:01:41 +0000 Received: from lunn by londo.lunn.ch with local (Exim 3.36 #1 (Debian)) id 1IPkhO-000115-00; Mon, 27 Aug 2007 21:56:34 +0200 Date: Mon, 27 Aug 2007 20:01:00 -0000 From: Andrew Lunn To: wavecom wavecom Cc: ecos-discuss@ecos.sourceware.org Message-ID: <20070827195634.GQ19659@lunn.ch> Mail-Followup-To: wavecom wavecom , ecos-discuss@ecos.sourceware.org References: <20070827073244.GW31057@lunn.ch> <428854.71368.qm@web60715.mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <428854.71368.qm@web60715.mail.yahoo.com> User-Agent: Mutt/1.5.16 (2007-06-11) X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: Re: [ECOS] USB-CDC eCos configuration X-SW-Source: 2007-08/txt/msg00147.txt.bz2 On Mon, Aug 27, 2007 at 05:16:10AM -0700, wavecom wavecom wrote: > Thanks for answer, > > --- Andrew Lunn wrote: > > > On Mon, Aug 27, 2007 at 12:20:20AM -0700, wavecom > > wavecom wrote: > > > Hi All, > > > > > > I'm working on USB-CDC eCos based device. > > > > I presume you are writing your own USB-CDC driver? I > > don't think one > > exists for eCos yet. > > Yes, it is USB-CDC driver, I was trying to find > already developed, but I couldn?t find any. > > > > > > I've met some problems with initializing the > > device: Windows > > > recognizes the device as another COM port, but > > when I'm trying to > > > open the port by the hyperterminal, I have message > > "Could not open > > > COM port". What would be the cause of such > > behavior, below result of > > > lsusb -vvv command on Linux (I can also send my > > c-code of USB > > > initialization if necessary). > > > > Do you have a trace of the USB messages sent > > backwards and forwards > > when the device is opened? Does your driver handle > > all these messages? > > I didn?t try to sniff connection, today I?m going to > install SnoopyPro and log trace of the connection. Can > you recommend me similar software for Linux? Take a look at linux-*/Documentation/usb/usbmon.txt > > > > > > > > Second question is, how to set > > > Functional Descriptors like CDC Header, CDC ACM, > > CDC Union, CDC Call > > > Management? Are these parameters necessary for > > proper operating the > > > USB-CDC device? > > > > What does the standard say? Is there a standard? Is > > this part of HID? > > > > What does Linux make of this device? Maybe you can > > get better > > diagnostics from Linux than from M$. At least with > > Linux you have the > > source code so you can find out why Linux does not > > like your > > driver.... > > I don?t know if the standard of USB-CDC already > exists. You probably need to take a look at the USB website, www.usb.org. Without having the standard you have no real idea what you are supposed to be implementing..... You might also want to look at drivers/usb/gadget/serial.c and the associated documentation. However, since this code is GPL, you cannot directly use it. Andrew -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss