[Solved] Error compiling MICAx/IRIS for TinyOS 2.1.1 on Ubuntu 11.10

by Agus Kurniawan 9. December 2011 09:40
If you have already installed TinyOS 2.1.1 on Ubuntu 11.10 (check my article [V]) then you tried to compile TinyOS app with MICAx or IRIS platform. You got error messages when compiling. These problems were caused by incomplete repositories especially for gcc-avr and avr-libc. The simple solution we could install gcc-avr and avr-libc manually as below sudo apt-get install gcc-avr avr-libc If you still get errors while installing, try to install manualy Sudo dpkg –I --force-all name_file.deb name_file.deb file name of gcc avr deb files. Now, you could compile TinyOS app with MICAx and IRIS platforms.

Tags:

Linux | TinyOS

Deploying TinyOS 2.1.1 on Ubuntu 11.10 x64

by Agus Kurniawan 23. November 2011 15:23
I have already installed and deployed TinyOS 2.1.1 on Ubuntu 11.10 x64 based on my previous article, check it on http://blog.aguskurniawan.net/post/Deploying-TinyOS-on-Ubuntu-1010.aspx . You may got problem when you install on Ubuntu 11.10 x64 due to TinyOS repositories. You could update your TinyOS repositories as below deb http://hinrg.cs.jhu.edu/tinyos karmic main Here is a screenshot of my TinyOS on Ubuntu 11.10 x64

Tags:

Linux | TinyOS

Getting Started Iris-Based WSN Mote With TinyOS 2.1.1 and Ubuntu 10.10

by Agus Kurniawan 14. February 2011 10:31
In this article I’m going to share how to get started on Iris-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]. For Telos-based WSN motes, please read this my article [V]. Hardware Configuration For testing, I used Iris as WSN mote. Look this WSN hardware model Now connect your Iris on computer via USB, for a sample look at this picture below Compile and Run After Iris mote connected on your computer, now we try to check that our mote was listened or not. Try to use this command motelist and I got the response like picture below As you see, motelist didn’t find my Iris mote. I don’t how to fix. Currently I’m still finding to fix this. Please let me know if you have solution. Although I didn’t find my Iris mote but my Linux can detect USB of Iris mote. You can check using command as below ls /dev/ttyUSB* So I think it’s no problem to deploy our app to Iris mote. For a sample, my Iris 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 iris   Now deploy Blink app to our Iris make iris install mib510,/dev/ttyUSB0 If success, you’ll get this result as picture below Now your Iris runs Blink app. For a sample, look at this video (I captured for you) Running Blink @Iris   Clear Program From Iris To clear your program from Iris, you can try to use avrdude avrdude -cmib510 -P/dev/ttyUSB0 -pm1281 -e I hope this article is useful for you. Please rate this article.

Tags:

TinyOS | Linux

Getting Started Telos-Based WSN Mote With TinyOS 2.1.1 and Ubuntu 10.10

by Agus Kurniawan 13. February 2011 19:53
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) Running Blink @Kmote 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.

Tags:

Linux | TinyOS

Deploying TinyOS on Ubuntu 10.10

by Agus Kurniawan 29. October 2010 08:35
TinyOS is an open source, BSD-licensed operating system designed for low-power wireless devices, such as those used in sensor networks, ubiquitious computing, personal area networks, smart buildings, and smart meters. Now I’m going to share how to deploy TinyOS 2.1.1 @ Ubuntu 10.10 using repository. Ubuntu Packages Before installing, you should add TinyOS repository on repository source file. Run this script $ sudo gedit /etc/apt/sources.list Then you’re going to get a dialog as below Put this two lines of script #tinyOS deb http://tinyos.stanford.edu/tinyos/dists/ubuntu edgy main deb http://tinyos.stanford.edu/tinyos/dists/ubuntu feisty main Save and close gedit application TinyOS Installation Now we’re going to install TinyOS on Ubuntu. Firstly, we update repository $ sudo apt-get update Run the following to install TinyOS 2.1.1 $ sudo apt-get install tinyos-2.1.1 Another option, you can check the latest of TinyOS using this script $ sudo apt-get install tinyos Then you’ll get the list of TinyOS version as below After installation, we should update profile $ gedit ~/.bashrc Write this script in ~/.bashrc on the bottom of line script file export TOSROOT=/opt/tinyos-2.1.1 export TOSDIR=$TOSROOT/tos export CLASSPATH=$TOSROOT/support/sdk/java/tinyos.jar:.:$CLASSPATH export MAKERULES=$TOSROOT/support/make/Makerules export PATH=/opt/msp430/bin:$PATH #Sourcing the tinyos environment variable setup script source /opt/tinyos-2.1.1/tinyos.sh Installation Verification After installation, we check that installation was success or not. Run this script on terminal console $ tos-check-env What’s Next? Now, you can write a program for TinyOS using nesC. Next section, I’ll write how to configure development environment and to get started nesC programming. Please read my article how to deploy Telos-based mote [V]

Tags:

Linux | TinyOS