RE: [Owfs-developers] problem writing to DS2431

2006-05-23 Thread Spade, Rod
2/06, Paul Alfille <[EMAIL PROTECTED]> wrote: > > Can you try your test program against fusexmp -- it's the test program > > that came with fuse. > > > > I usually invoke it with something like ./fusexmp ~ /mnt/1wire > > > > That will show if the pro

[Owfs-developers] problem writing to DS2431

2006-05-22 Thread Spade, Rod
I'm now testing with a DS2431 1-kb eeprom (family code 0x2D). I'm using open, lseek, write in C to test writing. If I write a multiple of 8 bytes starting at an offset that is a multiple of 8, it works fine. Otherwise, "write" fails with errno EFAULT. Rod

RE: [Owfs-developers] RE: problem writing to DS1996

2006-05-22 Thread Spade, Rod
It could easily include a "read" with offset, since offset is handled internally by owlib. Paul On 5/22/06, Spade, Rod <[EMAIL PROTECTED]> wrote: > Paul, > > I can also do cat or cp with no problems. The source code that gives me > EINVAL is below. > > Thanks f

RE: [Owfs-developers] RE: problem writing to DS1996

2006-05-22 Thread Spade, Rod
Paul, I can also do cat or cp with no problems. The source code that gives me EINVAL is below. Thanks for your support! Rod // testowfs.cpp #include #include #include #include #include #include #include int main(int argc, char * argv[]) { if (argc <= 3) { printf("testowfs fi

RE: [Owfs-developers] RE: problem writing to DS1996

2006-05-19 Thread Spade, Rod
[Owfs-developers] RE: problem writing to DS1996 Thanks for the debugging. Can you tell me (running --foreground --error_level=9) if a second request is made for the next 4096 bytes? The cache problem is clear. We'll have to suppress caching of partial reads. Paul On 5/19/06, Spade, Rod <[EM

[Owfs-developers] RE: problem writing to DS1996

2006-05-19 Thread Spade, Rod
e operation terminates when it gets to a byte that is not cached, rather than fetching the missing data from the device. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Spade, Rod Sent: Friday, May 19, 2006 9:04 AM To: owfs-developers@lists.sourceforge.ne

RE: [Owfs-developers] RE: problem writing to DS1996

2006-05-19 Thread Spade, Rod
writing to DS1996 The current version seems to work. (I found a 1996 and tested it.) Paul On 5/17/06, Spade, Rod <[EMAIL PROTECTED]> wrote: > Paul, > > Thanks for your quick response. > > The problem happens whether I copy a small file to pages/page.n via the > shell, or use

[Owfs-developers] RE: problem writing to DS1996

2006-05-17 Thread Spade, Rod
2. Are you using "memory" or "pages/page.n" are the target? Paul Alfille On Tuesday 16 May 2006 03:29 pm, Spade, Rod wrote: > I'm having a problem using OWFS 2.2p3 to write to a 64kb DS1996. > Writing into the first 256 bytes of the "memory" file works OK

[Owfs-developers] problem writing to DS1996

2006-05-16 Thread Spade, Rod
I'm having a problem using OWFS 2.2p3 to write to a 64kb DS1996. Writing into the first 256 bytes of the "memory" file works OK, but when I write to other locations, the data ends up at the wrong address. If I immediately read back the data it looks OK, but if I do an uncached read (or wait for th