<div dir="ltr">Thank you to everyone contributing to this thread. I'm following with interest and would like to help out (although I'm not quite there in terms of having the time right now). I have a set of Radbots waiting for me to be able to implement a stats hub and boiler controller, and as my plans involve a Pi anyway I had been hoping that there would be an easy way to add a receiver to the Pi so I could combine it all.<div><br></div><div>I have a relatively complex mix of UFH and radiators and I'm planning on building a combined controller, with the RadBots looking after the radiators and a custom system to look after the UFH. I'll write it up as I go along (once I get started). PLan is to have it operational for next winter (but I would have said the same last winter!)</div><div><br></div><div>Rob.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, 10 Jan 2021 at 10:38, Tristan Keen <<a href="mailto:tristan.keen@gmail.com">tristan.keen@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"> Thanks to all your help - though I'd already ordered an Adafruit RFM69HCW 868 MHz "Bonnet" for my Raspberry Pi (from Pimoroni), on the strength of a Hope datasheet suggesting it was an easy replacement part.<div><br></div><div> Unfortunately while the pinout might be the same, the registers are totally different so it's been slow going; especially when I realised Manchester encoding is implemented completely differently between the two - I was about to give up & buy a new module. Luckily, despite <a href="https://github.com/opentrv/OTRadioLink/blob/345b45f9df92eac78caa483d4230a11bde21d7d8/content/OTRadioLink/utility/OTRFM23BLink_OTRFM23BLink.cpp#L787" target="_blank">https://github.com/opentrv/OTRadioLink/blob/345b45f9df92eac78caa483d4230a11bde21d7d8/content/OTRadioLink/utility/OTRFM23BLink_OTRFM23BLink.cpp#L787</a> your (Christoph's) config actually shows Manchester was turned off. Trying that as a last-gasp effort seems to work - I can now receive valid secure frames with sensible IDs matching some of the hex printed inside the Radbots, and incrementing message_counters from the trailer.</div><div><br></div><div> Now to read up on the encryption approach & get that working in Python, then I'll try reprogramming the key on one of the radbots to a known value. Yes, my current code is similarly littered with odd notes, some copied in material and private IDs, I'll clean it up a bit & clone it publically when I've got my MVP working.</div><div><br></div><div>Thanks,</div><div>Tristan.</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 7 Jan 2021 at 19:23, Damon Hart-Davis <<a href="mailto:dhd@exnet.com" target="_blank">dhd@exnet.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>Purged of third-party copyright material, would you consider adding that to an appropriate place in our Wiki or one of the GitHub repos?<div><br></div><div>Good to have register settings for another radio widely available (and the Pi stuff)!</div><div><br></div><div>Note that there is one non-JSON data item in there, the valve %, which is a single binary byte easy for a boiler controller with a small MCU to use...<br><div><div><br></div><div>Rgds</div><div><br></div><div>Damon</div><div><br><div><br><blockquote type="cite"><div>On 7 Jan 2021, at 19:14, <a href="mailto:christoph@winterstiger.at" target="_blank">christoph@winterstiger.at</a> wrote:</div><br><div><div style="font-family:Helvetica;font-size:14px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><div style="margin:0cm;font-size:11pt;font-family:Calibri,sans-serif"><span>Hi Tristan,<u></u><u></u></span></div><div style="margin:0cm;font-size:11pt;font-family:Calibri,sans-serif"><span><u></u> <u></u></span></div><div style="margin:0cm;font-size:11pt;font-family:Calibri,sans-serif"><span>That’s right, I have this working. I played around with multiple different modules and I think the cheapest option is a TI CC1101-based module (lots of options for under GBP 10 on eBay). Most of them come with antennas that should work fine for development purposes if you’re in the same room as the RadBot.<u></u><u></u></span></div><div style="margin:0cm;font-size:11pt;font-family:Calibri,sans-serif"><span><u></u> <u></u></span></div><div style="margin:0cm;font-size:11pt;font-family:Calibri,sans-serif"><span>That module (and many similar ones) uses the SPI-bus for communication, which is very easy to use on an RPI, and there are also options for other platforms, e.g. CH431A-based modules (but I haven’t tried those yet). This takes voltage + ground + 4 SPI wires + 1 interrupt wire (interrupts when the module received a packet). On the RPI, no other hardware is required and I think a CH431A wouldn’t need any other external components either.<u></u><u></u></span></div><div style="margin:0cm;font-size:11pt;font-family:Calibri,sans-serif"><span><u></u> <u></u></span></div><div style="margin:0cm;font-size:11pt;font-family:Calibri,sans-serif"><span>For my own experiments I wrote a monitoring app that lets me configure the module on the fly so I can play around with all those RF-related options, but I foolishly copied a bunch of copyrighted text from the various datasheets into it, so now I’ll have to remove that before I can publish it. I attached the RadBot config I use, which gives you all the register settings for the CC1101. Once all the registers are set, you just need an event handler for rising edges on the interrupt lines to get the raw packets. Those are encrypted by the RadBot with a pre-set key, so they need to be decrypted. Once that is done, the actual data decoding is trivial as it’s just a simple JSON object.<u></u><u></u></span></div><div style="margin:0cm;font-size:11pt;font-family:Calibri,sans-serif"><span><u></u> <u></u></span></div><div style="margin:0cm;font-size:11pt;font-family:Calibri,sans-serif"><span>I’ll try to find some time over this or the next weekend to clean up my code so I can publish it.<span> </span><u></u><u></u></span></div><div style="margin:0cm;font-size:11pt;font-family:Calibri,sans-serif"><span><u></u> <u></u></span></div><div style="margin:0cm;font-size:11pt;font-family:Calibri,sans-serif"><span>Cheers,<u></u><u></u></span></div><div style="margin:0cm;font-size:11pt;font-family:Calibri,sans-serif"><span>Christoph<u></u><u></u></span></div><div style="margin:0cm;font-size:11pt;font-family:Calibri,sans-serif"><span><u></u> <u></u></span></div><div style="border-style:solid none none;border-top-width:1pt;border-top-color:rgb(225,225,225);padding:3pt 0cm 0cm"><div style="margin:0cm;font-size:11pt;font-family:Calibri,sans-serif"><b><span lang="EN-US">From:</span></b><span lang="EN-US"><span> </span>OpenTRV-dev <<a href="mailto:opentrv-dev-bounces@lists.opentrv.org.uk" target="_blank">opentrv-dev-bounces@lists.opentrv.org.uk</a>><span> </span><b>On Behalf Of<span> </span></b>Tristan Keen<br><b>Sent:</b><span> </span>30 December 2020 10:33<br><b>To:</b><span> </span><a href="mailto:opentrv-dev@lists.opentrv.org.uk" target="_blank">opentrv-dev@lists.opentrv.org.uk</a><br><b>Subject:</b><span> </span>Re: [OpenTRV-dev] Dongle<u></u><u></u></span></div></div><div style="margin:0cm;font-size:11pt;font-family:Calibri,sans-serif"><u></u> <u></u></div><div><div style="margin:0cm;font-size:11pt;font-family:Calibri,sans-serif">Hi <span>Christoph,</span><u></u><u></u></div><div><div style="margin:0cm;font-size:11pt;font-family:Calibri,sans-serif"><u></u> <u></u></div></div><div><div style="margin:0cm;font-size:11pt;font-family:Calibri,sans-serif"><span>I read from the mailing-list archives that you recently managed to "... receive the messages on a raspberry pi with a cheapo 868Mhz transceiver and it works fairly reliably".</span><u></u><u></u></div><div><div style="margin:0cm;font-size:11pt;font-family:Calibri,sans-serif"><u></u> <u></u></div></div><div><div style="margin:0cm;font-size:11pt;font-family:Calibri,sans-serif"><span>Would it be possible to share a bit more detail on what actual transceiver you used with what Pi, plus any other hardware mods you had to make? Additionally the code you used to decode the messages - even in partial form if you prefer. I'm an experienced developer with some hardware knowledge, so anything rough would still be gratefully received.</span><u></u><u></u></div></div><div><div style="margin:0cm;font-size:11pt;font-family:Calibri,sans-serif"><u></u> <u></u></div></div><div><div style="margin:0cm;font-size:11pt;font-family:Calibri,sans-serif"><span>I'm trying to make up something similar to the Stats Hub to collect information broadcast by the OpenTRV/Radbots, but without building so much custom hardware if possible...</span><u></u><u></u></div></div><div><div style="margin:0cm;font-size:11pt;font-family:Calibri,sans-serif"><u></u> <u></u></div></div><div><div style="margin:0cm;font-size:11pt;font-family:Calibri,sans-serif"><span>Thanks in advance,</span><u></u><u></u></div></div><div><div style="margin:0cm;font-size:11pt;font-family:Calibri,sans-serif"><span>Tristan Keen.</span><u></u><u></u></div></div><div><div style="margin:0cm;font-size:11pt;font-family:Calibri,sans-serif"><u></u> <u></u></div></div></div></div></div><span id="gmail-m_1743626266807464574gmail-m_-2598857484256881654cid:42B4659C-BABF-4C81-84B5-D079F80CC6B9"><cc1101-radbot.cfg></span><span style="font-family:Helvetica;font-size:14px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;float:none;display:inline">_______________________________________________</span><br style="font-family:Helvetica;font-size:14px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><span style="font-family:Helvetica;font-size:14px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;float:none;display:inline">OpenTRV-dev mailing list</span><br style="font-family:Helvetica;font-size:14px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><a href="mailto:OpenTRV-dev@lists.opentrv.org.uk" style="font-family:Helvetica;font-size:14px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" target="_blank">OpenTRV-dev@lists.opentrv.org.uk</a><br style="font-family:Helvetica;font-size:14px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><a href="http://lists.opentrv.org.uk/listinfo/opentrv-dev" style="font-family:Helvetica;font-size:14px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" target="_blank">http://lists.opentrv.org.uk/listinfo/opentrv-dev</a></div></blockquote></div><br></div></div></div></div>_______________________________________________<br>
OpenTRV-dev mailing list<br>
<a href="mailto:OpenTRV-dev@lists.opentrv.org.uk" target="_blank">OpenTRV-dev@lists.opentrv.org.uk</a><br>
<a href="http://lists.opentrv.org.uk/listinfo/opentrv-dev" rel="noreferrer" target="_blank">http://lists.opentrv.org.uk/listinfo/opentrv-dev</a><br>
</blockquote></div>
_______________________________________________<br>
OpenTRV-dev mailing list<br>
<a href="mailto:OpenTRV-dev@lists.opentrv.org.uk" target="_blank">OpenTRV-dev@lists.opentrv.org.uk</a><br>
<a href="http://lists.opentrv.org.uk/listinfo/opentrv-dev" rel="noreferrer" target="_blank">http://lists.opentrv.org.uk/listinfo/opentrv-dev</a><br>
</blockquote></div>