From owner-freebsd-questions@FreeBSD.ORG Wed Jul 25 14:50:36 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4D292106564A for ; Wed, 25 Jul 2012 14:50:36 +0000 (UTC) (envelope-from bourne.identity@hotmail.com) Received: from blu0-omc1-s19.blu0.hotmail.com (blu0-omc1-s19.blu0.hotmail.com [65.55.116.30]) by mx1.freebsd.org (Postfix) with ESMTP id 038AB8FC0C for ; Wed, 25 Jul 2012 14:50:35 +0000 (UTC) Received: from BLU0-SMTP410 ([65.55.116.9]) by blu0-omc1-s19.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Wed, 25 Jul 2012 07:49:29 -0700 X-Originating-IP: [180.215.85.158] X-Originating-Email: [bourne.identity@hotmail.com] Message-ID: Received: from [127.0.0.1] ([180.215.85.158]) by BLU0-SMTP410.phx.gbl over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Wed, 25 Jul 2012 07:49:25 -0700 Date: Wed, 25 Jul 2012 20:21:04 +0530 From: Manish Jain User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:5.0) Gecko/20110624 Thunderbird/5.0 MIME-Version: 1.0 To: Erich Dollansky References: <20120721133611.GA3755@tinyCurrent> <201207231737.43075.erichfreebsdlist@ovitrap.com> <20120725202357.584a931f@AMD620.ovitrap.com> In-Reply-To: <20120725202357.584a931f@AMD620.ovitrap.com> Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 8bit X-OriginalArrivalTime: 25 Jul 2012 14:49:27.0443 (UTC) FILETIME=[B08D8E30:01CD6A74] Cc: Matthias Apitz , freebsd-questions@freebsd.org Subject: Re: How to get Huawei EC1561 USB modem working under FreeBSD 8.2? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Jul 2012 14:50:36 -0000 On 25-Jul-12 18:53, Erich Dollansky wrote: > Hi, > > On Tue, 24 Jul 2012 14:29:07 +0530 > Manish Jain wrote: > >> On 23-Jul-12 16:07, Erich Dollansky wrote: >>> Hi, >>> >>> On Monday 23 July 2012 16:46:04 Manish Jain wrote: >>>> On 21-Jul-12 19:06, Matthias Apitz wrote: >>>>> El día Saturday, July 21, 2012 a las 06:01:11PM +0530, Manish >>>>> Jain escribió: >>>>> >>> >>>> I am still stuck because I can't know the syntax to run usbdump. >>>> usbdump >>> >>> man usbdump >>> >>> usbconfig gives you the device numbers. > > I got something wrong. > > It is all done by usbconfig > > usbconfig without any parameters gives you a list of devices. One entry > should look like this: > > ugen0.4: at usbus0, > cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON > > You enter then > > usbconfig -u 0 -a 4 dump_device_desc > > and you should get something like this: > > ugen0.4: at usbus0, > cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON > > bLength = 0x0012 > bDescriptorType = 0x0001 > bcdUSB = 0x0200 > bDeviceClass = 0x0000 > bDeviceSubClass = 0x0000 > bDeviceProtocol = 0x0000 > bMaxPacketSize0 = 0x0040 > idVendor = 0x12d1 > idProduct = 0x1803 > bcdDevice = 0x0000 > iManufacturer = 0x0003 > iProduct = 0x0002 > iSerialNumber = 0x0000 > bNumConfigurations = 0x0001 > > You try to find a solution from the other side of the rope. I think we > better start here first. > > Erich > > Hi, Thanks for your reply. I tried switching the USB ports and have some information which could help you to help me : usbconfig -u 0 -a 2 dump_device_desc : ugen0.2: at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0110 bDeviceClass = 0x0000 bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0000 bMaxPacketSize0 = 0x0040 idVendor = 0x12d1 idProduct = 0x140b bcdDevice = 0x0000 iManufacturer = 0x0001 iProduct = 0x0002 iSerialNumber = 0x0004 <> bNumConfigurations = 0x0001 usbconfig -u 0 -a 3 dump_device_desc : ugen0.3: at usbus0, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0110 bDeviceClass = 0x0000 bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0000 bMaxPacketSize0 = 0x0008 idVendor = 0x051d idProduct = 0x0002 bcdDevice = 0x0006 iManufacturer = 0x0003 iProduct = 0x0001 iSerialNumber = 0x0002 bNumConfigurations = 0x0001 Now what should my devfs.conf contain ? Currently it contains the following : link cuaU0.0 modem own modem root:operator perm modem 666 link ugen0.3 usv own usv root:operator perm usv 666 link cuaU0.1 apcups own apcups root:operator perm apcups 666 Obviously, these entries are incorrect since neither my modem speaks to the internet nor is any signal from the APC UPS recognized. I believe once I have the correct devfs entries, the whole system should work smoothly. But please correct me if I am wrong. Surprisingly, /etc/usb_modeswitch.d contains no entries for 12d1:140b or 051d:*. Do I need to reinstall usb_modeswitch.d ? Or can usbconfig configure the devices correctly ? I am no expert here, so if yes, I would need the complete commands. Thanks for any help. I am greatly indebted to FreeBSD and its philosophy making things 'as simple as possible, but not any simpler' - which has helped me learn a great deal about computers in general and managing my own computer in particular. But the USB related stuff still beats the hell out of me, so I need help here. BTW, my system now has the usbdump command (installed from sources downloaded from http://biot.com/usbdump/) but no manpage. Thanks again & -- Regards, Manish Jain +91-99620-10329