Re: [Owfs-developers] OWNet perl write/read and a lost byte (RESOLVED)

2016-10-16 Thread Henry Pootel
Hello. The problem was in an old apache2. :-( My CGI scripts is working very good now, after apache2 update! Thank you very much -- == Henry Pootel == -- Check out the vibrant tech community on one of the world's

Re: [Owfs-developers] OWNet perl write/read and a lost byte (RESOLVED)

2016-10-16 Thread Henry Pootel
Hello again. I've found a strange situation. I'll try to resolve it. While, what you say about this. Do you remember "my lost first byte" of owwrite? I use CGI perl module and have a simple script: cat index.pl #!/usr/bin/perl use CGI; use OWNet; my $q = CGI->new; print $q->header( -Content-typ

Re: [Owfs-developers] OWNet perl write/read and a lost byte (RESOLVED)

2016-10-16 Thread Matthias Urlichs
On 16.10.2016 13:41, Jan Kandziora wrote: > Am 16.10.2016 um 11:27 schrieb Henry Pootel: >> ;-) But we are can't send binary file by cli. >> > Then we have to change that. I change owwrite so it reads stdin instead > of complaining about a missing value argument. +1 -- -- Matthias Urlichs -

Re: [Owfs-developers] OWNet perl write/read and a lost byte (RESOLVED)

2016-10-16 Thread Jan Kandziora
Am 16.10.2016 um 11:27 schrieb Henry Pootel: > > ;-) But we are can't send binary file by cli. > Then we have to change that. I change owwrite so it reads stdin instead of complaining about a missing value argument. Kind regards Jan ---

Re: [Owfs-developers] OWNet perl write/read and a lost byte (RESOLVED)

2016-10-16 Thread Henry Pootel
Dear friends! I'm sorry, I distract you from your work... I've made a mistake, I'll find it by own. So, I've wrote a simple script and test my situation. root@CONSTANT:~> cat test.pl #!/usr/bin/perl use OWNet; use IO::Compress::Gzip qw(gzip $GzipError) ; use IO::Uncompress::Gunzip qw(gunzip $Gun

Re: [Owfs-developers] OWNet perl write/read and a lost byte

2016-10-15 Thread Matthias Urlichs
On 16.10.2016 01:18, Stefano Miccoli wrote: > First, owwrite seems to have problems with nul characters in his arguments *All* programs have problems with NUL characters in their arguments. You don't need confirmation for that, that's basic C/UNIX. To fix that, you need a flag for owwrite that rea

Re: [Owfs-developers] OWNet perl write/read and a lost byte

2016-10-15 Thread Stefano Miccoli
> On 15 Oct 2016, at 15:23, Henry Pootel wrote: > > root@CONSTANT:~> owwrite -s 172.19.19.10 /relay_setting/RELAY_SET `cat ee` I see a couple of problems here. First, owwrite seems to have problems with nul characters in his arguments, but please wait for confirmation by Jan. Second, assum

Re: [Owfs-developers] OWNet perl write/read and a lost byte

2016-10-15 Thread Jan Kandziora
Am 15.10.2016 um 19:35 schrieb Henry Pootel: > > Of course, I can try owwrite an ascii data without compression. > But, it's a workaround of the binary write. It's not a decision. > We had those 0x00 problems at various occasions. Let me look into it, maybe it's easily fixable. Kind regards

Re: [Owfs-developers] OWNet perl write/read and a lost byte

2016-10-15 Thread Henry Pootel
Thank you, Matthias, for your opinion. I see you, but... 15.10.2016 17:43, Matthias Urlichs wrote: > On 15.10.2016 15:23, Henry Pootel wrote: >> Some bytes are lost. (00 - this bytes are lost!!! May be something >> else..) > Null bytes are end-of-string indicators in C. Apparently something > igno

Re: [Owfs-developers] OWNet perl write/read and a lost byte

2016-10-15 Thread Jan Kandziora
Am 15.10.2016 um 17:43 schrieb Matthias Urlichs: > On 15.10.2016 15:23, Henry Pootel wrote: >> Some bytes are lost. (00 - this bytes are lost!!! May be something >> else..) > Null bytes are end-of-string indicators in C. Apparently something > ignores the binary data length. > > May I ask what you

Re: [Owfs-developers] OWNet perl write/read and a lost byte

2016-10-15 Thread Matthias Urlichs
On 15.10.2016 15:23, Henry Pootel wrote: > Some bytes are lost. (00 - this bytes are lost!!! May be something > else..) Null bytes are end-of-string indicators in C. Apparently something ignores the binary data length. May I ask what your use case for sending binary data to your 1wire server via O

Re: [Owfs-developers] OWNet perl write/read and a lost byte

