I think it (writing the DS2431) works, now. (In the CVS).

I think you are the first person to test reading/writing with an
offset. Than ks for the feedback.

Paul

On 5/23/06, Spade, Rod <[EMAIL PROTECTED]> wrote:
Thanks for checking that!  I haven't had trouble with unaligned writes
with the DS1996, so I agree it's probably a peculiarity of the DS2431.

Rod

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Paul
Alfille
Sent: Monday, May 22, 2006 8:00 PM
To: [email protected]
Subject: Re: [Owfs-developers] problem writing to DS2431

From the DS2431 datasheet (
http://pdfserv.maxim-ic.com/en/ds/DS2431.pdf page 9 ) :
----------
WRITE SCRATCHPAD COMMAND [0Fh]
The Write Scratchpad command applies to the data memory, and the
writable addresses in the register page. In
order for the scratchpad data to be valid for copying to the array,
the user must perform a Write Scratchpad
command of 8 bytes starting at a valid row boundary. The Write
Scratchpad command accepts invalid addresses,
and partial rows, but subsequent Copy Scratchpad commands are blocked.
----------
So, we'll have owfs read the gap data, and rewrite it after
overwriting with new data.

Paul

On 5/22/06, Paul Alfille <[EMAIL PROTECTED]> wrote:
> Oops, never mind. My bug. I'll fix and upload a new version.
>
> Paul
>
> On 5/22/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 problem is fuse or owfs.
> >
> > Paul
> >
> > On 5/22/06, Spade, Rod <[EMAIL PROTECTED]> wrote:
> > > 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
> > >
> > >
> > >
> > > -------------------------------------------------------
> > > Using Tomcat but need to do more? Need to support web services,
security?
> > > Get stuff done quickly with pre-integrated technology to make your
job easier
> > > Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
> > > http://sel.as-us.falkag.net/sel?cmdlnk&kid0709&bid&3057&dat1642
> > > _______________________________________________
> > > Owfs-developers mailing list
> > > [email protected]
> > > https://lists.sourceforge.net/lists/listinfo/owfs-developers
> > >
> >
>


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services,
security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
http://sel.as-us.falkag.net/sel?cmd=k&kid0709&bid&3057&dat1642
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmdlnk&kid0709&bid&3057&dat1642
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to