We have moved at community.getvera.com

Author Topic: Provide ability to Create/Register IP-based Serial Port directly in Vera UI  (Read 26555 times)

Offline guessed

  • Community Beta
  • Master Member
  • ******
  • Posts: 5301
  • Karma: +92/-22
  • Release compat is not a bolted-on afterthought
Vera can automatically "detect", and register, Local USB-Serial ports.  This works reasonably well.

There are cases though where the Serial Port is "remote", running on some IP Host/Port combination somewhere.

eg. ser2net on a remote Box, WIZnet 110SR Hardware running remotely (etc)

In each case, the configuration of these boxes is done completely outside of Vera, and we simply need to be able to register an IP Address and Port combination with Vera to get a "Remote" serial port (so that TV's, Amps, Alarm Panels etc can be attached)

More "specific" Serial port registrations, like the GC100 one, can be handled via a Device-specific plugin, but it doesn't make sense to proliferate a bunch of these for "standard" devices using only Host/Port combo's (no security)

Can you add a feature to let folks "(Add Serial Port)", providing only the IP-Address and Port combination?

Offline denix

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1088
  • Karma: +1/-0
I second that! Thanks.
Veras (1, 2, 3, Lite, Plus), lots of different Z-Wave modules, Luup plugins and theater/security integration.

Offline ChrisUSI

  • Newbie
  • *
  • Posts: 19
  • Karma: +0/-0
I third that! Thanks.

Offline cj

  • Hero Member
  • *****
  • Posts: 1252
  • Karma: +1/-0
I agree that this feature would be used by users and I've added a mantis feature request for it: http://bugs.micasaverde.com/view.php?id=769

Offline guessed

  • Community Beta
  • Master Member
  • ******
  • Posts: 5301
  • Karma: +92/-22
  • Release compat is not a bolted-on afterthought
Thanks CJ, appreciated.  Will check back in a month or so, and write a "manual" version if none exists at that time.

Offline guessed

  • Community Beta
  • Master Member
  • ******
  • Posts: 5301
  • Karma: +92/-22
  • Release compat is not a bolted-on afterthought
Attached are some stubs for a short-term workaround for this problem until something more formal is built into Vera. 

The code is hardwired to port 5000, and would need to be parametized (or simply edited for the desired port) as this is the port used by the WIZnet SR110 Ethernet-Serial device I use.

Once installed, the "ip" address needs to be configured before it'll start.  An error will result during startup if this isn't set.

The code is rough and ready, but I've successfully used it to wire up my TV.


Don't forget to goto the Serial Port configuration and set the rest of the settings, as the Plugin doesn't do it all just yet (its a stub)

Offline 325xi

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1101
  • Karma: +0/-0
  • V1, V2, still V2...
Thanks! :)

Offline guessed

  • Community Beta
  • Master Member
  • ******
  • Posts: 5301
  • Karma: +92/-22
  • Release compat is not a bolted-on afterthought
You're welcome.  The old mechanism was too error prone, and took me a while to work out with @strangely.  This should save a bunch of pain until the real thing comes along.

Offline guessed

  • Community Beta
  • Master Member
  • ******
  • Posts: 5301
  • Karma: +92/-22
  • Release compat is not a bolted-on afterthought
@CJ, Aaron closed out

    http://bugs.micasaverde.com/view.php?id=769

as he wasn't clear on what was being asked for.  It doesn't look like I have the permissions to re-open the case (and provide a Backpointer to this discussion).

Can you re-open it?

Offline guessed

  • Community Beta
  • Master Member
  • ******
  • Posts: 5301
  • Karma: +92/-22
  • Release compat is not a bolted-on afterthought
rev'd the IPSerial code to better support UI4, as well as provide the ability to specify the Port# through configuration (it defaults to 5000 per before) for those running other types of IP Serial attached devices... and needing this MiOS work-around.

