That's not good.

I did some tests:
On owfs and bash script
script is:

time for j in 1 2 3 4 5 6 7 8 9 10 ; do for i in 1 2 3 4 5 6 7 8 9 10 ; do
ls /mnt/1wire/uncached ; done ; done

i.e. 100 loops of uncached directory

Link (emulation mode):
No devices: 1.5sec elapsed
1 Device (Thermocron DS1921): 10 sec

DS9097U
1 device (internal DS2502): 10 sec
2 devices (DS1921 + internal DS2502): 16 sec

DS9094R:
1 device (internal DS2401): 3 sec
2 devices ( DS1921 + internal DS2401) 4.9 sec

So there is considerable variation among adapters. Can you do the timing for
0 and 1 device? I wonder if no devices is triggering an error check and
timeout.

If we can't resolve it this way, we may have to add a special "file" that
checks for ANY device on the bus rapidly.

Paul Alfille

On 11/18/06, Jan Kandziora <[EMAIL PROTECTED]> wrote:

Hi there,

in my application I have some Ibutton locks I need to scan. The locks are
connected through a DS2482-800 onewire host.

I expected scanning a single key on an otherwise empty bus (reading
bus.0/uncached) would require a single reset pulse, presence pulse and
then
about 200 onewire bits. I suspected that operation is done in about
10..20ms.
In fact, scanning takes about a second, which makes me wonder where I'm
wrong.


Any idea how to make scanning faster -- or, even better, to get rid of
scanning? Maybe there's a µC driven gadget out there which contineously
scans
a single lock and reports the lock's state as its onewire data instead of
an
address.

Kind regards

        Jan
--
Die beste Methode, Windows zu beschleunigen, arbeitet mit 9,81 m/s².

-------------------------------------------------------------------------
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

-------------------------------------------------------------------------
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

Reply via email to