Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Info
titleWhat to bring?
  • a computer running Windows. This page is written with Windows 7 Professional.
  • optionally, two TelosB motes to play with real hardware.

...

Note

...

title

...

Download OpenWSN

OpenWSN is a collection of repositories hosted on GitHub. We will download and use the following:

...

Note

Several softwares and tools will be installed on your computer during you read this page, for example, python, pywin32 and mingw. You can install python,pywin32 and mingw either full 32-bit or full 64-bit version. Just make sure their version are consistent. We recommended the 32-bit installation. This setting has tested on both 32 and 64 machine.

 

Table of Contents
maxLevel2

Download OpenWSN

OpenWSN is a collection of repositories hosted on GitHub. We will download and use the following:

...

Tip
titleOops!

Before you can go on, you need to install Python:

  • Download Python 2.7.x from https://www.python.org/ (NOT Python 3!)
  • Add the following directories to your PATH environment variable:
    • C:\Python27
    • C:\Python27\Scripts
  • Verify you can call python:

    Code Block
    languagebash
    C:\Users\Thomas>python --version
    Python 2.7.5
  • Install pywin32, an extension for WIndows. You will need it to interact with the TAP virtual interface
  • Install the Python setuptools from https://pypi.python.org/pypi/setuptools#installation-instructions. Typically, this means downloading a file called ez_setup.py and double-clicking on it.
  • Verify that you can call the easy_install command:

    Code Block
    languagebash
    C:\Users\Thomas>easy_install --version
    setuptools 1.1.6
  • Install the pip utility:

    Code Block
    languagebash
    C:\Users\Thomas>easy_install pip
  • Verify that you can call the pip command:

    Code Block
    languagebash
    C:\Users\Thomas>pip --version
    pip 1.4.1 from c:\python27\lib\site-packages\pip-1.4.1-py2.7.egg (python 2.7)
  • Install the OpenWSN Python dependencies (from the openwsn-sw\ directory on your Desktop):

    Code Block
    languagebash
    C:\Users\Thomas\Desktop\openwsn-sw> pip install -r requirements.pip
  • Install SCons, the build environment:

    Code Block
    languagebash
    C:\Users\Thomas\Desktop\openwsn-sw> pip install scons
Note
titleNote

If you are using a 64-bit windows, you can use either 32-bit or 64-bit version of python. Just make sure it was consistent with pywin32 and minGW. That is saying if you choose to use 64-bit python, you also need to choose 64-bit pywin32 (there is 64-bit version pywin32 even it was called --win32) and 64-bit mingw. Likewise, 32-bit python, 32-bit pywin32 and mingw. Or unexpected error could happen.

...

To compile the firmware as a Python extension module, type:

...