Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Dec 2014 21:00:42 +0100
From:      Torfinn Ingolfsen <torfinn.ingolfsen@getmail.no>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 08 Dec 2014 07:50:39 +0100
Hans Petter Selasky <hps@selasky.org> 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 <torfinn.ingolfsen@getmail.no>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20141209210042.42b8cc4ad0673cab484345b9>