xmedk

 

 

 

ABOUT .X-MED-K.

.X-MED-K. PARTNERS

PUBLICATION

WORKSHOPS

NEWS

 
sitemap
    
 
 


 

BACK:
Meshnetworks


 
 
Maxigas report
  print
 
maxigas report

COMMUNICATION

Basicly we tried four ways to circulate information in the network:

1. Web server – the most robust and slowest method is to simply write down the info on the web server area of the router (/www) and read it from there. (See Usernum notes below for a warning about this.)

2. Netcat – which should be easy but i had some bad experiences with it in various setups.

3. Serproxy – which uses the netcat concept in another way. Pieter knows more.

4. XBeez – which is a way to create another layer of mesh network for the arduinos to communicate (not the routers). Akos knows more.

Experiences and know how about some of these is documented below.

NETCAT

Netcat is the “TCP/IP swiss army knife” and three different implementations are available for OpenWRT (at least):

“nc” – default busybox function. for example this cannot listen. “netcat” – “ipkg install netcat”. “nc-hobbit” – “ipkg install nc-hobbit”.

SPITPOP

Attached!

Send the current OLSR mesh network population to the arduino. This is the script running on the router. The Arduino code was by Pieter (maybe debugged by Akos). We couldn't get this to work, but we were close. :)

USERNUM SCRIPT

Attached!

# Note: if you write files directly to /www on the router every 10 # secs then sooner or later you wreck the USB memory. That's why we # write to /tmp because it is in the RAM (deleted every boottime).

SETTING SERIAL

You can use 'setserial' and 'stty' programmes on OpenWRT to configure your serial ports. The hacking manual page in PDF is here:

www.syngress.com/book_catalog/sample_1597491667.pdf

These are the extraz:

This is how to get the 'stty' program on your router (you need net):

cd /usr/sbin wget tobe.mine.nu/software/openwrt/stty.tgz tar -zxvf stty.tgz chmod 755 stty

(setserial is easy because there is an ipkg package so you can: ipkg install setserial )

+ Experience: worked fine on Linksys WRT54GL with the serial mod - Experience: seemed not to work on the USB interface of the Asus

boxes which Arduino used as serial.

Alternative: serproxy as compiled by pieter for OpenWrt. :) That can be configured through a config file.