Discussion:
[HELP]how to use OpenWrt olsrd mesh
楊善文
2013-06-06 10:25:14 UTC
Permalink
i use this platform Atheros AR9344, and want to start wireless mesh feature.
And use OpenWrt Environment, my wifi interface is wlan0 and set static
ip:10.0.0.1.

this is my olsrd.conf:
===============================================
DebugLevel 0
IpVersion 4
ClearScreen yes

Hna4
{
# My home LAN
10.0.0.0 255.255.255.0
}

AllowNoInt yes
UseHysteresis yes

# Hysteresis parameters
HystScaling 0.50
HystThrHigh 0.80
HystThrLow 0.30


LinkQualityLevel 0
Pollrate 0.05
NicChgsPollInt 3.0

Interface "wlan0"
{
AutoDetectChanges yes
}

LoadPlugin "olsrd_httpinfo.so.0.1"
{
PlParam "port" "1979"
PlParam "Net" "0.0.0.0 0.0.0.0"
}

LoadPlugin "olsrd_txtinfo.so.0.1"
{
PlParam "port" "9090"
PlParam "accept" "0.0.0.0"
PlParam "accept" "127.0.0.1"
}
===============================================



This is my file /etc/config/olsrd:
===============================================
config olsrd
option config_file '/etc/olsrd.conf'
option IpVersion '4'

config LoadPlugin
option library 'olsrd_arprefresh.so.0.1'
option ignore '0'

config LoadPlugin
option library 'olsrd_dyn_gw.so.0.5'
option ignore '0'

config LoadPlugin
option library 'olsrd_httpinfo.so.0.1'
option port '9090'
list Net '10.0.0.0 255.255.255.0'
option ignore '0'

config LoadPlugin
option library 'olsrd_nameservice.so.0.3'
option ignore '0'
config LoadPlugin
option library 'olsrd_txtinfo.so.0.1'
option port '9090'
option accept '127.0.0.1'
option ignore '0'

config Interface
option ignore '0'
option interface 'mesh'
option Mode 'mesh'

config InterfaceDefaults

config LoadPlugin
option library 'olsrd_pgraph.so.1.1'
option ignore '0'

config LoadPlugin
option library 'olsrd_jsoninfo.so.0.0'
option ignore '0'

config LoadPlugin
option library 'olsrd_p2pd.so.0.1.0'
option ignore '1'

config LoadPlugin
option library 'olsrd_sgwdynspeed.so.1.0.0'
option ignore '1'

config LoadPlugin
option library 'olsrd_pud.so.1.1.0'
option ignore '1'

config LoadPlugin
option library 'olsrd_watchdog.so.0.1'
option ignore '1'

config LoadPlugin
option library 'olsrd_secure.so.0.6'
option ignore '1'

config LoadPlugin
option library 'olsrd_bmf.so.1.7.0'
option ignore '1'

config LoadPlugin
option library 'olsrd_dyn_gw_plain.so.0.4'
option ignore '1'

config LoadPlugin
option library 'olsrd_dot_draw.so.0.3'
option ignore '1'

config LoadPlugin
option library 'olsrd_mdns.so.1.0.1'
option ignore '1'
=============================================


This is my /etc/config/wireless:
=============================================
config wifi-device 'radio0'
option type 'mac80211'
option channel '11'
option hwmode '11ng'
option path 'platform/ar934x_wmac'
option htmode 'HT20'
list ht_capab 'LDPC'
list ht_capab 'SHORT-GI-20'
list ht_capab 'SHORT-GI-40'
list ht_capab 'TX-STBC'
list ht_capab 'RX-STBC1'
list ht_capab 'DSSS_CCK-40'
option txpower '27'
option country 'US'
config wifi-iface
option device 'radio0'
option encryption 'none'
option wps_pushbutton '1'
option ssid 'OLSR_test1'
option mode 'adhoc'
option bssid '00:00:00:FF:FF:01'
option network 'mesh wlan'
========================================

Now i have several devices, i want to connect together.
when i exec /etc/init.d/olsrd start, and seen't error msg.
But when i see WebGUI, i sawn't any device connect.
And has a error msg in OLSR statistic page:
OLSR Daemon

Unable to connect to the OLSR daemon!

Make sure that OLSRd is running, the "jsoninfo" plugin is loaded,
configured on port 9090 and accepts connections from "127.0.0.1".

But i always findn't reason. And also not know this msg when another
node/device connect or not. How i can to do and solve this problem?

Thanks a lot.
Henning Rogge
2013-06-06 10:56:31 UTC
Permalink
Post by 楊善文
i use this platform Atheros AR9344, and want to start wireless mesh feature.
And use OpenWrt Environment, my wifi interface is wlan0 and set static
ip:10.0.0.1.
Reduce your configuration to the minimum of plugins AND settings you
need (or need to change). You have lots of settings in there that might
be useless or even harmful for you.

