In this article I’m going to share how to get started on Telos-based WSN motes with TinyOS 2.1.1 and Ubuntu 10.10. Before starting, please make sure you installed TinyOS on Ubuntu 10.10. If you aren’t install yet please read my article [V].
Hardware Configuration
For testing, I used Kmote (Telos based) as WSN mote. You can see this hardware below

Now connect your Kmote on computer via USB, for a sample look at this picture below

Compile and Run
After Kmote connected on your computer, now we try to check that our mote was listened or not. Try to use this command
motelist

For a sample, my Kmote runs on /dev/ttyUSB0. For illustration, I used a TinyOS sample app i.e Blink for testing. Now change your current folder on /opt/tinyos-2.1.1/apps/Blink. Try to make Blink app
make telosb
Now deploy Blink app to our Kmote
make telosb reinstall bsl,/dev/ttyUSB0

Now your Kmote runs Blink app. For a sample, look at this video (I captured for you)
Clear Program From Kmote
To clear your program from Kmote, you can try to use tos-bsl
tos-bsl --telosb -c /dev/ttyUSB0 -e

I hope this article is useful for you. Please rate this article.