<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>Op 29 nov. 2012, om 18:51 heeft Bidur Devkota het volgende geschreven:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Hi Teco, </div>I tried to send NMEA to UDP socket.<div>Though I could not see what I am trying to get but I think I could see some positive observations:</div><div><br><div>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.</div></div></blockquote><div>When stationary, slow update is fine.</div><div>When moving, update rate gets faster.</div><div>Tune if you want to.</div><div><br></div>Send all GPS NMEA sentences, PUD will filter out what it needs.</div><div><br><blockquote type="cite"><div>
<div><br></div><div>2. Until the olsrd is running the routing table have entries of the neighbor nodes running olsr.</div></div></blockquote><div>I guess you mean *if* olsr is running, routing table is OK. That is fine.</div><br><blockquote type="cite"><div><div> But when olsrd is terminated those entries are not seen in the routing table.</div></div></blockquote>That is fine too.</div><div><br><blockquote type="cite"><div><div><br></div><div>
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.</div></div></blockquote><div>Please suggest how-to text. Or tell what is missing.</div><div><br></div><div>I guess you learned a lot :-)</div><div><br></div><div><br></div><blockquote type="cite"><div><div><br></div><div>
Still I am not able to access the updated location information of a node from other nodes. </div></div></blockquote><div>First, catch with tcpdump. The info is send out with private NMEA sentence, with node ID.</div><div>tcpdump -nlAs 0 -i $lan udp port 2240 | grep NBSX</div><div>My shortened debug script below.</div><div><br></div><div>I use multicast to LAN/WiFi connected nodes, and put PUD positions on a map.</div><div>I use multiple private NMEA messages, all on port 2240, address 224.0.0.224 (lots of 224 in it, easy to remember:-)</div><div><br></div><div>Teco</div><div><br></div><div><br></div><div><div>#!/bin/bash</div><div><br></div><div>if [ -e /proc/sys/net/ipv4/conf/br0 ] ; then</div><div> lan=br0</div><div>else</div><div> lan=eth0</div><div>fi</div><div><br></div><div>case "$1" in</div><div> -a | --all )</div><div> tcpdump -nlAs 0 -i $lan udp port 2240</div><div> ;;</div><div> -g | --gps )</div><div> tcpdump -nlAs 0 -i $lan udp port 2240 | grep '\$GP'</div><div> ;;</div><div> -x | -pu )</div><div> tcpdump -nlAs 0 -i $lan udp port 2240 | grep NBSX</div><div> ;;</div><div> *)</div><div> echo "Usage: nmea [OPTION]"</div><div> echo ""</div><div> echo "-a,--all"</div><div> echo "-g,--gps"</div><div> echo "-x,--pu"</div><div> echo ""</div><div> ;;</div><div>esac</div></div><div><br></div><br><blockquote type="cite"><div><div><br></div><div>Thanking You</div><div>Bidur</div><div><br></div><div><br></div><div><br></div><div><br><br><div class="gmail_quote">
On Thu, Nov 29, 2012 at 12:55 AM, Teco Boot <span dir="ltr"><<a href="mailto:teco@inf-net.nl" target="_blank">teco@inf-net.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word"><div><br><div><div>Op 28 nov. 2012, om 18:13 heeft Bidur Devkota het volgende geschreven:</div><div class="im"><br><blockquote type="cite">Hi Teco,<div>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.<br>
</div></blockquote></div>If it is NMEA, send it to a UDP socket.<div class="im"><div><br></div><blockquote type="cite"><div><br><div class="gmail_quote">On Wed, Nov 28, 2012 at 9:12 PM, Teco Boot <span dir="ltr"><<a href="mailto:teco@inf-net.nl" target="_blank">teco@inf-net.nl</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">If you have GPS feed, just make it available.</blockquote><div> </div></div> I am not sure where/how to indicate the continuous GPS feed in the olsrd.conf file( or somewhere else).<br clear="all">
</div></blockquote></div><div>config file = static.</div><div>UDP socket = dynamic.</div><div>Use your preferred method.</div><div><br></div><div>Here my socat config, for opposite redirection. Adjust it on your requirements.</div>
<div>SOCAT=/usr/bin/socat</div><div>SOCAT_OPTS="-u UDP4-RECV:$GpsRemPort,range=$GpsRemSrcAddress/32,ip-add-embership=$GpsRemMcAddress:$GpsRemInterface PTY,link=/dev/gps0,raw,echo=0"</div><div>$SOCAT $SOCAT_OPTS &</div>
<div><br></div><div>Teco</div><br><blockquote type="cite"><div>
<div><br></div>Thanks,<br>Bidur <div><br></div><br>
</div>
</blockquote></div><br></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Regards,<br>Bidur Devkota<br><div>Asian Institute of Technology, Thailand<br><br><br></div><br>
</div></div>
</blockquote></div><br></body></html>