From owner-freebsd-usb@FreeBSD.ORG Mon May 12 19:10:29 2008 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5566D1065681 for ; Mon, 12 May 2008 19:10:29 +0000 (UTC) (envelope-from bahamasfranks@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.240]) by mx1.freebsd.org (Postfix) with ESMTP id 0F7B48FC28 for ; Mon, 12 May 2008 19:10:28 +0000 (UTC) (envelope-from bahamasfranks@gmail.com) Received: by an-out-0708.google.com with SMTP id b33so577038ana.13 for ; Mon, 12 May 2008 12:10:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:reply-to:sender:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition:x-google-sender-auth; bh=NGdKqgiEf42FB7G4v9wtkQqgsSdFVAJnyKqvY7/wVsY=; b=KMrCVKwL/8Pg8kpay0INjC68XsGFg+leTqreefzdVy1rIiFJVFGBi+EiCCXdDRB7hXkJfRIOZej6A9jfd5RvHyA19pB6fCAQ1RlDuJlp8CkeY2CJmZo7Q9Z2MM/fVZRr1ULb2CZqCGDYmxV7tsrjmNAuZWbdu47JoX7Xd0vs1L4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:sender:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition:x-google-sender-auth; b=QDs80+RdKYrhXKBcglQh4a+7nfdgRY6fxasKECvrW/hXW3JUvw136BTTl+a0OKZE2K/E6dwy0/oKL6kHanIjvxL2VmOoYov53Gt8abWB66aauyc2tdi2KR/Win036nbgujDLyQC1qm8EgIW+2Btflta5znOLIGdwhYJHhQzgGqU= Received: by 10.100.93.19 with SMTP id q19mr8652615anb.143.1210617922466; Mon, 12 May 2008 11:45:22 -0700 (PDT) Received: by 10.100.239.17 with HTTP; Mon, 12 May 2008 11:45:22 -0700 (PDT) Message-ID: <539c60b90805121145p3843045cvb2d382cf6bc82430@mail.gmail.com> Date: Mon, 12 May 2008 11:45:22 -0700 From: "Steve Franks" Sender: bahamasfranks@gmail.com To: r.c.ladan@gmail.com, freebsd-usb@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Google-Sender-Auth: 51c7728aa163abf5 Cc: Subject: libusb usb_open(when using desc) broken? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: stevefranks@ieee.org List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 May 2008 19:10:29 -0000 Hi, I've observed that several different projects which use libusb to talk to hardware are "broken" when built on freebsd - they fail on opening the device. If I corrupt them to open on just a vid+pid (as opposed to vid+pid+desc), they work fine. Is it possible that FreeBSD is handling usb "description" strings (alot of doc's are really unclear on just what "desc" is, exactly - I've heard serial number, name, content from dmesg, etc) differently than linux - because all these projects are linux-based, and the linux users are always confounded when I describe the problem to them. One of the projects is "openocd", which uses libusb through libftdi, and the other is "urjtag" which I assume uses it natively, since it's not ftdi-based hardware. I'm about to start digging around in the urjtag source today, previously I assumed it was a libftdi problem until it happened a second time. Best, Steve