secure rf switch to rs232 gateway (for switch id recognition). Any Idea? - Page 1
Forum section: electronics / projects

author: rastislav
author_rank: Newbie
timestamp: December 29, 2015, 01:10:51 pm
content: Hello,I'm trying to find/do secure RF switch (long term battery life) along with RF -> RS232 gateway (It's going to connect to PLC and UART or Modbus/RTP or TCP are ok)My idea was to replicate what EnOcean has (they offer batteryless switch) and EnOcean to rs232 gateway. However it costs more coin I'm willing to spend.http://shop.loxone.com/enen/enocean-switch.htmlhttp://www.intelcontrols.com/STC65-RS485I've seen some ideas done using rf modules in free frequencieshttp://www.romanblack.com/RF/cheapRFmodules.htmWhat I've seen is, that someone added fixed serial Id into transmitter which is sent when switch is pressed to receiver. However I don't see how security can be added to these and is probably the hardest thing to do correctly DYI (or am I wrong and some protocol exists?)http://www.circuitstoday.com/remote-control-circuit-through-rf-without-microcontrollerOn the example above, receiver would be tied to rs232 to provide different codes depending on button pressed instead of direct output control.Range of 15m indoors and 20m outside is enough for me.EDIT: found module only from enOcean for 31 pounds. Does some cheap enOcean -> rs232 or rs485 gateway exist? Or can be made? Haven't found protocol which is used there yet...

author: nfmax
author_rank: Super Contributor
timestamp: December 29, 2015, 01:36:57 pm
content: I would recommend against trying to 'roll your own' security, it is much harder than it looks. Probably the best approach is the Z-wave or Z-wave-plus ecosystem, but it may be too expensive for you.

author: bookaboo
author_rank: Frequent Contributor
timestamp: December 29, 2015, 01:41:26 pm
content: LPRS ERIC modules mention encryption options in the datasheet:http://www.lprs.co.uk/resource-centre/downloads/eric-software-datasheets/

author: madires
author_rank: Super Contributor
timestamp: December 29, 2015, 01:53:20 pm
content: For RF remote control (one-way) the rolling code method is mostly used. There are dedicated chips for that, like in garage door openers.

author: tggzzz
author_rank: Super Contributor
timestamp: December 29, 2015, 02:46:34 pm
content: The first thing you have to do is define the security threats that matter to you. Only then can you start to define whether a particular solution is "secure".

author: rastislav
author_rank: Newbie
timestamp: December 29, 2015, 03:10:34 pm
content: @bookaboo Thanks for showing LPRS ERIC modules. They indeed have AES, which can encrypt communication. It uses msp430 which is great since I'm familiar with them. Eavesdropping and replyattacks can be easily coped with these modules. With operation only during button presses I estimate Li-Ion batery (1 time use) can last quite a long time.I'd say, having RF link to home automation using these modules has it's advantage of potentially being quite secure if implemented correctlyOnly disadvantage I see, that it can only be serviced by me. However it will not control anything critical, only add comfort to have switch a lot closer to bed(and it will do what it is programmed to do = security is a must)@madires Yes, I was looking into garage openers as well, but haven't been successful with finding receiver with rs232 output, only fixed output contacts. That would save me lot of $ if such thing existed