Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Mar 2009 22:16:08 +0000
From:      "Conall O'Brien" <conall@gmail.com>
To:        freebsd-usb@freebsd.org
Subject:   1wire sensor with ugen...
Message-ID:  <6721d4100903081516v19e46090if41d373b82b476c3@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
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: <DLP Design DLP-TEMP, class 0/0, rev 2.00/6.00, addr 3> 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 "<stdin>", line 1, in <module>
  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



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