2016-10-15 Thread Henry Pootel
Hello dear friends. New tests! root@CONSTANT:~> echo -n '1,NO,0,OFF,0,0,,#2,NO,0,OFF,0,0,,#3,NO,0,OFF,0,0,,#4,NO,0,OFF,0,0,,#5,NO,0,OFF,0,0,,#6,NO,0,OFF,0,0,,#7,NO,0,OFF,0,0,,#8,NO,0,OFF,0,0,,#'| gzip -c > ee root@CONSTANT:~> cat ee | hexdump -C 1f 8b 08 00 03 2a 02 58 00 03 33 d

[Owfs-developers] OWNet perl write/read and a lost byte

2016-10-14 Thread Henry Pootel
Hello. Using owfs-3.1p4. I need to write binary data to an external sensor. I do this settings: owfs.conf ... SCRIPT: "RELAY_SET", "constant_family", b1024, 1, u, /opt/_read, /opt/_write, '' ... The main is b1024. Is it right? And write from a client by perl script: OWNet::write( "$dev_ip:4

Re: [Owfs-developers] ownet / owserver null terminated strings in payload.

2014-04-12 Thread Paul Alfille
>3) Server version > >I was not able to find any way to determine the owserver version from a client: couldn't be useful to add a >'/settings/version' node to owfs? Good idea to have the version discoverable! I was going to put it in /system/configuration/version but am certainly open to alternat

Re: [Owfs-developers] ownet / owserver null terminated strings in payload.

2014-04-09 Thread Paul Alfille
Thanks Stefano, You are right, the code checks for the null-terminated string. In theory this shouldn't be needed, the length of the data and the path are also sent. I just have to make sure that all the ownet clients are rigorous about filling out those fields correctly. Paul On Sat, Apr 5, 2

[Owfs-developers] ownet / owserver null terminated strings in payload.

2014-04-05 Thread Stefano Miccoli
Hi all, it's a long time that I'm using owfs/owserver to read a network of 1-wire sensors in a server room, with great satisfaction for it's stability and ease of use. My main scripting language is python, and somehow I do not like the official python packages, so I decided to write my own imp

Re: [Owfs-developers] ownet and I/O relay board

2011-06-23 Thread William Brown
It would be better to make it like perl and return a string, ["data_php"]=> the same as ["data"]=> "0,1,0,0,0,0,0,0" False doesn't make sense here. On 05/17/2011 05:52 AM, Roberto Spadim wrote: > hum, i must re-read php.ownet code and check if exist some problem > with array convertion, in this

Re: [Owfs-developers] ownet and I/O relay board

