Hi all:
I'm not sure if this is specifically a python problem or a larger
underlying memory problem. Since upgrading to Python2.6, we have not
yet gotten owfs working again. This most recent test was from a
2.7p2x build and python 2.5. The second snippit is from 2.8p2 and
python 2.6.
We burn a brief ID into our 2406's for our software to identify what
type of device it is. We use XML as much of our data elsewhere is
xml:
Python 2.6.4 (r264:75706, Jun 9 2010, 17:25:01)
[GCC 4.1.2 (Gentoo 4.1.2 p1.3)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> >>> import ow
>>> >>> ow.init('uall')
>>> >>> print ow._OW.get("/uncached")
20.C7860D000000/,28.429D31010000/,12.50325F000000/,81.956429000000/,bus.0/,setti
ngs/,system/,statistics/,structure/,simultaneous/,alarm/
>>> >>> print ow._OW.get("/uncached/12.50325F000000")
PIO.BYTE,PIO.ALL,PIO.A,PIO.B,T8A/,TAI8570/,address,alias,channels,crc8,family,fl
ipflop.BYTE,flipflop.ALL,flipflop.A,flipflop.B,id,latch.BYTE,latch.ALL,latch.A,l
atch.B,locator,memory,pages/,power,present,r_address,r_id,r_locator,sensed.BYTE,
sensed.ALL,sensed.A,sensed.B,set_alarm,type
>>> >>> print ow._OW.get("/uncached/12.50325F000000/memory")
<FAMILY=ITEM><VERSION=01>�������������������������������������������������������
������������������������������������������������
>>> >>>
Python 2.6.5 (release26-maint, Aug 27 2010, 02:36:52)
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> >>> import ow
>>> >>> ow.init('uall')
>>> >>> print ow._OW.get("/uncached")
28.909231010000/,28.C88E31010000/,28.729131010000/,28.698C31010000/,28.697F31010000/,12.888046000000/,12.C8AC4B000000/,12.687D46000000/,12.687F46000000/,12.387D46000000/,12.447E46000000/,12.647E46000000/,12.543D5F000000/,12.B48246000000/,12.F48246000000/,12.CC7A46000000/,12.2C8046000000/,12.6C7B46000000/,12.6C7F46000000/,12.527F46000000/,12.327C46000000/,12.6A7F46000000/,12.468046000000/,12.C67946000000/,12.967F46000000/,12.D67A46000000/,12.F6B24B000000/,12.0E8146000000/,12.8E7B46000000/,12.9E8146000000/,12.9E7D46000000/,12.017C46000000/,12.417C46000000/,12.217946000000/,12.317B46000000/,12.C98046000000/,12.197E46000000/,12.457C46000000/,12.C57B46000000/,12.257D46000000/,12.2D7C46000000/,12.D37D46000000/,12.6B7B46000000/,12.277A46000000/,12.A77F46000000/,12.577D46000000/,12.8F7F46000000/,12.2F7C46000000/,12.1F7D46000000/,12.9F8246000000/,81.381929000000/,bus.0/,settings/,system/,statistics/,structure/,simultaneous/,alarm/
>>> >>> print ow._OW.get("/uncached/12.527F46000000")
PIO.BYTE,PIO.ALL,PIO.A,PIO.B,T8A/,TAI8570/,address,alias,channels,crc8,family,flipflop.BYTE,flipflop.ALL,flipflop.A,flipflop.B,id,latch.BYTE,latch.ALL,latch.A,latch.B,locator,memory,pages/,power,r_address,r_id,r_locator,sensed.BYTE,sensed.ALL,sensed.A,sensed.B,set_alarm,type
>>> >>> print ow._OW.get("/uncached/12.527F46000000/memory")
0FAMILY=MOTION><VERSION=01>�����������������������������������������������������������������������������������������������������
>>> >>> print ow._OW.get("/uncached/12.457C46000000")
PIO.BYTE,PIO.ALL,PIO.A,PIO.B,T8A/,TAI8570/,address,alias,channels,crc8,family,flipflop.BYTE,flipflop.ALL,flipflop.A,flipflop.B,id,latch.BYTE,latch.ALL,latch.A,latch.B,locator,memory,pages/,power,r_address,r_id,r_locator,sensed.BYTE,sensed.ALL,sensed.A,sensed.B,set_alarm,type
>>> >>> print ow._OW.get("/uncached/12.457C46000000/memory")
0FAMILY=MOTION><VERSION=01>�����������������������������������������������������������������������������������������������������
>>> >>>
Note that the XML on the second one, the leading < has become a 0.
That appears to be what's breaking things currently. Any ideas what's
causing this and/or how to fix it?
Thanks!
--Jim
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers