Remote control your mote through raspberry pi

In this page, you will learn how to remotely control a mote connected to a Raspberry Pi (or any other linux computer) with Ethernet connection.


To try this feature, you need one computer, one or more Raspberry Pi and some motes. 

Before trying this page, please make sure all softwares(especially the Python packages specified in requirements.txt under openwsn-sw root directory) are installed on you computer and Raspberry Pi. To do this, you can refer to Kickstart Linux.

Note that, this project requires new python packages to run, which is added in requirements.txt. To make sure everything is setup, you need:

~/Desktop/openwsn/openwsn-sw$ git pull 

to update the requirements.txt file and

~/Desktop/openwsn/openwsn-sw/software/openvisualizer$ sudo pip install -r requirements.txt

to install all necessary packages.

Also we assume the motes already have the openwsn firmware code loaded.


  1. Connect your Raspberry Pi to the network (preferably using ethernet, wifi works too but may cause interferences with your motes radio signals). Make sure you remember its IP address (v4/v6).
    To setup the communication between the raspberry pi and your computer you will need to have port 5683 opened on the Raspberry Pi side and port 50000 opened on your computer and on the Raspberry Pi. Make sure that no firewall is blocking them.
  2. Connect your motes to the Raspberry Pi (through USB or GPIO pins)



  1. On Raspberry Pi, open a terminal and type the following command

    > cd openwsn-sw/software/openvisualizer
    > sudo scons runrover
  2. On your computer, open a terminal and type the following command

    > cd openwsn-sw/software/openvisualizer
    > scons runweb --rover
  3. open your favorite browser and type in: localhost:8080 in the address box.

  4. Go to Rover tab and choosing the interface to be connected with Raspberry Pi
  5. For each Raspberry Pi you want to add type in the raspberry address in the rover and click "Add", (or select a text file containing a list of Raspberry Pi IP addresses separated by "," and press "Upload")
    or :
  6. Once you have entered all your Raspberry Pis IP addresses on the page press "Connect" (no need to select them, the select boxes are used to delete or disconnect IPs from the list). The ID of the motes connected to each Raspberry Pi should appear.
    and then :
  7. After a few seconds the ID should be updated to the last four bytes of the mote EUI-64
  8. Go to Mote tab and pull down the mote list, then you can see all mote connected with Raspberry Pi showing in your local computer.
  9. Choosing one mote and click "toggle" to start the network. Done!