[OpenTRV-dev] Dongle
Damon Hart-Davis
dhd at exnet.com
Mon Jan 11 12:33:19 UTC 2021
Hi,
OK, links certainly sound like a good idea. Maybe I could take a fork at the same time just for the purpose of stability of the referents: dunno!
But it may also be good to copy some core chunks across to a ‘contrib’ area which might make things easier to find in a hurry. If so that then we should probably ensure that a matching Apache 2 licence is on it to avoid head scratching. Would you object to that?
In any case, thank you for doing the work and making it available! Hurrah! I thought that the CC1101 couldn’t do the job at all for a start.
Rgds
Damon
> On 11 Jan 2021, at 12:25, <christoph at winterstiger.at> <christoph at winterstiger.at> wrote:
>
> Hi Damon,
>
> Sure, I’m happy for my code to get copied around. Most of it is now here: wintersteiger/wlmcd: @wintersteiger's library for monitoring and configuring devices (github.com) <https://github.com/wintersteiger/wlmcd>
>
> It contains a bunch of unrelated stuff too, so it may be better to extract only the radbot-specific bits for inclusion in the Wiki. Of course, we can also just add links to the relevant files on GitHub.
>
> Cheers,
> Christoph
>
> From: OpenTRV-dev <opentrv-dev-bounces at lists.opentrv.org.uk> On Behalf Of Damon Hart-Davis
> Sent: 07 January 2021 19:23
> To: Closed list for developer discussions <opentrv-dev at lists.opentrv.org.uk>
> Subject: Re: [OpenTRV-dev] Dongle
>
> Purged of third-party copyright material, would you consider adding that to an appropriate place in our Wiki or one of the GitHub repos?
>
> Good to have register settings for another radio widely available (and the Pi stuff)!
>
> 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...
>
> Rgds
>
> Damon
>
>
>
>> On 7 Jan 2021, at 19:14, christoph at winterstiger.at <mailto:christoph at winterstiger.at> wrote:
>>
>> Hi Tristan,
>>
>> 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.
>>
>> 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.
>>
>> 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.
>>
>> I’ll try to find some time over this or the next weekend to clean up my code so I can publish it.
>>
>> Cheers,
>> Christoph
>>
>> From: OpenTRV-dev <opentrv-dev-bounces at lists.opentrv.org.uk <mailto:opentrv-dev-bounces at lists.opentrv.org.uk>> On Behalf Of Tristan Keen
>> Sent: 30 December 2020 10:33
>> To: opentrv-dev at lists.opentrv.org.uk <mailto:opentrv-dev at lists.opentrv.org.uk>
>> Subject: Re: [OpenTRV-dev] Dongle
>>
>> Hi Christoph,
>>
>> 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".
>>
>> 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.
>>
>> 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...
>>
>> Thanks in advance,
>> Tristan Keen.
>>
>> <cc1101-radbot.cfg>_______________________________________________
>> OpenTRV-dev mailing list
>> OpenTRV-dev at lists.opentrv.org.uk <mailto:OpenTRV-dev at lists.opentrv.org.uk>
>> http://lists.opentrv.org.uk/listinfo/opentrv-dev <http://lists.opentrv.org.uk/listinfo/opentrv-dev>
>
> _______________________________________________
> OpenTRV-dev mailing list
> OpenTRV-dev at lists.opentrv.org.uk <mailto:OpenTRV-dev at lists.opentrv.org.uk>
> http://lists.opentrv.org.uk/listinfo/opentrv-dev <http://lists.opentrv.org.uk/listinfo/opentrv-dev>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opentrv.org.uk/pipermail/opentrv-dev/attachments/20210111/c7eb901e/attachment.html>
More information about the OpenTRV-dev
mailing list