1wire sensor with ugen...

Conall O'Brien conall at gmail.com
Sun Mar 8 15:37:55 PDT 2009


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


More information about the freebsd-usb mailing list