From owner-freebsd-usb@FreeBSD.ORG Tue Dec 9 20:07:56 2014 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id EF8A08DA for ; Tue, 9 Dec 2014 20:07:56 +0000 (UTC) Received: from lamora.getmail.no (lamora.getmail.no [84.210.184.7]) by mx1.freebsd.org (Postfix) with ESMTP id A1B41CEB for ; Tue, 9 Dec 2014 20:07:56 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by lamora.getmail.no (Postfix) with ESMTP id 33FE8C502C for ; Tue, 9 Dec 2014 21:00:49 +0100 (CET) Received: from lamora.getmail.no ([127.0.0.1]) by localhost (lamora.get.c.bitbit.net [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id ATCgLKhDrNPu for ; Tue, 9 Dec 2014 21:00:45 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by lamora.getmail.no (Postfix) with ESMTP id 4810EC4FB3 for ; Tue, 9 Dec 2014 21:00:45 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.8.4 lamora.getmail.no 4810EC4FB3 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=getmail.no; s=8A9C8B4C-D727-11E2-8095-B6466E6B3FA2; t=1418155245; bh=46pSVNzfzudtkvYaDwo7UgzySYk3A+tElYg4Z3LKIrM=; h=Date:From:To:Subject:Message-Id:Mime-Version:Content-Type: Content-Transfer-Encoding; b=DBxqkRFERRSryk71HY1p9hUXzPyRQ2N9zwoCuiPFWULDC9ljFPoYfeiX4CWMj69Lc lkIkpC75yFDBuwuZBOKOUcysMXiVkyici59HAQRxsVpAjO7irkmW7MZgWPxLsa79gW ccoSVM9O8P4Kuxu2m1hUdY7AW3vz1ktSFyi+RFrM= X-Virus-Scanned: amavisd-new at lamora.get.c.bitbit.net Received: from lamora.getmail.no ([127.0.0.1]) by localhost (lamora.get.c.bitbit.net [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id C98-WTVEXBrB for ; Tue, 9 Dec 2014 21:00:45 +0100 (CET) Received: from kg-core1.kg4.no (cm-84.215.180.206.getinternet.no [84.215.180.206]) by lamora.getmail.no (Postfix) with ESMTPSA id 1648FC502B for ; Tue, 9 Dec 2014 21:00:45 +0100 (CET) Date: Tue, 9 Dec 2014 21:00:42 +0100 From: Torfinn Ingolfsen To: freebsd-usb@FreeBSD.org Subject: Re: Is writing usb devices as files (via /dev/ugen*) supported in FreeBSD? Message-Id: <20141209210042.42b8cc4ad0673cab484345b9@getmail.no> In-Reply-To: <54854A3F.1090807@selasky.org> References: <20141207235213.059d82613b8ca0fa0f14b78e@getmail.no> <54854A3F.1090807@selasky.org> X-Mailer: Sylpheed 3.4.2 (GTK+ 2.24.22; amd64-portbld-freebsd9.3) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Dec 2014 20:07:57 -0000 On Mon, 08 Dec 2014 07:50:39 +0100 Hans Petter Selasky wrote: > > /dev/ugenX is not a stream. You should either consider using libusb or > /dev/ulptX . > You are right (of course). Sorry about the brainfart. I changed the device in the script: root@kg-core1# grep ^DEV_NODE dymoprint2 DEV_NODE = "/dev/ulpt0" and now it works: root@kg-core1# python dymoprint2 "4port USB2.0 hub" "38-5663" [96, 0, 18, 100, 13, 220, 0, 0] (Tes, I get the printout too) Thanks for the hint! -- Torfinn Ingolfsen