2011-05-20 Thread William Brown
Please check PIO.BYTE also, It always returns false unless PIO.0 alone is true and no other PIO is true. It should return a value or 0 thru 256. pio.0 only on $pio = $ow->get("/29.9D6D0400/PIO.BYTE",OWNET_MSG_READ,true) echo $pio >Array echo $pio[data] > 1 var dump $pio >array(9) { [0]=> int

Re: [Owfs-developers] ownet and I/O relay board

2011-05-17 Thread Roberto Spadim
hum, i must re-read php.ownet code and check if exist some problem with array convertion, in this case ownet will convert all i/o as a array in this case: > array(9) { [0]=> int(0) [1]=> int(15) [2]=> int(15) [3]=> int(258) [4]=> > int(15) [5]=> int(0) ["data"]=> string(15) "0,1,0,0,0,0,0,0" > ["d

[Owfs-developers] ownet and I/O relay board

2011-05-17 Thread William Brown
Found these situations with the DS2408. and DS2450 1 - get/read PIO.ALL gives a false if pio.0 is off, Only if pio.0 on gives true. 2 - The result returned is not the actual PIO,ALL string but an array with the string, Is this the correct behavior? 3 - When get is True returns a 1 but false retur

Re: [Owfs-developers] ownet php change, please update source at cvs

2011-01-18 Thread Roberto Spadim
yes still "{" 2011/1/18 Paul Alfille : > Done. > > I assume the open brace "{" should still follow? > > Paul > > -- > Protect Your Site and Customers from Malware Attacks > Learn about various malware tactics and how to av

Re: [Owfs-developers] ownet php change, please update source at cvs

2011-01-18 Thread Paul Alfille
Done. I assume the open brace "{" should still follow? Paul -- Protect Your Site and Customers from Malware Attacks Learn about various malware tactics and how to avoid them. Understand malware threats, the impact they

[Owfs-developers] ownet php change, please update source at cvs

2011-01-18 Thread Roberto Spadim
at line 104 change this line: function OWNet($host='',$timeout=5,$use_swig_dir=true) with this line: function __construct($host='',$timeout=5,$use_swig_dir=true) why? class construction have changed on new php versions -- Roberto Spadim Spadim Technology / SPAEmpresarial

Re: [Owfs-developers] ownet perl write problem

2010-10-18 Thread ziuras
I resolve this problem: Manual instal OWNet-1.20 from cpan and now owserver->write("/27.C00Axxx/PIO.0", 1) is working "ziuras" wrote in message news:i9h182$sj...@dough.gmane.org... > My example is not working. > can anybody help me? > > owserver version: 2.8p2 > libow version:

[Owfs-developers] ownet perl write problem

2010-10-18 Thread ziuras
My example is not working. can anybody help me? owserver version: 2.8p2 libow version: 2.8p2 from shell: -- echo 0 > /srv/owfs/29.C2700A00/PIO.BYTE cat /srv/owfs/29.C2700A00/PIO.BYTE # its ok, value (0) --- from perl script: use OWNet; my $serve

Re: [Owfs-developers] ownet and python

2010-09-13 Thread Joshua J. Kugler
On Monday 13 September 2010, Ilya Pravdivtsev elucidated thus: > After more testing I found a mistake. :( The right patch is attached. > Sorry Paul. > -if name in self._attrs: > +if '_attrs' in self.__dict__ and name in self._attrs: > #print 'Sensor.__getattr__(%s)' %

Re: [Owfs-developers] ownet and python

2010-09-13 Thread Ilya Pravdivtsev
After more testing I found a mistake. :( The right patch is attached. Sorry Paul. regards, Ilya. On 13.09.2010 18:52, Paul Alfille wrote: > Thank you. > > Applied. Will appear in 2.8p3 > > Paul Alfille > > On Sun, Sep 12, 2010 at 8:24 AM, Ilya Pravdivtsev > wrote

Re: [Owfs-developers] ownet and python

2010-09-13 Thread Paul Alfille
Thank you. Applied. Will appear in 2.8p3 Paul Alfille On Sun, Sep 12, 2010 at 8:24 AM, Ilya Pravdivtsev wrote: > Hi, > > The following hack seems to solve the problem. Change: > @@ -232,7 +232,10 @@ > val = struct.unpack('ii', msg) > version = socket.ntohl(val[

Re: [Owfs-developers] ownet and python

2010-09-12 Thread Ilya Pravdivtsev
Hi, The following hack seems to solve the problem. Change: @@ -232,7 +232,10 @@ val = struct.unpack('ii', msg) version = socket.ntohl(val[0]) payload_len = socket.ntohl(val[1]) -ret_value= socket.ntohl(val[2]) +try: +ret

[Owfs-developers] ownet and python

2010-09-08 Thread mknx
Hi, I get an exception if I try to connect to the owserver with ownet. # lsb_release -d Description:Ubuntu 10.04.1 LTS # uname -a Linux mknx 2.6.32-24-server #41-Ubuntu SMP Thu Aug 19 02:47:08 UTC 2010 x86_64 GNU/Linux # python -V Python 2.6.5 # /opt/owfs/bin/owserver -V /opt/owfs/bin/ows

Re: [Owfs-developers] OWNet write error

2010-06-17 Thread Pascal Brugier
Hi Paul, On Wed, 16 Jun 2010 10:09:32 -0400, Paul Alfille wrote: > die "No owserver available\n" if length($ow->dir("/settings"))==0 ; It works and I can use "$!", thank you. Regards, Pascal. -- ThinkGeek and WIRED's

Re: [Owfs-developers] OWNet write error

2010-06-16 Thread Paul Alfille
my $ow->OWNet->new("4304") ; # Test owserver response -- "/settings" always available and requires no 1-wire bus activity die "No owserver available\n" if length($ow->dir("/settings"))==0 ; Tested and seems to work. I could make this activity hidden within the OWNet code, but it's what would be r

Re: [Owfs-developers] OWNet write error

2010-06-16 Thread Pascal Brugier
On Wed, 16 Jun 2010 07:16:16 -0400, Paul Alfille wrote: > Can you tell me what behavior you would like? I'll be glad to implement. Well If I can use somthing like : my $owserver = $self->{_owserver} = OWNet->new($server) or die "connection error: $!\n"; it will be very interesting. I hope i

Re: [Owfs-developers] OWNet write error

2010-06-16 Thread Paul Alfille
Can you tell me what behavior you would like? I'll be glad to implement. Note that the owserver protocol doesn't really have a "valid connection" mode, so OWNet->new isn't really generating any network activity. Couldn't you just try to get a directory listing first and see if any of the expected

Re: [Owfs-developers] OWNet write error

2010-06-16 Thread Pascal Brugier
Hello, On Mon, 14 Jun 2010 21:58:44 -0400, Paul Alfille wrote: > Found the error. > Fixed the write problem That's ok, it works fine :). I didn't test other addons. I've a question about the connection at owserver->new As I said I try to make an xpl-owserver instead of xpl-owfs so, if I use

Re: [Owfs-developers] OWNet write error

2010-06-15 Thread Pascal Brugier
Hi, On Mon, 14 Jun 2010 21:58:44 -0400, Paul Alfille wrote: > Found the error. > > Just uploaded OWNet.pm version 1.20 to CPAN (and it's in the CVS and will > be > included in the next release). > > Fixed the write problem > Added optional offset to write > Added optional size and offset to rea

Re: [Owfs-developers] OWNet write error

2010-06-14 Thread Paul Alfille
Found the error. Just uploaded OWNet.pm version 1.20 to CPAN (and it's in the CVS and will be included in the next release). Fixed the write problem Added optional offset to write Added optional size and offset to read Added "-slash" to more easily tell which directory elements are themselves dir

Re: [Owfs-developers] OWNet write error

2010-06-06 Thread Pascal Brugier
> Can you describe the problem in a little more detail? Or help me identify > the original report? Off course :) The subject was " Problem with OWNet::write" Archives messages are available here : http://www.mail-archive.com/owfs-developers@lists.sourceforge.net/msg05198.html In fact I've got

Re: [Owfs-developers] OWNet write error

2010-06-06 Thread Paul Alfille
Can you describe the problem in a little more detail? Or help me identify the original report? Thanks, Paul Alfille On Sun, Jun 6, 2010 at 10:56 AM, Pascal Brugier wrote: > Hello, > > I found a message about this problem in the mailing list archives. > I've tried to made an xpl-perl module using

[Owfs-developers] OWNet write error

2010-06-06 Thread Pascal Brugier
Hello, I found a message about this problem in the mailing list archives. I've tried to made an xpl-perl module using owserver instead of owfs with the OWNet perl module. I've found the same problem about writing to a sensor and the return error code when intialising the connexion if I use a bad

[Owfs-developers] ownet / python issue

2009-10-31 Thread Michael Weber
Recently I had problems with a temperature sensor. It used to work fine, and all of the sudden it stopped working. Using the owread program worked however. I went into the code and noticed that in the ownet/connection.read routine, a value of "None" is returned whenever a ping is received. That is

Re: [Owfs-developers] ownet default flags and java api

2009-04-21 Thread Paul Alfille
Well, I got it from module/owlib/src/include/parsedname.h: /* end Parsedname - */ #define CACHE_MASK ( (UINT) 0x0001 ) #define CACHE_BIT 0 #define SHOULD_RETURN_BUS_LIST( (UINT) 0x0002 ) #define PERSISTENT_MASK( (UINT) 0x0004 ) #define PERSISTENT_B

Re: [Owfs-developers] ownet default flags and java api

2009-04-20 Thread Patrik Jansson
Paul, Thank you for the clarifications. So 256 should always be set no matter what, right? Then + 2 for bus list, + 4 for Persistence and +8 for alias? Shouldn't these be described on the flag word page? Well persistence is but not that 256 should be set and what 2 and 8 are for? Don't get me wron

Re: [Owfs-developers] ownet default flags and java api

2009-04-20 Thread Paul Alfille
Hi Patrik, Thank you for your efforts. Actually, the bits should be: 2 return bus list, (so the uncached, settings, statistics entries are created by owserver, since ownet programs don't actually have the smarts to add those entries). 4 Persistance (if you wish, certainly a performance enhancemen

[Owfs-developers] ownet default flags and java api

2009-04-20 Thread Patrik Jansson
Hi, I've been working on a Java interface for ownet for some time now. I recently found out that there actually exists such an interface already. And with all due respect, I feel the code is a bit messy having everything in just one class file. Therefore I will continue my work on the Java interfa

[Owfs-developers] ownet perl / Status of debian in owfs

2009-02-26 Thread Michael Weber
Hi everybody, Wasn't there a debian build directory in owfs one of these days? Would it be possible to merge in smurf's ubuntu/debian efforts (which probably just means adding the debian directory)? And: If I build as is (at least my debian) wants to install perl-modules to /usr/lib/perl/5.10 (I

Re: [Owfs-developers] OWNET make error

2009-02-19 Thread William Brown
Just received this message, where do they go?. Thanks, wish I had it a month ago. Tim Sailer wrote: > On Fri, January 16, 2009 15:31, William Brown wrote: > >> I use the defaults and get the errors so I need to disable OWNET to >> complete the make. Ubuntu 8.10 kernel 2.6.27-9. I don't remembe

Re: [Owfs-developers] OWNET make error

2009-02-16 Thread Tim Sailer
On Fri, January 16, 2009 15:31, William Brown wrote: > I use the defaults and get the errors so I need to disable OWNET to > complete the make. Ubuntu 8.10 kernel 2.6.27-9. I don't remember having > this problem in Ubunt 7.10. If you like I can send the output from > configure and make. It's sti

Re: [Owfs-developers] OWNET make error

2009-01-21 Thread William Brown
It's there. Needed to add dev packages for TCL and Python, plus Python itself. Errors gone now. Tim Sailer wrote: > William Brown wrote: > >> When I try to make owfs 2.7p4 or p12 with configure --enable-OWNET I get >> the error below, how do I fix this (right now I configure --disable-OWNET

Re: [Owfs-developers] OWNET make error

2009-01-20 Thread Tim Sailer
William Brown wrote: > When I try to make owfs 2.7p4 or p12 with configure --enable-OWNET I get > the error below, how do I fix this (right now I configure --disable-OWNET)? > Gotta copy your /usr/bin/libtool into your owfs dir Tim

Re: [Owfs-developers] OWNET make error

2009-01-16 Thread William Brown
I use the defaults and get the errors so I need to disable OWNET to complete the make. Ubuntu 8.10 kernel 2.6.27-9. I don't remember having this problem in Ubunt 7.10. If you like I can send the output from configure and make. Paul Alfille wrote: > If you specify nothing, do you get this error

Re: [Owfs-developers] OWNET make error

2009-01-16 Thread Paul Alfille
If you specify nothing, do you get this error? (I don't) enable ownet should be the default. Perhaps you can tell us your platform and OS? Paul On Fri, Jan 16, 2009 at 3:48 AM, William Brown wrote: > When I try to make owfs 2.7p4 or p12 with configure --enable-OWNET I get > the error below, ho

[Owfs-developers] OWNET make error

2009-01-16 Thread William Brown
When I try to make owfs 2.7p4 or p12 with configure --enable-OWNET I get the error below, how do I fix this (right now I configure --disable-OWNET)? make[5]: Entering directory `/home/wgb/owfs12/module/ownet/c/src/c' /bin/bash ../../../../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H

Re: [Owfs-developers] ownet/python crashing sporadically in connection.py

2007-06-29 Thread Paul Alfille
Hi Jerry, We certainly could use option negotiation (although even that would require some backwards compatibility.) We also have had version numbers included in the owserver protocol since the start -- although there hasn't been a need to progress beyond version 0. We faced this issue thrice b

Re: [Owfs-developers] ownet/python crashing sporadically in connection.py

2007-06-29 Thread Jerry Scharf
Paul Alfille wrote: > Hmm... > > owlib is written in C, and needs a fixed data size (string size) for > floating point output. I arbitrarily used 12 characters and the %g > printf format to be most general. > > Currently type (floating point, integer...) and certainly precision > aren't part of

Re: [Owfs-developers] ownet/python crashing sporadically in connection.py

2007-06-29 Thread Paul Alfille
Hmm... owlib is written in C, and needs a fixed data size (string size) for floating point output. I arbitrarily used 12 characters and the %g printf format to be most general. Currently type (floating point, integer...) and certainly precision aren't part of the ownet messages. If we really wan

Re: [Owfs-developers] ownet/python crashing sporadically in connection.py

2007-06-28 Thread Doug Collinge
It was a simple goof-up, not allowing for the possibility of a negative temperature. Here is a little patch that seems to fix it. It would actually be nice if the owlib returned a decimal point on all temperatures, even those with integer values, and with enough trailing zeroes to indicate the p

Re: [Owfs-developers] ownet/python crashing sporadically in connection.py

2007-06-28 Thread Doug Collinge
nt:* den 28 juni 2007 10:20 > *To:* owfs-developers@lists.sourceforge.net > *Subject:* Re: [Owfs-developers] ownet/python crashing sporadically in > connection.py > > > > I had the same problem, and got that answer: > > > > Yes. There is a simple fix for this in the conn

Re: [Owfs-developers] ownet/python crashing sporadically in connection.py

2007-06-28 Thread Doug Collinge
*Sent:* den 28 juni 2007 10:20 *To:* owfs-developers@lists.sourceforge.net *Subject:* Re: [Owfs-developers] ownet/python crashing sporadically in connection.py I had the same problem, and got that answer: Yes. There is a simple fix for this in the connection.py file which =20 is part of the

Re: [Owfs-developers] ownet/python crashing sporadically in connection.py

2007-06-28 Thread Christian Magnusson
I checked in the changes to the CVS. /Christian From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Weber Sent: den 28 juni 2007 10:20 To: owfs-developers@lists.sourceforge.net Subject: Re: [Owfs-developers] ownet/python crashing sporadically in connection.py I

Re: [Owfs-developers] ownet/python crashing sporadically in connection.py

2007-06-28 Thread Matthias Urlichs
Hi, Michael Weber: > Here's a diff: > Please post context diffs (diff -u) in the future. > # diff connection.py connection.py.org ... and please don't reverse the diff -- the original file should be *first*. -- Matthias Urlichs | {M:U} IT Design @ m-u-it.de | [EMAIL PROTECTED] Disclaim

Re: [Owfs-developers] ownet/python crashing sporadically in connection.py

2007-06-28 Thread Michael Weber
I had the same problem, and got that answer: Yes. There is a simple fix for this in the connection.py file which =20 is part of the module. It should be in your site-python directory tree. Here's a diff: # diff connection.py connection.py.org 57c57 < interact with the ow sensors on any platform

[Owfs-developers] ownet/python crashing sporadically in connection.py

2007-06-27 Thread Doug Collinge
I'm having a problem using the python interface in ownet (from CVS) for reading a few DS18S20 thermometers. A very basic program (shown below) finds all sensors with a "temperature" attribute and then polls them continuously until the crash occurs. Sometimes this takes minutes, sometimes hours,

[Owfs-developers] ownet/pascal

2007-04-15 Thread George M. Zouganelis
Greeting to all, I've just commited the basic version of the ownet/Pascal module to CVS I had no time to test it in a plain linux/fpc environment so be patient or get your hands dirty ;) Comments and corrections/modifications are always welcomed. Unit and console example have been mainly teste

[Owfs-developers] OWNet for VB.Net

2007-04-10 Thread [EMAIL PROTECTED]
I can\'t seem to find OWNet for VB6 or .Net anywhere. Can somebody point my in the right direction? Thanks. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chan

Re: [Owfs-developers] OWNet and remote host

2007-02-15 Thread Tim Sailer
On Thu, February 15, 2007 10:17, Tim Sailer said: > > On Tue, February 13, 2007 12:10, Paul Alfille said: >> It's easier if the code is fixed. Fixed. > > Ah yes! It works! Well, it connects. If I issue: > print $owserver1->read('/uncached/10.A27555000800/temperature'); > > Nothing is returned, how

Re: [Owfs-developers] OWNet and remote host

2007-02-15 Thread Tim Sailer
On Tue, February 13, 2007 12:10, Paul Alfille said: > It's easier if the code is fixed. Fixed. Ah yes! It works! Well, it connects. If I issue: print $owserver1->read('/uncached/10.A27555000800/temperature'); Nothing is returned, however: print $owserver1->read('/10.A27555000800/temperature');

Re: [Owfs-developers] OWNet and remote host

2007-02-13 Thread Tim Sailer
On Tue, February 13, 2007 12:10, Paul Alfille said: > It's easier if the code is fixed. Fixed. Heh. Well, that would make it *real* easy. I'll have to diff the code to see what I missed. Tim -- Tim Sailer Coastal Internet, Inc. www.buoy.com 631-399-2910 ---

Re: [Owfs-developers] OWNet and remote host

2007-02-13 Thread Paul Alfille
It's easier if the code is fixed. Fixed. Paul Alfille On 2/13/07, Tim Sailer <[EMAIL PROTECTED]> wrote: I can not get OWNet to work with anything but localhost, and I'm stumped. Has anyone else gotten this to work? What was the magic incantation? Tim -- Tim Sailer Coastal Internet, Inc. www

[Owfs-developers] OWNet and remote host

2007-02-13 Thread Tim Sailer
I can not get OWNet to work with anything but localhost, and I'm stumped. Has anyone else gotten this to work? What was the magic incantation? Tim -- Tim Sailer Coastal Internet, Inc. www.buoy.com 631-399-2910 - Using Tomc

[Owfs-developers] OWNet

2007-02-10 Thread Tim Sailer
Seems like I keep finding things with OWNet lately. It looks like no matter what you put for a hostname, like my $owserver=OWNet->new('10.0.0.36:4304'); OWNet will only connect to localhost. You can point it at any IP, and as long as you have owserver running on localhost, you are good. I've tak

Re: [Owfs-developers] ownet oddity

2007-02-07 Thread Paul Alfille
Special case added On 2/5/07, Tim Sailer <[EMAIL PROTECTED]> wrote: On Mon, February 5, 2007 0:28, Paul Alfille said: > Well, currently OWNet assumes a bare address is a port number or service > name. Shall I add a special case for "localhost"? Hmm. Maybe. Then, again, it's just my habit to d

Re: [Owfs-developers] ownet oddity

2007-02-04 Thread Tim Sailer
On Mon, February 5, 2007 0:28, Paul Alfille said: > Well, currently OWNet assumes a bare address is a port number or service > name. Shall I add a special case for "localhost"? Hmm. Maybe. Then, again, it's just my habit to develop on localhost where no one can mess with my stuff, and then move t

Re: [Owfs-developers] ownet oddity

2007-02-04 Thread Paul Alfille
Well, currently OWNet assumes a bare address is a port number or service name. Shall I add a special case for "localhost"? i.e. support forms are host: host:port ip: ip:port host:service ip:service port service :port :service but not host ip Paul Alfille On 2/5/07, Tim Sailer <[EMAIL PROTECTE

[Owfs-developers] ownet oddity

2007-02-04 Thread Tim Sailer
#!/usr/bin/perl -w my $owserver=OWNet->new("localhost -F"); gives Use of uninitialized value in concatenation (.) or string at /usr/lib/perl/5.8/IO/Socket/INET.pm line 63. and reads fail until you read or write something besides a sensor value. Writing to simultaneous/temperature works well. :)

Re: [Owfs-developers] ownet and uncached temperature

2007-02-03 Thread Tim Sailer
On Sat, February 3, 2007 16:50, Paul Alfille said: > $owserver=OWNet->new("localhost -F") ; Heh. The only combination I *didn't* try, of course. :) Tim -- Tim Sailer Coastal Internet, Inc. www.buoy.com 631-399-2910 - Usin

Re: [Owfs-developers] ownet and uncached temperature

2007-02-03 Thread Paul Alfille
$owserver=OWNet->new("localhost -F") ; On 2/3/07, Tim Sailer <[EMAIL PROTECTED]> wrote: On Fri, February 2, 2007 21:58, Paul Alfille said: > Thanks for the error report. No problem. I figured, actually, that I was doing something wrong! :) > Fixed, I think. A change to owserver -- committed

Re: [Owfs-developers] ownet and uncached temperature

2007-02-03 Thread Tim Sailer
On Fri, February 2, 2007 21:58, Paul Alfille said: > Thanks for the error report. No problem. I figured, actually, that I was doing something wrong! :) > Fixed, I think. A change to owserver -- committed to the CVS. Well, one other thing, which may be a bug or I'm not reading the docs right...

Re: [Owfs-developers] ownet and uncached temperature

2007-02-02 Thread Paul Alfille
Thanks for the error report. Fixed, I think. A change to owserver -- committed to the CVS. Paul Alfille On 2/2/07, Tim Sailer <[EMAIL PROTECTED]> wrote: #!/usr/bin/perl use OWNet; my $owserver=OWNet->new("localhost") ; print $owserver->read('/uncached/10.8D5155000800/temperature')."\n"; Thi

[Owfs-developers] ownet and uncached temperature

2007-02-02 Thread Tim Sailer
#!/usr/bin/perl use OWNet; my $owserver=OWNet->new("localhost") ; print $owserver->read('/uncached/10.8D5155000800/temperature')."\n"; This will never print a value. If I take out uncached, it works. Any ideas? Tim -- Tim Sailer Coastal Internet, Inc. www.buoy.com 631-399-2910 --

[Owfs-developers] ownet/java [update]

2007-01-31 Thread George M. Zouganelis
Due to backward compatibility of JDKs, and programming simplicity, I have changed the return type of OWNet.Dir and OWNet.DirAll methods from Vector to String[]. I know, changing the API in that way, is not a wise. I hope not to cause troubles to those who have already started using it) Checked

Re: [Owfs-developers] ownet/java persistent

2007-01-28 Thread Paul Alfille
Very nice code. How do we configure the makefiles and installation for Java? Paul Alfille On 1/28/07, George M. Zouganelis <[EMAIL PROTECTED]> wrote: commited in cvs: support for persistent connections [safe]Connect/[safe]Disconnect methods tcp timeouts fix for reading long packets misc ench

[Owfs-developers] ownet/java persistent

2007-01-28 Thread George M. Zouganelis
commited in cvs: support for persistent connections [safe]Connect/[safe]Disconnect methods tcp timeouts fix for reading long packets misc enchancements documentation: into source (javadoc style) begin:vcard fn:George M. Zouganelis n:Zouganelis;George org:Athens University of Economics and Bus

Re: [Owfs-developers] ownet / java

2007-01-12 Thread George M. Zouganelis
Roberto Spadim wrote on 12/1/2007 08:33: Can you send me current ownet.java implementation to test on a web applet?!?! :D thankx I've just commited it. ;) begin:vcard fn:George M. Zouganelis n:Zouganelis;George org:Athens University of Economics and Business;Department of Management Science &

Re: [Owfs-developers] ownet / java

2007-01-11 Thread Roberto Spadim
Can you send me current ownet.java implementation to test on a web applet?!?! :D thankx - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opini

Re: [Owfs-developers] ownet / java

2007-01-11 Thread Michael Weber
George, That sounds very good. I am not doing the coding on that one (right now we have a python server that reads/writes 1wire and a socket connection to/from java), but I will gladly distribute your code to our person in charge. So please sen whatever you have and we will integrate it. W

Re: [Owfs-developers] ownet / java

2007-01-10 Thread Roberto Spadim
i didn't tryed by this way, did you tried with 32 and 64 bits machines and little endian and big endian? George M. Zouganelis escreveu: > Roberto Spadim wrote on 11/1/2007 03:25: >> i know some java stream functions and some unpack and pack functions >> to work with ownet any develop send to us

Re: [Owfs-developers] ownet / java

2007-01-10 Thread George M. Zouganelis
Roberto Spadim wrote on 11/1/2007 03:25: i know some java stream functions and some unpack and pack functions to work with ownet any develop send to us as far as I know and having test it, java handles network transmition of integers without packing/unpacking , if this is what you are referi

Re: [Owfs-developers] ownet / java

2007-01-10 Thread Roberto Spadim
i know some java stream functions and some unpack and pack functions to work with ownet any develop send to us Roberto Spadim escreveu: > i think that no ownet implementation use multi thread to read and set data > you can create ownet.java without threads without problem :) > any problem i can h

Re: [Owfs-developers] ownet / java

2007-01-10 Thread Roberto Spadim
i think that no ownet implementation use multi thread to read and set data you can create ownet.java without threads without problem :) any problem i can help :) i was trying to develop ownet.dotnet but i don't have time to learn the framework best solution :/ if you wanna try... :) George M. Zou

Re: [Owfs-developers] ownet / java

2007-01-10 Thread George M. Zouganelis
It's been a very long time since I last posted here (before summer) and I feel vry guilty about accepting to join into developers team without presenting a single bit. For the history, we were discussing a snmp module with Paul, and while dealing with that, I stuck into conflict of bus's dyna

Re: [Owfs-developers] ownet/python ValueError: negative buffersize in recv

2007-01-09 Thread Michael Weber
Thanks, that was easy. I used to get at least one reading error per hour, now there are none so far. After reading your email I also decided to wait with any 1wire software upgrades. Michael On 09.01.2007, at 15:40, Paul Davis wrote: Yes. There is a simple fix for this in the connectio

Re: [Owfs-developers] ownet/python ValueError: negative buffersize in recv

2007-01-09 Thread Paul Davis
Yes. There is a simple fix for this in the connection.py file which is part of the module. It should be in your site-python directory tree. Here's a diff: # diff connection.py connection.py.org 57c57 < interact with the ow sensors on any platform supported by Python. --- > inteact with

Re: [Owfs-developers] ownet/python ValueError: negative buffersize in recv

2007-01-09 Thread Michael Weber
Sorry, I think I tried to say too many things at once. The stability problems always existed. It got better after changing to cat5 cables with a clean bus topology, but never went away. I will try upgrading to the latest version, if that could really change things. After all the problems I

Re: [Owfs-developers] ownet/python ValueError: negative buffersize in recv

2007-01-09 Thread Paul Alfille
On 1/9/07, Michael Weber <[EMAIL PROTECTED]> wrote: I have some problems running a PID-Temperature Controller. It works fine most of the time, but tends to crash with varying frequency (months to hours). So yesterday, I changed from the old python module to the ownet interface (but still use th

[Owfs-developers] ownet/python ValueError: negative buffersize in recv

2007-01-09 Thread Michael Weber
I have some problems running a PID-Temperature Controller. It works fine most of the time, but tends to crash with varying frequency (months to hours). So yesterday, I changed from the old python module to the ownet interface (but still use the old v2.4.1 owserver binary) and encountered

Re: [Owfs-developers] ownet / java

2007-01-08 Thread Roberto Spadim
start the job :) i didn't have time o start vb.net and delphi yet but you can start doing java :) Michael Weber escreveu: > Is there any interest in doing a ownet implementation in java? It > looks like we want/need one, so I thought I ask around before we > start coding what already exists..

[Owfs-developers] ownet / java

2007-01-08 Thread Michael Weber
Is there any interest in doing a ownet implementation in java? It looks like we want/need one, so I thought I ask around before we start coding what already exists... "Gesundes Neues Jahr" to everybody on the list! Michael -

Re: [Owfs-developers] ownet

2006-12-16 Thread Paul Alfille
http://owfs.cvs.sourceforge.net/owfs/owfs/module/swig/python/ownet/ or from Peter Kropf's readme: 1 ownet 2 = 3 4 ownet is a standalone python module for accessing 1-wire sensors 5 through an owserver. The ownet module does not use the core ow 6 libraries. Instead, it impl

[Owfs-developers] ownet

2006-12-16 Thread Chris Lyon
I've now got a working owserver in the attic reading sensors ( again !) I'm looking for ownet, which hopefully will allow me to interrogate the server remotely via python 2.5 on windows xp. Where do I locate it? I've looked around the CVS browse facility but can't find anything as yet. Chris

  1   2   >