Hello,

On 11/23/2012 12:05 PM, Schinken wrote:

[...]

We're currently not emulating an DS18x20 Chip, we want to use our own
device class

As for using owfs for you new chip, if you are creating the slave only
for your own use, you can modify owfs however you wish (it's open
source) and even ask for assistance.

Where can i define these device-classes / commands etc?

If you want support to be part of owfs, then it has to be relevant to
more users. In general I like to add support for any commercial project,
and any project that is easily available or buildable (descriptions,
code, schematics) that fit's in with the 1-wire system. (i.e.
open-source hardware).

It could be relevant for more users - but it wont be a commercial
project. Free to use and modify for everyone - open source ;)

It would be very nice if you can tell us how to integrate these commands
to owfs, so we can use it with ownet etc

I too have built a custom 1-Wire device, and I have integrated it into owfs (though I have yet to officially ask Paul if it could be added to the official owfs source tree). My device does not emulate any existing device.

Attached you'll find the source code that I use to integrate my device into owfs. You can use it as a starting point. It's actually pretty simple -- you need a "driver" C file and its include header file companion, i.e. ow_yourdevice.c and ow_yourdevice.h, in two specific directories (modules/owlib/src/{c,include}), you need to modify modules/owlib/src/c/ow_tree.c and modules/owlib/src/include/ow_devices.h to add your new device, and you need to modify a couple of Makefile.am files to add your new source code files.

What you put in the "driver" file is pretty straightforward -- just look at how other devices are implemented and go from there.

Cheers,

Eloy Paris.-

Attachment: ow-centurion-20121123.tar.bz2
Description: application/bzip

------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to