I reiterate that I think this is shoving a round peg into a square hole.
You requirements scream to me that you should be using an RF node that
beams your data into a gateway Pi behind closed doors and attached to the
wall. Low power + existing libraries for 1Wire. This RF unit (I use
Moteinos) would cost you about $20. The gateway unit would also cost you
about $20. I send things around encrypted, data format json strings, and
it's very easy to manage. If you want to shove this into 1Wire, do it on
the gateway node as data is received.

You can even very cheaply get power management boards (called Mightyboost,
~$20, attaches directly to Moteino) that will allow you to charge batteries
attached to your RF unit, although with their ridiculously low power
consumption, I don't even think this would be an issue. They'll run on a
single battery for a long long time.

I have code for all of this including the Pi serial handler if you are
interested.

Colin

On Tue, Aug 1, 2017 at 11:09 AM, Dr. Trigon <dr.tri...@surfeu.ch> wrote:

> Hello all!
>
> Thanks for the numerous replies and suggestions to this topic! To make a
> long story short; I decided to not insist in a free/open solution for now
> and ordered a ethernet2wifi converter as I have an unused ethernet master
> around. For later I consider using a Raspi Zero W + level-shifting
> transistor + pull-up as this is an intressting option. Or may be an
> commercial master (USB, I2C, etc.) on the raspi.
>
> For power, a solar panel was the solution I considered and still do. DC/DC
> converters are amazingly efficient nowadays... ;)
>
> Drilling any hole - also in the proximity of the roof is not an option, as
> I currently live in an apartment block. Otherwise this can be a very nice
> solution. Actually I would prefer it, but then go outside with ethernet for
> a 1wire master as the 1wire could become verrry long otherwise (even though
> it might work).
>
> owserver-deamon that would be needed to run on the Raspi Zero W e.g.,
> means running 'owserver' binary, right?
>
> The reason why I wanted to avoid running another instance of owserver in
> the first place, was power consumption and the fact that importing owfs
> instances from other machines might be a bit problematic (or connecting to
> other instances using the -s option). I read a few comments about this,
> don't know. Regarding power, I assumed the processors consumption (avr vs.
> arm, yun vs. raspi) and the number of processes running does matter, but if
> wifi dominates that might be wrong here. (And thus even an uno with wifi
> shield consumes the same.)
>
> Thanks for all your comments and greetings
>
>
> Am 23. Juli 2017 14:06:39 MESZ schrieb owfs-developers-request <
> owfs-developers-requ...@lists.sourceforge.net>:
>>
>>
>> Send Owfs-developers mailing list submissions to
>>  owfs-developers@lists.sourceforge.net
>>
>> To subscribe or unsubscribe via the World Wide Web, visit
>>  https://lists.sourceforge.net/lists/listinfo/owfs-developers
>> or, via email, send a message with subject or body 'help' to
>>  owfs-developers-requ...@lists.sourceforge.net
>>
>> You can reach the person managing the list at
>>  owfs-developers-ow...@lists.sourceforge.net
>>
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of Owfs-developers digest..."
>>
>>
>> Today's Topics:
>>
>>    1. Re: Arduino yun as wifi 1wire master (Jan Kandziora)
>>    2. Re: Arduino yun as wifi 1wire master (Stefano Miccoli)
>>
>>
>> ------------------------------
>>
>>
>> Message: 1
>> Date: Sat, 22 Jul 2017 15:12:21 +0200
>> From: Jan Kandziora <j...@gmx.de>
>> To: owfs-developers@lists.sourceforge.net
>> Subject: Re: [Owfs-developers] Arduino yun as wifi 1wire master
>> Message-ID: <502209ec-a3ef-5c46-2b19-1e3750800...@gmx.de>
>> Content-Type: text/plain; charset=utf-8
>>
>> Am 22.07.2017 um 12:24 schrieb Dr. Trigon:
>>
>>>
>>>  Raspi Zero is fine too, but someone needs
>>>  to tell me how to set the software up, how to build the stuff
>>>  together.
>>
>>
>> 1. You buy a Raspberry Pi Zero W.
>> 2. You put an Raspian image (minimal will do) from the Raspberry Pi
>> website onto an >2GB micro SD card and put it into the Pi.
>> 3. You switch on the thing, connect a HDMI screen and keyboard to it,
>> then login into this little Linux box in front of you.
>> 4. You configure Wifi and Internet connection to get the thing connected
>> to your indoors equipment and load software form the internet.
>> 5. You apt-get the owserver package and edit the raspi's
>> /boot/config.txt to include the w1-gpio overlay on GPIO4. Reboot.
>> 6. You now have a 3.3V onewire on GPIO4, available through Wifi, TCP
>> port 4304. This is what owserver does.
>> 7. Your indoor devices can connect to that owserver on the Raspberry via
>> -s <raspi-ip>:4304 command line option.
>> 8. Congrats. You are done.
>>
>>
>>  I don't want to run another instance of owfs on those
>>>  devices as they should act as master and not owfs servers.
>>
>>
>> I don't know what weird idea you have about how owserver works but it's
>> designed explicitely for the thing you want to do. I use it that way in
>> my setups.
>>
>> It is "bullshit" (to use your words) to avoid owserver just because you
>> ? yeah, what ? don't know it better?
>>
>>
>>  Basically
>>>  I could write a sketch for Arduino that emulates linkhube master and
>>>  then should be able to connect this to owserver but that would be
>>>  quite some effort given FHEM has already a solution for this... The
>>>  power btw. is no concern, if needed I can use a car battery... ;))
>>>
>>> This means reinventing the wheel. Have fun.
>>
>> Kind regards
>>
>>  Jan
>>
>>
>>
>> ------------------------------
>>
>>
>> Message: 2
>> Date: Sun, 23 Jul 2017 02:01:35 +0200
>> From: Stefano Miccoli <mo...@icloud.com>
>> To: "OWFS (One-wire file system) discussion and help"
>>  <owfs-developers@lists.sourceforge.net>
>> Subject: Re: [Owfs-developers] Arduino yun as wifi 1wire master
>> Message-ID: <d2c2b054-7c1d-4482-8f59-336edcb2b...@icloud.com>
>> Content-Type: text/plain; charset="utf-8"
>>
>>
>>  On 22 Jul 2017, at 12:24, Dr. Trigon <dr.tri...@surfeu.ch> wrote:
>>>
>>>  I don't want to run another instance of owfs on those devices as they 
>>> should act as master and not owfs servers.
>>>
>>
>>
>> What you need is an IP protocol that allows you to access a remote 1-wire 
>> network: owserver (the protocol) was designed exactly to address this 
>> problem, see http://owfs.org/index.php?page=owserver-protocol
>>
>> Documentation and terminology are ? a little hard to understand, so let my 
>> try to explain it here.
>>
>> First one should understand that ?owserver? has many meanings:
>>
>> - owserver-protocol: the TCP messaging protocol used by OWFS components to 
>> communicate over IP
>> - owserver-server: an agent that plays the server role in an 
>> owserver-protocol message exchange
>> - owserver-client: an agent that plays the client side in the 
>> owserver-protocol
>> - owserver-daemon: the program, which is the main OWFS owserver-server, but 
>> that can act also as an owserver-client.
>>
>> The OWFS way to solve your problem is that on each remote 1-wire network you 
>> should have an owserver-daemon running (Please note: only the 
>> owserver-daemon, not the full stack of owhttp, owftp, owfs, etc.) Each 
>> owserver-daemon controls one or more 1-wire masters, and acts as an 
>> owserver-server, over a common IP network, say a WiFi LAN. Owserver-clients 
>> can query over IP the various owserver-daemons (acting as owserver-servers) 
>> about the remote 1-wire networks they are controlling.
>>
>> To make things a little bit more complicated, you should know that an 
>> owserver-daemon can be configured to be an owserver-client of a remote 
>> owserver-server: this means that the owserver-daemon is now able to present 
>> the remote 1-wire devices as local ones? Please see 
>> http://owfs.org/index.php?page=loop-suppression for different 
>> owserver-server network topologies examples and the built-in loop 
>> suppression mechanism.
>>
>> This is what OWFS has to offer: if you keep it simple (owserver-daemons 
>> acting only as owserver-servers) it is quite simple to configure and manage. 
>> Of course owserver-clients should know which owserver-server query. However 
>> if you prefer, you can merge all remote 1-wire networks into a single 
>> ?virtual? 1-wire network, by using the owserver-daemon client capabilities, 
>> so that your to your clients all 1-wire devices are presented as if they 
>> were on a single 1-wire network.
>>
>> Of course you can invent your own 1-wire-over-IP protocol and implement it 
>> in the micro-controller of your choice, or even emulate the LINK protocol. 
>> But it is much, much more complicated that having multiple owserver-daemons 
>> running on your network.
>>
>> Hope my explanation was at least understandable.
>>
>> Bye
>>
>> Stefano
>>
>> ---
>>
>> BTW the Y?n is a 65? device in which you have two parallel environments 
>> talking to each other: Arduino and Linux (Linino OS, based on OpenWRT). 
>> Linux specs are really minimal: 64MB DDR2 RAM, 400MHz clock speed.
>>
>> On the contrary the Pi Zero W is a 10? device, which runs a full-fledged 
>> Linux (or windows 10, if you prefer) with 1GB Ram, running at 1GHz.
>>
>> Spending 55? just for having an Arduino bit-banging the 1-wire protocol 
>> makes no sense to me.
>>
>> -------------- next part --------------
>> An HTML attachment was scrubbed...
>>
>> ------------------------------
>>
>>
>> ------------------------------
>>
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>>
>> ------------------------------
>>
>>
>> Subject: Digest Footer
>>
>> ------------------------------
>>
>> Owfs-developers mailing list
>> Owfs-developers@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/owfs-developers
>>
>>
>> ------------------------------
>>
>>
>> End of Owfs-developers Digest, Vol 133, Issue 9
>> ***********************************************
>>
>>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Owfs-developers mailing list
> Owfs-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/owfs-developers
>
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to