i have some ideas, maybe could not work maybe could...
i was reading http://owfs.org/index.php?page=external-sensor-design


Configuration will be by text files
    Two layers of config
    First layer has the list of devices (unique names)
    Second layer describes the device's family


i was thinking with another idea....
we could have a READ and a WRITE call, and a interface file to
add/remove programs/directories
for example...

echo "new_interface /bin/program" > /external/add_interface_file
(this file allow add new directory to /external for example)
echo "new_interface" > /external/del_interface_file  (this file allow
delete a directory /external/new_interface for example)

when aceess /external/new_interface/
it call /bin/program read /

program return a csv file...
string;10;abcdefghij
int;1;a
float;3;fil
directory;1;a
type;size;value

owexternal interpret the file and create owfs 'files/directories'...

if we read a file...
it call /bin/program read /a

it return a csv file too...
int;1;1234


when we write...
it call /bin/program write /a value
return the read value too or maybe with information about error (not
writeable file), or 'OK', or 'wrong data format' or 'type mismatch',
or other error....

we could return more information at csv file...
writeable, static, cacheable, etc...

but the main idea is...
a interface file to add/delete programs and directory.... /bin/sh ->
owfs directory /external/directory

and owexternal just call /bin/sh READ /path, or WRITE /path VALUE
to change informations

that´s what we are trying to implement?

-- 
Roberto Spadim
Spadim Technology / SPAEmpresarial

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to