Paul Alfille | 1 Apr 04:26 2009
Picon

Re: owfs memory consumption and timing questions

I've added a small perl program to parse the output from the memory leak output at src/scripts/memleakparser.pl

Here it is:
#!/usr/bin/perl -w

# OWFS test program
# See owfs.sourceforge.net for details
# {copyright} 2004 Paul H. Alfille
# GPL v2 license

# $Id: owdir.pl,v 1.2 2009/04/01 01:26:35 alfille Exp $

use strict ;

die (
    "$0 -- part of the 1-Wire Filesystem Suite (OWFS)\n"
    ."Syntax:\n"
    ."\t$0 < mem.txt\n"
    ."where mem.txt is the output from owserver\n\n"
    ."Basically, this program parses the memory allocation output, matching\n"
    ."allocation and free, and marking the unmatched lines with '!'\n\n"
    ."To use, owserver must be compiled with OW_ALLOC_DEBUG and invoked\n"
    ."\towserver -u -p 4304 --foreground > mem.txt\n\n"
    ."By Paul H Alfille 2009\n"
    ."See http://www.owfs.org\n"
) if ( $#ARGV >= 0 ) ;

my <at> lines = reverse(<>) ;
my <at> addr ;
my <at> status ;

foreach my $line ( <at> lines) {
    $line =~ /^([0123456789abcdefABCDEFxXS]+) / ;
    $addr[++$#addr] = $1 ;
    if ($line =~ m/FREE/) {
        $status[++$#status] = 1 ;
    } else {
        $status[++$#status] = 0 ;
    }
}

my $count = $#lines ;
foreach (my $index = 0; $index <= $count ; ++$index) {
    if ($status[$index] == 0) {
        $lines[$index]="! ".$lines[$index] ;
    } elsif ($status[$index] == 1) {
        for (my $j = $index+1 ; $j <= $count ; ++$j) {
            if ($addr[$index] eq $addr[$j]) {
                if ($status[$j]==0) {
                    $lines[$index]="< ".$lines[$index] ;
                    $lines[$j]="> ".$lines[$j] ;
                    $status[$j] = -1 ;
                } else {
                    $lines[$index]="! ".$lines[$index] ;
                }
                last ;
            }
        }
    }
}

<at> lines = reverse( <at> lines);
printf join('', <at> lines) ;


Example output:
> 0x5f1d930 alloc owserver.c:main[113] STRDUP s=/opt/owfs-cvs3/bin/owserver
> 0x5f1d980 alloc ow_connect.c:NewIn[88] MALLOC size=848
> 0x5f1dd00 alloc ow_connect.c:NewOut[130] MALLOC size=256
> 0x5f1de30 alloc ow_ds9490.c:DS9490_detect[292] STRDUP s=-1/-1
< 0x5f1de30 free  ow_ds9490.c:DS9490_open[425] FREE
> 0x5f2c708 alloc ow_ds9490.c:DS9490_device_name[584] STRDUP s=002/005
> 0x5f2c7a0 alloc ow_bus.c:BUS_send_data[35] MALLOC size=2
< 0x5f2c7a0 free  ow_bus.c:BUS_send_data[46] FREE
! (nil) free  ow_dirblob.c:DirblobAdd[82] REALLOC
> 0x5f2c7d8 alloc ow_dirblob.c:DirblobAdd[82] REALLOC size=80
! 0x5f2c858 alloc ow_cache.c:Cache_Add_Device[345] MALLOC size=44
! 0x5f2c908 alloc ow_cache.c:Cache_Add_Device[345] MALLOC size=44
! 0x5f2c9b8 alloc ow_cache.c:Cache_Add_Device[345] MALLOC size=44
! 0x5f2ca68 alloc ow_cache.c:Cache_Add_Device[345] MALLOC size=44
! 0x5f2cb18 alloc ow_cache.c:Cache_Add_Device[345] MALLOC size=44
! 0x5f2cbc8 alloc ow_cache.c:Cache_Add_Device[345] MALLOC size=44
> 0x5f2cdb8 alloc ow_net_server.c:ServerAddr[34] STRDUP s=0.0.0.0
> 0x5f2cdf0 alloc ow_net_server.c:ServerAddr[35] STRDUP s=4304
> 0x5f2ce98 alloc ow_net_server.c:ServerProcessAccept[231] MALLOC size=16
> 0x5f2d018 alloc from_client.c:FromClient[86] MALLOC size=27
> 0x5f2d1a8 alloc ow_parsename.c:FS_ParsedName_setup[256] STRDUP s=3A.1EDA01000000/PIO.ALL
> 0x5f2d1f0 alloc ow_parsename.c:FS_ParsedName_setup[261] MALLOC size=48
< 0x5f2d1a8 free  ow_parsename.c:FS_ParsedName_anywhere[130] FREE
> 0x5f2d250 alloc ow_parseobject.c:FS_OWQ_create_postparse[71] CALLOC size=8 nmemb=2
> 0x5f2d290 alloc ow_locks.c:LockGet[166] MALLOC size=56
> 0x5f2d348 alloc ow_parsename.c:FS_ParsedName_setup[256] STRDUP s=3A.1EDA01000000/piostate
> 0x5f2d398 alloc ow_parsename.c:FS_ParsedName_setup[261] MALLOC size=50
< 0x5f2d348 free  ow_parsename.c:FS_ParsedName_anywhere[130] FREE
! 0x5f2d400 alloc ow_parseobject.c:FS_OWQ_from_pn[86] MALLOC size=172
< 0x5f2d398 free  ow_parsename.c:FS_ParsedName_destroy[73] FREE
> 0x5f2d4e0 alloc ow_bus.c:BUS_send_data[35] MALLOC size=1

In this example, the 3rd to last line is the error. (Parsing the whole thing demonstrates this.)

I'll work on it.

Paul Alfille

------------------------------------------------------------------------------
_______________________________________________
Owfs-developers mailing list
Owfs-developers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers
Jaap Struyk | 1 Apr 07:15 2009
Picon

Re: ownet.php error

Matthias Urlichs schreef:

> The core problem is that the PHP function is named "bccomp",
> as a glance at the appropriate manpage should have told you. :-P

Auch, now I am ashamed... (I will complain at google that they missed
that ;)

That indeed did work, pity that php is always telling that the counter
is zero despite it's real reading.

------------------------------------------------------------------------------
david schumacher | 1 Apr 11:22 2009
Picon

Re: owfs memory consumption and timing questions

great, according to valgrind the leak is gone, and owserver is using 
constantly 83332K virt, 1692K rss .

thanks a lot!

Paul Alfille schrieb:
> I've added a small perl program to parse the output from the memory 
> leak output at src/scripts/memleakparser.pl
>
> Here it is:
> #!/usr/bin/perl -w
>
> # OWFS test program
> # See owfs.sourceforge.net <http://owfs.sourceforge.net> for details
> # {copyright} 2004 Paul H. Alfille
> # GPL v2 license
>
> # $Id: owdir.pl,v 1.2 2009/04/01 01:26:35 alfille Exp $
>
> use strict ;
>
> die (
>     "$0 -- part of the 1-Wire Filesystem Suite (OWFS)\n"
>     ."Syntax:\n"
>     ."\t$0 < mem.txt\n"
>     ."where mem.txt is the output from owserver\n\n"
>     ."Basically, this program parses the memory allocation output, 
> matching\n"
>     ."allocation and free, and marking the unmatched lines with '!'\n\n"
>     ."To use, owserver must be compiled with OW_ALLOC_DEBUG and invoked\n"
>     ."\towserver -u -p 4304 --foreground > mem.txt\n\n"
>     ."By Paul H Alfille 2009\n"
>     ."See http://www.owfs.org\n"
> ) if ( $#ARGV >= 0 ) ;
>
> my  <at> lines = reverse(<>) ;
> my  <at> addr ;
> my  <at> status ;
>
> foreach my $line ( <at> lines) {
>     $line =~ /^([0123456789abcdefABCDEFxXS]+) / ;
>     $addr[++$#addr] = $1 ;
>     if ($line =~ m/FREE/) {
>         $status[++$#status] = 1 ;
>     } else {
>         $status[++$#status] = 0 ;
>     }
> }
>
> my $count = $#lines ;
> foreach (my $index = 0; $index <= $count ; ++$index) {
>     if ($status[$index] == 0) {
>         $lines[$index]="! ".$lines[$index] ;
>     } elsif ($status[$index] == 1) {
>         for (my $j = $index+1 ; $j <= $count ; ++$j) {
>             if ($addr[$index] eq $addr[$j]) {
>                 if ($status[$j]==0) {
>                     $lines[$index]="< ".$lines[$index] ;
>                     $lines[$j]="> ".$lines[$j] ;
>                     $status[$j] = -1 ;
>                 } else {
>                     $lines[$index]="! ".$lines[$index] ;
>                 }
>                 last ;
>             }
>         }
>     }
> }
>
>  <at> lines = reverse( <at> lines);
> printf join('', <at> lines) ;
>
>
> Example output:
> > 0x5f1d930 alloc owserver.c:main[113] STRDUP 
> s=/opt/owfs-cvs3/bin/owserver
> > 0x5f1d980 alloc ow_connect.c:NewIn[88] MALLOC size=848
> > 0x5f1dd00 alloc ow_connect.c:NewOut[130] MALLOC size=256
> > 0x5f1de30 alloc ow_ds9490.c:DS9490_detect[292] STRDUP s=-1/-1
> < 0x5f1de30 free  ow_ds9490.c:DS9490_open[425] FREE
> > 0x5f2c708 alloc ow_ds9490.c:DS9490_device_name[584] STRDUP s=002/005
> > 0x5f2c7a0 alloc ow_bus.c:BUS_send_data[35] MALLOC size=2
> < 0x5f2c7a0 free  ow_bus.c:BUS_send_data[46] FREE
> ! (nil) free  ow_dirblob.c:DirblobAdd[82] REALLOC
> > 0x5f2c7d8 alloc ow_dirblob.c:DirblobAdd[82] REALLOC size=80
> ! 0x5f2c858 alloc ow_cache.c:Cache_Add_Device[345] MALLOC size=44
> ! 0x5f2c908 alloc ow_cache.c:Cache_Add_Device[345] MALLOC size=44
> ! 0x5f2c9b8 alloc ow_cache.c:Cache_Add_Device[345] MALLOC size=44
> ! 0x5f2ca68 alloc ow_cache.c:Cache_Add_Device[345] MALLOC size=44
> ! 0x5f2cb18 alloc ow_cache.c:Cache_Add_Device[345] MALLOC size=44
> ! 0x5f2cbc8 alloc ow_cache.c:Cache_Add_Device[345] MALLOC size=44
> > 0x5f2cdb8 alloc ow_net_server.c:ServerAddr[34] STRDUP s=0.0.0.0
> > 0x5f2cdf0 alloc ow_net_server.c:ServerAddr[35] STRDUP s=4304
> > 0x5f2ce98 alloc ow_net_server.c:ServerProcessAccept[231] MALLOC size=16
> > 0x5f2d018 alloc from_client.c:FromClient[86] MALLOC size=27
> > 0x5f2d1a8 alloc ow_parsename.c:FS_ParsedName_setup[256] STRDUP 
> s=3A.1EDA01000000/PIO.ALL
> > 0x5f2d1f0 alloc ow_parsename.c:FS_ParsedName_setup[261] MALLOC size=48
> < 0x5f2d1a8 free  ow_parsename.c:FS_ParsedName_anywhere[130] FREE
> > 0x5f2d250 alloc ow_parseobject.c:FS_OWQ_create_postparse[71] CALLOC 
> size=8 nmemb=2
> > 0x5f2d290 alloc ow_locks.c:LockGet[166] MALLOC size=56
> > 0x5f2d348 alloc ow_parsename.c:FS_ParsedName_setup[256] STRDUP 
> s=3A.1EDA01000000/piostate
> > 0x5f2d398 alloc ow_parsename.c:FS_ParsedName_setup[261] MALLOC size=50
> < 0x5f2d348 free  ow_parsename.c:FS_ParsedName_anywhere[130] FREE
> ! 0x5f2d400 alloc ow_parseobject.c:FS_OWQ_from_pn[86] MALLOC size=172
> < 0x5f2d398 free  ow_parsename.c:FS_ParsedName_destroy[73] FREE
> > 0x5f2d4e0 alloc ow_bus.c:BUS_send_data[35] MALLOC size=1
>
> In this example, the 3rd to last line is the error. (Parsing the whole 
> thing demonstrates this.)
>
> I'll work on it.
>
> Paul Alfille
> ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------------
>   
> ------------------------------------------------------------------------
>
> _______________________________________________
> Owfs-developers mailing list
> Owfs-developers <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/owfs-developers
>   

------------------------------------------------------------------------------
Paul Alfille | 7 Apr 20:44 2009
Picon

Re: USB problems: error reading ret=-110

I've been doing some experimentation (without success, however).

This is Fedora 9 under vmware (OpenSuse host).

If usb is enabled in the configuration, the DS9490 is seen by the guest OS, but captured by the w1 system. I think that SElinux stops owfs from unloaded the module, so I had to perform `/sbin/rmmod ds2490` as root.

I then get the same error messages you get, which is 110=ETIMEOUT in usb_interrupt_read.

I tried increasing the timeout (figuring that the host-to-guest process was slow) either in the code, or under /settings/timeout/usb with no success.

So the remaining piece is the Damn Small Linux working. I'm not sure how to approach this problem.

Paul Alfille

On Sun, Mar 15, 2009 at 3:47 PM, Paul Alfille <paul.alfille <at> gmail.com> wrote:
On Sun, Mar 15, 2009 at 4:58 AM, Patrik Jansson <gein <at> knivby.nu> wrote:
Hmm, okay.
I forgot to tell. The owfs live cd works great though! Isn't that kind of strange if it's libusb?

-Patrik

That's interesting. The live cd uses a 2.4 kernel and an older version of owfs, but at least it is possible.

Paul

------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Owfs-developers mailing list
Owfs-developers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers
Michael Markstaller | 7 Apr 22:40 2009
Picon

OWFS & SNMP

Hi,

are there any news on this topic ?

I'm currently after getting my temperatures available by SNMP and played around a bit with extending
net-snmp by using a perl agent and "pass" to a shellscript. Works but still much to do..
Just wanted to ask wether there are any things going on in this direction to share.

I guess "the right way" would be a subagent for Net-SNMP in C but unfortunately, I have no idea about C-programming..

regards Michael

------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
Paul Alfille | 8 Apr 00:37 2009
Picon

Re: OWFS & SNMP

 I can program in C, but SNMP seems rather forbidding. Specifically, how the readings would be presented.

I found this example from ora-ltd: http://www.ora-ltd.com/microweb/mib.html (The MIB is http://www.ora-ltd.com/microweb/MTECH-DSTEMP-MIB.mib)

I assume we would used the owfs names (i.e. temperature, type, id, address) for the lowest level data.

So can you explain more of how this should work?

Paul Alfille


On Tue, Apr 7, 2009 at 4:40 PM, Michael Markstaller <mm <at> elabnet.de> wrote:
Hi,

are there any news on this topic ?

I'm currently after getting my temperatures available by SNMP and played around a bit with extending net-snmp by using a perl agent and "pass" to a shellscript. Works but still much to do..
Just wanted to ask wether there are any things going on in this direction to share.

I guess "the right way" would be a subagent for Net-SNMP in C but unfortunately, I have no idea about C-programming..

regards Michael

------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Owfs-developers mailing list
Owfs-developers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers

------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Owfs-developers mailing list
Owfs-developers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers
Michael Markstaller | 8 Apr 02:09 2009
Picon

Re: OWFS & SNMP

Paul, I'll have a look on this.

I guess in contrast to C-programming I have some understanding of SNMP, working with it for many years now.
Its without question something strange ;) But IMHO also, once understood very practical, scalable and
good; owfs is rather predestinated for it getting and settings data from/to sensors..

Although it's from a copy'n'paste scripting perspective guy like I am no real big issue to realize this
working but very inefficient there is IMHO a much better way. Net-snmp is very widely used today (at least
in the scope of snmp-addictives)
Let me put together a reasonable presentation of the owfs-data during the next days. I could also take care
of the MIB-part if needed. 

If this will get anything further it might make sense to register an enterprise number for owfs, so that this
stuff could be located somewhere meaningful, which is IMHO the place where it should be:
(http://pen.iana.org/pen/PenApplication.page) it's AFAIK still free.

Although I could live with a "limited hack to just do it", I'd be happy to contribute as far as possible.
While playing around further today I already ran into the first problem with floats in the external
scripting only being possible by some obscure opaque_xxx - or as integer divided by 10/100/1000 (which
was and is braindead, I always wondered until the readings today, why most of the things I know present a
temperature as int=float*100 or as string..)
But as far as I can see the C-API and docs for (agentX-)Plugins is quite comprehensive and well documented now.

The presentation is in this special case where we have not only a few values most likely the biggest thing to
consider, owfs is very predestinated and structured for that already. But with a general approach there
are a few more things to be considered like I/Os (what I haven't), I'll think about how to present this, I
guess I've seen at least enough bad implementations to say this should take more than tonight ;)

regards Michael

> -----Original Message-----
> From: Paul Alfille [mailto:paul.alfille <at> gmail.com] 
> Sent: Wednesday, April 08, 2009 12:38 AM
> To: owfs-developers <at> lists.sourceforge.net
> Subject: Re: [Owfs-developers] OWFS & SNMP
> 
>  I can program in C, but SNMP seems rather forbidding. 
> Specifically, how the readings would be presented.
> 
> I found this example from ora-ltd: 
> http://www.ora-ltd.com/microweb/mib.html (The MIB is 
> http://www.ora-ltd.com/microweb/MTECH-DSTEMP-MIB.mib)
> 
> I assume we would used the owfs names (i.e. temperature, 
> type, id, address) for the lowest level data.
> 
> So can you explain more of how this should work?
> 
> Paul Alfille
> 
> 
> 
> On Tue, Apr 7, 2009 at 4:40 PM, Michael Markstaller 
> <mm <at> elabnet.de> wrote:
> 
> 
> 	Hi,
> 	
> 	are there any news on this topic ?
> 	
> 	I'm currently after getting my temperatures available 
> by SNMP and played around a bit with extending net-snmp by 
> using a perl agent and "pass" to a shellscript. Works but 
> still much to do..
> 	Just wanted to ask wether there are any things going on 
> in this direction to share.
> 	
> 	I guess "the right way" would be a subagent for 
> Net-SNMP in C but unfortunately, I have no idea about C-programming..
> 	
> 	regards Michael
> 	
> 	
> --------------------------------------------------------------
> ----------------
> 	This SF.net email is sponsored by:
> 	High Quality Requirements in a Collaborative Environment.
> 	Download a free trial of Rational Requirements Composer Now!
> 	http://p.sf.net/sfu/www-ibm-com
> 	_______________________________________________
> 	Owfs-developers mailing list
> 	Owfs-developers <at> lists.sourceforge.net
> 	https://lists.sourceforge.net/lists/listinfo/owfs-developers
> 	
> 
> 
> 

------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
Gregg C Levine | 8 Apr 02:12 2009
Picon
Picon

Re: USB problems: error reading ret=-110

Hello!
Actually Paul you've already outlined the first part of the problem. Also
it's solution. You need to disable SElinux in your FC9 image. I imagine that
App Armour in the OpenSuSe host is much friendlier towards hardware sensing.

Where as for some silly reason that the program inside FC9 is openly hostile
towards that function.

Since I only run Slackware Linux here, I can only offer advice as I do not
want try and get yet another distribution to work again. I fought a losing
battle with FC3 for a program who eventually refused to work for Skype; and
then as it happens the Skype version on my working Linux box happens to be
the same version, presumably as what the author was running it gets very
confusing.

--
Gregg C Levine hansolofalcon <at> worldnet.att.net
"The Force will be with you always." Obi-Wan Kenobi
 
-----Original Message-----
From: Paul Alfille [mailto:paul.alfille <at> gmail.com] 
Sent: Tuesday, April 07, 2009 2:44 PM
To: owfs-developers <at> lists.sourceforge.net
Subject: Re: [Owfs-developers] USB problems: error reading ret=-110

I've been doing some experimentation (without success, however).

This is Fedora 9 under vmware (OpenSuse host).

If usb is enabled in the configuration, the DS9490 is seen by the guest OS,
but captured by the w1 system. I think that SElinux stops owfs from unloaded
the module, so I had to perform `/sbin/rmmod ds2490` as root.

I then get the same error messages you get, which is 110=ETIMEOUT in
usb_interrupt_read.

I tried increasing the timeout (figuring that the host-to-guest process was
slow) either in the code, or under /settings/timeout/usb with no success.

So the remaining piece is the Damn Small Linux working. I'm not sure how to
approach this problem.

Paul Alfille
On Sun, Mar 15, 2009 at 3:47 PM, Paul Alfille <paul.alfille <at> gmail.com>
wrote:
On Sun, Mar 15, 2009 at 4:58 AM, Patrik Jansson <gein <at> knivby.nu> wrote:
Hmm, okay.
I forgot to tell. The owfs live cd works great though! Isn't that kind of
strange if it's libusb?

-Patrik

That's interesting. The live cd uses a 2.4 kernel and an older version of
owfs, but at least it is possible.

Paul

------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
Paul Alfille | 8 Apr 02:39 2009
Picon

Re: OWFS & SNMP

On Tue, Apr 7, 2009 at 8:09 PM, Michael Markstaller <mm <at> elabnet.de> wrote:
Paul, I'll have a look on this.

I guess in contrast to C-programming I have some understanding of SNMP, working with it for many years now. Its without question something strange ;) But IMHO also, once understood very practical, scalable and good; owfs is rather predestinated for it getting and settings data from/to sensors..

Although it's from a copy'n'paste scripting perspective guy like I am no real big issue to realize this working but very inefficient there is IMHO a much better way. Net-snmp is very widely used today (at least in the scope of snmp-addictives)

Net::SNMP would be a fine approach to this program. Coupling it with owperl or OWNet would be a fast way to accomplish snmp support. In fact, we could later decide if a C implementation is even needed. The perl program could be considered a prototyping step.
 

Let me put together a reasonable presentation of the owfs-data during the next days. I could also take care of the MIB-part if needed.

I'd like to use the same naming scheme as the rest of OWFS, as much as possible. That's part of the power of OWFS.
 
If this will get anything further it might make sense to register an enterprise number for owfs, so that this stuff could be located somewhere meaningful, which is IMHO the place where it should be: (http://pen.iana.org/pen/PenApplication.page) it's AFAIK still free.

Submitted.
 
Although I could live with a "limited hack to just do it", I'd be happy to contribute as far as possible.
While playing around further today I already ran into the first problem with floats in the external scripting only being possible by some obscure opaque_xxx - or as integer divided by 10/100/1000 (which was and is braindead, I always wondered until the readings today, why most of the things I know present a temperature as int=float*100 or as string..)

We use floats for temperatures, humidity, voltages, current, and pressure.
 

But as far as I can see the C-API and docs for (agentX-)Plugins is quite comprehensive and well documented now.

The presentation is in this special case where we have not only a few values most likely the biggest thing to consider, owfs is very predestinated and structured for that already. But with a general approach there are a few more things to be considered like I/Os (what I haven't), I'll think about how to present this, I guess I've seen at least enough bad implementations to say this should take more than tonight ;)

regards Michael

> -----Original Message-----
> From: Paul Alfille [mailto:paul.alfille <at> gmail.com]
> Sent: Wednesday, April 08, 2009 12:38 AM
> To: owfs-developers <at> lists.sourceforge.net
> Subject: Re: [Owfs-developers] OWFS & SNMP
>
>  I can program in C, but SNMP seems rather forbidding.
> Specifically, how the readings would be presented.
>
> I found this example from ora-ltd:
> http://www.ora-ltd.com/microweb/mib.html (The MIB is
> http://www.ora-ltd.com/microweb/MTECH-DSTEMP-MIB.mib)
>
> I assume we would used the owfs names (i.e. temperature,
> type, id, address) for the lowest level data.
>
> So can you explain more of how this should work?
>
> Paul Alfille
 
------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Owfs-developers mailing list
Owfs-developers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers
Paul Alfille | 9 Apr 04:23 2009
Picon

Re: USB problems: error reading ret=-110

On Tue, Apr 7, 2009 at 8:12 PM, Gregg C Levine <hansolofalcon <at> worldnet.att.net> wrote:
Hello!
Actually Paul you've already outlined the first part of the problem. Also
it's solution. You need to disable SElinux in your FC9 image. I imagine that
App Armour in the OpenSuSe host is much friendlier towards hardware sensing.

Where as for some silly reason that the program inside FC9 is openly hostile
towards that function.

Since I only run Slackware Linux here, I can only offer advice as I do not
want try and get yet another distribution to work again. I fought a losing
battle with FC3 for a program who eventually refused to work for Skype; and
then as it happens the Skype version on my working Linux box happens to be
the same version, presumably as what the author was running it gets very
confusing.


Well, I just tried Ubuntu 9 as a guest OS with the same results -- USB timeout.

Paul Alfille
------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Owfs-developers mailing list
Owfs-developers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Gmane