Henning Rogge
--
Diplom-Informatiker Henning Rogge , Fraunhofer-Institut fÃŒr
Kommunikation, Informationsverarbeitung und Ergonomie FKIE
Kommunikationssysteme (KOM)
Fraunhofer Straße 20, 53343 Wachtberg, Germany
Telefon +49 228 9435-961, Fax +49 228 9435 685
mailto:***@fkie.fraunhofer.de http://www.fkie.fraunhofer.de
楊善文
2013-06-07 10:25:32 UTC
Permalink
When i delete /etc/olsrd.conf and only use /etc/config/olsrd,
now i can see something in WebGUI,
but still not find any neighborhood.
So how do i trace this problem?
Thanks.
Post by 楊善文
i use this platform Atheros AR9344, and want to start wireless mesh feature.
And use OpenWrt Environment, my wifi interface is wlan0 and set static
ip:10.0.0.1.
Reduce your configuration to the minimum of plugins AND settings you need
(or need to change). You have lots of settings in there that might be
useless or even harmful for you.
Henning Rogge
--
Diplom-Informatiker Henning Rogge , Fraunhofer-Institut fÃŒr
Kommunikation, Informationsverarbeitung und Ergonomie FKIE
Kommunikationssysteme (KOM)
Fraunhofer Straße 20, 53343 Wachtberg, Germany
Telefon +49 228 9435-961, Fax +49 228 9435 685
http://www.fkie.fraunhofer.de
--
Olsr-users mailing list
https://lists.olsr.org/mailman/listinfo/olsr-users
Henning Rogge
2013-06-10 05:25:01 UTC
Permalink
Post by 楊善文
When i delete /etc/olsrd.conf and only use /etc/config/olsrd,
now i can see something in WebGUI,
but still not find any neighborhood.
So how do i trace this problem?
Thanks.
I would suggest to forget the webgui for a moment and work directly on
the commandline. Just make sure you start the telnet plugin in addition
to the olsrd core.

This way you can use the "-D" parameter to make the routing daemon to
output additional debug information into the console (try "-D 1" first).

Henning Rogge
--
Diplom-Informatiker Henning Rogge , Fraunhofer-Institut fÃŒr
Kommunikation, Informationsverarbeitung und Ergonomie FKIE
Kommunikationssysteme (KOM)
Fraunhofer Straße 20, 53343 Wachtberg, Germany
Telefon +49 228 9435-961, Fax +49 228 9435 685
mailto:***@fkie.fraunhofer.de http://www.fkie.fraunhofer.de
楊善文
2013-06-10 05:55:15 UTC
Permalink
This is my run log, set debug = 1, but i still not see any stranger
msg......:(
==============================
Post by 楊善文
===================================
*** olsr.org - pre-0.6.7-git_-hash_3667acb4ad7e32204039db1f6b9bc660 -
***
Build date: 2013-06-07 11:01:53 on debian
http://www.olsr.org
Parsing file: "/var/etc/olsrd.conf"
Debug level: 1
Noint set to 1
IpVersion: 4
Plugin: olsrd_arprefresh.so.0.1
Plugin: olsrd_dyn_gw.so.0.5
Plugin: olsrd_httpinfo.so.0.1
Plugin param key:"Net" val: "10.0.0.0 255.255.255.0"
Plugin param key:"port" val: "1979"
Plugin: olsrd_nameservice.so.0.3
Plugin param key:"name" val: "OpenWrt"
Plugin: olsrd_txtinfo.so.0.1
Plugin param key:"port" val: "9090"
Plugin param key:"accept" val: "127.0.0.1"
Plugin: olsrd_pgraph.so.1.1
Plugin: olsrd_jsoninfo.so.0.0
Interface Defaultssetting ifs_in_curr_cfg = 0
Mode: adhoc
IPv4 broadcast: 255.255.255.255
IPv4 broadcast/multicast : AUTO (d)
Mode : mesh (d)
IPv6 multicast : ff02::6d
HELLO emission/validity : 2.00/20.00
TC emission/validity : 5.00/300.00
MID emission/validity : 5.00/300.00
HNA emission/validity : 5.00/300.00
Autodetect changes : yes
IPv4 broadcast/multicast : 255.255.255.255
Mode : mesh (d)
HELLO emission/validity : 0.00/0.00
TC emission/validity : 0.00/0.00
MID emission/validity : 0.00/0.00
HNA emission/validity : 0.00/0.00
Autodetect changes : no
JSON info and dyn_gw plugin 0.0 by Hans-Christoph Steiner
(JSONINFO) Reading UUID from 'uuid.txt'
(JSONINFO) Could not open 'uuid.txt': No such file or directory
OLSRD pgraph plugin 0.1 by Richard Gopaul
OLSRD txtinfo plugin 0.1 by Lorenz Schori
OLSRD nameservice plugin 0.3
Httpinfo olsrd plugin 0.1 by Andreas Tonnesen
OLSRD dynamic gateway plugin 0.4 by Various artists
HNA 0.0.0.0
OLSRD arprefresh plugin by Sven-Ola
*** olsr.org -
pre-0.6.7-git_-hash_3667acb4ad7e32204039db1f6b9bc660 - (2013-06-07
11:01:53 on debian) ***
Post by 楊善文
When i delete /etc/olsrd.conf and only use /etc/config/olsrd,
now i can see something in WebGUI,
but still not find any neighborhood.
So how do i trace this problem?
Thanks.
I would suggest to forget the webgui for a moment and work directly on the
commandline. Just make sure you start the telnet plugin in addition to the
olsrd core.
This way you can use the "-D" parameter to make the routing daemon to
output additional debug information into the console (try "-D 1" first).
Henning Rogge
--
Diplom-Informatiker Henning Rogge , Fraunhofer-Institut fÃŒr
Kommunikation, Informationsverarbeitung und Ergonomie FKIE
Kommunikationssysteme (KOM)
Fraunhofer Straße 20, 53343 Wachtberg, Germany
Telefon +49 228 9435-961, Fax +49 228 9435 685
http://www.fkie.fraunhofer.de
--
Olsr-users mailing list
https://lists.olsr.org/mailman/listinfo/olsr-users
Henning Rogge
2013-06-10 06:01:19 UTC
Permalink
Post by 楊善文
This is my run log, set debug = 1, but i still not see any stranger
msg......:(
==============================
You are still using the OpenWRT based configuration...
Post by 楊善文
LoadPlugin "olsrd_txtinfo.so.0.1"
{
PlParam "port" "9090"
PlParam "accept" "0.0.0.0"
}
Interface "wlan0"
{
}
olsrd -f <filename> -d 1
(-f is the command line parameter for loading a specific configuration file)

Henning Rogge
--
Diplom-Informatiker Henning Rogge , Fraunhofer-Institut fÃŒr
Kommunikation, Informationsverarbeitung und Ergonomie FKIE
Kommunikationssysteme (KOM)
Fraunhofer Straße 20, 53343 Wachtberg, Germany
Telefon +49 228 9435-961, Fax +49 228 9435 685
mailto:***@fkie.fraunhofer.de http://www.fkie.fraunhofer.de
楊善文
2013-06-10 07:07:38 UTC
Permalink
When i use this config file, and saw these msgs,
but still findn't problem point....
=======================================================
***@OpenWrt:/# olsrd -f /etc/olsrd_test.conf -d 1

*** olsr.org - pre-0.6.7-git_-hash_3667acb4ad7e32204039db1f6b9bc660 - ***
Build date: 2013-06-07 11:01:53 on debian
http://www.olsr.org

Parsing file: "/etc/olsrd_test.conf"
Plugin: olsrd_txtinfo.so.0.1
Plugin param key:"port" val: "9090"
Plugin param key:"accept" val: "0.0.0.0"
setting ifs_in_curr_cfg = 0
IPv4 broadcast/multicast : AUTO
Mode : mesh
IPv6 multicast : ::
HELLO emission/validity : 0.00/0.00
TC emission/validity : 0.00/0.00
MID emission/validity : 0.00/0.00
HNA emission/validity : 0.00/0.00
Autodetect changes : no
OLSRD txtinfo plugin 0.1 by Lorenz Schori
*** olsr.org -
pre-0.6.7-git_-hash_3667acb4ad7e32204039db1f6b9bc660 - (2013-06-07
11:01:53 on debian) ***
Post by Henning Rogge
Post by 楊善文
This is my run log, set debug = 1, but i still not see any stranger
msg......:(
==============================
You are still using the OpenWRT based configuration...
Post by 楊善文
LoadPlugin "olsrd_txtinfo.so.0.1"
{
PlParam "port" "9090"
PlParam "accept" "0.0.0.0"
}
Interface "wlan0"
{
}
olsrd -f <filename> -d 1
(-f is the command line parameter for loading a specific configuration file)
Henning Rogge
--
Diplom-Informatiker Henning Rogge , Fraunhofer-Institut fÃŒr
Kommunikation, Informationsverarbeitung und Ergonomie FKIE
Kommunikationssysteme (KOM)
Fraunhofer Straße 20, 53343 Wachtberg, Germany
Telefon +49 228 9435-961, Fax +49 228 9435 685
http://www.fkie.fraunhofer.de
--
Olsr-users mailing list
https://lists.olsr.org/mailman/listinfo/olsr-users
Henning Rogge
2013-06-10 08:39:58 UTC
Permalink
Post by 楊善文
When i use this config file, and saw these msgs,
but still findn't problem point....
=======================================================
Do you see outgoing packet on UDP port 698 (check with tcpdump)?

Henning Rogge
--
Diplom-Informatiker Henning Rogge , Fraunhofer-Institut fÃŒr
Kommunikation, Informationsverarbeitung und Ergonomie FKIE
Kommunikationssysteme (KOM)
Fraunhofer Straße 20, 53343 Wachtberg, Germany
Telefon +49 228 9435-961, Fax +49 228 9435 685
mailto:***@fkie.fraunhofer.de http://www.fkie.fraunhofer.de
Loading...