DubiousCactus / Netwolope

Wireless sensors network used to benchmark different compression algorithms on a split image.
0 stars 0 forks source link

Mote to PC communication #11

Closed sheikhomar closed 6 years ago

sheikhomar commented 6 years ago

Fixes #7 and #8

sheikhomar commented 6 years ago

@Reviewer: Before you can use the Python script, you need to augment Python's default search path for module files. The 'tos' module is located in /opt/tinyos-2.1.1/support/sdk/python. Set following lines in your ~/.bash_profile or ~/.zprofile file:

export CLASSPATH="/opt/tinyos-2.1.1/support/sdk/java/tinyos.jar"
export MOTECOM=serial@/dev/ttyUSB0:telosb
export PYTHONPATH=/opt/tinyos-2.1.1/support/sdk/python

Run the script as follows:

python DecompressorPC/decompressor.py serial@/dev/ttyUSB0:115200

DubiousCactus commented 6 years ago

Ready to be merged ?