>
>
> so what do you think, has it put the module in the wrong place?
> What do i actually search for? Sorry not too familiar with this and I do
> want to write to the device as i want to set up missions for it.
>
>
I was trying to detect iButtons when touched to the 1-Wire bus and than to
read values from it using Python on Linux (Ubuntu) few days ago.
I have made some experiments with owPython and with pyowfs (
http://priesch.co.at/pyowfs) as well

Finally I gave it up and ended with the owfs daemon (running it is easy as:
/opt/owfs/bin/owfs -d /dev/ttyS2 -m /usr/local/tridicka/1wire)

I am scanning the 1-Wire directory this way:

owDirName = "/usr/local/tridicka/1wire"

                for f in os.listdir(owDirName):
                    if f.startswith("01."):
                        # "DS2401" iButton ROM; family code = 01h
                        owFileName = dirName + f + "/r_address"
                        owFile = open(owFileName, 'r')
                        r_address = owFile.read()
                        owFile.close()
                        self.iButtonNumber = r_address
                     time.sleep(0.1)

it is good to set the content of the files rc.local and fuse.conf

rc.local:
/opt/owfs/bin/owfs -d /dev/ttyS2 -m /usr/local/tridicka/1wire --allow_other

fuse.conf:
user_allow_other

With the DS9097 passive
adapter<http://owfs.org/index.php?page=com-ds9097-passive>It takes 5s
max. to detect a new iButton on the bus.

HTH

Petr
------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to