Get Vera devices to talk to ser2sock

General Discussion

Get Vera devices to talk to ser2sock

Postby kevin » Fri Sep 05, 2014 11:01 am

If you set raw_device_mode in your ser2sock configuration to 1 or pass in -0 (zero) to the ser2sock command line, the Vera can talk to the AD2* devices via the ser2net option - just give it the IP address and port of your ser2sock.


In Summation:
raw_device_mode = 1
OR
command line argument -0 (zero)

will allow Vera to talk to remote AD2 devices via their ser2net option.

Instructions for setup of Vera as well as patched driver file: http://forum.micasaverde.com/index.php/ ... #msg272946
Not an employee of the company. Just here to help and keep things clean.
kevin
Platinum Nut
Platinum Nut
 
Posts: 994
Joined: Fri Aug 16, 2013 10:10 am

Re: Get Vera devices to talk to ser2sock

Postby xuniman » Fri Sep 05, 2014 1:29 pm

Thanks Kevin - for all the Vera folks, there is a thread in the Vera forums, started by hugheaves, that describes how to set up the Vera side of this. You need to use a modified lua file that hugheaves has attached to the post in order for Vera to use the IP port instead of a serial port for the ad2usb Vera app. You can ignore his section on adding ser2net if you perform the modification Kevin talked about above using a ssh session to your pi and the "sudo nano /etc/ser2sock/ser2sock.conf" command to edit the set2sock config file. The raw entry line is there already, you just need to change it from 0 to 1

Thread - http://forum.micasaverde.com/index.php/ ... 672.0.html
xuniman
Junior Nut
Junior Nut
 
Posts: 20
Joined: Tue Apr 01, 2014 5:27 pm

Re: Get Vera devices to talk to ser2sock

Postby kevin » Fri Sep 05, 2014 1:55 pm

Just as a note - this will be the default option set next time we release a new image. Will not have any adverse affects on anything else except add support for Vera connections out of the box as long as you've configured your Vera and ad2 plugin correctly.
Not an employee of the company. Just here to help and keep things clean.
kevin
Platinum Nut
Platinum Nut
 
Posts: 994
Joined: Fri Aug 16, 2013 10:10 am

Re: Get Vera devices to talk to ser2sock

Postby xuniman » Fri May 15, 2015 12:52 pm

The Vera AD2USB plugin has been updated to fully support the AD2USB/Raspbarry Pi combination over Ethernet. It should also fully support the AD2Pi version as well but I don't have one to test. mcv.andrei updated the plugin to accept IP addresses for communications to the Alarm Panel and I have tested it with excellent results. The instructions are in reply #15 to the thread I posted above.

In short you need to connect a AD2USB similar to this

[Vista 20P] <---Alarm Bus---> [AD2USB] <---USB---> [Raspberry Pi ] <---Ethernet---> [Vera]

You can then follow the AlarmDecoder instructions to get the Raspberry PI working with the Alarm Decoder Web App. You will need to set the Ethernet access and ser2sock port during the configuration.

Then install the newest version of the plugin for Vera; follow it's directions for setting up the Alarm Panel Device and the Alarm Partition device (enter keypad addresses and fill out the cheat sheet, at minimum). You will also have to find the variable "overNetwork" (it is located on the advanced - variables screen of the Alarm Panel Device for UI7) and set it to 1 to enable IP communications. Then input the IP address in the appropriate filed in the advanced tab of the Alarm panel device with the ser2sock port you defined in the AD2USB setup portion of the AlarmDecoder web app (it should look something like 192.168.1.100:10000 which is the IP address of the Raspberry Pi with a colon and then the port address of ser2sock).

Once you do that you should be good to go. Vera will need a couple of LUUP reloads as the changes are saved and the new devices corresponding the Zones you entered in the cheat sheet are created. You can do LUUP reloads by going to APPS-Develop APPS-Serial Port Configuration-Reload LUUP.

Enjoy!
xuniman
Junior Nut
Junior Nut
 
Posts: 20
Joined: Tue Apr 01, 2014 5:27 pm

Re: Get Vera devices to talk to ser2sock

Postby kevin » Sat May 16, 2015 10:48 am

Thanks for the update. Just to clarify, it will work with any AD2USB, AD2Serial, or AD2Pi that is exposed via ser2sock - the key here is ser2sock. You can use whichever device you would like :)
Not an employee of the company. Just here to help and keep things clean.
kevin
Platinum Nut
Platinum Nut
 
Posts: 994
Joined: Fri Aug 16, 2013 10:10 am

Re: Get Vera devices to talk to ser2sock

Postby kevin » Thu Mar 03, 2016 5:34 pm

Here is a link to an updated lua file for supporting the 2.2a.8.2 and beta firmwares http://forum.micasaverde.com/index.php/ ... #msg272946 also with instructions.

Or see this FAQ entry: https://www.alarmdecoder.com/wiki/index.php/Setup_Vera
Not an employee of the company. Just here to help and keep things clean.
kevin
Platinum Nut
Platinum Nut
 
Posts: 994
Joined: Fri Aug 16, 2013 10:10 am


Return to General

Who is online

Users browsing this forum: No registered users and 6 guests

cron