Eugenio,
I looked at the code for the DS1991 and I think I'll rewrite it. I'll send
you some versions to test.
One thing that will change is how the password field is entered for each
read and write.
If the password is 0x1112131415161718 to read in subkey 1 you will read and
write to
subkey1/data.1112131415161718
It's a general problem with the simple file approach that owfs uses --
there isn't an easy way to add an extra field (like password). Adding it to
the filename is the easiest approach.
Paul
On Wed, Feb 4, 2015 at 12:58 PM, Jan Kandziora <j...@gmx.de> wrote:
> Am 04.02.2015 um 09:23 schrieb Torrini, Eugenio:
> > We are using Owfs in Linux to access a DS1991 and DS1995 through the USB
> DS9490R reader.
> > Everything is ok for DS1995.
> > For DS1991 we are not able to make it work. Maybe we are doing something
> wrong.
> > We know the password of the 3 pages of the iButton because we can set it
> with another tool in Windows.
> >
> > We tried with different approaches this one for example should be right:
> >
> > 1) Create a pwd.hex file with (in hex) 0x31 0x32 0x33 0x34 0x35 0x36
> 0x37 0x38
> > 2) Check the file with hexedit in windows
> > 3) Chech the file with hexdump in Linux
> > 4) cat ./pwd.hex > /disk/1wire/02.12B0CE000000/pages/password.0
> > 5) hexdump -Cv /disk/1wire/02.12B0CE000000/pages/page.0
> >
> Read
>
> /disk/1wire/uncached/02.12B0CE000000/pages/page.0
>
> instead. Setting a password doesn't invalidate the cache IIRC.
>
> Kind regards
>
> Jan
>
>
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming. The Go Parallel Website,
> sponsored by Intel and developed in partnership with Slashdot Media, is
> your
> hub for all things parallel software development, from weekly thought
> leadership blogs to news, videos, case studies, tutorials and more. Take a
> look and join the conversation now. http://goparallel.sourceforge.net/
> _______________________________________________
> Owfs-developers mailing list
> Owfs-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/owfs-developers
>
------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers