Author Topic: Rs232 control for beginner  (Read 1804 times)

Offline ChrisNZ

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
Rs232 control for beginner
« on: August 27, 2016, 08:14:48 pm »
Hi guys

I'm becoming increasingly frustrated with my Vera Edge (UI7) as I need to control two of my devices via RS232 but this seems impossible for someone without programming knowledge.

I have a usb to rs232 adaptor and serial cable connected to the first device... An unbranded HDMI matrix. What I want to do is send simple hex commands to the device via serial. I have the correct baud rate, parity, etc.

I also have a Nuvo Essentia audio distribution system for which there is no plugin and would like to be able to do the same for this if anyone has any experience on this one?

Have read through the forums and there doesn't appear to be any step by step guide on how to send a serial command or the programming code required.

I'm reasonably savvy but can't seem to get anywhere. Why is this so hard Vera??

Any help from the community would be much appreciated! If someone could advise the process from ensuring the correct setup of the serial adaptor through to the code to execute sending the command I would be forever grateful!

Marc Shenker

  • Guest
Re: Rs232 control for beginner
« Reply #1 on: August 29, 2016, 04:35:10 pm »
Hi Chris, unfortunately without a plugin for those devices you will not be able to control them with Vera. Even if you are able to establish communication you then need to have a command structure and interface in place to be able to control them. There are instructions on how to create a plugin at support.getvera.com.

Offline wilme2

  • Hero Member
  • *****
  • Posts: 1154
  • Karma: +23/-13
Re: Rs232 control for beginner
« Reply #2 on: August 29, 2016, 05:25:22 pm »
Hi guys

I'm becoming increasingly frustrated with my Vera Edge (UI7) as I need to control two of my devices via RS232 but this seems impossible for someone without programming knowledge.

I have a usb to rs232 adaptor and serial cable connected to the first device... An unbranded HDMI matrix. What I want to do is send simple hex commands to the device via serial. I have the correct baud rate, parity, etc.

I also have a Nuvo Essentia audio distribution system for which there is no plugin and would like to be able to do the same for this if anyone has any experience on this one?

Have read through the forums and there doesn't appear to be any step by step guide on how to send a serial command or the programming code required.

I'm reasonably savvy but can't seem to get anywhere. Why is this so hard Vera??

Any help from the community would be much appreciated! If someone could advise the process from ensuring the correct setup of the serial adaptor through to the code to execute sending the command I would be forever grateful!


Hi Chris, unfortunately without a plugin for those devices you will not be able to control them with Vera. Even if you are able to establish communication you then need to have a command structure and interface in place to be able to control them. There are instructions on how to create a plugin at support.getvera.com.

I am going to disagree that you need a plug-in - this can be accomplished with relatively simple LUA if you want to write a scene and know the exact hex.  But you will have to do a little programming.  Personally I would not do the USB to RS232, as that requires physical proximity and sending commands to the Vera serial port.  I instead use Global Cache IP2SLs which creates an IP interface on anywhere your network that you can forward the Hex to the RS232 port. 

For example on one of my projects, see http://forum.micasaverde.com/index.php/topic,22695.msg194049.html#msg194049

« Last Edit: August 29, 2016, 05:30:36 pm by wilme2 »
Long Live UI5!  (OK finally made the switch to UI7 in January 2018, and am pretty happy....)

Offline ChrisNZ

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
Re: Rs232 control for beginner
« Reply #3 on: September 06, 2016, 01:28:22 am »
Thanks for the advice, will play around with it and see what is possible.

Has anyone got a plugin working for a Nuvo audio system?

Offline Bobone

  • Newbie
  • *
  • Posts: 19
  • Karma: +0/-0
Re: Rs232 control for beginner
« Reply #4 on: March 09, 2018, 07:13:36 am »
Any progress with this project, i.e. communicating with a Nuvo system?

Offline parkerc

  • Sr. Hero Member
  • ******
  • Posts: 2385
  • Karma: +33/-45
  • Life Moves Pretty Fast....
    • Node Central
Re: Rs232 control for beginner
« Reply #5 on: March 29, 2018, 05:10:21 pm »


If it helps others - I control RS232 devices with Vera by using RaspberryPis running Ser2net (with a usb to serial cable connected to that and then into the target device e.g a HDMI martrix)

The PI then acts as a reference point on my local network for me to send commands to, removing the need for anything to connect directly to Veras USB ports  . (See post here for examples of the code I worked with, plus there are quite a few other examples on this forum that will help too)

http://forum.micasaverde.com/index.php/topic,50773.msg329444.html#msg329444

To then carry out commands , I create scenes that run the required code  hex, ascii value to the target device - all via the Pi ..

« Last Edit: March 29, 2018, 05:26:14 pm by parkerc »