It also supports multi-port Ethernet-to-Serial devices now, like the WIZnet WIZ125SR, using a comma-separated list of port#'s.


MCV, CJ: Can you please re-open

     http://bugs.micasaverde.com/view.php?id=769

with the extra info from this thread?  It would be better if this were more native functionality in MiOS's native Serial Port dialog.

Offline strangely

  • Beta Testers
  • Master Member
  • *****
  • Posts: 3722
  • Karma: +34/-2
  • Vera 1,3 & V light
They should at least add it as a plugin in the MiOS marketplace!
Kwickset locks, HA01C, HA14C, HA02C, HA03C, HA05C, HA04C, HA07C, HA09C, Aeon HEM, GE 45604, 45606, 45609, ZDP100, VRF01-1LZ, WDTC-20, HA18WD, WDHA-12R, HRDS1, HM-TS001, AC1-ZW, TV-IP110, BL-C210A, LUUP control- EtherRain8, DSC Alarm, HDMI matrix, HR24-200, Panasonic TV, SQblaster

Offline guessed

  • Community Beta
  • Master Member
  • ******
  • Posts: 5301
  • Karma: +92/-22
  • Release compat is not a bolted-on afterthought
Well, I now have the Mantis privs to open/assign/edit things so I updated the entry myself :)

Offline strangely

  • Beta Testers
  • Master Member
  • *****
  • Posts: 3722
  • Karma: +34/-2
  • Vera 1,3 & V light
Uh oh :)
Kwickset locks, HA01C, HA14C, HA02C, HA03C, HA05C, HA04C, HA07C, HA09C, Aeon HEM, GE 45604, 45606, 45609, ZDP100, VRF01-1LZ, WDTC-20, HA18WD, WDHA-12R, HRDS1, HM-TS001, AC1-ZW, TV-IP110, BL-C210A, LUUP control- EtherRain8, DSC Alarm, HDMI matrix, HR24-200, Panasonic TV, SQblaster

Offline rodatboat

  • Newbie
  • *
  • Posts: 10
  • Karma: +1/-0
Re: Provide ability to Create/Register IP-based Serial Port directly in Vera UI
« Reply #13 on: December 20, 2011, 11:53:04 am »
I have only had my Vera for about a month.  I have only added plugins from the Mios MarketPlace and only added Zwave devices.

The WIZnet SR110 has been configured and tested with my Windows PC using two instance of HyperTerminal (one Serial and one IP) and works fine.

The files D_IPSerial.xml and I_IPSerial.xml have been downloaded and added to the LUUP files of the Vera from the development window.  I have attempted to add a device via the development window but I keep keeping a “XML Error” when I click the “Create Device” button.

For the Device Type I used “urn:schemas-micasaverde-com:device:MultiIO:1”.  I entered the device xml file (D_IPSerial.xml ), implementation xml file (I_IPSerial.xml), IP address and MAC address.

Any help would be much appreciated.  Do I need to modify the XML files?  The port is correct but I’m not sure what the UDN code is in the device files.

Thanks,
Rory

Offline guessed

  • Community Beta
  • Master Member
  • ******
  • Posts: 5301
  • Karma: +92/-22
  • Release compat is not a bolted-on afterthought
Re: Provide ability to Create/Register IP-based Serial Port directly in Vera UI
« Reply #14 on: December 20, 2011, 12:07:17 pm »
When creating the device, fill in the fields per this:
    http://code.mios.com/trac/mios_ipserial/wiki/Installation-UI4

or the generic version of it:
    http://wiki.micasaverde.com/index.php/Install_LUUP_Plugins

No other fields need to be entered, other than described in the above links.

That said, given the error message you're getting, I'd suspect that there was an issue in the way the Plugin files were downloaded and that you may not have the XML version of them.  Please re-download the ZIP version, and then expand.  I updated the plugin over the weekend, and converted the install instructions to use a ZIP-file link instead, which should give you a clean set of files.