On Saturday 11 June 2005 04:53 pm, Jan Kandziora wrote:
> Serg (and anybody else who may it concern),
>
> I got some problems with owtcl (owfs-2.1p0RC-1). I connected a single
> DS2406 to an 1-Wire/USB-adapter and used owtcl to control a single LED,
> hooked up on its PIO pin. Unfortunately, it works *a little bit*, so I
> think I found a serious bug in owtcl or owlib.
>
> Please teak a look into the test code below. The first 10 to 70 (varies)
> cycles of the loop the LED blinks but I get an
>
> unknown error 4294967295
>
> After about 2..5s (varies), I get an
>
> invalid argument
>
> And the DS2406 output does not change any more. Any more info needed?
>
> Kind regards
>
> Jan
Works fine from Shell scripts.
DS9490 USB adapter.
Newest code from CVS
A few chips on board, and a 3-pin 2406
Ran the script:
while : ; do \
echo "1" > /mnt/1wire/12.C4DF1F000000/PIO.A \
sleep .2 \
echo "0" > /mnt/1wire/12.C4DF1F000000/PIO.A \
sleep .3 \
done
Which has been blinking very nicely for a while, now.
Next removed the pauses, since you don't pause. Still works fine (faster).
Next, tried perl:
perl -MOW -e "my \$p=qq[/12.C4DF1F000000/PIO.A];OW::init(qq[u]);while(1)
{ OW::put(\$p,1);OW::put(\$p,0)}"
Blinks even faster.
All I can conclude is that:
1. owtcl has a problem
2. Distribution differences (SuSE 9.2 here)
3. Slightly newer version here.
4. Hardware problem.
I'm voting for 1.
Why not try the scripts I list above (owfs was invoked for the shell script
with "/opt/owfs/bin/owfs -u /mnt/1wire" ) to see if we can further figure
this out.
(Of course substitute your DS2406's serial number).
Paul
-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers