Re: [Owfs-developers] Custom 1-wire slave - need to send two bytes

2017-01-20 Thread morfeus
Hi Jan, well, using echo wasn't a problem at all because owwrite give the same results. I ended up looking other .c of owfs and activating debug until I got what was needed. At the end: 1. in the structure, that particular write needs to be: {"io_valve", 2, NON_AGGREGATE, ft_ascii, fc_stable, NO_

Re: [Owfs-developers] Custom 1-wire slave - need to send two bytes

2017-01-18 Thread Jan Kandziora
Am 18.01.2017 um 18:12 schrieb Gabrijel Erman: > I can read the device without any problems but if I try to write > echo "22" > io_valve.ALL > To sort out problems with CRLF, please set up owserver and use the owwrite tool instead of echo. Kind regards Jan --

[Owfs-developers] Custom 1-wire slave - need to send two bytes

2017-01-18 Thread Gabrijel Erman
Hi, I developed a custom 1-wire slave device that requires 2 bytes to be sent on write. Complete .c file is as follows: #include #include "owfs_config.h" #include "ow_e5_device.h" #define _1W_E5_READ 0x51 #define _1W_E5_WRITE 0x53 READ_FUNCTION(FS_read_status); WRITE_FUNCTION(FS_write_va