To receive notifications about scheduled maintenance, please subscribe to the mailing-list gitlab-operations@sympa.ethz.ch. You can subscribe to the mailing-list at https://sympa.ethz.ch

Commit bb4cf06e authored by Reto Da Forno's avatar Reto Da Forno

install script for DAQ glossy sync improved

parent 55fa4846
#!/bin/bash
NODEID=029
if [ "$#" -ne 1 ]; then
echo "usage: install.sh [observer ID]"
exit 1
fi
re='^[0-9]{3}$'
if ! [[ $1 =~ $re ]] ; then
echo "observer ID must be a 3 digit integer number (e.g. 029)"
exit 2
fi
NODEID=$1
tos-set-symbols --objcopy msp430-objcopy --objdump msp430-objdump --target ihex glossy-test.exe glossy-test.hex-$NODEID TOS_NODE_ID=$NODEID
scp glossy-test.hex-$NODEID flocklab-observer$NODEID:/tmp/
scp glossy-test.hex-$NODEID root@flocklab-observer$NODEID:/tmp/
ssh root@flocklab-observer$NODEID "/etc/init.d/synclog.sh stop"
ssh root@flocklab-observer$NODEID "export PYTHONPATH=/media/card/opkg/usr/lib/python2.6/; /usr/bin/python -m msp430.bsl5.uart -p /dev/flocklab/usb/daq2 -i ihex -s 115200 -e -S -V -P /tmp/glossy-test.hex-$NODEID";
ssh root@flocklab-observer$NODEID "/etc/init.d/synclog.sh start"
\ No newline at end of file
ssh root@flocklab-observer$NODEID "/etc/init.d/synclog.sh start"
......@@ -3,10 +3,10 @@
* __author__ = "Christoph Walser <walser@tik.ee.ethz.ch>"
* __copyright__ = "Copyright 2010, ETH Zurich, Switzerland, Christoph Walser"
* __license__ = "GPL"
* __version__ = "$Revision$"
* __date__ = "$Date$"
* __id__ = "$Id$"
* __source__ = "$URL$"
* __version__ = "$Revision: 2826 $"
* __date__ = "$Date: 2014-05-16 10:46:15 +0200 (Fri, 16 May 2014) $"
* __id__ = "$Id: testbedstatus.php 2826 2014-05-16 08:46:15Z rlim $"
* __source__ = "$URL: svn://svn.ee.ethz.ch/flocklab/trunk/server/webserver/user/testbedstatus.php $"
*/
?>
<?php require_once('include/layout.php');require_once('include/presets.php');
......@@ -125,7 +125,8 @@ $javascript = '<link rel="stylesheet" href="css/ui-lightness/jquery-ui-1.8.20.cu
LEFT JOIN `flocklab`.`tbl_serv_tg_adapt_list` AS c ON obs.slot_3_tg_adapt_list_fk = c.serv_tg_adapt_list_key
LEFT JOIN `flocklab`.`tbl_serv_tg_adapt_types` AS slot3 ON c.tg_adapt_types_fk = slot3.serv_tg_adapt_types_key
LEFT JOIN `flocklab`.`tbl_serv_tg_adapt_list` AS d ON obs.slot_4_tg_adapt_list_fk = d.serv_tg_adapt_list_key
LEFT JOIN `flocklab`.`tbl_serv_tg_adapt_types` AS slot4 ON d.tg_adapt_types_fk = slot4.serv_tg_adapt_types_key
LEFT JOIN `flocklab`.`tbl_serv_tg_adapt_types` AS slot4 ON d.tg_adapt_types_fk = slot4.serv_tg_adapt_types_key
WHERE obs.status!='disabled'
ORDER BY obs.observer_id
;";
$rs = mysql_query($sql) or flocklab_die('Cannot get observer information from database because: ' . mysql_error());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment