On 06 May 2009, at 07:15 , Marek Lindner wrote:
On Wednesday 06 May 2009 02:11:57 Arc Riley wrote:
I haven't found any such video on the website. Is the vis server setup for batman-adv or just the layer 3 batman? Is the protocol used for nodes to announce their status documented?
We're building a desktop/mobile app using OpenStreetMap data and Mapnik, we don't want to require Internet access to view available nodes from any user's connection to the mesh so that it can be used to view and diagnose the network in any situation. If that software could listen to the node status announcements ("I have X quality link with node A, Y quality link with node B, Z quality link with node C"), along with nodes announcing other properties including long/lat, wifi protocol and signal, etc, this should be very easy to show colored links indicating their quality.
Since we need local link status from nodes, and not the compiled quality to route to any node, listening to OGM frames is not enough.
What you want is the vis server that does all that for you. In the / proc filesystem you will find a file called "vis" which outputs all the data you want in the well-known dot draw format. You can use any dot draw parser to generate a map for your mesh. Basically, this vis server is quite similar to the layer 3 vis server but it is integrated into the module (no additional programs needed - just activate it).
Hi Arc,
If you'd like you can also take look at:
http://code.google.com/p/afrimesh/
The project is very young and still under heavy development but it does have working code using client-side Javascript & the OpenStreetMap libraries to draw mesh maps from the vis server.
A couple of caveats though:
1) My development environment is running layer-3 B.A.T.M.A.N. and I haven't even thought yet about any potential issues running layer-2.
2) I've patched the layer-3 vis daemon with a command-line option to output the mesh map in JSON format rather than dot as I found it a tad more amenable to abuse. (Btw, is this something anyone else would find useful? I'd be happy to clean up & contribute the patch!)
- antoine
-- http://7degrees.co.za "Libré software for human education."