Re: [Owfs-developers] Proposed Enhancement: "read_ROM" node in simultaneous directories

2006-12-13 Thread Paul Alfille
Look at http://owfs.sourceforge.net/commands.html It is a list of devices and the listed command codes. 0x0F for read_ROM works only for DS2401 (and DS2400 I guess). 0x33 works for almost all chips, except DS1821 (thermometer doesn't have an ID anyways) DS2223, DS2224 (old chips I think) But 0x3

Re: [Owfs-developers] Proposed Enhancement: "read_ROM" node insimultaneous directories

2006-12-13 Thread Alfille, Paul H.,M.D.
We use "Smart on" -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Jan Kandziora Sent: Wednesday, December 13, 2006 2:31 PM To: owfs-developers@lists.sourceforge.net Subject: Re: [Owfs-developers] Proposed Enhancement: "read_ROM" node insimultaneous directorie

Re: [Owfs-developers] Proposed Enhancement: "read_ROM" node in simultaneous directories

2006-12-13 Thread Jan Kandziora
Am Mittwoch, 13. Dezember 2006 17:33 schrieb Paul Alfille: > > Many of the adapters have an id chip included, so this technique will only > work on DS2409 branches or the "more than one". > I added two additional nodes "present_ds2400" and "single_ds2400", to support both the "0x33 read ROM" and t

Re: [Owfs-developers] Proposed Enhancement: "read_ROM" node in simultaneous directories

2006-12-13 Thread Paul Alfille
On 12/13/06, Jan Kandziora <[EMAIL PROTECTED]> wrote: Am Mittwoch, 13. Dezember 2006 12:51 schrieb Paul Alfille: > > How about separating the functions as: > "present" = 0 if no devices, "1" if more > "single" = "" if 0 or >1, else name (ID) > You can return other error codes, just not through

Re: [Owfs-developers] Proposed Enhancement: "read_ROM" node in simultaneous directories

2006-12-13 Thread Jan Kandziora
Am Mittwoch, 13. Dezember 2006 12:51 schrieb Paul Alfille: > > How about separating the functions as: > "present" = 0 if no devices, "1" if more > "single" = "" if 0 or >1, else name (ID) > You can return other error codes, just not through FS_output_ascii_z > > I checked in a provisional "simulta

Re: [Owfs-developers] Proposed Enhancement: "read_ROM" node in simultaneous directories

2006-12-13 Thread Paul Alfille
On 12/13/06, Jan Kandziora <[EMAIL PROTECTED]> wrote: The "read ROM" onewire command will either return the ID of the single connected device, obviously nothing if no slave is connected, or just plain garbarge if more than a single slave is connected. I'm after the ID, it saves me from doing a

Re: [Owfs-developers] Creating owlua...

2006-12-13 Thread Paul Alfille
On 12/13/06, Matthew Percival <[EMAIL PROTECTED]> wrote: G'Day, I am looking to create a Lua interface to owlib --- effectively owlua. I would need to do this as a simple C library that makes the appropriate calls, however, I have not been able to find any documentation that would help

Re: [Owfs-developers] Proposed Enhancement: "read_ROM" node in simultaneous directories

2006-12-13 Thread Jan Kandziora
Am Mittwoch, 13. Dezember 2006 03:28 schrieb Paul Alfille: > > > > I'm impressed. You certainly figured out the code style. > > > > Questions: > > 1. We "read_ROM" and get a positlve result if any devices exist on the > > selected path? > > You currently return the name a of single device. And erro