From owner-freebsd-usb@FreeBSD.ORG Tue Dec 14 07:25:23 2010 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 217F3106566B for ; Tue, 14 Dec 2010 07:25:23 +0000 (UTC) (envelope-from r.c.ladan@gmail.com) Received: from mail-ey0-f178.google.com (mail-ey0-f178.google.com [209.85.215.178]) by mx1.freebsd.org (Postfix) with ESMTP id 9D73C8FC08 for ; Tue, 14 Dec 2010 07:25:22 +0000 (UTC) Received: by eyh5 with SMTP id 5so137181eyh.37 for ; Mon, 13 Dec 2010 23:25:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :organization:user-agent:mime-version:to:cc:subject:references :in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; bh=8tA6oq08Es0UX0EmANt9CJWdNwT9h/OCkb4KMdfs0xA=; b=RCnDd4Q+xCJdA0Qigty/lhIfQS7AVao/zbXAhYeUtsEq0XqwZIQTWK5xayuaDWdHjH Z7/h5JND5xd3IUZycylpA+nFYGMReTgjbE7OxP1LRFDOpwhv4kIPa4n4Ez6o6QL1KmHM 3EYEfQqQvz+B0PCZJIDgrN7RQaDVOCesam1SE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:organization:user-agent:mime-version:to :cc:subject:references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=P5sdEBrRI7o8dTdEWTXsfux3nPV9Z6SeqfxakIxjBMzGiKNezH2q6Ht+lcrm0cODcg rlFfkQ/Q3fLML/zriCzWnwvx4gJrl2MVyayAwfKnfio2+OXXzd5yI32cwphlXzKPQGWB e3De0k1OxxSKesob2YywUfH1Sc0gXdJouYN5c= Received: by 10.213.15.76 with SMTP id j12mr3308990eba.54.1292311521243; Mon, 13 Dec 2010 23:25:21 -0800 (PST) Received: from [192.168.1.64] (ip4da3ae31.direct-adsl.nl [77.163.174.49]) by mx.google.com with ESMTPS id b52sm736540eei.19.2010.12.13.23.25.19 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 13 Dec 2010 23:25:20 -0800 (PST) Sender: =?UTF-8?Q?Ren=C3=A9_Ladan?= Message-ID: <4D071BDF.9010300@freebsd.org> Date: Tue, 14 Dec 2010 08:25:19 +0100 From: Rene Ladan Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; nl-NL; rv:1.9.2.13) Gecko/20101210 Thunderbird/3.1.7 MIME-Version: 1.0 To: Hans Petter Selasky References: <4D054F76.1080401@freebsd.org> <201012131151.25655.hselasky@c2i.net> <4D0680D7.10007@freebsd.org> <201012140508.09787.hselasky@c2i.net> In-Reply-To: <201012140508.09787.hselasky@c2i.net> X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Cc: freebsd-usb@freebsd.org Subject: Re: Lego NXT brick communication error with libusb X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Dec 2010 07:25:23 -0000 Op 14-12-2010 05:08, Hans Petter Selasky schreef: > On Monday 13 December 2010 21:23:51 Rene Ladan wrote: >> Op 13-12-2010 11:51, Hans Petter Selasky schreef: >>> On Sunday 12 December 2010 23:40:54 Rene Ladan wrote: >>>> Hi, >>>> >>>> I am writing a port [1] to control the Lego NXT brick with ROS, but when >>>> I run a test program it fails (permissions for the USB device are 666). >>> >>>> This is on: >>> What dmesg is shown? Are other [kernel] drivers hooking into the USB >>> interfaces used by your user-land driver? >> >> dmesg shows just: >> ugen3.2: at usbus3 >> Vendor 0x0694 is Lego. >> >> I don't have other drivers hooking into the USB device I think: >> % kldstat -v | grep usb >> 276 usbus/uhub >> 275 uhub/usb_linux >> 273 uss820/usbus >> 272 musbotg/usbus >> 271 at91_udp/usbus >> 270 xhci/usbus >> 269 ehci/usbus >> 268 uhci/usbus >> 267 ohci/usbus >> >>> What is output from usbconfig -d X.Y dump_device_desc >>> dump_curr_config_desc >> >> Attached. >> >> Rene > > What happens if you remove that device reset line from your driver? > That does the trick, reading sensor data as user now works :) So on Linux this reset line is harmless, but on FreeBSD it has to be removed. Rene -- http://www.rene-ladan.nl/ GPG fingerprint = ADBC ECCD EB5F A6B4 549F 600D 8C9E 647A E564 2BFC (subkeys.pgp.net)