<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
     Hello Caroline,<br>
    <div class="moz-forward-container"> <br>
      I hope you don't mind that I put this particular email back on the
      mailing list, because this might<br>
      be of interest to others, too.<br>
      <br>
      While it is possible to do some extra tinkering on the
      `gnrc_networking` example in order<br>
      to receive the udp payload in the application's thread, I rather
      would suggest to look into<br>
      the posix sockets that are now merged into master. An example
      usage can be found here [1].<br>
      <br>
      You have to adjust the Makefile of the example in [1] the
      following way:<br>
      * replace `gnrc_ipv6_default` with `gnrc_ipv6_router_default`<br>
      * add a new line `USEMODULE += gnrc_rpl`<br>
      <br>
      This should suffice to get rpl into this new example. (Martine,
      correct me if I am wrong).<br>
      <br>
      Best,<br>
      Cenk<br>
      <span style="color: rgb(51, 51, 51); font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16.8px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: pre; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none; background-color: rgb(255, 255, 255);"></span><br>
      [1] <a moz-do-not-send="true" class="moz-txt-link-freetext"
href="https://github.com/RIOT-OS/RIOT/tree/master/examples/posix_sockets">https://github.com/RIOT-OS/RIOT/tree/master/examples/posix_sockets</a><br>
      <br>
      <br>
      <div class="moz-cite-prefix">On 24.09.2015 15:33, QUEVA Caroline
        242137 wrote:<br>
      </div>
      <blockquote
