[Olsr-users] olsr position update plugin configuration

Bidur Devkota (spam-protected)
Tue Nov 27 12:28:22 CET 2012


Hi Ferry,
I am thankful for guiding me to enable the smart gateway. Now I could see
the Parameters and Values in the Position tab. Also, I tried to play around
with the parameters in the olsrd.conf ( attachment: olsrd.conf), but being
a novice user , I think I could not fix it properly.

1. I was not sure whether to load olsrd_sgwdynspeed Plugin or not so I have
just loaded it without specifying the speedFile.

2. The values shown in Position Tab were all <N/A> so I provided position
file by specifying < PlParam "positionFile" "..../Desktop/position" > and
could see some values in the Position Tab. (attachments: position,
pudPositionTab.png)
But the data from this file is updated only at olsrd startup. So how can we
get the updated positions periodically.

3. In each machine running the olsr, I could just see the Position Tab
where location information about the local machine is shown but I cannot
see the location information about the other nodes in the olsr network.
(attachment: jsoninfo_Result.txt)

Thank You.



On Mon, Nov 26, 2012 at 11:25 PM, Ferry Huberts <(spam-protected)> wrote:

>
>
> On 26/11/12 16:26, Bidur Devkota wrote:
>
>> I went through the documents and attempted to access the pud result.
>>
>> What I got is: 1. In the command line after running the olsrd , it
>> says PUD plugin is loaded (screenshot attached:
>>
>
> It's loaded but it's not active since its configuration is invalid (as is
> reported, please _read_).
>
> pud is dependent on smart gateway functionality and you have not enabled
> that.
>
>
>  pudLoadedTerminal.png) . But in the web interface it says PUD plugin
>> is not loaded(screenshot attached : pudNotLoaded1.png)
>>
>> 2. I installed the jsoninfo plugin and its output does not show the
>> position information for PUD plugin. (attachment:
>> jsoninfo_output.txt)
>>
>> I have some more confusions: 1. Where/How to configure GPS Daemon. I
>> am clueless about how the PUD plugin accesses the GPS device data and
>> send/receive position updates.
>>
>>
>
> The pud document described what it expects for the GPS information.
> How you go about forming those messages or position file is up to you.
>
>
>> Thanks!!
>>
>>
>> On Fri, Nov 23, 2012 at 6:43 PM, Ferry Huberts <(spam-protected)
>> <mailto:(spam-protected)>> wrote:
>>
>>
>>
>> On 23/11/12 12:40, Ferry Huberts wrote:
>>
>> See the pud architecture document at
>> http://olsr.org/git?p=olsrd.__**git;a=blob;f=lib/pud/doc/pud._**_odt;h=__
>> **9f3d31fe0c147c14056437dacc6111**__ec3889780d;hb=HEAD<http://olsr.org/git?p=olsrd.__git;a=blob;f=lib/pud/doc/pud.__odt;h=__9f3d31fe0c147c14056437dacc6111__ec3889780d;hb=HEAD>
>>
>>
>>  <http://olsr.org/git?p=olsrd.**git;a=blob;f=lib/pud/doc/pud.**odt;h=**
> 9f3d31fe0c147c14056437dacc6111**ec3889780d;hb=HEAD<http://olsr.org/git?p=olsrd.git;a=blob;f=lib/pud/doc/pud.odt;h=9f3d31fe0c147c14056437dacc6111ec3889780d;hb=HEAD>
> >
>
>>
>>
>> raw file:
>> http://olsr.org/git?p=olsrd.__**git;a=blob_plain;f=lib/pud/__**
>> doc/pud.odt;hb=HEAD<http://olsr.org/git?p=olsrd.__git;a=blob_plain;f=lib/pud/__doc/pud.odt;hb=HEAD>
>>
>>
>>  <http://olsr.org/git?p=olsrd.**git;a=blob_plain;f=lib/pud/**
> doc/pud.odt;hb=HEAD<http://olsr.org/git?p=olsrd.git;a=blob_plain;f=lib/pud/doc/pud.odt;hb=HEAD>
> >
>
>>
>>
>>
>>
>> and an example config file (with all parameters documented) at
>> http://olsr.org/git?p=olsrd.__**git;a=blob;f=lib/pud/doc/__**
>> olsrd.conf.default.pud;h=__**7cf142737a89f228afed348d366bcf**
>> __adb95d5f40;hb=HEAD<http://olsr.org/git?p=olsrd.__git;a=blob;f=lib/pud/doc/__olsrd.conf.default.pud;h=__7cf142737a89f228afed348d366bcf__adb95d5f40;hb=HEAD>
>>
>>
>>  <http://olsr.org/git?p=olsrd.**git;a=blob;f=lib/pud/doc/**
> olsrd.conf.default.pud;h=**7cf142737a89f228afed348d366bcf**
> adb95d5f40;hb=HEAD<http://olsr.org/git?p=olsrd.git;a=blob;f=lib/pud/doc/olsrd.conf.default.pud;h=7cf142737a89f228afed348d366bcfadb95d5f40;hb=HEAD>
> >
>
>>
>>
>> raw file:
>> http://olsr.org/git?p=olsrd.__**git;a=blob_plain;f=lib/pud/__**
>> doc/olsrd.conf.default.pud;hb=**__HEAD<http://olsr.org/git?p=olsrd.__git;a=blob_plain;f=lib/pud/__doc/olsrd.conf.default.pud;hb=__HEAD>
>>
>>
>>  <http://olsr.org/git?p=olsrd.**git;a=blob_plain;f=lib/pud/**
> doc/olsrd.conf.default.pud;hb=**HEAD<http://olsr.org/git?p=olsrd.git;a=blob_plain;f=lib/pud/doc/olsrd.conf.default.pud;hb=HEAD>
> >
>
>>
>>
>>
>>
>> If you enable the httpinfo plugin as well, then you get a tab with
>> the pud position. I think the data is also available by means of the
>> jsoninfo plugin but I've never used that.
>>
>> If after reading these you still have questions, mail again
>>
>> On 23/11/12 12:22, Bidur Devkota wrote:
>>
>> Hi All,
>>
>> I was searching for ways to share the position between the nodes in
>> OLSR network. Luckly, I got to know about pud plugin for OLSR. I
>> tried to install  it and access the data. Like for dot_draw and
>> txtInfo plugin, we can see the plugin result by monitoring in the
>> assigned port number (in /etc/olsr.conf) . For example
>> 127.0.0.1:2006 <http://127.0.0.1:2006> <http://127.0.0.1:2006>. I am
>>
>> hoping that there should be some similar ways to see the pud plugin
>> data as well. But I did not find any luck. Even searching the web
>> could not link me to some examples showing the way to configure and
>> access pud plugin. Are there any special configuration required for
>> pud? It would be of great helo if I can get through some exaples for
>> it.
>>
>> Thanks !
>>
>> Bidur
>>
>>
>>
>>
>> -- Ferry Huberts
>>
>>
>>
>>
>> -- Regards, Bidur Devkota
>>
>>
>>
>>
>>
> --
> Ferry Huberts
>



