"JK" == Jan Kandziora wrote:

 JK> Serg (and anybody else who may it concern),
 JK> I got some problems with owtcl (owfs-2.1p0RC-1). I connected a single 
DS2406 
 JK> to an 1-Wire/USB-adapter and used owtcl to control a single LED, hooked up 
on 
 JK> its PIO pin. Unfortunately, it works *a little bit*, so I think I found a 
 JK> serious bug in owtcl or owlib.

 JK> Please teak a look into the test code below. The first 10 to 70 (varies) 
 JK> cycles of the loop the LED blinks but I get an

 JK> unknown error 4294967295

 JK> After about 2..5s (varies), I get an

 JK> invalid argument

 JK> And the DS2406 output does not change any more. Any more info needed?

 JK> Kind regards

 JK> Jan

More than three hours worked yours test.tcl - mistakes are not present.

Probably in my case there were problems with early versions of a kernel (2.6.8).
Probably it were hardware problems - now those two computers are not
accessible to me to check...

The message "invalid argument" could arise on fault owtcl but only when the
second argument at:: OW:: put is not specified (fixed).

One more mistake: check of returned value of function FS_write (error if
not zero). This function returns positive value in case of success, but in
swig/ow.i is written:

int put( const char * path, const char * value ) {
    ...
    if ( FS_write(path,value,s,0) ) return 0 ;
    return 1 ;
}

Fixed in owtcl only!

-- 
        Serg (http://oskin.ru/)
~
~
:q!


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to