cite="mid:74A9FC8776783847842D562366F4DDBA015B2649@EXDAG0-B2.intra.cea.fr"
        type="cite">
        <meta http-equiv="Content-Type" content="text/html;
          charset=utf-8">
        <div style="direction: ltr;font-family: Tahoma;color:
          #000000;font-size: 10pt;">Thanks for the answer, it seems to
          solve my problem.<br>
          <br>
          Just another question, for now the udp server prints
          information from packet dump. Do you know how I can get the
          information in packet received (for example an integer) to
          print it or better to do calculations with it ?<br>
          <br>
          For desvirt, I just modified xml files to create my own
          topology and use vnet commands (in desvirt) to define and
          start my grid network.<br>
          Then I start my nodes with "make term PORT=grid1_1_7_aX" with
          grid1_1_7 the name of my xml file (in attachment) and X from 0
          to n (with n the number of total nodes).<br>
          I didn't hear about problem using desvirt with RIOT.<br>
          <div><br>
            <div class="BodyFragment"><font size="2"><span
                  style="font-size:10pt;">
                  <div class="PlainText">Caroline QUEVA<br>
                    Research Engineer at CEA-LIST<br>
                    DRT/LIST/DACLE/LIALP<br>
                    Laboratoire Infrastructures et Ateliers pour le
                    Logiciel sur Puces<br>
                    <br>
                    Commissariat à l’énergie atomique et aux énergies
                    alternatives<br>
                    MINATEC Campus | 17 rue des Martyrs | 38054 Grenoble
                    Cedex 9<br>
                  </div>
                </span></font></div>
          </div>
          <div style="font-family: Times New Roman; color: #000000;
            font-size: 16px">
            <hr tabindex="-1">
            <div style="direction: ltr;" id="divRpF401810"><font
                face="Tahoma" color="#000000" size="2"><b>De :</b> Cenk
                Gündogan [<a moz-do-not-send="true"
                  class="moz-txt-link-abbreviated"
                  href="mailto:cenk.guendogan@fu-berlin.de">cenk.guendogan@fu-berlin.de</a>]<br>
                <b>Envoyé :</b> jeudi 24 septembre 2015 15:19<br>
                <b>À :</b> QUEVA Caroline 242137<br>
                <b>Objet :</b> Re: [riot-users] Multihop Network<br>
              </font><br>
            </div>
            <div>Hey Caroline,<br>
              <br>
              I can guess:<br>
              Can you try using a global IPv6 address for the root node?<br>
              e.g. by executing: `ifconfig <interface_id>
              2001:db8::1` (or any other global IPv6 address you desire)
              in the shell of the root node.<br>
              You have to replace <interface_id> with the
              interface id you see when you type `ifconfig` without
              parameters.<br>
              <br>
              Rationale:<br>
              Dodag-IDs must be global IPv6 addresses or unique local
              IPv6 addresses.<br>
              So using any address with a link-local prefix like
              `fe80...` will not work.<br>
              <br>
              So when starting the RPL dodag on the root, you use the
              global IPv6 address instead:<br>
              `rpl root 1 2001:db8::1`.<br>
              <br>
              I hope this solves the problem.<br>
              <br>
              By the way, you mentioned desvirt. Can I ask you how you
              are using desvirt?<br>
              Because AFAIK, desvirt is not able to run the RIOT native
              port right now.<br>
              I made a pull request here [1] and here [2]. Are you using
              any of these patches?<br>
              Would be interesting to know (:<br>
              <br>
              Best,<br>
              Cenk<br>
              <br>
              [1] <a moz-do-not-send="true"
                class="moz-txt-link-freetext"
                href="https://github.com/RIOT-OS/RIOT/pull/3908"
                target="_blank">
                https://github.com/RIOT-OS/RIOT/pull/3908</a><br>
              [2] <a moz-do-not-send="true"
                class="moz-txt-link-freetext"
                href="https://github.com/des-testbed/desvirt/pull/17"
                target="_blank">
                https://github.com/des-testbed/desvirt/pull/17</a><br>
              <br>
              <div class="moz-cite-prefix">On 24.09.2015 15:04, QUEVA
                Caroline 242137 wrote:<br>
              </div>
              <blockquote type="cite">
                <style id="owaParaStyle" type="text/css">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
BODY {direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;}P {margin-top:0;margin-bottom:0;}BODY {scrollbar-base-color:undefined;scrollbar-highlight-color:undefined;scrollbar-darkshadow-color:undefined;scrollbar-track-color:undefined;scrollbar-arrow-color:undefined}</style>
                <div style="direction:ltr; font-family:Tahoma;
                  color:#000000; font-size:10pt">Hej Cenk,<br>
                  <br>
                  Thanks again for your answer,<br>
                  <br>
                  I updated my branch, I am currently on the last
                  version of the master branch and it's still not
                  working.<br>
                  <br>
                  To explain in more details, I created a network using
                  desvirt tool with three nodes.<br>
                  The first node is the dodag's root with the address
                  fe80::8c6f:cdff:fe13:1 and runs the UDP server.<br>
                  My second node is connected to the root, has the
                  address fe80::8c6f:cdff:fe13:cb2a and can send message
                  to the root via udp.<br>
                  The third node is not connected to the root but it is
                  connected to the second node, and should be able to
                  send messages to the root via the second node. <br>
                  <br>
                  This is what I get on the third node :<br>
                  <i>> fibroute<br>
                    fibroute<br>
                    Destination                             Flags  Next
                    Hop                                Flags 
                    Expires          Interface<br>
                    ::                                      0x0003
                    fe80::8c6f:cdff:fe13:cb2a               0x0003
                    98.4643706<br>
                    > udp send fe80::947d:6ff:fe40:1 8088 hello<br>
                    udp send fe80::947d:6ff:fe40:1 8088 hello<br>
                    Success: send 5 byte to [fe80::947d:6ff:fe40:1]:8088</i><br>
                  <br>
                  On the second node I have this :<br>
                  <i>fibroute<br>
                    Destination                                       
                    Flags  Next Hop                               
                    Flags  Expires          Interface<br>
                    ::                                                  
                        0x0003 fe80::947d:6ff:fe40:b46d               
                    0x0003 74.4523616<br>
                    fe80::2878:adff:fe49:c384               0x0003
                    fe80::2878:adff:fe49:c384               0x0003
                    68.3986206</i><br>
                  <br>
                  On the root node I have this :<br>
                  <i>> fibroute<br>
                    fibroute<br>
                    Destination                                     
                    Flags  Next Hop                               
                    Flags  Expires          Interface<br>
                    fe80::8c6f:cdff:fe13:cb2a                0x0003
                    fe80::8c6f:cdff:fe13:cb2a               0x0003
                    117.677536<br>
                    fe80::2878:adff:fe49:c384               0x0003
                    fe80::8c6f:cdff:fe13:cb2a               0x0003
                    112.132266</i><br>
                  And no packet is dumped as expected...<br>
                  <br>
                  Do you know what's wrong ?<br>
                  <br>
                  Best,<br>
                  Caroline<br>
                  <br>
                  <div><span id="spnFrom" class="rwRRO"
                      title="cenk.guendogan@fu-berlin.de"></span>
                    <div class="BodyFragment"><font size="2"><span
                          style="font-size:10pt">
                          <div class="PlainText">Caroline QUEVA<br>
                            Research Engineer at CEA-LIST<br>
                            DRT/LIST/DACLE/LIALP<br>
                            Laboratoire Infrastructures et Ateliers pour
                            le Logiciel sur Puces<br>
                            <br>
                            Commissariat à l’énergie atomique et aux
                            énergies alternatives<br>
                            MINATEC Campus | 17 rue des Martyrs | 38054
                            Grenoble Cedex 9<br>
                          </div>
                        </span></font></div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>
        </div>
      </blockquote>
    </div>
  </body>
</html>