Vera Edge cannot detect AD2USB

General Discussion

Vera Edge cannot detect AD2USB

Postby kevin » Fri Jan 09, 2015 2:00 pm

The Vera Edge in its current state does not detect the AD2USB - and since they have changed the structure of their filesystem and boot scripts, the instructions for the Vera Lite do not apply, so here are instructions for getting the AD2USB working with the Vera Edge:

ssh into your Vera Edge as root

cd /usr/bin
rm Start_serproxy.sh
vi Start_serproxy.sh
<paste script below>
<save + exit (esc :wq enter)
chmod +x Start_serproxy.sh
restart luup

Code: Select all
#!/bin/sh

# SVN : $Id: Start_serproxy.sh 8764 2013-07-31 12:58:27Z florin $

#Copyright (C) 2008 Mi Casa Verde, Inc., a Nevada Corporation
#                    www.micasaverde.com
#           1 - 702 - 4879770 / 866 - 966 - casa
#This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License.
#This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
#without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

InstID=$(cat /etc/cmh/PK_AccessPoint)

while [[ ! -f /var/run/cmh.stop ]]; do
        # Intentionally done in-loop b/c the device might
        # not be inserted at boot, and this will pick it up on Lua reload
        ProdID=$(lsusb|awk -F '[: ]' '/0403/ { print $8; }')
        rmmod ftdi_sio
        insmod ftdi_sio vendor=0x0403 product=$ProdID
        TTYNode=$(dmesg|awk '/ now attached to/ { print $NF; }'|tail -n 1)
        kill $(ps ax|awk "/serproxy/ /!$$/ { print $1; } " 2>/dev/null) 2>/dev/null
        kill $(ps ax|awk '/ser2net/ { print $1; }' 2>/dev/null) 2>/dev/null
        sleep 5 # Give LuaUPnP some time to startup
        echo "Running serproxy:   /usr/bin/serproxy 127.0.0.1 127.0.0.1 $InstID /dev/${TTYNode}"
        /usr/bin/serproxy 127.0.0.1 127.0.0.1 $InstID /dev/${TTYNode}
        sleep 1
done


To put the original back in-place:

rm /usr/bin/Start_serproxy.sh
ln -s /mios/usr/bin/Start_serproxy.sh /usr/bin
restart luup


Thanks to user sound-mind @ http://forum.micasaverde.com/index.php/ ... #msg209964
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: Vera Edge cannot detect AD2USB

Postby HerbertSherbert » Thu Apr 09, 2015 3:58 pm

When pasting this code into VI, it staggers about 10 spaces compounding for every line.

Is this correct? I am concerned about bricking my Vera Edge if this is not correct being a newbie.

thanks

added. Well,I put in that code and my Vera Edge could not detect my AD2USB. I removed the code using the described method and it still did not work. I deleted the plug-in and added it back. That did not help either.

I don't even know if this code is applicable. It is pretty old.
Last edited by HerbertSherbert on Thu Apr 09, 2015 6:07 pm, edited 1 time in total.
HerbertSherbert
newt
newt
 
Posts: 8
Joined: Fri Apr 03, 2015 8:56 pm

Re: Vera Edge cannot detect AD2USB

Postby mathewss » Thu Apr 09, 2015 4:00 pm

With VI you can disable indenting by pressing without quotes before you press i for insert. ':set noai' and then 'set paste' then you can press i to insert and paste your code in and it wont mux it up.


Re
Sean M
mathewss
Moderator
Moderator
 
Posts: 188
Joined: Fri Dec 06, 2013 11:14 am

Re: Vera Edge cannot detect AD2USB

Postby HerbertSherbert » Thu Apr 09, 2015 6:11 pm

thanks Sean



Tried Code again with no success and thunder storm hitting so that's it for the night.

FYI, I had the adapter working well on my PC. I am wondering if there is a manual about getting this to work available that has not crossed my path.
HerbertSherbert
newt
newt
 
Posts: 8
Joined: Fri Apr 03, 2015 8:56 pm

Re: Vera Edge cannot detect AD2USB

Postby kevin » Thu Apr 09, 2015 7:10 pm

Reboot in this instance should be "Restart Luup" I'm sorry for the confusion and will update the directions. Let me know if that helps! First, I would check for software updates from the Vera team to see if they have resolved the issues officially before trying these last resort steps.
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: Vera Edge cannot detect AD2USB

Postby HerbertSherbert » Fri Apr 10, 2015 9:09 am

Restart Luup or "restart luup" gives me command not found.

I called Vera and they fixed me up. They had to update the usb drivers in my unit. I have different code under the script file listed above but the code is less. I suspect the Ademco Plug-in must have added their own. In any case, I am up and going with the help of Vera.
HerbertSherbert
newt
newt
 
Posts: 8
Joined: Fri Apr 03, 2015 8:56 pm

Re: Vera Edge cannot detect AD2USB

Postby kevin » Fri Apr 10, 2015 10:23 am

Ya, this was a workaround by Vera users to get the device to work since Vera shipped a product that wasn't working correctly - glad you got it working - definitely recommend staying with official software rather than workarounds.
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: Vera Edge cannot detect AD2USB

Postby kevin » Thu May 04, 2017 7:32 am

If the AD2USB works on a PC, then I suggest contacting Vera support.
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 11 guests

cron