Skip to content

Instantly share code, notes, and snippets.


Thomas Watteyne twatteyne

View GitHub Profile
twatteyne / map.html
Created Oct 30, 2015
simple Google maps-based mote and link visualization
View map.html
<!DOCTYPE html>
<html lang="en">
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
<meta charset="utf-8">
<title>Motes and Paths</title>
html, body {
height: 100%;
margin: 0;
twatteyne /
Created Nov 9, 2014
IEEE802.15.4e-2012 TSCH default channel hopping sequence calculator
BANNER = r'''
This script calculates the default channel hopping sequence for the
IEEE802.15.4e-2012 TSCH mode.
\author Thomas Watteyne
\date November 2014
class Lfsr(object):
twatteyne /
Created Sep 5, 2014
use OpenWSN's findSerialPort
drop this file in a new directory:
double-click to run.
example output:
[('COM6', 115200)]
Script ended successfully. Press Enter to close.
twatteyne /
Last active Aug 29, 2015
IoT-LAB: forward serial traffic from motes to your local computer

The IoT-LAB platform lets you log into the server of the site your motes are located at (e.g. It all works fine.

In some cases, you want to be able to run programs and interact with the motes' serial port on your local computer. One example is running the OpenVisualizer from the OpenWSN project.

This Gist contains a couple of ideas about how to do that using SSH forwarding and a pair of Python scripts.

How it works

twatteyne /
Created Apr 4, 2014
Dynamic VPython-based visualization of a vector
import random
import visual
MAXDIFF = 0.05
class ArrowCoords(object):
x = random.random()
y = random.random()
z = random.random()
def get(self):