From owner-freebsd-usb@freebsd.org Sun Jul 24 06:39:14 2016 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2B5C5B9B315; Sun, 24 Jul 2016 06:39:14 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: from mail-wm0-x242.google.com (mail-wm0-x242.google.com [IPv6:2a00:1450:400c:c09::242]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id BD496160C; Sun, 24 Jul 2016 06:39:13 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: by mail-wm0-x242.google.com with SMTP id o80so11943818wme.0; Sat, 23 Jul 2016 23:39:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:in-reply-to:references:reply-to :mime-version:content-transfer-encoding; bh=q9Q4lxK5Y2igg3d+ljNIhZkcmRJ48SvmbdxPZqSJibg=; b=Qf4mpQ36rQEuKfXtccpqhIGrOEQccDCUwl4cgcaiqW52TsAzCWj+dzCnNXTvVqUwBL QqQPWEJzsfn3SckwDHUB3zVr0PdWPE6TYiCNg8nxl8dW71kh++E0h2EExKGMBFNS6lG2 fCkrpr7jnARkkwNfCt013Ss1QW0YvnpzJQCTtNgRWRCB5DKzo923uO59gEJbCP1lsEl2 N8YlqgBXh/ERS0jvhgqpmTNA0Nh12hJXf9mBEA/eHa2v8SlAcgXupmfP6bgWqKHIK125 7iLgUA37TJiggwm8G0CLM2rT89wjOBdwNG0kM8WgK6hinsywyYQJVpo3M9fvTNijjlo2 K1sw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:reply-to:mime-version:content-transfer-encoding; bh=q9Q4lxK5Y2igg3d+ljNIhZkcmRJ48SvmbdxPZqSJibg=; b=LS3egDcrseL2NLFw+gG8YpcqvX5z6ZG6Ng9MARPmEQNFa6pWSiqvOo7SOjTR0U612K uvVmE0AaHjvSetKNQYeWaQ6Woa25q/e5nz59UHr0/RfibwPxFpTSjkaCJIcwGmWA7QhO tOJ0xseRrut7YLeeas73XW6F3ByAatWhGteVrQOKlg368rle6BKh1UWcZpM/su9XoQnc vdsVaLmYQO801pNS4+WVln+8vbMkn3PkzBjl1XMwWOt6HveEJQkMh8Ap23BiJwesdtik ZqZB5chkDxuj1QK5QXBklpl5uSWqiHjDBQTghbrrbJeR2Dy8w99OHf9Vif1ddCQEJisB 7vrg== X-Gm-Message-State: AEkoous0y7RYGf3vaMQaE8lhExYJ+kdJgV/fQUONMOcl7n7Rq6vM6HC8O5WH8oFN+jFAag== X-Received: by 10.28.157.148 with SMTP id g142mr14772226wme.2.1469342351317; Sat, 23 Jul 2016 23:39:11 -0700 (PDT) Received: from ernst.home (p578E0FCF.dip0.t-ipconnect.de. [87.142.15.207]) by smtp.gmail.com with ESMTPSA id r67sm20871011wmb.14.2016.07.23.23.39.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 23 Jul 2016 23:39:10 -0700 (PDT) Date: Sun, 24 Jul 2016 08:38:59 +0200 From: Gary Jennejohn To: "O. Hartmann" Cc: Ian Lepore , freebsd-usb@freebsd.org, FreeBSD CURRENT Subject: Re: Digi Watchport/T temperature sensor as /dev/ttyU Message-ID: <20160724083859.4c0dd392@ernst.home> In-Reply-To: <20160724080330.3a27e875.ohartman@zedat.fu-berlin.de> References: <20160722183556.2fc39fd7.ohartman@zedat.fu-berlin.de> <1469206374.84197.14.camel@freebsd.org> <20160723220430.34ce02fe.ohartman@zedat.fu-berlin.de> <1469306951.84197.31.camel@freebsd.org> <20160724080330.3a27e875.ohartman@zedat.fu-berlin.de> Reply-To: gljennjohn@gmail.com X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.29; amd64-portbld-freebsd11.0) 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.22 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Jul 2016 06:39:14 -0000 On Sun, 24 Jul 2016 08:03:30 +0200 "O. Hartmann" wrote: > Am Sat, 23 Jul 2016 14:49:11 -0600 > Ian Lepore schrieb: > > > On Sat, 2016-07-23 at 22:04 +0200, O. Hartmann wrote: > > > Am Fri, 22 Jul 2016 10:52:54 -0600 > > > Ian Lepore schrieb: > > > > > > > On Fri, 2016-07-22 at 18:35 +0200, O. Hartmann wrote: > > > > > For temperature monitoring, we have a bunch of Digi Watchport/T > > > > > sensors: > > > > > > > > > > http://ftp1.digi.com/support/documentation/90000406_H.pdf > > > > > > > > > > > > > > [...] > > > > > > > > I think the attached patch will make it show up as a ttyU*/cuaU* > > > > device > > > > for you. (You should probably use the /dev/cuaU* flavor, to avoid > > > > problems with tty layer and modem control signals). > > > > > > > > I keep wishing we had a mechanism, like a sysctl that could be set > > > > or > > > > something, that would let you supply a vendor/product pair and have > > > > the > > > > ugensa driver attach to that device, for quick testing of this sort > > > > of > > > > thing. > > > > > > > > -- Ian > > > > > > No, it doesn't change anything. I applied the patch to most recent > > > CURRENT and it is > > > still the same. But thanks anyway. > > > > > > Kind regards, > > > > > > oh > > > > Oh, my bad, I forgot to mention: You'll have to manually "kldload > > ugensa" before plugging in the device (or load it from your > > loader.conf). > > > > When the change gets committed (assuming it works), the devd usb > > scripts will get regenerated, and that's what handles the auto-load of > > the driver. > > > > -- Ian > man ugensa doesn't exist! As I wrote earlier, I tried everything to load what I could > find. It seems, the patch and the hint about ugensa.ko did the magic ;-) Thank you very > much! Could the patch be made permanent to FreeBSD CURRENT? > > And also important: where is the man page for ugensa? Can the the module be compiled > staitcally into the kernel or are there pitfalls? > Even the most complete man page found in the internet, the one from Dragonfly, doesn't list your Digi International device as being one of those supported. Still, having the man page under FreeBSD would at least provide a hint that the driver even exists. I added device ugensa to my config file and the kernel was generated without an error. > root@localhost: [src] kldload ugensa > > ugen2.7: at usbus2 > ugensa0: on usbus2 > ugensa0: Found 1 interfaces. > root@thor: [src] man ugensa > No manual entry for ugensa > root@localhost: [src] ll /dev/cuaU0* > 203 crw-rw---- 1 uucp dialer - 0xcb Jul 24 07:51 /dev/cuaU0 > 204 crw-rw---- 1 uucp dialer - 0xcc Jul 24 07:51 /dev/cuaU0.init > 205 crw-rw---- 1 uucp dialer - 0xcd Jul 24 07:51 /dev/cuaU0.lock > > > I'll try now to get informations out of the device, I let you know whether that is a > success. But anyway, again, thank you for helping making the device visible and available. > -- Gary Jennejohn