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.
f2882f8a-4305-4a28-b922-f70b7e802261|1|5.0
Tags:
Linux | TinyOS
by Agus Kurniawan
25. November 2011 11:12
After installed Ubuntu 11.10 x64, I got a warning message when I open gedit with sudo as below
sudo gedit /etc/apt/sources.list
got a warning message “Gtk-WARNING **: Attempting to store changes into ‘/root/.local/share/…..’…: No such file or directory.
Look a warning message as below
How to solve?
The simple solution we crate a folder on /root/.local/share
sudo mkdir -p /root/.local/share
I hope this is useful
dca412db-83fe-4020-9f40-dab17afbeead|0|.0
Tags:
Linux
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
246aaf75-813d-4f70-a3fb-e111fd3c274e|2|3.5
Tags:
Linux | TinyOS
by Agus Kurniawan
8. May 2011 12:53
Ubuntu 11.4 beberapa minggu lalu sudah di release. Beberapa fitur baru di release untuk memberikan kenyaman pada penggunanya. Dari segi GUI, memang tidak banyak terlalu significant namun fitur baru banyak yang bermunculan akibat perkembangan internet dan social network. Bagaimana proses instalasinya? berikut ini hasil video capture cara instalasi Ubuntu 11.4 pada virtual machine. Setelah kita melakukan instalasi. Kita dapat melakukan ekplorasi Ubuntu 11.4. Berikut ini contoh hasil ekspolarasi Ubuntu 11.4 Semoga ini berguna.
e3c15f5c-ebdd-4cfc-94cf-0e24701e270d|2|4.5
Tags:
Linux
by Agus Kurniawan
15. March 2011 06:44
Supaya install atau update software di Ubuntu Server lebih cepat artinya kita harus mengarahkan server repository ke lokal Indonesia. Salah satunya ke arah ke http://kambing.ui.ac.id Untuk melakukan konfigurasi repo ke http://kambing.ui.ac.id pada Ubuntu Server cukuplah mudah. Kita cukup update file sources.list pada etc/apt/. Berikut ini script nya $ sudo su
$ nano /etc/apt/sources.list
Selanjutnya muncul editor nano. Lanjutnya update datanya ke
http://kambing.ui.ac.id
Contohnya hasilnya seperti dibawah ini
Setelah selesai, simpan konfigurasinya.
Selanjutnya lakukan update repo
$ sudo apt-get update
so sekarang Ubuntu server anda sudah terhubung ke repo server kambing.ui.ac.id
05281654-8d1b-4005-8476-138c68430cac|0|.0
Tags:
Linux
by Agus Kurniawan
19. February 2011 10:20
Akhirnya buku yang kesekian terbit mengenai Pemrograman Parallel dengan MPI dan C. Buku ini diterbit oleh Penerbit Andi.
Kemarin gw mendapatkan sample buku nya sebanyak 6 buku. Ukuran buku ini saya suka yaitu model sedang.
Info sekilas buku ini
ISBN 978-979-29-1710-9 Penulis Agus Kurniawan Format/Jml. Hlm 19x23, xiv+334 halaman Edisi/Cetakan I, 1st Published Thn Terbit 2011 Berat Buku 592 gram
Sinopsis dan Daftar Isi
Gw pernah posting mengenai ini pada blog ini, pembaca dapat membacanya disini [V].
Cara Membeli Buku
Buku ini dapat dibeli hampir sebagian besar toko buku di kota anda. Alternatif lain, pembaca dapat membelinya secara online di website penerbit Andi, http://www.andipublisher.com/, lakukan pencarian dengan menulis penulis “Agus Kurniawan”
Jika anda membeli banyak saya dapat membantunya untuk memberikan spesial harga (kalau beli banyak). Langsung hubungi saya.
Semoga buku ini berguna dan membawa berkah, amin.
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.
46ac4035-53f6-4448-9106-e680ca38bd0c|1|5.0
Tags:
TinyOS | Linux
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.
6d1c7590-193e-4b42-91fa-155da82ef0b0|4|5.0
Tags:
Linux | TinyOS
by Agus Kurniawan
1. November 2010 10:22
On the previous article I wrote how to deploy NS3 on Ubuntu 10.10. Now I would like to share how to build and to run your network simulator program into NS3.
Development Tools
As we know, NS3 support development programming C++ and Python. There are many C++/Python development tools so you choice a tool you have experiences about development.
Getting Started
We start to create folder test on NS3 build folder
Create file hello-world-ns3.cc and write code below ( this code I copy paste from NS3 sample codes, main-simple.cc)
#include <iostream>
#include "ns3/core-module.h"
#include "ns3/helper-module.h"
#include "ns3/node-module.h"
#include "ns3/simulator-module.h"
using namespace ns3;
static void
GenerateTraffic (Ptr<Socket> socket, uint32_t size)
{
std::cout << "at=" << Simulator::Now ().GetSeconds () << "s, tx bytes=" << size << std::endl;
socket->Send (Create<Packet> (size));
if (size > 0)
{
Simulator::Schedule (Seconds (0.5), &GenerateTraffic, socket, size - 50);
}
else
{
socket->Close ();
}
}
static void
SocketPrinter (Ptr<Socket> socket)
{
Ptr<Packet> packet;
while (packet = socket->Recv ())
{
std::cout << "at=" << Simulator::Now ().GetSeconds () << "s, rx bytes=" << packet->GetSize () << std::endl;
}
}
static void
PrintTraffic (Ptr<Socket> socket)
{
socket->SetRecvCallback (MakeCallback (&SocketPrinter));
}
void
RunSimulation (void)
{
NodeContainer c;
c.Create (1);
InternetStackHelper internet;
internet.Install (c);
TypeId tid = TypeId::LookupByName ("ns3::UdpSocketFactory");
Ptr<Socket> sink = Socket::CreateSocket (c.Get (0), tid);
InetSocketAddress local = InetSocketAddress (Ipv4Address::GetAny (), 80);
sink->Bind (local);
Ptr<Socket> source = Socket::CreateSocket (c.Get (0), tid);
InetSocketAddress remote = InetSocketAddress (Ipv4Address::GetLoopback (), 80);
source->Connect (remote);
GenerateTraffic (source, 500);
PrintTraffic (sink);
Simulator::Run ();
Simulator::Destroy ();
}
int main (int argc, char *argv[])
{
RunSimulation ();
return 0;
}
Create wscript file and write this script
## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
def build(bld):
env = bld.env_of_name('default')
if not env['ENABLE_EXAMPLES']:
return;
obj = bld.create_ns3_program('hello-world-ns3',
['core', 'simulator'])
obj.source = 'hello-world-ns3.cc'
Create waf file and write this script
exec "`dirname "$0"`"/../waf "$@"
Compile and Run
You can compile and run using ./waf . Make sure you ‘re in test folder and run this script
./waf --run "hello-world-ns3"
Sample of output program you can see picture below
Done. This is a simple program for NS3. If you have question let me know.
by Agus Kurniawan
1. November 2010 09:37
NS3 or Network simulation version 3 is a kind of technology that simulates the network behavior through mathematical modeling and statistical analysis method and then obtains the specific parameters which reflect the characteristics of the network. NS is one of the most famous network simulation software which was developed by LBNL network research group at UC Berkeley in the USA.
Now I would like to introduce how to deploy NS3 on Ubuntu Linux 10.10
Prerequisites
The following list of packages should be accurate for Ubuntu 10.10 release.
requirements for C++ (release)
sudo apt-get install gcc g++ python
requirements for Python (release)
sudo apt-get install gcc g++ python python-dev
Mercurial:
sudo apt-get install mercurial
python bindings:
sudo apt-get install bzr
Debugging
sudo apt-get install gdb valgrind
GNU Scientific Library (GSL):
sudo apt-get install gsl-bin libgsl0-dev libgsl0ldbl
The Network Simulation Cradle (nsc):
sudo apt-get install flex bison
To read pcap packet traces:
sudo apt-get install tcpdump
Sqlite for statistics framework
sudo apt-get install sqlite sqlite3 libsqlite3-dev
Xml-based version of the config store
sudo apt-get install libxml2 libxml2-dev
A GTK-based
sudo apt-get install libgtk2.0-0 libgtk2.0-dev
To experiment with virtual machines and ns-3
sudo apt-get install vtun lxc
utils/check-style.py code style check program
sudo apt-get install uncrustify
Doxygen
sudo apt-get install doxygen graphviz imagemagick
sudo apt-get install texlive texlive-latex-extra texlive-generic-extra texlive-generic recommended
Texinfo
sudo apt-get install texinfo dia texlive texlive-latex-extra texlive-extra-utils texlive-generic-recommended texi2html
ustavo Carneiro's ns-3-pyviz visualizer
sudo apt-get install python-pygraphviz python-kiwi python-pygoocanvas libgoocanvas-dev
Installation
Now we can start to install NS3. Firstly we download ns-allinone-3.9.tar.bz2 file and put on a specific folder such as repos
wget http://www.nsnam.org/releases/ns-allinone-3.9.tar.bz2
Extract ns-allinone-3.9.tar.bz2
tar xjf ns-allinone-3.9.tar.bz2
Change to directory ns-allinone-3.9 and build NS3
./build.py
If success, you can see output messages displayed as below
'build' finished successfully (..)
Leaving directory './ns-3.9'
ns-3.9 is a folder of NS3 codes and scripts
Testing
After installation, you can test that your NS3 works or not.
Change to directory NS build ( in my case, ns-3.9) and run test script as below
./test.py
If success, you can see picture as below
Then you can develop NS3 program for simulating .