Re: [Owfs-developers] My OWFS driven website update (Aquarium)

2008-04-05 Thread Dag Erlandsson
My glitches are that when reading temperature from ds18s20 I get 85 as temp. I use parasitic power. This indicates that there wasn't any fault when reading, as it reads out the 85 that is the same as reset value. this might show that the 1wire bus is held low to long time when there is load on the

[Owfs-developers] owcapi: return-value of OW_init?

2008-04-05 Thread Sven Geggus
Hello, OW_init does not seem to return a non-zero value if no owserser is running on a given port! Is this the intended behaviour? Try this: #include stdio.h #include owcapi.h int main() { int ret; ret=OW_init(localhost:12345); printf(ret: %d\n,ret); } I would expect to get a non-zero

Re: [Owfs-developers] owfs on openwrt

2008-04-05 Thread Paul Alfille
If you're asking how to ping the DS2480B, that's what OWFS does in the startup sequence to test if its a DS2480B or passive adapter. owhttpd --foreground --error_level=9 -d /dev/ttyS1 -p 3001 will show that attempt. The code is from the datasheet and also can be seen in the public domain kit

Re: [Owfs-developers] owcapi: return-value of OW_init?

2008-04-05 Thread Paul Alfille
Yes. There is no hello sequence with owserver. Your program will wait until owserver is available. Clearly waiting for data from owserver will time out. Think of init more like starting a web browser. This way, you can start owcapi with series of adapters listed (serial, usb, owserver) and the