Am 21.02.2015 um 08:08 schrieb Matthias Urlichs:
> Jan Kandziora writes:
> 
>> I strongly recommend to use Pascal Baerten's BAE0911 device instead of
>> developing a slave on your own.
> 
> I already _have_ a slave of my own. (AVR-based; writing code that talks to
> 1wire is as simple as it gets with this codebase.)
> 
But you don't have the OWFS codebase. And you have to adapt the AVR
codebase to do what you want, while the BAE0911 has nearly everything
you may need already inside. And Pascal is open for suggestions what to add.

I thought of using AVRs myself, I use them for nearly any other task
where I need a µC. But considering "make or buy", it was buying the
BAE0911. Too much code to write and test myself the other way.


> My main problem with the BAE0911 right now is that brain4home.eu is "down
> for maintenance". :-P 
> 
Pascal is reading here. Just email him: [email protected]

He has another website: http://pbae.be/site/index.php



> The other is that I want to the devices on the other end of that slave to
> have distinctive entries in OWFS. Like "temperature.0" (through N-1) for the
> N thermometers that are attached to the slave's I²C bus. Ditto for the I/O
> ports. Or the capacitive sensors I want to use (can the BAE0911 even do
> that? an atmega supports them without any additional hardware).
> 
The BAE0911 has a built-in I²C bus master, yes. Several ways to support
connected slaves.

There is example code for the CAT9554 I/O expander in
module/owlib/src/c/ow_bae.c, this one can be accessed through special
nodes in owfs already. It's easy to add support for other slave chips to
the ow_bae.c code.

Or you write an AE program that triggers the I²C transfers automatically
or when a command is placed in one of the onewire-accessible
"registers". Results can be placed in these registers, too. Of course,
they are named generic in the ow_bae.c codebase, but changing names is
simple.


If you think about sorting yours and the generic BAE0911 out, I think
Pascal will provide you chips with another subclass (or even another
family code if you like).


Kind regards

        Jan


------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to