At the risk of posting one of those useless 'it works for me' messages,
I don't experience the same problem on my unslung NSLU2. I'm using a
hub, so maybe that comes into play, but I've no idea how it would. I've
included the output from my python invocation, and the installed
versions of some of the related packages. Maybe something will catch
your eye.
# python
Python 2.4.4 (#1, Nov 8 2006, 11:28:40)
[GCC 3.3.5] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import ownet
>>>
s=ownet.Sensor("/1F.A9D400000000/main/1D.DAEA00000000","127.0.0.1",3002)
>>> print getattr(s,'counters_A')
7176446
>>>
My software versions for your reference:
owfs - 2.6p2-3 - 1-Wire filesystem (http://owfs.sf.net)
owlib - 2.6p2-3 - 1-wire library
owshell - 2.6p2-3 - 1-wire shell utilities
libusb - 0.1.10a-6 - Library for interfacing to the USB subsystem.
fuse-utils - 2.6.0-pre2-3 - Fuse
kmod-fuse - 2.6.0-pre2-3 - Fuse
libfuse - 2.6.0-pre2-3 - Fuse
HTH,
Paul
On Thu, 2007-03-29 at 22:21 +1000, Matt wrote:
> 'counters_A' works fine with these devices on Debian Etch + owserver
> v2.6p0 + serial.
>
> Using NSLU +owserver 2.6p2 + usb, only one of the counter devices
> appears on the bus and I'm not able to read the counter attribute via
> python.
>
> I'll try the usb on Debian to see if it a usb thing....
>
> Thanks
>
>
> Paul Davis wrote:
> > Try:
> >
> > print getattr(s,'counters_A') or
> > print s.counters_A
> >
> > Periods in attribute names get replaced by underscores in ownet.
> > Not sure where (if) it's documented, perhaps in the source someplace,
> > but
> > that's the rule.
> >
> > Paul
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers