[Olsr-users] olsr position update plugin configuration

Teco Boot (spam-protected)
Thu Nov 29 20:22:57 CET 2012


Op 29 nov. 2012, om 18:51 heeft Bidur Devkota het volgende geschreven:

> Hi Teco, 
> I tried to send NMEA to UDP socket.
> Though I could not see what I am trying to get but I think I could see some positive observations:
> 
> 1. When NMEA statement with $GPGGA are send to PORT 2240 , then refreshing the POSITION tab could show updated position information ( sometimes only BUT not always).  Am I doing it properly or something else should be done so that the updates can be seen always.
When stationary, slow update is fine.
When moving, update rate gets faster.
Tune if you want to.

Send all GPS NMEA sentences, PUD will filter out what it needs.

> 
> 2. Until the olsrd is running the routing table have  entries of the neighbor nodes running olsr.
I guess you mean *if* olsr is running, routing table is OK. That is fine.

> But when olsrd is terminated those entries are not seen in the routing table.
That is fine too.

> 
> Getting up to this was not easy since the configuration of PUD in olsrd.conf and accurately estimating the exact port number (among the 2240, 2241 and 2242) for the purpose was rather exhaustive.
Please suggest how-to text. Or tell what is missing.

I guess you learned a lot :-)


> 
> Still I am not able to access the updated location information of a node from other nodes. 
First, catch with tcpdump. The info is send out with private NMEA sentence, with node ID.
tcpdump -nlAs 0 -i $lan udp port 2240 | grep NBSX
My shortened debug script below.

I use multicast to LAN/WiFi connected nodes, and put PUD positions on a map.
I use multiple private NMEA messages, all on port 2240, address 224.0.0.224 (lots of 224 in it, easy to remember:-)

Teco


#!/bin/bash

if [ -e /proc/sys/net/ipv4/conf/br0 ] ; then
  lan=br0
else
  lan=eth0
fi

case "$1" in
  -a | --all )
     tcpdump -nlAs 0 -i $lan udp port 2240
  ;;
  -g | --gps )
     tcpdump -nlAs 0 -i $lan udp port 2240 | grep '\$GP'
  ;;
  -x | -pu )
     tcpdump -nlAs 0 -i $lan udp port 2240 | grep NBSX
  ;;
  *)
    echo "Usage: nmea [OPTION]"
    echo ""
    echo "-a,--all"
    echo "-g,--gps"
    echo "-x,--pu"
    echo ""
  ;;
esac


> 
> Thanking You
> Bidur
> 
> 
> 
> 
> 
> On Thu, Nov 29, 2012 at 12:55 AM, Teco Boot <(spam-protected)> wrote:
> 
> Op 28 nov. 2012, om 18:13 heeft Bidur Devkota het volgende geschreven:
> 
>> Hi Teco,
>> The GPS data is available ( a python script reads the gps feed contineously )but I am not able to make the PUD plugin dynamically read it and update as I have stated earlier.
> If it is NMEA, send it to a UDP socket.
> 
>> 
>> On Wed, Nov 28, 2012 at 9:12 PM, Teco Boot <(spam-protected)> wrote:
>> If you have GPS feed, just make it available.
>>  
>>  I am not sure where/how to indicate the continuous GPS feed in the olsrd.conf file( or somewhere else).
> 
> config file = static.
> UDP socket = dynamic.
> Use your preferred method.
> 
> Here my socat config, for opposite redirection. Adjust it on your requirements.
> SOCAT=/usr/bin/socat
> SOCAT_OPTS="-u UDP4-RECV:$GpsRemPort,range=$GpsRemSrcAddress/32,ip-add-embership=$GpsRemMcAddress:$GpsRemInterface PTY,link=/dev/gps0,raw,echo=0"
> $SOCAT $SOCAT_OPTS &
> 
> Teco
> 
>> 
>> Thanks,
>> Bidur 
>> 
>> 
> 
> 
> 
> 
> -- 
> Regards,
> Bidur Devkota
> Asian Institute of Technology, Thailand
> 
> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.olsr.org/pipermail/olsr-users/attachments/20121129/79695e56/attachment.html>


More information about the Olsr-users mailing list