Re: [Owfs-developers] owfs and locking an external 1-wire bus

2011-03-18 Thread Paul Alfille
So basically you want to send a special "lock" and "unlock" messages to your adapter? I guess there could be a stub locking routine for each adapter. I'd love to see some patches. Etherweather may not be the best example implementation to use. It was written by the etherweather creator, who seems

[Owfs-developers] Quick detection of 8 channel IO input changes?

2011-03-18 Thread Marc MERLIN
I have this board: http://owfs.org/index.php?page=8-channel-i-o I know how to read the I/O status from it, but I was wondering what's the best way to get immediately notified of an input bit flip? Do I need to read the uncached tree every second and spam the 1-wire bus (probably preventing readin

Re: [Owfs-developers] owfs and locking an external 1-wire bus

2011-03-18 Thread Chris Boot
Paul, Would you be receptive to patches to add a mechanism that other drivers can use too? I could add lock/unlock functions to interface_routines in ow_bus_routines.h that the code in ow_buslock.c could call into. That was HA7Net can use it if it wants to in future. I'm not sure what you mean

Re: [Owfs-developers] owfs and locking an external 1-wire bus

2011-03-18 Thread Paul Alfille
I would simply add your code to module/owlib/src/c/ow_buslock.c in functions BUS-lock_in and BUS_unlock_in. If there are other 1-wire buses you should add some text to make sure you only lock when the correct bus is referenced. I don't know how you plan on communicating with the other process. Per

Re: [Owfs-developers] spaces before temperature

2011-03-18 Thread Roberto Spadim
maybe in future a json to owhttp could be nice... a ajax just with owhttp and a javascript html page 2011/3/18 Roberto Spadim : > i think not, it's just a doubt why fixed string and not variable > length string, in my opnion > at script/language side if you want use it, you must convert to double

Re: [Owfs-developers] spaces before temperature

2011-03-18 Thread Roberto Spadim
i think not, it's just a doubt why fixed string and not variable length string, in my opnion at script/language side if you want use it, you must convert to double or decimal or integer... i don't see problems with variable or fixed length, just trim it before atoi() or atol() atoXX (double)($var)

Re: [Owfs-developers] spaces before temperature

2011-03-18 Thread Paul Alfille
Right, it's a fixed 12 character field, I think. Does it create problems? On Fri, Mar 18, 2011 at 9:36 AM, Roberto Spadim wrote: > printf format? maybe a 'trim' like could help > > 2011/3/18 p4trykx : >> Hello >> I was wondering why there are spaces before the reading in temperature >> file. >> I

Re: [Owfs-developers] spaces before temperature

2011-03-18 Thread Roberto Spadim
printf format? maybe a 'trim' like could help 2011/3/18 p4trykx : > Hello > I was wondering why there are spaces before the reading in temperature > file. > I know it's easy to delete them bash script. > Here are some readings. I added _ to show where it starts and ends. > _        4.25_ > _      

[Owfs-developers] spaces before temperature

2011-03-18 Thread p4trykx
Hello I was wondering why there are spaces before the reading in temperature file. I know it's easy to delete them bash script. Here are some readings. I added _ to show where it starts and ends. _4.25_ _20.5_ -- p4trykx -

[Owfs-developers] owfs and locking an external 1-wire bus

2011-03-18 Thread Chris Boot
Hi folks, I'm currently building a microcontroller-based device which has a 1-wire bus and ethernet. This is intended to be a self-contained device for home automation or industrial control and will query 1-wire devices attached to it to gather temperature data and suchlike. Internally I use a

Re: [Owfs-developers] php load_php_OW.php error

2011-03-18 Thread Roberto Spadim
send your code 2011/3/18 William Brown : > I installed Ubuntu 10.10 and owfs 2.8;7 from scratch. Now my web page > doesn't work unless I remove the line > > require (load_php_OW.php) > > Then the page works ok without any 1wire information. > > I also got avahi and bonjour modules missing messages

Re: [Owfs-developers] System Monitor app

2011-03-18 Thread Roberto Spadim
dl() ? php? 2011/3/18 William Brown : > Changed view in system monitor to "all processes" and there they are. I > just wanted an easy way to see if they are running or not. It's related > to the problem I'm having with dl(). > > On 03/17/2011 06:33 AM, Paul Alfille wrote: >> I just tried (in Ubunt

[Owfs-developers] php load_php_OW.php error

2011-03-18 Thread William Brown
I installed Ubuntu 10.10 and owfs 2.8;7 from scratch. Now my web page doesn't work unless I remove the line require (load_php_OW.php) Then the page works ok without any 1wire information. I also got avahi and bonjour modules missing messages. Mar 17 21:12:38 Irry OWFS[28024]: CONNECT: ow_avahi