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

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