--
http://nodered.org
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Though if they do fail, we would rather get a bug report and fix it...
Well it is certainly cheap though the information leaves a lot to be desired.
...
--
http://nodered.org
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Here is the fix:
--
Mike/Julian,I've been doing a bit of investigation into the PT2262/PT2272 chip set. One of the more useful links I found is http://www.enide.net/webcms/index.php?page=2262-2272-codec which explains how the code is read by the chip and what the transmitted pulse patterns look like. Thinking round the problem a bit, I am feeling my way towards an implementation that would allow node-red-contrib-rfxcom to support them 'gracefully'. My current ideas are:
..
Rather than a config node.... Would it makes sense to consider a generic dictionary node ?
(Though the change node now allows multiple rules so may cover it ??? )
Well, that seems an impressive piece of thinking Max!
Of course, the "best" solution would be to be able to produce some output that could be sent to Bert for him to add to the firmware for future support!! ;)
Failing that though, your approach seems workable at first sight. It would certainly seem to make the rfxtrx+NR+your nodes into something more generic and powerful for "unsupported" 433MHz transceivers which must be a good thing. It would be great to have another low-cost option. These chips seem to be pretty cheap. Not sure what the power management is like but if we can make multiple £5 transmitters talk to the rfxtrx, we've probably got a winner.
Like the idea of using a mapping dictionary to turn the raw data into something more sensible. One thought though - would it be better to keep the raw nodes even more generic so that they can pick up anything recognisable by the rfx? That way, your raw nodes could be used instead of the rfxmgr software and save us the trouble of swapping wires round if we just want to look at the raw output or send something a bit different.
There might even be a future extension to allow us to send and save mode changes to the rfx? The Windows software is good but the ability to do everything from NR on any supported platform would be really nice. Just a thought.
Hmm a "swap" node... Or maybe just an extra feature required of the change node... (Two-way)
(I have no objection to you doing it inside the node - just keen to check of there is more genetic functionality that may be usefully broken out)
Like the idea of using a mapping dictionary to turn the raw data into something more sensible. One thought though - would it be better to keep the raw nodes even more generic so that they can pick up anything recognisable by the rfx? That way, your raw nodes could be used instead of the rfxmgr software and save us the trouble of swapping wires round if we just want to look at the raw output or send something a bit different.
On Tuesday, 5 May 2015 21:42:36 UTC+1, Julian Knight wrote:Well, that seems an impressive piece of thinking Max!
Of course, the "best" solution would be to be able to produce some output that could be sent to Bert for him to add to the firmware for future support!! ;)The PT2262 protocol is already fully supported by the RFXtrx433 firmware as the 'lighting4' packet type. The problem is, the mapping between the 24 available message bits and the 'address' and 'command' functions is completely non-standardised across the many devices using this chip, so it can't be decoded in the firmware. However, we can do it in Javascript!
Failing that though, your approach seems workable at first sight. It would certainly seem to make the rfxtrx+NR+your nodes into something more generic and powerful...
Max
9 May 15:30:03 - [info] [rfx-lights-in:Listen to RFX: Lights] connecting to /dev/ttyUSB0
9 May 15:30:03 - [info] serial port /dev/ttyAMA0 opened at 115200 baud 8N1
[rfxcom] on /dev/ttyUSB0 - Sent : 0A,14,00,00,88,D8,D7,03,00,00,00
[rfxcom] on /dev/ttyUSB0 - Received: 04,02,01,00,00
[rfxcom] on /dev/ttyUSB0 - Received: 0A,52,01,6D,30,01,00,D8,30,01,59
[rfxcom] on /dev/ttyUSB0 - Sent : 0D,00,00,01,00,00,00,00,00,00,00,00,00,00
[rfxcom] on /dev/ttyUSB0 - Sent : 0D,00,00,02,02,00,00,00,00,00,00,00,00,00
9 May 15:30:09 - [info] [rfx-lights-in:Listen to RFX: Lights] connected: Serial port /dev/ttyUSB0
[rfxcom] on /dev/ttyUSB0 - Received: 0D,01,00,02,02,53,F0,00,02,2C,00,01,02,00
[rfxcom] on /dev/ttyUSB0 - Received: 0B,11,00,00,00,00,A9,F8,02,01,0F,60
[rfxcom] on /dev/ttyUSB0 - Received: 0B,11,01,01,00,00,81,C0,02,01,0F,30
[rfxcom] on /dev/ttyUSB0 - Received: 0A,52,01,02,30,01,00,D8,30,01,49