the problem isn´t owhttp 20 connections the problem is usb/serial to onewire converter allow 20 concurrent conversions check if ds2408 and ds2406 allow concurrent or simultaneous conversions if yes, use it start conversion, read all and go to next loop tcp and filesystem isn´t the 'heaviest' problem the onewire bus and ow devices time is
Em 26 de março de 2012 15:19, Ivan Lisenkov <[email protected]> escreveu: > Greetings to all, > > I am implementing a system which need to poll sensors (mainly DS2406 and > DS2408) nearly every second. Of course I use uncached values of sensors to > get the most recent data. I have about 15-20 sensors to poll. > > I see three options: > > First: > loop: > openfile("12.XXXXXXXX/latch.A"); > readvalue; > closefile; > end loop. > > The most obvious one, but open/close file is rather costly operation. > > Second: > openfile("12.XXXXXXXX/latch.A"); > loop: > readvalue; > goto_first_line; > end loop; > closefile; > > This is better, but is there some chance, that value will be cached > somewhere inside OS? > > Third: > give up on owfs and use owhttpd and make tcp connections to read files. > > I think this is a heaviest one, but crossplatform, so can be used on > windows. Can owhttpd have about 20 concurrent connections in a second? > > > What strategy to choose? Thank you for any help in advance. > > > Best Regards, > > Ivan, PhD > > > > ------------------------------------------------------------------------------ > This SF email is sponsosred by: > Try Windows Azure free for 90 days Click Here > http://p.sf.net/sfu/sfd2d-msazure > _______________________________________________ > Owfs-developers mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/owfs-developers > -- Roberto Spadim Spadim Technology / SPAEmpresarial ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ Owfs-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/owfs-developers
