Is it possible that symantics are the problem? Our defintions are PIO.A=1 is your "closed" and PIO.sense=0 if it really is connected to ground. PIO.A=0 is your "open" and PIO.sense=1 if the line is pulled up to 5v
Paul -----Original Message----- From: Ricounet [mailto:[EMAIL PROTECTED] Sent: Monday, October 03, 2005 3:29 PM To: Alfille, Paul H.,M.D. Subject: RE : RE : Owfs and DS2413 -- SOLVED? Hi, I get the new version It run better, but I think there is a little problem on the PIO status. First test, owfs isn't running, I have on my electronic cards PIO.A = close and PIO.B = close (shortcut to the ground) Second test : start owfs Command : /opt/owfs/bin/owfs -C --usb /mnt/1wire On the electronic card : PIO.A = close PIO.B = close cat /mnt/1wire/3A.402E00000000/PIO.A --> 1 cat /mnt/1wire/3A.402E00000000/PIO.B --> 1 cat /mnt/1wire/3A.402E00000000/PIO.ALL --> 1,1 cat /mnt/1wire/3A.402E00000000/PIO.BYTE --> 0 cat /mnt/1wire/3A.402E00000000/sensed.A --> 0 cat /mnt/1wire/3A.402E00000000/sensed.B --> 0 cat /mnt/1wire/3A.402E00000000/sensed.ALL --> 0,0 cat /mnt/1wire/3A.402E00000000/sensed.BYTE --> 0 third test : switch PIO.A command : echo 0 > /mnt/1wire/3A.402E00000000/PIO.A On the electronic card : PIO.A = open //ok PIO.B = close //ok cat /mnt/1wire/3A.402E00000000/PIO.A --> 1 cat /mnt/1wire/3A.402E00000000/PIO.B --> 1 cat /mnt/1wire/3A.402E00000000/PIO.ALL --> 1,1 cat /mnt/1wire/3A.402E00000000/PIO.BYTE --> 0 cat /mnt/1wire/3A.402E00000000/sensed.A --> 0 cat /mnt/1wire/3A.402E00000000/sensed.B --> 0 cat /mnt/1wire/3A.402E00000000/sensed.ALL --> 0,0 cat /mnt/1wire/3A.402E00000000/sensed.BYTE --> 0 Fourth test switch PIO.B command : echo 0 > /mnt/1wire/3A.402E00000000/PIO.B On the electronic card : PIO.A = open //ok PIO.B = open //ok cat /mnt/1wire/3A.402E00000000/PIO.A --> 1 cat /mnt/1wire/3A.402E00000000/PIO.B --> 1 cat /mnt/1wire/3A.402E00000000/PIO.ALL --> 1,1 cat /mnt/1wire/3A.402E00000000/PIO.BYTE --> 0 cat /mnt/1wire/3A.402E00000000/sensed.A --> 0 cat /mnt/1wire/3A.402E00000000/sensed.B --> 0 cat /mnt/1wire/3A.402E00000000/sensed.ALL --> 0,0 cat /mnt/1wire/3A.402E00000000/sensed.BYTE --> 0 Fith test : switch PIO.A command : echo 1 > /mnt/1wire/3A.402E00000000/PIO.B On the electronic card : PIO.A = close //ok PIO.B = open //ok cat /mnt/1wire/3A.402E00000000/PIO.A --> 1 cat /mnt/1wire/3A.402E00000000/PIO.B --> 1 cat /mnt/1wire/3A.402E00000000/PIO.ALL --> 1,1 cat /mnt/1wire/3A.402E00000000/PIO.BYTE --> 0 cat /mnt/1wire/3A.402E00000000/sensed.A --> 0 cat /mnt/1wire/3A.402E00000000/sensed.B --> 0 cat /mnt/1wire/3A.402E00000000/sensed.ALL --> 0,0 cat /mnt/1wire/3A.402E00000000/sensed.BYTE --> 0 Last test : switch PIO.B command : echo 1 > /mnt/1wire/3A.402E00000000/PIO.B On the electronic card : PIO.A = close //ok PIO.B = close //ok cat /mnt/1wire/3A.402E00000000/PIO.A --> 1 cat /mnt/1wire/3A.402E00000000/PIO.B --> 1 cat /mnt/1wire/3A.402E00000000/PIO.ALL --> 1,1 cat /mnt/1wire/3A.402E00000000/PIO.BYTE --> 0 cat /mnt/1wire/3A.402E00000000/sensed.A --> 0 cat /mnt/1wire/3A.402E00000000/sensed.B --> 0 cat /mnt/1wire/3A.402E00000000/sensed.ALL --> 0,0 cat /mnt/1wire/3A.402E00000000/sensed.BYTE --> 0 The command echo 0 or 3 > /mnt/1wire/3A.402E00000000/PIO.BYTE are running well on the electronic cards too. It seems that the status of the PIO never be updated. Do you want to added some logs files or do you need another test ? Bests regards Eric Cocquerez -----Message d'origine----- De : Alfille, Paul H.,M.D. [mailto:[EMAIL PROTECTED] Envoyé : lundi 3 octobre 2005 05:50 À : Ricounet; [email protected] Objet : RE: RE : Owfs and DS2413 -- SOLVED? Ahh.. Seems like some problems in the logic writing "bitfields". Can you try now? Paul -----Original Message----- From: Ricounet [mailto:[EMAIL PROTECTED] Sent: Sun 10/2/2005 8:41 AM To: Alfille, Paul H.,M.D. Subject: RE : Owfs and DS2413 -- SOLVED Hello OK, I can read files. But have another problem cat PIO.ALL --> 1,1 cat sensed.all --> 0,0 But PIO.A is switched to ground "close" and PIO.B is "open" So I try "echo 0 > PIO.A" PIO.A is now "open", but PIO.B is "close" (switched to ground). It seems to be a toggle switch. And the command cat give always the same result cat PIO.ALL --> 1,1 cat sensed.all --> 0,0 If you need more tests, or more results, send me a mail. Bests reards Eric -----Message d'origine----- De : Alfille, Paul H.,M.D. [mailto:[EMAIL PROTECTED] Envoyé : samedi 1 octobre 2005 23:22 À : Ricounet; [email protected] Objet : RE: Owfs and DS2413 -- SOLVED Thanks for the bug report. Rather stupid mistake on my part. On reading the "PIO Status Bit Assignment" adding the lower 4 bits to the upper 4 should be 0x0F, not 0x10. Fixed in the CVS. Paul -----Original Message----- From: Ricounet [mailto:[EMAIL PROTECTED] Sent: Sat 10/1/2005 4:01 PM To: Alfille, Paul H.,M.D. Subject: Owfs and DS2413 Hello Sorry for this question, but I am a newbie in Linux and I have a problem with OWFS. II have 3 DS1820 sensors (work fine) 2 DS2405 interface (work fine) and I have make a new module with DS2413. When I have connected the DS2413, OWFS create a new directory , and here is the listing [EMAIL PROTECTED] 3A.402E00000000]# ls -al total 0 drwxr-xr-x 3 root root 1 oct 1 16:45 . drwxr-xr-x 3 root root 1 sep 30 19:29 .. -r--r--r-- 1 root root 16 sep 30 19:29 address -r--r--r-- 1 root root 2 sep 30 19:29 crc8 -r--r--r-- 1 root root 2 sep 30 19:29 family -r--r--r-- 1 root root 12 sep 30 19:29 id -r--r--r-- 1 root root 1 oct 1 16:45 latch.A -r--r--r-- 1 root root 3 oct 1 16:45 latch.ALL -r--r--r-- 1 root root 1 oct 1 16:45 latch.B -r--r--r-- 1 root root 12 oct 1 16:45 latch.BYTE -rw-rw-rw- 1 root root 1 oct 1 16:45 PIO.A -rw-rw-rw- 1 root root 3 oct 1 16:45 PIO.ALL -rw-rw-rw- 1 root root 1 oct 1 16:45 PIO.B -rw-rw-rw- 1 root root 12 oct 1 16:45 PIO.BYTE -r--r--r-- 1 root root 1 oct 1 16:45 present -r--r--r-- 1 root root 1 oct 1 16:45 sensed.A -r--r--r-- 1 root root 3 oct 1 16:45 sensed.ALL -r--r--r-- 1 root root 1 oct 1 16:45 sensed.B -r--r--r-- 1 root root 12 oct 1 16:45 sensed.BYTE -r--r--r-- 1 root root 6 sep 30 19:29 type But when I try to read the PIO.A or PIO.B file I have a message : cat PIO.A cat: PIO.A: Aucun fichier ou répertoire de ce type (No file or directory of this type) I have a fedora Core3, The latest version of OWFS and the latest version of fuse. Is there a special parameter to read or write the PIO.X files ? I have the problem only with this part number : DS2413 Thanks for the time you spend on this project. Best regards Eric Cocquerez ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl _______________________________________________ Owfs-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/owfs-developers
