Vera Edge cannot detect AD2USB
Posted: 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
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
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