-- 
Regards,
Bidur Devkota
Asian Institute of Technology, Thailand
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.olsr.org/pipermail/olsr-users/attachments/20121127/9afbf61d/attachment.html>
-------------- next part --------------
{
"links": [
{
	"localIP": "192.168.8.9",
	"remoteIP": "192.168.8.3",
	"validityTime": 24936,
	"linkQuality": 1.000,
	"neighborLinkQuality": 0.886,
	"linkCost": 1155}]
,
	"neighbors": [
{
	"ipv4Address": "192.168.8.3",
	"symmetric": true,
	"multiPointRelay": false,
	"multiPointRelaySelector": false,
	"willingness": 3,
	"twoHopNeighbors": [],
	"twoHopNeighborCount": 0}]
,
	"topology": [
{
	"destinationIP": "192.168.8.9",
	"lastHopIP": "192.168.8.3",
	"linkQuality": 0.886,
	"neighborLinkQuality": 1.000,
	"tcEdgeCost": 1155,
	"validityTime": 11085},
{
	"destinationIP": "192.168.8.3",
	"lastHopIP": "192.168.8.9",
	"linkQuality": 1.000,
	"neighborLinkQuality": 0.886,
	"tcEdgeCost": 1155,
	"validityTime": 0}]
,
	"hna": [
]
,
	"mid": [
]
,
	"routes": [
{
	"destination": "192.168.8.3",
	"genmask": 32,
	"gateway": "192.168.8.3",
	"metric": 1,
	"rtpMetricCost": 1155,
	"networkInterface": "wlan6"}]
,
	"gateways": [
]
,
	"interfaces": [
{
	"name": "wlan6",
	"linkQualityMultipliers": [
]
,
	"state": "up",
	"nameFromKernel": "wlan6",
	"interfaceMode": 0,
	"emulatedHostClientInterface": false,
	"sendTcImmediately": false,
	"fishEyeTtlIndex": -32,
	"olsrForwardingTimeout": 194919,
	"olsrMessageSequenceNumber": 16297,
	"olsrInterfaceMetric": 1,
	"olsrMTU": 1472,
	"helloEmissionInterval": 2000,
	"helloValidityTime": 134,
	"tcValidityTime": 231,
	"midValidityTime": 231,
	"hnaValidityTime": 231,
	"wireless": true,
	"icmpRedirect": true,
	"spoofFilter": true,
	"ipv4Address": "192.168.8.9",
	"netmask": "255.255.255.0",
	"broadcast": "192.168.8.255",
	"kernelModule": "rt73usb",
	"addressLength": "6",
	"carrier": "1",
	"dormant": "0",
	"features": "0x2000",
	"flags": "0x1003",
	"linkMode": "0",
	"macAddress": "00:18:f8:b0:b9:65",
	"ethernetMTU": "1500",
	"operationalState": "up",
	"txQueueLength": "1000",
	"collisions": "0",
	"multicastPackets": "0",
	"rxBytes": "13734731",
	"rxCompressed": "0",
	"rxCrcErrors": "0",
	"rxDropped": "0",
	"rxErrors": "0",
	"rxFifoErrors": "0",
	"rxFrameErrors": "0",
	"rxLengthErrors": "0",
	"rxMissedErrors": "0",
	"rxOverErrors": "0",
	"rxPackets": "190234",
	"txAbortedErrors": "0",
	"txBytes": "3121992",
	"txCarrierErrors": "0",
	"txCompressed": "0",
	"txDropped": "0",
	"txErrors": "0",
	"txFifoErrors": "0",
	"txHeartbeatErrors": "0",
	"txPackets": "30136",
	"txWindowErrors": "0"}]
,"config": {
	"olsrPort": 698,
	"debugLevel": 2,
	"noFork": false,
	"hostEmulation": false,
	"ipVersion": 2,
	"allowNoInterfaces": true,
	"typeOfService": 192,
	"rtProto": 3,
	"rtTable": 254,
	"rtTableDefault": 223,
	"rtTableTunnel": 224,
	"rtTablePriority": -1,
	"rtTableTunnelPriority": 32786,
	"rtTableDefauiltOlsrPriority": 32776,
	"rtTableDefaultPriority": 32796,
	"willingness": 3,
	"willingnessAuto": false,
	"brokenLinkCost": 4194304,
	"brokenRouteCost": -1,
	"fibMetrics": "flat",
	"defaultIpv6Multicast": "ff02::6d",
	"defaultIpv4Broadcast": "auto",
	"defaultInterfaceMode": "mesh",
	"defaultHelloEmissionInterval": 2.000,
	"defaultHelloValidityTime": 20.000,
	"defaultTcEmissionInterval": 5.000,
	"defaultTcValidityTime": 300.000,
	"defaultMidEmissionInterval": 5.000,
	"defaultMidValidityTime": 300.000,
	"defaultHnaEmissionInterval": 5.000,
	"defaultHnaValidityTime": 300.000,
	"defaultAutoDetectChanges": true,
	"defaultLinkQualityMultipliers": [
]
,
	"hna": [
]
,
	"totalIpcConnectionsAllowed": 0,
	"ipcAllowedAddresses": [
]
,
	"pollRate": 50,
	"nicChangePollInterval": 2500,
	"clearScreen": true,
	"tcRedundancy": 2,
	"mprCoverage": 7,
	"linkQualityLevel": 2,
	"linkQualityAging": 0.050,
	"linkQualityFisheye": false,
	"linkQualityAlgorithm": "(null)",
	"minTcValidTime": 0,
	"setIpForward": true,
	"lockFile": "(null)",
	"useNiit": false,
	"smartGateway": true,
	"smartGatewayAllowNat": true,
	"smartGatewayUplinkNat": true,
	"smartGatewayPeriod": 10000,
	"smartGatewayStableCount": 6,
	"smartGatewayThreshold": 0,
	"smartGatewayUplink": 128,
	"smartGatewayDownlink": 1024,
	"smartGatewayType": 3,
	"smartGatewayPrefix": "0.0.0.0",
	"smartGatewayPrefixLength": 0,
	"mainIpAddress": "192.168.8.9",
	"unicastSourceIpAddress": "192.168.8.9",
	"useSourceIpRoutes": false,
	"maxPrefixLength": 32,
	"ipSize": 4,
	"deleteInternetGatewaysAtStartup": false,
	"willingnessUpdateInterval": 20000,
	"maxSendMessageJitter": 2.000,
	"exitValue": 0,
	"maxTcValidTime": 5000,
	"niit4to6InterfaceIndex": 0,
	"niit6to4InterfaceIndex": 0,
	"hasIpv4Gateway": false,
	"hasIpv6Gateway": false,
	"ioctlSocket": 3,
	"routeNetlinkSocket": 4,
	"routeMonitorSocket": 5,
	"linkQualityNatThreshold": 1.000,
	"olsrdVersion": "olsr.org -  0.6.4-git_-hash_f81d510e5844654f59c4af3a5419aa4a  -",
	"olsrdBuildDate": "2012-11-26 13:15:24",
	"olsrdBuildHost": "9",
	"os": "GNU/Linux",
	"startTime": 1354013067	}
,
	"plugins": [
{
	"plugin": "/usr/local/lib/olsrd_pud.so.1.1.0",
	"useloopback": "true",
	"movingdistancethreshold": 0,
	"movingspeedthreshold": 0,
	"uplinkupdateintervalmoving": 5,
	"uplinkupdateintervalstationary": 5,
	"updateintervalmoving": 5,
	"updateintervalstationary": 5,
	"uplinkaddr": "127.0.0.1",
	"txnonolsrif": "wlan6",
	"positionfile": "/home/interlab/Desktop/position",
	"rxnonolsrif": "wlan6"},
{
	"plugin": "/usr/local/lib/olsrd_sgwdynspeed.so.1.0.0",
	"speedfileperiod": 2000},
{
	"plugin": "olsrd_jsoninfo.so.0.0",
	"accept": "0.0.0.0"},
{
	"plugin": "olsrd_httpinfo.so.0.1",
	"net": "0.0.0.0 0.0.0.0",
	"port": 8080},
{
	"plugin": "olsrd_txtinfo.so.0.1",
	"accept": "127.0.0.1"}]
,
	"systemTime": 1354013264,
	"timeSinceStartup": 197444}

-------------- next part --------------
A non-text attachment was scrubbed...
Name: olsrd.conf
Type: application/octet-stream
Size: 20778 bytes
Desc: not available
URL: <http://lists.olsr.org/pipermail/olsr-users/attachments/20121127/9afbf61d/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: position
Type: application/octet-stream
Size: 167 bytes
Desc: not available
URL: <http://lists.olsr.org/pipermail/olsr-users/attachments/20121127/9afbf61d/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pudPosition.png
Type: image/png
Size: 51647 bytes
Desc: not available
URL: <http://lists.olsr.org/pipermail/olsr-users/attachments/20121127/9afbf61d/attachment.png>


More information about the Olsr-users mailing list