From owner-freebsd-usb@FreeBSD.ORG Mon Dec 13 20:42:22 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 09C34106566B for ; Mon, 13 Dec 2010 20:42:22 +0000 (UTC) (envelope-from r.c.ladan@gmail.com) Received: from mail-ew0-f51.google.com (mail-ew0-f51.google.com [209.85.215.51]) by mx1.freebsd.org (Postfix) with ESMTP id 859118FC0C for ; Mon, 13 Dec 2010 20:42:21 +0000 (UTC) Received: by ewy19 with SMTP id 19so4404702ewy.10 for ; Mon, 13 Dec 2010 12:42:20 -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; bh=mpU5PfNUr7L/Bc+GC3aKBlHYv6p3rJnyzc5lG9F4IOE=; b=tId5xlh7DgHL+P4Nf4Q51rNd1RraEnrRghC/HmwYIzhy40zuTHpsRoDzlDSukMIO6q +/9tR5TlJHXkc1DjsYKLEX4rPcmoMMUXU3rqR61RyLpW5m+7GDUt6H+g4CXwpxifimro O1z7eLgkWlhi2tuxqhDk0e4Qze9CNaf0T1rCQ= 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; b=Q4rql5S2HvA8y3Ks4nCeI0Fk5OPqRG6zHMdcsEMbhSMhVThdlBjJdHNhzT+uRSN2AA cuWidblf6M7KctVQFXUNgGg/4DAMHyjTuToGsggnsLXRLH3H7MrftkCdKqVYNHZnl1s5 /8by1XZGA0GgdPO/CHbWvRMn2EHhSIBj+1Iio= Received: by 10.14.53.75 with SMTP id f51mr51173eec.28.1292271832961; Mon, 13 Dec 2010 12:23:52 -0800 (PST) Received: from [192.168.1.64] (ip4da3ae31.direct-adsl.nl [77.163.174.49]) by mx.google.com with ESMTPS id q58sm359173eeh.21.2010.12.13.12.23.51 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 13 Dec 2010 12:23:51 -0800 (PST) Sender: =?UTF-8?Q?Ren=C3=A9_Ladan?= Message-ID: <4D0680D7.10007@freebsd.org> Date: Mon, 13 Dec 2010 21:23:51 +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> In-Reply-To: <201012131151.25655.hselasky@c2i.net> X-Enigmail-Version: 1.1.2 Content-Type: multipart/mixed; boundary="------------010208030409090005090606" 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: Mon, 13 Dec 2010 20:42:22 -0000 This is a multi-part message in MIME format. --------------010208030409090005090606 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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 -- http://www.rene-ladan.nl/ GPG fingerprint = ADBC ECCD EB5F A6B4 549F 600D 8C9E 647A E564 2BFC (subkeys.pgp.net) --------------010208030409090005090606 Content-Type: text/plain; name="lego.desc" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="lego.desc" ugen3.2: at usbus3, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0200 bDeviceClass = 0x0000 bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0000 bMaxPacketSize0 = 0x0008 idVendor = 0x0694 idProduct = 0x0002 bcdDevice = 0x0000 iManufacturer = 0x0000 iProduct = 0x0000 iSerialNumber = 0x0001 <0016530CA81C> bNumConfigurations = 0x0001 Configuration index 0 bLength = 0x0009 bDescriptorType = 0x0002 wTotalLength = 0x0020 bNumInterfaces = 0x0001 bConfigurationValue = 0x0001 iConfiguration = 0x0000 bmAttributes = 0x00c0 bMaxPower = 0x0000 Interface 0 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0000 bAlternateSetting = 0x0000 bNumEndpoints = 0x0002 bInterfaceClass = 0x00ff bInterfaceSubClass = 0x00ff bInterfaceProtocol = 0x00ff iInterface = 0x0000 Endpoint 0 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0001 bmAttributes = 0x0002 wMaxPacketSize = 0x0040 bInterval = 0x0000 bRefresh = 0x0000 bSynchAddress = 0x0000 Endpoint 1 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0082 bmAttributes = 0x0002 wMaxPacketSize = 0x0040 bInterval = 0x0000 bRefresh = 0x0000 bSynchAddress = 0x0000 --------------010208030409090005090606--