Man. I spent the last three days learning how to use Flash so I could create this simple tutorial. You'd think that it would be easy to create a simple interactive thing like this, but it was actually extremely painful. You can't just draw the symbols and move things around. You actually need to program in a language that Adobe (MacroMedia) made called ActionScript. The programming part is no problem, but searching the massive documentation to find the right method to do what I wanted caused me to pound a large hole in the wall with my head. I still don't know why it requires a zillion languages just to do some stuff on the web.

Anyways, this is something that I've been wanting to do for a long time. Trying to explain Zigbee mesh routing using just words is very difficult, and has the tendency to cause people's eyes to glaze over. With an interactive simulation, you can do a play-by-play analysis of what's going on which hopefully will make it easier to see the flow of events that makes up the AODV routing algorithm. I originally had the idea when I was studying the routing algorithm myself. It's almost impossible to understand what's going on by reading the Zigbee spec. That's like trying to understand how to use Linux by reading the source code. You need to be a real masochist. 

There weren't many good tutorials on the web for AODV mesh routing, either. So to save the people the same pain I had to go through in studying it, I created this little applet. To move forward one frame, just click anywhere on the graphic. To move back, press the space bar. Flash doesn't have a handler for the right-click button, because Apple users usually only have one mouse button. You can't tell who will be using the Flash file since it's accessed inside a web browser. You'll need to have Adobe Flash v9 installed (or higher depending on when you're reading this) in order to use it. Otherwise, it will probably just give you a bad graphic, no graphic, or it will cause your computer to explode.

I'm also planning to try and make other tutorials similar to this for tree routing, source routing, and possibly some other aspects of Zigbee. I think its much easier to learn visually than reading that monster document. Without further ado, here's the tutorial. Hope you like it. If there are any problems, leave a comment for me...especially if you find bugs. 

Once you understand how the Zigbee routing works, then you can see that the terms that are being thrown around like "self-healing" are more a property of the routing algorithm. If a node goes down, then it won't participate in the route discovery process and so a different route will automatically be discovered. Okay, in my scenario, there were no redundant routers to the destination so that doesn't count. 

Also, there are other subtleties associated with the algorithm used in Zigbee such as the use of "link cost" to determine the best route. This is the probability that the link may successfully transmit the frame and is a factor of interference, remaining battery life, and a gazillion other things. Its mainly subjective and depends on the company that does the implementation. There's no agreed upon way of calculating this so the spec just kind of leaves it as a ranking between 1 and 7 on how confident you think the frame will get transmitted. In my initial implementation, I'm just going to leave it as a static value. The path cost will then just reflect the number of hops from the source to the destination and the path with the least amount of hops will be chosen. Yes, its not very academic, but hey, I just want to get it to work. I'll let other people tinker with optimizing the routing depending on their needs.

Well, that just about does it for this post. Unfortunately, the research behind it took much longer than actually writing it, but at least future simulations will be much easier to make. Hope you enjoy. 

Edited 2008-04-09: I just found out that Internet Explorer 7 disabled Javascript and Active X by default which seems like its required in order to run the Flash applet. Sorry about that. 



-1 #1 Camille 2016-09-12 21:06
Nice blog here! Also your web site loads up very fast!
What web host are you using? Can I get your affiliate link
to your host? I wish my web site loaded up as fast as yours lol

Here is my blog: van rental london:
0 #2 Bob 2016-11-22 10:03
Awesome work, thank you very much for this helping article :)
0 #3 Jalpan 2016-11-24 11:06
Awesome Akiba, good job and very help full article for the initiator of zigbee. Thank you so much.
0 #4 Sondra 2016-12-02 22:37
Firma Żal-Met to przedsiębiorstwo działająca w Warszawa Bródno od mwja
1993 r. W pierwszzych latach działalności mieściliśmy się ul.
Radzymińska 108 i 128. Od 2000 r. - cały czas do dnia dzisiejszego działamy przy ul.
Św. Wincentego 30. Firma Żal-Met to producent rolet warszawa: żaluzji oraz rolet.
Zajmujemy się również dystrybucją parapetów oraz szeroko pojętą stolarką okienną.

Rolety bezpośrednio od producenta ale także osłona przeciwsłoneczna to takżę ekskluzywne wykończenie który
w wielu domach zastąpił tradycyjne firanki i zasłonki.
Nasza firma w swojej ofercie posiada żaluzje. w bogatej gamie
kolorów, wzorów i struktur materiałów. Mamy dla Państwa duży wybór materiałów gładkich,
deseniowych, transparentnych i podgumowanych.
0 #5 Dolly 2016-12-02 22:52
serwis mechaniczny Fun-Car Niewęgłowski Grzegorz z Warszawy zajmuje się naprawą
auta każdej marki. Posiadamy wykształcony personel pracujący na nowych sprzęcie diagnostycznym oraz naprawczym Zachęcamy do umówienia
się na wizytę u naszego mechanika z Warszawy za pomocą internetu.
Wystarczy wypełnić formularz znajdujący się na stronie.
Szybko, łatwo i bez wychodzenia z domu!

Usługa skierowana jest do fkot samochodowych.
Zapewniamy miłą i fachowa obsługę, a także ceny niższe niż autoryzowanych stacjach
obsługi, zachowując najwyższą jakość świadczonych usług.
Mamy doskonale wyposażony warsztat, pozwalający na szybkie zdiagnozowanie usterki i pozbycie się jej.

Have a look at myy webpage ... mechanik warszawa:

Add comment

Security code