We have moved at community.getvera.com

Author Topic: Best reference bindings using serial communication  (Read 707 times)

Offline lolodomo

  • Beta Testers
  • Master Member
  • *****
  • Posts: 3484
  • Karma: +74/-10
Best reference bindings using serial communication
« on: April 01, 2015, 06:49:38 pm »
I was asking myself which are the bindings using serial communication and which one could I take as skeleton for a new binding (binding to control an alarm panel) ?

Offline guessed

  • Moderator
  • Master Member
  • *****
  • Posts: 5301
  • Karma: +92/-22
  • Release compat is not a bolted-on afterthought
Re: Best reference bindings using serial communication
« Reply #1 on: April 01, 2015, 09:49:20 pm »
The DSC Alarm Binding might be a reasonable option.  It's got some stuff that can definitely be trimmed out, but it's got the serial handling (since it deals with IT100's over Serial, but Envisalink modules over Ethernet)

Offline futzle

  • Beta Testers
  • Master Member
  • *****
  • Posts: 3260
  • Karma: +192/-9
Best reference bindings using serial communication
« Reply #2 on: April 01, 2015, 10:43:56 pm »
Take a moment to think about the protocol of your alarm panel. Is it ASCII and line-terminated? Is it wrapped in STX/ETX bytes? If so you can get Vera to wrap up a single packet into one <incoming> call. If not you will have to use the "raw" protocol and build up your message one byte at a time. My Caddx alarm plugin is in this latter category.

Edit: I didn't see that you were asking this in the OpenHAB subforum. My reply might not be as relevant as I thought.