Sampl-sensor-andrew

Version 3 (Anthony Rowe, 08/11/2009 09:41 pm) → Version 4/11 (Anthony Rowe, 08/11/2009 09:41 pm)


== SAMPL Sensor Andrew ==

svn checkout svn://sensor.andrew.cmu.edu:/srv/svn/repos/sensor-andrew

'''Step 1: Install Loudmouth'''
* Install: glib2, expat, gnutls
*
{{{
cd sensor-andrew/sox/libs/loudmouth
./configure
make
sudo make install
}}}

'''Step 2: Install C Sox Library'''
* Double check the path of GLIB, GNUTLS, LOUDMOUTH etc in vars.mk
* This may work fine with the default values
*
{{{
cd sensor-andrew/sox/libs/lib_c
make
sudo make install
}}}

'''Step 3: Build FireFly sox-gateway'''
* In this step build "gateway_client" which will be used to communicate to the SLIPstream server and then in turn to the FireFly gateway node
* edit makefile to correctly set XMPP_LIBRARY_PATH to sox/libs/lib_c
*
{{{
cd nano-RK/projects/SAMPL/slip-clients/sox-gateway
make
}}}

'''Step Step 4: Flash FireFly nodes''' nodes
* First Program the nodes
*
{{{
cd nano-RK/projects/SAMPL/clients/FF-basic-sensors
make clean
make program
}}}
* You will see a red blinking led and the following messages from the serial port:
{{{
* ERROR reading MAC address from EEPROM run eeprom-config utility
* ERROR reading MAC address from EEPROM run eeprom-config utility
* ERROR reading MAC address from EEPROM run eeprom-config utility
}}}
* Next, set the EEPROM values
* MAC Address
* Subnet MAC
* Encryption Key (optional)
* Wireless Update image file (optional)
* Note the following with respect to the MAC address:
* The first six hex digits in the MAC address denote the subnet
* All nodes must be part of the same subnet to communicate
* The gateway node must be set to 0 inside a subnet
* No other node besides the gateway can be 0
* Use the config-eeprom tool to set the EEPROM
{{{
cd nano-RK/tools/EEPROM_mac_set
make (if not already built)
./config-eeprom /dev/ttyUSB1 00000001 26 00112233445566778899AABBCCDDEEFF
}}}

'''Step Step 5: Flash FireFly gateway''' gateway
* Flash the gateway node that will be connected to the gateway computer
*
{{{
cd nano-RK/projects/SAMPL/gateway
make clean
make program
}}}
* Set the EEPROM like any other FireFly client except with the last two hex digits being '00'