From owner-freebsd-usb@FreeBSD.ORG Sun Mar 8 22:37:55 2009 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 7AAF9106564A for ; Sun, 8 Mar 2009 22:37:55 +0000 (UTC) (envelope-from conall@gmail.com) Received: from mail-ew0-f166.google.com (mail-ew0-f166.google.com [209.85.219.166]) by mx1.freebsd.org (Postfix) with ESMTP id DB45E8FC1E for ; Sun, 8 Mar 2009 22:37:54 +0000 (UTC) (envelope-from conall@gmail.com) Received: by ewy10 with SMTP id 10so642285ewy.43 for ; Sun, 08 Mar 2009 15:37:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=LSC8fHV1mCmxOK5C1E1nurXw6sdkFpHSHVqJHJDbS4s=; b=eNXX7rmAOPPRiRL2DOUnCjkIzla+st8/5SADG1EnyXsHyH+0vYrk/XfdMbGUx9BcpB wUzVAfHNZCyZCocA6hZtugYEWX+d5FscDWlACl+anxKw8enFWZ76fo5+/EknwR5AeKnO M6+iIOelZrwLrCRVnPwYU4yXP67ZJaFn2sZ3M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=J+0JtHRhmqj6cCwHkRaNu8A/Po9f3Oo71DunXLt7OpVDy71YC+ARwtNDckVadbexcr aPPUQX8R8O0eIIV5odmC7lulYk1JfUmzkg2K0xn/QnwCDbqfyyUND/KIfgS/zFjHAsTZ bKfRrz9N1pu55V2QjVMD15mLU6e62IVbTMgJM= MIME-Version: 1.0 Received: by 10.216.15.85 with SMTP id e63mr1849638wee.199.1236550568342; Sun, 08 Mar 2009 15:16:08 -0700 (PDT) Date: Sun, 8 Mar 2009 22:16:08 +0000 Message-ID: <6721d4100903081516v19e46090if41d373b82b476c3@mail.gmail.com> From: "Conall O'Brien" To: freebsd-usb@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: 1wire sensor with ugen... 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: Sun, 08 Mar 2009 22:37:55 -0000 Hello, I've a 1wire USB device with a temperature sensor which I'm trying to set up. My FreeBSD 7.x (RELENG_7) system detects it on boot and IDs it correctly: ugen1: on uhub0 which results in /dev/ugen1 , /dev/ugen1.1 and /dev/ugen1.2 devices all being created. The sensor should be accessible as a straight serial device (9600 baud, etc), but my attempts using pyserial aren't working: >>> s = serial.Serial('/dev/ugen1', 9600, timeout=1) >>> s.read(10) Traceback (most recent call last): File "", line 1, in File "build/bdist.freebsd-7.1-STABLE-amd64/egg/serial/serialposix.py", line 344, in read serial.serialutil.SerialException: Port not open >>> s.isOpen() False I don't have much experience working directly with ugen devices, so any advice to get this working would be appreciated. Thanks! -- Conall O'Brien